Documentation ¶
Index ¶
- func GetPgSQLConf() string
- type BankCourseBindModel
- type BankManagerBindModel
- type BankModel
- type ChapterManagerBindModel
- type ChapterModel
- type ClassManagerBindModel
- type ClassModel
- type CollegeDisciplineBindModel
- type CollegeManagerBindModel
- type CollegeModel
- type ContentModel
- type CourseDisciplineBindModel
- type CourseManagerBindModel
- type CourseModel
- type DisciplineClassBindModel
- type DisciplineManagerBindModel
- type DisciplineModel
- type Model
- type QuestionBankBindModel
- type QuestionModel
- type UserClassBindModel
- type UserCollegeBindModel
- type UserDisciplineBindModel
- type UserModel
- func (u *UserModel) Check(passwordMD5 string) bool
- func (u *UserModel) ComputePasswordSSHA(passwordMD5 string, passwordSalt string) string
- func (u *UserModel) GenSalt() string
- func (u *UserModel) ResetPassword(defaultPasswordMD5 string)
- func (u *UserModel) SetGender(gender int) bool
- func (u *UserModel) SetType(userType int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPgSQLConf ¶ added in v0.3.0
func GetPgSQLConf() string
Types ¶
type BankCourseBindModel ¶
type BankManagerBindModel ¶
type ChapterManagerBindModel ¶
type ChapterModel ¶
type ClassManagerBindModel ¶
type ClassModel ¶
type CollegeManagerBindModel ¶
type CollegeModel ¶
type ContentModel ¶
type CourseManagerBindModel ¶
type CourseModel ¶
type DisciplineModel ¶
type Model ¶
type Model struct { ID int64 `gorm:"not null; auto_increment"` UUID string `gorm:"not null; type:char(36); index"` Deleted bool `gorm:"not null; type:bool; default:false"` CreationTime int64 `gorm:"not null; type:bigint; default:-1"` UpdateTime int64 `gorm:"not null; type:bigint; default:-1"` DeleteTime int64 `gorm:"not null; type:bigint; default:-1"` }
type QuestionBankBindModel ¶
type QuestionModel ¶
type QuestionModel struct { Model QuestionBase64A string `gorm:"not null; type:varchar(512)"` QuestionBase64B string `gorm:"not null; type:varchar(512)"` QuestionBase64C string `gorm:"not null; type:varchar(512)"` QuestionBase64D string `gorm:"not null; type:varchar(512)"` AnswerBase64A string `gorm:"not null; type:varchar(512)"` AnswerBase64B string `gorm:"not null; type:varchar(512)"` AnswerBase64C string `gorm:"not null; type:varchar(512)"` AnswerBase64D string `gorm:"not null; type:varchar(512)"` IsA bool `gorm:"not null; type:bool"` IsB bool `gorm:"not null; type:bool"` IsC bool `gorm:"not null; type:bool"` IsD bool `gorm:"not null; type:bool"` IsMultiple bool `gorm:"not null; type:bool; default:false"` Level int `gorm:"not null; type:int; default:0"` }
type UserClassBindModel ¶
type UserCollegeBindModel ¶
type UserDisciplineBindModel ¶
type UserModel ¶
type UserModel struct { Model Type int `gorm:"not null; type:int; default:0"` AccountID int `gorm:"not null; type:int; index:UserModel_accountID"` Name string `gorm:"not null; type:varchar(32)"` Gender int `gorm:"not null; type:int; default:0"` PasswordSSHA string `gorm:"not null; type:varchar(128)"` PasswordSalt string `gorm:"not null; type:varchar(128)"` }
func (*UserModel) ComputePasswordSSHA ¶
func (*UserModel) ResetPassword ¶
Click to show internal directories.
Click to hide internal directories.