Documentation
¶
Index ¶
Constants ¶
View Source
const TableNameAbandonCode = "abandon_code"
View Source
const TableNameCourseSwapRequest = "course_swap_request"
View Source
const TableNameTask = "task"
View Source
const TableNameUser = "user"
View Source
const TableNameUserDept = "user_dept"
View Source
const TableNameUserDeptAssoc = "user_dept_assoc"
View Source
const TableNameUserJob = "user_job"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbandonCode ¶
type AbandonCode struct {
Idx1 int32 `gorm:"column:idx1;primaryKey;autoIncrement:true" json:"idx1"`
Col1 string `gorm:"column:col1;not null" json:"col1"`
}
AbandonCode mapped from table <abandon_code>
func (*AbandonCode) TableName ¶
func (*AbandonCode) TableName() string
TableName AbandonCode's table name
type CourseSwapRequest ¶
type CourseSwapRequest struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
SrcTeacher string `gorm:"column:src_teacher;not null" json:"src_teacher"`
SrcDate string `gorm:"column:src_date;not null" json:"src_date"`
SrcCourseNum int32 `gorm:"column:src_course_num;not null" json:"src_course_num"`
SrcCourse string `gorm:"column:src_course;not null" json:"src_course"`
SrcClass string `gorm:"column:src_class;not null" json:"src_class"`
DstTeacher string `gorm:"column:dst_teacher;not null" json:"dst_teacher"`
DstDate string `gorm:"column:dst_date;not null" json:"dst_date"`
DstCourseNum int32 `gorm:"column:dst_course_num;not null" json:"dst_course_num"`
DstCourse string `gorm:"column:dst_course;not null" json:"dst_course"`
DstClass string `gorm:"column:dst_class;not null" json:"dst_class"`
CreateTime string `gorm:"column:create_time;default:CURRENT_TIMESTAMP" json:"create_time"`
Status int32 `gorm:"column:status;not null" json:"status"`
}
CourseSwapRequest mapped from table <course_swap_request>
func (*CourseSwapRequest) TableName ¶
func (*CourseSwapRequest) TableName() string
TableName CourseSwapRequest's table name
type Task ¶
type Task struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
ParentID int32 `gorm:"column:parent_id;not null" json:"parent_id"`
PrevID int32 `gorm:"column:prev_id;not null" json:"prev_id"`
Task string `gorm:"column:task;not null" json:"task"`
Status int32 `gorm:"column:status;not null" json:"status"`
Estimate int32 `gorm:"column:estimate;not null" json:"estimate"`
Start time.Time `gorm:"column:start;default:CURRENT_TIMESTAMP" json:"start"`
End time.Time `gorm:"column:end;default:CURRENT_TIMESTAMP" json:"end"`
Desc string `gorm:"column:desc;not null" json:"desc"`
Metadata string `gorm:"column:metadata;not null" json:"metadata"`
CreateTime time.Time `gorm:"column:create_time;default:CURRENT_TIMESTAMP" json:"create_time"`
}
Task mapped from table <task>
type User ¶
type User struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true;comment:The primary key of the table" json:"id"` // The primary key of the table
UserName string `gorm:"column:user_name;not null;comment:The name of the user" json:"user_name"` // The name of the user
}
User mapped from table <user>
type UserDept ¶
type UserDept struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
DeptPath string `gorm:"column:dept_path;not null" json:"dept_path"`
DeptName string `gorm:"column:dept_name;not null" json:"dept_name"`
}
UserDept mapped from table <user_dept>
type UserDeptAssoc ¶
type UserDeptAssoc struct {
UserID int32 `gorm:"column:user_id;primaryKey" json:"user_id"`
DeptID int32 `gorm:"column:dept_id;primaryKey" json:"dept_id"`
JobID int32 `gorm:"column:job_id;not null" json:"job_id"`
}
UserDeptAssoc mapped from table <user_dept_assoc>
func (*UserDeptAssoc) TableName ¶
func (*UserDeptAssoc) TableName() string
TableName UserDeptAssoc's table name
Click to show internal directories.
Click to hide internal directories.