first commit

This commit is contained in:
2026-09-11 01:41:52 +08:00
commit 9f22e6ccae
263 changed files with 28935 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
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"`
}