Pu Zhibing
2 天以前 1730a7fc4bb96f258d9dc8dec2e629cadbfdefc0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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);
}