|
|
|
|
package com.youlai.boot.mini.controller;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.youlai.boot.common.annotation.Log;
|
|
|
|
|
import com.youlai.boot.common.enums.ActionTypeEnum;
|
|
|
|
|
import com.youlai.boot.common.enums.LogModuleEnum;
|
|
|
|
|
import com.youlai.boot.common.result.PageResult;
|
|
|
|
|
import com.youlai.boot.mini.model.query.PointAccountQuery;
|
|
|
|
|
import com.youlai.boot.mini.model.vo.PointAccountVO;
|
|
|
|
|
import com.youlai.boot.mini.service.MiniPointAccountService;
|
|
|
|
|
import com.youlai.boot.mini.service.MiniPointRecordService;
|
|
|
|
|
import com.youlai.boot.mini.service.MiniPointRuleService;
|
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.springdoc.core.annotations.ParameterObject;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
@Tag(name = "用户端积分服务相关接口")
|
|
|
|
|
@RestController
|
|
|
|
|
@RequestMapping("/api/v1/mini/user/point")
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
|
public class PointController {
|
|
|
|
|
|
|
|
|
|
private final MiniPointAccountService pointAccountService;
|
|
|
|
|
private final MiniPointRuleService pointRuleService;
|
|
|
|
|
private final MiniPointRecordService recordService;
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "查询用户积分")
|
|
|
|
|
@GetMapping(value = "/getListPage")
|
|
|
|
|
@PreAuthorize("@ss.hasPerm('mini:point:account:list')")
|
|
|
|
|
@Log(module = LogModuleEnum.POINT_ACCOUNT, value = ActionTypeEnum.LIST)
|
|
|
|
|
public PageResult<PointAccountVO> page(@ParameterObject PointAccountQuery queryParams) {
|
|
|
|
|
IPage<PointAccountVO> result = pointAccountService.page(queryParams);
|
|
|
|
|
return PageResult.success(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询用户积分
|
|
|
|
|
//查询积分明细
|
|
|
|
|
//查询积分统计
|
|
|
|
|
|
|
|
|
|
//用户注册赠送积分
|
|
|
|
|
//每日签到
|
|
|
|
|
//分享奖励
|
|
|
|
|
//AI生成图片扣费
|
|
|
|
|
//AI生成视频扣费
|
|
|
|
|
|
|
|
|
|
}
|