Search in sources :

Example 6 with BookDTO

use of com.github.lybgeek.httpclient.dto.BookDTO in project springboot-learning by lyb-geek.

the class HttpClientAppliactionTest method testUpdateBook.

@Test
public void testUpdateBook() {
    BookDTO bookDTO = BookDTO.builder().id(1L).bookName("图解Http").author("大神").description("http入门系列教程").price(BigDecimal.valueOf(23.2)).stock(1).build();
    bookDTO = bookService.editBook(bookDTO);
    System.out.println(bookDTO);
}
Also used : BookDTO(com.github.lybgeek.httpclient.dto.BookDTO) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

BookDTO (com.github.lybgeek.httpclient.dto.BookDTO)6 Test (org.junit.Test)4 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)4 PageResult (com.github.lybgeek.common.model.PageResult)2 Result (com.github.lybgeek.common.model.Result)2 BindingResult (org.springframework.validation.BindingResult)2 PostMapping (org.springframework.web.bind.annotation.PostMapping)2 PageQuery (com.github.lybgeek.common.model.PageQuery)1