items.go 893 B

123456789101112131415161718192021222324252627
  1. package user
  2. type adminlevel int
  3. const (
  4. DDPF_SYSTEM_ADMIN adminlevel = 1 << iota //1. 系统管理员
  5. DDPF_SUPERVISOR_ADMIN //2. 督导管理员
  6. DDPF_SUPERVISE //3. 督导
  7. DDPF_TEACHING_ADMIN //4. 教学评优管理员
  8. DDPF_STUDENT_ADMIN //5. 学生评优管理员
  9. DDPF_Bachelor_WORKER //6. 本科工作量审核员
  10. DDPF_graduate_WORKER //7. 研究生工作量审核员
  11. DDPF_College_ADMIN //8. 学院管理员
  12. DDPF_TEACHER //9. 教师
  13. )
  14. // 用户表
  15. type User struct {
  16. Id string `json:"id"` // 用户id
  17. Name string `json:"name"` // 用户名
  18. Account string `json:"account"` // 用户工号
  19. Password string `json:"password"` //用户密码
  20. Role int `json:"role"` // 用户角色
  21. Status string `json:"status"` // 用户状态
  22. Time int64 `json:"time"` // 创建时间
  23. College string `json:"college"` // 所在学院
  24. }