Authored by mlge

请求方式修改

... ... @@ -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();
... ...
... ... @@ -10,6 +10,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;
... ... @@ -26,14 +27,14 @@ public class GrassTopicController {
@RequestMapping("/getGrassTopicList")
@ResponseBody
public ApiResponse getGrassTopicList(GrassTopicReq req){
public ApiResponse getGrassTopicList(@RequestBody GrassTopicReq req){
PageResponseVO<TopicRespBo> result = topicService.getGrassTopicList(req);
return new ApiResponse.ApiResponseBuilder().data(result).build();
}
@RequestMapping("/addUpGrassTopic")
@ResponseBody
public ApiResponse addUpGrassTopic(GrassTopicReq req){
public ApiResponse addUpGrassTopic(@RequestBody GrassTopicReq req){
topicService.addUpGrassTopic(req);
return new ApiResponse.ApiResponseBuilder().build();
}
... ...
... ... @@ -29,7 +29,7 @@ public class LabelGroupController {
@RequestMapping("/getLabelGroupList")
@ResponseBody
public ApiResponse getLabelGroupList(LabelGroupReq req){
public ApiResponse getLabelGroupList(@RequestBody LabelGroupReq req){
logger.info("enter getRedpacketList,req={}",req);
PageResponseVO<LabelGroupBo> result = labelGroupService.getLabelGroupList(req);
return new ApiResponse.ApiResponseBuilder().data(result).build();
... ... @@ -37,7 +37,7 @@ public class LabelGroupController {
@RequestMapping("/addUpLabelGroup")
@ResponseBody
public ApiResponse addUpLabelGroup(LabelGroupReq req){
public ApiResponse addUpLabelGroup(@RequestBody LabelGroupReq req){
logger.info("enter getRedpacketList,req={}",req);
labelGroupService.addUpLabelGroup(req);
return new ApiResponse.ApiResponseBuilder().build();
... ... @@ -45,7 +45,7 @@ public class LabelGroupController {
@RequestMapping("/deleteLabelGroup")
@ResponseBody
public ApiResponse deleteLabelGroup(LabelGroupReq req){
public ApiResponse deleteLabelGroup(@RequestBody LabelGroupReq req){
logger.info("enter updatePacketStatus,req = {}", req);
int flag = labelGroupService.deleteLabelGroup(req);
if(flag == 2){
... ...