Documentation ¶
Index ¶
- func ControlBonusPoints(userID string, bonusPoints int64, changeType uint8) error
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func InitUserBonusPoints(userID string) error
- type BonusPointsRankingInfo
- type ControlBonusPointsRequest
- type GetBonusPointsRankingResponse
- type GetUserBonusPointsDetailQuery
- type GetUserBonusPointsDetailResponse
- type GetUserBonusPointsQuery
- type GetUserBonusPointsResponse
- type InitUserBonusPointsRequest
- type UserBonusPointsDetailInfo
- type UserBonusPointsInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControlBonusPoints ¶
func InitUserBonusPoints ¶
Types ¶
type BonusPointsRankingInfo ¶
type BonusPointsRankingInfo struct { ID int `json:"id"` UserID string `json:"userId"` BonusPoints int64 `json:"bonusPoints"` }
func BonusPointsRanking ¶
func BonusPointsRanking(num int) ([]BonusPointsRankingInfo, error)
type GetBonusPointsRankingResponse ¶
type GetBonusPointsRankingResponse struct { Infos []BonusPointsRankingInfo `json:"infos"` // contains filtered or unexported fields }
type GetUserBonusPointsDetailResponse ¶
type GetUserBonusPointsDetailResponse struct { Infos []UserBonusPointsDetailInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type GetUserBonusPointsQuery ¶
type GetUserBonusPointsResponse ¶
type GetUserBonusPointsResponse struct { Infos []UserBonusPointsInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type InitUserBonusPointsRequest ¶
type InitUserBonusPointsRequest struct {
UserID string `json:"userId" binding:"required"`
}
type UserBonusPointsDetailInfo ¶
type UserBonusPointsDetailInfo struct { ID string `json:"id"` UserID string `json:"userId"` BonusPointsOffset int64 `json:"bonusPointsOffset"` ChangeType uint8 `json:"changeType"` ChangeTime string `json:"changeTime"` }
type UserBonusPointsInfo ¶
type UserBonusPointsInfo struct { UserID string `json:"userId"` BonusPoints int64 `json:"bonusPoints"` }
func GetUserBonusPoints ¶
Click to show internal directories.
Click to hide internal directories.