rentaiming
2024-05-30 06094ec805862d8f0bebe1e2327addaf586b94ce
ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/controller/MemberPointsController.java
@@ -6,8 +6,11 @@
import com.ruoyi.member.domain.MemberPoints;
import com.ruoyi.member.dto.MemberDTO;
import com.ruoyi.member.service.IMemberPointsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@@ -22,13 +25,14 @@
 */
@RestController
@RequestMapping("/member-points")
@Api(value = "用户端-用户积分", tags = "用户端-用户积分", description = "用户端-用户积分")
public class MemberPointsController {
    @Resource
    private IMemberPointsService iMemberPointsService;
    @RequestMapping("/getMemberPoints")
    @ResponseBody
    @ApiOperation(value = "获取用户积分")
    public R<PageDTO<MemberPoints>> getMemberPoints(MemberDTO memberDTO) {
    @ApiOperation(value = "用户端-获取用户积分")
    public R<PageDTO<MemberPoints>> getMemberPoints(@RequestBody MemberDTO memberDTO) {
        return R.ok(iMemberPointsService.getMemberPoints(memberDTO));
    }
}