Versions in this module Expand all Collapse all v1 v1.1.1 Sep 5, 2022 v0 v0.0.2 Sep 5, 2022 v0.0.1 Sep 5, 2022 Changes in this version + type Platform struct + PlatformAbbr string + PlatformDesc string + PlatformDomain string + PlatformId int + PlatformImgUrl string + PlatformLoginUrl string + PlatformName string + PlatformType string + func (p Platform) Create(db *gorm.DB) (Platform, error) + func (p Platform) Delete(db *gorm.DB) (*Platform, error) + func (p Platform) Get(db *gorm.DB) (Platform, error) + func (p Platform) GetList(db *gorm.DB, pager *page.Pager) ([]Platform, error) + func (p Platform) TableName() string + func (p Platform) Update(db *gorm.DB, values interface{}) error + type User struct + Description string + Email string + Password string + PhoneNumber string + ProfileImgUrl string + Role int + Salt string + Sex int + ShareMode int + UserId int + UserName string + func (u User) Create(db *gorm.DB) error + func (u User) Delete(db *gorm.DB) error + func (u User) Get(db *gorm.DB) (User, error) + func (u User) GetUserByEmail(db *gorm.DB) (User, error) + func (u User) GetUserByName(db *gorm.DB) (User, error) + func (u User) GetUserByPhone(db *gorm.DB) (User, error) + func (u User) GetUserList(db *gorm.DB, pager *page.Pager) ([]UserRow, error) + func (u User) TableName() string + func (u User) Update(db *gorm.DB, values interface{}) error + type UserAccount struct + Password string + PlatformId int + UserId int + func (ua UserAccount) Create(db *gorm.DB) (UserAccount, error) + func (ua UserAccount) Delete(db *gorm.DB) error + func (ua UserAccount) DeleteList(db *gorm.DB) error + func (ua UserAccount) Get(db *gorm.DB) (UserAccountRow, error) + func (ua UserAccount) GetAccountsByUserID(db *gorm.DB, pager *page.Pager) ([]UserAccountRow, error) + func (ua UserAccount) GetAll(db *gorm.DB, pager *page.Pager) ([]UserAccountRow, error) + func (ua UserAccount) TableName() string + func (ua UserAccount) Update(db *gorm.DB, values interface{}) (UserAccount, error) + type UserAccountRow struct + Password string + PlatformAbbr string + PlatformDesc string + PlatformDomain string + PlatformId int + PlatformImgUrl string + PlatformLoginUrl string + PlatformName string + PlatformType string + UserId int + type UserRow struct + Description string + Email string + PhoneNumber string + Role int + Sex int + ShareMode int + UserId int + UserName string