mbbpa

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyBg added in v0.7.0

func ApplyBg(userID, bgID, cardID string) error

func BuyBg added in v0.6.0

func BuyBg(userID, userName, bgID string) error

func ChangeNotice

func ChangeNotice(userID string) error

func CollectBg added in v0.6.0

func CollectBg(userID, bgID string) error

func CompleteTask

func CompleteTask(userID string, taskID string) error

func CreateActivity added in v0.4.0

func CreateActivity(req *CreateActivityRequest) error

func CreateBg added in v0.6.0

func CreateBg(req *CreateBgRequest) error

func CreateRechargeGoods

func CreateRechargeGoods(params CreateRechargeGoodsRequest) error

func CreateTag added in v0.6.0

func CreateTag(name string) error

func CreateTask

func CreateTask(params CreateTaskRequest) error

func DeleteActivity added in v0.4.0

func DeleteActivity(tangentID string, id string) error

func DeleteBg added in v0.6.0

func DeleteBg(id string) error

func DeleteRechargeGoods

func DeleteRechargeGoods(id string) error

func DeleteTag added in v0.6.0

func DeleteTag(id string) error

func DeleteTask

func DeleteTask(id string) error

func Destroy

func Destroy()

func GetActivityNoticePic added in v0.7.1

func GetActivityNoticePic(activityID string) (string, error)

func GetBgUrl added in v0.7.0

func GetBgUrl(objName string) (string, error)

func GetRewardTypes

func GetRewardTypes() ([]string, error)

func GetUserBonusPoints

func GetUserBonusPoints(userID string) (int64, error)

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func IsBuyBg added in v0.7.0

func IsBuyBg(userID, bgID string) (bool, error)

func IsCollectBg added in v0.6.0

func IsCollectBg(userID, bgID string) (bool, error)

func IssueActivityReward added in v0.7.0

func IssueActivityReward(userID, userName, activityID string) error

func NotifyOrder

func NotifyOrder(outTradeNo string, resultCode string, errCodeDes string) error

func ReceiveAllTaskReward

func ReceiveAllTaskReward(userID string) error

func ResetSignStatus added in v0.8.5

func ResetSignStatus() error

func ResetYesterdayUnSignUser added in v0.8.5

func ResetYesterdayUnSignUser() error

func SignIn

func SignIn(userID string) (int64, error)

func UpdateActivity added in v0.4.0

func UpdateActivity(req *UpdateActivityRequest) error

func UpdateBg added in v0.6.0

func UpdateBg(req *UpdateBgRequest) error

func UpdateRechargeGoods

func UpdateRechargeGoods(params UpdateRechargeGoodsRequest) error

func UpdateTag added in v0.6.0

func UpdateTag(id, name string) error

func UpdateTask

func UpdateTask(params UpdateTaskRequest) error

func UploadBg added in v0.6.0

func UploadBg(header *multipart.FileHeader) (string, string, error)

func UploadRechargeGoodsPic

func UploadRechargeGoodsPic(f *multipart.FileHeader) (string, string, error)

func UploadTaskPic

func UploadTaskPic(f *multipart.FileHeader) (string, string, error)

Types

type ActivitiesResponse added in v0.7.0

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

type ActivityInfo added in v0.4.0

type ActivityInfo struct {
	TangentID     string       `json:"tangentId"`
	ID            string       `json:"id"`
	Name          string       `json:"name"`
	Scope         string       `json:"scope"`
	Start         string       `json:"start"`
	End           string       `json:"end"`
	CreateTime    string       `json:"createTime"`
	ScopeType     uint8        `json:"scopeType"`
	Status        uint8        `json:"status"`
	BusinessLogic uint8        `json:"businessLogic"`
	JoinLimit     int          `json:"joinLimit"`
	Rewards       []RewardInfo `json:"rewards"`
}

func GetActivities added in v0.4.0

func GetActivities(tangentID, id, name, start, end string, pageNo, pageSize int) ([]ActivityInfo, int64, error)

func UserCanJoinActivities added in v0.7.0

func UserCanJoinActivities(userID, name string, tangentIDs []string) ([]ActivityInfo, error)

type AddBgToTagRequest added in v0.6.0

type AddBgToTagRequest struct {
	BgID   string `json:"bgId"`
	TagIDs string `json:"tagIds"`
}

type ApplyBgRequest added in v0.7.0

type ApplyBgRequest struct {
	UserID string `json:"userId"`
	BgID   string `json:"bgId"`
	CardID string `json:"cardId"`
}

type BgInfo added in v0.6.0

type BgInfo struct {
	ID         string    `json:"id"`
	Topic      string    `json:"topic"`
	Cost       int       `json:"cost"`
	CostType   uint8     `json:"costType"`
	Desc       string    `json:"desc"`
	CreateTime string    `json:"createTime"`
	UserID     string    `json:"userId"`
	Official   bool      `json:"official"`
	OnShelf    bool      `json:"onShelf"`
	Front      string    `json:"front"`
	Back       string    `json:"back"`
	Demo       string    `json:"demo"`
	CollectNum int64     `json:"collectNum"`
	BuyNum     int64     `json:"buyNum"`
	Tags       []TagInfo `json:"tags"`
}

func GetBg added in v0.6.0

func GetBg(id, keyword, tagID string, onShelf, official *bool, pageNo, pageSize int) ([]BgInfo, int64, error)

func GetCollect added in v0.7.0

func GetCollect(userID, tagID, keyword string, pageNo, pageSize int) ([]BgInfo, int64, error)

func GetTagBg added in v0.6.0

func GetTagBg(tagID, keyword string, pageNo, pageSize int) ([]BgInfo, int64, error)

func HotBg added in v0.6.0

func HotBg(pageNo, pageSize int) ([]BgInfo, int64, error)

type BgPicInfo added in v0.6.0

type BgPicInfo struct {
	ObjName string `json:"objName"`
	Url     string `json:"url"`
}

type BgPurchaseRecordQuery added in v0.6.0

type BgPurchaseRecordQuery struct {
	UserID   string `form:"userId"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type BgPurchaseRecordResponse added in v0.6.0

type BgPurchaseRecordResponse struct {
	Infos      []BgRecordInfo `json:"infos"`
	TotalCount int64          `json:"totalCount"`
	PageNo     int            `json:"pageNo"`
	// contains filtered or unexported fields
}

type BgRecordInfo added in v0.6.0

type BgRecordInfo struct {
	ID         string `json:"id"`
	UserID     string `json:"userId"`
	UserName   string `json:"userName"`
	BgID       string `json:"bgId"`
	BgTopic    string `json:"bgTopic"`
	Cost       int    `json:"cost"`
	CostType   uint8  `json:"costType"`
	CreateTime string `json:"createTime"`
	Way        uint8  `json:"way"`
	Front      string `json:"front"`
	Back       string `json:"back"`
	Demo       string `json:"demo"`
	Apply      bool   `json:"apply"`
}

func BgPurchaseRecord added in v0.6.0

func BgPurchaseRecord(userID string, pageNo, pageSize int) ([]BgRecordInfo, int64, error)

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 BuyBgRequest added in v0.6.0

type BuyBgRequest struct {
	UserID   string `json:"userId"`
	UserName string `json:"userName"`
	BgID     string `json:"bgId"`
}

type ChangeNoticeRequest

type ChangeNoticeRequest struct {
	UserID string `json:"userId" binding:"required"`
}

type CollectBgRequest added in v0.6.0

type CollectBgRequest struct {
	UserID string `json:"userId"`
	BgID   string `json:"bgId"`
}

type CompleteUserTaskRequest

type CompleteUserTaskRequest struct {
	TaskID string `json:"taskId"`
	UserID string `json:"userId"`
}

type ConfigDayBonusPointsRequest

type ConfigDayBonusPointsRequest struct {
	Day         int `json:"day"`
	BonusPoints int `json:"bonusPoints"`
}

type ConsecutiveDaysRankingInfo

type ConsecutiveDaysRankingInfo struct {
	ID              int    `json:"id"`
	UserID          string `json:"userId"`
	ConsecutiveDays int    `json:"consecutiveDays"`
}

func GetConsecutiveDaysRanking

func GetConsecutiveDaysRanking(num int) ([]ConsecutiveDaysRankingInfo, error)

type CreateActivityRequest added in v0.4.0

type CreateActivityRequest struct {
	TangentID      string          `json:"tangentId"`
	Name           string          `json:"name"`
	Scope          string          `json:"scope"`
	Start          string          `json:"start"`
	End            string          `json:"end"`
	ScopeType      uint8           `json:"scopeType"`
	JoinLimit      int             `json:"joinLimit"`
	BusinessLogic  uint8           `json:"businessLogic"`
	RewardSettings []RewardSetting `json:"rewardSettings"`
}

type CreateBgRequest added in v0.6.0

type CreateBgRequest struct {
	Topic    string   `json:"topic"`
	Cost     int      `json:"cost"`
	CostType uint8    `json:"costType"`
	Desc     string   `json:"desc"`
	UserID   string   `json:"userId"`
	Official bool     `json:"official"`
	OnShelf  bool     `json:"onShelf"`
	Front    string   `json:"front"`
	Back     string   `json:"back"`
	Demo     string   `json:"demo"`
	TagIDs   []string `json:"tagIds"`
}

type CreateOrderRequest

type CreateOrderRequest struct {
	IP        string `json:"ip"`
	NotifyUrl string `json:"notifyUrl"`
	GoodsID   string `json:"goodsId"`
	UserID    string `json:"userId"`
	UserName  string `json:"userName"`
	UserPhone string `json:"userPhone"`
	OpenID    string `json:"openId"`
}

type CreateOrderResponse

type CreateOrderResponse struct {
	Info *RechargeOrderInfo `json:"info"`
	// contains filtered or unexported fields
}

type CreateRechargeGoodsRequest

type CreateRechargeGoodsRequest struct {
	Title       string  `json:"title"`
	SubTitle    string  `json:"subTitle"`
	Discount    string  `json:"discount"`
	Price       float64 `json:"price"`
	BonusPoints int64   `json:"bonusPoints"`
	Sort        int     `json:"sort"`
	Url         string  `json:"url"`
}

type CreateTagRequest added in v0.6.0

type CreateTagRequest struct {
	Name string `json:"name"`
}

type CreateTaskRequest

type CreateTaskRequest struct {
	TaskName      string `json:"taskName"`
	TaskDetail    string `json:"taskDetail"`
	CompleteTimes uint8  `json:"completeTimes"`
	JumpType      uint8  `json:"jumpType"`
	JumpAddr      string `json:"jumpAddr"`
	EndTime       string `json:"endTime"`
	RewardType    uint8  `json:"rewardType"`
	TaskType      uint8  `json:"taskType"`
	RewardNum     int64  `json:"rewardNum"`
	Url           string `json:"url"`
}

type GetActivityNoticePicResponse added in v0.7.1

type GetActivityNoticePicResponse struct {
	Url string `json:"url"`
	// contains filtered or unexported fields
}

type GetActivityResponse added in v0.4.0

type GetActivityResponse struct {
	Infos      []ActivityInfo `json:"infos"`
	TotalCount int64          `json:"totalCount"`
	PageNo     int            `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetBgQuery added in v0.6.0

type GetBgQuery struct {
	ID       string `form:"id"`
	Keyword  string `form:"keyword"`
	TagID    string `form:"tagId"`
	OnShelf  bool   `form:"onShelf"`
	Official bool   `form:"official"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type GetBgResponse added in v0.6.0

type GetBgResponse struct {
	Infos      []BgInfo `json:"infos"`
	TotalCount int64    `json:"totalCount"`
	PageNo     int      `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetBgUrlResponse added in v0.7.0

type GetBgUrlResponse struct {
	Url string `json:"url"`
	// contains filtered or unexported fields
}

type GetBonusPointsDetailResponse

type GetBonusPointsDetailResponse struct {
	Infos      []UserBonusPointsDetailInfo `json:"infos"`
	TotalCount int64                       `json:"totalCount"`
	PageNo     int                         `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetBonusPointsRankingResponse

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

type GetCollectResponse added in v0.7.0

type GetCollectResponse struct {
	Infos      []BgInfo `json:"infos"`
	TotalCount int64    `json:"totalCount"`
	PageNo     int      `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetConsecutiveDaysRankingResponse

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

type GetNoticeUsersResponse added in v0.8.5

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

type GetOrdersResponse

type GetOrdersResponse struct {
	Infos      []OrderInfo `json:"infos"`
	TotalCount int64       `json:"totalCount"`
	PageNo     int         `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetRechargeGoodsResponse

type GetRechargeGoodsResponse struct {
	Infos      []RechargeGoodsInfo `json:"infos"`
	TotalCount int64               `json:"totalCount"`
	PageNo     int                 `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetRewardTypesResponse

type GetRewardTypesResponse struct {
	Types []string `json:"types"`
	// contains filtered or unexported fields
}

type GetSignConfigResponse

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

type GetSignInfoResponse

type GetSignInfoResponse struct {
	Infos      []UserSignInfo `json:"infos"`
	TotalCount int64          `json:"totalCount"`
	PageNo     int            `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetTagBgQuery added in v0.6.0

type GetTagBgQuery struct {
	TagID    string `form:"tagId"`
	Keyword  string `form:"keyword"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type GetTagBgResponse added in v0.6.0

type GetTagBgResponse struct {
	Infos      []BgInfo `json:"infos"`
	TotalCount int64    `json:"totalCount"`
	PageNo     int      `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetTagQuery added in v0.6.0

type GetTagQuery struct {
	ID       string `form:"id"`
	Name     string `form:"name"`
	PageNo   int    `form:"pageNo"`
	PageSize int    `form:"pageSize"`
}

type GetTagResponse added in v0.6.0

type GetTagResponse struct {
	Infos      []TagInfo `json:"infos"`
	TotalCount int64     `json:"totalCount"`
	PageNo     int       `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetTaskConfigResponse

type GetTaskConfigResponse struct {
	Infos      []TaskConfigInfo `json:"infos"`
	TotalCount int64            `json:"totalCount"`
	PageNo     int              `json:"pageNo"`
	// contains filtered or unexported fields
}

type GetUserBonusPointsResponse

type GetUserBonusPointsResponse struct {
	BonusPoints int64 `json:"bonusPoints"`
	// contains filtered or unexported fields
}

type GetUserJoinActivityInfoResponse added in v0.4.0

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

type GetUserPendantResponse added in v0.5.1

type GetUserPendantResponse struct {
	Info *UserPendantInfo `json:"info"`
	// contains filtered or unexported fields
}

type GetUserTasksResponse

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

type HotBgQuery added in v0.6.0

type HotBgQuery struct {
	PageNo   int `form:"pageNo"`
	PageSize int `form:"pageSize"`
}

type HotBgResponse added in v0.6.0

type HotBgResponse struct {
	Infos      []BgInfo `json:"infos"`
	TotalCount int64    `json:"totalCount"`
	PageNo     int      `json:"pageNo"`
	// contains filtered or unexported fields
}

type IsBuyBgResponse added in v0.7.0

type IsBuyBgResponse struct {
	Bought bool `json:"bought"`
	// contains filtered or unexported fields
}

type IsCollectBgResponse added in v0.6.0

type IsCollectBgResponse struct {
	Collected bool `json:"collected"`
	// contains filtered or unexported fields
}

type IssueActivityRewardRequest added in v0.7.0

type IssueActivityRewardRequest struct {
	UserID     string `json:"userId"`
	UserName   string `json:"userName"`
	ActivityID string `json:"activityId"`
}

type NotifyOrderRequest

type NotifyOrderRequest struct {
	OutTradeNo string `json:"outTradeNo"`
	ResultCode string `json:"resultCode"`
	ErrCodeDes string `json:"errCodeDes"`
}

type OrderInfo

type OrderInfo struct {
	ID          string  `json:"id"`
	UserID      string  `json:"userId"`
	UserName    string  `json:"userName"`
	UserPhone   string  `json:"userPhone"`
	GoodsID     string  `json:"goodsId"`
	GoodsName   string  `json:"goodsName"`
	GoodsPrice  float64 `json:"goodsPrice"`
	BonusPoints int64   `json:"bonusPoints"`
	OpenID      string  `json:"openId"`
	FailReason  string  `json:"failReason"`
	State       uint8   `json:"state"`
	CreateTime  string  `json:"createTime"`
}

func GetOrders

func GetOrders(userID string, pageNo int, pageSize int) ([]OrderInfo, int64, error)

type PicInfo

type PicInfo struct {
	Url     string `json:"url"`
	ObjName string `json:"objName"`
}

type ReceiveAllTaskRewardRequest

type ReceiveAllTaskRewardRequest struct {
	UserID string `json:"userId"`
}

type RechargeGoodsInfo

type RechargeGoodsInfo struct {
	ID          string  `json:"id"`
	Title       string  `json:"title"`
	SubTitle    string  `json:"subTitle"`
	Discount    string  `json:"discount"`
	Price       float64 `json:"price"`
	BonusPoints int64   `json:"bonusPoints"`
	Sort        int     `json:"sort"`
	Url         string  `json:"url"`
}

func GetRechargeGoods

func GetRechargeGoods(pageNo int, pageSize int) ([]RechargeGoodsInfo, int64, error)

type RechargeOrderInfo

type RechargeOrderInfo struct {
	TimeStamp string `json:"timeStamp"`
	Nonce     string `json:"nonceStr"`
	Package   string `json:"package"`
	SignType  string `json:"signType"`
	PaySign   string `json:"paySign"`
}

func CreateOrder

func CreateOrder(ip string, notifyUrl string, goodsID string, userID string, userName string,
	userPhone string, openID string) (*RechargeOrderInfo, error)

type RewardInfo added in v0.4.0

type RewardInfo struct {
	Type     uint8  `json:"type"`
	Num      int    `json:"num"`
	Max      int    `json:"max"`
	Surplus  int    `json:"surplus"`
	Resource string `json:"resource"`
	TermType uint8  `json:"termType"`
	Term     string `json:"term"`
}

type RewardSetting added in v0.4.0

type RewardSetting struct {
	Type     uint8  `json:"type"`
	Num      int    `json:"num"`
	Max      int    `json:"max"`
	Resource string `json:"resource"`
	TermType uint8  `json:"termType"`
	Term     string `json:"term"`
}

type SignConfigInfo

type SignConfigInfo struct {
	Day         int `json:"day,omitempty"`
	BonusPoints int `json:"bonusPoints,omitempty"`
}

func GetSignConfig

func GetSignConfig(day int) ([]SignConfigInfo, error)

type SignInRequest

type SignInRequest struct {
	UserID string `json:"userId" binding:"required"`
}

type SignInResponse

type SignInResponse struct {
	BonusPoints int64 `json:"bonusPoints"`
	// contains filtered or unexported fields
}

type StartUserTaskRequest

type StartUserTaskRequest struct {
	UserID string `json:"userId"`
	TaskID string `json:"taskId"`
}

type TagInfo added in v0.6.0

type TagInfo struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	CreateTime string `json:"createTime"`
}

func GetTag added in v0.6.0

func GetTag(id, name string, pageNo, pageSize int) ([]TagInfo, int64, error)

type TagPic added in v0.6.0

type TagPic struct {
	ObjName string `json:"objName"`
	Url     string `json:"url"`
}

type TaskConfigInfo

type TaskConfigInfo struct {
	ID            string `json:"id"`
	TaskName      string `json:"taskName"`
	TaskDetail    string `json:"taskDetail"`
	CompleteTimes uint8  `json:"completeTimes"`
	JumpType      uint8  `json:"jumpType"`
	JumpAddr      string `json:"jumpAddr"`
	EndTime       string `json:"endTime"`
	RewardType    uint8  `json:"rewardType"`
	TaskType      uint8  `json:"taskType"`
	Url           string `json:"url"`
	RewardNum     int64  `json:"rewardNum"`
}

func GetTasks

func GetTasks(taskType uint8, pageNo int, pageSize int) ([]TaskConfigInfo, int64, error)

type UpdateActivityRequest added in v0.4.0

type UpdateActivityRequest struct {
	TangentID      string          `json:"tangentId"`
	ID             string          `json:"id"`
	Name           string          `json:"name"`
	Scope          string          `json:"scope"`
	Start          string          `json:"start"`
	End            string          `json:"end"`
	ScopeType      uint8           `json:"scopeType"`
	BusinessLogic  uint8           `json:"businessLogic"`
	RewardSettings []RewardSetting `json:"rewardSettings"`
}

type UpdateBgRequest added in v0.6.0

type UpdateBgRequest struct {
	ID       string   `json:"id"`
	Topic    string   `json:"topic"`
	Cost     int      `json:"cost"`
	CostType uint8    `json:"costType"`
	Desc     string   `json:"desc"`
	UserID   string   `json:"userId"`
	Official *bool    `json:"official"`
	OnShelf  *bool    `json:"onShelf"`
	Front    string   `json:"front"`
	Back     string   `json:"back"`
	Demo     string   `json:"demo"`
	TagIDs   []string `json:"tagIds"`
}

type UpdateRechargeGoodsRequest

type UpdateRechargeGoodsRequest struct {
	ID          string  `json:"id" binding:"required"`
	Title       string  `json:"title"`
	SubTitle    string  `json:"subTitle"`
	Discount    string  `json:"discount"`
	Price       float64 `json:"price"`
	BonusPoints int64   `json:"bonusPoints"`
	Sort        int     `json:"sort"`
	Url         string  `json:"url"`
}

type UpdateTagRequest added in v0.6.0

type UpdateTagRequest struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type UpdateTaskRequest

type UpdateTaskRequest struct {
	ID            string `json:"id"`
	TaskName      string `json:"taskName"`
	TaskDetail    string `json:"taskDetail"`
	CompleteTimes int    `json:"completeTimes"`
	JumpType      uint8  `json:"jumpType"`
	JumpAddr      string `json:"jumpAddr"`
	EndTime       string `json:"endTime"`
	TaskType      uint8  `json:"taskType"`
	RewardType    uint8  `json:"rewardType"`
	RewardNum     int64  `json:"rewardNum"`
	Url           string `json:"url"`
}

type UploadBgRequest added in v0.6.0

type UploadBgRequest struct {
	File *multipart.FileHeader `form:"file"`
}

type UploadBgResponse added in v0.6.0

type UploadBgResponse struct {
	Info *BgPicInfo `json:"info"`
	// contains filtered or unexported fields
}

type UploadGoodsPicResponse

type UploadGoodsPicResponse struct {
	Url     string `json:"url"`
	ObjName string `json:"objName"`
	// contains filtered or unexported fields
}

type UploadTaskPicResponse

type UploadTaskPicResponse struct {
	Info *PicInfo `json:"info"`
	// contains filtered or unexported fields
}

type UserBonusPointsDetailInfo

type UserBonusPointsDetailInfo struct {
	ID                string `json:"id"`
	UserID            string `json:"userId"`
	BonusPointsOffset int64  `json:"bonusPointsOffset"`
	ChangeType        string `json:"changeType"`
	ChangeTime        string `json:"changeTime"`
}

func GetBonusPointsDetails

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

type UserJoinActivityInfo added in v0.4.0

type UserJoinActivityInfo struct {
	UserID     string `json:"userId"`
	ActivityID string `json:"activityId"`
	JoinNum    int    `json:"joinNum"`
}

func GetUserJoinActivityInfo added in v0.4.0

func GetUserJoinActivityInfo(userID string, activityID string) ([]UserJoinActivityInfo, error)

type UserPendantInfo added in v0.5.1

type UserPendantInfo struct {
	UserID     string `json:"userId"`
	PendantID  string `json:"pendantId"`
	Term       int    `json:"term"`
	ObtainType uint8  `json:"obtainType"`
	Resource   string `json:"resource"`
	Effect     string `json:"effect"`
	CreateTime string `json:"createTime"`
}

func GetUserPendant added in v0.5.1

func GetUserPendant(userID string) (*UserPendantInfo, error)

type UserSignInfo

type UserSignInfo struct {
	UserID          string `json:"userId"`
	ConsecutiveDays int    `json:"consecutiveDays"`
	SevenDays       int    `json:"sevenDays"`
	Notice          bool   `json:"notice"`
	Signed          bool   `json:"signed"`
}

func GetNoticeUsers added in v0.8.5

func GetNoticeUsers() ([]UserSignInfo, error)

func GetSignInfo

func GetSignInfo(userID string, pageNo int, pageSize int) ([]UserSignInfo, error)

type UserTaskInfo

type UserTaskInfo struct {
	ID         string `json:"id"`
	TaskName   string `json:"taskName"`
	TaskDetail string `json:"taskDetail"`
	JumpType   uint8  `json:"jumpType"`
	JumpAddr   string `json:"jumpAddr"`
	Complete   bool   `json:"complete"`
	Url        string `json:"url"`
}

func GetUserTasks

func GetUserTasks(userID string, taskType uint8) ([]UserTaskInfo, error)

Jump to

Keyboard shortcuts

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