You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
3.4 KiB
70 lines
3.4 KiB
|
3 years ago
|
package systemadmin
|
||
|
|
|
||
|
|
import (
|
||
|
|
sysAdmin "github.com/flipped-aurora/gin-vue-admin/server/api/admin"
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
type GroupMangMentRouter struct{}
|
||
|
|
|
||
|
|
func (g *GroupMangMentRouter) InitRouter(Router *gin.RouterGroup) {
|
||
|
|
adminRouter := Router.Group("branchfactory")
|
||
|
|
var authorityApi = sysAdmin.ApiGroupApp.GroupManageMent.BranchFactoryApi.BranchFactory
|
||
|
|
{
|
||
|
|
adminRouter.POST("", authorityApi.Index) //分厂档案入口
|
||
|
|
adminRouter.POST("/", authorityApi.Index) //分厂档案入口
|
||
|
|
adminRouter.GET("", authorityApi.Index) //分厂档案入口
|
||
|
|
adminRouter.GET("/", authorityApi.Index) //分厂档案入口
|
||
|
|
|
||
|
|
adminRouter.POST("branchfactorylist", authorityApi.BranchFactoryList) //获取分厂列表
|
||
|
|
adminRouter.POST("addbranchfactory", authorityApi.AddBranchFactory) //添加分厂
|
||
|
|
adminRouter.POST("getbranchfactory", authorityApi.GetBranchFactory) //获取分厂内容
|
||
|
|
adminRouter.POST("eitebranchfactory", authorityApi.EiteBranchFactory) //修改分厂内容
|
||
|
|
adminRouter.POST("delbranchfactory", authorityApi.DelBranchFactory) //删除分厂内容
|
||
|
|
}
|
||
|
|
workRouter := Router.Group("workshopsection")
|
||
|
|
var workApi = sysAdmin.ApiGroupApp.GroupManageMent.BranchFactoryApi.WorkshopSectionApi
|
||
|
|
{
|
||
|
|
workRouter.POST("", workApi.Index) //工段档案入口
|
||
|
|
workRouter.POST("/", workApi.Index) //工段档案入口
|
||
|
|
workRouter.GET("", workApi.Index) //工段档案入口
|
||
|
|
workRouter.GET("/", workApi.Index) //工段档案入口
|
||
|
|
|
||
|
|
workRouter.POST("worksection", workApi.WorKSection) //获取工段列表
|
||
|
|
workRouter.POST("addworksection", workApi.AddWorkSectionCont) //添加工段信息
|
||
|
|
workRouter.POST("getworksection", workApi.GetWorkSectionCont) //获取工段信息
|
||
|
|
workRouter.POST("eiteworksection", workApi.EiteWorkSectionCont) //编辑工段信息
|
||
|
|
workRouter.POST("delworksection", workApi.DelWorkSection) //删除工段信息
|
||
|
|
}
|
||
|
|
dutiesRouter := Router.Group("duties")
|
||
|
|
var dutiesApi = sysAdmin.ApiGroupApp.GroupManageMent.BranchFactoryApi.DutiesApi
|
||
|
|
{
|
||
|
|
dutiesRouter.POST("", dutiesApi.Index) //职务档案入口
|
||
|
|
dutiesRouter.POST("/", dutiesApi.Index) //职务档案入口
|
||
|
|
dutiesRouter.GET("", dutiesApi.Index) //职务档案入口
|
||
|
|
dutiesRouter.GET("/", dutiesApi.Index) //职务档案入口
|
||
|
|
|
||
|
|
dutiesRouter.POST("dutiesction", dutiesApi.DutiesList) //获取职务列表
|
||
|
|
dutiesRouter.POST("adddutiesction", dutiesApi.AddDutiesCont) //添加职务信息
|
||
|
|
dutiesRouter.POST("getdutiesction", dutiesApi.GetDutiesCont) //获取职务信息
|
||
|
|
dutiesRouter.POST("eitedutiesction", dutiesApi.EiteDutiesCont) //编辑职务信息
|
||
|
|
dutiesRouter.POST("deldutiesction", dutiesApi.DelDutiesCont) //删除职务信息
|
||
|
|
}
|
||
|
|
|
||
|
|
teamRouter := Router.Group("team")
|
||
|
|
var teamApi = sysAdmin.ApiGroupApp.GroupManageMent.BranchFactoryApi.TeamApi
|
||
|
|
{
|
||
|
|
teamRouter.POST("", teamApi.Index) //班组档案入口
|
||
|
|
teamRouter.POST("/", teamApi.Index) //班组档案入口
|
||
|
|
teamRouter.GET("", teamApi.Index) //班组档案入口
|
||
|
|
teamRouter.GET("/", teamApi.Index) //班组档案入口
|
||
|
|
|
||
|
|
teamRouter.POST("teamapi", teamApi.TeamApiList) //获取班组列表
|
||
|
|
teamRouter.POST("addteamapi", teamApi.AddTeamContApi) //添加班组信息
|
||
|
|
teamRouter.POST("getteamapi", teamApi.GetTeamContApi) //获取班组信息
|
||
|
|
teamRouter.POST("eiteteamapi", teamApi.EiteTeamContApi) //编辑班组信息
|
||
|
|
teamRouter.POST("delteamapi", teamApi.DelTeamCont) //删除班组信息
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|