mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:43:26 +08:00
【新增】增加易联云小票打印机后台配置表【CoreCmsPrinter】,取消使用配置文件配置,并且支持多台打印机绑定不同门店,实现不同门店不同打印机打单。
This commit is contained in:
210
CoreCms.Net.Model/Entities/Api/CoreCmsPrinter.cs
Normal file
210
CoreCms.Net.Model/Entities/Api/CoreCmsPrinter.cs
Normal file
@@ -0,0 +1,210 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2022/9/16 20:41:09
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using SqlSugar;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace CoreCms.Net.Model.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 打印机列表
|
||||
/// </summary>
|
||||
public partial class CoreCmsPrinter
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public CoreCmsPrinter()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 序列
|
||||
/// </summary>
|
||||
[Display(Name = "序列")]
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
|
||||
|
||||
public System.Int32 id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 应用名称
|
||||
/// </summary>
|
||||
[Display(Name = "应用名称")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
|
||||
|
||||
|
||||
public System.String name { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 应用编码
|
||||
/// </summary>
|
||||
[Display(Name = "应用编码")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
|
||||
|
||||
|
||||
public System.String code { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 易联云应用id
|
||||
/// </summary>
|
||||
[Display(Name = "易联云应用id")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
|
||||
|
||||
|
||||
public System.String clientId { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 易联云应用密钥
|
||||
/// </summary>
|
||||
[Display(Name = "易联云应用密钥")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
|
||||
|
||||
|
||||
public System.String clientSecret { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 易联云终端号
|
||||
/// </summary>
|
||||
[Display(Name = "易联云终端号")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
|
||||
|
||||
|
||||
public System.String machineCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 易联云终端密钥
|
||||
/// </summary>
|
||||
[Display(Name = "易联云终端密钥")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
|
||||
|
||||
|
||||
public System.String msign { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 打印机名称
|
||||
/// </summary>
|
||||
[Display(Name = "打印机名称")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
|
||||
|
||||
|
||||
public System.String printerName { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 联系电话
|
||||
/// </summary>
|
||||
[Display(Name = "联系电话")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
|
||||
|
||||
|
||||
public System.String phone { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 访问令牌,API调用时需要,令牌可以重复使用无失效时间,请开发者全局保存
|
||||
/// </summary>
|
||||
[Display(Name = "访问令牌,API调用时需要,令牌可以重复使用无失效时间,请开发者全局保存")]
|
||||
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
|
||||
|
||||
|
||||
public System.String accessToken { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新access_token所需,有效时间35天
|
||||
/// </summary>
|
||||
[Display(Name = "更新access_token所需,有效时间35天")]
|
||||
[StringLength(maximumLength: 50, ErrorMessage = "{0}不能超过{1}字")]
|
||||
|
||||
|
||||
public System.String refreshToken { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 令牌的有效时间,单位秒 (30天),注:该模式下可忽略此参数
|
||||
/// </summary>
|
||||
[Display(Name = "令牌的有效时间,单位秒 (30天),注:该模式下可忽略此参数")]
|
||||
|
||||
|
||||
public System.Int32? expiresIn { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 有效期截止时间
|
||||
/// </summary>
|
||||
[Display(Name = "有效期截止时间")]
|
||||
public System.DateTime? expiressEndTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 其他参数
|
||||
/// </summary>
|
||||
[Display(Name = "其他参数")]
|
||||
public System.String parameters { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Display(Name = "创建时间")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
|
||||
|
||||
public System.DateTime createTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否默认
|
||||
/// </summary>
|
||||
[Display(Name = "是否默认")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
|
||||
|
||||
public System.Boolean isDefault { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启
|
||||
/// </summary>
|
||||
[Display(Name = "是否开启")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
|
||||
|
||||
public System.Boolean isOpen { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 绑定门店
|
||||
/// </summary>
|
||||
[Display(Name = "绑定门店")]
|
||||
[Required(ErrorMessage = "请输入{0}")]
|
||||
|
||||
|
||||
public System.Int32 storeId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user