first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package dto
|
||||
|
||||
// AdRewardGrantRequest 广告激励额度发放请求。
|
||||
// RewardType 取值:cos / ai / outfit_share / closet_share,映射到额度类型。
|
||||
// 发放金额由服务端配置固定,前端不传金额,杜绝刷额度。
|
||||
type AdRewardGrantRequest struct {
|
||||
RewardType string `json:"reward_type" binding:"required"` // 激励类型
|
||||
RefID string `json:"ref_id" binding:"required"` // 广告记录ID(幂等键)
|
||||
}
|
||||
|
||||
// AdRewardGrantResponse 广告激励额度发放响应。
|
||||
type AdRewardGrantResponse struct {
|
||||
RefID string `json:"ref_id"` // 广告记录ID
|
||||
QuotaType int8 `json:"quota_type"` // 额度类型 1=cos 2=AI 3=社区分享 4=衣柜分享
|
||||
Amount int64 `json:"amount"` // 发放数量
|
||||
}
|
||||
Reference in New Issue
Block a user