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.
29 lines
1.1 KiB
29 lines
1.1 KiB
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) //岗位定性考核列表
|
|
}
|
|
}
|
|
|