users_router.go 526 字节
package routers

import (
	"github.com/astaxie/beego"
	"github.com/tiptok/godevp/pkg/port/beego/controllers"
)

func init() {
	beego.Router("/v1/user/", &controllers.UsersController{}, "Post:CreateUsers")
	beego.Router("/v1/user/:Id", &controllers.UsersController{}, "Put:UpdateUsers")
	beego.Router("/v1/user/:Id", &controllers.UsersController{}, "Get:GetUsers")
	beego.Router("/v1/user/:Id", &controllers.UsersController{}, "Delete:RemoveUsers")
	beego.Router("/v1/user/", &controllers.UsersController{}, "Get:ListUsers")
}