From 90dacd88a3bb82032f216c327e568d6d74cade11 Mon Sep 17 00:00:00 2001 From: chfei Date: Mon, 28 Sep 2026 16:33:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4wx=20=E5=95=86=E9=93=BA?= =?UTF-8?q?=E5=AE=9E=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Store.Contracts/Shops/WXShopEntity.cs | 255 ++++++++++++++++++++++++++ 1 file changed, 255 insertions(+) create mode 100644 Store.Contracts/Shops/WXShopEntity.cs diff --git a/Store.Contracts/Shops/WXShopEntity.cs b/Store.Contracts/Shops/WXShopEntity.cs new file mode 100644 index 0000000..4e1fc03 --- /dev/null +++ b/Store.Contracts/Shops/WXShopEntity.cs @@ -0,0 +1,255 @@ +using FreeSql.DataAnnotations; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Store.Contracts.Shops; + +/// +/// 店铺表 +/// +[Table(Name = "erp.o_shop")] +public class WXShopEntity +{ + /// + /// 主键 + /// + [Column(Name = "id", IsPrimary = true, IsIdentity = true)] + public long Id { get; set; } + + /// + /// 店铺名 + /// + [Column(Name = "name")] + public string Name { get; set; } + + /// + /// 对应第三方平台Id + /// + [Column(Name = "type")] + public int Type { get; set; } + + /// + /// 登录获取的Cookie信息 + /// + [Column(Name = "login_cookie")] + public string LoginCookie { get; set; } + + /// + /// 访问需要的header参数 + /// + [Column(Name = "header_params")] + public string HeaderParams { get; set; } + + /// + /// 店铺url + /// + [Column(Name = "url")] + public string Url { get; set; } + + /// + /// 排序 + /// + [Column(Name = "sort")] + public int Sort { get; set; } + + /// + /// 状态(1正常2已删除) + /// + [Column(Name = "status")] + public int? Status { get; set; } + + /// + /// 描述 + /// + [Column(Name = "remark")] + public string Remark { get; set; } + + /// + /// 第三方平台店铺id,淘宝天猫开放平台使用 + /// + [Column(Name = "seller_id")] + public long? SellerId { get; set; } + + /// + /// 授权时间 + /// + [Column(Name = "auth_time")] + public long? AuthTime { get; set; } + + /// + /// 服务市场授权到期时间 + /// + [Column(Name = "expire_time")] + public long? ExpireTime { get; set; } + + /// + /// Appkey + /// + [Column(Name = "app_key")] + public string AppKey { get; set; } + + /// + /// Appsercet + /// + [Column(Name = "app_secret")] + public string AppSecret { get; set; } + + /// + /// 小红椒的access_token + /// + [Column(Name = "access_token_xhj")] + public string AccessTokenXhj { get; set; } + + /// + /// 第三方平台sessionKey(access_token) + /// + [Column(Name = "access_token")] + public string AccessToken { get; set; } + + /// + /// 小红椒多久到期 + /// + [Column(Name = "expires_in_xhj")] + public long? ExpiresInXhj { get; set; } + + /// + /// 到期 + /// + [Column(Name = "expires_in")] + public long? ExpiresIn { get; set; } + + /// + /// 小红椒access_token开始时间 + /// + [Column(Name = "access_token_begin_xhj")] + public long? AccessTokenBeginXhj { get; set; } + + /// + /// access_token开始时间 + /// + [Column(Name = "access_token_begin")] + public long? AccessTokenBegin { get; set; } + + /// + /// 刷新token + /// + [Column(Name = "refresh_token")] + public string RefreshToken { get; set; } + + /// + /// 刷新token过期时间 + /// + [Column(Name = "refresh_token_timeout")] + public long? RefreshTokenTimeout { get; set; } + + /// + /// 代理api请求凭证 + /// + [Column(Name = "session")] + public string Session { get; set; } + + /// + /// 代理api获取请求凭证的shopkey字段 + /// + [Column(Name = "shop_key")] + public string ShopKey { get; set; } + + /// + /// 请求url + /// + [Column(Name = "api_request_url")] + public string ApiRequestUrl { get; set; } + + /// + /// 回掉URL + /// + [Column(Name = "api_callback_url")] + public string ApiCallbackUrl { get; set; } + + /// + /// 负责人id + /// + [Column(Name = "manage_user_id")] + public long? ManageUserId { get; set; } + + /// + /// 默认运费模板id,抖店上传商品使用 + /// + [Column(Name = "default_freight_template_id")] + public long? DefaultFreightTemplateId { get; set; } + + /// + /// 默认品牌id,抖店上传商品使用 + /// + [Column(Name = "default_brand_id")] + public long? DefaultBrandId { get; set; } + + /// + /// 店铺是否已开启尺码自动优化,0:不需要开启,1:未开启,2:已开启 + /// + [Column(Name = "auto_size_template_optimize")] + public byte? AutoSizeTemplateOptimize { get; set; } + + /// + /// 店铺分组 + /// + [Column(Name = "shop_group_id")] + public long? ShopGroupId { get; set; } + + /// + /// 企业账号用户id + /// + [Column(Name = "corporate_account_user_id")] + public long? CorporateAccountUserId { get; set; } + + /// + /// 国家/地区 + /// + [Column(Name = "region_id")] + public long? RegionId { get; set; } + + /// + /// 商户ID + /// + [Column(Name = "merchant_id")] + public long? MerchantId { get; set; } + + /// + /// 创建时间 + /// + [Column(Name = "create_time")] + public DateTime? CreateTime { get; set; } + + /// + /// 创建人 + /// + [Column(Name = "create_by")] + public string CreateBy { get; set; } + + /// + /// 更新时间 + /// + [Column(Name = "update_time")] + public DateTime? UpdateTime { get; set; } + + /// + /// 更新人 + /// + [Column(Name = "update_by")] + public string UpdateBy { get; set; } + + /// + /// api调用状态0未开启1已开启 + /// + [Column(Name = "api_status")] + public int ApiStatus { get; set; } + + /// + /// 是否开启自动购买外采礼物单,0:未开启,1:已开启 + /// + [Column(Name = "auto_purchase_external_gift")] + public int? AutoPurchaseExternalGift { get; set; } +}