This commit is contained in:
laodaming
2023-06-12 20:05:51 +08:00
parent b6095d67ad
commit fdcd8c46e0
5 changed files with 47 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ func UploadLogoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
}
// 创建一个业务逻辑层实例
l := logic.NewUploadLogoLogic(r.Context(), svcCtx)
resp := l.UploadLogo(&req, userinfo)
resp := l.UploadLogo(&req, userinfo, r)
// 如果响应不为nil则使用httpx.OkJsonCtx方法返回JSON响应;
// 否则发送500内部服务器错误的JSON响应并记录错误消息logx.Error。
if resp != nil {