131 lines
4.5 KiB
Go
131 lines
4.5 KiB
Go
package dto
|
|
|
|
import "github.com/gogf/gf/v2/os/gtime"
|
|
|
|
// 接口响应 item:与 entity 字段一一镜像(wire 格式一致),
|
|
// 保证接口出入参一律由 dto 描述、service 组装,entity 不外泄到 HTTP 层
|
|
|
|
type UserPhotoItem struct {
|
|
Id int64 `json:"id"`
|
|
UserId int64 `json:"user_id"`
|
|
Type int `json:"type"`
|
|
Url string `json:"url"`
|
|
Status int `json:"status"`
|
|
CreatedAt *gtime.Time `json:"created_at"`
|
|
}
|
|
|
|
type MemberPlanItem struct {
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
PriceFen int64 `json:"price_fen"`
|
|
DurationDays int `json:"duration_days"`
|
|
Features string `json:"features"`
|
|
Sort int `json:"sort"`
|
|
Status int `json:"status"`
|
|
CreatedAt *gtime.Time `json:"created_at"`
|
|
}
|
|
|
|
type WardrobeItem struct {
|
|
Id int64 `json:"id"`
|
|
UserId int64 `json:"user_id"`
|
|
PhotoUrl string `json:"photo_url"`
|
|
Name string `json:"name"`
|
|
Category string `json:"category"`
|
|
Season string `json:"season"`
|
|
StyleTags string `json:"style_tags"`
|
|
ColorInfo string `json:"color_info"`
|
|
Status int `json:"status"`
|
|
CreatedAt *gtime.Time `json:"created_at"`
|
|
}
|
|
|
|
type CpsCategoryItem struct {
|
|
Id int64 `json:"id"`
|
|
Code string `json:"code"`
|
|
Name string `json:"name"`
|
|
ParentCode string `json:"parent_code"`
|
|
Source string `json:"source"`
|
|
SourceCatId string `json:"source_cat_id"`
|
|
Sort int `json:"sort"`
|
|
CreatedAt *gtime.Time `json:"created_at"`
|
|
}
|
|
|
|
type CpsProductItem struct {
|
|
Id int64 `json:"id"`
|
|
Source string `json:"source"`
|
|
OuterId string `json:"outer_id"`
|
|
CategoryCode string `json:"category_code"`
|
|
Name string `json:"name"`
|
|
CoverUrl string `json:"cover_url"`
|
|
PriceFen int64 `json:"price_fen"`
|
|
ShopName string `json:"shop_name"`
|
|
CommissionRate int `json:"commission_rate"`
|
|
City string `json:"city"`
|
|
SceneTags string `json:"scene_tags"`
|
|
Status int `json:"status"`
|
|
SyncAt *gtime.Time `json:"sync_at"`
|
|
CreatedAt *gtime.Time `json:"created_at"`
|
|
}
|
|
|
|
type HairstyleAssetItem struct {
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
StyleTag string `json:"style_tag"`
|
|
GlbUrl string `json:"glb_url"`
|
|
ThumbUrl string `json:"thumb_url"`
|
|
ApplicableFace string `json:"applicable_face"`
|
|
Sort int `json:"sort"`
|
|
CreatedAt *gtime.Time `json:"created_at"`
|
|
}
|
|
|
|
type PartnerStoreItem struct {
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Type int `json:"type"`
|
|
Lat float64 `json:"lat"`
|
|
Lng float64 `json:"lng"`
|
|
Address string `json:"address"`
|
|
CommissionPolicy string `json:"commission_policy"`
|
|
Status int `json:"status"`
|
|
CreatedAt *gtime.Time `json:"created_at"`
|
|
}
|
|
|
|
type OutfitPlanItem struct {
|
|
Id int64 `json:"id"`
|
|
TaskId int64 `json:"task_id"`
|
|
UserId int64 `json:"user_id"`
|
|
DateRange string `json:"date_range"`
|
|
Location string `json:"location"`
|
|
Title string `json:"title"`
|
|
Source string `json:"source"`
|
|
Score int `json:"score"`
|
|
MainFlag int `json:"main_flag"`
|
|
HairstyleId int64 `json:"hairstyle_id"`
|
|
HairColor string `json:"hair_color"`
|
|
WeatherRef string `json:"weather_ref"`
|
|
Occasion string `json:"occasion"`
|
|
CreatedAt *gtime.Time `json:"created_at"`
|
|
}
|
|
|
|
type PlanOutfitItem struct {
|
|
Id int64 `json:"id"`
|
|
PlanId int64 `json:"plan_id"`
|
|
Slot string `json:"slot"`
|
|
Source string `json:"source"`
|
|
WardrobeItemId int64 `json:"wardrobe_item_id"`
|
|
ProductName string `json:"product_name"`
|
|
Name string `json:"name"`
|
|
Desc string `json:"desc"`
|
|
CreatedAt *gtime.Time `json:"created_at"`
|
|
}
|
|
|
|
type PlanEffectImageItem struct {
|
|
Id int64 `json:"id"`
|
|
PlanId int64 `json:"plan_id"`
|
|
Angle string `json:"angle"`
|
|
Url string `json:"url"`
|
|
Status string `json:"status"`
|
|
PromptSnapshot string `json:"prompt_snapshot"`
|
|
CreatedAt *gtime.Time `json:"created_at"`
|
|
UpdatedAt *gtime.Time `json:"updated_at"`
|
|
}
|