| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.system.domain.TUser; |
| | | import com.ruoyi.system.domain.TVipPurchaseRecord; |
| | | import com.ruoyi.system.query.TUserQuery; |
| | | import com.ruoyi.system.query.TVipPurchaseRecordQuery; |
| | | import com.ruoyi.system.service.TVipPurchaseRecordService; |
| | | import com.ruoyi.system.vo.TVipPurchaseRecordVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | 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; |
| | | |
| | |
| | | * @author xiaochen |
| | | * @since 2024-02-29 |
| | | */ |
| | | @Api(tags = "会员购买记录") |
| | | @RestController |
| | | @RequestMapping("/tVipPurchaseRecord") |
| | | public class TVipPurchaseRecordController { |
| | | |
| | | private final TVipPurchaseRecordService vipPurchaseRecordService; |
| | | |
| | | @Autowired |
| | | public TVipPurchaseRecordController(TVipPurchaseRecordService vipPurchaseRecordService) { |
| | | this.vipPurchaseRecordService = vipPurchaseRecordService; |
| | | } |
| | | |
| | | /** |
| | | * 获取会员购买记录分页列表 |
| | | */ |
| | | @ApiOperation(value = "获取会员购买记录分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public AjaxResult<PageInfo<TVipPurchaseRecordVO>> pageList(@RequestBody TVipPurchaseRecordQuery query) { |
| | | return AjaxResult.success(vipPurchaseRecordService.pageList(query)); |
| | | } |
| | | |
| | | } |
| | | |