package do // UserDO 定义了用户的数据对象结构。 type UserDO struct { UID int64 `json:"uid" db:"uid, primary"` Username string `json:"uname" db:"uname"` Password string `json:"password" db:"password"` Email string `json:"email" db:"email"` UserType string `json:"userType" db:"userType"` SexOrType string `json:"sexOrType" db:"sexOrType"` Department string `json:"department" db:"department"` Telephone string `json:"telephone" db:"telephone"` Role string `json:"role" db:"role"` Cookie string `json:"cookie" db:"cookie"` } type StudentDO struct{ } type UserCourseDO struct { }