Initial commit
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"videoweb/web/api/web_acc"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// 主后台路由
|
||||
func MainWebRouter(router *gin.RouterGroup) {
|
||||
login := router.Group("/login")
|
||||
{
|
||||
login.POST("/acc", web_acc.AccLogin)
|
||||
login.POST("/bind", web_acc.BindQurl)
|
||||
login.POST("/slogin", web_acc.SLogin)
|
||||
}
|
||||
|
||||
role := router.Group("/role")
|
||||
{
|
||||
role.GET("/list", web_acc.RoleGetList)
|
||||
role.POST("/add", web_acc.RoleAdd)
|
||||
role.POST("/del", web_acc.RoleDel)
|
||||
role.GET("/getinfo", web_acc.RoleGetInfo)
|
||||
role.POST("/up", web_acc.RoleUp)
|
||||
role.POST("/enable", web_acc.RoleEnable)
|
||||
role.POST("/drop", web_acc.RoleGetDrop)
|
||||
role.GET("/getauth", web_acc.RoleGetAuth)
|
||||
role.POST("/upauth", web_acc.RoleUpAuth)
|
||||
}
|
||||
acc := router.Group("/acc")
|
||||
{
|
||||
acc.GET("/list", web_acc.AccGetList)
|
||||
acc.POST("/add", web_acc.AccAdd)
|
||||
acc.POST("/del", web_acc.AccDel)
|
||||
acc.GET("/getinfo", web_acc.AccGetInfo)
|
||||
acc.POST("/up", web_acc.AccUp)
|
||||
acc.GET("/getstatus", web_acc.AccGetStatus)
|
||||
acc.POST("/savestatus", web_acc.AccSaveStatus)
|
||||
acc.POST("/ops", web_acc.GetAccOpRecords)
|
||||
acc.POST("/uppwd", web_acc.AccUpdatePwd)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user