Documentation ¶
Index ¶
- func ChangePassword(u *model.User, newPassword string) (err error, userInter *model.User)
- func ChangePasswordByPhoneVerificationCode(u *model.User, newPassword string) (err error, userInter *model.User)
- func CreateBook(b *model.Book) (err error, bookInter *model.Book)
- func CreateMD5File(f5 *model.FileMD5) (err error)
- func CreateSub(s *model.Sub) (err error, subI *model.Sub)
- func CreateUserFile(f *model.File) (err error)
- func DeleteBook(id float64) (err error)
- func DeleteSub(s *model.Sub) (err error, subI *model.Sub)
- func FindUserByID(id int) (err error, user *model.User)
- func FindUserByUUID(uuid string) (err error, user *model.User)
- func GetBookList(info request.PageInfo) (err error, list interface{}, total int64)
- func GetSubList(info request.PageInfo) (err error, list interface{}, total int64)
- func GetUserInfoList(info request.PageInfo) (err error, list interface{}, total int64)
- func GetUserSub(userUuid uuid.UUID) (err error, subI *model.Sub)
- func IsOpenIdExist(openId string) (bool, *model.User)
- func IsPhoneExist(phone string) (bool, *model.User)
- func LoginByPhonePwd(u *model.User) (err error, userInter *model.User)
- func LoginByUsernamePwd(u *model.User) (err error, userInter *model.User)
- func Register(u model.User) (err error, userInter *model.User)
- func RegisterByOpenId(u model.User) (err error, userInter *model.User)
- func RegisterByPhoneVerificationCode(u model.User) (err error, userInter *model.User)
- func SetUserAuthority(uuid uuid.UUID, authorityId string) (err error)
- func UpdateBook(b *model.Book) (err error, book *model.Book)
- func UpdateUserProfileByUser(u *model.User) (err error, userInter *model.User)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePassword ¶
func CreateMD5File ¶
CreateMD5File create md5 file
func CreateUserFile ¶
CreateUserFile create user file
func DeleteBook ¶
func GetBookList ¶
func GetUserInfoList ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.