This commit is contained in:
laodaming
2023-06-06 15:01:13 +08:00
parent 213665eb59
commit cf3a02ae7e
12 changed files with 163 additions and 369 deletions

View File

@@ -12,14 +12,10 @@ service product {
//获取产品列表
@handler GetProductListHandler
get /product/list(GetProductListReq) returns (response);
//获取产品详情信息
@handler GetProductInfoHandler
get /product/info(GetProductInfoReq) returns (response);
}
//获取产品列表
type GetProductListReq {
// TODO: add members here and delete this comment
Cid int64 `form:"cid"`
Size uint32 `form:"size"`
Page uint32 `form:"page"`
@@ -62,96 +58,4 @@ type Items {
SizeNum uint32 `json:"sizeNum"`
MiniPrice float64 `json:"miniPrice"`
CoverDefault string `json:"coverDefault"`
}
//获取产品详情
type GetProductInfoReq {
Pid string `form:"pid"` //sn
Size uint32 `form:"size"` //图片尺寸
ClientNo string `form:"clientNo"` //页面标识
HaveCloudRendering bool `form:"haveCloudRendering"` //是否显示云渲染开关
}
type GetProductInfoRsp {
Id int64 `json:"id"`
Type int32 `json:"type"`
Title string `json:"title"`
IsEnv uint32 `json:"isEnv"`
IsMicro uint32 `json:"isMicro"`
Materials []Materials `json:"materials"`
Sizes []Sizes `json:"sizes"`
TypeName string `json:"typeName"`
Templates Templates `json:"templates"`
}
type Materials {
Id int64 `json:"id"`
Title string `json:"title"`
}
type Sizes {
Id int64 `json:"id"`
Title SizeTitle `json:"title"`
Capacity string `json:"capacity"`
Cover string `json:"cover"`
}
type SizeTitle {
Cm string `json:"cm"`
Inth string `json:"inth"`
}
type Templates {
Ob484 []Ob484 `json:"4_84"`
}
type Ob484 {
Id int64 `json:"id"`
Title string `json:"title"`
TemplateData TemplateData `json:"templateData"`
}
type TemplateData {
Id int64 `json:"id"`
Cover string `json:"cover"`
Material string `json:"material"`
MaterialList []Material `json:"materialList"`
}
type Material {
Id int64 `json:"id"`
Tag string `json:"tag"`
Title string `json:"title"`
Type string `json:"type"`
Text string `json:"text"`
Fill string `json:"fill"`
FontSize int `json:"fontSize"`
FontFamily string `json:"fontFamily"`
IfBr bool `json:"ifBr"`
IfShow bool `json:"ifShow"`
IfGroup bool `json:"ifGroup"`
MaxNum int `json:"maxNum"`
Rotation int `json:"rotation"`
Align string `json:"align"`
VerticalAlign string `json:"verticalAlign"`
Material string `json:"material"`
QRcodeType string `json:"qRcodeType"`
Width int `json:"width"`
Height int `json:"height"`
X int `json:"x"`
Y int `json:"y"`
Opacity int `json:"opacity"`
OptionalColor []OptionalColor `json:"optionalColor"`
ZIndex int `json:"zIndex"`
SvgPath string `json:"svgPath"`
Follow Follow `json:"follow"`
Group []string `json:"group"`
CameraStand CameraStand `json:"cameraStand"`
}
type CameraStand {
X int `json:"x"`
Y int `json:"y"`
Z int `json:"z"`
}
type Follow {
Fill string `json:"fill"`
IfShow string `json:"ifShow"`
Content string `json:"content"`
}
type OptionalColor {
Color string `json:"color"`
Name string `json:"name"`
Default string `json:"default"`
}