From 47b901938213f609fc378d1e7666a516ff7c7ccf Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期五, 26 九月 2025 14:35:36 +0800
Subject: [PATCH] 开发部分接口鉴权

---
 ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/lottery/ILotteryEventService.java |   85 +++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 83 insertions(+), 2 deletions(-)

diff --git a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/lottery/ILotteryEventService.java b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/lottery/ILotteryEventService.java
index 39fb365..176a0f1 100644
--- a/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/lottery/ILotteryEventService.java
+++ b/ruoyi-modules/ruoyi-goods/src/main/java/com/ruoyi/goods/service/lottery/ILotteryEventService.java
@@ -1,11 +1,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.goods.api.domain.LotteryEvent;
+import com.ruoyi.common.core.domain.R;
+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, String orderId);
+	
+	
+	/**
+	 * 抽奖操作
+	 *
+	 * @param id
+	 * @return
+	 */
+	R<TLotteryEventPrize> lotteryDraw(String id, String orderId);
+	
+	
+	/**
+	 * 获取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 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);
 }

--
Gitblit v1.7.1