All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
feat(config): 修改店铺配置管理API前缀 统一管理后台API路径规范,将店铺配置相关接口前缀从"config/shop" 修改为"/admin/config/shop",以更好地匹配管理后台路由结构。 ```
23 lines
377 B
Go
23 lines
377 B
Go
package admin
|
|
|
|
import (
|
|
"blazing/cool"
|
|
"blazing/modules/config/service"
|
|
)
|
|
|
|
type ShopController struct {
|
|
*cool.Controller
|
|
}
|
|
|
|
func init() {
|
|
|
|
// 注册路由
|
|
cool.RegisterController(&ShopController{
|
|
&cool.Controller{
|
|
Prefix: "/admin/config/shop",
|
|
Api: []string{"Add", "Delete", "Update", "Info", "List", "Page"},
|
|
Service: service.NewShopService(),
|
|
},
|
|
})
|
|
}
|