Authored by csgyoho

种草-完善

@@ -29,48 +29,48 @@ public class GrassGoodsController { @@ -29,48 +29,48 @@ public class GrassGoodsController {
29 29
30 @RequestMapping("/queryGoods") 30 @RequestMapping("/queryGoods")
31 @ResponseBody 31 @ResponseBody
32 - public ApiResponse queryGoods(GoodsQueryReq req){  
33 - logger.info("enter queryGoods.param is {}",req); 32 + public ApiResponse queryGrassGoods(GoodsQueryReq req){
  33 + logger.info("enter queryGrassGoods.param is {}",req);
34 PageResponseVO<GoodsQueryRsp> result = grassGoodsService.queryGoods(req); 34 PageResponseVO<GoodsQueryRsp> result = grassGoodsService.queryGoods(req);
35 return new ApiResponse.ApiResponseBuilder().data(result).build(); 35 return new ApiResponse.ApiResponseBuilder().data(result).build();
36 } 36 }
37 37
38 @RequestMapping("/searchProducts") 38 @RequestMapping("/searchProducts")
39 @ResponseBody 39 @ResponseBody
40 - public ApiResponse searchProducts(ProductSearchReq req){  
41 - logger.info("enter searchProducts.param is {}",req); 40 + public ApiResponse searchGrassProducts(ProductSearchReq req){
  41 + logger.info("enter searchGrassProducts.param is {}",req);
42 PageResponseVO<JSONObject> result = grassGoodsService.searchProducts(req); 42 PageResponseVO<JSONObject> result = grassGoodsService.searchProducts(req);
43 return new ApiResponse.ApiResponseBuilder().data(result).build(); 43 return new ApiResponse.ApiResponseBuilder().data(result).build();
44 } 44 }
45 45
46 @RequestMapping("/batchAddGoods") 46 @RequestMapping("/batchAddGoods")
47 @ResponseBody 47 @ResponseBody
48 - public ApiResponse batchAddGoods(@RequestBody List<BatchAddGoodsReq> reqList){  
49 - logger.info("enter batchAddGoods.param is {}",reqList); 48 + public ApiResponse batchAddGrassGoods(@RequestBody List<BatchAddGoodsReq> reqList){
  49 + logger.info("enter batchAddGrassGoods.param is {}",reqList);
50 grassGoodsService.batchAddGoods(reqList); 50 grassGoodsService.batchAddGoods(reqList);
51 return new ApiResponse.ApiResponseBuilder().message("批量新增成功").build(); 51 return new ApiResponse.ApiResponseBuilder().message("批量新增成功").build();
52 } 52 }
53 53
54 @RequestMapping("/getGoods") 54 @RequestMapping("/getGoods")
55 @ResponseBody 55 @ResponseBody
56 - public ApiResponse getGoods(@RequestParam("id") Integer id){  
57 - logger.info("enter getGoods.id is {}",id); 56 + public ApiResponse getGrassGoods(@RequestParam("id") Integer id){
  57 + logger.info("enter getGrassGoods.id is {}",id);
58 GrassGoods result = grassGoodsService.getGoods(id); 58 GrassGoods result = grassGoodsService.getGoods(id);
59 return new ApiResponse.ApiResponseBuilder().data(result).build(); 59 return new ApiResponse.ApiResponseBuilder().data(result).build();
60 } 60 }
61 61
62 @RequestMapping("/modifyGoodsStatus") 62 @RequestMapping("/modifyGoodsStatus")
63 @ResponseBody 63 @ResponseBody
64 - public ApiResponse modifyGoodsStatus(@RequestParam("status") Integer status,@RequestParam("id") Integer id){  
65 - logger.info("enter modifyGoodsStatus.status is {}",status); 64 + public ApiResponse modifyGrassGoodsStatus(@RequestParam("status") Integer status,@RequestParam("id") Integer id){
  65 + logger.info("enter modifyGrassGoodsStatus.status is {}",status);
66 grassGoodsService.modifyGoodsStatus(status,id); 66 grassGoodsService.modifyGoodsStatus(status,id);
67 return new ApiResponse.ApiResponseBuilder().message("修改成功").build(); 67 return new ApiResponse.ApiResponseBuilder().message("修改成功").build();
68 } 68 }
69 69
70 @RequestMapping("/modifyGoods") 70 @RequestMapping("/modifyGoods")
71 @ResponseBody 71 @ResponseBody
72 - public ApiResponse modifyGoods(GoodsModifyReq req){  
73 - logger.info("enter modifyGoods.param is {}",req); 72 + public ApiResponse modifyGrassGoods(GoodsModifyReq req){
  73 + logger.info("enter modifyGrassGoods.param is {}",req);
74 grassGoodsService.modifyGoods(req); 74 grassGoodsService.modifyGoods(req);
75 return new ApiResponse.ApiResponseBuilder().message("修改成功").build(); 75 return new ApiResponse.ApiResponseBuilder().message("修改成功").build();
76 } 76 }