| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.goods.api.domain.LotteryEvent; |
| | | import com.ruoyi.goods.domain.vo.AppLotteryEventPageVo; |
| | | import com.ruoyi.goods.domain.vo.LotteryEventVo; |
| | | import com.ruoyi.goods.api.domain.TLotteryEvent; |
| | | import com.ruoyi.goods.api.domain.TLotteryEventPrize; |
| | | import com.ruoyi.goods.domain.dto.MgtLotteryEventEditDTO; |
| | | import com.ruoyi.goods.domain.dto.MgtLotteryEventPageDto; |
| | | import com.ruoyi.goods.domain.vo.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @author zhibing.pu |
| | | * @Date 2025/5/8 18:05 |
| | | */ |
| | | public interface ILotteryEventService extends IService<LotteryEvent> { |
| | | public interface ILotteryEventService extends IService<TLotteryEvent> { |
| | | |
| | | |
| | | /** |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | LotteryEventVo getLotteryEvent(String id); |
| | | LotteryEventVo getLotteryEvent(String id, String orderId); |
| | | |
| | | |
| | | /** |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | R lotteryDraw(String id); |
| | | R<TLotteryEventPrize> lotteryDraw(String id, String orderId); |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | List<AppLotteryEventPageVo> pageAppLotteryEvent(Page<AppLotteryEventPageVo> page, Long userId); |
| | | |
| | | |
| | | /** |
| | | * 获取门店的抽奖列表 |
| | | * |
| | | * @param page |
| | | * @return |
| | | */ |
| | | List<ShopLotteryDrawListVo> getShopLotteryDrawList(Page<ShopLotteryDrawListVo> page, Long shopId); |
| | | |
| | | /** |
| | | * 平台添加抽奖活动 |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | R editLotteryEvent(MgtLotteryEventEditDTO dto); |
| | | |
| | | /** |
| | | * 分页查询抽奖活动 |
| | | * @param page |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | Page<MgtLotteryEventPageVo> pageMgtLotteryEvent( MgtLotteryEventPageDto dto); |
| | | |
| | | /** |
| | | * 查看抽奖活动详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | R<MgtLotteryEventDetailVO> getLotteryEventDetailById(String id); |
| | | |
| | | /** |
| | | * 删除抽奖活动 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | R deleteMgtLotteryEvent(String id); |
| | | |
| | | /** |
| | | * 立即结束抽奖活动 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | R endImmediatelyLotteryEvent(String id); |
| | | } |