Files
StoreWeb/Modules/Store.Shops/Dtos/ShopResponses.cs
T
2026-10-29 11:34:35 +08:00

48 lines
1.8 KiB
C#

namespace Store.Shops.Dtos;
public sealed record ShopPage<T>(IReadOnlyList<T> Items, long Total);
/// <summary>列表只返回业务资料,登录密码、Cookie 和令牌不进入列表响应。</summary>
public sealed class ShopInfo
{
public int Id { get; set; }
public string LoginName { get; set; } = "";
public string ShopId { get; set; } = "";
public string MallId { get; set; } = "";
public string PddId { get; set; } = "";
public string ShopAccount { get; set; } = "";
public string UserName { get; set; } = "";
public string SubUserName { get; set; } = "";
public string CompanyName { get; set; } = "";
public string Notes { get; set; } = "";
public string LoginStatus { get; set; } = "";
public string LoginStatus2 { get; set; } = "";
public string OperateSubSaName { get; set; } = "";
public int AddProductRemaining { get; set; }
public int AddProductMonth { get; set; }
}
/// <summary>专用授权接口响应,仅允许读取本人或明确分配店铺的凭据。</summary>
public sealed class ShopClientInfo
{
public string ShopId { get; set; } = "";
public string AppKey { get; set; } = "";
public string AppSecret { get; set; } = "";
public string AccessToken { get; set; } = "";
public string RefreshToken { get; set; } = "";
public string ApiAuthStatus { get; set; } = "";
public DateTime? ExpiresTime { get; set; }
public DateTime? UpdateTime { get; set; }
}
/// <summary>供授权客户端使用的拼多多应用配置,通过部署配置注入。</summary>
public sealed class PddClientInfo
{
public string Describe { get; set; } = "";
public string ClientId { get; set; } = "";
public string ClientSecret { get; set; } = "";
public int MarketId { get; set; }
public string RedirectUri { get; set; } = "";
public bool IsCurrent { get; set; }
}