access_router.go 576 字节
package routers

import (
	"github.com/astaxie/beego"
	"gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/port/beego/controllers"
)

func init() {
	beego.Router("/v1/access/", &controllers.AccessController{}, "POST:CreateAccess")
	beego.Router("/v1/access/:accessId", &controllers.AccessController{}, "PUT:UpdateAccess")
	beego.Router("/v1/access/:accessId", &controllers.AccessController{}, "GET:GetAccess")
	beego.Router("/v1/access/:accessId", &controllers.AccessController{}, "DELETE:DeleteAccess")
	beego.Router("/v1/access/", &controllers.AccessController{}, "GET:ListAccess")
}