seriesnumberredeemservice

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, commonURL string) IService

type RedeemRequest

type RedeemRequest struct {
	SN                    string        `json:"sn"`                          // 唯一碼
	MemberId              string        `json:"memberId"`                    // 會員ID
	Source                string        `json:"source"`                      // 來源
	Rewards               *reward.Nodes `json:"rewards"`                     // 獎勵
	RewardConditionId     *int64        `json:"rewardConditionId,omitempty"` // 獎勵條件ID。除了 SeriesNumberRedeem 接口外不可與 Rewards 同時存在,只能擇一
	ProductID             string        `json:"productId"`                   // 產品ID
	VIPPoint              int32         `json:"vipPoint"`                    // 調整VIP點數
	ExtraData             *string       `json:"extraData,omitempty"`         // 可額外放入想要放的字串
	Description           string        `json:"description,omitempty"`       // 描述用
	MailTitleParams       *string       `json:"mailTitleParams,omitempty"`   // 郵件標題參數 用於郵件標題的參數替換(搭配RewardConditionId)
	MailContentParams     *string       `json:"mailContentParams,omitempty"` // 郵件內容參數 用於郵件內容的參數替換(搭配RewardConditionId)
	IsSkipSetRechargeFlag bool          `json:"isSkipSetRechargeFlag"`       // 是否略過首儲
}

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