上传logo

This commit is contained in:
momo 2023-11-24 18:45:46 +08:00
parent 56c3ab71bc
commit fde34cd9b1

View File

@ -114,7 +114,11 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us
MysqlConn: l.svcCtx.MysqlConn,
AwsSession: l.svcCtx.AwsSession,
}
var resourceId string = hash.JsonHashKey(req.FileKey)
var hashKeyMap = make(map[string]interface{}, 2)
hashKeyMap["fileKey"] = req.FileKey
hashKeyMap["userId"] = userId
var resourceId string = hash.JsonHashKey(hashKeyMap)
uploadRes, err := upload.UploadFileByByte(&file.UploadBaseReq{
FileHash: resourceId,
FileByte: ioData,