namespace Store.Shops.Dtos; public sealed record ShopPage(IReadOnlyList Items, long Total); /// 列表只返回业务资料,登录密码、Cookie 和令牌不进入列表响应。 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; } } /// 专用授权接口响应,仅允许读取本人或明确分配店铺的凭据。 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; } } /// 供授权客户端使用的拼多多应用配置,通过部署配置注入。 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; } }