Versions in this module Expand all Collapse all v0 v0.7.0 Jun 19, 2020 Changes in this version + type ParamsCreateWithUserName struct + InviteCode *string + Password string + Username string + type ParamsUpdateProfile struct + Avatar *string + Gender *model.Gender + Nickname *string + Username *string + Wechat *UpdateWechatProfileParams + type UpdateWechatProfileParams struct + AvatarUrl *string + City *string + Country *string + Gender *int + Language *string + Nickname *string + Province *string + type User struct + func NewUser(db *gorm.DB, ctx helper.Context) User + func (u User) Create(input ParamsCreateWithUserName) (data schema.Profile, err error) + func (u User) GetProfile(uid string) + func (u User) Update(input ParamsUpdateProfile) (data schema.Profile, err error)