Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
func IsUserExist ¶
func UpdateUserById ¶
Types ¶
type Banner ¶
type Banner struct { gorm.Model Index uint `json:"index"` Title string `json:"title"` Picture string `json:"picture"` Url string `json:"url"` }
func GetAllBanner ¶
type CreditHistoriesPage ¶
type CreditHistoriesPage struct { CreditHistories []*CreditHistory `json:"list"` TotalNum uint `json:"totalNum"` PageId int `json:"pageId"` }
type CreditHistory ¶
type CreditHistory struct { gorm.Model UserId uint `json:"userId"` Change int `json:"change"` Credit int `json:"credit"` Message string `json:"message"` }
func ModifyCreditHistory ¶
func ModifyCreditHistory(userId uint, change int, message string) (*CreditHistory, error)
Click to show internal directories.
Click to hide internal directories.