Add store logo

This commit is contained in:
Dennis Reimann 2024-06-27 16:31:20 +02:00
parent 61f37368f4
commit 61722fa099
No known key found for this signature in database
GPG Key ID: 5009E1797F03F8D0
2 changed files with 5 additions and 1 deletions

View File

@ -59,6 +59,7 @@ public class AppUserStoreInfo
{
public string? Id { get; set; }
public string? Name { get; set; }
public string? LogoUrl { get; set; }
public string? RoleId { get; set; }
public string? PosAppId { get; set; }
public string? DefaultCurrency { get; set; }

View File

@ -274,7 +274,10 @@ public partial class AppApiController
RoleId = userStore.StoreRole.Id,
PosAppId = posApp?.Id,
DefaultCurrency = storeBlob.DefaultCurrency,
Permissions = userStore.StoreRole.Permissions
Permissions = userStore.StoreRole.Permissions,
LogoUrl = storeBlob.LogoUrl != null
? await uriResolver.Resolve(Request.GetAbsoluteRootUri(), storeBlob.LogoUrl)
: null,
});
}