feat(config): 更新商品配置模型和任务服务查询功能

- 将商品描述字段从 Description 改为 Desc,优化字段命名
- 将价格字段类型从 uint32 改为 int32,支持负数价格表示
- 更新价格信息注释说明,明确 -1 代表不允许购买的含义
- 移除商品分类字段,简化商品配置结构
- 移除备注信息字段,精简数据模型
- 为任务服务添加关键词
This commit is contained in:
2026-01-09 21:12:39 +08:00
parent caa5fc37b9
commit e218d4602f
4 changed files with 50 additions and 11 deletions

View File

@@ -0,0 +1,22 @@
package admin
import (
"blazing/cool"
"blazing/modules/config/service"
)
type ShopController struct {
*cool.Controller
}
func init() {
// 注册路由
cool.RegisterController(&ShopController{
&cool.Controller{
Prefix: "/admin/game/shop",
Api: []string{"Add", "Delete", "Update", "Info", "List", "Page"},
Service: service.NewShopService(),
},
})
}