| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.account.api.model.UserPoint; |
| | | import com.ruoyi.account.api.model.UserPointCopy; |
| | | import com.ruoyi.account.mapper.UserPointCopyMapper; |
| | | import com.ruoyi.account.service.AppUserService; |
| | | import com.ruoyi.account.service.UserPointService; |
| | | import com.ruoyi.account.vo.TransferPoint; |
| | |
| | | public class UserPointController extends BaseController { |
| | | @Resource |
| | | private UserPointService userPointService; |
| | | @Resource |
| | | private UserPointCopyMapper userPointCopyMapper; |
| | | @Resource |
| | | private AppUserService appUserService; |
| | | @Resource |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/saveUserPointCopy") |
| | | public R saveUserPointCopy(@RequestBody UserPointCopy userPointCopy) { |
| | | userPointCopyMapper.insert(userPointCopy); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @DeleteMapping("/deleteUserPointCopy") |
| | | public R deleteUserPointCopy(@RequestParam Long orderId) { |
| | | userPointCopyMapper.delete(new LambdaQueryWrapper<UserPointCopy>() |
| | | .eq(UserPointCopy::getObjectId, orderId)); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 积分统计 |