Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Department ¶
type Department struct { DepartmentID int `gorm:"primaryKey"` Name string `gorm:"size:255;not null"` ParentID *int `gorm:"index"` Sort int `gorm:"index"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` }
Department 结构体
type KeyResult ¶
type KeyResult struct { ID string `json:"id"` Title string `json:"title"` Weight int `json:"weight"` Owner string `json:"owner"` Date string `json:"date"` Completed string `json:"completed"` SelfRating *int `json:"selfRating"` Reason string `json:"reason"` ObjectiveID string `json:"objectiveID"` Criteria string `json:"criteria"` Leader string `json:"leader"` LeaderRating *int `json:"leaderRating"` Department string `json:"department"` CreatedTime int64 `json:"createdTime"` LastModifiedTime int64 `json:"lastModifiedTime"` }
type Role ¶
type Role struct { RoleID uint `gorm:"primaryKey;autoIncrement"` RoleName string `gorm:"size:50;not null;unique"` }
Role 结构体
type User ¶
type User struct { UserID string `gorm:"primaryKey;size:255"` Name string `gorm:"size:255;not null"` Title string `gorm:"size:255"` Status string `gorm:"size:100"` Mobile string `gorm:"size:20"` Avatar string `gorm:"size:255"` JobNumber string `gorm:"size:50"` Sort int `gorm:"index"` HiredDate *time.Time `gorm:"type:timestamp"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` UserDepartments []UserDepartment `gorm:"foreignKey:UserID;references:UserID"` }
User 结构体
type UserDepartment ¶
type UserDepartment struct { UserID string `gorm:"primaryKey;size:255"` DepartmentID int `gorm:"primaryKey"` IsLeader Bool `gorm:"type:tinyint(1)"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` Department Department `gorm:"foreignKey:DepartmentID;references:DepartmentID"` }
UserDepartment 结构体
Click to show internal directories.
Click to hide internal directories.