task_router.go
1.2 KB
package routers
import (
"github.com/astaxie/beego"
"gitlab.fjmaimaimai.com/linmadan/mmm-worth/pkg/port/beego/controllers"
)
func init() {
beego.Router("/tasks/:taskId/rob", &controllers.TaskController{}, "Post:RobTask")
beego.Router("/tasks/:taskId/bid", &controllers.TaskController{}, "Post:BidTask")
beego.Router("/tasks/:taskId/apply-complete", &controllers.TaskController{}, "Post:ApplyCompleteTask")
beego.Router("/tasks/:taskId/release", &controllers.TaskController{}, "Post:ReleaseTask")
beego.Router("/tasks/:taskId/choose-successful-bidder", &controllers.TaskController{}, "Post:ChooseSuccessfulBidder")
beego.Router("/tasks/:taskId/dff", &controllers.TaskController{}, "Post:OffTask")
beego.Router("/tasks/:taskId/acceptance", &controllers.TaskController{}, "Post:AcceptanceTask")
beego.Router("/tasks/search", &controllers.TaskController{}, "Post:SearchTask")
beego.Router("/tasks/", &controllers.TaskController{}, "Post:CreateTask")
beego.Router("/tasks/:taskId", &controllers.TaskController{}, "Put:UpdateTask")
beego.Router("/tasks/:taskId", &controllers.TaskController{}, "Get:GetTask")
beego.Router("/tasks/:taskId", &controllers.TaskController{}, "Delete:RemoveTask")
beego.Router("/tasks/", &controllers.TaskController{}, "Get:ListTask")
}