fix:上传logo--debug模式
This commit is contained in:
@@ -38,6 +38,10 @@ service upload {
|
||||
@handler UploadLogoHandler
|
||||
post /api/upload/up-logo(UploadLogoReq) returns (response);
|
||||
|
||||
// 上传LOGO-DEBUG
|
||||
@handler UploadLogoDebugHandler
|
||||
post /api/upload/up-logo-debug(UploadLogoDebugReq) returns (response);
|
||||
|
||||
// 上传文件发起--base64
|
||||
@handler UploadFileBaseHandler
|
||||
post /api/upload/upload-file-base(UploadFileBaseReq) returns (response);
|
||||
@@ -47,6 +51,20 @@ service upload {
|
||||
|
||||
}
|
||||
|
||||
type GetProductTemplateTagsRsp {
|
||||
Id int64 `json:"id"`
|
||||
TemplateTag string `json:"template_tag"`
|
||||
IsDefaultTemplateTag bool `json:"is_default_template_tag"`
|
||||
TemplateTagGroups interface{} `json:"template_tag_groups"`
|
||||
Cover string `json:"cover"`
|
||||
CoverMetadata interface{} `json:"cover_metadata"`
|
||||
Colors [][]string `json:"colors"`
|
||||
SelectedColorIndex int `json:"selected_color_index"`
|
||||
ProductId int64 `json:"product_id"`
|
||||
ProductCover string `json:"product_cover"`
|
||||
ProductCoverMetadata interface{} `json:"product_cover_metadata"`
|
||||
}
|
||||
|
||||
type (
|
||||
UploadLogoStandardReq {
|
||||
IsRemoveBg string `form:"is_remove_bg"`
|
||||
@@ -72,6 +90,15 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
type (
|
||||
UploadLogoDebugReq {
|
||||
FileKey string `form:"file_key"` // 上传logo唯一标识信息
|
||||
IsRemoveBg int64 `form:"is_remove_bg,optional"` // 是否要去掉背景
|
||||
Proportion int64 `form:"proportion,default=60"` // 贴图在模型面板上的比例
|
||||
SkuId int64 `form:"sku_id,default=0"` // 模板ID
|
||||
}
|
||||
)
|
||||
|
||||
type (
|
||||
UploadLogoReq {
|
||||
FileKey string `form:"file_key"` // 上传logo唯一标识信息
|
||||
|
||||
Reference in New Issue
Block a user