You've already forked FrameTour-BE
- 添加券码批次管理和券码管理相关接口和实现 - 新增券码生成、领取、使用等核心业务逻辑 - 实现了全场免费、商品降价、商品打折三种优惠模式 - 添加了券码状态管理和统计功能 - 优化了数据库表结构和索引 - 编写了详细的开发文档和使用示例
27 lines
918 B
Java
27 lines
918 B
Java
package com.ycwl.basic.voucher.service;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.ycwl.basic.voucher.dto.req.VoucherBatchCreateReq;
|
|
import com.ycwl.basic.voucher.dto.req.VoucherBatchQueryReq;
|
|
import com.ycwl.basic.voucher.dto.resp.VoucherBatchResp;
|
|
import com.ycwl.basic.voucher.dto.resp.VoucherBatchStatsResp;
|
|
import com.ycwl.basic.voucher.entity.VoucherBatchEntity;
|
|
|
|
public interface VoucherBatchService {
|
|
|
|
Long createBatch(VoucherBatchCreateReq req);
|
|
|
|
Page<VoucherBatchResp> queryBatchList(VoucherBatchQueryReq req);
|
|
|
|
VoucherBatchResp getBatchDetail(Long id);
|
|
|
|
VoucherBatchStatsResp getBatchStats(Long id);
|
|
|
|
void updateBatchStatus(Long id, Integer status);
|
|
|
|
void updateBatchClaimedCount(Long batchId);
|
|
|
|
void updateBatchUsedCount(Long batchId);
|
|
|
|
VoucherBatchEntity getAvailableBatch(Long scenicId, Long brokerId);
|
|
} |