User.go 465 B

1234567891011121314
  1. package routers
  2. import (
  3. "ColdVerify_server/controllers"
  4. beego "github.com/beego/beego/v2/server/web"
  5. )
  6. func init() {
  7. beego.Router("/User/List", &controllers.UserController{}, "*:List") // 用户列表
  8. beego.Router("/User/Add", &controllers.UserController{}, "*:Add") // 添加用户
  9. beego.Router("/User/Up", &controllers.UserController{}, "*:Up") // 编辑用户
  10. beego.Router("/User/Del", &controllers.UserController{}, "*:Del") // 删除用户
  11. }