国王王后 我的贡献接口新增userId 字段
This commit is contained in:
parent
006379284f
commit
a8d9eb76e5
@ -1,5 +1,6 @@
|
|||||||
package com.red.circle.other.adapter.app.activity.room;
|
package com.red.circle.other.adapter.app.activity.room;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.red.circle.common.business.dto.cmd.AppExtCommand;
|
import com.red.circle.common.business.dto.cmd.AppExtCommand;
|
||||||
import com.red.circle.framework.dto.PageResult;
|
import com.red.circle.framework.dto.PageResult;
|
||||||
import com.red.circle.framework.web.controller.BaseController;
|
import com.red.circle.framework.web.controller.BaseController;
|
||||||
@ -27,6 +28,7 @@ import org.springframework.data.domain.Page;
|
|||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -129,7 +131,10 @@ public class WeekKingQueenController extends BaseController {
|
|||||||
* @eo.request-type formdata
|
* @eo.request-type formdata
|
||||||
*/
|
*/
|
||||||
@GetMapping("/user-contribute")
|
@GetMapping("/user-contribute")
|
||||||
public UserCharmWealthContributeCO getUserContribute(AppExtCommand cmd) {
|
public UserCharmWealthContributeCO getUserContribute(AppExtCommand cmd, @RequestParam(value = "userId", required = false) String userId) {
|
||||||
|
if (StrUtil.isNotBlank(userId)) {
|
||||||
|
cmd.setReqUserId(Long.parseLong(userId));
|
||||||
|
}
|
||||||
return weekKingQueenService.getUserContribute(cmd);
|
return weekKingQueenService.getUserContribute(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user