云收藏 增加AI检测图片
This commit is contained in:
1 parent
b28940c02d
commit
b54a5f5310
36 files changed
+1978
-523
No files matched your search
@@ -9,15 +9,16 @@ namespace Work.Store.Api;
|
||||
/// <summary>全局共用一个用户会话与请求出口,窗体通过 Instance 访问。</summary>
|
||||
public sealed class StoreApiClient
|
||||
{
|
||||
private static readonly string BaseUrl = EnvironmentHelper.IsDevelopment
|
||||
? "http://localhost:14312/api/"
|
||||
: "http://103.90.155.78:9001/api/";
|
||||
private static readonly string BaseUrl = EnvironmentHelper.IsProduction
|
||||
? "http://103.90.155.78:9001/api/"
|
||||
: "http://localhost:14312/api/";
|
||||
|
||||
public static StoreApiClient Instance { get; } = new StoreApiClient();
|
||||
|
||||
public ApiTransport Transport { get; }
|
||||
public AuthApi Auth { get; }
|
||||
public CloudGoodsApi CloudGoods { get; }
|
||||
//public GoodsComplianceApi GoodsCompliance { get; }
|
||||
public ImageCacheApi ImageCache { get; }
|
||||
/// <summary>当前 Windows 安装的 SHA-256 设备指纹,登录时作为 DeviceId 发送。</summary>
|
||||
public string DeviceId { get; }
|
||||
@@ -28,6 +29,7 @@ public sealed class StoreApiClient
|
||||
Transport = new ApiTransport(BaseUrl);
|
||||
Auth = new AuthApi(Transport, DeviceId);
|
||||
CloudGoods = new CloudGoodsApi(Transport);
|
||||
//GoodsCompliance = new GoodsComplianceApi(Transport);
|
||||
ImageCache = new ImageCacheApi(Transport);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user