mbbpm

package
v0.11.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControlBonusPoints

func ControlBonusPoints(userID string, bonusPoints int64, changeType uint8) error

func Destroy

func Destroy()

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func InitUserBonusPoints

func InitUserBonusPoints(userID string) error

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 ControlBonusPointsRequest

type ControlBonusPointsRequest struct {
	UserID      string `json:"userId" binding:"required"`
	BonusPoints int64  `json:"bonusPoints" binding:"required"`
	ChangeType  uint8  `json:"changeType" binding:"required"`
}

type GetBonusPointsRankingResponse

type GetBonusPointsRankingResponse struct {
	Infos []BonusPointsRankingInfo `json:"infos"`
	// contains filtered or unexported fields
}

type GetUserBonusPointsDetailQuery

type GetUserBonusPointsDetailQuery struct {
	UserID     string `form:"userId"`
	ChangeType uint8  `form:"changeType"`
	PageNo     int    `form:"pageNo"`
	PageSize   int    `form:"pageSize"`
}

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 GetUserBonusPointsQuery struct {
	UserID   string `form:"userId"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

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"`
}

func GetUserBonusPointsDetail

func GetUserBonusPointsDetail(userID string, changeType uint8, increment *bool, pageNo int, pageSize int) ([]UserBonusPointsDetailInfo, int64, error)

type UserBonusPointsInfo

type UserBonusPointsInfo struct {
	UserID      string `json:"userId"`
	BonusPoints int64  `json:"bonusPoints"`
}

func GetUserBonusPoints

func GetUserBonusPoints(userID string, pageNo int, pageSize int) ([]UserBonusPointsInfo, int64, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL