This commit is contained in:
2024-12-10 17:36:50 +08:00
parent 983cde2c7d
commit c63a553d6c
19 changed files with 352 additions and 29 deletions

View File

@@ -1,9 +1,20 @@
package model
type Member struct {
ID int //工号
Name string
Sex bool //不要把女生安排进男生宿舍male=True
FreeDay int //哪天有空
access int // 遵循报修系统的access enum ,用来标注管理层
ID int `csv:"工号"` //工号
Name string `csv:"姓名"`
Sex bool `csv:"性别"` //不要把女生安排进男生宿舍male=True
FreeDay int `csv:"有空"` //哪天有空
Access int `csv:"权限"` //遵循报修系统的access enum ,用来标注管理层
Arranged bool `csv:"-"` //供分配程序使用的字段
}
// 权限:
const DEV = 0 //开发组
const HEAD = 1 //科长
const API = 2 //API
const GROUP = 3 //组长
const FORMAL = 4 //正式成员
const FRESH = 5 //实习成员
const PRE = 6 //前成员

9
model/zones.go Normal file
View File

@@ -0,0 +1,9 @@
package model
const FX = 0 //凤翔
const ZH = 1 //朝晖
const XH_AB = 2 //香晖AB
const XH_CD = 3 //香晖CD,
const DM = 4 //东门
const BM = 5 //北门
const QT = 6 //歧头