Documentation
¶
Index ¶
- type Dao
- func (d *Dao) CreateAttachment(attachment *model.Attachment) (*model.Attachment, error)
- func (d *Dao) CreateUser(user *model.User) (*model.User, error)
- func (d *Dao) GetUserByID(id int64) (*model.User, error)
- func (d *Dao) GetUserByPhone(phone string) (*model.User, error)
- func (d *Dao) GetUserByUsername(username string) (*model.User, error)
- func (d *Dao) GetUsersByIDs(ids []int64) ([]*model.User, error)
- func (d *Dao) GetUsersByKeyword(keyword string) ([]*model.User, error)
- func (d *Dao) UpdateUser(user *model.User) error
- type JuhePhoneCaptchaRsp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
func (*Dao) CreateAttachment ¶
func (d *Dao) CreateAttachment(attachment *model.Attachment) (*model.Attachment, error)
func (*Dao) GetUserByPhone ¶
根据手机号获取用户
func (*Dao) GetUserByUsername ¶
根据用户名获取用户
func (*Dao) GetUsersByIDs ¶
根据IDs获取用户列表
func (*Dao) GetUsersByKeyword ¶
根据关键词模糊获取用户列表
type JuhePhoneCaptchaRsp ¶
Click to show internal directories.
Click to hide internal directories.