cooperation_mode_router.go 1.5 KB
package routers

import (
	"github.com/beego/beego/v2/server/web"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/port/beego/controllers"
)

func init() {
	web.Router("/cooperation-modes/", &controllers.CooperationModeController{}, "Post:CreateCooperationMode")                     // 创建共创模式
	web.Router("/cooperation-modes/:cooperationModeId", &controllers.CooperationModeController{}, "Put:UpdateCooperationMode")    // 编辑共创模式
	web.Router("/cooperation-modes/:cooperationModeId", &controllers.CooperationModeController{}, "Get:GetCooperationMode")       // 获取共创模式详情
	web.Router("/cooperation-modes/:cooperationModeId", &controllers.CooperationModeController{}, "Delete:RemoveCooperationMode") // 删除共创模式
	web.Router("/cooperation-modes/batch-remove", &controllers.CooperationModeController{}, "Post:BatchRemoveCooperationMode")    // 批量删除共创模式
	web.Router("/cooperation-modes/operate", &controllers.CooperationModeController{}, "Post:OperateCooperationMode")             // 启用或禁用共创模式
	web.Router("/cooperation-modes/batch-operate", &controllers.CooperationModeController{}, "Post:BatchOperateCooperationMode")  // 批量启用或禁用共创模式
	web.Router("/cooperation-modes/search", &controllers.CooperationModeController{}, "Post:SearchCooperationMode")               // 查找共创模式
	web.Router("/cooperation-modes/", &controllers.CooperationModeController{}, "Get:ListCooperationMode")                        // 返回共创模式列表
}