task_nature_router.go 648 字节
package routers

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

func init() {
	beego.Router("/task-natures/", &controllers.TaskNatureController{}, "Post:CreateTaskNature")
	beego.Router("/task-natures/:taskNatureId", &controllers.TaskNatureController{}, "Put:UpdateTaskNature")
	beego.Router("/task-natures/:taskNatureId", &controllers.TaskNatureController{}, "Get:GetTaskNature")
	beego.Router("/task-natures/:taskNatureId", &controllers.TaskNatureController{}, "Delete:RemoveTaskNature")
	beego.Router("/task-natures/", &controllers.TaskNatureController{}, "Get:ListTaskNature")
}