Authored by mlge

代码迁移

... ... @@ -3,13 +3,15 @@ package com.yohobuy.platform.operations.restapi;
import com.yohobuy.platform.common.restapi.ApiResponse;
import com.yohobuy.platform.model.common.PageRequestBO;
import com.yohobuy.platform.model.common.PageResponseBO;
import com.yohobuy.platform.operations.model.LotteryReqVO;
import com.yohobuy.platform.model.operations.request.LotteryReqVO;
import com.yohobuy.platform.operations.model.LotteryVO;
import com.yohobuy.platform.operations.service.IWechatPrizeService;
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;
... ... @@ -27,7 +29,7 @@ public class WechatPrizeController {
*/
@RequestMapping("/getPrizeList")
@ResponseBody
public ApiResponse getAppReportForm(PageRequestBO pageRequest) {
public ApiResponse getPrizeList(@RequestBody PageRequestBO pageRequest) {
PageResponseBO<LotteryVO> data = wechatPrizeService.getPrizeList(pageRequest);
return new ApiResponse.ApiResponseBuilder().code(200).data(data).message("success").build();
}
... ... @@ -49,7 +51,7 @@ public class WechatPrizeController {
*/
@RequestMapping("/saveLottery")
@ResponseBody
public ApiResponse saveLottery(LotteryVO vo) {
public ApiResponse saveLottery(@RequestBody LotteryVO vo) {
int num = wechatPrizeService.saveLottery(vo);
if(num > 0){
return new ApiResponse.ApiResponseBuilder().code(200).message("success").build();
... ... @@ -64,7 +66,7 @@ public class WechatPrizeController {
*/
@RequestMapping("/savePrizes")
@ResponseBody
public ApiResponse savePrizes(LotteryReqVO vo) {
public ApiResponse savePrizes(@RequestBody LotteryReqVO vo) {
int num = wechatPrizeService.savePrizes(vo);
if(num > 0){
return new ApiResponse.ApiResponseBuilder().code(200).message("success").build();
... ...