package com.ruoyi.goods.service.lottery;
|
|
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.dto.MgtLotteryEventEditDTO;
|
import com.ruoyi.goods.domain.dto.MgtLotteryEventJoinUserPageDTO;
|
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> {
|
|
|
/**
|
* 获取抽奖活动详情
|
*
|
* @param id
|
* @return
|
*/
|
LotteryEventVo getLotteryEvent(String id);
|
|
|
/**
|
* 抽奖操作
|
*
|
* @param id
|
* @return
|
*/
|
R lotteryDraw(String id);
|
|
|
/**
|
* 获取APP抽奖列表
|
*
|
* @param page
|
* @param userId
|
* @return
|
*/
|
List<AppLotteryEventPageVo> pageAppLotteryEvent(Page<AppLotteryEventPageVo> page, Long userId);
|
|
|
/**
|
* 获取门店的抽奖列表
|
*
|
* @param page
|
* @return
|
*/
|
List<ShopLotteryDrawListVo> getShopLotteryDrawList(Page<ShopLotteryDrawListVo> page, Long shopId);
|
|
/**
|
* 平台添加抽奖活动
|
* @param dto
|
* @return
|
*/
|
R<ShopLotteryDrawVo> editLotteryEvent(MgtLotteryEventEditDTO dto);
|
|
/**
|
* 分页查询抽奖活动
|
* @param page
|
* @param dto
|
* @return
|
*/
|
List<MgtLotteryEventPageVo> pageMgtLotteryEvent(Page<MgtLotteryEventPageVo> page, MgtLotteryEventPageDto dto);
|
|
/**
|
* 查看抽奖活动详情
|
* @param id
|
* @return
|
*/
|
R<MgtLotteryEventDetailVO> getLotteryEventDetailById(String id);
|
|
/**
|
* 删除抽奖活动
|
* @param id
|
* @return
|
*/
|
R deleteMgtLotteryEvent(String id);
|
|
/**
|
* 立即结束抽奖活动
|
* @param id
|
* @return
|
*/
|
R endImmediatelyLotteryEvent(String id);
|
}
|