上传logo
This commit is contained in:
@@ -33,8 +33,23 @@ service upload {
|
||||
// 上传文件回调
|
||||
@handler UploadCallbackHandler
|
||||
post /api/upload/upload-callback(UploadCallbackReq) returns (response);
|
||||
|
||||
// 上传LOGO
|
||||
@handler UploadLogoHandler
|
||||
post /api/upload/up-logo(UploadLogoReq) returns (response);
|
||||
|
||||
}
|
||||
|
||||
type (
|
||||
UploadLogoReq {
|
||||
ResourceId string `form:"resource_id"` // 资源ID
|
||||
ResourceUrl string `form:"resource_url"` // 资源URL
|
||||
IsRemoveBg int64 `form:"is_remove_bg"` // 是否要去掉背景
|
||||
Proportion int64 `form:"proportion,default=60"` // 贴图在模型面板上的比例
|
||||
SkuId int64 `form:"sku_id,default=0"` // 模板ID
|
||||
}
|
||||
)
|
||||
|
||||
type (
|
||||
UploadInfo {
|
||||
FileSize int64 `form:"file_size,optional"` // 上传唯一标识信息
|
||||
|
||||
Reference in New Issue
Block a user