Documentation ¶
Index ¶
- Constants
- type UploadData
- type UploadModel
- type UserData
- type UserModel
- func (mdl *UserModel) Create(data map[string]any) (int64, error)
- func (mdl *UserModel) Exists(cond map[string]any) (bool, error)
- func (mdl *UserModel) FetchByUid(fields []any, uid uint64) (*UserData, int, error)
- func (mdl *UserModel) FetchRow(fields []any, cond map[string]any) (*UserData, int, error)
- func (mdl *UserModel) UpdateByUid(uid int64, data map[string]any) (int64, error)
Constants ¶
View Source
const ( UploadKindDefault = iota UploadKindImage )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UploadData ¶
type UploadData struct {
Id uint64 `json:"id"`
}
type UploadModel ¶
func NewUploadModel ¶
func NewUploadModel() *UploadModel
type UserData ¶
type UserData struct { UID uint64 `json:"uid"` Email sql.NullString `json:"email"` Mobile sql.NullString `json:"mobile"` Password string `json:"password"` Avator string `json:"avator"` CTime uint64 `json:"ctime"` MTime uint64 `json:"mtime"` }
type UserModel ¶
func NewUserModel ¶
func NewUserModel() *UserModel
func (*UserModel) FetchByUid ¶
Click to show internal directories.
Click to hide internal directories.