rentaiming
2024-07-20 ed4f07531b9cb0794e976a14cee3b591dec8d4f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.ruoyi.member.controller.inner;
 
 
import com.ruoyi.common.core.domain.R;
import com.ruoyi.member.service.IMemberPointsService;
import com.ruoyi.system.api.domain.dto.MemberPointsDTO;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * <p>
 * 会员积分表 前端控制器
 * </p>
 *
 * @author mitao
 * @since 2024-05-23
 */
@RestController
@RequestMapping("/member-points")
public class MemberPointsController {
    @Resource
    private IMemberPointsService iMemberPointsService;
    @PostMapping("/addMemberPoints")
    @ApiOperation(value = "用户端-添加或减少用户积分")
    public R addMemberPoints(@RequestBody MemberPointsDTO memberPointsDTO) {
        iMemberPointsService.addMemberPoints(memberPointsDTO);
        return R.ok();
    }
 
}