删除产品服务不用的接口
This commit is contained in:
@@ -10,31 +10,9 @@ info (
|
||||
import "basic.api"
|
||||
|
||||
service product {
|
||||
//获取分类下的产品以及尺寸
|
||||
@handler GetSizeByProductHandler
|
||||
get /api/product/get-size-by-product(request) returns (response);
|
||||
//获取保存的设计信息
|
||||
@handler GetProductDesignHandler
|
||||
get /api/product/design(GetProductDesignReq) returns (response);
|
||||
//产品设计数据采集
|
||||
@handler DesignGatherHandler
|
||||
post /api/product/design-gather(DesignGatherReq) returns (response);
|
||||
//获取产品信息
|
||||
@handler GetProductInfoHandler
|
||||
get /api/product/info(GetProductInfoReq) returns (response);
|
||||
//保存设计信息
|
||||
@handler SaveDesignHandler
|
||||
post /api/product/save-design(SaveDesignReq) returns (response);
|
||||
//其他产品推荐列表
|
||||
@handler OtherProductListHandler
|
||||
get /api/product/other-list(OtherProductListReq) returns (response);
|
||||
//获取分类产品列表
|
||||
@handler GetTagProductListHandler
|
||||
get /api/product/tag_product_list(GetTagProductListReq) returns (response);
|
||||
//*********************产品详情分解接口开始***********************
|
||||
//获取云渲染设计方案信息
|
||||
@handler GetRenderDesignHandler
|
||||
get /api/product/render_design(GetRenderDesignReq) returns (response);
|
||||
//获取产品模型信息
|
||||
@handler GetModelByPidHandler
|
||||
get /api/product/get_model_by_pid(GetModelByPidReq) returns (response);
|
||||
@@ -62,178 +40,14 @@ service product {
|
||||
//获取产品渲染设置
|
||||
@handler GetRenderSettingByPidHandler
|
||||
get /api/product/get_render_setting_by_pid(GetRenderSettingByPidReq) returns (response);
|
||||
//获取产品千人千面设计方案
|
||||
@handler GetLastProductDesignHandler
|
||||
get /api/product/get_last_product_design(request) returns (response);
|
||||
//获取详情页推荐产品列表
|
||||
@handler GetRecommandProductListHandler
|
||||
get /api/product/recommand(GetRecommandProductListReq) returns (response);
|
||||
//获取列表页推荐产品列表
|
||||
@handler HomePageRecommendProductListHandler
|
||||
get /api/product/home_page_recommend(HomePageRecommendProductListReq) returns (response);
|
||||
//*********************产品详情分解接口结束***********************
|
||||
//*********************推荐产品接口开始××××××××××××××××××××××××××
|
||||
|
||||
//*********************推荐产品接口结束××××××××××××××××××××××××××
|
||||
}
|
||||
|
||||
//获取分类下的产品以及尺寸
|
||||
type GetSizeByProductRsp {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Children []Children `json:"children"`
|
||||
}
|
||||
type Children {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Cycle int `json:"cycle"`
|
||||
ChildrenList []ChildrenObj `json:"children"`
|
||||
}
|
||||
type ChildrenObj {
|
||||
Id int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
PriceList []PriceObj `json:"price_list"`
|
||||
}
|
||||
type PriceObj {
|
||||
Num int `json:"num"`
|
||||
Price float64 `json:"price"`
|
||||
}
|
||||
//获取保存的设计信息
|
||||
type GetProductDesignReq {
|
||||
Sn string `form:"sn"`
|
||||
}
|
||||
type GetProductDesignRsp {
|
||||
ProductId int64 `json:"product_id"`
|
||||
TemplateId int64 `json:"template_id"`
|
||||
//MaterialId int64 `json:"material_id"`
|
||||
SizeId int64 `json:"size_id"`
|
||||
OptionalId int64 `json:"optional_id"`
|
||||
Cover string `json:"cover"`
|
||||
Info string `json:"info"`
|
||||
}
|
||||
//产品设计数据采集
|
||||
type DesignGatherReq {
|
||||
Data string `json:"data"`
|
||||
}
|
||||
type DesignGatherRsp {
|
||||
Sn string `json:"sn"`
|
||||
}
|
||||
//获取产品信息
|
||||
type GetProductInfoReq {
|
||||
Pid string `form:"pid"`
|
||||
Size uint32 `form:"size"`
|
||||
ClientNo string `form:"client_no"`
|
||||
HaveCloudRendering bool `form:"haveCloudRendering,optional"`
|
||||
}
|
||||
type GetProductInfoRsp {
|
||||
Id int64 `json:"id"`
|
||||
Type int64 `json:"type"`
|
||||
Title string `json:"title"`
|
||||
IsEnv int64 `json:"isEnv"`
|
||||
IsMicro int64 `json:"isMicro"`
|
||||
TypeName string `json:"typeName"`
|
||||
IsLowRendering bool `json:"is_low_rendering"`
|
||||
IsRemoveBg bool `json:"is_remove_bg"`
|
||||
Materials []MaterialItem `json:"materials"`
|
||||
Sizes []SizeItem `json:"sizes"`
|
||||
Templates interface{} `json:"templates"`
|
||||
Prices interface{} `json:"prices"`
|
||||
LastDesign interface{} `json:"last_design"`
|
||||
RenderDesign interface{} `json:"render_design"`
|
||||
Colors interface{} `json:"colors"`
|
||||
}
|
||||
type SizeItem {
|
||||
Id int64 `json:"id"`
|
||||
Title SizeTitle `json:"title"`
|
||||
Capacity string `json:"capacity"`
|
||||
Cover string `json:"cover"`
|
||||
Sort int64 `json:"sort"`
|
||||
PartsCanDeleted bool `json:"parts_can_deleted"`
|
||||
}
|
||||
type SizeTitle {
|
||||
Cm string `json:"cm"`
|
||||
Inch string `json:"inch"`
|
||||
}
|
||||
type MaterialItem {
|
||||
Id int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
}
|
||||
//保存设计信息
|
||||
type SaveDesignReq {
|
||||
Data string `json:"data"` //加密信息
|
||||
}
|
||||
type SaveDesignRsp {
|
||||
Sn string `json:"sn"`
|
||||
}
|
||||
//保存设计信息(解密结构体)
|
||||
type SaveDesignReqRealStruct {
|
||||
ProductId int64 `json:"product_id"`
|
||||
SizeId int64 `json:"size_id"`
|
||||
OptionalId int64 `json:"optional_id"`
|
||||
TemplateId int64 `json:"template_id"`
|
||||
Sn string `json:"sn"`
|
||||
Data DesignData `json:"data"`
|
||||
Cover string `json:"cover"`
|
||||
PageGuid string `json:"pageGuid"`
|
||||
}
|
||||
|
||||
type DesignData {
|
||||
MainColor ColorFill `json:"MainColor"`
|
||||
SecondaryColor ColorFill `json:"SecondaryColor"`
|
||||
Logo DesignLogo `json:"Logo"`
|
||||
Slogan DesignSlogan `json:"Slogan"`
|
||||
QRcode DesignQRcode `json:"QRcode"`
|
||||
Website DesignWebsite `json:"Website"`
|
||||
Phone DesignPhone `json:"Phone"`
|
||||
Address DesignAddress `json:"Address"`
|
||||
}
|
||||
type DesignAddress {
|
||||
Text string `json:"text"`
|
||||
IfShow bool `json:"ifShow"`
|
||||
}
|
||||
type DesignPhone {
|
||||
Text string `json:"text"`
|
||||
IfShow bool `json:"ifShow"`
|
||||
}
|
||||
type DesignWebsite {
|
||||
Text string `json:"text"`
|
||||
IfShow bool `json:"ifShow"`
|
||||
}
|
||||
type DesignQRcode {
|
||||
Text string `json:"text"`
|
||||
SvgPath string `json:"svgPath"`
|
||||
IfShow bool `json:"ifShow"`
|
||||
}
|
||||
type DesignSlogan {
|
||||
Text string `json:"text"`
|
||||
IfShow bool `json:"ifShow"`
|
||||
}
|
||||
type DesignLogo {
|
||||
Material string `json:"material"`
|
||||
MaterialName string `json:"materialName"`
|
||||
MaterialTime string `json:"materialTime"`
|
||||
Fill string `json:"fill"`
|
||||
FillName string `json:"fill_name"`
|
||||
Colors []string `json:"colors"`
|
||||
}
|
||||
type ColorFill {
|
||||
Fill string `json:"fill"`
|
||||
}
|
||||
//其他产品推荐列表
|
||||
type OtherProductListReq {
|
||||
Cid int64 `form:"cid"`
|
||||
Num int64 `form:"num"`
|
||||
Size uint32 `form:"size"`
|
||||
}
|
||||
type OtherProductListRsp {
|
||||
Title string `json:"title"`
|
||||
Cover string `json:"cover"`
|
||||
CoverImg string `json:"cover_img"`
|
||||
CoverDefault string `json:"cover_default"`
|
||||
Sn string `json:"sn"`
|
||||
Id int64 `json:"id"`
|
||||
SkuId int64 `json:"sku_id"`
|
||||
}
|
||||
//获取详情页推荐产品列表
|
||||
type GetRecommandProductListReq {
|
||||
Size int32 `form:"size,optional"`
|
||||
@@ -294,19 +108,6 @@ type CoverDefaultItem {
|
||||
Cover string `json:"cover"`
|
||||
CoverMetadata interface{} `json:"cover_metadata"`
|
||||
}
|
||||
//获取云渲染设计方案信息
|
||||
type GetRenderDesignReq {
|
||||
Sn string `form:"sn"`
|
||||
}
|
||||
type GetRenderDesignRsp {
|
||||
Id int64 `json:"id"`
|
||||
Info interface{} `json:"info"`
|
||||
OptionalId int64 `json:"optional_id"`
|
||||
SizeId int64 `json:"size_id"`
|
||||
TemplateId int64 `json:"template_id"`
|
||||
LogoColor []string `json:"logo_color"`
|
||||
}
|
||||
|
||||
//获取产品模型信息
|
||||
type GetModelByPidReq {
|
||||
Pid string `form:"pid"` //实际上是产品sn
|
||||
@@ -404,14 +205,6 @@ type GetRenderSettingByPidRsp {
|
||||
LastDesign bool `json:"last_design"` //是否拥有千人千面设计方案
|
||||
Colors interface{} `json:"colors"`
|
||||
}
|
||||
//获取产品千人千面设计方案
|
||||
type GetLastProductDesignRsp {
|
||||
Id int64 `json:"id"`
|
||||
OptionalId int64 `json:"optional_id"`
|
||||
SizeId int64 `json:"size_id"`
|
||||
LogoColor interface{} `json:"logo_color"`
|
||||
Info interface{} `json:"info"`
|
||||
}
|
||||
//获取列表页推荐产品(返回是这个维度数组)
|
||||
type HomePageRecommendProductListReq {
|
||||
Size uint32 `form:"size"`
|
||||
|
||||
Reference in New Issue
Block a user