| | |
| | | package com.talentcard.server.business.admin; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import com.talentcard.server.business.PageResult; |
| | |
| | | return ApiResponse.success(service.packageDetail(packageId)); |
| | | } |
| | | |
| | | @Operation(summary = "票包适用商家选项", description = "票包表单的「适用商家」下拉,只返回启用的观影服务商家") |
| | | @GetMapping("/merchant-options") |
| | | public ApiResponse<List<Map<String, Object>>> merchantOptions( |
| | | @Parameter(description = "商家名称关键词") @RequestParam(required = false) String keyword |
| | | ) { |
| | | return ApiResponse.success(service.merchantOptions(keyword)); |
| | | } |
| | | |
| | | @Operation(summary = "查询票包库存", description = "查看指定票包兑换码总量、可发放、锁定、已发放、已使用和作废数量") |
| | | @GetMapping("/{packageId}/stock") |
| | | public ApiResponse<Map<String, Object>> stock(@Parameter(description = "票包ID") @PathVariable Long packageId) { |