|
|
@@ -1,13 +1,16 @@
|
|
|
package io.renren.modules.qmjz.controller;
|
|
|
|
|
|
import io.renren.common.utils.PageUtils;
|
|
|
+import io.renren.common.utils.R;
|
|
|
import io.renren.modules.qmjz.entity.bo.ScoreStuBo;
|
|
|
import io.renren.modules.qmjz.model.PageQuery;
|
|
|
import io.renren.modules.qmjz.service.ScoreStuService;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@RestController
|
|
|
@@ -25,4 +28,12 @@ public class ScoreStuController {
|
|
|
public PageUtils page(ScoreStuBo bo, PageQuery pageQuery) {
|
|
|
return ScoreStuService.queryPageList(bo,pageQuery);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/getIntegralValue")
|
|
|
+ @ApiOperation("获取积分值")
|
|
|
+ public R getIntegralValue(@RequestParam("memberId") Long memberId) {
|
|
|
+ return R.ok().put("data", ScoreStuService.getIntegralValue(memberId));
|
|
|
+ }
|
|
|
}
|