package admin import ( "blazing/cool" "blazing/modules/config/service" ) type TaskController struct { *cool.Controller } func init() { // 注册路由 cool.RegisterController(&TaskController{ &cool.Controller{ Prefix: "/admin/config/task", Api: []string{"Add", "Delete", "Update", "Info", "List", "Page"}, Service: service.NewTaskService(), }, }) }