更新密码找回uniapp
This commit is contained in:
1 parent
7f9a66da0f
commit
3fdda89833
1304 files changed
+3503
-26132
No files matched your search
@@ -2,39 +2,27 @@ package models
|
||||
|
||||
import "time"
|
||||
|
||||
// 排班模板对齐方式(align_mode)
|
||||
//
|
||||
// 1 按自然周:双休 / 单休 / 大小周,day_index 0=周一 ... 6=周日
|
||||
// 2 按开始日滚动:三班倒 / 做一休一,从方案开始日期起按周期顺延
|
||||
// 3 按自然月:月休,按月计算休息日
|
||||
const (
|
||||
SchedTplAlignWeek int8 = 1
|
||||
SchedTplAlignRoll int8 = 2
|
||||
SchedTplAlignMonth int8 = 3
|
||||
)
|
||||
|
||||
// 排班模板每天类型(day_type)
|
||||
const (
|
||||
SchedTplDayWork int8 = 1 // 上班
|
||||
SchedTplDayRest int8 = 2 // 休息
|
||||
SchedTplDayWork int8 = 1
|
||||
SchedTplDayRest int8 = 2
|
||||
)
|
||||
|
||||
// 排班模板类型(template_type)
|
||||
const (
|
||||
SchedTplTypeDoubleWeekend int8 = 1 // 双休
|
||||
SchedTplTypeSingleWeekend int8 = 2 // 单休
|
||||
SchedTplTypeBigSmallWeek int8 = 3 // 大小周
|
||||
SchedTplTypeMonthRest int8 = 4 // 月休
|
||||
SchedTplTypeThreeShift int8 = 5 // 三班倒
|
||||
SchedTplTypeWorkRestOne int8 = 6 // 做一休一
|
||||
SchedTplTypeCustom int8 = 9 // 自定义
|
||||
SchedTplTypeDoubleWeekend int8 = 1
|
||||
SchedTplTypeSingleWeekend int8 = 2
|
||||
SchedTplTypeBigSmallWeek int8 = 3
|
||||
SchedTplTypeMonthRest int8 = 4
|
||||
SchedTplTypeThreeShift int8 = 5
|
||||
SchedTplTypeWorkRestOne int8 = 6
|
||||
SchedTplTypeCustom int8 = 9
|
||||
)
|
||||
|
||||
// PlatformSchedTpl 平台端排班模板 yz_platform_sched_tpl
|
||||
//
|
||||
// 模板是全局数据(不按租户隔离),只有平台端可维护;系统预置模板
|
||||
// (is_system=1)由平台锁定,禁止编辑 / 删除 / 停用。租户端调用模板时
|
||||
// 会把规则快照进自己的排班方案(OaSchedulePlan.Pattern),之后互不影响。
|
||||
type PlatformSchedTpl struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
Code string `orm:"column(code);size(50);default()" json:"code"`
|
||||
@@ -59,10 +47,6 @@ func (m *PlatformSchedTpl) TableName() string {
|
||||
return "yz_platform_sched_tpl"
|
||||
}
|
||||
|
||||
// PlatformSchedTplDay 平台端排班模板的周期每日规则 yz_platform_sched_tpl_day
|
||||
//
|
||||
// day_index 为周期内第几天(从 0 开始)。day_type=2 表示休息,
|
||||
// 此时班次字段为空;day_type=1 时填写班次名称与上下班时间。
|
||||
type PlatformSchedTplDay struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
TemplateID uint64 `orm:"column(template_id);default(0)" json:"template_id"`
|
||||
|
||||
Reference in new issue
Block a user