package routers import ( "Cold_Api/conf" "Cold_Api/controllers" beego "github.com/beego/beego/v2/server/web" ) func init() { ns := beego.NewNamespace(conf.Version, beego.NSRouter("/UpFileToken", &controllers.UpFileController{}, "*:ConfigUpFileToken"), beego.NSRouter("/Flow_Pool", &controllers.UserController{}, "*:Flow_Pool"), // 流量池 // 系统日志 beego.NSRouter("/System/LogsClass", &controllers.LogsController{}, "*:LogsClass"), // 获取未读消息 beego.NSRouter("/System/LogsList", &controllers.LogsController{}, "*:LogsList"), // 获取未读消息 // 操作日志 beego.NSRouter("/System/UserLogsClass", &controllers.LogsController{}, "*:UserLogsClass"), // 获取未读消息 beego.NSRouter("/System/UserLogsList", &controllers.LogsController{}, "*:UserLogsList"), // 获取未读消息 ) beego.AddNamespace(ns) }