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