添加项目文件。
This commit is contained in:
44
src/BarCode.Web.Domain/Options/AppOptions.cs
Normal file
44
src/BarCode.Web.Domain/Options/AppOptions.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Domain.Options
|
||||
{
|
||||
public class AppOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据库
|
||||
/// </summary>
|
||||
public string DBConnectionString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// redis
|
||||
/// </summary>
|
||||
public string RedisConnectionString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单点数据请求地址-后端使用接口地址
|
||||
/// </summary>
|
||||
public string SingleBaseUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// redis数据目录
|
||||
/// </summary>
|
||||
public string RedisDirectory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库类型
|
||||
/// </summary>
|
||||
public string DBType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否允许缓存
|
||||
/// </summary>
|
||||
public bool AllowCache { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公司ID
|
||||
/// </summary>
|
||||
public int CompanyId { get; set; }
|
||||
}
|
||||
}
|
||||
42
src/BarCode.Web.Domain/Options/EmailOptions.cs
Normal file
42
src/BarCode.Web.Domain/Options/EmailOptions.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Domain.Options
|
||||
{
|
||||
/// <summary>
|
||||
/// 邮箱
|
||||
/// </summary>
|
||||
public class EmailOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// SMTP 服务器地址
|
||||
/// </summary>
|
||||
public string SmtpServer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// SMTP 服务器端口号
|
||||
/// </summary>
|
||||
public int SmtpPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string SenderName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 主题
|
||||
/// </summary>
|
||||
public string SendTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发件人邮箱地址
|
||||
/// </summary>
|
||||
public string SenderEmail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发件人邮箱密码
|
||||
/// </summary>
|
||||
public string SenderEmailPwd { get; set; }
|
||||
}
|
||||
}
|
||||
39
src/BarCode.Web.Domain/Options/ErpOptions.cs
Normal file
39
src/BarCode.Web.Domain/Options/ErpOptions.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Domain.Options
|
||||
{
|
||||
/// <summary>
|
||||
/// erp相关配置文件
|
||||
/// </summary>
|
||||
public class ErpOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// erp-请求地址
|
||||
/// </summary>
|
||||
public string EndpointAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 账号
|
||||
/// </summary>
|
||||
public string UserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 密码
|
||||
/// </summary>
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// erp-Id
|
||||
/// </summary>
|
||||
public string ErpId { get; set; }
|
||||
public readonly string cache_materail_all_key = "erp_materials_list_all";
|
||||
public readonly string cache_materail_key = "erp_materials_list";
|
||||
public readonly string cache_org_key = "erp_org_list";
|
||||
public readonly string cache_supplier_key = "erp_supplier_list";
|
||||
public readonly string cache_customer_key = "erp_customer_list";
|
||||
public readonly string cache_stock_key = "erp_stock_list";
|
||||
public readonly string cache_substock_key = "erp_substock_list";
|
||||
}
|
||||
}
|
||||
31
src/BarCode.Web.Domain/Options/QiniuOptions.cs
Normal file
31
src/BarCode.Web.Domain/Options/QiniuOptions.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Domain.Options
|
||||
{
|
||||
/// <summary>
|
||||
/// 七牛云 配置
|
||||
/// </summary>
|
||||
public class QiniuOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 访问key
|
||||
/// </summary>
|
||||
public string AccessKey { get; set; }
|
||||
/// <summary>
|
||||
/// 秘钥
|
||||
/// </summary>
|
||||
public string SecretKey { get; set; }
|
||||
/// <summary>
|
||||
/// 区块文件夹
|
||||
/// </summary>
|
||||
public string Bucket { get; set; }
|
||||
/// <summary>
|
||||
/// 访问域名
|
||||
/// </summary>
|
||||
public string Url { get; set; }
|
||||
//导出数据一页条数
|
||||
public int PageSize { get; set; } = 50000;
|
||||
}
|
||||
}
|
||||
155
src/BarCode.Web.Domain/Options/QuartzJobOptions.cs
Normal file
155
src/BarCode.Web.Domain/Options/QuartzJobOptions.cs
Normal file
@@ -0,0 +1,155 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Domain.Options
|
||||
{
|
||||
/// <summary>
|
||||
/// Quartz定时任务-配置项
|
||||
/// </summary>
|
||||
public class QuartzJobOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 存储类型:键
|
||||
/// </summary>
|
||||
public string JobStoreTypeKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 存储类型:值
|
||||
/// </summary>
|
||||
public string JobStoreTypeValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库驱动类型-这里是mysql:键
|
||||
/// </summary>
|
||||
public string JobStoreDriverDelegateTypeKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库驱动类型-这里是mysql:值
|
||||
/// </summary>
|
||||
public string JobStoreDriverDelegateTypeValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库表名前缀:键
|
||||
/// </summary>
|
||||
public string JobStoreTablePrefixKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库表名前缀:值
|
||||
/// </summary>
|
||||
public string JobStoreTablePrefixValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据源的名称:键
|
||||
/// </summary>
|
||||
public string JobStoreDataSourceKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据源的名称:值
|
||||
/// </summary>
|
||||
public string JobStoreDataSourceValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连接字符串:键
|
||||
/// </summary>
|
||||
public string JobStoreConnectionStringKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 连接字符串:值
|
||||
/// </summary>
|
||||
public string JobStoreConnectionStringValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// mysql提供器:键
|
||||
/// </summary>
|
||||
public string JobStoreProviderKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// mysql提供器:值
|
||||
/// </summary>
|
||||
public string JobStoreProviderValue { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 几点后开始执行
|
||||
/// </summary>
|
||||
public List<int> JobStartHour { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 几分钟后开始执行
|
||||
/// </summary>
|
||||
public List<int> JobStartMinute { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行Cron表达式:可以是几小时or几分钟or几秒钟or几天or几周
|
||||
/// </summary>
|
||||
public string JobStartExpre { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string JobStartExpreAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 发送通知执行cron表达式:每天12,16,20整点发送
|
||||
/// </summary>
|
||||
public string JobStartExpreSend { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 同步新物料执行cron表达式:每天23:30整点同步
|
||||
/// </summary>
|
||||
public string JobStartExpreMaterial { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 同步新物料执行cron表达式:每天0:01执行
|
||||
/// </summary>
|
||||
public string JobStartExpreCenerateData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用集群:键
|
||||
/// </summary>
|
||||
public string JobStoreClusteredKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用集群:值
|
||||
/// </summary>
|
||||
public string JobStoreClusteredValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 节点都必须有一个唯一ID:键
|
||||
/// </summary>
|
||||
public string JobStoreInstanceIdKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 节点都必须有一个唯一ID:值
|
||||
/// </summary>
|
||||
public string JobStoreInstanceIdValue { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 工作名称:键
|
||||
/// </summary>
|
||||
public string QuartzJobKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工作名称:值
|
||||
/// </summary>
|
||||
public string QuartzJobValue { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 工作描述
|
||||
/// </summary>
|
||||
public string QuartzJobDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 触发器身份认证信息
|
||||
/// </summary>
|
||||
public string QuartzTriggerIdentity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 触发器描述
|
||||
/// </summary>
|
||||
public string QuartzTriggerDescription { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
32
src/BarCode.Web.Domain/Options/SmsOptions.cs
Normal file
32
src/BarCode.Web.Domain/Options/SmsOptions.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Domain.Options
|
||||
{
|
||||
/// <summary>
|
||||
/// 短信配置项
|
||||
/// </summary>
|
||||
public class SmsOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 访问凭证ID
|
||||
/// </summary>
|
||||
public string AccessKeyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 访问秘钥
|
||||
/// </summary>
|
||||
public string AccessKeySecret { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 短信签名
|
||||
/// </summary>
|
||||
public string SignName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 短信模板编号
|
||||
/// </summary>
|
||||
public string TemplateCode { get; set; }
|
||||
}
|
||||
}
|
||||
47
src/BarCode.Web.Domain/Options/SoaOptions.cs
Normal file
47
src/BarCode.Web.Domain/Options/SoaOptions.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Domain.Options
|
||||
{
|
||||
public class SoaOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// 单点系统地址
|
||||
/// </summary>
|
||||
public string Url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单点系统地址
|
||||
/// </summary>
|
||||
public string Url_V3 { get; set; }
|
||||
/// <summary>
|
||||
/// admin账号的Id
|
||||
/// </summary>
|
||||
public List<int> AdminUser { get; set; } = new List<int>();
|
||||
/// <summary>
|
||||
/// 应用id
|
||||
/// </summary>
|
||||
public int ModuleID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// AppId
|
||||
/// </summary>
|
||||
public string AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// AppSecret
|
||||
/// </summary>
|
||||
public string AppSecret { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 公钥
|
||||
/// </summary>
|
||||
public string PublicKey { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 私钥
|
||||
/// </summary>
|
||||
public string PrivateKey { get; set; }
|
||||
}
|
||||
}
|
||||
14
src/BarCode.Web.Domain/Options/WmsOptions.cs
Normal file
14
src/BarCode.Web.Domain/Options/WmsOptions.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Domain.Options
|
||||
{
|
||||
/// <summary>
|
||||
/// 老ops对接
|
||||
/// </summary>
|
||||
public class WmsOptions
|
||||
{
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user