zhibo/archive/Zhibo/zhibo-1201/小张/待开发功能/抽奖奖品管理.md
2025-12-21 17:32:12 +08:00

38 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 抽奖奖品管理
## 功能说明
抽奖管理 - 抽奖奖品管理,用于管理转盘抽奖的奖品列表。
## 已完成
- ✅ 数据库表eb_lottery_prize, eb_lottery_config已创建并插入测试数据
- ✅ 后端ControllerLotteryPrizeController.java- 简化版直接查询数据库
- ✅ 前端界面admin/src/views/lottery/prize/index.vue
- ✅ 前端APIadmin/src/api/lotteryPrize.js
- ✅ 前端路由配置admin/src/router/modules/lottery.js
- ✅ 系统菜单配置eb_system_menu: id=560
- ✅ 角色权限配置eb_system_role_menu: 角色1,5,6已分配权限
## 功能列表
- ✅ 列表展示(复选框、奖品名、奖品图标、奖品值、奖品类型、是否启用)
- ✅ 搜索(奖品名、启用状态)
- ✅ 添加奖品弹窗(奖品名、奖品类型下拉、钻石数量、是否有效开关)
- ✅ 编辑奖品弹窗(奖品名、奖品类型下拉、钻石数量、是否有效复选框)
- ✅ 修改转盘游戏参数弹窗(抽奖消耗钻石)
- ✅ 状态开关切换
- ✅ 分页功能
## 访问路径
- 前端:抽奖管理 → 抽奖奖品管理
- 路由:/lottery/prize
- 接口:
- GET /api/admin/lottery/prize/list
- POST /api/admin/lottery/prize/create
- POST /api/admin/lottery/prize/update
- POST /api/admin/lottery/prize/updateStatus
- GET /api/admin/lottery/prize/config
- POST /api/admin/lottery/prize/config/save
## 数据库表
- eb_lottery_prizeid, prize_name, prize_icon, prize_value, prize_type, status, sort, create_time, update_time
- eb_lottery_configid, config_key, config_value, remark, create_time, update_time