Files
KJD_WebService/Store.Contracts/Shops/ShopEntity.cs
T

256 lines
5.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Store.Contracts.Shops;
/// <summary>
/// 店铺表
/// </summary>
[Table(Name = "erp.o_shop")]
public class ShopEntity
{
/// <summary>
/// 主键
/// </summary>
[Column(Name = "id", IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 店铺名
/// </summary>
[Column(Name = "name")]
public string Name { get; set; }
/// <summary>
/// 对应第三方平台Id
/// </summary>
[Column(Name = "type")]
public int Type { get; set; }
/// <summary>
/// 登录获取的Cookie信息
/// </summary>
[Column(Name = "login_cookie")]
public string LoginCookie { get; set; }
/// <summary>
/// 访问需要的header参数
/// </summary>
[Column(Name = "header_params")]
public string HeaderParams { get; set; }
/// <summary>
/// 店铺url
/// </summary>
[Column(Name = "url")]
public string Url { get; set; }
/// <summary>
/// 排序
/// </summary>
[Column(Name = "sort")]
public int Sort { get; set; }
/// <summary>
/// 状态(1正常2已删除)
/// </summary>
[Column(Name = "status")]
public int? Status { get; set; }
/// <summary>
/// 描述
/// </summary>
[Column(Name = "remark")]
public string Remark { get; set; }
/// <summary>
/// 第三方平台店铺id,淘宝天猫开放平台使用
/// </summary>
[Column(Name = "seller_id")]
public long? SellerId { get; set; }
/// <summary>
/// 授权时间
/// </summary>
[Column(Name = "auth_time")]
public long? AuthTime { get; set; }
/// <summary>
/// 服务市场授权到期时间
/// </summary>
[Column(Name = "expire_time")]
public long? ExpireTime { get; set; }
/// <summary>
/// Appkey
/// </summary>
[Column(Name = "app_key")]
public string AppKey { get; set; }
/// <summary>
/// Appsercet
/// </summary>
[Column(Name = "app_secret")]
public string AppSecret { get; set; }
/// <summary>
/// 小红椒的access_token
/// </summary>
[Column(Name = "access_token_xhj")]
public string AccessTokenXhj { get; set; }
/// <summary>
/// 第三方平台sessionKey(access_token)
/// </summary>
[Column(Name = "access_token")]
public string AccessToken { get; set; }
/// <summary>
/// 小红椒多久到期
/// </summary>
[Column(Name = "expires_in_xhj")]
public long? ExpiresInXhj { get; set; }
/// <summary>
/// 到期
/// </summary>
[Column(Name = "expires_in")]
public long? ExpiresIn { get; set; }
/// <summary>
/// 小红椒access_token开始时间
/// </summary>
[Column(Name = "access_token_begin_xhj")]
public long? AccessTokenBeginXhj { get; set; }
/// <summary>
/// access_token开始时间
/// </summary>
[Column(Name = "access_token_begin")]
public long? AccessTokenBegin { get; set; }
/// <summary>
/// 刷新token
/// </summary>
[Column(Name = "refresh_token")]
public string RefreshToken { get; set; }
/// <summary>
/// 刷新token过期时间
/// </summary>
[Column(Name = "refresh_token_timeout")]
public long? RefreshTokenTimeout { get; set; }
/// <summary>
/// 代理api请求凭证
/// </summary>
[Column(Name = "session")]
public string Session { get; set; }
/// <summary>
/// 代理api获取请求凭证的shopkey字段
/// </summary>
[Column(Name = "shop_key")]
public string ShopKey { get; set; }
/// <summary>
/// 请求url
/// </summary>
[Column(Name = "api_request_url")]
public string ApiRequestUrl { get; set; }
/// <summary>
/// 回掉URL
/// </summary>
[Column(Name = "api_callback_url")]
public string ApiCallbackUrl { get; set; }
/// <summary>
/// 负责人id
/// </summary>
[Column(Name = "manage_user_id")]
public long? ManageUserId { get; set; }
/// <summary>
/// 默认运费模板id,抖店上传商品使用
/// </summary>
[Column(Name = "default_freight_template_id")]
public long? DefaultFreightTemplateId { get; set; }
/// <summary>
/// 默认品牌id,抖店上传商品使用
/// </summary>
[Column(Name = "default_brand_id")]
public long? DefaultBrandId { get; set; }
/// <summary>
/// 店铺是否已开启尺码自动优化,0:不需要开启,1:未开启,2:已开启
/// </summary>
[Column(Name = "auto_size_template_optimize")]
public byte? AutoSizeTemplateOptimize { get; set; }
/// <summary>
/// 店铺分组
/// </summary>
[Column(Name = "shop_group_id")]
public long? ShopGroupId { get; set; }
/// <summary>
/// 企业账号用户id
/// </summary>
[Column(Name = "corporate_account_user_id")]
public long? CorporateAccountUserId { get; set; }
/// <summary>
/// 国家/地区
/// </summary>
[Column(Name = "region_id")]
public long? RegionId { get; set; }
/// <summary>
/// 商户ID
/// </summary>
[Column(Name = "merchant_id")]
public long? MerchantId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[Column(Name = "create_time")]
public DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
[Column(Name = "create_by")]
public string CreateBy { get; set; }
/// <summary>
/// 更新时间
/// </summary>
[Column(Name = "update_time")]
public DateTime? UpdateTime { get; set; }
/// <summary>
/// 更新人
/// </summary>
[Column(Name = "update_by")]
public string UpdateBy { get; set; }
/// <summary>
/// api调用状态0未开启1已开启
/// </summary>
[Column(Name = "api_status")]
public int ApiStatus { get; set; }
/// <summary>
/// 是否开启自动购买外采礼物单,0:未开启,1:已开启
/// </summary>
[Column(Name = "auto_purchase_external_gift")]
public int? AutoPurchaseExternalGift { get; set; }
}