Documentation ¶
Index ¶
Constants ¶
const ( ConditionEqual = "=" ConditionNotEqual = "<>" ConditionGt = ">" ConditionGte = ">=" ConditionLt = "<" ConditionLte = "<=" ConditionIn = "IN" ConditionNotIn = "NOT IN" ConditionLike = "LIKE" )
Variables ¶
var ( ErrNotFound = gorm.ErrRecordNotFound InputParamInvalid = errors.New("param invalid") WriteDataFailed = errors.New("write data failed") ReadDataFailed = errors.New("read data failed") )
Functions ¶
This section is empty.
Types ¶
type ConditionType ¶
type ConditionType string
type FileMd5Model ¶
type FileMd5Model interface {
// contains filtered or unexported methods
}
FileMd5Model is an interface to be customized, add more methods here, and implement the added methods in customFileMd5Model.
func NewFileMd5Model ¶
func NewFileMd5Model(conn *gorm.DB) FileMd5Model
NewFileMd5Model returns a model for the database table.
type FileModel ¶
type FileModel interface {
// contains filtered or unexported methods
}
FileModel is an interface to be customized, add more methods here, and implement the added methods in customFileModel.
func NewFileModel ¶
NewFileModel returns a model for the database table.
type ProfilePicture ¶
type ProfilePictureModel ¶
type ProfilePictureModel interface {
// contains filtered or unexported methods
}
ProfilePictureModel is an interface to be customized, add more methods here, and implement the added methods in customProfilePictureModel.
func NewProfilePictureModel ¶
func NewProfilePictureModel(conn *gorm.DB) ProfilePictureModel
NewProfilePictureModel returns a model for the database table.
type Query ¶
type Query struct { Field string Condition ConditionType Value interface{} }
type UserFileModel ¶
type UserFileModel interface {
// contains filtered or unexported methods
}
UserFileModel is an interface to be customized, add more methods here, and implement the added methods in customUserFileModel.
func NewUserFileModel ¶
func NewUserFileModel(conn *gorm.DB) UserFileModel
NewUserFileModel returns a model for the database table.
type UserProfile ¶
type UserProfileModel ¶
type UserProfileModel interface {
// contains filtered or unexported methods
}
UserProfileModel is an interface to be customized, add more methods here, and implement the added methods in customUserProfileModel.
func NewUserProfileModel ¶
func NewUserProfileModel(conn *gorm.DB) UserProfileModel
NewUserProfileModel returns a model for the database table.