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.
87 lines
2.3 KiB
87 lines
2.3 KiB
package workrostering
|
|
|
|
//工作时间段列表查询
|
|
type WorkTimeList struct {
|
|
Name string `json:"name"` //名称
|
|
}
|
|
|
|
//添加工作时间段
|
|
type SetWorkTime struct {
|
|
Name string `json:"name"` //名称
|
|
Rule []TimeRule `json:"rule"` //轮询规则
|
|
List []TemaTime `json:"list"` // 班次安排
|
|
}
|
|
type SetWorkTimeEdit struct {
|
|
Name string `json:"name"` //名称
|
|
Rule []TimeRules `json:"rule"` //轮询规则
|
|
List []TemaTimes `json:"list"` // 班次安排
|
|
}
|
|
|
|
//通用班次时间
|
|
type TemaTime struct {
|
|
Title string `json:"title"` //班次名称
|
|
StartTime string `json:"startTime"` //开始时间
|
|
EndTime string `json:"endTime"` //结束时间
|
|
}
|
|
type TemaTimes struct {
|
|
Id string `json:"id"`
|
|
Title string `json:"title"` //班次名称
|
|
StartTime string `json:"startTime"` //开始时间
|
|
EndTime string `json:"endTime"` //结束时间
|
|
}
|
|
|
|
//轮询规则
|
|
type TimeRule struct {
|
|
Sort int `json:"sort"` //排序
|
|
Teamid string `json:"teamid"` //班组名称
|
|
}
|
|
type TimeRules struct {
|
|
Id string `json:"id"` //
|
|
Sort int `json:"sort"` //排序
|
|
Teamid string `json:"teamid"` //班组名称
|
|
}
|
|
|
|
//输出工作时间段列表
|
|
type SendWorkTime struct {
|
|
Id string `json:"id"` //
|
|
State int `json:"state"` //
|
|
States bool `json:"states"` //
|
|
RuleName string `json:"rulename"` //
|
|
SetWorkTimeEdit
|
|
}
|
|
|
|
//编辑工作时间段内容
|
|
type EditWorkTimeCont struct {
|
|
Id string `json:"id"` //
|
|
SetWorkTime
|
|
}
|
|
|
|
type EditWorkTimeConts struct {
|
|
Id string `json:"id"` //
|
|
SetWorkTimeEdit
|
|
}
|
|
|
|
//输出工作时段及轮询规则列表
|
|
type SendPeriodRules struct {
|
|
Id string `json:"id"` //
|
|
Time string `json:"time"` //
|
|
Teamid string `json:"teamid"` //班组名称
|
|
RuleId string `json:"ruleid"` //轮询规则
|
|
List []TemaTimes `json:"list"` // 班次安排
|
|
Rule []TimeRuleSend `json:"rule"` //轮询规则
|
|
}
|
|
|
|
type TimeRuleSend struct {
|
|
Id string `json:"id"` //
|
|
Sort int `json:"sort"` //排序
|
|
Teamid string `json:"teamid"` //班组名称
|
|
TeamName string `json:"teamname"` //班组名称
|
|
}
|
|
|
|
//设置倒班源点
|
|
type SetOrigin struct {
|
|
Id string `json:"id"` //
|
|
Rule string `json:"rule"` //轮询规则
|
|
ShiftTime string `json:"shifttime"` // 班次安排
|
|
StartTime string `json:"starttime"` // 起源时间
|
|
}
|
|
|