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.
|
|
|
|
package personnel
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"hr_server/api/version1"
|
|
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//员工档案
|
|
|
|
|
func (p *PersonnelRoute) InitRouterGroup(route *gin.RouterGroup) {
|
|
|
|
|
apiRouter := route.Group("staff")
|
|
|
|
|
var apiHandle = version1.AppApiInlet.StaffApi
|
|
|
|
|
{
|
|
|
|
|
apiRouter.GET("", apiHandle.Index) //入口
|
|
|
|
|
apiRouter.POST("", apiHandle.Index) //入口
|
|
|
|
|
apiRouter.POST("stafflist", apiHandle.StaffList) //人员列表
|
|
|
|
|
apiRouter.POST("addstaff", apiHandle.AddStaff) //添加人员档案
|
|
|
|
|
apiRouter.POST("allocationofrights", apiHandle.AllocationOfRights) //分配权限
|
|
|
|
|
|
|
|
|
|
apiRouter.POST("kingdeehr", apiHandle.Kingdee) //对接金蝶HR系统
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|