Documentation ¶
Index ¶
- type DB
- type S
- func (s *S) AddProfile(userId string, profile *models.Profile) error
- func (s *S) Login(username, password string) (token string, err error)
- func (s *S) Profile(userId string) (*models.Profile, error)
- func (s *S) Register(username, password string) (token string, err error)
- func (s *S) UploadAvatar(userId string, avatar *os.File) error
- func (s *S) UserStatistics() (userTotalCount, userDailyCount uint64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.