Commit ba0b5548130b45a814c62356563a1a2557fdbd01

Authored by miaoguoxin
1 parent ef55ce57

code review

src/main/java/com/diligrp/xtrade/product/controllor/ProductApiControllor.java deleted 100644 → 0
1   -package com.diligrp.xtrade.product.controllor;
2   -
3   -import javax.annotation.Resource;
4   -
5   -import org.springframework.web.bind.annotation.RequestBody;
6   -import org.springframework.web.bind.annotation.RequestMapping;
7   -import org.springframework.web.bind.annotation.RestController;
8   -
9   -import com.diligrp.xtrade.product.domain.dto.ProductCreateRequestDto;
10   -import com.diligrp.xtrade.product.domain.dto.ProductQueryRequestDto;
11   -import com.diligrp.xtrade.product.service.ProductService;
12   -import com.diligrp.xtrade.shared.domain.Message;
13   -
14   -@RestController
15   -@RequestMapping(value = "/sapi/product")
16   -public class ProductApiControllor {
17   -
18   - @Resource
19   - private ProductService productService;
20   -
21   - @RequestMapping(value = "/createProduct")
22   - public Message createOrder(@RequestBody ProductCreateRequestDto productCreateRequestDto) {
23   - productService.createProduct(productCreateRequestDto);
24   - return Message.success();
25   - }
26   -
27   - @RequestMapping(value = "/listProducts")
28   - public Message listOrders(@RequestBody ProductQueryRequestDto productQueryRequestDto) {
29   - return Message.success(productService.orderLists(productQueryRequestDto));
30   - }
31   -
32   - @RequestMapping(value = "/productDetail")
33   - public Message orderDetail(@RequestBody ProductQueryRequestDto productQueryRequestDto) {
34   - return Message.success(productService.orderDetail(productQueryRequestDto));
35   - }
36   -
37   -}