fix:裁剪业务逻辑调整

This commit is contained in:
momo
2023-08-23 11:09:14 +08:00
parent b373b7ed73
commit 2ef3547724
11 changed files with 215 additions and 46 deletions

View File

@@ -126,6 +126,15 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us
Source: "upload-logo",
})
// 是否去背景
if req.IsRemoveBg == 1 {
// res, err := l.svcCtx.Repositories.ImageHandle.LogoInfoSet(l.ctx, &repositories.LogoInfoSetReq{})
// if err != nil {
// return resp.SetStatus(basic.CodeServiceErr)
// }
}
if err != nil {
logx.Error(err)
return resp.SetStatus(basic.CodeFileUploadErr, "upload file failed")