|
|
|
|
package postseting
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"key_performance_indicators/api/version1"
|
|
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// 岗位考核PC端
|
|
|
|
|
func (a *ApiRouter) RouterGroupPc(router *gin.RouterGroup) {
|
|
|
|
|
apiRouter := router.Group("postpc")
|
|
|
|
|
|
|
|
|
|
var methodBinding = version1.AppApiEntry.PostPcApi
|
|
|
|
|
{
|
|
|
|
|
apiRouter.GET("", methodBinding.Index) //入口
|
|
|
|
|
apiRouter.POST("", methodBinding.Index) //入口
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("get_scheme_list", methodBinding.GetSchemeList) //获取岗位考核方案列表
|
|
|
|
|
apiRouter.POST("submit_post_scheme", methodBinding.SubmitPostScheme) //提交岗位考核方案
|
|
|
|
|
apiRouter.POST("get_post_scheme", methodBinding.GetPostScheme) //获取岗位方案内容列表
|
|
|
|
|
apiRouter.POST("get_copy_sheme_infor", methodBinding.GetCopyShemeInfor) //获取复制岗位考核方案
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("have_post_target", methodBinding.HavePostTarget) //获取岗位指标(添加方案时使用)
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("set_evaluation_objectives", methodBinding.SetEvaluationObjectives) //提交岗位定量目标设定
|
|
|
|
|
apiRouter.POST("post_config_list", methodBinding.PostConfigList) //岗位定量考核目标列表
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("post_config_list_news", methodBinding.PostConfigListNews) //岗位定量考核目标列表(新版)
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("eite_quantitative_config", methodBinding.EiteQuantitativeConfig) //修改考核目标设置
|
|
|
|
|
apiRouter.POST("del_quantitative_config", methodBinding.DelQuantitativeConfig) //删除考核目标设置
|
|
|
|
|
apiRouter.POST("lookposttiveconfig", methodBinding.LookPosttiveConfig) // 查看定量考核目标设定
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("new_del_quantitative_config", methodBinding.NewDelQuantitativeConfig) //删除考核目标设置(新版)
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("post_people_list", methodBinding.PeopleConfigList) //个人定量考核目标列表
|
|
|
|
|
apiRouter.POST("set_eval_object_man", methodBinding.SetEvaluationObjectivMan) //人员定量目标设定
|
|
|
|
|
apiRouter.POST("lookpeopleconfig", methodBinding.LookPeopleConfig) // 查看人员定量考核目标设定
|
|
|
|
|
apiRouter.POST("eite_quant_man_config", methodBinding.EiteQuantitativeManConfig) //修改人员考核目标设置
|
|
|
|
|
apiRouter.POST("new_del_quantman_config", methodBinding.NewDelQuantitativeManConfig) //删除人员考核目标设置(新版)
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
岗位定性指标
|
|
|
|
|
*/
|
|
|
|
|
apiRouter.POST("getpostabouttarget", methodBinding.GetPostAboutTarget) //获取岗位相关指标
|
|
|
|
|
apiRouter.POST("quote_department_target", methodBinding.QuoteDepartmentTarget) //引用指标部门指标
|
|
|
|
|
apiRouter.POST("get_post_target", methodBinding.GetPostTarget) //获取岗位指标详情
|
|
|
|
|
apiRouter.POST("add_post_target", methodBinding.AddPostTarget) //添加岗位指标
|
|
|
|
|
apiRouter.POST("dit_post_target", methodBinding.EditPostTarget) //编辑岗位指标
|
|
|
|
|
apiRouter.POST("get_target_about_depart_to_post_man", methodBinding.GetTargetAboutDepartToPostMan) //获取岗位指标关联部门相关岗位及提报人
|
|
|
|
|
apiRouter.POST("add_post_target_cont", methodBinding.AddPostTargetCont) //根据指标添加岗位细则
|
|
|
|
|
apiRouter.POST("edit_scheme_state_of_del", methodBinding.EditSchemeStateOfDel) //编辑方案版本状态或删除
|
|
|
|
|
apiRouter.POST("posttargetsunlist", methodBinding.PostTargetSunList) //根据指标获取岗位定性指标细则列表
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("getnew_target_depart_postman", methodBinding.GetNewTargetAboutDepartToPostMan) //获取岗位指标关联部门相关岗位及提报人(新版)
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
岗位定性指标子栏目
|
|
|
|
|
*/
|
|
|
|
|
apiRouter.POST("get_sun_target_info", methodBinding.GetSunTargetInfo) //获取岗位子栏目详情
|
|
|
|
|
apiRouter.POST("edit_son_target_cont", methodBinding.EditSonTargetCont) //编辑岗位子栏目内容
|
|
|
|
|
apiRouter.POST("del_son_target_cont", methodBinding.DelSonTargetCont) //删除子栏目
|
|
|
|
|
apiRouter.POST("table_base_post_target", methodBinding.TableBasePostTarget) //根据指标获取岗位指标栏目
|
|
|
|
|
apiRouter.POST("get_new_table_departMan", methodBinding.GetNewTableDepartToPostMan) //获取岗位栏目关联部门相关岗位及提报人(新版)
|
|
|
|
|
apiRouter.POST("edit_newson_target_cont", methodBinding.EditSonTargetContNew) //编辑岗位子栏目内容(新版)
|
|
|
|
|
/*
|
|
|
|
|
定性指标细则
|
|
|
|
|
*/
|
|
|
|
|
apiRouter.POST("addpostdetacont", methodBinding.AddOneTargetD) //添加单条定性指标细则
|
|
|
|
|
apiRouter.POST("eidtposttardetailsstrte", methodBinding.EidtPostTarDetailsStrte) //删除指标细则
|
|
|
|
|
apiRouter.POST("editdeatilscont", methodBinding.EditDeatilsCont) //编辑定性指标细则内容
|
|
|
|
|
apiRouter.POST("getdetailscont", methodBinding.GetDetailsCont) //获取指标细则内容
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("getdetailslist", methodBinding.GetDetailsList) //根据指标获取细则列表
|
|
|
|
|
apiRouter.POST("adddetailslist", methodBinding.AddDetailsList) //根据指标添加细则列表
|
|
|
|
|
apiRouter.POST("edit_post_detailscont", methodBinding.EditPostDetailsCont) //编辑岗位指标细则(新版)
|
|
|
|
|
apiRouter.POST("addtabledetailslist", methodBinding.AddTableDetailsList) //根据栏目添加细则列表
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
针对岗位指标特殊要求API
|
|
|
|
|
*/
|
|
|
|
|
apiRouter.POST("search_orgpost_list", methodBinding.SearchOrgPostList) //搜索岗位列表
|
|
|
|
|
apiRouter.POST("get_orgary", methodBinding.GetOrgAry) //获取行政组织级联数组
|
|
|
|
|
apiRouter.POST("new_add_posttarget", methodBinding.NewAddPostTarget) //添加岗位指标(新)
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("addposttargetcont", methodBinding.NewAddPostTargetCont) //添加岗位指标(新改版)
|
|
|
|
|
apiRouter.POST("neweditposttarget", methodBinding.NewEditPostTarget) //编辑岗位指标(新版)
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("get_organdpost_ary", methodBinding.GetOrgAndPostAry) //获取行政组织级联数组和岗位
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
岗位指标
|
|
|
|
|
*/
|
|
|
|
|
apiRouter.POST("get_posttarget_list", methodBinding.GetPostTargetList) //获取岗位指标列表
|
|
|
|
|
apiRouter.POST("set_posttarget_state", methodBinding.SetPostTargetState) //设置岗位指标状态
|
|
|
|
|
}
|
|
|
|
|
}
|