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.
148 lines
6.0 KiB
148 lines
6.0 KiB
package commonus
|
|
|
|
import "gin_server_admin/model/hrsystem"
|
|
|
|
//公共变量
|
|
type SetId struct {
|
|
Id int64 `json:"id"`
|
|
OutId string `json:"outID"`
|
|
}
|
|
|
|
type SetIds struct {
|
|
Id int64 `json:"id"`
|
|
OutId string `json:"outid"`
|
|
}
|
|
|
|
//批量ID
|
|
type BatchId struct {
|
|
Id []int64 `json:"id"`
|
|
OutId string `json:"outID"`
|
|
}
|
|
|
|
type DelParameter struct {
|
|
SetIds
|
|
State int `json:"state"` // 状态
|
|
IsDel int `json:"isdel"` // 是否强制删除
|
|
}
|
|
|
|
//员工信息进本信息
|
|
type PublicUserCont struct {
|
|
Number string `json:"number"` //员工编号
|
|
DepartmentId int64 `json:"departmentid"` //分厂Id
|
|
DepartmentName string `json:"departmentname"` //分厂名称
|
|
WorkshopId int64 `json:"workshopid"` //工段Id
|
|
WorkshopName string `json:"workshopname"` //工段名称
|
|
PostId int64 `json:"postid"` //职务Id
|
|
PostName string `json:"postname"` //职务名称
|
|
Tema int64 `json:"tema"` //班组Id
|
|
TemaName string `json:"temaname"` //班组名称
|
|
Key int64 `json:"key" ` //唯一识别码
|
|
State int `json:"state"` //状态(1:启用;2:禁用;3:删除)
|
|
HireSet int `json:"hireset"` //雇佣状态(1:在职;2:离职)
|
|
Group int64 `json:"group"` //集团公司
|
|
WechatId string `json:"wechatid"` //微信KEY
|
|
Name string `json:"name"` //姓名
|
|
Gender int `json:"gender"` //性别(1:男;2:女)"`
|
|
Age int `json:"age"` //年龄"`
|
|
Tel string `json:"tel"` //联系方式"`
|
|
Category int `json:"category"` //人员类别(1:正式工;2:合同工;3:实习生)"`
|
|
CertificatesType int `json:"certificatesType"` //证件类型(1:身份证;2:驾驶证;3:军人证;4:护照;5:居住证)"`
|
|
CertificatesNum string `json:"certificatesNum"` //证件编号"`
|
|
Birthday string `json:"birthday"` //出生日期"`
|
|
EntryTime string `json:"entryTime"` //入职日期"`
|
|
QuitTimeAttr string `json:"quitTime"` //离职日期"`
|
|
Addrest string `json:"addrest"` //家庭住址
|
|
Icon string `json:"icon"` //照片"`
|
|
NickName string `json:"nickName"` //昵称"`
|
|
}
|
|
|
|
//具体职责项与考核项目,类别
|
|
type DutyAssClass struct {
|
|
Title string `json:"title"` //具体职责
|
|
ClassId int64 `json:"partId"` //考核类别
|
|
ClassTitle string `json:"asstitle"` //考核类名称
|
|
AssessId int64 `json:"assessId"` //考核项目
|
|
AssTitle string `json:"asstitle"` //考核项目名称
|
|
}
|
|
|
|
type roleGroupAry struct {
|
|
Id roleGroupBodyAry `json:"id"`
|
|
}
|
|
type roleGroupBodyAry struct {
|
|
Id string `json:"open_id"`
|
|
WechatName string `json:"wechat_name"`
|
|
Prentid string `json:"prentid"`
|
|
Bfid string `json:"bf_id"`
|
|
Icons string `json:"icons"`
|
|
}
|
|
|
|
//流程步进
|
|
type FlowStep struct {
|
|
Step int `json:"step"` //当前是第几步
|
|
Key string `json:"key"` //任务卡ID
|
|
State int `json:"state"` //状态
|
|
RoleGroup int64 `json:"rolefroup"` //角色组
|
|
ClickName string `json:"clickname"` //操作人
|
|
AddTime int64 `json:"addtime"` //添加时间
|
|
StepName string `json:"stepname"` //步骤名称
|
|
NextStep int `json:"nextstep"` //下一步 1:内勤;2:部门负责人:3:整改;4:整改后部门负责;5:归档起草人
|
|
}
|
|
|
|
//流程全貌
|
|
type FlowAllMap struct {
|
|
Step int `json:"step"` //步伐
|
|
NodeName string `json:"nodename"` //节点名称
|
|
State int `json:"state"` //状态 1、不点亮;2、点亮
|
|
Class int `json:"class"` //节点类型 1、普通节点;2、运行中指定节点
|
|
UserList []UserListFlowAll `json:"userlist"` //节点操作人
|
|
}
|
|
|
|
//节点操作人
|
|
type UserListFlowAll struct {
|
|
Id string `json:"id"` //操作人ID
|
|
Name string `json:"name"` //操作人姓名
|
|
Icon string `json:"icon"` //操作人头像
|
|
Wechat string `json:"wechat"` //微信Openid
|
|
Group int64 `json:"group"` //集团公司
|
|
GroupName string `json:"groupname"` //分厂名称
|
|
DepartmentId int64 `json:"departmentid"` //分厂Id
|
|
DepartmentName string `json:"departmentname"` //分厂名称
|
|
WorkshopId int64 `json:"workshopid"` //工段Id
|
|
WorkshopName string `json:"workshopname"` //工段名称
|
|
PostId int64 `json:"postid"` //职务Id
|
|
PostName string `json:"postname"` //职务名称
|
|
Tema int64 `json:"tema"` //班组Id
|
|
TemaName string `json:"temaname"` //班组名称
|
|
LogList []LogList `json:"log"` //操作记录
|
|
}
|
|
|
|
//节点操作人操作记录
|
|
type LogList struct {
|
|
State int `json:"state"` //状态 1、未操作;2、通过;3、驳回
|
|
TimeVal string `json:"time"`
|
|
Enclosure []EnclosureFormat `json:"enclosure"` //附件
|
|
}
|
|
|
|
//流程操作节点操作人信息
|
|
type FlowNodePeopleInfo struct {
|
|
EvalCont UserListFlowAll `json:"evalcont"`
|
|
DutyCont UserListFlowAll `json:"dutycont"`
|
|
}
|
|
|
|
type DepartmentAryType struct {
|
|
Parentid string `json:"parentid"`
|
|
Parentname string `json:"parentname"`
|
|
}
|
|
|
|
//附件格式
|
|
type EnclosureFormat struct {
|
|
FileName string `json:"filename"` //附件名称
|
|
FilePath string `json:"filepath"` //附件地址
|
|
Type int `json:"type"` //附件类型
|
|
}
|
|
|
|
type OutGovCont struct {
|
|
hrsystem.AdministrativeOrganization
|
|
ClassName string `json:"classname" gorm:"column:classname;type:varchar(255) unsigned;default:'';not null;comment:行政组织分类名称"`
|
|
Level int64 `json:"level" gorm:"column:level;type:int(5) unsigned;default:1;not null;comment:级别"`
|
|
}
|
|
|