...
|
...
|
@@ -9,6 +9,7 @@ import org.slf4j.Logger; |
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
...
|
...
|
@@ -28,14 +29,14 @@ public class GrassLabelController { |
|
|
|
|
|
@RequestMapping("/getGrassLabelList")
|
|
|
@ResponseBody
|
|
|
public ApiResponse getGrassLabelList(GrassLabelReq req){
|
|
|
public ApiResponse getGrassLabelList(@RequestBody GrassLabelReq req){
|
|
|
PageResponseVO<GrassLabelBo> result = ilabelService.getGrassLabelList(req);
|
|
|
return new ApiResponse.ApiResponseBuilder().data(result).build();
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/addUpGrassLabel")
|
|
|
@ResponseBody
|
|
|
public ApiResponse addUpGrassLabel(GrassLabelReq req){
|
|
|
public ApiResponse addUpGrassLabel(@RequestBody GrassLabelReq req){
|
|
|
logger.info("enter getRedpacketList,req={}",req);
|
|
|
ilabelService.addUpLabel(req);
|
|
|
return new ApiResponse.ApiResponseBuilder().build();
|
...
|
...
|
@@ -43,7 +44,7 @@ public class GrassLabelController { |
|
|
|
|
|
@RequestMapping("/deleteGrassLabel")
|
|
|
@ResponseBody
|
|
|
public ApiResponse deleteGrassLabel(GrassLabelReq req){
|
|
|
public ApiResponse deleteGrassLabel(@RequestBody GrassLabelReq req){
|
|
|
logger.info("enter updatePacketStatus,req = {}", req);
|
|
|
ilabelService.deleteLabel(req);
|
|
|
return new ApiResponse.ApiResponseBuilder().build();
|
...
|
...
|
|