|
|
|
|
package postrouter
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 岗位指标
|
|
|
|
|
type PostTargetKpiRouter struct{}
|
|
|
|
|
|
|
|
|
|
// 路由绑定
|
|
|
|
|
func (p *PostTargetKpiRouter) InitRouter(Router *gin.RouterGroup) {
|
|
|
|
|
routerApi := Router.Group("postkpi")
|
|
|
|
|
var apiRouter = v1.ApiGroupApp.PositionKpiApi.ApiMethod
|
|
|
|
|
{
|
|
|
|
|
routerApi.POST("", apiRouter.Index) // 入口
|
|
|
|
|
routerApi.GET("", apiRouter.Index) // 入口
|
|
|
|
|
routerApi.POST("addposttarget", apiRouter.AddPostTarget) //添加岗位考核指标
|
|
|
|
|
routerApi.POST("editposttarget", apiRouter.EditPostTarget) //编辑岗位指标
|
|
|
|
|
routerApi.POST("editstate", apiRouter.EditState) //编辑岗位指标状态
|
|
|
|
|
routerApi.POST("posttargetlist", apiRouter.PostTargetList) //岗位考核指标列表
|
|
|
|
|
/*
|
|
|
|
|
岗位定性指标
|
|
|
|
|
*/
|
|
|
|
|
routerApi.POST("targetorglist", apiRouter.TargetOrgList) //获取指标关联的岗位
|
|
|
|
|
routerApi.POST("addposttargetcont", apiRouter.AddPostTargetCont) //添加岗位细则
|
|
|
|
|
routerApi.POST("posttargetsunlist", apiRouter.PostTargetSunList) //岗位定性考核列表
|
|
|
|
|
routerApi.POST("editposttargetaual", apiRouter.EditPostTargetQual) //修改定性指标关联岗位
|
|
|
|
|
/*
|
|
|
|
|
岗位定性指标子栏目
|
|
|
|
|
*/
|
|
|
|
|
routerApi.POST("getsuntargetinfo", apiRouter.GetSunTargetInfo) //获取子栏目内容
|
|
|
|
|
routerApi.POST("eidtsuntargetpost", apiRouter.EidtSunTargetPost) //编辑定性考核子栏目
|
|
|
|
|
routerApi.POST("delsuntarget", apiRouter.DelSunTarget) //删除定性考核指标子栏目
|
|
|
|
|
/*
|
|
|
|
|
定性指标细则
|
|
|
|
|
*/
|
|
|
|
|
routerApi.POST("addpostdetacont", apiRouter.AddPostDetaCont) //添加单条定性指标细则
|
|
|
|
|
routerApi.POST("getdetailscont", apiRouter.GetDetailsCont) //获取指标细则内容
|
|
|
|
|
routerApi.POST("editdeatilscont", apiRouter.EditDeatilsCont) //修改定性考核指标细则
|
|
|
|
|
routerApi.POST("eidtposttardetailsstrte", apiRouter.EidtPostTarDetailsStrte) //删除定性考核指标细则
|
|
|
|
|
}
|
|
|
|
|
}
|