增加商铺列表

This commit is contained in:
chfei committed 2026-11-16 12:17:45 +08:00
1 parent d5232c581c
commit 440510aa8c
19 files changed
+734 -77

No files matched your search

@@ -0,0 +1,22 @@
using MAX.Core.DependencyInjection;
using Store.Management.Api;
using Store.Management.Api.Models;
using Store.Management.Api.Shops;
using Store.Management.Models;
namespace Store.Management.Framework.Services;
public interface IShopService
{
Task<IReadOnlyList<ShopCookieInfo>> GetCookiesAsync(string shopId, CancellationToken cancellationToken = default);
Task<PageResult<ShopInfo>> SearchAsync(ShopQueryRequest request, CancellationToken cancellationToken = default);
}
internal sealed class ShopService(StoreApiClient client) : IShopService, ISingletonDependency
{
public Task<IReadOnlyList<ShopCookieInfo>> GetCookiesAsync(string shopId, CancellationToken cancellationToken = default)
=> client.Shops.GetCookiesAsync(shopId, cancellationToken);
public Task<PageResult<ShopInfo>> SearchAsync(ShopQueryRequest request, CancellationToken cancellationToken = default)
=> client.Shops.SearchAsync(request, cancellationToken);
}