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.
76 lines
2.3 KiB
76 lines
2.3 KiB
package humanResources
|
|
|
|
import (
|
|
"appPlatform/models/modelshr"
|
|
"appPlatform/overall/publicmethod"
|
|
"sync"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// 协程设置
|
|
var syncSeting = sync.WaitGroup{}
|
|
|
|
type ApiMethod struct{}
|
|
|
|
// 人力资源
|
|
func (a *ApiMethod) Index(c *gin.Context) {
|
|
outputCont := publicmethod.MapOut[string]()
|
|
outputCont["index"] = "人力资源入口"
|
|
publicmethod.Result(0, outputCont, c)
|
|
}
|
|
|
|
// 菜单ID
|
|
type MenuIdCont struct {
|
|
MenuId string `json:"menuId"`
|
|
}
|
|
|
|
// 赋权菜单树
|
|
type OrgTreePower struct {
|
|
modelshr.OrgCont
|
|
Status bool `json:"status"`
|
|
Child []OrgTreePower `json:"child"`
|
|
}
|
|
|
|
// 根据权限及搜索条件获取人员列表
|
|
type SearchPowPople struct {
|
|
MenuIdCont
|
|
OrgId int `json:"orgId"`
|
|
Name string `json:"name"`
|
|
Employ []int `json:"employ"`
|
|
Team []int `json:"team"`
|
|
JoinTime string `json:"joinTime"`
|
|
Page int `json:"page"`
|
|
PageSize int `json:"pagesize"`
|
|
Total int `json:"total"`
|
|
OnJob int `json:"onJob"` //是否在职(1:不在职;非1:在职)
|
|
}
|
|
|
|
// 输出人员列表信息
|
|
type SendPowerPeople struct {
|
|
modelshr.ManCont
|
|
OrgAllName string `json:"orgAllName"`
|
|
WorkPostName string `json:"workpostname"` //工段名称
|
|
PositionName string `json:"positionname"` //职位
|
|
KeyStr string `json:"keystr"` //身份认证
|
|
TeamName string `json:"teamname"` //班组
|
|
PersonInCharge int `json:"personincharge"` //负责人
|
|
}
|
|
|
|
// 新增人员
|
|
type PeopleInfo struct {
|
|
publicmethod.PublicName //"name": "姓名",
|
|
Code string `json:"code"` //工号
|
|
Mobile string `json:"mobile"` //联系电话
|
|
Nation string `json:"nation"` //民族
|
|
Sex string `json:"sex"` //性别
|
|
Age string `json:"age"` //出生日期
|
|
OldName string `json:"oldName"` //曾用名,
|
|
Icon string `json:"icon"` //头像
|
|
OrgId int64 `json:"orgId"` //行政组织
|
|
Employment string `json:"employment"` // 用工关系
|
|
Address string `json:"address"` //联系地址
|
|
BodyStatus string `json:"bodyStatus"` //身体状况
|
|
MarriageStatus string `json:"marriageStatus"` //婚姻状况
|
|
|
|
}
|
|
|