26 lines
849 B
Go
26 lines
849 B
Go
package exchlogmod
|
|
|
|
import (
|
|
"time"
|
|
|
|
"91porn-server/models/commod"
|
|
)
|
|
|
|
type ListReqParam struct {
|
|
Code *string `form:"code" json:"code"` // 兑换码
|
|
UserID *uint64 `form:"userID" json:"userID"` // 兑换者
|
|
Channel *string `form:"channel" json:"channel"` // 所属渠道
|
|
Authority *string `form:"authority" json:"authority"` // 兑换权限
|
|
Page commod.Page
|
|
}
|
|
|
|
type ListResp struct {
|
|
Code string `json:"code"` // 兑换码
|
|
UserID uint64 `json:"userID"` // 兑换者
|
|
Channel string `json:"channel"` // 所属渠道
|
|
Authority string `json:"authority"` // 兑换权限
|
|
Reward int `json:"reward"` // 奖励值
|
|
RewardCount int `json:"rewardCount"` // 奖励量
|
|
CreatedAt time.Time `json:"createdAt"` // 创建时间/兑换时间
|
|
}
|