| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.api.web.mall; |
| | | |
| | | import com.doumee.api.web.ApiController; |
| | | import com.doumee.config.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.Integral; |
| | | import com.doumee.dao.web.dto.IntegralRecordDTO; |
| | | import com.doumee.dao.web.response.IntegralDataResponse; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | 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; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2026/1/14 16:53 |
| | | */ |
| | | @Api(tags = "积åä¿¡æ¯ä¸å¡") |
| | | @Trace(exclude = true) |
| | | @RestController |
| | | @RequestMapping("/web/integral") |
| | | @Slf4j |
| | | public class IntegralApi extends ApiController { |
| | | |
| | | @LoginRequired |
| | | @ApiOperation("è·åç¨æ·ç积åè®°å½") |
| | | @PostMapping("/findIntegralRecordPage") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | }) |
| | | public ApiResponse<PageData<Integral>> findIntegralRecordPage (@RequestBody PageWrap<IntegralRecordDTO> pageWrap) { |
| | | return ApiResponse.success(integralService.findIntegralRecordPage(pageWrap)); |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation("è·åç¨æ·å©ä½ç§¯åä¸å¾
æ¸
空积åä¿¡æ¯") |
| | | @PostMapping("/getIntegralData") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "ç¨æ·tokenå¼", required = true), |
| | | }) |
| | | public ApiResponse<IntegralDataResponse> getIntegralData (@RequestBody IntegralRecordDTO dto) { |
| | | return ApiResponse.success(integralService.getIntegralData(dto)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |