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)
}
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 ResourceChangeInfos ¶
type ResourceChangeInfos []ResourceChangeInfo
Click to show internal directories.
Click to hide internal directories.