35 lines
1.3 KiB
Go
35 lines
1.3 KiB
Go
package dto
|
|
|
|
type GoodsGetByCodeRequest struct {
|
|
GoodsCode string `json:"goods_code" binding:"required"`
|
|
}
|
|
|
|
// GoodsGetByCodeResponse 商品信息
|
|
type GoodsGetByCodeResponse struct {
|
|
ID int64 `json:"id"`
|
|
GoodsCode string `json:"goods_code"`
|
|
GoodsName string `json:"goods_name"`
|
|
GoodsType int8 `json:"goods_type"` // 1=会员包 2=上传包
|
|
Price int64 `json:"price"` // 原价(分)
|
|
DiscountPrice int64 `json:"discount_price"` // 售价(分)
|
|
MemberDays int64 `json:"member_days"`
|
|
UploadQuota int64 `json:"upload_quota"`
|
|
AIRecommendQuota int64 `json:"ai_recommend_quota"`
|
|
ClosetShareQuota int64 `json:"closet_share_quota"`
|
|
OutfitShareQuota int64 `json:"outfit_share_quota"`
|
|
ValidDays int64 `json:"valid_days"` // 赠送额度有效期天数(加量包;会员包为 0 表示跟随 VIP)
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
// GoodsListRequest 商品信息
|
|
type GoodsListRequest struct {
|
|
PageRequest
|
|
GoodsType int8 `form:"goods_type" json:"goods_type"` // 1=会员包 2=上传包 3=AI推荐包 4=衣柜分享包 5=搭配分享包
|
|
}
|
|
|
|
// GoodsListResponse 商品列表
|
|
type GoodsListResponse struct {
|
|
PageResponse
|
|
List []GoodsGetByCodeResponse `json:"list"`
|
|
}
|