lexseriesbumberredeemservice

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IService

type IService interface {
	Redeem(req *RedeemRequest, trace ...tracehandler.Trace) (*RedeemResponse, error)
}

func NewService

func NewService(client *http.Client, lexCommonURL string) IService

type RedeemRequest

type RedeemRequest struct {
	SN            string       `json:"sn"`                    // 唯一碼
	MemberId      string       `json:"memberId"`              // 會員ID
	RechargeMoney int64        `json:"rechargeMoney"`         // 儲值金額(TW)
	Source        string       `json:"source"`                // 來源
	Rewards       reward.Nodes `json:"rewards"`               // 獎勵
	ProductID     string       `json:"productId"`             // 產品ID
	Description   string       `json:"description,omitempty"` // 描述用
}

type RedeemResponse

type RedeemResponse struct {
	ResourceChangeInfoList ResourceChangeInfos    `json:"resourceChangeInfoList"` // 變化的資源內容
	RetStatus              baseProtocol.RetStatus `json:"retStatus"`
}

type ResourceChangeInfo

type ResourceChangeInfo struct {
	ID        string `json:"id"`
	Type      string `json:"type"`
	BeforeNum int64  `json:"beforeNum"`
	AfterNum  int64  `json:"afterNum"`
	Time      int64  `json:"time"`
}

type ResourceChangeInfos

type ResourceChangeInfos []ResourceChangeInfo

Jump to

Keyboard shortcuts

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