diff --git a/Admin.NET.Core/Admin.NET.Core.csproj b/Admin.NET.Core/Admin.NET.Core.csproj index 0524b16..cc65cfa 100644 --- a/Admin.NET.Core/Admin.NET.Core.csproj +++ b/Admin.NET.Core/Admin.NET.Core.csproj @@ -14,7 +14,6 @@ - @@ -35,13 +34,10 @@ - - - @@ -49,12 +45,10 @@ - + - - @@ -62,8 +56,6 @@ - - diff --git a/Admin.NET.Core/Const/AlipayConst.cs b/Admin.NET.Core/Const/AlipayConst.cs deleted file mode 100644 index d6c4dda..0000000 --- a/Admin.NET.Core/Const/AlipayConst.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 支付宝支付常量 -/// -[SuppressSniffer] -public class AlipayConst -{ - /// - /// 单笔无密转账【业务场景】固定值 - /// - public const string BizScene = "DIRECT_TRANSFER"; - - /// - /// 单笔无密转账【销售产品码】固定值 - /// - public const string ProductCode = "TRANS_ACCOUNT_NO_PWD"; - - /// - /// 交易状态参数名 - /// - public const string TradeStatus = "trade_status"; - - /// - /// 交易成功标识 - /// - public const string TradeSuccess = "TRADE_SUCCESS"; - - /// - /// 授权类型 - /// - public const string GrantType = "authorization_code"; -} \ No newline at end of file diff --git a/Admin.NET.Core/Const/ConfigConst.cs b/Admin.NET.Core/Const/ConfigConst.cs index bc35f05..ed302cc 100644 --- a/Admin.NET.Core/Const/ConfigConst.cs +++ b/Admin.NET.Core/Const/ConfigConst.cs @@ -76,11 +76,6 @@ public class ConfigConst /// public const string SysErrorMail = "sys_error_mail"; - /// - /// 域登录验证 - /// - public const string SysDomainLogin = "sys_domain_login"; - // /// // /// 租户域名隔离登录验证 // /// @@ -101,11 +96,6 @@ public class ConfigConst /// public const string SysDefaultGroup = "Default"; - /// - /// 支付宝授权页面地址 - /// - public const string AlipayAuthPageUrl = "alipay_auth_page_url_"; - // /// // /// 系统图标 // /// @@ -145,4 +135,4 @@ public class ConfigConst // /// ICP地址 // /// // public const string SysWebIcpUrl = "sys_web_icpUrl"; -} \ No newline at end of file +} diff --git a/Admin.NET.Core/Entity/SysAlipayAuthInfo.cs b/Admin.NET.Core/Entity/SysAlipayAuthInfo.cs deleted file mode 100644 index 8842546..0000000 --- a/Admin.NET.Core/Entity/SysAlipayAuthInfo.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 支付宝授权记录表 -/// -[SugarTable(null, "支付宝授权记录表")] -[SysTable] -[SugarIndex("index_{table}_U", nameof(UserId), OrderByType.Asc)] -[SugarIndex("index_{table}_T", nameof(OpenId), OrderByType.Asc)] -public class SysAlipayAuthInfo : EntityBase -{ - /// - /// 商户AppId - /// - [SugarColumn(ColumnDescription = "商户AppId", Length = 64)] - public string? AppId { get; set; } - - /// - /// 开放ID - /// - [SugarColumn(ColumnDescription = "开放ID", Length = 64)] - public string? OpenId { get; set; } - - /// - /// 用户ID - /// - [SugarColumn(ColumnDescription = "用户ID", Length = 64)] - public string? UserId { get; set; } - - /// - /// 性别 - /// - [SugarColumn(ColumnDescription = "性别", Length = 8)] - public GenderEnum Gender { get; set; } - - /// - /// 年龄 - /// - [SugarColumn(ColumnDescription = "年龄", Length = 16)] - public int Age { get; set; } - - /// - /// 手机号 - /// - [SugarColumn(ColumnDescription = "手机号", Length = 32)] - public string Mobile { get; set; } - - /// - /// 显示名称 - /// - [SugarColumn(ColumnDescription = "显示名称", Length = 128)] - public string DisplayName { get; set; } - - /// - /// 昵称 - /// - [SugarColumn(ColumnDescription = "昵称", Length = 64)] - public string NickName { get; set; } - - /// - /// 用户名 - /// - [SugarColumn(ColumnDescription = "用户名", Length = 64)] - public string UserName { get; set; } - - /// - /// 头像 - /// - [SugarColumn(ColumnDescription = "头像", Length = 512)] - public string? Avatar { get; set; } - - /// - /// 邮箱 - /// - [SugarColumn(ColumnDescription = "邮箱", Length = 128)] - public string? Email { get; set; } - - /// - /// 用户民族 - /// - [SugarColumn(ColumnDescription = "用户民族", Length = 32)] - public string? UserNation { get; set; } - - /// - /// 淘宝ID - /// - [SugarColumn(ColumnDescription = "淘宝ID", Length = 64)] - public string? TaobaoId { get; set; } - - /// - /// 电话 - /// - [SugarColumn(ColumnDescription = "电话", Length = 32)] - public string? Phone { get; set; } - - /// - /// 生日 - /// - [SugarColumn(ColumnDescription = "生日", Length = 32)] - public string? PersonBirthday { get; set; } - - /// - /// 职业 - /// - [SugarColumn(ColumnDescription = "职业", Length = 64)] - public string? Profession { get; set; } - - /// - /// 省份 - /// - [SugarColumn(ColumnDescription = "省份", Length = 64)] - public string? Province { get; set; } - - /// - /// 用户状态 - /// - [SugarColumn(ColumnDescription = "用户状态", Length = 32)] - public string? UserStatus { get; set; } - - /// - /// 学历 - /// - [SugarColumn(ColumnDescription = "学历", Length = 32)] - public string? Degree { get; set; } - - /// - /// 用户类型 - /// - [SugarColumn(ColumnDescription = "用户类型", Length = 32)] - public string? UserType { get; set; } - - /// - /// 邮编 - /// - [SugarColumn(ColumnDescription = "邮编", Length = 16)] - public string? Zip { get; set; } - - /// - /// 地址 - /// - [SugarColumn(ColumnDescription = "地址", Length = 256)] - public string? Address { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysAlipayTransaction.cs b/Admin.NET.Core/Entity/SysAlipayTransaction.cs deleted file mode 100644 index 5913471..0000000 --- a/Admin.NET.Core/Entity/SysAlipayTransaction.cs +++ /dev/null @@ -1,108 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 支付宝交易记录表 -/// -[SugarTable(null, "支付宝交易记录表")] -[SysTable] -[SugarIndex("index_{table}_U", nameof(UserId), OrderByType.Asc)] -[SugarIndex("index_{table}_T", nameof(TradeNo), OrderByType.Asc)] -[SugarIndex("index_{table}_O", nameof(OutTradeNo), OrderByType.Asc)] -public class SysAlipayTransaction : EntityBase -{ - /// - /// 用户Id - /// - [SugarColumn(ColumnDescription = "用户Id", Length = 64)] - public long UserId { get; set; } - - /// - /// 交易号 - /// - [SugarColumn(ColumnDescription = "交易号", Length = 64)] - public string? TradeNo { get; set; } - - /// - /// 商户订单号 - /// - [SugarColumn(ColumnDescription = "商户订单号", Length = 64)] - public string OutTradeNo { get; set; } - - /// - /// 交易金额 - /// - [SugarColumn(ColumnDescription = "交易金额", Length = 20)] - public decimal TotalAmount { get; set; } - - /// - /// 交易状态 - /// - [SugarColumn(ColumnDescription = "交易状态", Length = 32)] - public string TradeStatus { get; set; } - - /// - /// 交易完成时间 - /// - [SugarColumn(ColumnDescription = "交易完成时间")] - public DateTime? FinishTime { get; set; } - - /// - /// 交易标题 - /// - [SugarColumn(ColumnDescription = "交易标题", Length = 256)] - public string Subject { get; set; } - - /// - /// 交易描述 - /// - [SugarColumn(ColumnDescription = "交易描述", Length = 512)] - public string? Body { get; set; } - - /// - /// 买家支付宝账号 - /// - [SugarColumn(ColumnDescription = "买家支付宝账号", Length = 128)] - public string? BuyerLogonId { get; set; } - - /// - /// 买家支付宝用户ID - /// - [SugarColumn(ColumnDescription = "买家支付宝用户ID", Length = 32)] - public string? BuyerUserId { get; set; } - - /// - /// 卖家支付宝用户ID - /// - [SugarColumn(ColumnDescription = "卖家支付宝用户ID", Length = 32)] - public string? SellerUserId { get; set; } - - /// - /// 商户AppId - /// - [SugarColumn(ColumnDescription = "商户AppId", Length = 64)] - public string? AppId { get; set; } - - /// - /// 交易扩展信息 - /// - [SugarColumn(ColumnDescription = "交易扩展信息", Length = 1024)] - public string? ExtendInfo { get; set; } - - /// - /// 交易异常信息 - /// - [SugarColumn(ColumnDescription = "交易扩展信息", Length = 1024)] - public string? ErrorInfo { get; set; } - - /// - /// 交易备注 - /// - [SugarColumn(ColumnDescription = "交易备注", Length = 512)] - public string? Remark { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysCodeGen.cs b/Admin.NET.Core/Entity/SysCodeGen.cs deleted file mode 100644 index c6d80a0..0000000 --- a/Admin.NET.Core/Entity/SysCodeGen.cs +++ /dev/null @@ -1,159 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 代码生成表 -/// -[SugarTable(null, "代码生成表")] -[SysTable] -[SugarIndex("index_{table}_B", nameof(BusName), OrderByType.Asc)] -[SugarIndex("index_{table}_T", nameof(TableName), OrderByType.Asc)] -public partial class SysCodeGen : EntityBase -{ - /// - /// 作者姓名 - /// - [SugarColumn(ColumnDescription = "作者姓名", Length = 32)] - [MaxLength(32)] - public string? AuthorName { get; set; } - - /// - /// 是否移除表前缀 - /// - [SugarColumn(ColumnDescription = "是否移除表前缀", Length = 8)] - [MaxLength(8)] - public string? TablePrefix { get; set; } - - /// - /// 生成方式 - /// - [SugarColumn(ColumnDescription = "生成方式", Length = 32)] - [MaxLength(32)] - public string? GenerateType { get; set; } - - /// - /// 库定位器名 - /// - [SugarColumn(ColumnDescription = "库定位器名", Length = 64)] - [MaxLength(64)] - public string? ConfigId { get; set; } - - /// - /// 库名 - /// - [SugarColumn(IsIgnore = true)] - public string DbNickName - { - get - { - try - { - var dbOptions = App.GetConfig("DbConnection", true); - var config = dbOptions.ConnectionConfigs.FirstOrDefault(m => m.ConfigId.ToString() == ConfigId); - return config.DbNickName; - } - catch (Exception) - { - return null; - } - } - } - - /// - /// 数据库名(保留字段) - /// - [SugarColumn(ColumnDescription = "数据库库名", Length = 64)] - [MaxLength(64)] - public string? DbName { get; set; } - - /// - /// 数据库类型 - /// - [SugarColumn(ColumnDescription = "数据库类型", Length = 64)] - [MaxLength(64)] - public string? DbType { get; set; } - - /// - /// 数据库链接 - /// - [SugarColumn(ColumnDescription = "数据库链接", Length = 256)] - [MaxLength(256)] - public string? ConnectionString { get; set; } - - /// - /// 数据库表名 - /// - [SugarColumn(ColumnDescription = "数据库表名", Length = 128)] - [MaxLength(128)] - public string? TableName { get; set; } - - /// - /// 命名空间 - /// - [SugarColumn(ColumnDescription = "命名空间", Length = 128)] - [MaxLength(128)] - public string? NameSpace { get; set; } - - /// - /// 业务名 - /// - [SugarColumn(ColumnDescription = "业务名", Length = 128)] - [MaxLength(128)] - public string? BusName { get; set; } - - /// - /// 表唯一字段配置 - /// - [SugarColumn(ColumnDescription = "表唯一字段配置", Length = 512)] - [MaxLength(128)] - public string? TableUniqueConfig { get; set; } - - /// - /// 是否生成菜单 - /// - [SugarColumn(ColumnDescription = "是否生成菜单")] - public bool GenerateMenu { get; set; } = true; - - /// - /// 菜单图标 - /// - [SugarColumn(ColumnDescription = "菜单图标", Length = 32)] - public string? MenuIcon { get; set; } = "ele-Menu"; - - /// - /// 菜单编码 - /// - [SugarColumn(ColumnDescription = "菜单编码")] - public long? MenuPid { get; set; } - - /// - /// 页面目录 - /// - [SugarColumn(ColumnDescription = "页面目录", Length = 32)] - public string? PagePath { get; set; } - - /// - /// 支持打印类型 - /// - [SugarColumn(ColumnDescription = "支持打印类型", Length = 32)] - [MaxLength(32)] - public string? PrintType { get; set; } - - /// - /// 打印模版名称 - /// - [SugarColumn(ColumnDescription = "打印模版名称", Length = 32)] - [MaxLength(32)] - public string? PrintName { get; set; } - - /// - /// 表唯一字段列表 - /// - [SugarColumn(IsIgnore = true)] - public virtual List TableUniqueList => string.IsNullOrWhiteSpace(TableUniqueConfig) ? null : JSON.Deserialize>(TableUniqueConfig); -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysCodeGenConfig.cs b/Admin.NET.Core/Entity/SysCodeGenConfig.cs deleted file mode 100644 index ff7697e..0000000 --- a/Admin.NET.Core/Entity/SysCodeGenConfig.cs +++ /dev/null @@ -1,207 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 代码生成字段配置表 -/// -[SugarTable(null, "代码生成字段配置表")] -[SysTable] -public partial class SysCodeGenConfig : EntityBase -{ - /// - /// 代码生成主表Id - /// - [SugarColumn(ColumnDescription = "主表Id")] - public long CodeGenId { get; set; } - - /// - /// 数据库字段名 - /// - [SugarColumn(ColumnDescription = "字段名称", Length = 128)] - [Required, MaxLength(128)] - public virtual string ColumnName { get; set; } - - /// - /// 主键 - /// - [SugarColumn(ColumnDescription = "主键", Length = 8)] - [MaxLength(8)] - public string? ColumnKey { get; set; } - - /// - /// 实体属性名 - /// - [SugarColumn(ColumnDescription = "属性名称", Length = 128)] - [Required, MaxLength(128)] - public virtual string PropertyName { get; set; } - - /// - /// 字段数据长度 - /// - [SugarColumn(ColumnDescription = "字段数据长度", DefaultValue = "0")] - public int ColumnLength { get; set; } - - /// - /// 字段描述 - /// - [SugarColumn(ColumnDescription = "字段描述", Length = 128)] - [MaxLength(128)] - public string? ColumnComment { get; set; } - - /// - /// 数据库中类型(物理类型) - /// - [SugarColumn(ColumnDescription = "数据库中类型", Length = 64)] - [MaxLength(64)] - public string? DataType { get; set; } - - /// - /// .NET数据类型 - /// - [SugarColumn(ColumnDescription = "NET数据类型", Length = 64)] - [MaxLength(64)] - public string? NetType { get; set; } - - /// - /// 字段数据默认值 - /// - [SugarColumn(ColumnDescription = "默认值")] - public string? DefaultValue { get; set; } - - /// - /// 作用类型(字典) - /// - [SugarColumn(ColumnDescription = "作用类型", Length = 64)] - [MaxLength(64)] - public string? EffectType { get; set; } - - /// - /// 外键库标识 - /// - [SugarColumn(ColumnDescription = "外键库标识", Length = 20)] - [MaxLength(20)] - public string? FkConfigId { get; set; } - - /// - /// 外键实体名称 - /// - [SugarColumn(ColumnDescription = "外键实体名称", Length = 64)] - [MaxLength(64)] - public string? FkEntityName { get; set; } - - /// - /// 外键表名称 - /// - [SugarColumn(ColumnDescription = "外键表名称", Length = 128)] - [MaxLength(128)] - public string? FkTableName { get; set; } - - /// - /// 外键显示字段 - /// - [SugarColumn(ColumnDescription = "外键显示字段", Length = 64)] - [MaxLength(64)] - public string? FkDisplayColumns { get; set; } - - /// - /// 外键链接字段 - /// - [SugarColumn(ColumnDescription = "外键链接字段", Length = 64)] - [MaxLength(64)] - public string? FkLinkColumnName { get; set; } - - /// - /// 外键显示字段.NET类型 - /// - [SugarColumn(ColumnDescription = "外键显示字段.NET类型", Length = 64)] - [MaxLength(64)] - public string? FkColumnNetType { get; set; } - - /// - /// 父级字段 - /// - [SugarColumn(ColumnDescription = "父级字段", Length = 128)] - [MaxLength(128)] - public string? PidColumn { get; set; } - - /// - /// 字典编码 - /// - [SugarColumn(ColumnDescription = "字典编码", Length = 64)] - [MaxLength(64)] - public string? DictTypeCode { get; set; } - - /// - /// 查询方式 - /// - [SugarColumn(ColumnDescription = "查询方式", Length = 16)] - [MaxLength(16)] - public string? QueryType { get; set; } - - /// - /// 是否是查询条件 - /// - [SugarColumn(ColumnDescription = "是否是查询条件", Length = 8)] - [MaxLength(8)] - public string? WhetherQuery { get; set; } - - /// - /// 列表是否缩进(字典) - /// - [SugarColumn(ColumnDescription = "列表是否缩进", Length = 8)] - [MaxLength(8)] - public string? WhetherRetract { get; set; } - - /// - /// 是否必填(字典) - /// - [SugarColumn(ColumnDescription = "是否必填", Length = 8)] - [MaxLength(8)] - public string? WhetherRequired { get; set; } - - /// - /// 是否可排序(字典) - /// - [SugarColumn(ColumnDescription = "是否可排序", Length = 8)] - [MaxLength(8)] - public string? WhetherSortable { get; set; } - - /// - /// 列表显示 - /// - [SugarColumn(ColumnDescription = "列表显示", Length = 8)] - [MaxLength(8)] - public string? WhetherTable { get; set; } - - /// - /// 增改 - /// - [SugarColumn(ColumnDescription = "增改", Length = 8)] - [MaxLength(8)] - public string? WhetherAddUpdate { get; set; } - - /// - /// 导入 - /// - [SugarColumn(ColumnDescription = "导入", Length = 8)] - [MaxLength(8)] - public string? WhetherImport { get; set; } - - /// - /// 是否通用字段 - /// - [SugarColumn(ColumnDescription = "是否通用字段", Length = 8)] - [MaxLength(8)] - public string? WhetherCommon { get; set; } - - /// - /// 排序 - /// - [SugarColumn(ColumnDescription = "排序")] - public int OrderNo { get; set; } = 100; -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysJobCluster.cs b/Admin.NET.Core/Entity/SysJobCluster.cs deleted file mode 100644 index 6687cf6..0000000 --- a/Admin.NET.Core/Entity/SysJobCluster.cs +++ /dev/null @@ -1,41 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统作业集群表 -/// -[SugarTable(null, "系统作业集群表")] -[SysTable] -public partial class SysJobCluster : EntityBaseId -{ - /// - /// 作业集群Id - /// - [SugarColumn(ColumnDescription = "作业集群Id", Length = 64)] - [Required, MaxLength(64)] - public virtual string ClusterId { get; set; } - - /// - /// 描述信息 - /// - [SugarColumn(ColumnDescription = "描述信息", Length = 128)] - [MaxLength(128)] - public string? Description { get; set; } - - /// - /// 状态 - /// - [SugarColumn(ColumnDescription = "状态")] - public ClusterStatus Status { get; set; } - - /// - /// 更新时间 - /// - [SugarColumn(ColumnDescription = "更新时间")] - public DateTime? UpdatedTime { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysJobDetail.cs b/Admin.NET.Core/Entity/SysJobDetail.cs deleted file mode 100644 index 3c2868f..0000000 --- a/Admin.NET.Core/Entity/SysJobDetail.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统作业信息表 -/// -[SugarTable(null, "系统作业信息表")] -[SysTable] -[SugarIndex("index_{table}_J", nameof(JobId), OrderByType.Asc)] -public partial class SysJobDetail : EntityBaseId -{ - /// - /// 作业Id - /// - [SugarColumn(ColumnDescription = "作业Id", Length = 64)] - [Required, MaxLength(64)] - public virtual string JobId { get; set; } - - /// - /// 组名称 - /// - [SugarColumn(ColumnDescription = "组名称", Length = 128)] - [MaxLength(128)] - public string? GroupName { get; set; } = "default"; - - /// - /// 作业类型FullName - /// - [SugarColumn(ColumnDescription = "作业类型", Length = 128)] - [MaxLength(128)] - public string? JobType { get; set; } - - /// - /// 程序集Name - /// - [SugarColumn(ColumnDescription = "程序集", Length = 128)] - [MaxLength(128)] - public string? AssemblyName { get; set; } - - /// - /// 描述信息 - /// - [SugarColumn(ColumnDescription = "描述信息", Length = 128)] - [MaxLength(128)] - public string? Description { get; set; } - - /// - /// 是否并行执行 - /// - [SugarColumn(ColumnDescription = "是否并行执行")] - public bool Concurrent { get; set; } = true; - - /// - /// 是否扫描特性触发器 - /// - [SugarColumn(ColumnDescription = "是否扫描特性触发器", ColumnName = "annotation")] - public bool IncludeAnnotation { get; set; } = false; - - /// - /// 额外数据 - /// - [SugarColumn(ColumnDescription = "额外数据", ColumnDataType = StaticConfig.CodeFirst_BigString)] - public string? Properties { get; set; } = "{}"; - - /// - /// 更新时间 - /// - [SugarColumn(ColumnDescription = "更新时间")] - public DateTime? UpdatedTime { get; set; } - - /// - /// 作业创建类型 - /// - [SugarColumn(ColumnDescription = "作业创建类型")] - public JobCreateTypeEnum CreateType { get; set; } = JobCreateTypeEnum.BuiltIn; - - /// - /// 脚本代码 - /// - [SugarColumn(ColumnDescription = "脚本代码", ColumnDataType = StaticConfig.CodeFirst_BigString)] - public string? ScriptCode { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysJobTrigger.cs b/Admin.NET.Core/Entity/SysJobTrigger.cs deleted file mode 100644 index dc6d5c8..0000000 --- a/Admin.NET.Core/Entity/SysJobTrigger.cs +++ /dev/null @@ -1,147 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统作业触发器表 -/// -[SugarTable(null, "系统作业触发器表")] -[SysTable] -public partial class SysJobTrigger : EntityBaseId -{ - /// - /// 触发器Id - /// - [SugarColumn(ColumnDescription = "触发器Id", Length = 64)] - [Required, MaxLength(64)] - public virtual string TriggerId { get; set; } - - /// - /// 作业Id - /// - [SugarColumn(ColumnDescription = "作业Id", Length = 64)] - [Required, MaxLength(64)] - public virtual string JobId { get; set; } - - /// - /// 触发器类型FullName - /// - [SugarColumn(ColumnDescription = "触发器类型", Length = 128)] - [MaxLength(128)] - public string? TriggerType { get; set; } - - /// - /// 程序集Name - /// - [SugarColumn(ColumnDescription = "程序集", Length = 128)] - [MaxLength(128)] - public string? AssemblyName { get; set; } = "Furion.Pure"; - - /// - /// 参数 - /// - [SugarColumn(ColumnDescription = "参数", Length = 128)] - [MaxLength(128)] - public string? Args { get; set; } - - /// - /// 描述信息 - /// - [SugarColumn(ColumnDescription = "描述信息", Length = 128)] - [MaxLength(128)] - public string? Description { get; set; } - - /// - /// 状态 - /// - [SugarColumn(ColumnDescription = "状态")] - public TriggerStatus Status { get; set; } = TriggerStatus.Ready; - - /// - /// 起始时间 - /// - [SugarColumn(ColumnDescription = "起始时间")] - public DateTime? StartTime { get; set; } - - /// - /// 结束时间 - /// - [SugarColumn(ColumnDescription = "结束时间")] - public DateTime? EndTime { get; set; } - - /// - /// 最近运行时间 - /// - [SugarColumn(ColumnDescription = "最近运行时间")] - public DateTime? LastRunTime { get; set; } - - /// - /// 下一次运行时间 - /// - [SugarColumn(ColumnDescription = "下一次运行时间")] - public DateTime? NextRunTime { get; set; } - - /// - /// 触发次数 - /// - [SugarColumn(ColumnDescription = "触发次数")] - public long NumberOfRuns { get; set; } - - /// - /// 最大触发次数(0:不限制,n:N次) - /// - [SugarColumn(ColumnDescription = "最大触发次数")] - public long MaxNumberOfRuns { get; set; } - - /// - /// 出错次数 - /// - [SugarColumn(ColumnDescription = "出错次数")] - public long NumberOfErrors { get; set; } - - /// - /// 最大出错次数(0:不限制,n:N次) - /// - [SugarColumn(ColumnDescription = "最大出错次数")] - public long MaxNumberOfErrors { get; set; } - - /// - /// 重试次数 - /// - [SugarColumn(ColumnDescription = "重试次数")] - public int NumRetries { get; set; } - - /// - /// 重试间隔时间(ms) - /// - [SugarColumn(ColumnDescription = "重试间隔时间(ms)")] - public int RetryTimeout { get; set; } = 1000; - - /// - /// 是否立即启动 - /// - [SugarColumn(ColumnDescription = "是否立即启动")] - public bool StartNow { get; set; } = true; - - /// - /// 是否启动时执行一次 - /// - [SugarColumn(ColumnDescription = "是否启动时执行一次")] - public bool RunOnStart { get; set; } = false; - - /// - /// 是否在启动时重置最大触发次数等于一次的作业 - /// - [SugarColumn(ColumnDescription = "是否重置触发次数")] - public bool ResetOnlyOnce { get; set; } = true; - - /// - /// 更新时间 - /// - [SugarColumn(ColumnDescription = "更新时间")] - public DateTime? UpdatedTime { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysJobTriggerRecord.cs b/Admin.NET.Core/Entity/SysJobTriggerRecord.cs deleted file mode 100644 index 080c5cc..0000000 --- a/Admin.NET.Core/Entity/SysJobTriggerRecord.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统作业触发器运行记录表 -/// -[SugarTable(null, "系统作业触发器运行记录表")] -[SysTable] -public partial class SysJobTriggerRecord : EntityBaseId -{ - /// - /// 作业Id - /// - [SugarColumn(ColumnDescription = "作业Id", Length = 64)] - [Required, MaxLength(64)] - public virtual string JobId { get; set; } - - /// - /// 触发器Id - /// - [SugarColumn(ColumnDescription = "触发器Id", Length = 64)] - [Required, MaxLength(64)] - public virtual string TriggerId { get; set; } - - /// - /// 当前运行次数 - /// - [SugarColumn(ColumnDescription = "当前运行次数")] - public long NumberOfRuns { get; set; } - - /// - /// 最近运行时间 - /// - [SugarColumn(ColumnDescription = "最近运行时间")] - public DateTime? LastRunTime { get; set; } - - /// - /// 下一次运行时间 - /// - [SugarColumn(ColumnDescription = "下一次运行时间")] - public DateTime? NextRunTime { get; set; } - - /// - /// 触发器状态 - /// - [SugarColumn(ColumnDescription = "触发器状态")] - public TriggerStatus Status { get; set; } = TriggerStatus.Ready; - - /// - /// 本次执行结果 - /// - [SugarColumn(ColumnDescription = "本次执行结果", Length = 128)] - [MaxLength(128)] - public string? Result { get; set; } - - /// - /// 本次执行耗时 - /// - [SugarColumn(ColumnDescription = "本次执行耗时")] - public long ElapsedTime { get; set; } - - /// - /// 创建时间 - /// - [SugarColumn(ColumnDescription = "创建时间")] - public DateTime? CreatedTime { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysLdap.cs b/Admin.NET.Core/Entity/SysLdap.cs deleted file mode 100644 index f27d1aa..0000000 --- a/Admin.NET.Core/Entity/SysLdap.cs +++ /dev/null @@ -1,89 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统域登录信息配置表 -/// -[SugarTable(null, "系统域登录信息配置表")] -[SysTable] -public class SysLdap : EntityBaseTenantDel -{ - /// - /// 主机 - /// - [SugarColumn(ColumnDescription = "主机", Length = 128)] - [Required] - public virtual string Host { get; set; } - - /// - /// 端口 - /// - [SugarColumn(ColumnDescription = "端口")] - public virtual int Port { get; set; } - - /// - /// 用户搜索基准 - /// - [SugarColumn(ColumnDescription = "用户搜索基准", Length = 128)] - [Required] - public virtual string BaseDn { get; set; } - - /// - /// 绑定DN(有管理权限制的用户) - /// - [SugarColumn(ColumnDescription = "绑定DN", Length = 128)] - [Required] - public virtual string BindDn { get; set; } - - /// - /// 绑定密码(有管理权限制的用户密码) - /// - [SugarColumn(ColumnDescription = "绑定密码", Length = 512)] - [Required] - public virtual string BindPass { get; set; } - - /// - /// 用户过滤规则 - /// - [SugarColumn(ColumnDescription = "用户过滤规则", Length = 128)] - [Required] - public virtual string AuthFilter { get; set; } = "sAMAccountName=%s"; - - /// - /// Ldap版本 - /// - [SugarColumn(ColumnDescription = "Ldap版本")] - public int Version { get; set; } - - /// - /// 绑定域账号字段属性值 - /// - [SugarColumn(ColumnDescription = "绑定域账号字段属性值", Length = 32)] - [Required] - public virtual string BindAttrAccount { get; set; } = "sAMAccountName"; - - /// - /// 绑定用户EmployeeId属性值 - /// - [SugarColumn(ColumnDescription = "绑定用户EmployeeId属性值", Length = 32)] - [Required] - public virtual string BindAttrEmployeeId { get; set; } = "EmployeeId"; - - /// - /// 绑定Code属性值 - /// - [SugarColumn(ColumnDescription = "绑定对象Code属性值", Length = 64)] - [Required] - public virtual string BindAttrCode { get; set; } = "objectGUID"; - - /// - /// 状态 - /// - [SugarColumn(ColumnDescription = "状态")] - public StatusEnum Status { get; set; } = StatusEnum.Enable; -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysPlugin.cs b/Admin.NET.Core/Entity/SysPlugin.cs deleted file mode 100644 index 86594dd..0000000 --- a/Admin.NET.Core/Entity/SysPlugin.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统动态插件表 -/// -[SugarTable(null, "系统动态插件表")] -[SysTable] -[SugarIndex("index_{table}_N", nameof(Name), OrderByType.Asc)] -public partial class SysPlugin : EntityBaseTenant -{ - /// - /// 名称 - /// - [SugarColumn(ColumnDescription = "名称", Length = 64)] - [Required, MaxLength(64)] - public virtual string Name { get; set; } - - /// - /// C#代码 - /// - [SugarColumn(ColumnDescription = "C#代码", ColumnDataType = StaticConfig.CodeFirst_BigString)] - [Required] - public virtual string CsharpCode { get; set; } - - /// - /// 程序集名称 - /// - [SugarColumn(ColumnDescription = "程序集名称", Length = 512)] - [MaxLength(512)] - public string? AssemblyName { get; set; } - - /// - /// 排序 - /// - [SugarColumn(ColumnDescription = "排序")] - public int OrderNo { get; set; } = 100; - - /// - /// 状态 - /// - [SugarColumn(ColumnDescription = "状态")] - public StatusEnum Status { get; set; } = StatusEnum.Enable; - - /// - /// 备注 - /// - [SugarColumn(ColumnDescription = "备注", Length = 128)] - [MaxLength(128)] - public string? Remark { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysPrint.cs b/Admin.NET.Core/Entity/SysPrint.cs deleted file mode 100644 index 269d42a..0000000 --- a/Admin.NET.Core/Entity/SysPrint.cs +++ /dev/null @@ -1,75 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统打印模板表 -/// -[SugarTable(null, "系统打印模板表")] -[SysTable] -[SugarIndex("index_{table}_N", nameof(Name), OrderByType.Asc)] -public partial class SysPrint : EntityBaseTenant -{ - /// - /// 名称 - /// - [SugarColumn(ColumnDescription = "名称", Length = 64)] - [Required, MaxLength(64)] - public virtual string Name { get; set; } - - /// - /// 打印模板 - /// - [SugarColumn(ColumnDescription = "打印模板", ColumnDataType = StaticConfig.CodeFirst_BigString)] - [Required] - public virtual string Template { get; set; } - - /// - /// 打印类型 - /// - [SugarColumn(ColumnDescription = "打印类型")] - [Required] - public virtual PrintTypeEnum? PrintType { get; set; } - - /// - /// 客户端服务地址 - /// - [SugarColumn(ColumnDescription = "客户端服务地址", Length = 128)] - [MaxLength(128)] - public virtual string? ClientServiceAddress { get; set; } - - /// - /// 打印参数 - /// - [SugarColumn(ColumnDescription = "打印参数", ColumnDataType = StaticConfig.CodeFirst_BigString)] - public virtual string? PrintParam { get; set; } - - /// - /// 排序 - /// - [SugarColumn(ColumnDescription = "排序")] - public int OrderNo { get; set; } = 100; - - /// - /// 状态 - /// - [SugarColumn(ColumnDescription = "状态")] - public StatusEnum Status { get; set; } = StatusEnum.Enable; - - /// - /// 备注 - /// - [SugarColumn(ColumnDescription = "备注", Length = 128)] - [MaxLength(128)] - public string? Remark { get; set; } - - /// - /// 打印预览测试数据 - /// - [SugarColumn(ColumnDescription = "打印预览测试数据", ColumnDataType = StaticConfig.CodeFirst_BigString)] - public string? PrintDataDemo { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysSchedule.cs b/Admin.NET.Core/Entity/SysSchedule.cs deleted file mode 100644 index 4361bd3..0000000 --- a/Admin.NET.Core/Entity/SysSchedule.cs +++ /dev/null @@ -1,52 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统日程表 -/// -[SugarTable(null, "系统日程表")] -[SysTable] -public class SysSchedule : EntityBaseTenant -{ - /// - /// 用户Id - /// - [SugarColumn(ColumnDescription = "用户Id")] - public long UserId { get; set; } - - /// - /// 日程日期 - /// - [SugarColumn(ColumnDescription = "日程日期")] - public DateTime? ScheduleTime { get; set; } - - /// - /// 开始时间 - /// - [SugarColumn(ColumnDescription = "开始时间", Length = 10)] - public string? StartTime { get; set; } - - /// - /// 结束时间 - /// - [SugarColumn(ColumnDescription = "结束时间", Length = 10)] - public string? EndTime { get; set; } - - /// - /// 日程内容 - /// - [SugarColumn(ColumnDescription = "日程内容", Length = 256)] - [Required, MaxLength(256)] - public virtual string Content { get; set; } - - /// - /// 完成状态 - /// - [SugarColumn(ColumnDescription = "完成状态")] - public FinishStatusEnum Status { get; set; } = FinishStatusEnum.UnFinish; -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysUserLdap.cs b/Admin.NET.Core/Entity/SysUserLdap.cs deleted file mode 100644 index 723c6ca..0000000 --- a/Admin.NET.Core/Entity/SysUserLdap.cs +++ /dev/null @@ -1,80 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统用户域配置表 -/// -[SugarTable(null, "系统用户域配置表")] -[SysTable] -[SugarIndex("index_{table}_A", nameof(Account), OrderByType.Asc)] -[SugarIndex("index_{table}_U", nameof(UserId), OrderByType.Asc)] -public class SysUserLdap : EntityBaseTenantId -{ - /// - /// 用户Id - /// - [SugarColumn(ColumnDescription = "用户Id")] - public long UserId { get; set; } - - /// - /// 域账号 - /// AD域对应sAMAccountName - /// Ldap对应uid - /// - [SugarColumn(ColumnDescription = "域账号", Length = 32)] - [Required] - public string Account { get; set; } - - /// - /// 域用户名 - /// - [SugarColumn(ColumnDescription = "域用户名", Length = 32)] - public string UserName { get; set; } - - /// - /// 对应EmployeeId(用于数据导入对照) - /// - [SugarColumn(ColumnDescription = "对应EmployeeId", Length = 32)] - public string? EmployeeId { get; set; } - - /// - /// 组织代码 - /// - [SugarColumn(ColumnDescription = "组织代码", Length = 64)] - public string? DeptCode { get; set; } - - /// - /// 最后设置密码时间 - /// - [SugarColumn(ColumnDescription = "最后设置密码时间")] - public DateTime? PwdLastSetTime { get; set; } - - /// - /// 邮箱 - /// - [SugarColumn(ColumnDescription = "组织代码", Length = 64)] - public string? Mail { get; set; } - - /// - /// 检查账户是否已过期 - /// - [SugarColumn(ColumnDescription = "检查账户是否已过期")] - public bool AccountExpiresFlag { get; set; } = false; - - /// - /// 密码设置是否永不过期 - /// - [SugarColumn(ColumnDescription = "密码设置是否永不过期")] - public bool DontExpiresFlag { get; set; } = false; - - /// - /// DN - /// - [SugarColumn(ColumnDescription = "DN", Length = 512)] - public string Dn { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysWechatPay.cs b/Admin.NET.Core/Entity/SysWechatPay.cs deleted file mode 100644 index 0676295..0000000 --- a/Admin.NET.Core/Entity/SysWechatPay.cs +++ /dev/null @@ -1,191 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统微信支付表 -/// -[SugarTable(null, "系统微信支付表")] -[SysTable] -[SugarIndex("index_{table}_BU", nameof(BusinessId), OrderByType.Asc)] -[SugarIndex("index_{table}_TR", nameof(TradeState), OrderByType.Asc)] -[SugarIndex("index_{table}_TA", nameof(Tags), OrderByType.Asc)] -public partial class SysWechatPay : EntityBase -{ - /// - /// 微信商户号 - /// - [SugarColumn(ColumnDescription = "微信商户号")] - [Required] - public virtual string MerchantId { get; set; } - - /// - /// 服务商AppId - /// - [SugarColumn(ColumnDescription = "服务商AppId")] - [Required] - public virtual string AppId { get; set; } - - /// - /// 商户订单号 - /// - [SugarColumn(ColumnDescription = "商户订单号")] - [Required] - public virtual string OutTradeNumber { get; set; } - - /// - /// 支付订单号 - /// - [SugarColumn(ColumnDescription = "支付订单号")] - [Required] - public virtual string TransactionId { get; set; } - - /// - /// 交易类型 - /// - [SugarColumn(ColumnDescription = "交易类型")] - public string? TradeType { get; set; } - - /// - /// 交易状态 - /// - [SugarColumn(ColumnDescription = "交易状态")] - public string? TradeState { get; set; } - - /// - /// 交易状态描述 - /// - [SugarColumn(ColumnDescription = "交易状态描述")] - public string? TradeStateDescription { get; set; } - - /// - /// 付款银行类型 - /// - [SugarColumn(ColumnDescription = "付款银行类型")] - public string? BankType { get; set; } - - /// - /// 订单总金额 - /// - [SugarColumn(ColumnDescription = "订单总金额")] - public int Total { get; set; } - - /// - /// 用户支付金额 - /// - [SugarColumn(ColumnDescription = "用户支付金额")] - public int? PayerTotal { get; set; } - - /// - /// 支付完成时间 - /// - [SugarColumn(ColumnDescription = "支付完成时间")] - public DateTime? SuccessTime { get; set; } - - /// - /// 交易结束时间 - /// - [SugarColumn(ColumnDescription = "交易结束时间")] - public DateTime? ExpireTime { get; set; } - - /// - /// 商品描述 - /// - [SugarColumn(ColumnDescription = "商品描述")] - public string? Description { get; set; } - - /// - /// 场景信息 - /// - [SugarColumn(ColumnDescription = "场景信息")] - public string? Scene { get; set; } - - /// - /// 附加数据 - /// - [SugarColumn(ColumnDescription = "附加数据")] - public string? Attachment { get; set; } - - /// - /// 优惠标记 - /// - [SugarColumn(ColumnDescription = "优惠标记")] - public string? GoodsTag { get; set; } - - /// - /// 结算信息 - /// - [SugarColumn(ColumnDescription = "结算信息")] - public string? Settlement { get; set; } - - /// - /// 回调通知地址 - /// - [SugarColumn(ColumnDescription = "回调通知地址")] - public string? NotifyUrl { get; set; } - - /// - /// 备注 - /// - [SugarColumn(ColumnDescription = "备注")] - public string? Remark { get; set; } - - /// - /// 微信OpenId标识 - /// - [SugarColumn(ColumnDescription = "微信OpenId标识")] - public string? OpenId { get; set; } - - /// - /// 业务标签,用来区分做什么业务 - /// - /// - /// Tags标识用来区分这个支付记录对应什么业务从而确定相关联的表名, - /// 再结合BusinessId保存了对应的业务数据的ID,就可以确定这个支付 - /// 记录与哪一条业务数据相关联 - /// - [SugarColumn(ColumnDescription = "业务标签,用来区分做什么业务", Length = 64)] - public string? Tags { get; set; } - - /// - /// 对应业务的主键 - /// - [SugarColumn(ColumnDescription = "对应业务的主键")] - public long BusinessId { get; set; } - - /// - /// 付款二维码内容 - /// - [SugarColumn(ColumnDescription = "付款二维码内容")] - public string? QrcodeContent { get; set; } - - /// - /// 关联微信用户 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - [Navigate(NavigateType.OneToOne, nameof(OpenId))] - public SysWechatUser SysWechatUser { get; set; } - - /// - /// 子商户号 - /// - [SugarColumn(ColumnDescription = "子商户号")] - public string? SubMerchantId { get; set; } - - /// - /// 子商户AppId - /// - [SugarColumn(ColumnDescription = "回调通知地址")] - public string? SubAppId { get; set; } - - /// - /// 子商户唯一标识 - /// - [SugarColumn(ColumnDescription = "子商户唯一标识")] - public string? SubOpenId { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysWechatRefund.cs b/Admin.NET.Core/Entity/SysWechatRefund.cs deleted file mode 100644 index cc9b938..0000000 --- a/Admin.NET.Core/Entity/SysWechatRefund.cs +++ /dev/null @@ -1,97 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统微信支付退款表 -/// -[SugarTable(null, "系统微信支付退款表")] -[SysTable] -[SugarIndex("index_{table}_W", nameof(WechatPayId), OrderByType.Asc)] -public partial class SysWechatRefund : EntityBase -{ - /// - /// 定单主键 - /// - [SugarColumn(ColumnDescription = "定单主键")] - public long WechatPayId { get; set; } - - /// - /// 商户退款号 - /// - [SugarColumn(ColumnDescription = "商户退款号")] - [Required] - public virtual string OutRefundNumber { get; set; } - - /// - /// 退款订单号 - /// - [SugarColumn(ColumnDescription = "退款订单号")] - [Required] - public virtual string TransactionId { get; set; } - - /// - /// 退款原因 - /// - [SugarColumn(ColumnDescription = "退款原因")] - public string? Reason { get; set; } - - /// - /// 退款渠道 - /// - [SugarColumn(ColumnDescription = "退款渠道")] - public string? Channel { get; set; } - - /// - /// 退款入账账户 - /// - /// - /// 取当前退款单的退款入账方,有以下几种情况: - /// 1)退回银行卡:{银行名称}{卡类型}{ 卡尾号} - /// 2)退回支付用户零钱: 支付用户零钱 - /// 3)退还商户: 商户基本账户商户结算银行账户 - /// 4)退回支付用户零钱通: 支付用户零钱通 - /// - [SugarColumn(ColumnDescription = "退款入账账户")] - public string? UserReceivedAccount { get; set; } - - /// - /// 退款状态 - /// - [SugarColumn(ColumnDescription = "退款状态")] - public string? TradeState { get; set; } - - /// - /// 交易状态描述 - /// - [SugarColumn(ColumnDescription = "交易状态描述")] - public string? TradeStateDescription { get; set; } - - /// - /// 订单总金额 - /// - [SugarColumn(ColumnDescription = "退款金额")] - public int Refund { get; set; } - - /// - /// 支完成时间 - /// - [SugarColumn(ColumnDescription = "完成时间")] - public DateTime? SuccessTime { get; set; } - - /// - /// 回调通知地址 - /// - [SugarColumn(ColumnDescription = "回调通知地址")] - public string? NotifyUrl { get; set; } - - /// - /// 备注 - /// - [SugarColumn(ColumnDescription = "备注")] - public string? Remark { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Entity/SysWechatUser.cs b/Admin.NET.Core/Entity/SysWechatUser.cs deleted file mode 100644 index 8aa2e58..0000000 --- a/Admin.NET.Core/Entity/SysWechatUser.cs +++ /dev/null @@ -1,138 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 系统微信用户表 -/// -[SugarTable(null, "系统微信用户表")] -[SysTable] -[SugarIndex("index_{table}_N", nameof(NickName), OrderByType.Asc)] -[SugarIndex("index_{table}_M", nameof(Mobile), OrderByType.Asc)] -public partial class SysWechatUser : EntityBase -{ - /// - /// 系统用户Id - /// - [SugarColumn(ColumnDescription = "系统用户Id")] - public long UserId { get; set; } - - /// - /// 系统用户 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - [Navigate(NavigateType.OneToOne, nameof(UserId))] - public SysUser SysUser { get; set; } - - /// - /// 平台类型 - /// - [SugarColumn(ColumnDescription = "平台类型")] - public PlatformTypeEnum PlatformType { get; set; } = PlatformTypeEnum.微信公众号; - - /// - /// OpenId - /// - [SugarColumn(ColumnDescription = "OpenId", Length = 64)] - [Required, MaxLength(64)] - public virtual string OpenId { get; set; } - - /// - /// 会话密钥 - /// - [SugarColumn(ColumnDescription = "会话密钥", Length = 256)] - [MaxLength(256)] - public string? SessionKey { get; set; } - - /// - /// UnionId - /// - [SugarColumn(ColumnDescription = "UnionId", Length = 64)] - [MaxLength(64)] - public string? UnionId { get; set; } - - /// - /// 昵称 - /// - [SugarColumn(ColumnDescription = "昵称", Length = 64)] - [MaxLength(64)] - public string? NickName { get; set; } - - /// - /// 头像 - /// - [SugarColumn(ColumnDescription = "头像", Length = 256)] - [MaxLength(256)] - public string? Avatar { get; set; } - - /// - /// 手机号码 - /// - [SugarColumn(ColumnDescription = "手机号码", Length = 16)] - [MaxLength(16)] - public string? Mobile { get; set; } - - /// - /// 性别 - /// - [SugarColumn(ColumnDescription = "性别")] - public int? Sex { get; set; } - - /// - /// 语言 - /// - [SugarColumn(ColumnDescription = "语言", Length = 64)] - [MaxLength(64)] - public string? Language { get; set; } - - /// - /// 城市 - /// - [SugarColumn(ColumnDescription = "城市", Length = 64)] - [MaxLength(64)] - public string? City { get; set; } - - /// - /// 省 - /// - [SugarColumn(ColumnDescription = "省", Length = 64)] - [MaxLength(64)] - public string? Province { get; set; } - - /// - /// 国家 - /// - [SugarColumn(ColumnDescription = "国家", Length = 64)] - [MaxLength(64)] - public string? Country { get; set; } - - /// - /// AccessToken - /// - [SugarColumn(ColumnDescription = "AccessToken", ColumnDataType = StaticConfig.CodeFirst_BigString)] - public string? AccessToken { get; set; } - - /// - /// RefreshToken - /// - [SugarColumn(ColumnDescription = "RefreshToken", ColumnDataType = StaticConfig.CodeFirst_BigString)] - public string? RefreshToken { get; set; } - - /// - /// 过期时间 - /// - [SugarColumn(ColumnDescription = "ExpiresIn")] - public int? ExpiresIn { get; set; } - - /// - /// 用户授权的作用域,使用逗号分隔 - /// - [SugarColumn(ColumnDescription = "授权作用域", Length = 64)] - [MaxLength(64)] - public string? Scope { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Enum/AlipayCertTypeEnum.cs b/Admin.NET.Core/Enum/AlipayCertTypeEnum.cs deleted file mode 100644 index 8bc1c34..0000000 --- a/Admin.NET.Core/Enum/AlipayCertTypeEnum.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 参与方的证件类型枚举 -/// -[SuppressSniffer] -[Description("参与方的证件类型枚举")] -public enum AlipayCertTypeEnum -{ - [Description("身份证")] - IDENTITY_CARD, - - [Description("护照")] - PASSPORT -} \ No newline at end of file diff --git a/Admin.NET.Core/Enum/AlipayIdentityTypeEnum.cs b/Admin.NET.Core/Enum/AlipayIdentityTypeEnum.cs deleted file mode 100644 index 4b2d864..0000000 --- a/Admin.NET.Core/Enum/AlipayIdentityTypeEnum.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 参与方的标识类型枚举 -/// -[SuppressSniffer] -[Description("参与方的标识类型枚举")] -public enum AlipayIdentityTypeEnum -{ - [Description("支付宝用户UID")] - ALIPAY_USER_ID, - - [Description("支付宝登录号")] - ALIPAY_LOGON_ID -} \ No newline at end of file diff --git a/Admin.NET.Core/Enum/ErrorCodeEnum.cs b/Admin.NET.Core/Enum/ErrorCodeEnum.cs index dff72be..9038e7c 100644 --- a/Admin.NET.Core/Enum/ErrorCodeEnum.cs +++ b/Admin.NET.Core/Enum/ErrorCodeEnum.cs @@ -607,18 +607,6 @@ public enum ErrorCodeEnum [ErrorCodeItemMetadata("禁止删除系统参数")] D9001, - /// - /// 已存在同名任务调度 - /// - [ErrorCodeItemMetadata("已存在同名任务调度")] - D1100, - - /// - /// 任务调度不存在 - /// - [ErrorCodeItemMetadata("任务调度不存在")] - D1101, - /// /// 演示环境禁止修改数据 /// @@ -655,12 +643,6 @@ public enum ErrorCodeEnum [ErrorCodeItemMetadata("授权菜单存在重复项")] D1304, - /// - /// 该表代码模板已经生成过 - /// - [ErrorCodeItemMetadata("该表代码模板已经生成过")] - D1400, - /// /// 数据库配置不存在 /// @@ -715,48 +697,6 @@ public enum ErrorCodeEnum [ErrorCodeItemMetadata("已有相同编码或名称")] D1602, - /// - /// 脚本代码不能为空 - /// - [ErrorCodeItemMetadata("脚本代码不能为空")] - D1701, - - /// - /// 脚本代码中的作业类,需要定义 [JobDetail] 特性 - /// - [ErrorCodeItemMetadata("脚本代码中的作业类,需要定义 [JobDetail] 特性")] - D1702, - - /// - /// 作业编号需要与脚本代码中的作业类 [JobDetail('jobId')] 一致 - /// - [ErrorCodeItemMetadata("作业编号需要与脚本代码中的作业类 [JobDetail('jobId')] 一致")] - D1703, - - /// - /// 禁止修改作业编号 - /// - [ErrorCodeItemMetadata("禁止修改作业编号")] - D1704, - - /// - /// 执行作业失败 - /// - [ErrorCodeItemMetadata("执行作业失败")] - D1705, - - /// - /// 已存在同名打印模板 - /// - [ErrorCodeItemMetadata("已存在同名打印模板")] - D1800, - - /// - /// 已存在同名功能或同名程序及插件 - /// - [ErrorCodeItemMetadata("已存在同名功能或同名程序及插件")] - D1900, - /// /// 注册方案名称已存在 /// @@ -906,4 +846,4 @@ public enum ErrorCodeEnum /// [ErrorCodeItemMetadata("禁止非超级管理员操作")] SA001 -} \ No newline at end of file +} diff --git a/Admin.NET.Core/Enum/JobCreateTypeEnum.cs b/Admin.NET.Core/Enum/JobCreateTypeEnum.cs deleted file mode 100644 index 2d90b69..0000000 --- a/Admin.NET.Core/Enum/JobCreateTypeEnum.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 作业创建类型枚举 -/// -[Description("作业创建类型枚举")] -public enum JobCreateTypeEnum -{ - /// - /// 内置 - /// - [Description("内置"), Theme("info")] - BuiltIn = 0, - - /// - /// 脚本 - /// - [Description("脚本")] - Script = 1, - - /// - /// HTTP请求 - /// - [Description("HTTP请求")] - Http = 2, -} \ No newline at end of file diff --git a/Admin.NET.Core/Enum/JobStatusEnum.cs b/Admin.NET.Core/Enum/JobStatusEnum.cs deleted file mode 100644 index b06c65c..0000000 --- a/Admin.NET.Core/Enum/JobStatusEnum.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 岗位状态枚举 -/// -[Description("岗位状态枚举")] -public enum JobStatusEnum -{ - /// - /// 在职 - /// - [Description("在职")] - On = 1, - - /// - /// 离职 - /// - [Description("离职")] - Off = 2, - - /// - /// 请假 - /// - [Description("请假")] - Leave = 3, - - /// - /// 其他 - /// - [Description("其他")] - Other = 4, -} \ No newline at end of file diff --git a/Admin.NET.Core/Enum/PrintTypeEnum.cs b/Admin.NET.Core/Enum/PrintTypeEnum.cs deleted file mode 100644 index 422972f..0000000 --- a/Admin.NET.Core/Enum/PrintTypeEnum.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 打印类型枚举 -/// -[Description("打印类型枚举")] -public enum PrintTypeEnum -{ - /// - /// 浏览器打印 - /// - [Description("浏览器打印")] - Browser = 1, - - /// - /// 浏览器打印 - /// - [Description("客户端打印")] - Client = 2, -} \ No newline at end of file diff --git a/Admin.NET.Core/Enum/WechatReturnCodeEnum.cs b/Admin.NET.Core/Enum/WechatReturnCodeEnum.cs deleted file mode 100644 index ba30a3e..0000000 --- a/Admin.NET.Core/Enum/WechatReturnCodeEnum.cs +++ /dev/null @@ -1,289 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 微信开发返回码 -/// -[Description("微信开发返回码")] -public enum WechatReturnCodeEnum -{ - SenparcWeixinSDK配置错误 = -99, // 0xFFFFFF9D - 系统繁忙此时请开发者稍候再试 = -1, // 0xFFFFFFFF - 请求成功 = 0, - 工商数据返回_企业已注销 = 101, // 0x00000065 - 工商数据返回_企业不存在或企业信息未更新 = 102, // 0x00000066 - 工商数据返回_企业法定代表人姓名不一致 = 103, // 0x00000067 - 工商数据返回_企业法定代表人身份证号码不一致 = 104, // 0x00000068 - 法定代表人身份证号码_工商数据未更新_请5_15个工作日之后尝试 = 105, // 0x00000069 - 工商数据返回_企业信息或法定代表人信息不一致 = 1000, // 0x000003E8 - 对方不是粉丝 = 10700, // 0x000029CC - 发送消息失败_对方关闭了接收消息 = 10703, // 0x000029CF - 发送消息失败_48小时内用户未互动 = 10706, // 0x000029D2 - POST参数非法 = 20002, // 0x00004E22 - 获取access_token时AppSecret错误或者access_token无效 = 40001, // 0x00009C41 - - /// - /// 公众号:不合法的凭证类型 - /// 小程序:暂无生成权限 - /// - 不合法的凭证类型 = 40002, // 0x00009C42 - - 不合法的OpenID = 40003, // 0x00009C43 - 不合法的媒体文件类型 = 40004, // 0x00009C44 - 不合法的文件类型 = 40005, // 0x00009C45 - 不合法的文件大小 = 40006, // 0x00009C46 - 不合法的媒体文件id = 40007, // 0x00009C47 - 不合法的消息类型_40008 = 40008, // 0x00009C48 - 不合法的图片文件大小 = 40009, // 0x00009C49 - 不合法的语音文件大小 = 40010, // 0x00009C4A - 不合法的视频文件大小 = 40011, // 0x00009C4B - 不合法的缩略图文件大小 = 40012, // 0x00009C4C - - /// - /// 微信:不合法的APPID - /// 小程序:生成权限被封禁 - /// - 不合法的APPID = 40013, // 0x00009C4D - - 不合法的access_token = 40014, // 0x00009C4E - 不合法的菜单类型 = 40015, // 0x00009C4F - 不合法的按钮个数1 = 40016, // 0x00009C50 - 不合法的按钮个数2 = 40017, // 0x00009C51 - 不合法的按钮名字长度 = 40018, // 0x00009C52 - 不合法的按钮KEY长度 = 40019, // 0x00009C53 - 不合法的按钮URL长度 = 40020, // 0x00009C54 - 不合法的菜单版本号 = 40021, // 0x00009C55 - 不合法的子菜单级数 = 40022, // 0x00009C56 - 不合法的子菜单按钮个数 = 40023, // 0x00009C57 - 不合法的子菜单按钮类型 = 40024, // 0x00009C58 - 不合法的子菜单按钮名字长度 = 40025, // 0x00009C59 - 不合法的子菜单按钮KEY长度 = 40026, // 0x00009C5A - 不合法的子菜单按钮URL长度 = 40027, // 0x00009C5B - 不合法的自定义菜单使用用户 = 40028, // 0x00009C5C - 不合法的oauth_code = 40029, // 0x00009C5D - 不合法的refresh_token = 40030, // 0x00009C5E - 不合法的openid列表 = 40031, // 0x00009C5F - 不合法的openid列表长度 = 40032, // 0x00009C60 - 不合法的请求字符不能包含uxxxx格式的字符 = 40033, // 0x00009C61 - 不合法的参数 = 40035, // 0x00009C63 - template_id不正确 = 40037, // 0x00009C65 - 不合法的请求格式 = 40038, // 0x00009C66 - 不合法的URL长度 = 40039, // 0x00009C67 - 不合法的分组id = 40050, // 0x00009C72 - 分组名字不合法 = 40051, // 0x00009C73 - - /// - /// 公众号:输入参数有误 - /// 小程序:参数expire_time填写错误 - /// - 输入参数有误 = 40097, // 0x00009CA1 - - appsecret不正确 = 40125, // 0x00009CBD - 调用接口的IP地址不在白名单中 = 40164, // 0x00009CE4 - 参数path填写错误 = 40165, // 0x00009CE5 - 小程序Appid不存在 = 40166, // 0x00009CE6 - 参数query填写错误 = 40212, // 0x00009D14 - 缺少access_token参数 = 41001, // 0x0000A029 - 缺少appid参数 = 41002, // 0x0000A02A - 缺少refresh_token参数 = 41003, // 0x0000A02B - 缺少secret参数 = 41004, // 0x0000A02C - 缺少多媒体文件数据 = 41005, // 0x0000A02D - 缺少media_id参数 = 41006, // 0x0000A02E - 缺少子菜单数据 = 41007, // 0x0000A02F - 缺少oauth_code = 41008, // 0x0000A030 - 缺少openid = 41009, // 0x0000A031 - form_id不正确_或者过期 = 41028, // 0x0000A044 - form_id已被使用 = 41029, // 0x0000A045 - page不正确 = 41030, // 0x0000A046 - access_token超时 = 42001, // 0x0000A411 - refresh_token超时 = 42002, // 0x0000A412 - oauth_code超时 = 42003, // 0x0000A413 - 需要GET请求 = 43001, // 0x0000A7F9 - 需要POST请求 = 43002, // 0x0000A7FA - 需要HTTPS请求 = 43003, // 0x0000A7FB - 需要接收者关注 = 43004, // 0x0000A7FC - 需要好友关系 = 43005, // 0x0000A7FD - - /// [小程序订阅消息]用户拒绝接受消息,如果用户之前曾经订阅过,则表示用户取消了订阅关系 - 用户拒绝接受消息 = 43101, // 0x0000A85D - - 没有权限 = 43104, // 0x0000A860 - 多媒体文件为空 = 44001, // 0x0000ABE1 - POST的数据包为空 = 44002, // 0x0000ABE2 - 图文消息内容为空 = 44003, // 0x0000ABE3 - 文本消息内容为空 = 44004, // 0x0000ABE4 - 多媒体文件大小超过限制 = 45001, // 0x0000AFC9 - 消息内容超过限制 = 45002, // 0x0000AFCA - 标题字段超过限制 = 45003, // 0x0000AFCB - 描述字段超过限制 = 45004, // 0x0000AFCC - 链接字段超过限制 = 45005, // 0x0000AFCD - 图片链接字段超过限制 = 45006, // 0x0000AFCE - 语音播放时间超过限制 = 45007, // 0x0000AFCF - 图文消息超过限制 = 45008, // 0x0000AFD0 - 接口调用超过限制 = 45009, // 0x0000AFD1 - 创建菜单个数超过限制 = 45010, // 0x0000AFD2 - 回复时间超过限制 = 45015, // 0x0000AFD7 - 系统分组不允许修改 = 45016, // 0x0000AFD8 - 分组名字过长 = 45017, // 0x0000AFD9 - 分组数量超过上限 = 45018, // 0x0000AFDA - 超出响应数量限制 = 45047, // 0x0000AFF7 - 创建的标签数过多请注意不能超过100个 = 45056, // 0x0000B000 - 标签名非法请注意不能和其他标签重名 = 45157, // 0x0000B065 - 标签名长度超过30个字节 = 45158, // 0x0000B066 - 不存在媒体数据 = 46001, // 0x0000B3B1 - 不存在的菜单版本 = 46002, // 0x0000B3B2 - 不存在的菜单数据 = 46003, // 0x0000B3B3 - 解析JSON_XML内容错误 = 47001, // 0x0000B799 - - /// [小程序订阅消息]模板参数不准确,可能为空或者不满足规则,errmsg会提示具体是哪个字段出错 - 模板参数不准确 = 47003, // 0x0000B79B - - api功能未授权 = 48001, // 0x0000BB81 - 用户未授权该api = 50001, // 0x0000C351 - 名称格式不合法 = 53010, // 0x0000CF12 - 名称检测命中频率限制 = 53011, // 0x0000CF13 - 禁止使用该名称 = 53012, // 0x0000CF14 - 公众号_名称与已有公众号名称重复_小程序_该名称与已有小程序名称重复 = 53013, // 0x0000CF15 - 公众号_公众号已有_名称A_时_需与该帐号相同主体才可申请_名称A_小程序_小程序已有_名称A_时_需与该帐号相同主体才可申请_名称A_ = 53014, // 0x0000CF16 - 公众号_该名称与已有小程序名称重复_需与该小程序帐号相同主体才可申请_小程序_该名称与已有公众号名称重复_需与该公众号帐号相同主体才可申请 = 53015, // 0x0000CF17 - 公众号_该名称与已有多个小程序名称重复_暂不支持申请_小程序_该名称与已有多个公众号名称重复_暂不支持申请 = 53016, // 0x0000CF18 - 公众号_小程序已有_名称A_时_需与该帐号相同主体才可申请_名称A_小程序_公众号已有_名称A_时_需与该帐号相同主体才可申请_名称A = 53017, // 0x0000CF19 - 名称命中微信号 = 53018, // 0x0000CF1A - 名称在保护期内 = 53019, // 0x0000CF1B - 法人姓名与微信号不一致 = 61070, // 0x0000EE8E - 系统错误system_error = 61450, // 0x0000F00A - 参数错误invalid_parameter = 61451, // 0x0000F00B - 无效客服账号invalid_kf_account = 61452, // 0x0000F00C - 客服帐号已存在kf_account_exsited = 61453, // 0x0000F00D - - /// - /// 客服帐号名长度超过限制(仅允许10个英文字符,不包括@及@后的公众号的微信号)(invalid kf_acount length) - /// - 客服帐号名长度超过限制 = 61454, // 0x0000F00E - - /// - /// 客服帐号名包含非法字符(仅允许英文+数字)(illegal character in kf_account) - /// - 客服帐号名包含非法字符 = 61455, // 0x0000F00F - - /// 客服帐号个数超过限制(10个客服账号)(kf_account count exceeded) - 客服帐号个数超过限制 = 61456, // 0x0000F010 - - 无效头像文件类型invalid_file_type = 61457, // 0x0000F011 - 日期格式错误 = 61500, // 0x0000F03C - 日期范围错误 = 61501, // 0x0000F03D - 发送消息失败_该用户已被加入黑名单_无法向此发送消息 = 62751, // 0x0000F51F - 门店不存在 = 65115, // 0x0000FE5B - 该门店状态不允许更新 = 65118, // 0x0000FE5E - 标签格式错误 = 85006, // 0x00014C0E - 页面路径错误 = 85007, // 0x00014C0F - 类目填写错误 = 85008, // 0x00014C10 - 已经有正在审核的版本 = 85009, // 0x00014C11 - item_list有项目为空 = 85010, // 0x00014C12 - 标题填写错误 = 85011, // 0x00014C13 - 无效的审核id = 85012, // 0x00014C14 - 版本输入错误 = 85015, // 0x00014C17 - 没有审核版本 = 85019, // 0x00014C1B - 审核状态未满足发布 = 85020, // 0x00014C1C - 状态不可变 = 85021, // 0x00014C1D - action非法 = 85022, // 0x00014C1E - 审核列表填写的项目数不在1到5以内 = 85023, // 0x00014C1F - 需要补充相应资料_填写org_code和other_files参数 = 85024, // 0x00014C20 - 管理员手机登记数量已超过上限 = 85025, // 0x00014C21 - 该微信号已绑定5个管理员 = 85026, // 0x00014C22 - 管理员身份证已登记过5次 = 85027, // 0x00014C23 - 该主体登记数量已超过上限 = 85028, // 0x00014C24 - 商家名称已被占用 = 85029, // 0x00014C25 - 不能使用该名称 = 85031, // 0x00014C27 - 该名称在侵权投诉保护期 = 85032, // 0x00014C28 - 名称包含违规内容或微信等保留字 = 85033, // 0x00014C29 - 商家名称在改名15天保护期内 = 85034, // 0x00014C2A - 需与该帐号相同主体才可申请 = 85035, // 0x00014C2B - 介绍中含有虚假混淆内容 = 85036, // 0x00014C2C - 头像或者简介修改达到每个月上限 = 85049, // 0x00014C39 - 正在审核中_请勿重复提交 = 85050, // 0x00014C3A - 请先成功创建门店后再调用 = 85053, // 0x00014C3D - 临时mediaid无效 = 85056, // 0x00014C40 - 链接错误 = 85066, // 0x00014C4A - 测试链接不是子链接 = 85068, // 0x00014C4C - 校验文件失败 = 85069, // 0x00014C4D - 个人类型小程序无法设置二维码规则 = 85070, // 0x00014C4E - 已添加该链接_请勿重复添加 = 85071, // 0x00014C4F - 该链接已被占用 = 85072, // 0x00014C50 - 二维码规则已满 = 85073, // 0x00014C51 - 小程序未发布_小程序必须先发布代码才可以发布二维码跳转规则 = 85074, // 0x00014C52 - 个人类型小程序无法设置二维码规则1 = 85075, // 0x00014C53 - 小程序没有线上版本_不能进行灰度 = 85079, // 0x00014C57 - 小程序提交的审核未审核通过 = 85080, // 0x00014C58 - 无效的发布比例 = 85081, // 0x00014C59 - 当前的发布比例需要比之前设置的高 = 85082, // 0x00014C5A - 小程序提审数量已达本月上限 = 85085, // 0x00014C5D - 提交代码审核之前需提前上传代码 = 85086, // 0x00014C5E - 小程序已使用_api_navigateToMiniProgram_请声明跳转_appid_列表后再次提交 = 85087, // 0x00014C5F - 不是由第三方代小程序进行调用 = 86000, // 0x00014FF0 - 不存在第三方的已经提交的代码 = 86001, // 0x00014FF1 - 小程序还未设置昵称_头像_简介_请先设置完后再重新提交 = 86002, // 0x00014FF2 - 无效微信号 = 86004, // 0x00014FF4 - - /// - /// 小程序为“签名错误”。对应公众号: 87009, “errmsg” : “reply is not exists” //该回复不存在 - /// - 签名错误 = 87009, // 0x000153E1 - - 现网已经在灰度发布_不能进行版本回退 = 87011, // 0x000153E3 - 该版本不能回退_可能的原因_1_无上一个线上版用于回退_2_此版本为已回退版本_不能回退_3_此版本为回退功能上线之前的版本_不能回退 = 87012, // 0x000153E4 - 内容含有违法违规内容 = 87014, // 0x000153E6 - 没有留言权限 = 88000, // 0x000157C0 - 该图文不存在 = 88001, // 0x000157C1 - 文章存在敏感信息 = 88002, // 0x000157C2 - 精选评论数已达上限 = 88003, // 0x000157C3 - 已被用户删除_无法精选 = 88004, // 0x000157C4 - 已经回复过了 = 88005, // 0x000157C5 - 回复超过长度限制或为0 = 88007, // 0x000157C7 - 该评论不存在 = 88008, // 0x000157C8 - 获取评论数目不合法 = 88010, // 0x000157CA - 该公众号_小程序已经绑定了开放平台帐号 = 89000, // 0x00015BA8 - 业务域名无更改_无需重复设置 = 89019, // 0x00015BBB - 尚未设置小程序业务域名_请先在第三方平台中设置小程序业务域名后在调用本接口 = 89020, // 0x00015BBC - 请求保存的域名不是第三方平台中已设置的小程序业务域名或子域名 = 89021, // 0x00015BBD - 业务域名数量超过限制_最多可以添加100个业务域名 = 89029, // 0x00015BC5 - 个人小程序不支持调用_setwebviewdomain_接口 = 89231, // 0x00015C8F - 内部错误 = 89247, // 0x00015C9F - 企业代码类型无效_请选择正确类型填写 = 89248, // 0x00015CA0 - 该主体已有任务执行中_距上次任务24h后再试 = 89249, // 0x00015CA1 - 未找到该任务 = 89250, // 0x00015CA2 - 待法人人脸核身校验 = 89251, // 0x00015CA3 - 法人_企业信息一致性校验中 = 89252, // 0x00015CA4 - 缺少参数 = 89253, // 0x00015CA5 - 第三方权限集不全_补全权限集全网发布后生效 = 89254, // 0x00015CA6 - 系统不稳定_请稍后再试_如多次失败请通过社区反馈 = 89401, // 0x00015D39 - 该审核单不在待审核队列_请检查是否已提交审核或已审完 = 89402, // 0x00015D3A - 本单属于平台不支持加急种类_请等待正常审核流程 = 89403, // 0x00015D3B - 本单已加速成功_请勿重复提交 = 89404, // 0x00015D3C - 本月加急额度不足_请提升提审质量以获取更多额度 = 89405, // 0x00015D3D - 该经营资质已添加_请勿重复添加 = 92000, // 0x00016760 - 附近地点添加数量达到上线_无法继续添加 = 92002, // 0x00016762 - 地点已被其它小程序占用 = 92003, // 0x00016763 - 附近功能被封禁 = 92004, // 0x00016764 - 地点正在审核中 = 92005, // 0x00016765 - 地点正在展示小程序 = 92006, // 0x00016766 - 地点审核失败 = 92007, // 0x00016767 - 程序未展示在该地点 = 92008, // 0x00016768 - 小程序未上架或不可见 = 92009, // 0x00016769 - 地点不存在 = 93010, // 0x00016B52 - 个人类型小程序不可用 = 93011, // 0x00016B53 - 已下发的模板消息法人并未确认且已超时_24h_未进行身份证校验 = 100001, // 0x000186A1 - 已下发的模板消息法人并未确认且已超时_24h_未进行人脸识别校验 = 100002, // 0x000186A2 - 已下发的模板消息法人并未确认且已超时_24h = 100003, // 0x000186A3 - 此账号已被封禁_无法操作 = 200011, // 0x00030D4B - 私有模板数已达上限_上限_50_个 = 200012, // 0x00030D4C - 此模版已被封禁_无法选用 = 200013, // 0x00030D4D - 模版tid参数错误 = 200014, // 0x00030D4E - 关键词列表kidList参数错误 = 200020, // 0x00030D54 - 场景描述sceneDesc参数错误 = 200021, // 0x00030D55 -} \ No newline at end of file diff --git a/Admin.NET.Core/GlobalUsings.cs b/Admin.NET.Core/GlobalUsings.cs index a1a6b8b..eb9f95e 100644 --- a/Admin.NET.Core/GlobalUsings.cs +++ b/Admin.NET.Core/GlobalUsings.cs @@ -1,4 +1,4 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 +// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 // // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 // @@ -17,7 +17,6 @@ global using Furion.FriendlyException; global using Furion.HttpRemote; global using Furion.JsonSerialization; global using Furion.Logging; -global using Furion.Schedule; global using Furion.UnifyResult; global using Furion.ViewEngine; global using Magicodes.ExporterAndImporter.Core; @@ -36,13 +35,6 @@ global using Microsoft.Extensions.Options; global using NewLife; global using NewLife.Caching; global using Newtonsoft.Json.Linq; -global using SKIT.FlurlHttpClient; -global using SKIT.FlurlHttpClient.Wechat.Api; -global using SKIT.FlurlHttpClient.Wechat.Api.Models; -global using SKIT.FlurlHttpClient.Wechat.TenpayV3; -global using SKIT.FlurlHttpClient.Wechat.TenpayV3.Events; -global using SKIT.FlurlHttpClient.Wechat.TenpayV3.Models; -global using SKIT.FlurlHttpClient.Wechat.TenpayV3.Settings; global using SqlSugar; global using System.Collections; global using System.Collections.Concurrent; @@ -58,4 +50,4 @@ global using System.Text; global using System.Text.RegularExpressions; global using System.Web; global using UAParser; -global using Yitter.IdGenerator; \ No newline at end of file +global using Yitter.IdGenerator; diff --git a/Admin.NET.Core/Job/DynamicJobCompiler.cs b/Admin.NET.Core/Job/DynamicJobCompiler.cs deleted file mode 100644 index 67eb8fa..0000000 --- a/Admin.NET.Core/Job/DynamicJobCompiler.cs +++ /dev/null @@ -1,25 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 动态作业编译 -/// -public class DynamicJobCompiler : ISingleton -{ - /// - /// 编译代码并返回其中实现 IJob 的类型 - /// - /// 动态编译的作业代码 - /// - public Type BuildJob(string script) - { - var jobAssembly = Schedular.CompileCSharpClassCode(script); - var jobType = jobAssembly.GetTypes().FirstOrDefault(u => typeof(IJob).IsAssignableFrom(u)); - return jobType; - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Job/EnumToDictJob.cs b/Admin.NET.Core/Job/EnumToDictJob.cs deleted file mode 100644 index 4b84903..0000000 --- a/Admin.NET.Core/Job/EnumToDictJob.cs +++ /dev/null @@ -1,146 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 枚举转字典 -/// -[JobDetail("job_EnumToDictJob", Description = "枚举转字典", GroupName = "default", Concurrent = false)] -[PeriodSeconds(1, TriggerId = "trigger_EnumToDictJob", Description = "枚举转字典", MaxNumberOfRuns = 1, RunOnStart = true)] -public class EnumToDictJob : IJob -{ - private readonly IServiceScopeFactory _scopeFactory; - private const string DefaultTagType = null; - private const int OrderOffset = 10; - - public EnumToDictJob(IServiceScopeFactory scopeFactory) - { - _scopeFactory = scopeFactory; - } - - public async Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken) - { - var originColor = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Yellow; - Console.WriteLine($"【{DateTime.Now}】系统枚举转换字典"); - - using var serviceScope = _scopeFactory.CreateScope(); - var db = serviceScope.ServiceProvider.GetRequiredService().CopyNew(); - - var sysEnumService = serviceScope.ServiceProvider.GetRequiredService(); - var sysDictTypeList = GetDictByEnumType(sysEnumService.GetEnumTypeList()); - - // 校验枚举类命名规范,字典相关功能中需要通过后缀判断是否为枚举类型 - Console.ForegroundColor = ConsoleColor.Red; - foreach (var dictType in sysDictTypeList.Where(x => !x.Code.EndsWith("Enum"))) - Console.WriteLine($"【{DateTime.Now}】系统枚举转换字典的枚举类名称必须以Enum结尾: {dictType.Code} ({dictType.Name})"); - sysDictTypeList = sysDictTypeList.Where(x => x.Code.EndsWith("Enum")).ToList(); - - await SyncEnumToDictInfoAsync(db, sysDictTypeList); - - Console.ForegroundColor = ConsoleColor.Yellow; - try - { - await db.BeginTranAsync(); - var storageable1 = await db.Storageable(sysDictTypeList) - .SplitUpdate(it => it.Any()) - .SplitInsert(_ => true) - .ToStorageAsync(); - await storageable1.AsInsertable.ExecuteCommandAsync(stoppingToken); - await storageable1.AsUpdateable.ExecuteCommandAsync(stoppingToken); - - Console.WriteLine($"【{DateTime.Now}】系统枚举类转字典类型数据: 插入{storageable1.InsertList.Count}条, 更新{storageable1.UpdateList.Count}条, 共{storageable1.TotalList.Count}条。"); - - var storageable2 = await db.Storageable(sysDictTypeList.SelectMany(x => x.Children).ToList()) - .WhereColumns(it => new { it.DictTypeId, it.Value }) - .SplitUpdate(it => it.Any()) - .SplitInsert(_ => true) - .ToStorageAsync(); - await storageable2.AsInsertable.ExecuteCommandAsync(stoppingToken); - await storageable2.AsUpdateable.UpdateColumns(u => new - { - u.Label, - u.Code, - u.Value - }).ExecuteCommandAsync(stoppingToken); - - Console.WriteLine($"【{DateTime.Now}】系统枚举项转字典值数据: 插入{storageable2.InsertList.Count}条, 更新{storageable2.UpdateList.Count}条, 共{storageable2.TotalList.Count}条。"); - - await db.CommitTranAsync(); - } - catch (Exception error) - { - await db.RollbackTranAsync(); - Log.Error($"系统枚举转换字典操作错误:{error.Message}\n堆栈跟踪:{error.StackTrace}", error); - throw; - } - finally - { - Console.ForegroundColor = originColor; - } - } - - /// - /// 用于同步枚举转字典数据 - /// - /// - /// - private async Task SyncEnumToDictInfoAsync(SqlSugarClient db, List list) - { - var codeList = list.Select(x => x.Code).ToList(); - foreach (var dbDictType in await db.Queryable().ClearFilter().Where(x => codeList.Contains(x.Code)).ToListAsync() ?? new()) - { - var enumDictType = list.First(x => x.Code == dbDictType.Code); - if (enumDictType.Id == dbDictType.Id) - { - // 字典值表字段改变后每条字典值记录会多出一条,此处用于删除多余的字典值数据 - var dataValueList = enumDictType.Children.Select(e => e.Value).ToList(); - await db.Deleteable().Where(x => x.DictTypeId == dbDictType.Id && !dataValueList.Contains(x.Value)).ExecuteCommandAsync(); - continue; - } - - // 数据不一致则删除 - await db.Deleteable().Where(x => x.DictTypeId == dbDictType.Id).ExecuteCommandAsync(); - await db.Deleteable().Where(x => x.Id == dbDictType.Id).ExecuteCommandAsync(); - Console.WriteLine($"【{DateTime.Now}】删除字典数据: {dbDictType.Name}-{dbDictType.Code}"); - } - } - - /// - /// 枚举信息转字典 - /// - /// - /// - private List GetDictByEnumType(List enumTypeList) - { - var orderNo = 1; - var list = new List(); - foreach (var type in enumTypeList) - { - var dictType = new SysDictType - { - Id = 900000000000 + CommonUtil.GetFixedHashCode(type.TypeFullName), - SysFlag = YesNoEnum.Y, - Code = type.TypeName, - Name = type.TypeDescribe, - Remark = type.TypeFullName - }; - dictType.Children = type.EnumEntities.Select(x => new SysDictData - { - Id = dictType.Id + orderNo++, - DictTypeId = dictType.Id, - Code = x.Name, - Label = x.Describe, - Value = x.Value.ToString(), - OrderNo = x.Value + OrderOffset, - TagType = x.Theme != "" ? x.Theme : DefaultTagType - }).ToList(); - list.Add(dictType); - } - return list; - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Job/LogJob.cs b/Admin.NET.Core/Job/LogJob.cs deleted file mode 100644 index eba51dc..0000000 --- a/Admin.NET.Core/Job/LogJob.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 清理日志作业任务 -/// -[JobDetail("job_log", Description = "清理操作日志", GroupName = "default", Concurrent = false)] -[Daily(TriggerId = "trigger_log", Description = "清理操作日志")] -public class LogJob : IJob -{ - private readonly IServiceScopeFactory _scopeFactory; - private readonly ILogger _logger; - - public LogJob(IServiceScopeFactory scopeFactory, ILoggerFactory loggerFactory) - { - _scopeFactory = scopeFactory; - _logger = loggerFactory.CreateLogger(CommonConst.SysLogCategoryName); - } - - public async Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken) - { - using var serviceScope = _scopeFactory.CreateScope(); - - var db = serviceScope.ServiceProvider.GetRequiredService().CopyNew(); - var sysConfigService = serviceScope.ServiceProvider.GetRequiredService(); - - var daysAgo = await sysConfigService.GetConfigValue(ConfigConst.SysLogRetentionDays); // 日志保留天数 - await db.Deleteable().Where(u => u.CreateTime < DateTime.Now.AddDays(-daysAgo)).ExecuteCommandAsync(stoppingToken); // 删除访问日志 - await db.Deleteable().Where(u => u.CreateTime < DateTime.Now.AddDays(-daysAgo)).ExecuteCommandAsync(stoppingToken); // 删除操作日志 - await db.Deleteable().Where(u => u.CreateTime < DateTime.Now.AddDays(-daysAgo)).ExecuteCommandAsync(stoppingToken); // 删除差异日志 - - string msg = $"【{DateTime.Now}】清理系统日志成功,删除 {daysAgo} 天前的日志数据!"; - var originColor = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Yellow; - Console.WriteLine(msg); - Console.ForegroundColor = originColor; - - // 自定义日志 - _logger.LogInformation(msg); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Job/OnlineUserJob.cs b/Admin.NET.Core/Job/OnlineUserJob.cs deleted file mode 100644 index 7e49e69..0000000 --- a/Admin.NET.Core/Job/OnlineUserJob.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Furion.Logging.Extensions; - -namespace Admin.NET.Core; - -/// -/// 清理在线用户作业任务 -/// -[JobDetail("job_onlineUser", Description = "清理在线用户", GroupName = "default", Concurrent = false)] -[PeriodSeconds(1, TriggerId = "trigger_onlineUser", Description = "清理在线用户", MaxNumberOfRuns = 1, RunOnStart = true)] -public class OnlineUserJob : IJob -{ - private readonly IServiceScopeFactory _scopeFactory; - private readonly ILogger _logger; - - public OnlineUserJob(IServiceScopeFactory scopeFactory, ILoggerFactory loggerFactory) - { - _scopeFactory = scopeFactory; - _logger = loggerFactory.CreateLogger(CommonConst.SysLogCategoryName); - } - - public async Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken) - { - using var serviceScope = _scopeFactory.CreateScope(); - - var db = serviceScope.ServiceProvider.GetRequiredService().CopyNew(); - await db.Deleteable().ExecuteCommandAsync(stoppingToken); - - string msg = $"【{DateTime.Now}】清理在线用户成功!服务已重启..."; - var originColor = Console.ForegroundColor; - Console.ForegroundColor = ConsoleColor.Red; - Console.WriteLine(msg); - Console.ForegroundColor = originColor; - - // 自定义日志 - _logger.LogInformation(msg); - - // 缓存租户列表 - await serviceScope.ServiceProvider.GetRequiredService().CacheTenant(); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Option/AlipayOptions.cs b/Admin.NET.Core/Option/AlipayOptions.cs deleted file mode 100644 index ddd1bb0..0000000 --- a/Admin.NET.Core/Option/AlipayOptions.cs +++ /dev/null @@ -1,119 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Aop.Api; - -namespace Admin.NET.Core; - -/// -/// 支付宝支付配置选项 -/// -public sealed class AlipayOptions : IConfigurableOptions -{ - /// - /// 支付宝网关地址 - /// - public string ServerUrl { get; init; } - - /// - /// 支付宝授权回调地址 - /// - public string AuthUrl { get; init; } - - /// - /// 应用授权回调地址 - /// - public string AppAuthUrl { get; init; } - - /// - /// 支付宝 websocket 服务地址 - /// - public string WebsocketUrl { get; init; } - - /// - /// 应用回调地址 - /// - public string NotifyUrl { get; init; } - - /// - /// 支付宝根证书存放路径 - /// - public string RootCertPath { get; init; } - - /// - /// 支付宝商户账号列表 - /// - public List AccountList { get; init; } - - /// - /// 获取支付宝客户端 - /// - /// - public DefaultAopClient GetClient(AlipayMerchantAccount account) - { - account = account ?? throw new Exception("未找到支付宝商户账号"); - string path = App.WebHostEnvironment.ContentRootPath; - return new DefaultAopClient(new AlipayConfig - { - Format = "json", - Charset = "UTF-8", - ServerUrl = ServerUrl, - AppId = account.AppId, - SignType = account.SignType, - PrivateKey = account.PrivateKey, - EncryptKey = account.EncryptKey, - RootCertPath = Path.Combine(path, RootCertPath), - AppCertPath = Path.Combine(path, account.AppCertPath), - AlipayPublicCertPath = Path.Combine(path, account.AlipayPublicCertPath) - }); - } -} - -/// -/// 支付宝商户账号信息 -/// -public class AlipayMerchantAccount -{ - /// - /// 配置Id - /// - public long Id { get; init; } - - /// - /// 商户名称 - /// - public string Name { get; init; } - - /// - /// 商户AppId - /// - public string AppId { get; init; } - - /// - /// 应用私钥 - /// - public string PrivateKey { get; init; } - - /// - /// 从支付宝获取敏感信息时的加密密钥(可选) - /// - public string EncryptKey { get; init; } - - /// - /// 加密算法 - /// - public string SignType { get; init; } - - /// - /// 应用公钥证书路径 - /// - public string AppCertPath { get; init; } - - /// - /// 支付宝公钥证书路径 - /// - public string AlipayPublicCertPath { get; init; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Option/PayCallBackOptions.cs b/Admin.NET.Core/Option/PayCallBackOptions.cs deleted file mode 100644 index b110fd0..0000000 --- a/Admin.NET.Core/Option/PayCallBackOptions.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 支付回调配置选项 -/// -public sealed class PayCallBackOptions : IConfigurableOptions -{ - /// - /// 微信支付回调 - /// - public string WechatPayUrl { get; set; } - - /// - /// 微信退款回调 - /// - public string WechatRefundUrl { get; set; } - - /// - /// 支付宝支付回调 - /// - public string AlipayUrl { get; set; } - - /// - /// 支付宝退款回调 - /// - public string AlipayRefundUrl { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Option/WechatOptions.cs b/Admin.NET.Core/Option/WechatOptions.cs deleted file mode 100644 index 1c47b6d..0000000 --- a/Admin.NET.Core/Option/WechatOptions.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 微信相关配置选项 -/// -public sealed class WechatOptions : IConfigurableOptions -{ - // 公众号 - public string WechatAppId { get; set; } - - public string WechatAppSecret { get; set; } - - /// - /// 微信公众号服务器配置中的令牌(Token) - /// - public string WechatToken { get; set; } - - /// - /// 微信公众号服务器配置中的消息加解密密钥(EncodingAESKey) - /// - public string WechatEncodingAESKey { get; set; } - - // 小程序 - public string WxOpenAppId { get; set; } - - public string WxOpenAppSecret { get; set; } - - /// - /// 小程序消息推送中的令牌(Token) - /// - public string WxToken { get; set; } - - /// - /// 小程序消息推送中的消息加解密密钥(EncodingAESKey) - /// - public string WxEncodingAESKey { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Option/WechatPayOptions.cs b/Admin.NET.Core/Option/WechatPayOptions.cs deleted file mode 100644 index cca5bb6..0000000 --- a/Admin.NET.Core/Option/WechatPayOptions.cs +++ /dev/null @@ -1,18 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core; - -/// -/// 微信支付配置选项 -/// -public sealed class WechatPayOptions : WechatTenpayClientOptions, IConfigurableOptions -{ - /// - /// 微信公众平台AppId、开放平台AppId、小程序AppId、企业微信CorpId - /// - public string AppId { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/SeedData/SysConfigSeedData.cs b/Admin.NET.Core/SeedData/SysConfigSeedData.cs index 142b18c..3e8f844 100644 --- a/Admin.NET.Core/SeedData/SysConfigSeedData.cs +++ b/Admin.NET.Core/SeedData/SysConfigSeedData.cs @@ -32,9 +32,8 @@ public class SysConfigSeedData : ISqlSugarEntitySeedData new SysConfig{ Id=1300000000181, Name="Token过期时间", Code=ConfigConst.SysTokenExpire, Value="10080", SysFlag=YesNoEnum.Y, Remark="Token过期时间(分钟)", OrderNo=100, GroupCode=ConfigConst.SysDefaultGroup, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, new SysConfig{ Id=1300000000191, Name="RefreshToken过期时间", Code=ConfigConst.SysRefreshTokenExpire, Value="20160", SysFlag=YesNoEnum.Y, Remark="刷新Token过期时间(分钟)(一般 refresh_token 的有效时间 > 2 * access_token 的有效时间)", OrderNo=110, GroupCode=ConfigConst.SysDefaultGroup, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, new SysConfig{ Id=1300000000201, Name="发送异常日志邮件", Code=ConfigConst.SysErrorMail, Value="False", SysFlag=YesNoEnum.Y, Remark="是否发送异常日志邮件", OrderNo=120, GroupCode=ConfigConst.SysDefaultGroup, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysConfig{ Id=1300000000211, Name="域登录验证", Code=ConfigConst.SysDomainLogin, Value="False", SysFlag=YesNoEnum.Y, Remark="是否开启域登录验证", OrderNo=130, GroupCode=ConfigConst.SysDefaultGroup, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, new SysConfig{ Id=1300000000221, Name="数据校验日志", Code=ConfigConst.SysValidationLog, Value="True", SysFlag=YesNoEnum.Y, Remark="是否数据校验日志", OrderNo=140, GroupCode=ConfigConst.SysDefaultGroup, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, new SysConfig{ Id=1300000000231, Name="行政区域同步层级", Code=ConfigConst.SysRegionSyncLevel, Value="3", SysFlag=YesNoEnum.Y, Remark="行政区域同步层级 1-省级,2-市级,3-区县级,4-街道级,5-村级", OrderNo=150, GroupCode=ConfigConst.SysDefaultGroup, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, }; } -} \ No newline at end of file +} diff --git a/Admin.NET.Core/SeedData/SysDictDataSeedData.cs b/Admin.NET.Core/SeedData/SysDictDataSeedData.cs index 9483362..1218fcc 100644 --- a/Admin.NET.Core/SeedData/SysDictDataSeedData.cs +++ b/Admin.NET.Core/SeedData/SysDictDataSeedData.cs @@ -17,70 +17,14 @@ public class SysDictDataSeedData : ISqlSugarEntitySeedData /// public IEnumerable HasData() { - var typeList = new SysDictTypeSeedData().HasData().ToList(); + const long orgTypeId = 1300000000171; return new[] { - new SysDictData{ Id=1300000000101, DictTypeId=typeList[0].Id, Label="输入框", Value="Input", OrderNo=100, Remark="输入框", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000102, DictTypeId=typeList[0].Id, Label="字典选择器", Value="DictSelector", OrderNo=100, Remark="字典选择器", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000103, DictTypeId=typeList[0].Id, Label="常量选择器", Value="ConstSelector", OrderNo=100, Remark="常量选择器", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000104, DictTypeId=typeList[0].Id, Label="枚举选择器", Value="EnumSelector", OrderNo=100, Remark="枚举选择器", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000105, DictTypeId=typeList[0].Id, Label="树选择器", Value="ApiTreeSelector", OrderNo=100, Remark="树选择器", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000106, DictTypeId=typeList[0].Id, Label="外键", Value="ForeignKey", OrderNo=100, Remark="外键", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000107, DictTypeId=typeList[0].Id, Label="数字输入框", Value="InputNumber", OrderNo=100, Remark="数字输入框", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000108, DictTypeId=typeList[0].Id, Label="时间选择", Value="DatePicker", OrderNo=100, Remark="时间选择", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000109, DictTypeId=typeList[0].Id, Label="文本域", Value="InputTextArea", OrderNo=100, Remark="文本域", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000110, DictTypeId=typeList[0].Id, Label="上传", Value="Upload", OrderNo=100, Remark="上传", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000111, DictTypeId=typeList[0].Id, Label="开关", Value="Switch", OrderNo=100, Remark="开关", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000112, DictTypeId=typeList[0].Id, Label="上传单文件", Value="Upload_SingleFile", OrderNo=120, Remark="上传单文件", Status=StatusEnum.Enable, CreateTime= DateTime.Now }, - new SysDictData{ Id=1300000000113, DictTypeId=typeList[0].Id, Label="富文本编辑器", Value="Editor", OrderNo=130, Remark="富文本编辑器", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2025-12-25 00:00:00") }, - - new SysDictData{ Id=1300000000201, DictTypeId=typeList[1].Id, Label="等于", Value="==", OrderNo=1, Remark="等于", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000202, DictTypeId=typeList[1].Id, Label="模糊", Value="like", OrderNo=1, Remark="模糊", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000203, DictTypeId=typeList[1].Id, Label="大于", Value=">", OrderNo=1, Remark="大于", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000204, DictTypeId=typeList[1].Id, Label="小于", Value="<", OrderNo=1, Remark="小于", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000205, DictTypeId=typeList[1].Id, Label="不等于", Value="!=", OrderNo=1, Remark="不等于", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000206, DictTypeId=typeList[1].Id, Label="大于等于", Value=">=", OrderNo=1, Remark="大于等于", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000207, DictTypeId=typeList[1].Id, Label="小于等于", Value="<=", OrderNo=1, Remark="小于等于", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000208, DictTypeId=typeList[1].Id, Label="不为空", Value="isNotNull", OrderNo=1, Remark="不为空", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000209, DictTypeId=typeList[1].Id, Label="时间范围", Value="~", OrderNo=1, Remark="时间范围", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - - new SysDictData{ Id=1300000000301, DictTypeId=typeList[2].Id, Label="long", Value="long", OrderNo=1, Remark="long", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000302, DictTypeId=typeList[2].Id, Label="string", Value="string", OrderNo=1, Remark="string", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000303, DictTypeId=typeList[2].Id, Label="DateTime", Value="DateTime", OrderNo=1, Remark="DateTime", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000304, DictTypeId=typeList[2].Id, Label="bool", Value="bool", OrderNo=1, Remark="bool", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000305, DictTypeId=typeList[2].Id, Label="int", Value="int", OrderNo=1, Remark="int", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000306, DictTypeId=typeList[2].Id, Label="double", Value="double", OrderNo=1, Remark="double", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000307, DictTypeId=typeList[2].Id, Label="float", Value="float", OrderNo=1, Remark="float", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000308, DictTypeId=typeList[2].Id, Label="decimal", Value="decimal", OrderNo=1, Remark="decimal", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000309, DictTypeId=typeList[2].Id, Label="Guid", Value="Guid", OrderNo=1, Remark="Guid", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000310, DictTypeId=typeList[2].Id, Label="DateTimeOffset", Value="DateTimeOffset", OrderNo=1, Remark="DateTimeOffset", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - - new SysDictData{ Id=1300000000401, DictTypeId=typeList[3].Id, Label="下载压缩包", Value="100", OrderNo=1, Remark="下载压缩包", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000402, DictTypeId=typeList[3].Id, Label="下载压缩包(前端)", Value="111", OrderNo=2, Remark="下载压缩包(前端)", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000403, DictTypeId=typeList[3].Id, Label="下载压缩包(后端)", Value="121", OrderNo=3, Remark="下载压缩包(后端)", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000404, DictTypeId=typeList[3].Id, Label="生成到本项目", Value="200", OrderNo=4, Remark="生成到本项目", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000405, DictTypeId=typeList[3].Id, Label="生成到本项目(前端)", Value="211", OrderNo=5, Remark="生成到本项目(前端)", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000406, DictTypeId=typeList[3].Id, Label="生成到本项目(后端)", Value="221", OrderNo=6, Remark="生成到本项目(后端)", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - - new SysDictData{ Id=1300000000501, DictTypeId=typeList[4].Id, Label="EntityBaseId【基础实体Id】", Value="EntityBaseId", OrderNo=1, Remark="【基础实体Id】", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000502, DictTypeId=typeList[4].Id, Label="EntityBase【基础实体】", Value="EntityBase", OrderNo=1, Remark="【基础实体】", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000503, DictTypeId=typeList[4].Id, Label="EntityBaseDel【基础软删除实体】", Value="EntityBaseDel", OrderNo=1, Remark="【基础软删除实体】", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000504, DictTypeId=typeList[4].Id, Label="EntityBaseOrg【机构实体】", Value="EntityBaseOrg", OrderNo=1, Remark="【机构实体】", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000505, DictTypeId=typeList[4].Id, Label="EntityBaseOrgDel【机构软删除实体】", Value="EntityBaseOrgDel", OrderNo=1, Remark="【机构软删除实体】", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000506, DictTypeId=typeList[4].Id, Label="EntityBaseTenantId【租户实体Id】", Value="EntityBaseTenantId", OrderNo=1, Remark="【租户实体Id】", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000507, DictTypeId=typeList[4].Id, Label="EntityBaseTenant【租户实体】", Value="EntityBaseTenant", OrderNo=1, Remark="【租户实体】", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000508, DictTypeId=typeList[4].Id, Label="EntityBaseTenantDel【租户软删除实体】", Value="EntityBaseTenantDel", OrderNo=1, Remark="【租户软删除实体】", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000509, DictTypeId=typeList[4].Id, Label="EntityBaseTenantOrg【租户机构实体】", Value="EntityBaseTenantOrg", OrderNo=1, Remark="【租户机构实体】", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictData{ Id=1300000000510, DictTypeId=typeList[4].Id, Label="EntityBaseTenantOrgDel【租户机构软删除实体】", Value="EntityBaseTenantOrgDel", OrderNo=1, Remark="【租户机构软删除实体】", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - - new SysDictData{ Id=1300000000601, DictTypeId=typeList[5].Id, Label="不需要", Value="off", OrderNo=100, Remark="不需要打印支持", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-12-04 00:00:00") }, - new SysDictData{ Id=1300000000602, DictTypeId=typeList[5].Id, Label="绑定打印模版", Value="custom", OrderNo=101, Remark="绑定打印模版", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-12-04 00:00:00") }, - - new SysDictData{ Id=1300000000701, DictTypeId=typeList[6].Id, Label="集团", Value="101", OrderNo=100, Remark="集团", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, - new SysDictData{ Id=1300000000702, DictTypeId=typeList[6].Id, Label="公司", Value="201", OrderNo=101, Remark="公司", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, - new SysDictData{ Id=1300000000703, DictTypeId=typeList[6].Id, Label="部门", Value="301", OrderNo=102, Remark="部门", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, - new SysDictData{ Id=1300000000704, DictTypeId=typeList[6].Id, Label="区域", Value="401", OrderNo=103, Remark="区域", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, - new SysDictData{ Id=1300000000705, DictTypeId=typeList[6].Id, Label="组", Value="501", OrderNo=104, Remark="组", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, + new SysDictData{ Id=1300000000701, DictTypeId=orgTypeId, Label="集团", Value="101", OrderNo=100, Remark="集团", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, + new SysDictData{ Id=1300000000702, DictTypeId=orgTypeId, Label="公司", Value="201", OrderNo=101, Remark="公司", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, + new SysDictData{ Id=1300000000703, DictTypeId=orgTypeId, Label="部门", Value="301", OrderNo=102, Remark="部门", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, + new SysDictData{ Id=1300000000704, DictTypeId=orgTypeId, Label="区域", Value="401", OrderNo=103, Remark="区域", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, + new SysDictData{ Id=1300000000705, DictTypeId=orgTypeId, Label="组", Value="501", OrderNo=104, Remark="组", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, }; } -} \ No newline at end of file +} diff --git a/Admin.NET.Core/SeedData/SysDictTypeSeedData.cs b/Admin.NET.Core/SeedData/SysDictTypeSeedData.cs index 47b6def..5a2b919 100644 --- a/Admin.NET.Core/SeedData/SysDictTypeSeedData.cs +++ b/Admin.NET.Core/SeedData/SysDictTypeSeedData.cs @@ -19,13 +19,7 @@ public class SysDictTypeSeedData : ISqlSugarEntitySeedData { return new[] { - new SysDictType{ Id=1300000000111, Name="代码生成控件类型", Code="code_gen_effect_type", SysFlag=YesNoEnum.Y, OrderNo=100, Remark="代码生成控件类型", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictType{ Id=1300000000121, Name="代码生成查询类型", Code="code_gen_query_type", SysFlag=YesNoEnum.Y, OrderNo=101, Remark="代码生成查询类型", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictType{ Id=1300000000131, Name="代码生成.NET类型", Code="code_gen_net_type", SysFlag=YesNoEnum.Y, OrderNo=102, Remark="代码生成.NET类型", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictType{ Id=1300000000141, Name="代码生成方式", Code="code_gen_create_type", SysFlag=YesNoEnum.Y, OrderNo=103, Remark="代码生成方式", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictType{ Id=1300000000151, Name="代码生成基类", Code="code_gen_base_class", SysFlag=YesNoEnum.Y, OrderNo=104, Remark="代码生成基类", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2022-02-10 00:00:00") }, - new SysDictType{ Id=1300000000161, Name="代码生成打印类型", Code="code_gen_print_type", SysFlag=YesNoEnum.Y, OrderNo=105, Remark="代码生成打印类型", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-12-04 00:00:00") }, new SysDictType{ Id=1300000000171, Name="机构类型", Code="org_type", SysFlag=YesNoEnum.Y, OrderNo=201, Remark="机构类型", Status=StatusEnum.Enable, CreateTime=DateTime.Parse("2023-02-10 00:00:00") }, }; } -} \ No newline at end of file +} diff --git a/Admin.NET.Core/SeedData/SysMenuSeedData.cs b/Admin.NET.Core/SeedData/SysMenuSeedData.cs index bc5aa88..6c3914b 100644 --- a/Admin.NET.Core/SeedData/SysMenuSeedData.cs +++ b/Admin.NET.Core/SeedData/SysMenuSeedData.cs @@ -82,23 +82,6 @@ public class SysMenuSeedData : ISqlSugarEntitySeedData new SysMenu{ Id=1300200060601, Pid=1300200060101, Title="发布", Permission="sysNotice:public", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, new SysMenu{ Id=1300200060701, Pid=1300200060101, Title="撤回", Permission="sysNotice:cancel", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - // 三方账号 - new SysMenu{ Id=1300200070101, Pid=1300200000101, Title="三方账号", Path="/system/weChatUser", Name="sysWechatUser", Component="/system/weChatUser/index",Icon="ele-ChatDotRound", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=160 }, - new SysMenu{ Id=1300200070201, Pid=1300200070101, Title="查询", Permission="sysWechatUser:page", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300200070301, Pid=1300200070101, Title="编辑", Permission="sysWechatUser:update", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300200070401, Pid=1300200070101, Title="增加", Permission="sysWechatUser:add", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300200070501, Pid=1300200070101, Title="删除", Permission="sysWechatUser:delete", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - - // AD域配置 - new SysMenu{ Id=1300200080101, Pid=1300200000101, Title="AD域配置", Path="/system/ldap", Name="sysLdap", Component="/system/ldap/index",Icon="ele-Place", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=170 }, - new SysMenu{ Id=1300200080201, Pid=1300200080101, Title="查询", Permission="sysLdap:page", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300200080301, Pid=1300200080101, Title="详情", Permission="sysLdap:detail", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=110 }, - new SysMenu{ Id=1300200080401, Pid=1300200080101, Title="编辑", Permission="sysLdap:update", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=120 }, - new SysMenu{ Id=1300200080501, Pid=1300200080101, Title="增加", Permission="sysLdap:add", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=130 }, - new SysMenu{ Id=1300200080601, Pid=1300200080101, Title="删除", Permission="sysLdap:delete", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=140 }, - new SysMenu{ Id=1300200080701, Pid=1300200080101, Title="同步域账户", Permission="sysLdap:syncUser", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=150 }, - new SysMenu{ Id=1300200080801, Pid=1300200080101, Title="同步域组织", Permission="sysLdap:syncOrg", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=160 }, - #endregion 系统管理 #region 平台管理 @@ -159,13 +142,6 @@ public class SysMenuSeedData : ISqlSugarEntitySeedData new SysMenu{ Id=1300300051501, Pid=1300300051101, Title="删除", Permission="sysTemplate:delete", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, new SysMenu{ Id=1300300051601, Pid=1300300051101, Title="预览", Permission="sysTemplate:preview", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - // 任务调度 - new SysMenu{ Id=1300300060101, Pid=1300300000101, Title="任务调度", Path="/platform/job", Name="sysJob", Component="/system/job/index", Icon="ele-AlarmClock", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=140 }, - new SysMenu{ Id=1300300060201, Pid=1300300060101, Title="查询", Permission="sysJob:pageJobDetail", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300060301, Pid=1300300060101, Title="编辑", Permission="sysJob:updateJobDetail", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300060401, Pid=1300300060101, Title="增加", Permission="sysJob:addJobDetail", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300060501, Pid=1300300060101, Title="删除", Permission="sysJob:deleteJobDetail", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - // 系统参数 new SysMenu{ Id=1300200090101, Pid=1300200000101, Title="系统参数", Path="/system/tenantConfig", Name="sysTenantConfig", Component="/system/tenantConfig/index", Icon="ele-DocumentCopy", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=180 }, new SysMenu{ Id=1300200090201, Pid=1300200090101, Title="查询", Permission="sysTenantConfig:page", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, @@ -212,20 +188,6 @@ public class SysMenuSeedData : ISqlSugarEntitySeedData new SysMenu{ Id=1300300100501, Pid=1300300100101, Title="删除", Permission="sysFile:delete", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, new SysMenu{ Id=1300300100601, Pid=1300300100101, Title="编辑", Permission="sysFile:update", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2023-10-27 00:00:00"), OrderNo=100 }, - // 打印模板 - new SysMenu{ Id=1300300110101, Pid=1300300000101, Title="打印模板", Path="/platform/print", Name="sysPrint", Component="/system/print/index", Icon="ele-Printer", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=190 }, - new SysMenu{ Id=1300300110201, Pid=1300300110101, Title="查询", Permission="sysPrint:page", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300110301, Pid=1300300110101, Title="编辑", Permission="sysPrint:update", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300110401, Pid=1300300110101, Title="增加", Permission="sysPrint:add", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300110501, Pid=1300300110101, Title="删除", Permission="sysPrint:delete", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - - // 动态插件 - new SysMenu{ Id=1300300120101, Pid=1300300000101, Title="动态插件", Path="/platform/plugin", Name="sysPlugin", Component="/system/plugin/index", Icon="ele-Connection", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=200 }, - new SysMenu{ Id=1300300120201, Pid=1300300120101, Title="查询", Permission="sysPlugin:page", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300120301, Pid=1300300120101, Title="编辑", Permission="sysPlugin:update", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300120401, Pid=1300300120101, Title="增加", Permission="sysPlugin:add", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300120501, Pid=1300300120101, Title="删除", Permission="sysPlugin:delete", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - // 开放接口 new SysMenu{ Id=1300300130101, Pid=1300300000101, Title="开放接口", Path="/platform/openAccess", Name="sysOpenAccess", Component="/system/openAccess/index", Icon="ele-Link", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=210 }, new SysMenu{ Id=1300300130201, Pid=1300300130101, Title="查询", Permission="sysOpenAccess:page", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, @@ -236,14 +198,6 @@ public class SysMenuSeedData : ISqlSugarEntitySeedData // 系统配置 new SysMenu{ Id=1300300140101, Pid=1300300000101, Title="系统配置", Path="/platform/infoSetting", Name="sysInfoSetting", Component="/system/infoSetting/index", Icon="ele-Setting", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=220 }, - // 微信支付 - new SysMenu{ Id=1300300150101, Pid=1300300000101, Title="微信支付", Path="/platform/wechatpay", Name="sysWechatPay", Component="/system/weChatPay/index", Icon="ele-Coin", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=230 }, - new SysMenu{ Id=1300300150201, Pid=1300300150101, Title="微信支付下单Native", Permission="sysWechatPay:payTransactionNative", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300150301, Pid=1300300150101, Title="查询退款信息", Permission="sysWechatPay:listRefund", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300150401, Pid=1300300150101, Title="获取支付订单详情(本地库)", Permission="sysWechatPay:payInfo", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300150501, Pid=1300300150101, Title="获取支付订单详情(微信接口)", Permission="sysWechatPay:payInfoFromWechat", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300300150601, Pid=1300300150101, Title="退款申请", Permission="sysWechatPay:refundDomestic", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - // 系统更新 new SysMenu{ Id=1300300160101, Pid=1300300000101, Title="系统更新", Path="/platform/update", Name="sysUpdate", Component="/system/update/index", Icon="ele-Upload", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=240 }, new SysMenu{ Id=1300300160201, Pid=1300300160101, Title="更新", Permission="sysUpdate:update", Type=MenuTypeEnum.Btn, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, @@ -288,7 +242,6 @@ public class SysMenuSeedData : ISqlSugarEntitySeedData // 开发工具 new SysMenu{ Id=1300500000101, Pid=0, Title="开发工具", Path="/develop", Name="develop", Component="Layout", Icon="ele-Cpu", Type=MenuTypeEnum.Dir, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=13000 }, new SysMenu{ Id=1300500010101, Pid=1300500000101, Title="库表管理", Path="/develop/database", Name="sysDatabase", Component="/system/database/index",Icon="ele-Coin", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=100 }, - new SysMenu{ Id=1300500020101, Pid=1300500000101, Title="代码生成", Path="/develop/codeGen", Name="sysCodeGen", Component="/system/codeGen/index", Icon="ele-Crop", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=110 }, new SysMenu{ Id=1300500030101, Pid=1300500000101, Title="表单设计", Path="/develop/formDes", Name="sysFormDes", Component="/system/formDes/index", Icon="ele-Edit", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=120 }, new SysMenu{ Id=1300500040101, Pid=1300500000101, Title="接口压测", Path="/develop/stressTest", Name="SysStressTest", Component="/system/stressTest/index", Icon="ele-DataLine", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=130 }, new SysMenu{ Id=1300500050101, Pid=1300500000101, Title="系统接口", Path="/develop/api", Name="sysApi", Component="layout/routerView/iframe", IsIframe=true, OutLink="http://localhost:5005", Icon="ele-Help", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2022-02-10 00:00:00"), OrderNo=140 }, @@ -310,4 +263,4 @@ public class SysMenuSeedData : ISqlSugarEntitySeedData new SysMenu{ Id=1300700000101, Pid=0, Title="关于项目", Path="/about", Name="about", Component="/about/index", Icon="ele-InfoFilled", Type=MenuTypeEnum.Menu, CreateTime=DateTime.Parse("2023-03-12 00:00:00"), OrderNo=15000 }, }; } -} \ No newline at end of file +} diff --git a/Admin.NET.Core/Service/APIJSON/用例APIFOX.json b/Admin.NET.Core/Service/APIJSON/用例APIFOX.json deleted file mode 100644 index 5b48a4e..0000000 --- a/Admin.NET.Core/Service/APIJSON/用例APIFOX.json +++ /dev/null @@ -1,23120 +0,0 @@ -{ - "apifoxProject": "1.0.0", - "$schema": { - "app": "apifox", - "type": "project", - "version": "1.2.0" - }, - "info": { - "name": "Admin.Net", - "description": "", - "mockRule": { - "rules": [ - ], - "enableSystemRule": true - } - }, - "apiCollection": [ - { - "name": "根目录", - "id": 29711526, - "auth": { - }, - "parentId": 0, - "serverId": "", - "description": "", - "identityPattern": { - "httpApi": { - "type": "methodAndPath", - "bodyType": "" - } - }, - "preProcessors": [ - { - "id": "inheritProcessors", - "type": "inheritProcessors", - "data": { - } - } - ], - "postProcessors": [ - { - "id": "inheritProcessors", - "type": "inheritProcessors", - "data": { - } - } - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - }, - "items": [ - { - "name": "aPIJSON", - "id": 29711668, - "auth": { - }, - "parentId": 0, - "serverId": "", - "description": "说明文档:https://github.com/Tencent/APIJSON/blob/master/Document.md#3.1", - "identityPattern": { - "httpApi": { - "type": "inherit", - "bodyType": "" - } - }, - "preProcessors": [ - { - "id": "inheritProcessors", - "type": "inheritProcessors", - "data": { - } - } - ], - "postProcessors": [ - { - "id": "inheritProcessors", - "type": "inheritProcessors", - "data": { - } - } - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - }, - "items": [ - { - "name": "统一查询入口", - "api": { - "id": "151219333", - "method": "post", - "path": "/api/aPIJSON/get", - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "auth": { - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "responses": [ - { - "id": "405647728", - "name": "成功", - "code": 200, - "contentType": "json", - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer" - }, - "type": { - "type": "string" - }, - "message": { - "type": "string" - }, - "result": { - "type": "object", - "properties": { - "[]": { - "type": "array", - "items": { - "type": "object", - "properties": { - }, - "x-apifox-orders": [ - ] - } - }, - "page": { - "type": "integer", - "description": "当前页码" - }, - "count": { - "type": "integer", - "description": "每页条数" - }, - "max": { - "type": "integer", - "description": "最大页数" - }, - "total": { - "type": "integer", - "description": "总条数" - } - }, - "x-apifox-orders": [ - "[]", - "page", - "count", - "max", - "total" - ] - }, - "extras": { - "type": "null" - }, - "time": { - "type": "string" - } - }, - "required": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ], - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - ], - "responseExamples": [ - ], - "requestBody": { - "type": "application/json", - "parameters": [ - ], - "jsonSchema": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/84275307" - }, - "x-apifox-orders": [ - ], - "properties": { - } - }, - "example": "{\r\n \"table1\": {\r\n \"@column\": \"id\",\r\n \"httpmethod\": \"Get\",\r\n }\r\n}" - }, - "description": "参数:{\"[]\":{\"SYS_LOG_OP\":{}}}", - "tags": [ - "aPIJSON" - ], - "status": "released", - "serverId": "", - "operationId": "api-aPIJSON-Post", - "sourceUrl": "", - "ordering": 0, - "cases": [ - { - "id": 143284761, - "type": "http", - "path": null, - "name": "单条查询", - "responseId": 405647728, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"table1\": {\r\n \"@column\": \"id,createtime,Actionname,loglevel,httpmethod,RequestParam\",//显示列\r\n //\"Actionname\":\"SwaggerCheckUrl\",\r\n //\"loglevel\":2,\r\n //\"httpmethod!\":[\"POST\",\"GET\"],//! not in\r\n \"createtime{}\": \">=2024-3-1\", //逻辑运算\r\n //\"isdelete\":0, //bool 支持 1、0、true、false \r\n \"RequestParam!\": null //not null\r\n }\r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.decba6c4-b3e2-40af-a30e-8c8d09865bf1\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"decba6c4-b3e2-40af-a30e-8c8d09865bf1\",\"requestIndex\":0,\"httpRequestId\":\"7e107ae6-74d4-44c8-8582-e9bfefb5e611\"},\"type\":\"http\",\"response\":{\"id\":\"7b5fc148-4f73-4e56-b054-26bebe9db57a\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Wed, 13 Mar 2024 08:19:05 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.45\"},{\"key\":\"Admin.NET\",\"value\":\"Admin.NET\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86375\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-14T07:18:51.6721222Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,54,57,54,51,53,53,48,48,50,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,48,58,51,51,58,50,51,46,51,56,55,53,57,48,51,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,76,111,103,76,101,118,101,108,34,58,50,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,91,93,92,34,58,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,125,44,92,34,112,97,103,101,92,34,58,51,44,92,34,99,111,117,110,116,92,34,58,50,44,92,34,113,117,101,114,121,92,34,58,51,125,44,92,34,116,111,116,97,108,64,92,34,58,92,34,47,91,93,47,116,111,116,97,108,92,34,125,34,125,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,51,32,49,54,58,49,57,58,48,54,34,125]},\"cookie\":[],\"responseTime\":99,\"responseSize\":328,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":2.698800027370453,\"wait\":0.3564000129699707,\"dns\":0,\"tcp\":0,\"firstByte\":96.46359997987747,\"download\":1.736199975013733,\"process\":0.03470003604888916,\"total\":101.28970003128052}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"get\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":157,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\n \\\"table1\\\": {\\n \\\"@column\\\": \\\"id,createtime,Actionname,loglevel,httpmethod,RequestParam\\\",\\n \\\"createtime{}\\\": \\\">=2024-3-1\\\",\\n \\\"RequestParam!\\\": null\\n }\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/get\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"157\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Wed, 13 Mar 2024 08:19:05 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.45\"},{\"key\":\"Admin.NET\",\"value\":\"Admin.NET\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86375\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-14T07:18:51.6721222Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1710317946491,\"requestStart\":1710317946493,\"offset\":{\"request\":2.698800027370453,\"socket\":3.0552000403404236,\"response\":99.5188000202179,\"end\":101.25499999523163,\"lookup\":3.0552000403404236,\"connect\":3.0552000403404236,\"done\":101.28970003128052}}}]}},\"responseValidation\":{\"schema\":{\"valid\":true,\"message\":\"\",\"errors\":null},\"responseCode\":{\"valid\":true}},\"passed\":true,\"metaInfo\":{\"httpApiId\":151219333,\"httpApiCaseId\":143284761,\"httpApiName\":\"统一入口\",\"httpApiPath\":\"/api/aPIJSON/get\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"单条查询\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - }, - { - "id": 143272865, - "type": "http", - "path": null, - "name": "列表查询", - "responseId": 0, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"[]\": {\r\n \"table1\": {\r\n \"@column\": \"id,createtime,httpmethod,RequestUrl,actionname,RequestParam,Elapsed\",//需要显示的列名\r\n //\"httpmethod\": \"POST\",//条件查询\r\n //\"RequestUrl$\": \"%swagger%\", //$模糊查询\r\n //\"@order\": \"RequestParam desc,createtime,actionname desc\", //按最新时间排序:-/desc 均为倒序 \r\n //\"@count\": \"10\", //前n条 很少用到 \r\n //\"RequestParam\":null,//匹配null or '',\r\n \"createtime%\":\"2024-3-5,2024-3-14\",// between 日期过滤\r\n \"Elapsed%\":\"1,20\"\r\n }\r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.1c48ba22-4372-4ab1-a874-a79449144e5d\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"1c48ba22-4372-4ab1-a874-a79449144e5d\",\"requestIndex\":0,\"httpRequestId\":\"70f19533-b333-460b-beeb-2e5ecbc5298c\"},\"type\":\"http\",\"response\":{\"id\":\"0f169b35-6729-4512-956d-2081d9fdb91d\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Thu, 14 Mar 2024 02:00:47 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.45\"},{\"key\":\"Admin.NET\",\"value\":\"Admin.NET\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86398\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-15T02:00:05.6689995Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,91,93,34,58,91,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,51,48,49,56,48,54,55,57,50,51,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,53,32,49,54,58,50,48,58,52,53,46,50,57,56,49,57,49,57,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,56,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,54,50,54,50,54,48,51,48,55,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,48,57,58,52,55,58,52,53,46,51,49,51,48,53,50,53,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,55,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,54,51,50,57,56,51,50,55,55,51,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,48,57,58,53,50,58,48,55,46,57,50,57,50,54,52,57,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,53,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,54,51,54,51,52,53,55,56,54,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,48,57,58,53,52,58,49,57,46,50,55,55,52,54,53,55,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,54,51,56,54,55,57,55,56,57,51,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,48,57,58,53,53,58,53,48,46,52,52,57,55,52,57,54,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,53,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,54,57,50,57,50,49,52,50,55,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,48,58,51,49,58,48,57,46,50,54,51,55,53,49,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,54,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,55,48,50,52,48,55,57,57,52,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,48,58,51,55,58,49,57,46,56,51,50,49,53,50,56,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,91,93,92,34,58,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,125,44,92,34,112,97,103,101,92,34,58,49,44,92,34,99,111,117,110,116,92,34,58,50,44,92,34,113,117,101,114,121,92,34,58,51,125,44,92,34,116,111,116,97,108,64,92,34,58,92,34,47,91,93,47,116,111,116,97,108,92,34,125,34,44,34,69,108,97,112,115,101,100,34,58,49,55,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,55,49,56,56,53,57,57,49,48,57,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,48,58,52,56,58,48,50,46,52,56,53,55,57,50,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,83,89,83,76,79,71,79,80,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,66,121,84,97,98,108,101,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,92,34,83,89,83,76,79,71,79,80,92,34,34,44,34,69,108,97,112,115,101,100,34,58,49,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,55,53,52,57,57,55,57,52,54,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,49,58,49,49,58,51,52,46,49,50,55,53,49,56,55,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,91,93,92,34,58,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,125,44,92,34,112,97,103,101,92,34,58,49,44,92,34,99,111,117,110,116,92,34,58,50,44,92,34,113,117,101,114,121,92,34,58,49,125,44,92,34,116,111,116,97,108,64,92,34,58,92,34,47,91,93,47,116,111,116,97,108,92,34,125,34,44,34,69,108,97,112,115,101,100,34,58,49,56,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,55,53,53,52,49,49,53,57,48,57,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,49,58,49,49,58,53,48,46,50,56,53,52,56,54,52,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,91,93,92,34,58,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,125,44,92,34,112,97,103,101,92,34,58,49,44,92,34,99,111,117,110,116,92,34,58,50,44,92,34,113,117,101,114,121,92,34,58,48,125,44,92,34,116,111,116,97,108,64,92,34,58,92,34,47,91,93,47,116,111,116,97,108,92,34,125,34,44,34,69,108,97,112,115,101,100,34,58,49,51,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,55,53,53,55,51,56,52,48,48,53,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,49,58,49,50,58,48,51,46,48,53,49,50,55,54,54,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,91,93,92,34,58,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,125,44,92,34,112,97,103,101,92,34,58,49,44,92,34,99,111,117,110,116,92,34,58,50,125,44,92,34,116,111,116,97,108,64,92,34,58,92,34,47,91,93,47,116,111,116,97,108,92,34,125,34,44,34,69,108,97,112,115,101,100,34,58,49,54,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,55,53,54,54,57,51,57,57,55,51,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,49,58,49,50,58,52,48,46,51,55,57,52,48,56,55,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,91,93,92,34,58,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,125,44,92,34,112,97,103,101,92,34,58,49,44,92,34,99,111,117,110,116,92,34,58,50,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,52,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,52,56,49,56,50,52,56,53,51,49,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,49,58,53,50,58,52,52,46,56,53,51,53,57,52,54,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,48,50,57,49,51,50,52,55,52,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,52,58,49,48,58,48,50,46,53,48,55,49,56,48,52,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,56,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,48,52,50,50,50,57,55,49,53,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,52,58,49,56,58,51,52,46,49,49,56,52,57,56,53,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,125,44,92,34,116,111,116,97,108,64,92,34,58,92,34,47,91,93,47,116,111,116,97,108,92,34,125,34,44,34,69,108,97,112,115,101,100,34,58,49,54,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,48,52,51,48,57,53,54,56,54,57,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,52,58,49,57,58,48,55,46,57,52,53,57,49,56,55,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,125,44,92,34,116,111,116,97,108,64,92,34,58,92,34,47,91,93,47,116,111,116,97,108,92,34,125,34,44,34,69,108,97,112,115,101,100,34,58,49,54,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,48,52,52,56,49,56,55,55,49,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,52,58,50,48,58,49,53,46,50,53,51,55,52,49,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,113,117,101,114,121,92,34,58,92,34,50,92,34,125,44,92,34,116,111,116,97,108,64,92,34,58,92,34,47,91,93,47,116,111,116,97,108,92,34,125,34,44,34,69,108,97,112,115,101,100,34,58,49,55,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,48,52,49,52,53,53,52,50,57,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,52,58,53,56,58,53,50,46,55,48,53,55,50,56,53,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,50,52,52,54,54,50,53,57,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,49,50,58,48,54,46,52,56,51,53,49,52,53,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,92,34,44,92,34,64,111,114,100,101,114,92,34,58,92,34,105,100,45,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,50,48,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,50,52,54,51,53,51,50,50,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,49,50,58,49,51,46,48,56,54,57,57,50,54,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,92,34,44,92,34,64,111,114,100,101,114,92,34,58,92,34,105,100,43,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,50,52,55,55,57,53,50,54,57,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,49,50,58,49,56,46,55,50,48,51,52,54,57,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,92,34,44,92,34,64,111,114,100,101,114,92,34,58,92,34,105,100,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,50,53,50,55,51,52,50,55,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,49,50,58,51,56,46,48,49,51,48,56,48,56,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,44,99,114,101,97,116,101,116,105,109,101,92,34,44,92,34,64,111,114,100,101,114,92,34,58,92,34,99,114,101,97,116,101,116,105,109,101,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,53,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,50,53,53,49,56,53,50,50,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,49,50,58,52,55,46,53,56,55,53,49,52,53,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,44,99,114,101,97,116,101,116,105,109,101,92,34,44,92,34,64,111,114,100,101,114,92,34,58,92,34,99,114,101,97,116,101,116,105,109,101,45,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,53,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,51,57,57,55,52,57,55,48,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,50,50,58,49,50,46,50,57,50,57,51,57,49,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,91,93,92,34,58,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,44,99,114,101,97,116,101,116,105,109,101,92,34,44,92,34,64,111,114,100,101,114,92,34,58,92,34,99,114,101,97,116,101,116,105,109,101,45,92,34,125,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,56,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,52,55,48,54,51,51,48,50,57,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,50,54,58,52,57,46,49,56,48,51,57,54,54,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,91,93,92,34,58,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,44,99,114,101,97,116,101,116,105,109,101,92,34,44,92,34,64,111,114,100,101,114,92,34,58,92,34,99,114,101,97,116,101,116,105,109,101,45,92,34,125,44,92,34,112,97,103,101,92,34,58,49,44,92,34,99,111,117,110,116,92,34,58,53,48,44,92,34,113,117,101,114,121,92,34,58,50,125,44,92,34,116,111,116,97,108,64,92,34,58,92,34,92,34,125,34,44,34,69,108,97,112,115,101,100,34,58,49,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,53,49,52,50,48,56,48,54,57,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,50,57,58,51,57,46,51,57,53,52,54,52,56,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,54,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,53,49,57,52,57,53,50,51,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,51,48,58,48,48,46,48,52,56,49,51,52,52,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,91,93,92,34,58,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,44,99,114,101,97,116,101,116,105,109,101,92,34,44,92,34,64,111,114,100,101,114,92,34,58,92,34,99,114,101,97,116,101,116,105,109,101,45,92,34,125,44,92,34,112,97,103,101,92,34,58,49,44,92,34,99,111,117,110,116,92,34,58,53,48,44,92,34,113,117,101,114,121,92,34,58,50,125,44,92,34,116,111,116,97,108,92,34,58,92,34,92,34,125,34,44,34,69,108,97,112,115,101,100,34,58,49,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,54,48,57,52,49,56,48,53,51,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,51,53,58,53,49,46,51,48,57,56,56,51,55,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,50,48,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,49,54,52,48,51,49,54,52,56,53,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,53,58,51,55,58,53,50,46,48,48,54,56,55,49,52,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,44,99,114,101,97,116,101,116,105,109,101,92,34,44,92,34,105,100,92,34,58,92,34,51,50,54,53,49,54,48,57,52,49,56,48,53,51,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,56,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,50,50,48,49,50,52,57,54,48,53,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,54,58,49,52,58,50,51,46,49,53,49,54,53,53,50,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,53,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,50,50,50,52,48,55,48,57,56,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,54,58,49,53,58,53,50,46,50,57,55,55,48,50,52,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,99,111,117,110,116,40,105,100,41,58,115,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,50,50,50,54,54,55,48,54,54,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,54,58,49,54,58,48,50,46,52,53,50,52,56,51,56,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,99,111,117,110,116,40,49,41,58,115,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,53,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,50,50,51,48,53,51,57,51,51,51,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,54,58,49,54,58,49,55,46,53,54,52,54,54,55,51,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,99,111,117,110,116,40,49,41,58,99,111,117,110,116,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,50,50,51,53,48,48,48,51,56,57,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,54,58,49,54,58,51,52,46,57,57,48,54,50,51,50,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,99,111,117,110,116,40,49,41,58,230,149,176,233,135,143,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,55,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,50,50,51,57,48,54,52,51,56,57,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,54,58,49,54,58,53,48,46,56,54,53,56,49,49,57,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,97,112,105,47,97,80,73,74,83,79,78,47,103,101,116,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,99,111,117,110,116,40,49,41,58,230,157,161,230,149,176,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,56,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,50,57,57,51,49,57,51,55,57,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,55,58,48,53,58,53,54,46,54,56,51,50,51,48,57,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,110,117,108,108,44,34,69,108,97,112,115,101,100,34,58,49,53,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,51,50,54,54,50,50,48,51,53,55,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,55,58,50,51,58,52,51,46,49,57,51,54,55,53,52,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,85,84,34,44,34,82,101,113,117,101,115,116,85,114,108,34,58,34,104,116,116,112,58,47,47,108,111,99,97,108,104,111,115,116,58,53,48,48,53,47,115,119,97,103,103,101,114,47,99,104,101,99,107,85,114,108,34,44,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,82,101,113,117,101,115,116,80,97,114,97,109,34,58,34,123,92,34,83,89,83,76,79,71,79,80,92,34,58,123,92,34,64,99,111,108,117,109,110,92,34,58,92,34,105,100,44,99,114,101,97,116,101,116,105,109,101,92,34,44,92,34,105,100,92,34,58,92,34,51,50,54,53,49,54,48,57,52,49,56,48,53,51,92,34,125,125,34,44,34,69,108,97,112,115,101,100,34,58,49,54,125,125,93,44,34,116,111,116,97,108,34,58,51,55,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,52,32,49,48,58,48,48,58,52,55,34,125]},\"cookie\":[],\"responseTime\":137,\"responseSize\":9324,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":1.5074999928474426,\"wait\":0.32520002126693726,\"dns\":0,\"tcp\":0,\"firstByte\":135.28540003299713,\"download\":1.2343999743461609,\"process\":0.05519998073577881,\"total\":138.40770000219345}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"get\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":195,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\n \\\"[]\\\": {\\n \\\"table1\\\": {\\n \\\"@column\\\": \\\"id,createtime,httpmethod,RequestUrl,actionname,RequestParam,Elapsed\\\",\\n \\\"createtime%\\\": \\\"2024-3-5,2024-3-14\\\",\\n \\\"Elapsed%\\\": \\\"1,20\\\"\\n }\\n }\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/get\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"195\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Thu, 14 Mar 2024 02:00:47 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.45\"},{\"key\":\"Admin.NET\",\"value\":\"Admin.NET\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86398\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-15T02:00:05.6689995Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1710381647691,\"requestStart\":1710381647692,\"offset\":{\"request\":1.5074999928474426,\"socket\":1.8327000141143799,\"response\":137.1181000471115,\"end\":138.35250002145767,\"lookup\":1.8327000141143799,\"connect\":1.8327000141143799,\"done\":138.40770000219345}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":151219333,\"httpApiCaseId\":143272865,\"httpApiName\":\"统一入口\",\"httpApiPath\":\"/api/aPIJSON/get\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"列表查询\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - }, - { - "id": 143191882, - "type": "http", - "path": null, - "name": "分页查询", - "responseId": 405647728, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"[]\": {//列表\r\n \"SYSLOGOP\": {//表名\r\n \"@column\": \"id,createtime\",//只查询两列\r\n \"@order\":\"createtime-\" //-倒序排序\r\n },\r\n \"page\": 1, //分页查询:第1页\r\n \"count\": 3, //每页3条\r\n //\"query\": 1 //查询内容: 0-对象,1-总数,2-数据、总数,默认为2\r\n },\r\n //\"total\": \"\", //总数 默认返回总数,不用传\r\n \r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.bcfe838e-0335-42f2-ae40-05fb07285447\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"bcfe838e-0335-42f2-ae40-05fb07285447\",\"requestIndex\":0,\"httpRequestId\":\"74d59ab7-76bd-4c77-9bcf-714ff5eb470e\"},\"type\":\"http\",\"response\":{\"id\":\"673bc01a-a4df-4514-b2e9-b13172c5eca8\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Tue, 12 Mar 2024 08:29:32 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.45\"},{\"key\":\"Admin.NET\",\"value\":\"Admin.NET\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86398\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-13T08:27:50.0233019Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,91,93,34,58,91,123,34,83,89,83,76,79,71,79,80,34,58,123,34,73,100,34,58,51,50,55,56,53,49,52,51,50,52,49,53,52,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,50,32,49,54,58,50,57,58,50,55,46,56,48,55,57,53,49,52,34,125,125,44,123,34,83,89,83,76,79,71,79,80,34,58,123,34,73,100,34,58,51,50,55,56,53,49,49,56,51,48,53,56,54,49,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,50,32,49,54,58,50,55,58,53,48,46,52,48,50,49,56,34,125,125,44,123,34,83,89,83,76,79,71,79,80,34,58,123,34,73,100,34,58,51,50,55,56,53,49,49,53,55,51,54,51,56,57,44,34,67,114,101,97,116,101,84,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,50,32,49,54,58,50,55,58,52,48,46,51,54,53,57,51,48,54,34,125,125,93,44,34,112,97,103,101,34,58,49,44,34,99,111,117,110,116,34,58,51,44,34,109,97,120,34,58,49,50,49,44,34,116,111,116,97,108,34,58,51,54,49,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,50,32,49,54,58,50,57,58,51,51,34,125]},\"cookie\":[],\"responseTime\":72,\"responseSize\":376,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":1.7229999899864197,\"wait\":0.46160000562667847,\"dns\":0,\"tcp\":0,\"firstByte\":69.22839999198914,\"download\":1.886900007724762,\"process\":0.04899996519088745,\"total\":73.34889996051788}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"get\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":136,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\n \\\"[]\\\": {\\n \\\"SYSLOGOP\\\": {\\n \\\"@column\\\": \\\"id,createtime\\\",\\n \\\"@order\\\": \\\"createtime-\\\"\\n },\\n \\\"page\\\": 1,\\n \\\"count\\\": 3\\n }\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/get\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"136\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Tue, 12 Mar 2024 08:29:32 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.45\"},{\"key\":\"Admin.NET\",\"value\":\"Admin.NET\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86398\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-13T08:27:50.0233019Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1710232173277,\"requestStart\":1710232173279,\"offset\":{\"request\":1.7229999899864197,\"socket\":2.184599995613098,\"response\":71.41299998760223,\"end\":73.299899995327,\"lookup\":2.184599995613098,\"connect\":2.184599995613098,\"done\":73.34889996051788}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":151219333,\"httpApiCaseId\":143191882,\"httpApiName\":\"统一入口\",\"httpApiPath\":\"/api/aPIJSON/get\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"分页查询\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - }, - { - "id": 143312444, - "type": "http", - "path": null, - "name": "查询数量(聚合函数)", - "responseId": 0, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"SYSLOGOP\": {\r\n \"@column\": \"count(1):数量,sum(id):合计\",//支持聚合函数count、sum等, :后跟别名\r\n \"httpmethod\":\"GET\"\r\n }\r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.8cdec2eb-2a6e-4b14-b841-d45980eb6969\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"8cdec2eb-2a6e-4b14-b841-d45980eb6969\",\"requestIndex\":0,\"httpRequestId\":\"b833e53d-ca56-464c-a0f3-bf293186f3c0\"},\"type\":\"http\",\"response\":{\"id\":\"c4a883ba-8b68-4bcf-b155-5300deb9b77e\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Tue, 12 Mar 2024 03:49:08 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.45\"},{\"key\":\"Admin.NET\",\"value\":\"Admin.NET\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86393\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-13T03:46:44.5267221Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,83,89,83,76,79,71,79,80,34,58,123,34,230,149,176,233,135,143,34,58,54,44,34,229,144,136,232,174,161,34,58,49,57,53,56,55,56,50,53,54,53,53,56,55,53,48,125,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,50,32,49,49,58,52,57,58,48,56,34,125]},\"cookie\":[],\"responseTime\":57,\"responseSize\":145,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":2.178399980068207,\"wait\":0.46469998359680176,\"dns\":0,\"tcp\":0,\"firstByte\":54.569000005722046,\"download\":1.8371000289916992,\"process\":0.08829998970031738,\"total\":59.13749998807907}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"get\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":96,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\n \\\"SYSLOGOP\\\": {\\n \\\"@column\\\": \\\"count(1):数量,sum(id):合计\\\",\\n \\\"httpmethod\\\": \\\"GET\\\"\\n }\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/get\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"96\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Tue, 12 Mar 2024 03:49:08 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.45\"},{\"key\":\"Admin.NET\",\"value\":\"Admin.NET\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86393\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-13T03:46:44.5267221Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1710215348896,\"requestStart\":1710215348898,\"offset\":{\"request\":2.178399980068207,\"socket\":2.6430999636650085,\"response\":57.212099969387054,\"end\":59.049199998378754,\"lookup\":2.6430999636650085,\"connect\":2.6430999636650085,\"done\":59.13749998807907}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":151219333,\"httpApiCaseId\":143312444,\"httpApiName\":\"统一入口\",\"httpApiPath\":\"/api/aPIJSON/get\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"查询数量(聚合函数)\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - }, - { - "id": 143871046, - "type": "http", - "path": null, - "name": "关联查询", - "responseId": 0, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "//用于子表补充数据,没有实现join\r\n{\r\n \"[]\": {\r\n //必须先查子表,再循环补充主表数据\r\n \"table3\": {\r\n //\"@column\": \"id\",//必须在此返回后面的关联列\r\n \"text\": \"update3\",\r\n \"@order\": \"id-\", //只能在第一个表排序\r\n },\r\n \"table2\": {\r\n \"id@\": \"/table3/table2id\",\r\n //\"@order\": \"id-\", //这里排序无效\r\n },\r\n \"table1\": {\r\n \"@column\": \"id,httpmethod\",\r\n \"id@\": \"/table2/table1id\",\r\n },\r\n \"table4\": {\r\n \"id@\": \"/table3/table4id\",\r\n },\r\n \"page\": 1,\r\n \"count\": 3\r\n }\r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.59b633e1-8099-48e6-9943-d0e27e50cae7\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"59b633e1-8099-48e6-9943-d0e27e50cae7\",\"requestIndex\":0,\"httpRequestId\":\"a04d8d6c-aad7-4eaa-8fe4-11d3edaf05e7\"},\"type\":\"http\",\"response\":{\"id\":\"1a94a35f-3d89-44ef-8923-0f9c5d54e59d\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Thu, 14 Mar 2024 03:53:26 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.45\"},{\"key\":\"Admin.NET\",\"value\":\"Admin.NET\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86399\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-15T03:53:27.0136472Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,91,93,34,58,91,123,34,116,97,98,108,101,51,34,58,123,34,105,100,34,58,51,51,51,44,34,116,97,98,108,101,50,105,100,34,58,50,51,44,34,116,101,120,116,34,58,34,117,112,100,97,116,101,51,34,44,34,116,97,98,108,101,52,105,100,34,58,52,52,125,44,34,116,97,98,108,101,50,34,58,123,34,105,100,34,58,50,51,44,34,116,101,120,116,34,58,34,110,101,119,103,101,116,34,44,34,116,97,98,108,101,49,105,100,34,58,51,50,54,53,51,50,51,54,56,53,48,55,53,55,44,34,105,115,68,101,108,101,116,101,34,58,48,125,44,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,51,50,51,54,56,53,48,55,53,55,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,68,69,76,69,84,69,34,125,44,34,116,97,98,108,101,52,34,58,123,34,105,100,34,58,52,52,44,34,116,101,120,116,34,58,34,52,52,34,125,125,44,123,34,116,97,98,108,101,51,34,58,123,34,105,100,34,58,51,51,44,34,116,97,98,108,101,50,105,100,34,58,50,51,44,34,116,101,120,116,34,58,34,117,112,100,97,116,101,51,34,44,34,116,97,98,108,101,52,105,100,34,58,52,51,125,44,34,116,97,98,108,101,50,34,58,123,34,105,100,34,58,50,51,44,34,116,101,120,116,34,58,34,110,101,119,103,101,116,34,44,34,116,97,98,108,101,49,105,100,34,58,51,50,54,53,51,50,51,54,56,53,48,55,53,55,44,34,105,115,68,101,108,101,116,101,34,58,48,125,44,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,51,50,51,54,56,53,48,55,53,55,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,68,69,76,69,84,69,34,125,125,44,123,34,116,97,98,108,101,51,34,58,123,34,105,100,34,58,51,50,44,34,116,97,98,108,101,50,105,100,34,58,50,50,44,34,116,101,120,116,34,58,34,117,112,100,97,116,101,51,34,44,34,116,97,98,108,101,52,105,100,34,58,52,50,125,44,34,116,97,98,108,101,50,34,58,123,34,105,100,34,58,50,50,44,34,116,101,120,116,34,58,34,110,101,119,103,101,116,34,44,34,116,97,98,108,101,49,105,100,34,58,51,50,54,53,51,50,51,56,56,48,48,57,54,53,44,34,105,115,68,101,108,101,116,101,34,58,48,125,44,34,116,97,98,108,101,49,34,58,123,34,73,100,34,58,51,50,54,53,51,50,51,56,56,48,48,57,54,53,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,71,69,84,34,125,44,34,116,97,98,108,101,52,34,58,123,34,105,100,34,58,52,50,44,34,116,101,120,116,34,58,34,52,50,34,125,125,93,44,34,112,97,103,101,34,58,49,44,34,99,111,117,110,116,34,58,51,44,34,109,97,120,34,58,50,44,34,116,111,116,97,108,34,58,52,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,52,32,49,49,58,53,51,58,50,55,34,125]},\"cookie\":[],\"responseTime\":590,\"responseSize\":779,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":2.1902999877929688,\"wait\":1.2958000302314758,\"dns\":0.8892999887466431,\"tcp\":0.6733999848365784,\"firstByte\":584.8849999904633,\"download\":1.787600040435791,\"process\":0.033399999141693115,\"total\":591.7548000216484}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"get\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":316,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\n \\\"[]\\\": {\\n \\\"table3\\\": {\\n \\\"text\\\": \\\"update3\\\",\\n \\\"@order\\\": \\\"id-\\\"\\n },\\n \\\"table2\\\": {\\n \\\"id@\\\": \\\"/table3/table2id\\\"\\n },\\n \\\"table1\\\": {\\n \\\"@column\\\": \\\"id,httpmethod\\\",\\n \\\"id@\\\": \\\"/table2/table1id\\\"\\n },\\n \\\"table4\\\": {\\n \\\"id@\\\": \\\"/table3/table4id\\\"\\n },\\n \\\"page\\\": 1,\\n \\\"count\\\": 3\\n }\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/get\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"316\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Thu, 14 Mar 2024 03:53:26 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.45\"},{\"key\":\"Admin.NET\",\"value\":\"Admin.NET\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86399\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-15T03:53:27.0136472Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1710388406828,\"requestStart\":1710388406830,\"offset\":{\"request\":2.1902999877929688,\"socket\":3.4861000180244446,\"lookup\":4.375400006771088,\"connect\":5.048799991607666,\"response\":589.9337999820709,\"end\":591.7214000225067,\"done\":591.7548000216484}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":151219333,\"httpApiCaseId\":143871046,\"httpApiName\":\"统一查询入口\",\"httpApiPath\":\"/api/aPIJSON/get\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"关联查询\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - }, - { - "id": 143975340, - "type": "http", - "path": null, - "name": "group by", - "responseId": 0, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"[]\": {\r\n \"table1\": {\r\n \"@column\": \"actionname,httpmethod,max(id)\",\r\n \"@group\": \"actionname,httpmethod\",\r\n },\r\n }\r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.00314312-a9fe-4ad2-859c-b7555f9a0d3e\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"00314312-a9fe-4ad2-859c-b7555f9a0d3e\",\"requestIndex\":0,\"httpRequestId\":\"e6ba19a4-e4f9-4412-9b45-f48e81bb7277\"},\"type\":\"http\",\"response\":{\"id\":\"6134deb2-55f4-419b-9387-38ae669f137f\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Fri, 08 Mar 2024 08:23:12 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86397\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-09T08:14:42.5201051Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,91,93,34,58,91,123,34,116,97,98,108,101,49,34,58,123,34,65,99,116,105,111,110,78,97,109,101,34,58,34,80,111,115,116,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,109,97,120,40,105,100,41,34,58,51,50,53,50,49,51,57,56,52,53,52,51,52,49,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,109,97,120,40,105,100,41,34,58,51,50,54,53,51,50,51,56,56,48,48,57,54,53,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,65,99,116,105,111,110,78,97,109,101,34,58,34,81,117,101,114,121,66,121,84,97,98,108,101,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,109,97,120,40,105,100,41,34,58,51,50,54,52,55,52,52,57,50,50,54,51,48,57,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,65,99,116,105,111,110,78,97,109,101,34,58,34,82,101,109,111,118,101,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,109,97,120,40,105,100,41,34,58,51,50,54,53,51,49,53,48,50,48,55,53,53,55,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,109,97,120,40,105,100,41,34,58,51,50,54,53,51,50,54,54,50,50,48,51,53,55,125,125,44,123,34,116,97,98,108,101,49,34,58,123,34,65,99,116,105,111,110,78,97,109,101,34,58,34,83,119,97,103,103,101,114,83,117,98,109,105,116,85,114,108,34,44,34,72,116,116,112,77,101,116,104,111,100,34,58,34,80,79,83,84,34,44,34,109,97,120,40,105,100,41,34,58,51,50,54,53,48,52,50,57,50,50,50,50,49,51,125,125,93,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,56,32,49,54,58,50,51,58,49,51,34,125]},\"cookie\":[],\"responseTime\":8399,\"responseSize\":605,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":2.243699997663498,\"wait\":0.2954000011086464,\"dns\":0,\"tcp\":0,\"firstByte\":8396.081299997866,\"download\":1.9274000003933907,\"process\":0.052000001072883606,\"total\":8400.599799998105}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"get\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":162,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\r\\n \\\"[]\\\": {\\r\\n \\\"table1\\\": {\\r\\n \\\"@column\\\": \\\"actionname,httpmethod,max(id)\\\",\\r\\n \\\"@group\\\": \\\"actionname,httpmethod\\\",\\r\\n },\\r\\n }\\r\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/get\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"162\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Fri, 08 Mar 2024 08:23:12 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86397\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-09T08:14:42.5201051Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1709886184664,\"requestStart\":1709886184667,\"offset\":{\"request\":2.243699997663498,\"socket\":2.5390999987721443,\"response\":8398.620399996638,\"end\":8400.547799997032,\"lookup\":2.5390999987721443,\"connect\":2.5390999987721443,\"done\":8400.599799998105}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":151219333,\"httpApiCaseId\":143975340,\"httpApiName\":\"统一入口\",\"httpApiPath\":\"/api/aPIJSON/get\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"group by\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - } - ], - "mocks": [ - ], - "customApiFields": "{}", - "advancedSettings": { - "disabledSystemHeaders": { - } - }, - "mockScript": { - }, - "codeSamples": [ - ], - "commonResponseStatus": { - }, - "responseChildren": [ - "BLANK.405647728" - ], - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - } - }, - { - "name": "新增", - "api": { - "id": "152848473", - "method": "post", - "path": "/api/aPIJSON/post", - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "auth": { - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "responses": [ - { - "id": "408753512", - "name": "Success", - "code": 200, - "contentType": "json", - "jsonSchema": { - "$ref": "#/definitions/84275190" - } - } - ], - "responseExamples": [ - ], - "requestBody": { - "type": "application/json", - "parameters": [ - ], - "jsonSchema": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/84275307" - }, - "x-apifox-orders": [ - ] - }, - "example": "{\r\n \"table2\": \r\n {\r\n //\"id\": 236, //如果传id,就用前端id,如果没有,就后端生成\r\n \"text\": \"newget\"\r\n }\r\n\r\n}" - }, - "description": "", - "tags": [ - "aPIJSON" - ], - "status": "released", - "serverId": "", - "operationId": "api-aPIJSON-post-Post", - "sourceUrl": "", - "ordering": 12, - "cases": [ - { - "id": 144371019, - "type": "http", - "path": null, - "name": "单条", - "responseId": 0, - "parameters": { - "query": [ - ], - "header": [ - ], - "cookie": [ - ], - "path": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"table2\": \r\n {\r\n //\"id\": 236, //如果传id,就用前端id,如果没有,就后端生成\r\n \"text\": \"newget\"\r\n }\r\n\r\n}", - "type": "application/json" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.04906a0f-2a35-491b-8335-13c224a6e496\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"04906a0f-2a35-491b-8335-13c224a6e496\",\"requestIndex\":0,\"httpRequestId\":\"8b54192a-17b5-4a20-b7c0-115533d436f3\"},\"type\":\"http\",\"response\":{\"id\":\"000965cc-02df-4aae-8b23-18368ab61ecb\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Mon, 11 Mar 2024 06:58:40 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86395\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-12T06:48:49.8348531Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,116,97,98,108,101,50,34,58,91,51,50,55,54,49,54,51,48,53,50,52,57,57,55,44,50,51,56,93,44,34,116,97,98,108,101,51,34,58,51,50,55,54,49,54,51,48,53,50,56,48,54,57,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,49,32,49,52,58,53,56,58,52,49,34,125]},\"cookie\":[],\"responseTime\":118,\"responseSize\":150,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":2.154699981212616,\"wait\":0.394599974155426,\"dns\":0,\"tcp\":0,\"firstByte\":114.57359999418259,\"download\":2.3081000447273254,\"process\":0.08730000257492065,\"total\":119.51829999685287}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"post\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":171,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\n \\\"table2\\\": [\\n {\\n \\\"text\\\": \\\"newget\\\"\\n },\\n {\\n \\\"id\\\": 238,\\n \\\"text\\\": \\\"newget2\\\"\\n }\\n ],\\n \\\"table3\\\": {\\n \\\"table2id\\\": 238,\\n \\\"text\\\": \\\"newget\\\"\\n }\\n}\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/post\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"171\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Mon, 11 Mar 2024 06:58:40 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86395\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-12T06:48:49.8348531Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1710140321198,\"requestStart\":1710140321200,\"offset\":{\"request\":2.154699981212616,\"socket\":2.549299955368042,\"response\":117.12289994955063,\"end\":119.43099999427795,\"lookup\":2.549299955368042,\"connect\":2.549299955368042,\"done\":119.51829999685287}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":152848473,\"httpApiName\":\"新增\",\"httpApiPath\":\"/api/aPIJSON/post\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"成功\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - }, - { - "id": 144370602, - "type": "http", - "path": null, - "name": "多表批量", - "responseId": 0, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"table2\": [\r\n {\r\n //\"id\": 236, //如果传id,就用前端id,如果没有,就后端生成\r\n \"text\": \"newget\"\r\n },\r\n {\r\n \"id\": 240,\r\n \"text\": \"newget2\"\r\n }\r\n ],\r\n \"table3\":{\r\n \"table2id\":240,\r\n \"text\":\"newget\"\r\n }\r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.89a3b724-e244-47bd-8332-b18d13b87f39\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"89a3b724-e244-47bd-8332-b18d13b87f39\",\"requestIndex\":0,\"httpRequestId\":\"c4ff5552-4d6b-4816-bac7-951f9acbd466\"},\"type\":\"http\",\"response\":{\"id\":\"a2e99ccb-e877-4151-9d9e-157c49c50e65\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Mon, 11 Mar 2024 07:32:24 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86398\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-12T07:30:34.5282454Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,116,97,98,108,101,50,34,58,123,34,105,100,34,58,91,51,50,55,54,50,49,52,56,54,49,48,54,50,57,44,50,52,48,93,44,34,99,111,117,110,116,34,58,50,125,44,34,116,97,98,108,101,51,34,58,123,34,105,100,34,58,51,50,55,54,50,49,52,56,54,49,55,53,52,49,125,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,49,32,49,53,58,51,50,58,50,53,34,125]},\"cookie\":[],\"responseTime\":168,\"responseSize\":174,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":1.51419997215271,\"wait\":0.2290000319480896,\"dns\":0,\"tcp\":0,\"firstByte\":165.6187999844551,\"download\":1.2360000014305115,\"process\":0.05760002136230469,\"total\":168.65560001134872}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"post\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":171,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\n \\\"table2\\\": [\\n {\\n \\\"text\\\": \\\"newget\\\"\\n },\\n {\\n \\\"id\\\": 240,\\n \\\"text\\\": \\\"newget2\\\"\\n }\\n ],\\n \\\"table3\\\": {\\n \\\"table2id\\\": 240,\\n \\\"text\\\": \\\"newget\\\"\\n }\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/post\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"171\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Mon, 11 Mar 2024 07:32:24 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86398\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-12T07:30:34.5282454Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1710142344933,\"requestStart\":1710142344934,\"offset\":{\"request\":1.51419997215271,\"socket\":1.7432000041007996,\"response\":167.3619999885559,\"end\":168.59799998998642,\"lookup\":1.7432000041007996,\"connect\":1.7432000041007996,\"done\":168.65560001134872}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":152848473,\"httpApiCaseId\":144370602,\"httpApiName\":\"新增\",\"httpApiPath\":\"/api/aPIJSON/post\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"多表批量\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - } - ], - "mocks": [ - ], - "customApiFields": "{}", - "advancedSettings": { - "disabledSystemHeaders": { - } - }, - "mockScript": { - }, - "codeSamples": [ - ], - "commonResponseStatus": { - }, - "responseChildren": [ - "BLANK.408753512" - ], - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - } - }, - { - "name": "修改", - "api": { - "id": "152848474", - "method": "post", - "path": "/api/aPIJSON/put", - "parameters": { - "path": [ - ], - "query": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "auth": { - }, - "commonParameters": { - }, - "responses": [ - { - "id": "408753513", - "name": "Success", - "code": 200, - "contentType": "json", - "jsonSchema": { - "$ref": "#/definitions/84275190" - } - } - ], - "responseExamples": [ - ], - "requestBody": { - "type": "application/json", - "parameters": [ - ], - "jsonSchema": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/84275307" - }, - "x-apifox-orders": [ - ] - }, - "example": "" - }, - "description": "", - "tags": [ - "aPIJSON" - ], - "status": "released", - "serverId": "", - "operationId": "api-aPIJSON-put-Post", - "sourceUrl": "", - "ordering": 18, - "cases": [ - { - "id": 144398604, - "type": "http", - "path": null, - "name": "通过id单条更新", - "responseId": 0, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"table3\": {\r\n \"id\": 32762120351813,\r\n \"text\": \"edit\",\r\n \"table2id\":255\r\n }\r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.3c2d26df-ff36-4408-84d1-ba86a03a15d9\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"3c2d26df-ff36-4408-84d1-ba86a03a15d9\",\"requestIndex\":0,\"httpRequestId\":\"01efc573-4df9-4ee4-8f19-329b479d8f83\"},\"type\":\"http\",\"response\":{\"id\":\"c0132dd1-a39d-491a-a497-7a91230bfbc7\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Mon, 11 Mar 2024 08:24:50 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86399\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-12T08:24:51.3365034Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,116,97,98,108,101,51,34,58,123,34,99,111,100,101,34,58,50,48,48,44,34,109,115,103,34,58,34,115,117,99,99,101,115,115,34,44,34,105,100,34,58,34,51,50,55,54,50,49,50,48,51,53,49,56,49,51,34,125,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,49,32,49,54,58,50,52,58,53,49,34,125]},\"cookie\":[],\"responseTime\":626,\"responseSize\":156,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":2.3127999901771545,\"wait\":1.4280999898910522,\"dns\":0.35510003566741943,\"tcp\":0.7379999756813049,\"firstByte\":621.6582000255585,\"download\":1.3226999640464783,\"process\":0.029600024223327637,\"total\":627.8445000052452}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"put\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":108,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\r\\n \\\"table3\\\": {\\r\\n \\\"id\\\": 32762120351813,\\r\\n \\\"text\\\": \\\"edit\\\",\\r\\n \\\"table2id\\\":255\\r\\n }\\r\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/put\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"108\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Mon, 11 Mar 2024 08:24:50 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86399\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-12T08:24:51.3365034Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1710145491156,\"requestStart\":1710145491158,\"offset\":{\"request\":2.3127999901771545,\"socket\":3.740899980068207,\"lookup\":4.096000015735626,\"connect\":4.833999991416931,\"response\":626.4922000169754,\"end\":627.8148999810219,\"done\":627.8445000052452}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":152848474,\"httpApiCaseId\":144398604,\"httpApiName\":\"修改\",\"httpApiPath\":\"/api/aPIJSON/put\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"单条更新\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - }, - { - "id": 144399593, - "type": "http", - "path": null, - "name": "多表多id批量更新", - "responseId": 0, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"table3\": [\r\n {\r\n \"id\": [31,32,33],\r\n \"text\": \"update3\"\r\n },\r\n {\r\n \"id\": 32762148617541,\r\n \"text\": \"update2\"\r\n }\r\n ],\r\n \"table2\": {\r\n \"id\": 32761658134341,\r\n \"text\": \"update\"\r\n }\r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.a347f44c-82a5-437f-afef-bef75f5f55f4\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"a347f44c-82a5-437f-afef-bef75f5f55f4\",\"requestIndex\":0,\"httpRequestId\":\"1ee88481-8f7b-480f-adf0-3a74acff8426\"},\"type\":\"http\",\"response\":{\"id\":\"6d9b1b3d-167c-4fe8-832e-f336630e6e64\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Mon, 11 Mar 2024 09:38:05 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86397\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-12T09:36:21.4486506Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,116,97,98,108,101,51,34,58,123,34,99,111,117,110,116,34,58,52,125,44,34,116,97,98,108,101,50,34,58,123,34,99,111,117,110,116,34,58,49,125,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,49,32,49,55,58,51,56,58,48,53,34,125]},\"cookie\":[],\"responseTime\":135,\"responseSize\":138,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":1.440500020980835,\"wait\":0.2959999442100525,\"dns\":0,\"tcp\":0,\"firstByte\":132.63910001516342,\"download\":1.2211000323295593,\"process\":0.04819995164871216,\"total\":135.64489996433258}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"put\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":283,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\r\\n \\\"table3\\\": [\\r\\n {\\r\\n \\\"id\\\": [31,32,33],\\r\\n \\\"text\\\": \\\"update3\\\"\\r\\n },\\r\\n {\\r\\n \\\"id\\\": 32762148617541,\\r\\n \\\"text\\\": \\\"update2\\\"\\r\\n }\\r\\n ],\\r\\n \\\"table2\\\": {\\r\\n \\\"id\\\": 32761658134341,\\r\\n \\\"text\\\": \\\"update\\\"\\r\\n }\\r\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/put\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"283\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Mon, 11 Mar 2024 09:38:05 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86397\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-12T09:36:21.4486506Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1710149885351,\"requestStart\":1710149885352,\"offset\":{\"request\":1.440500020980835,\"socket\":1.7364999651908875,\"response\":134.3755999803543,\"end\":135.59670001268387,\"lookup\":1.7364999651908875,\"connect\":1.7364999651908875,\"done\":135.64489996433258}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":152848474,\"httpApiCaseId\":144399593,\"httpApiName\":\"修改\",\"httpApiPath\":\"/api/aPIJSON/put\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"多表更新\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - } - ], - "mocks": [ - ], - "customApiFields": "{}", - "advancedSettings": { - "disabledSystemHeaders": { - } - }, - "mockScript": { - }, - "codeSamples": [ - ], - "commonResponseStatus": { - }, - "responseChildren": [ - ], - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - } - }, - { - "name": "删除", - "api": { - "id": "152848475", - "method": "post", - "path": "/api/aPIJSON/delete", - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "auth": { - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "responses": [ - { - "id": "408753514", - "name": "Success", - "code": 200, - "contentType": "json", - "jsonSchema": { - "$ref": "#/definitions/84275190" - } - } - ], - "responseExamples": [ - ], - "requestBody": { - "type": "application/json", - "parameters": [ - ], - "jsonSchema": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/84275307" - }, - "x-apifox-orders": [ - ] - }, - "example": "{\r\n \"table1\": {\r\n \"id\": [32520112744261,32520179315781,32520200693573],\r\n }\r\n}" - }, - "description": "", - "tags": [ - "aPIJSON" - ], - "status": "released", - "serverId": "", - "operationId": "api-aPIJSON-delete-Post", - "sourceUrl": "", - "ordering": 24, - "cases": [ - { - "id": 143343716, - "type": "http", - "path": null, - "name": "删除单条数据", - "responseId": 0, - "parameters": { - "query": [ - ], - "header": [ - ], - "cookie": [ - ], - "path": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"table1\": {\r\n \"id\": \"32520494044741\",\r\n }\r\n}", - "type": "application/json" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.26698a36-85d0-4cbb-b880-abbb4872dddf\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"26698a36-85d0-4cbb-b880-abbb4872dddf\",\"requestIndex\":0,\"httpRequestId\":\"e91c2ef7-03a4-41fa-b114-138973559bec\"},\"type\":\"http\",\"response\":{\"id\":\"a6999ac7-bec5-4b65-a905-42dbe74794e7\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Wed, 06 Mar 2024 09:16:09 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86398\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-07T09:15:13.4609976Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,116,97,98,108,101,49,34,58,123,34,99,111,100,101,34,58,50,48,48,44,34,109,115,103,34,58,34,115,117,99,99,101,115,115,34,44,34,105,100,34,58,34,51,50,53,50,48,52,57,52,48,52,52,55,52,49,34,125,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,54,32,49,55,58,49,54,58,48,57,34,125]},\"cookie\":[],\"responseTime\":111,\"responseSize\":156,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":1.5057999789714813,\"wait\":0.2891000211238861,\"dns\":0,\"tcp\":0,\"firstByte\":109.1957999765873,\"download\":1.360700011253357,\"process\":0.034900009632110596,\"total\":112.38629999756813}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"delete\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTE5NzE1MiwibmJmIjoxNzA5MTk3MTUyLCJleHAiOjE3MDk4MDE5NTIsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.96Y2rBegXqiYjuXcXeVyuXV75Cmzu8FpILylDcougt8\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":61,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\r\\n \\\"table1\\\": {\\r\\n \\\"id\\\": \\\"32520494044741\\\",\\r\\n }\\r\\n}\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTE5NzE1MiwibmJmIjoxNzA5MTk3MTUyLCJleHAiOjE3MDk4MDE5NTIsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.96Y2rBegXqiYjuXcXeVyuXV75Cmzu8FpILylDcougt8\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/delete\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTE5NzE1MiwibmJmIjoxNzA5MTk3MTUyLCJleHAiOjE3MDk4MDE5NTIsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.96Y2rBegXqiYjuXcXeVyuXV75Cmzu8FpILylDcougt8\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"61\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Wed, 06 Mar 2024 09:16:09 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86398\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-07T09:15:13.4609976Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1709716569879,\"requestStart\":1709716569880,\"offset\":{\"request\":1.5057999789714813,\"socket\":1.7949000000953674,\"response\":110.99069997668266,\"end\":112.35139998793602,\"lookup\":1.7949000000953674,\"connect\":1.7949000000953674,\"done\":112.38629999756813}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":152848475,\"httpApiName\":\"删除\",\"httpApiPath\":\"/api/aPIJSON/delete\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"成功\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - }, - { - "id": 143368262, - "type": "http", - "path": null, - "name": "批量删除id", - "responseId": 0, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"table3\": {\r\n \"id\": [\r\n 32761630528069,\r\n 239\r\n ]\r\n }\r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.c39182fc-fc2f-4357-b3b7-32e41ef1fb57\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"c39182fc-fc2f-4357-b3b7-32e41ef1fb57\",\"requestIndex\":0,\"httpRequestId\":\"7443b4a1-f762-4a24-8dd2-ad33ce1c8da7\"},\"type\":\"http\",\"response\":{\"id\":\"43956c21-adae-41c7-a722-c856c7c7c0aa\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Mon, 11 Mar 2024 07:34:26 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86396\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-12T07:26:16.5966009Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,116,97,98,108,101,51,34,58,123,34,105,100,34,58,91,51,50,55,54,49,54,51,48,53,50,56,48,54,57,44,50,51,57,93,44,34,99,111,117,110,116,34,58,49,125,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,49,49,32,49,53,58,51,52,58,50,55,34,125]},\"cookie\":[],\"responseTime\":158,\"responseSize\":143,\"type\":\"http\",\"tempFilePath\":\"\",\"timingPhases\":{\"prepare\":2.1498000025749207,\"wait\":0.36399996280670166,\"dns\":0,\"tcp\":0,\"firstByte\":156.0023000240326,\"download\":1.451200008392334,\"process\":0.04890000820159912,\"total\":160.01620000600815}},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"delete\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":55,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\r\\n \\\"table3\\\": {\\r\\n\\\"id\\\":[32761630528069,239]\\r\\n }\\r\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/delete\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"55\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Mon, 11 Mar 2024 07:34:26 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86396\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-12T07:26:16.5966009Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1710142466906,\"requestStart\":1710142466908,\"offset\":{\"request\":2.1498000025749207,\"socket\":2.5137999653816223,\"response\":158.51609998941422,\"end\":159.96729999780655,\"lookup\":2.5137999653816223,\"connect\":2.5137999653816223,\"done\":160.01620000600815}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":152848475,\"httpApiCaseId\":143368262,\"httpApiName\":\"删除\",\"httpApiPath\":\"/api/aPIJSON/delete\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"批量删除id\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - }, - { - "id": 143543753, - "type": "http", - "path": null, - "name": "批量删除(匹配条件)", - "responseId": 0, - "parameters": { - "query": [ - ], - "path": [ - ], - "cookie": [ - ], - "header": [ - ] - }, - "commonParameters": { - "query": [ - ], - "body": [ - ], - "header": [ - ], - "cookie": [ - ] - }, - "requestBody": { - "parameters": [ - ], - "data": "{\r\n \"table1\": {\r\n \"httpmethod\": [\"GET\",\"POST\"],\r\n \"ThreadId\": [37,39],\"Actionname\":\"SwaggerCheckUrl\",\"loglevel\":2.5,\"isdelete\":false\r\n }\r\n}", - "generateMode": "normal" - }, - "auth": { - }, - "advancedSettings": { - "disabledSystemHeaders": { - }, - "isDefaultUrlEncoding": 2, - "disableUrlEncoding": false - }, - "requestResult": "{\"id\":\"temp.44a9ebb3-1e3d-4049-936a-a412fb468f00\",\"cursor\":{\"position\":0,\"iteration\":0,\"length\":1,\"cycles\":1,\"empty\":false,\"eof\":false,\"bof\":true,\"cr\":false,\"ref\":\"44a9ebb3-1e3d-4049-936a-a412fb468f00\",\"requestIndex\":0,\"httpRequestId\":\"2365b41d-b930-4f24-85d5-12b1198e2c4d\"},\"type\":\"http\",\"response\":{\"id\":\"097a32a0-1cbe-410f-979f-e1170b268276\",\"status\":\"OK\",\"code\":200,\"header\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Thu, 07 Mar 2024 10:10:46 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86399\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-08T10:10:47.0961001Z\"}],\"trailer\":[],\"stream\":{\"type\":\"Buffer\",\"data\":[123,34,99,111,100,101,34,58,50,48,48,44,34,116,121,112,101,34,58,34,115,117,99,99,101,115,115,34,44,34,109,101,115,115,97,103,101,34,58,34,34,44,34,114,101,115,117,108,116,34,58,123,34,116,97,98,108,101,49,34,58,123,34,104,116,116,112,109,101,116,104,111,100,34,58,91,34,71,69,84,34,44,34,80,79,83,84,34,93,44,34,84,104,114,101,97,100,73,100,34,58,91,51,55,44,51,57,93,44,34,65,99,116,105,111,110,110,97,109,101,34,58,34,83,119,97,103,103,101,114,67,104,101,99,107,85,114,108,34,44,34,108,111,103,108,101,118,101,108,34,58,50,46,53,44,34,105,115,100,101,108,101,116,101,34,58,102,97,108,115,101,44,34,99,111,117,110,116,34,58,48,125,125,44,34,101,120,116,114,97,115,34,58,110,117,108,108,44,34,116,105,109,101,34,58,34,50,48,50,52,45,48,51,45,48,55,32,49,56,58,49,48,58,52,55,34,125]},\"cookie\":[],\"responseTime\":602,\"responseSize\":227,\"type\":\"http\",\"tempFilePath\":\"\"},\"request\":{\"url\":{\"protocol\":\"http\",\"port\":\"5005\",\"path\":[\"api\",\"aPIJSON\",\"delete\"],\"host\":[\"localhost\"],\"query\":[],\"variable\":[]},\"header\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"system\":true},{\"key\":\"Accept\",\"value\":\"*/*\",\"system\":true},{\"key\":\"Host\",\"value\":\"localhost:5005\",\"system\":true},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\",\"system\":true},{\"key\":\"Connection\",\"value\":\"keep-alive\",\"system\":true},{\"key\":\"Content-Length\",\"value\":159,\"system\":true}],\"method\":\"POST\",\"baseUrl\":\"http://localhost:5005\",\"body\":{\"mode\":\"raw\",\"raw\":\"{\\r\\n \\\"table1\\\": {\\r\\n \\\"httpmethod\\\": [\\\"GET\\\",\\\"POST\\\"],\\r\\n \\\"ThreadId\\\": [37,39],\\\"Actionname\\\":\\\"SwaggerCheckUrl\\\",\\\"loglevel\\\":2.5,\\\"isdelete\\\":false\\r\\n }\\r\\n}\",\"generateMode\":\"normal\",\"type\":\"application/json\"},\"auth\":{\"type\":\"bearer\",\"bearer\":[{\"type\":\"any\",\"value\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\",\"key\":\"token\"}]},\"type\":\"http\"},\"history\":{\"execution\":{\"verbose\":false,\"sessions\":{},\"data\":[{\"request\":{\"method\":\"POST\",\"href\":\"http://localhost:5005/api/aPIJSON/delete\",\"headers\":[{\"key\":\"User-Agent\",\"value\":\"Apifox/1.0.0 (https://apifox.com)\"},{\"key\":\"Content-Type\",\"value\":\"application/json\"},{\"key\":\"Authorization\",\"value\":\"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec\"},{\"key\":\"Accept\",\"value\":\"*/*\"},{\"key\":\"Host\",\"value\":\"localhost:5005\"},{\"key\":\"Accept-Encoding\",\"value\":\"gzip, deflate, br\"},{\"key\":\"Connection\",\"value\":\"keep-alive\"},{\"key\":\"Content-Length\",\"value\":\"159\"}],\"httpVersion\":\"1.1\"},\"response\":{\"statusCode\":200,\"headers\":[{\"key\":\"Content-Type\",\"value\":\"application/json; charset=utf-8\"},{\"key\":\"Date\",\"value\":\"Thu, 07 Mar 2024 10:10:46 GMT\"},{\"key\":\"Server\",\"value\":\"Kestrel\"},{\"key\":\"Content-Language\",\"value\":\"zh-CN\"},{\"key\":\"Transfer-Encoding\",\"value\":\"chunked\"},{\"key\":\"environment\",\"value\":\"Development\"},{\"key\":\"Furion\",\"value\":\"4.9.1.32\"},{\"key\":\"X-Rate-Limit-Limit\",\"value\":\"1d\"},{\"key\":\"X-Rate-Limit-Remaining\",\"value\":\"86399\"},{\"key\":\"X-Rate-Limit-Reset\",\"value\":\"2024-03-08T10:10:47.0961001Z\"}],\"httpVersion\":\"1.1\"},\"timings\":{\"start\":1709806246909,\"requestStart\":1709806246912,\"offset\":{\"request\":2.155799984931946,\"socket\":3.6095999479293823,\"lookup\":3.9983999729156494,\"connect\":4.8549999594688416,\"response\":602.0516999959946,\"end\":603.2913999557495,\"done\":603.3172999620438}}}]}},\"responseValidation\":{},\"passed\":true,\"metaInfo\":{\"httpApiId\":152848475,\"httpApiCaseId\":143543753,\"httpApiName\":\"删除\",\"httpApiPath\":\"/api/aPIJSON/delete\",\"httpApiMethod\":\"post\",\"httpApiCaseName\":\"批量删除2\"}}", - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - } - ], - "mocks": [ - ], - "customApiFields": "{}", - "advancedSettings": { - "disabledSystemHeaders": { - } - }, - "mockScript": { - }, - "codeSamples": [ - ], - "commonResponseStatus": { - }, - "responseChildren": [ - "BLANK.408753514" - ], - "preProcessors": [ - ], - "postProcessors": [ - ], - "inheritPostProcessors": { - }, - "inheritPreProcessors": { - } - } - } - ] - } - ] - } - ], - "socketCollection": [ - ], - "docCollection": [ - ], - "schemaCollection": [ - { - "name": "根目录", - "items": [ - { - "name": "Schemas", - "items": [ - { - "name": "AccountTypeEnum", - "displayName": "", - "id": "#/definitions/84275167", - "description": "账号类型枚举
 会员 Member = 666
 普通账号 NormalUser = 777
 系统管理员 SysAdmin = 888
 超级管理员 SuperAdmin = 999
", - "schema": { - "jsonSchema": { - "enum": [ - 666, - 777, - 888, - 999 - ], - "type": "integer", - "description": "账号类型枚举
 会员 Member = 666
 普通账号 NormalUser = 777
 系统管理员 SysAdmin = 888
 超级管理员 SuperAdmin = 999
", - "format": "int32" - } - } - }, - { - "name": "AddCodeGenInput", - "displayName": "", - "id": "#/definitions/84275168", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "authorName", - "busName", - "generateType", - "menuPid", - "nameSpace", - "tableName" - ], - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "className": { - "type": [ - "string", - "null" - ], - "description": "类名" - }, - "tablePrefix": { - "type": [ - "string", - "null" - ], - "description": "是否移除表前缀" - }, - "configId": { - "type": [ - "string", - "null" - ], - "description": "库定位器名" - }, - "dbName": { - "type": [ - "string", - "null" - ], - "description": "数据库名(保留字段)" - }, - "dbType": { - "type": [ - "string", - "null" - ], - "description": "数据库类型" - }, - "connectionString": { - "type": [ - "string", - "null" - ], - "description": "数据库链接" - }, - "tableComment": { - "type": [ - "string", - "null" - ], - "description": "功能名(数据库表名称)" - }, - "menuApplication": { - "type": [ - "string", - "null" - ], - "description": "菜单应用分类(应用编码)" - }, - "printType": { - "type": [ - "string", - "null" - ], - "description": "支持打印类型" - }, - "printName": { - "type": [ - "string", - "null" - ], - "description": "打印模版名称" - }, - "tableName": { - "minLength": 1, - "type": "string", - "description": "数据库表名" - }, - "busName": { - "minLength": 1, - "type": "string", - "description": "业务名(业务代码包名称)" - }, - "nameSpace": { - "minLength": 1, - "type": "string", - "description": "命名空间" - }, - "authorName": { - "minLength": 1, - "type": "string", - "description": "作者姓名" - }, - "generateType": { - "minLength": 1, - "type": "string", - "description": "生成方式" - }, - "menuPid": { - "type": "integer", - "description": "菜单父级", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "className", - "tablePrefix", - "configId", - "dbName", - "dbType", - "connectionString", - "tableComment", - "menuApplication", - "printType", - "printName", - "tableName", - "busName", - "nameSpace", - "authorName", - "generateType", - "menuPid" - ] - } - } - }, - { - "name": "AddConfigInput", - "displayName": "", - "id": "#/definitions/84275169", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "value": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "属性值" - }, - "sysFlag": { - "$ref": "#/definitions/84275444" - }, - "groupCode": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "分组编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "name", - "code", - "value", - "sysFlag", - "groupCode", - "orderNo", - "remark" - ] - } - } - }, - { - "name": "AddDictDataInput", - "displayName": "", - "id": "#/definitions/84275170", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "code", - "value" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "dictTypeId": { - "type": "integer", - "description": "字典类型Id", - "format": "int64" - }, - "value": { - "maxLength": 128, - "minLength": 1, - "type": "string", - "description": "值" - }, - "code": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "编码" - }, - "tagType": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "显示样式-标签颜色" - }, - "styleSetting": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "显示样式-Style(控制显示样式)" - }, - "classSetting": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "显示样式-Class(控制显示样式)" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 2048, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "extData": { - "type": [ - "string", - "null" - ], - "description": "拓展数据(保存业务功能的配置项)" - }, - "status": { - "$ref": "#/definitions/84275375" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "dictTypeId", - "value", - "code", - "tagType", - "styleSetting", - "classSetting", - "orderNo", - "remark", - "extData", - "status" - ] - } - } - }, - { - "name": "AddDictTypeInput", - "displayName": "", - "id": "#/definitions/84275171", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "code", - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "code": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275379" - }, - "description": "字典值集合" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "name", - "code", - "orderNo", - "remark", - "status", - "children" - ] - } - } - }, - { - "name": "AddJobDetailInput", - "displayName": "", - "id": "#/definitions/84275172", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "jobId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "groupName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "组名称" - }, - "jobType": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "作业类型FullName" - }, - "assemblyName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "程序集Name" - }, - "description": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "描述信息" - }, - "concurrent": { - "type": "boolean", - "description": "是否并行执行" - }, - "includeAnnotations": { - "type": "boolean", - "description": "是否扫描特性触发器" - }, - "properties": { - "type": [ - "string", - "null" - ], - "description": "额外数据" - }, - "updatedTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createType": { - "$ref": "#/definitions/84275308" - }, - "scriptCode": { - "type": [ - "string", - "null" - ], - "description": "脚本代码" - }, - "jobId": { - "minLength": 2, - "type": "string", - "description": "作业Id" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "groupName", - "jobType", - "assemblyName", - "description", - "concurrent", - "includeAnnotations", - "properties", - "updatedTime", - "createType", - "scriptCode", - "jobId" - ] - } - } - }, - { - "name": "AddJobTriggerInput", - "displayName": "", - "id": "#/definitions/84275173", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "jobId", - "triggerId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "triggerType": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "触发器类型FullName" - }, - "assemblyName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "程序集Name" - }, - "args": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "参数" - }, - "description": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "描述信息" - }, - "status": { - "$ref": "#/definitions/84275411" - }, - "startTime": { - "type": [ - "string", - "null" - ], - "description": "起始时间", - "format": "date-time" - }, - "endTime": { - "type": [ - "string", - "null" - ], - "description": "结束时间", - "format": "date-time" - }, - "lastRunTime": { - "type": [ - "string", - "null" - ], - "description": "最近运行时间", - "format": "date-time" - }, - "nextRunTime": { - "type": [ - "string", - "null" - ], - "description": "下一次运行时间", - "format": "date-time" - }, - "numberOfRuns": { - "type": "integer", - "description": "触发次数", - "format": "int64" - }, - "maxNumberOfRuns": { - "type": "integer", - "description": "最大触发次数(0:不限制,n:N次)", - "format": "int64" - }, - "numberOfErrors": { - "type": "integer", - "description": "出错次数", - "format": "int64" - }, - "maxNumberOfErrors": { - "type": "integer", - "description": "最大出错次数(0:不限制,n:N次)", - "format": "int64" - }, - "numRetries": { - "type": "integer", - "description": "重试次数", - "format": "int32" - }, - "retryTimeout": { - "type": "integer", - "description": "重试间隔时间(ms)", - "format": "int32" - }, - "startNow": { - "type": "boolean", - "description": "是否立即启动" - }, - "runOnStart": { - "type": "boolean", - "description": "是否启动时执行一次" - }, - "resetOnlyOnce": { - "type": "boolean", - "description": "是否在启动时重置最大触发次数等于一次的作业" - }, - "updatedTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "jobId": { - "minLength": 2, - "type": "string", - "description": "作业Id" - }, - "triggerId": { - "minLength": 2, - "type": "string", - "description": "触发器Id" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "triggerType", - "assemblyName", - "args", - "description", - "status", - "startTime", - "endTime", - "lastRunTime", - "nextRunTime", - "numberOfRuns", - "maxNumberOfRuns", - "numberOfErrors", - "maxNumberOfErrors", - "numRetries", - "retryTimeout", - "startNow", - "runOnStart", - "resetOnlyOnce", - "updatedTime", - "jobId", - "triggerId" - ] - } - } - }, - { - "name": "AddMenuInput", - "displayName": "", - "id": "#/definitions/84275174", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "title" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "pid": { - "type": "integer", - "description": "父Id", - "format": "int64" - }, - "type": { - "$ref": "#/definitions/84275319" - }, - "name": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "路由名称" - }, - "path": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "路由地址" - }, - "component": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "组件路径" - }, - "redirect": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "重定向" - }, - "permission": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "权限标识" - }, - "icon": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "图标" - }, - "isIframe": { - "type": "boolean", - "description": "是否内嵌" - }, - "outLink": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "外链链接" - }, - "isHide": { - "type": "boolean", - "description": "是否隐藏" - }, - "isKeepAlive": { - "type": "boolean", - "description": "是否缓存" - }, - "isAffix": { - "type": "boolean", - "description": "是否固定" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275390" - }, - "description": "菜单子项" - }, - "title": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "pid", - "type", - "name", - "path", - "component", - "redirect", - "permission", - "icon", - "isIframe", - "outLink", - "isHide", - "isKeepAlive", - "isAffix", - "orderNo", - "status", - "remark", - "children", - "title" - ] - } - } - }, - { - "name": "AddNoticeInput", - "displayName": "", - "id": "#/definitions/84275175", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "content", - "title" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "title": { - "maxLength": 32, - "minLength": 1, - "type": "string", - "description": "标题" - }, - "content": { - "minLength": 1, - "type": "string", - "description": "内容" - }, - "type": { - "$ref": "#/definitions/84275325" - }, - "publicUserId": { - "type": "integer", - "description": "发布人Id", - "format": "int64" - }, - "publicUserName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "发布人姓名" - }, - "publicOrgId": { - "type": "integer", - "description": "发布机构Id", - "format": "int64" - }, - "publicOrgName": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "发布机构名称" - }, - "publicTime": { - "type": [ - "string", - "null" - ], - "description": "发布时间", - "format": "date-time" - }, - "cancelTime": { - "type": [ - "string", - "null" - ], - "description": "撤回时间", - "format": "date-time" - }, - "status": { - "$ref": "#/definitions/84275324" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "title", - "content", - "type", - "publicUserId", - "publicUserName", - "publicOrgId", - "publicOrgName", - "publicTime", - "cancelTime", - "status" - ] - } - } - }, - { - "name": "AddOpenAccessInput", - "displayName": "", - "id": "#/definitions/84275176", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "accessKey", - "accessSecret", - "bindUserId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "bindTenantId": { - "type": "integer", - "description": "绑定租户Id", - "format": "int64" - }, - "accessKey": { - "minLength": 1, - "type": "string", - "description": "身份标识" - }, - "accessSecret": { - "minLength": 1, - "type": "string", - "description": "密钥" - }, - "bindUserId": { - "type": "integer", - "description": "绑定用户Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "bindTenantId", - "accessKey", - "accessSecret", - "bindUserId" - ] - } - } - }, - { - "name": "AddOrgInput", - "displayName": "", - "id": "#/definitions/84275177", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "pid": { - "type": "integer", - "description": "父Id", - "format": "int64" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "level": { - "type": [ - "integer", - "null" - ], - "description": "级别", - "format": "int32" - }, - "type": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "机构类型-数据字典" - }, - "directorId": { - "type": [ - "integer", - "null" - ], - "description": "负责人Id", - "format": "int64" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275395" - }, - "description": "机构子项" - }, - "disabled": { - "type": "boolean", - "description": "是否禁止选中" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "pid", - "code", - "level", - "type", - "directorId", - "orderNo", - "status", - "remark", - "children", - "disabled", - "name" - ] - } - } - }, - { - "name": "AddPluginInput", - "displayName": "", - "id": "#/definitions/84275178", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "csharpCode", - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "csharpCode": { - "minLength": 1, - "type": "string", - "description": "C#代码" - }, - "assemblyName": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "程序集名称" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "csharpCode", - "assemblyName", - "orderNo", - "status", - "remark", - "name" - ] - } - } - }, - { - "name": "AddPosInput", - "displayName": "", - "id": "#/definitions/84275179", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "code", - "orderNo", - "remark", - "status", - "name" - ] - } - } - }, - { - "name": "AddPrintInput", - "displayName": "", - "id": "#/definitions/84275180", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name", - "template" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "template": { - "minLength": 1, - "type": "string", - "description": "打印模板" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "template", - "orderNo", - "status", - "remark", - "name" - ] - } - } - }, - { - "name": "AddRegionInput", - "displayName": "", - "id": "#/definitions/84275181", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "pid": { - "type": "integer", - "description": "父Id", - "format": "int64" - }, - "shortName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "简称" - }, - "mergerName": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "组合名" - }, - "code": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "行政代码" - }, - "zipCode": { - "maxLength": 6, - "type": [ - "string", - "null" - ], - "description": "邮政编码" - }, - "cityCode": { - "maxLength": 6, - "type": [ - "string", - "null" - ], - "description": "区号" - }, - "level": { - "type": "integer", - "description": "层级", - "format": "int32" - }, - "pinYin": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "拼音" - }, - "lng": { - "type": "number", - "description": "经度", - "format": "float" - }, - "lat": { - "type": "number", - "description": "维度", - "format": "float" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275399" - }, - "description": "机构子项" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "pid", - "shortName", - "mergerName", - "code", - "zipCode", - "cityCode", - "level", - "pinYin", - "lng", - "lat", - "orderNo", - "remark", - "children", - "name" - ] - } - } - }, - { - "name": "AddRoleInput", - "displayName": "", - "id": "#/definitions/84275182", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "dataScope": { - "$ref": "#/definitions/84275269" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - }, - "menuIdList": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer", - "format": "int64" - }, - "description": "菜单Id集合" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "code", - "orderNo", - "dataScope", - "remark", - "status", - "name", - "menuIdList" - ] - } - } - }, - { - "name": "AddSubscribeMessageTemplateInput", - "displayName": "", - "id": "#/definitions/84275183", - "description": "增加订阅消息模板", - "schema": { - "jsonSchema": { - "required": [ - "keyworkIdList", - "sceneDescription", - "templateTitleId" - ], - "type": "object", - "properties": { - "templateTitleId": { - "minLength": 1, - "type": "string", - "description": "模板标题Id" - }, - "keyworkIdList": { - "type": "array", - "items": { - "type": "integer", - "format": "int32" - }, - "description": "模板关键词列表,例如 [3,5,4]" - }, - "sceneDescription": { - "minLength": 1, - "type": "string", - "description": "服务场景描述,15个字以内" - } - }, - "additionalProperties": false, - "description": "增加订阅消息模板", - "x-apifox-orders": [ - "templateTitleId", - "keyworkIdList", - "sceneDescription" - ] - } - } - }, - { - "name": "AddTenantInput", - "displayName": "", - "id": "#/definitions/84275184", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "adminAccount", - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "userId": { - "type": "integer", - "description": "用户Id", - "format": "int64" - }, - "orgId": { - "type": "integer", - "description": "机构Id", - "format": "int64" - }, - "host": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "主机" - }, - "tenantType": { - "$ref": "#/definitions/84275409" - }, - "dbType": { - "$ref": "#/definitions/84275276" - }, - "connection": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "数据库连接" - }, - "configId": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "数据库标识" - }, - "slaveConnections": { - "type": [ - "string", - "null" - ], - "description": "从库连接/读写分离" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "email": { - "type": [ - "string", - "null" - ], - "description": "电子邮箱" - }, - "phone": { - "type": [ - "string", - "null" - ], - "description": "电话" - }, - "name": { - "minLength": 2, - "type": "string", - "description": "租户名称" - }, - "adminAccount": { - "minLength": 3, - "type": "string", - "description": "租管账号" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "userId", - "orgId", - "host", - "tenantType", - "dbType", - "connection", - "configId", - "slaveConnections", - "orderNo", - "remark", - "status", - "email", - "phone", - "name", - "adminAccount" - ] - } - } - }, - { - "name": "AddUserInput", - "displayName": "", - "id": "#/definitions/84275185", - "description": "增加用户输入参数", - "schema": { - "jsonSchema": { - "required": [ - "account", - "realName" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "nickName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "昵称" - }, - "avatar": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "头像" - }, - "sex": { - "$ref": "#/definitions/84275305" - }, - "age": { - "type": "integer", - "description": "年龄", - "format": "int32" - }, - "birthday": { - "type": [ - "string", - "null" - ], - "description": "出生日期", - "format": "date-time" - }, - "nation": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "民族" - }, - "phone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "手机号码" - }, - "cardType": { - "$ref": "#/definitions/84275258" - }, - "idCardNum": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "身份证号" - }, - "email": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "邮箱" - }, - "address": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "地址" - }, - "cultureLevel": { - "$ref": "#/definitions/84275267" - }, - "politicalOutlook": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "政治面貌" - }, - "college": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "毕业院校" - }, - "officePhone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "办公电话" - }, - "emergencyContact": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "紧急联系人" - }, - "emergencyPhone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "紧急联系人电话" - }, - "emergencyAddress": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "紧急联系人地址" - }, - "introduction": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "个人简介" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "accountType": { - "$ref": "#/definitions/84275167" - }, - "orgId": { - "type": "integer", - "description": "直属机构Id", - "format": "int64" - }, - "sysOrg": { - "$ref": "#/definitions/84275395" - }, - "managerUserId": { - "type": [ - "integer", - "null" - ], - "description": "直属主管Id", - "format": "int64" - }, - "posId": { - "type": "integer", - "description": "职位Id", - "format": "int64" - }, - "jobNum": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "工号" - }, - "posLevel": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "职级" - }, - "posTitle": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "职称" - }, - "expertise": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "擅长领域" - }, - "officeZone": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "办公区域" - }, - "office": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "办公室" - }, - "joinDate": { - "type": [ - "string", - "null" - ], - "description": "入职日期", - "format": "date-time" - }, - "lastLoginIp": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "最新登录Ip" - }, - "lastLoginAddress": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "最新登录地点" - }, - "lastLoginTime": { - "type": [ - "string", - "null" - ], - "description": "最新登录时间", - "format": "date-time" - }, - "lastLoginDevice": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "最新登录设备" - }, - "signature": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "电子签名" - }, - "account": { - "minLength": 1, - "type": "string", - "description": "账号" - }, - "realName": { - "minLength": 1, - "type": "string", - "description": "真实姓名" - }, - "roleIdList": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer", - "format": "int64" - }, - "description": "角色集合" - }, - "extOrgIdList": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275402" - }, - "description": "扩展机构集合" - } - }, - "additionalProperties": false, - "description": "增加用户输入参数", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "nickName", - "avatar", - "sex", - "age", - "birthday", - "nation", - "phone", - "cardType", - "idCardNum", - "email", - "address", - "cultureLevel", - "politicalOutlook", - "college", - "officePhone", - "emergencyContact", - "emergencyPhone", - "emergencyAddress", - "introduction", - "orderNo", - "status", - "remark", - "accountType", - "orgId", - "sysOrg", - "managerUserId", - "posId", - "jobNum", - "posLevel", - "posTitle", - "expertise", - "officeZone", - "office", - "joinDate", - "lastLoginIp", - "lastLoginAddress", - "lastLoginTime", - "lastLoginDevice", - "signature", - "account", - "realName", - "roleIdList", - "extOrgIdList" - ] - } - } - }, - { - "name": "AdminResult_Boolean", - "displayName": "", - "id": "#/definitions/84275186", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": "boolean", - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_IActionResult", - "displayName": "", - "id": "#/definitions/84275187", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275306" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_Int32", - "displayName": "", - "id": "#/definitions/84275188", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": "integer", - "description": "数据", - "format": "int32" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_Int64", - "displayName": "", - "id": "#/definitions/84275189", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": "integer", - "description": "数据", - "format": "int64" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_JObject", - "displayName": "", - "id": "#/definitions/84275190", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "$ref": "#/definitions/84275307" - }, - "description": "数据", - "x-apifox-orders": [ - ] - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_ApiOutput", - "displayName": "", - "id": "#/definitions/84275191", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275257" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_CodeGenConfig", - "displayName": "", - "id": "#/definitions/84275192", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275261" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_ColumnOuput", - "displayName": "", - "id": "#/definitions/84275193", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275263" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_ConstOutput", - "displayName": "", - "id": "#/definitions/84275194", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275264" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_DatabaseOutput", - "displayName": "", - "id": "#/definitions/84275195", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275270" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_DbColumnOutput", - "displayName": "", - "id": "#/definitions/84275196", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275272" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_DbTableInfo", - "displayName": "", - "id": "#/definitions/84275197", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275274" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_EnumEntity", - "displayName": "", - "id": "#/definitions/84275198", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275301" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_EnumTypeOutput", - "displayName": "", - "id": "#/definitions/84275199", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275302" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_Int64", - "displayName": "", - "id": "#/definitions/84275200", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer", - "format": "int64" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_MenuOutput", - "displayName": "", - "id": "#/definitions/84275201", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275318" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_RoleOutput", - "displayName": "", - "id": "#/definitions/84275202", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275349" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_String", - "displayName": "", - "id": "#/definitions/84275203", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysConfig", - "displayName": "", - "id": "#/definitions/84275204", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275378" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysDictData", - "displayName": "", - "id": "#/definitions/84275205", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275379" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysDictType", - "displayName": "", - "id": "#/definitions/84275206", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275380" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysFile", - "displayName": "", - "id": "#/definitions/84275207", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275381" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysJobCluster", - "displayName": "", - "id": "#/definitions/84275208", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275382" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysJobTrigger", - "displayName": "", - "id": "#/definitions/84275209", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275384" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysMenu", - "displayName": "", - "id": "#/definitions/84275210", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275390" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysNotice", - "displayName": "", - "id": "#/definitions/84275211", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275392" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysOrg", - "displayName": "", - "id": "#/definitions/84275212", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275395" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysPos", - "displayName": "", - "id": "#/definitions/84275213", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275397" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysRegion", - "displayName": "", - "id": "#/definitions/84275214", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275399" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysUser", - "displayName": "", - "id": "#/definitions/84275215", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275401" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_SysUserExtOrg", - "displayName": "", - "id": "#/definitions/84275216", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275402" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_List_TableOutput", - "displayName": "", - "id": "#/definitions/84275217", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275405" - }, - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_LoginOutput", - "displayName": "", - "id": "#/definitions/84275218", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275315" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_LoginUserOutput", - "displayName": "", - "id": "#/definitions/84275219", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275317" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_Object", - "displayName": "", - "id": "#/definitions/84275220", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "additionalProperties": false, - "description": "数据", - "type": "null" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SmKeyPairOutput", - "displayName": "", - "id": "#/definitions/84275221", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275352" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_JobDetailOutput", - "displayName": "", - "id": "#/definitions/84275222", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275353" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_OpenAccessOutput", - "displayName": "", - "id": "#/definitions/84275223", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275354" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysCodeGen", - "displayName": "", - "id": "#/definitions/84275224", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275355" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysConfig", - "displayName": "", - "id": "#/definitions/84275225", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275356" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysDictData", - "displayName": "", - "id": "#/definitions/84275226", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275357" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysDictType", - "displayName": "", - "id": "#/definitions/84275227", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275358" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysFile", - "displayName": "", - "id": "#/definitions/84275228", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275359" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysJobTriggerRecord", - "displayName": "", - "id": "#/definitions/84275229", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275360" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysLogDiff", - "displayName": "", - "id": "#/definitions/84275230", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275361" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysLogEx", - "displayName": "", - "id": "#/definitions/84275231", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275362" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysLogOp", - "displayName": "", - "id": "#/definitions/84275232", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275363" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysLogVis", - "displayName": "", - "id": "#/definitions/84275233", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275364" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysNotice", - "displayName": "", - "id": "#/definitions/84275234", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275365" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysNoticeUser", - "displayName": "", - "id": "#/definitions/84275235", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275366" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysOnlineUser", - "displayName": "", - "id": "#/definitions/84275236", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275367" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysPlugin", - "displayName": "", - "id": "#/definitions/84275237", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275368" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysPrint", - "displayName": "", - "id": "#/definitions/84275238", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275369" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysRegion", - "displayName": "", - "id": "#/definitions/84275239", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275370" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysRole", - "displayName": "", - "id": "#/definitions/84275240", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275371" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_SysWechatUser", - "displayName": "", - "id": "#/definitions/84275241", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275372" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_TenantOutput", - "displayName": "", - "id": "#/definitions/84275242", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275373" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SqlSugarPagedList_UserOutput", - "displayName": "", - "id": "#/definitions/84275243", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275374" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_String", - "displayName": "", - "id": "#/definitions/84275244", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "type": [ - "string", - "null" - ], - "description": "数据" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SysCodeGen", - "displayName": "", - "id": "#/definitions/84275245", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275376" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SysCodeGenConfig", - "displayName": "", - "id": "#/definitions/84275246", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275377" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SysConfig", - "displayName": "", - "id": "#/definitions/84275247", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275378" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SysDictData", - "displayName": "", - "id": "#/definitions/84275248", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275379" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SysDictType", - "displayName": "", - "id": "#/definitions/84275249", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275380" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SysFile", - "displayName": "", - "id": "#/definitions/84275250", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275381" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SysPrint", - "displayName": "", - "id": "#/definitions/84275251", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275398" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SysUser", - "displayName": "", - "id": "#/definitions/84275252", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275401" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_SysWechatPay", - "displayName": "", - "id": "#/definitions/84275253", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275403" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_WechatPayOutput", - "displayName": "", - "id": "#/definitions/84275254", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275436" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_WxOpenIdOutput", - "displayName": "", - "id": "#/definitions/84275255", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275442" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "AdminResult_WxPhoneOutput", - "displayName": "", - "id": "#/definitions/84275256", - "description": "全局返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "description": "状态码", - "format": "int32" - }, - "type": { - "type": [ - "string", - "null" - ], - "description": "类型success、warning、error" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "错误信息" - }, - "result": { - "$ref": "#/definitions/84275443" - }, - "extras": { - "additionalProperties": false, - "description": "附加数据", - "type": "null" - }, - "time": { - "type": "string", - "description": "时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "全局返回结果", - "x-apifox-orders": [ - "code", - "type", - "message", - "result", - "extras", - "time" - ] - } - } - }, - { - "name": "ApiOutput", - "displayName": "", - "id": "#/definitions/84275257", - "description": "接口/动态API输出", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "groupName": { - "type": [ - "string", - "null" - ], - "description": "组名称" - }, - "displayName": { - "type": [ - "string", - "null" - ], - "description": "接口名称" - }, - "routeName": { - "type": [ - "string", - "null" - ], - "description": "路由名称" - } - }, - "additionalProperties": false, - "description": "接口/动态API输出", - "x-apifox-orders": [ - "groupName", - "displayName", - "routeName" - ] - } - } - }, - { - "name": "CardTypeEnum", - "displayName": "", - "id": "#/definitions/84275258", - "description": "证件类型枚举
 身份证 IdCard = 0
 护照 PassportCard = 1
 出生证 BirthCard = 2
 港澳台通行证 GatCard = 3
 外国人居留证 ForeignCard = 4
 营业执照 License = 5
", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5 - ], - "type": "integer", - "description": "证件类型枚举
 身份证 IdCard = 0
 护照 PassportCard = 1
 出生证 BirthCard = 2
 港澳台通行证 GatCard = 3
 外国人居留证 ForeignCard = 4
 营业执照 License = 5
", - "format": "int32" - } - } - }, - { - "name": "ChangePwdInput", - "displayName": "", - "id": "#/definitions/84275259", - "description": "修改用户密码输入参数", - "schema": { - "jsonSchema": { - "required": [ - "passwordNew", - "passwordOld" - ], - "type": "object", - "properties": { - "passwordOld": { - "minLength": 1, - "type": "string", - "description": "当前密码" - }, - "passwordNew": { - "maxLength": 20, - "minLength": 5, - "type": "string", - "description": "新密码" - } - }, - "additionalProperties": false, - "description": "修改用户密码输入参数", - "x-apifox-orders": [ - "passwordOld", - "passwordNew" - ] - } - } - }, - { - "name": "ClusterStatus", - "displayName": "", - "id": "#/definitions/84275260", - "description": "
  Crashed = 0
  Working = 1
  Waiting = 2
", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1, - 2 - ], - "type": "integer", - "description": "
  Crashed = 0
  Working = 1
  Waiting = 2
", - "format": "int32" - } - } - }, - { - "name": "CodeGenConfig", - "displayName": "", - "id": "#/definitions/84275261", - "description": "代码生成详细配置参数", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - }, - "codeGenId": { - "type": "integer", - "description": "代码生成主表ID", - "format": "int64" - }, - "columnName": { - "type": [ - "string", - "null" - ], - "description": "数据库字段名" - }, - "propertyName": { - "type": [ - "string", - "null" - ], - "description": "实体属性名" - }, - "columnLength": { - "type": "integer", - "description": "字段数据长度", - "format": "int32" - }, - "lowerPropertyName": { - "type": [ - "string", - "null" - ], - "description": "数据库字段名(首字母小写)", - "readOnly": true - }, - "columnComment": { - "type": [ - "string", - "null" - ], - "description": "字段描述" - }, - "netType": { - "type": [ - "string", - "null" - ], - "description": ".NET类型" - }, - "effectType": { - "type": [ - "string", - "null" - ], - "description": "作用类型(字典)" - }, - "fkEntityName": { - "type": [ - "string", - "null" - ], - "description": "外键实体名称" - }, - "fkTableName": { - "type": [ - "string", - "null" - ], - "description": "外键表名称" - }, - "lowerFkEntityName": { - "type": [ - "string", - "null" - ], - "description": "外键实体名称(首字母小写)", - "readOnly": true - }, - "fkColumnName": { - "type": [ - "string", - "null" - ], - "description": "外键显示字段" - }, - "lowerFkColumnName": { - "type": [ - "string", - "null" - ], - "description": "外键显示字段(首字母小写)", - "readOnly": true - }, - "fkColumnNetType": { - "type": [ - "string", - "null" - ], - "description": "外键显示字段.NET类型" - }, - "dictTypeCode": { - "type": [ - "string", - "null" - ], - "description": "字典code" - }, - "whetherRetract": { - "type": [ - "string", - "null" - ], - "description": "列表是否缩进(字典)" - }, - "whetherRequired": { - "type": [ - "string", - "null" - ], - "description": "是否必填(字典)" - }, - "whetherSortable": { - "type": [ - "string", - "null" - ], - "description": "是否可排序(字典)" - }, - "queryWhether": { - "type": [ - "string", - "null" - ], - "description": "是否是查询条件" - }, - "queryType": { - "type": [ - "string", - "null" - ], - "description": "查询方式" - }, - "whetherTable": { - "type": [ - "string", - "null" - ], - "description": "列表显示" - }, - "whetherAddUpdate": { - "type": [ - "string", - "null" - ], - "description": "增改" - }, - "columnKey": { - "type": [ - "string", - "null" - ], - "description": "主外键" - }, - "dataType": { - "type": [ - "string", - "null" - ], - "description": "数据库中类型(物理类型)" - }, - "whetherCommon": { - "type": [ - "string", - "null" - ], - "description": "是否是通用字段" - }, - "tableNickName": { - "type": [ - "string", - "null" - ], - "description": "表的别名 Table as XXX", - "readOnly": true - }, - "displayColumn": { - "type": [ - "string", - "null" - ], - "description": "显示文本字段" - }, - "valueColumn": { - "type": [ - "string", - "null" - ], - "description": "选中值字段" - }, - "pidColumn": { - "type": [ - "string", - "null" - ], - "description": "父级字段" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - } - }, - "additionalProperties": false, - "description": "代码生成详细配置参数", - "x-apifox-orders": [ - "id", - "codeGenId", - "columnName", - "propertyName", - "columnLength", - "lowerPropertyName", - "columnComment", - "netType", - "effectType", - "fkEntityName", - "fkTableName", - "lowerFkEntityName", - "fkColumnName", - "lowerFkColumnName", - "fkColumnNetType", - "dictTypeCode", - "whetherRetract", - "whetherRequired", - "whetherSortable", - "queryWhether", - "queryType", - "whetherTable", - "whetherAddUpdate", - "columnKey", - "dataType", - "whetherCommon", - "tableNickName", - "displayColumn", - "valueColumn", - "pidColumn", - "orderNo" - ] - } - } - }, - { - "name": "CodeGenInput", - "displayName": "", - "id": "#/definitions/84275262", - "description": "代码生成参数类", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "authorName": { - "type": [ - "string", - "null" - ], - "description": "作者姓名" - }, - "className": { - "type": [ - "string", - "null" - ], - "description": "类名" - }, - "tablePrefix": { - "type": [ - "string", - "null" - ], - "description": "是否移除表前缀" - }, - "configId": { - "type": [ - "string", - "null" - ], - "description": "库定位器名" - }, - "dbName": { - "type": [ - "string", - "null" - ], - "description": "数据库名(保留字段)" - }, - "dbType": { - "type": [ - "string", - "null" - ], - "description": "数据库类型" - }, - "connectionString": { - "type": [ - "string", - "null" - ], - "description": "数据库链接" - }, - "generateType": { - "type": [ - "string", - "null" - ], - "description": "生成方式" - }, - "tableName": { - "type": [ - "string", - "null" - ], - "description": "数据库表名" - }, - "nameSpace": { - "type": [ - "string", - "null" - ], - "description": "命名空间" - }, - "busName": { - "type": [ - "string", - "null" - ], - "description": "业务名(业务代码包名称)" - }, - "tableComment": { - "type": [ - "string", - "null" - ], - "description": "功能名(数据库表名称)" - }, - "menuApplication": { - "type": [ - "string", - "null" - ], - "description": "菜单应用分类(应用编码)" - }, - "menuPid": { - "type": "integer", - "description": "菜单父级", - "format": "int64" - }, - "printType": { - "type": [ - "string", - "null" - ], - "description": "支持打印类型" - }, - "printName": { - "type": [ - "string", - "null" - ], - "description": "打印模版名称" - } - }, - "additionalProperties": false, - "description": "代码生成参数类", - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "authorName", - "className", - "tablePrefix", - "configId", - "dbName", - "dbType", - "connectionString", - "generateType", - "tableName", - "nameSpace", - "busName", - "tableComment", - "menuApplication", - "menuPid", - "printType", - "printName" - ] - } - } - }, - { - "name": "ColumnOuput", - "displayName": "", - "id": "#/definitions/84275263", - "description": "数据库表列", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "columnName": { - "type": [ - "string", - "null" - ], - "description": "字段名" - }, - "propertyName": { - "type": [ - "string", - "null" - ], - "description": "实体的Property名" - }, - "columnLength": { - "type": "integer", - "description": "字段数据长度", - "format": "int32" - }, - "dataType": { - "type": [ - "string", - "null" - ], - "description": "数据库中类型" - }, - "isPrimarykey": { - "type": "boolean", - "description": "是否为主键" - }, - "isNullable": { - "type": "boolean", - "description": "是否允许为空" - }, - "netType": { - "type": [ - "string", - "null" - ], - "description": ".NET字段类型" - }, - "columnComment": { - "type": [ - "string", - "null" - ], - "description": "字段描述" - }, - "columnKey": { - "type": [ - "string", - "null" - ], - "description": "主外键" - } - }, - "additionalProperties": false, - "description": "数据库表列", - "x-apifox-orders": [ - "columnName", - "propertyName", - "columnLength", - "dataType", - "isPrimarykey", - "isNullable", - "netType", - "columnComment", - "columnKey" - ] - } - } - }, - { - "name": "ConstOutput", - "displayName": "", - "id": "#/definitions/84275264", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ], - "description": "名称" - }, - "code": { - "additionalProperties": false, - "description": "编码", - "type": "null" - }, - "data": { - "additionalProperties": false, - "description": "扩展字段", - "type": "null" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "name", - "code", - "data" - ] - } - } - }, - { - "name": "CreateEntityInput", - "displayName": "", - "id": "#/definitions/84275265", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "tableName": { - "type": [ - "string", - "null" - ], - "description": "表名", - "examples": [ - "student" - ] - }, - "entityName": { - "type": [ - "string", - "null" - ], - "description": "实体名", - "examples": [ - "Student" - ] - }, - "baseClassName": { - "type": [ - "string", - "null" - ], - "description": "基类名", - "examples": [ - "AutoIncrementEntity" - ] - }, - "position": { - "type": [ - "string", - "null" - ], - "description": "导出位置", - "examples": [ - "Web.Application" - ] - }, - "configId": { - "type": [ - "string", - "null" - ], - "description": "库标识" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "tableName", - "entityName", - "baseClassName", - "position", - "configId" - ] - } - } - }, - { - "name": "CreateSeedDataInput", - "displayName": "", - "id": "#/definitions/84275266", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "configId": { - "type": [ - "string", - "null" - ], - "description": "库标识" - }, - "tableName": { - "type": [ - "string", - "null" - ], - "description": "表名", - "examples": [ - "student" - ] - }, - "entityName": { - "type": [ - "string", - "null" - ], - "description": "实体名称", - "examples": [ - "Student" - ] - }, - "seedDataName": { - "type": [ - "string", - "null" - ], - "description": "种子名称", - "examples": [ - "Student" - ] - }, - "position": { - "type": [ - "string", - "null" - ], - "description": "导出位置", - "examples": [ - "Web.Application" - ] - }, - "suffix": { - "type": [ - "string", - "null" - ], - "description": "后缀", - "examples": [ - "Web.Application" - ] - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "configId", - "tableName", - "entityName", - "seedDataName", - "position", - "suffix" - ] - } - } - }, - { - "name": "CultureLevelEnum", - "displayName": "", - "id": "#/definitions/84275267", - "description": "文化程度枚举
 其他 Level0 = 0
 小学 Level1 = 1
 初中 Level2 = 2
 普通高中 Level3 = 3
 技工学校 Level4 = 4
 职业教育 Level5 = 5
 职业高中 Level6 = 6
 中等专科 Level7 = 7
 大学专科 Level8 = 8
 大学本科 Level9 = 9
 硕士研究生 Level10 = 10
 博士研究生 Level11 = 11
", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11 - ], - "type": "integer", - "description": "文化程度枚举
 其他 Level0 = 0
 小学 Level1 = 1
 初中 Level2 = 2
 普通高中 Level3 = 3
 技工学校 Level4 = 4
 职业教育 Level5 = 5
 职业高中 Level6 = 6
 中等专科 Level7 = 7
 大学专科 Level8 = 8
 大学本科 Level9 = 9
 硕士研究生 Level10 = 10
 博士研究生 Level11 = 11
", - "format": "int32" - } - } - }, - { - "name": "DataItem", - "displayName": "", - "id": "#/definitions/84275268", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "value": { - "type": [ - "string", - "null" - ] - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "value" - ] - } - } - }, - { - "name": "DataScopeEnum", - "displayName": "", - "id": "#/definitions/84275269", - "description": "角色数据范围枚举
 全部数据 All = 1
 本部门及以下数据 DeptChild = 2
 本部门数据 Dept = 3
 仅本人数据 Self = 4
 自定义数据 Define = 5
", - "schema": { - "jsonSchema": { - "enum": [ - 1, - 2, - 3, - 4, - 5 - ], - "type": "integer", - "description": "角色数据范围枚举
 全部数据 All = 1
 本部门及以下数据 DeptChild = 2
 本部门数据 Dept = 3
 仅本人数据 Self = 4
 自定义数据 Define = 5
", - "format": "int32" - } - } - }, - { - "name": "DatabaseOutput", - "displayName": "", - "id": "#/definitions/84275270", - "description": "数据库", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "configId": { - "type": [ - "string", - "null" - ], - "description": "库定位器名" - }, - "dbType": { - "$ref": "#/definitions/84275276" - }, - "connectionString": { - "type": [ - "string", - "null" - ], - "description": "数据库连接字符串" - } - }, - "additionalProperties": false, - "description": "数据库", - "x-apifox-orders": [ - "configId", - "dbType", - "connectionString" - ] - } - } - }, - { - "name": "DbColumnInput", - "displayName": "", - "id": "#/definitions/84275271", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "configId": { - "type": [ - "string", - "null" - ] - }, - "tableName": { - "type": [ - "string", - "null" - ] - }, - "dbColumnName": { - "type": [ - "string", - "null" - ] - }, - "dataType": { - "type": [ - "string", - "null" - ] - }, - "length": { - "type": "integer", - "format": "int32" - }, - "columnDescription": { - "type": [ - "string", - "null" - ] - }, - "isNullable": { - "type": "integer", - "format": "int32" - }, - "isIdentity": { - "type": "integer", - "format": "int32" - }, - "isPrimarykey": { - "type": "integer", - "format": "int32" - }, - "decimalDigits": { - "type": "integer", - "format": "int32" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "configId", - "tableName", - "dbColumnName", - "dataType", - "length", - "columnDescription", - "isNullable", - "isIdentity", - "isPrimarykey", - "decimalDigits" - ] - } - } - }, - { - "name": "DbColumnOutput", - "displayName": "", - "id": "#/definitions/84275272", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "tableName": { - "type": [ - "string", - "null" - ] - }, - "tableId": { - "type": "integer", - "format": "int32" - }, - "dbColumnName": { - "type": [ - "string", - "null" - ] - }, - "propertyName": { - "type": [ - "string", - "null" - ] - }, - "dataType": { - "type": [ - "string", - "null" - ] - }, - "propertyType": { - "additionalProperties": false, - "type": "null" - }, - "length": { - "type": "integer", - "format": "int32" - }, - "columnDescription": { - "type": [ - "string", - "null" - ] - }, - "defaultValue": { - "type": [ - "string", - "null" - ] - }, - "isNullable": { - "type": "boolean" - }, - "isIdentity": { - "type": "boolean" - }, - "isPrimarykey": { - "type": "boolean" - }, - "value": { - "additionalProperties": false, - "type": "null" - }, - "decimalDigits": { - "type": "integer", - "format": "int32" - }, - "scale": { - "type": "integer", - "format": "int32" - }, - "isArray": { - "type": "boolean" - }, - "isJson": { - "type": "boolean" - }, - "isUnsigned": { - "type": [ - "boolean", - "null" - ] - }, - "createTableFieldSort": { - "type": "integer", - "format": "int32" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "tableName", - "tableId", - "dbColumnName", - "propertyName", - "dataType", - "propertyType", - "length", - "columnDescription", - "defaultValue", - "isNullable", - "isIdentity", - "isPrimarykey", - "value", - "decimalDigits", - "scale", - "isArray", - "isJson", - "isUnsigned", - "createTableFieldSort" - ] - } - } - }, - { - "name": "DbObjectType", - "displayName": "", - "id": "#/definitions/84275273", - "description": "", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1, - 2 - ], - "type": "integer", - "format": "int32" - } - } - }, - { - "name": "DbTableInfo", - "displayName": "", - "id": "#/definitions/84275274", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "dbObjectType": { - "$ref": "#/definitions/84275273" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "name", - "description", - "dbObjectType" - ] - } - } - }, - { - "name": "DbTableInput", - "displayName": "", - "id": "#/definitions/84275275", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "configId": { - "type": [ - "string", - "null" - ] - }, - "tableName": { - "type": [ - "string", - "null" - ] - }, - "description": { - "type": [ - "string", - "null" - ] - }, - "dbColumnInfoList": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275271" - } - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "configId", - "tableName", - "description", - "dbColumnInfoList" - ] - } - } - }, - { - "name": "DbType", - "displayName": "", - "id": "#/definitions/84275276", - "description": "", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 900 - ], - "type": "integer", - "format": "int32" - } - } - }, - { - "name": "DeleteCodeGenInput", - "displayName": "", - "id": "#/definitions/84275277", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "代码生成器Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteConfigInput", - "displayName": "", - "id": "#/definitions/84275278", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteDbColumnInput", - "displayName": "", - "id": "#/definitions/84275279", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "configId": { - "type": [ - "string", - "null" - ] - }, - "tableName": { - "type": [ - "string", - "null" - ] - }, - "dbColumnName": { - "type": [ - "string", - "null" - ] - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "configId", - "tableName", - "dbColumnName" - ] - } - } - }, - { - "name": "DeleteDbTableInput", - "displayName": "", - "id": "#/definitions/84275280", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "configId": { - "type": [ - "string", - "null" - ] - }, - "tableName": { - "type": [ - "string", - "null" - ] - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "configId", - "tableName" - ] - } - } - }, - { - "name": "DeleteDictDataInput", - "displayName": "", - "id": "#/definitions/84275281", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteDictTypeInput", - "displayName": "", - "id": "#/definitions/84275282", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteFileInput", - "displayName": "", - "id": "#/definitions/84275283", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteJobDetailInput", - "displayName": "", - "id": "#/definitions/84275284", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "jobId": { - "type": [ - "string", - "null" - ], - "description": "作业Id" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "jobId" - ] - } - } - }, - { - "name": "DeleteJobTriggerInput", - "displayName": "", - "id": "#/definitions/84275285", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "jobId": { - "type": [ - "string", - "null" - ], - "description": "作业Id" - }, - "triggerId": { - "type": [ - "string", - "null" - ], - "description": "触发器Id" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "jobId", - "triggerId" - ] - } - } - }, - { - "name": "DeleteMenuInput", - "displayName": "", - "id": "#/definitions/84275286", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteMessageTemplateInput", - "displayName": "", - "id": "#/definitions/84275287", - "description": "删除消息模板", - "schema": { - "jsonSchema": { - "required": [ - "templateId" - ], - "type": "object", - "properties": { - "templateId": { - "minLength": 1, - "type": "string", - "description": "订阅模板Id" - } - }, - "additionalProperties": false, - "description": "删除消息模板", - "x-apifox-orders": [ - "templateId" - ] - } - } - }, - { - "name": "DeleteNoticeInput", - "displayName": "", - "id": "#/definitions/84275288", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteOpenAccessInput", - "displayName": "", - "id": "#/definitions/84275289", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteOrgInput", - "displayName": "", - "id": "#/definitions/84275290", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeletePluginInput", - "displayName": "", - "id": "#/definitions/84275291", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeletePosInput", - "displayName": "", - "id": "#/definitions/84275292", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeletePrintInput", - "displayName": "", - "id": "#/definitions/84275293", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteRegionInput", - "displayName": "", - "id": "#/definitions/84275294", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteRoleInput", - "displayName": "", - "id": "#/definitions/84275295", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteTenantInput", - "displayName": "", - "id": "#/definitions/84275296", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DeleteUserInput", - "displayName": "", - "id": "#/definitions/84275297", - "description": "删除用户输入参数", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - }, - "orgId": { - "type": "integer", - "description": "机构Id", - "format": "int64" - } - }, - "additionalProperties": false, - "description": "删除用户输入参数", - "x-apifox-orders": [ - "id", - "orgId" - ] - } - } - }, - { - "name": "DeleteWechatUserInput", - "displayName": "", - "id": "#/definitions/84275298", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "DictDataInput", - "displayName": "", - "id": "#/definitions/84275299", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - }, - "status": { - "$ref": "#/definitions/84275375" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "status" - ] - } - } - }, - { - "name": "DictTypeInput", - "displayName": "", - "id": "#/definitions/84275300", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - }, - "status": { - "$ref": "#/definitions/84275375" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "status" - ] - } - } - }, - { - "name": "EnumEntity", - "displayName": "", - "id": "#/definitions/84275301", - "description": "枚举实体", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "describe": { - "type": [ - "string", - "null" - ], - "description": "枚举的描述" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "枚举名称" - }, - "value": { - "type": "integer", - "description": "枚举对象的值", - "format": "int32" - } - }, - "additionalProperties": false, - "description": "枚举实体", - "x-apifox-orders": [ - "describe", - "name", - "value" - ] - } - } - }, - { - "name": "EnumTypeOutput", - "displayName": "", - "id": "#/definitions/84275302", - "description": "枚举类型输出参数", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "typeDescribe": { - "type": [ - "string", - "null" - ], - "description": "枚举类型描述" - }, - "typeName": { - "type": [ - "string", - "null" - ], - "description": "枚举类型名称" - }, - "typeRemark": { - "type": [ - "string", - "null" - ], - "description": "枚举类型备注" - } - }, - "additionalProperties": false, - "description": "枚举类型输出参数", - "x-apifox-orders": [ - "typeDescribe", - "typeName", - "typeRemark" - ] - } - } - }, - { - "name": "FileInput", - "displayName": "", - "id": "#/definitions/84275303", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - }, - "fileName": { - "type": [ - "string", - "null" - ], - "description": "文件名称" - }, - "url": { - "type": [ - "string", - "null" - ], - "description": "文件Url" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "fileName", - "url" - ] - } - } - }, - { - "name": "GenAuthUrlInput", - "displayName": "", - "id": "#/definitions/84275304", - "description": "生成网页授权Url", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "redirectUrl": { - "type": [ - "string", - "null" - ], - "description": "RedirectUrl" - }, - "scope": { - "type": [ - "string", - "null" - ], - "description": "Scope" - } - }, - "additionalProperties": false, - "description": "生成网页授权Url", - "x-apifox-orders": [ - "redirectUrl", - "scope" - ] - } - } - }, - { - "name": "GenderEnum", - "displayName": "", - "id": "#/definitions/84275305", - "description": "性别枚举
 男 Male = 1
 女 Female = 2
 其他 Other = 3
", - "schema": { - "jsonSchema": { - "enum": [ - 1, - 2, - 3 - ], - "type": "integer", - "description": "性别枚举
 男 Male = 1
 女 Female = 2
 其他 Other = 3
", - "format": "int32" - } - } - }, - { - "name": "IActionResult", - "displayName": "", - "id": "#/definitions/84275306", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "additionalProperties": false, - "x-apifox-orders": [ - ] - } - } - }, - { - "name": "JToken", - "displayName": "", - "id": "#/definitions/84275307", - "description": "", - "schema": { - "jsonSchema": { - "type": "array", - "items": { - "$ref": "#/definitions/84275307" - } - } - } - }, - { - "name": "JobCreateTypeEnum", - "displayName": "", - "id": "#/definitions/84275308", - "description": "作业创建类型枚举
 内置 BuiltIn = 0
 脚本 Script = 1
 HTTP请求 Http = 2
", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1, - 2 - ], - "type": "integer", - "description": "作业创建类型枚举
 内置 BuiltIn = 0
 脚本 Script = 1
 HTTP请求 Http = 2
", - "format": "int32" - } - } - }, - { - "name": "JobDetailInput", - "displayName": "", - "id": "#/definitions/84275309", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "jobId": { - "type": [ - "string", - "null" - ], - "description": "作业Id" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "jobId" - ] - } - } - }, - { - "name": "JobDetailOutput", - "displayName": "", - "id": "#/definitions/84275310", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "jobDetail": { - "$ref": "#/definitions/84275383" - }, - "jobTriggers": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275384" - }, - "description": "触发器集合" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "jobDetail", - "jobTriggers" - ] - } - } - }, - { - "name": "JobTriggerInput", - "displayName": "", - "id": "#/definitions/84275311", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "jobId": { - "type": [ - "string", - "null" - ], - "description": "作业Id" - }, - "triggerId": { - "type": [ - "string", - "null" - ], - "description": "触发器Id" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "jobId", - "triggerId" - ] - } - } - }, - { - "name": "LogInput", - "displayName": "", - "id": "#/definitions/84275312", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "startTime": { - "type": [ - "string", - "null" - ], - "description": "开始时间", - "format": "date-time" - }, - "endTime": { - "type": [ - "string", - "null" - ], - "description": "结束时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "startTime", - "endTime" - ] - } - } - }, - { - "name": "LogLevel", - "displayName": "", - "id": "#/definitions/84275313", - "description": "", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "integer", - "format": "int32" - } - } - }, - { - "name": "LoginInput", - "displayName": "", - "id": "#/definitions/84275314", - "description": "用户登录参数", - "schema": { - "jsonSchema": { - "required": [ - "account", - "password" - ], - "type": "object", - "properties": { - "account": { - "minLength": 2, - "type": "string", - "description": "账号", - "examples": [ - "admin" - ] - }, - "password": { - "minLength": 3, - "type": "string", - "description": "密码", - "examples": [ - "123456" - ] - }, - "codeId": { - "type": "integer", - "description": "验证码Id", - "format": "int64" - }, - "code": { - "type": [ - "string", - "null" - ], - "description": "验证码" - } - }, - "additionalProperties": false, - "description": "用户登录参数", - "x-apifox-orders": [ - "account", - "password", - "codeId", - "code" - ] - } - } - }, - { - "name": "LoginOutput", - "displayName": "", - "id": "#/definitions/84275315", - "description": "用户登录结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "accessToken": { - "type": [ - "string", - "null" - ], - "description": "令牌Token" - }, - "refreshToken": { - "type": [ - "string", - "null" - ], - "description": "刷新Token" - } - }, - "additionalProperties": false, - "description": "用户登录结果", - "x-apifox-orders": [ - "accessToken", - "refreshToken" - ] - } - } - }, - { - "name": "LoginPhoneInput", - "displayName": "", - "id": "#/definitions/84275316", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "code", - "phone" - ], - "type": "object", - "properties": { - "phone": { - "minLength": 1, - "type": "string", - "description": "手机号码", - "examples": [ - "admin" - ] - }, - "code": { - "minLength": 4, - "type": "string", - "description": "验证码", - "examples": [ - "123456" - ] - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "phone", - "code" - ] - } - } - }, - { - "name": "LoginUserOutput", - "displayName": "", - "id": "#/definitions/84275317", - "description": "用户登录信息", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "用户id", - "format": "int64" - }, - "account": { - "type": [ - "string", - "null" - ], - "description": "账号名称" - }, - "realName": { - "type": [ - "string", - "null" - ], - "description": "真实姓名" - }, - "phone": { - "type": [ - "string", - "null" - ], - "description": "电话" - }, - "idCardNum": { - "type": [ - "string", - "null" - ], - "description": "身份证" - }, - "email": { - "type": [ - "string", - "null" - ], - "description": "邮箱" - }, - "accountType": { - "$ref": "#/definitions/84275167" - }, - "avatar": { - "type": [ - "string", - "null" - ], - "description": "头像" - }, - "introduction": { - "type": [ - "string", - "null" - ], - "description": "个人简介" - }, - "address": { - "type": [ - "string", - "null" - ], - "description": "地址" - }, - "signature": { - "type": [ - "string", - "null" - ], - "description": "电子签名" - }, - "orgId": { - "type": "integer", - "description": "机构Id", - "format": "int64" - }, - "orgName": { - "type": [ - "string", - "null" - ], - "description": "机构名称" - }, - "orgType": { - "type": [ - "string", - "null" - ], - "description": "机构类型" - }, - "posName": { - "type": [ - "string", - "null" - ], - "description": "职位名称" - }, - "buttons": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "按钮权限集合" - }, - "roleIds": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer", - "format": "int64" - }, - "description": "角色集合" - } - }, - "additionalProperties": false, - "description": "用户登录信息", - "x-apifox-orders": [ - "id", - "account", - "realName", - "phone", - "idCardNum", - "email", - "accountType", - "avatar", - "introduction", - "address", - "signature", - "orgId", - "orgName", - "orgType", - "posName", - "buttons", - "roleIds" - ] - } - } - }, - { - "name": "MenuOutput", - "displayName": "", - "id": "#/definitions/84275318", - "description": "系统菜单返回结果", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "Id", - "format": "int64" - }, - "pid": { - "type": "integer", - "description": "父Id", - "format": "int64" - }, - "type": { - "$ref": "#/definitions/84275319" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "名称" - }, - "path": { - "type": [ - "string", - "null" - ], - "description": "路由地址" - }, - "component": { - "type": [ - "string", - "null" - ], - "description": "组件路径" - }, - "permission": { - "type": [ - "string", - "null" - ], - "description": "权限标识" - }, - "redirect": { - "type": [ - "string", - "null" - ], - "description": "重定向" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "createTime": { - "type": "string", - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": "string", - "description": "更新时间", - "format": "date-time" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "meta": { - "$ref": "#/definitions/84275391" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275318" - }, - "description": "菜单子项" - } - }, - "additionalProperties": false, - "description": "系统菜单返回结果", - "x-apifox-orders": [ - "id", - "pid", - "type", - "name", - "path", - "component", - "permission", - "redirect", - "orderNo", - "status", - "remark", - "createTime", - "updateTime", - "createUserName", - "updateUserName", - "meta", - "children" - ] - } - } - }, - { - "name": "MenuTypeEnum", - "displayName": "", - "id": "#/definitions/84275319", - "description": "系统菜单类型枚举
 目录 Dir = 1
 菜单 Menu = 2
 按钮 Btn = 3
", - "schema": { - "jsonSchema": { - "enum": [ - 1, - 2, - 3 - ], - "type": "integer", - "description": "系统菜单类型枚举
 目录 Dir = 1
 菜单 Menu = 2
 按钮 Btn = 3
", - "format": "int32" - } - } - }, - { - "name": "MessageInput", - "displayName": "", - "id": "#/definitions/84275320", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "userId": { - "type": "integer", - "description": "用户ID", - "format": "int64" - }, - "userIds": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer", - "format": "int64" - }, - "description": "用户ID列表" - }, - "title": { - "type": [ - "string", - "null" - ], - "description": "消息标题" - }, - "messageType": { - "$ref": "#/definitions/84275322" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "消息内容" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "userId", - "userIds", - "title", - "messageType", - "message" - ] - } - } - }, - { - "name": "MessageTemplateSendInput", - "displayName": "", - "id": "#/definitions/84275321", - "description": "获取消息模板列表", - "schema": { - "jsonSchema": { - "required": [ - "data", - "templateId", - "toUserOpenId" - ], - "type": "object", - "properties": { - "templateId": { - "minLength": 1, - "type": "string", - "description": "订阅模板Id" - }, - "toUserOpenId": { - "minLength": 1, - "type": "string", - "description": "接收者的OpenId" - }, - "data": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/84275268" - }, - "description": "模板数据,格式形如 { \"key1\": { \"value\": any }, \"key2\": { \"value\": any } }", - "x-apifox-orders": [ - ] - }, - "url": { - "type": [ - "string", - "null" - ], - "description": "模板跳转链接" - }, - "miniProgramPagePath": { - "type": [ - "string", - "null" - ], - "description": "所需跳转到小程序的具体页面路径,支持带参数,(示例index?foo=bar)" - } - }, - "additionalProperties": false, - "description": "获取消息模板列表", - "x-apifox-orders": [ - "templateId", - "toUserOpenId", - "data", - "url", - "miniProgramPagePath" - ] - } - } - }, - { - "name": "MessageTypeEnum", - "displayName": "", - "id": "#/definitions/84275322", - "description": "消息类型枚举
 消息 Info = 0
 成功 Success = 1
 警告 Warning = 2
 错误 Error = 3
", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "integer", - "description": "消息类型枚举
 消息 Info = 0
 成功 Success = 1
 警告 Warning = 2
 错误 Error = 3
", - "format": "int32" - } - } - }, - { - "name": "NoticeInput", - "displayName": "", - "id": "#/definitions/84275323", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "NoticeStatusEnum", - "displayName": "", - "id": "#/definitions/84275324", - "description": "通知公告状态枚举
 草稿 DRAFT = 0
 发布 PUBLIC = 1
 撤回 CANCEL = 2
 删除 DELETED = 3
", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "integer", - "description": "通知公告状态枚举
 草稿 DRAFT = 0
 发布 PUBLIC = 1
 撤回 CANCEL = 2
 删除 DELETED = 3
", - "format": "int32" - } - } - }, - { - "name": "NoticeTypeEnum", - "displayName": "", - "id": "#/definitions/84275325", - "description": "通知公告状类型枚举
 通知 NOTICE = 1
 公告 ANNOUNCEMENT = 2
", - "schema": { - "jsonSchema": { - "enum": [ - 1, - 2 - ], - "type": "integer", - "description": "通知公告状类型枚举
 通知 NOTICE = 1
 公告 ANNOUNCEMENT = 2
", - "format": "int32" - } - } - }, - { - "name": "NoticeUserStatusEnum", - "displayName": "", - "id": "#/definitions/84275326", - "description": "通知公告用户状态枚举
 未读 UNREAD = 0
 已读 READ = 1
", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1 - ], - "type": "integer", - "description": "通知公告用户状态枚举
 未读 UNREAD = 0
 已读 READ = 1
", - "format": "int32" - } - } - }, - { - "name": "OpenAccessInput", - "displayName": "", - "id": "#/definitions/84275327", - "description": "开放接口身份输入参数", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "accessKey": { - "type": [ - "string", - "null" - ], - "description": "身份标识" - } - }, - "additionalProperties": false, - "description": "开放接口身份输入参数", - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "accessKey" - ] - } - } - }, - { - "name": "OpenAccessOutput", - "displayName": "", - "id": "#/definitions/84275328", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "accessKey", - "accessSecret" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "accessKey": { - "maxLength": 128, - "minLength": 1, - "type": "string", - "description": "身份标识" - }, - "accessSecret": { - "maxLength": 256, - "minLength": 1, - "type": "string", - "description": "密钥" - }, - "bindTenantId": { - "type": "integer", - "description": "绑定租户Id", - "format": "int64" - }, - "bindUserId": { - "type": "integer", - "description": "绑定用户Id", - "format": "int64" - }, - "bindUserAccount": { - "type": [ - "string", - "null" - ], - "description": "绑定用户账号" - }, - "bindTenantName": { - "type": [ - "string", - "null" - ], - "description": "绑定租户名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "accessKey", - "accessSecret", - "bindTenantId", - "bindUserId", - "bindUserAccount", - "bindTenantName" - ] - } - } - }, - { - "name": "PageConfigInput", - "displayName": "", - "id": "#/definitions/84275329", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "名称" - }, - "code": { - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "groupCode": { - "type": [ - "string", - "null" - ], - "description": "分组编码" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "name", - "code", - "groupCode" - ] - } - } - }, - { - "name": "PageDictDataInput", - "displayName": "", - "id": "#/definitions/84275330", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "dictTypeId": { - "type": "integer", - "description": "字典类型Id", - "format": "int64" - }, - "value": { - "type": [ - "string", - "null" - ], - "description": "值" - }, - "code": { - "type": [ - "string", - "null" - ], - "description": "编码" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "dictTypeId", - "value", - "code" - ] - } - } - }, - { - "name": "PageDictTypeInput", - "displayName": "", - "id": "#/definitions/84275331", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "名称" - }, - "code": { - "type": [ - "string", - "null" - ], - "description": "编码" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "name", - "code" - ] - } - } - }, - { - "name": "PageFileInput", - "displayName": "", - "id": "#/definitions/84275332", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "fileName": { - "type": [ - "string", - "null" - ], - "description": "文件名称" - }, - "startTime": { - "type": [ - "string", - "null" - ], - "description": "开始时间", - "format": "date-time" - }, - "endTime": { - "type": [ - "string", - "null" - ], - "description": "结束时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "fileName", - "startTime", - "endTime" - ] - } - } - }, - { - "name": "PageJobDetailInput", - "displayName": "", - "id": "#/definitions/84275333", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "jobId": { - "type": [ - "string", - "null" - ], - "description": "作业Id" - }, - "description": { - "type": [ - "string", - "null" - ], - "description": "描述信息" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "jobId", - "description" - ] - } - } - }, - { - "name": "PageJobTriggerRecordInput", - "displayName": "", - "id": "#/definitions/84275334", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "jobId": { - "type": [ - "string", - "null" - ], - "description": "作业Id" - }, - "triggerId": { - "type": [ - "string", - "null" - ], - "description": "触发器Id" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "jobId", - "triggerId" - ] - } - } - }, - { - "name": "PageLogInput", - "displayName": "", - "id": "#/definitions/84275335", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "startTime": { - "type": [ - "string", - "null" - ], - "description": "开始时间", - "format": "date-time" - }, - "endTime": { - "type": [ - "string", - "null" - ], - "description": "结束时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "startTime", - "endTime" - ] - } - } - }, - { - "name": "PageNoticeInput", - "displayName": "", - "id": "#/definitions/84275336", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "title": { - "type": [ - "string", - "null" - ], - "description": "标题" - }, - "type": { - "$ref": "#/definitions/84275325" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "title", - "type" - ] - } - } - }, - { - "name": "PageOnlineUserInput", - "displayName": "", - "id": "#/definitions/84275337", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "userName": { - "type": [ - "string", - "null" - ], - "description": "账号名称" - }, - "realName": { - "type": [ - "string", - "null" - ], - "description": "真实姓名" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "userName", - "realName" - ] - } - } - }, - { - "name": "PagePluginInput", - "displayName": "", - "id": "#/definitions/84275338", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "名称" - }, - "code": { - "type": [ - "string", - "null" - ], - "description": "编码" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "name", - "code" - ] - } - } - }, - { - "name": "PagePrintInput", - "displayName": "", - "id": "#/definitions/84275339", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "名称" - }, - "code": { - "type": [ - "string", - "null" - ], - "description": "编码" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "name", - "code" - ] - } - } - }, - { - "name": "PageRegionInput", - "displayName": "", - "id": "#/definitions/84275340", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "pid": { - "type": "integer", - "description": "父节点Id", - "format": "int64" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "名称" - }, - "code": { - "type": [ - "string", - "null" - ], - "description": "编码" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "pid", - "name", - "code" - ] - } - } - }, - { - "name": "PageRoleInput", - "displayName": "", - "id": "#/definitions/84275341", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "名称" - }, - "code": { - "type": [ - "string", - "null" - ], - "description": "编码" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "name", - "code" - ] - } - } - }, - { - "name": "PageTenantInput", - "displayName": "", - "id": "#/definitions/84275342", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "名称" - }, - "phone": { - "type": [ - "string", - "null" - ], - "description": "电话" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "name", - "phone" - ] - } - } - }, - { - "name": "PageUserInput", - "displayName": "", - "id": "#/definitions/84275343", - "description": "获取用户分页列表输入参数", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "account": { - "type": [ - "string", - "null" - ], - "description": "账号" - }, - "realName": { - "type": [ - "string", - "null" - ], - "description": "姓名" - }, - "phone": { - "type": [ - "string", - "null" - ], - "description": "手机号" - }, - "orgId": { - "type": "integer", - "description": "查询时所选机构Id", - "format": "int64" - } - }, - "additionalProperties": false, - "description": "获取用户分页列表输入参数", - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "account", - "realName", - "phone", - "orgId" - ] - } - } - }, - { - "name": "PlatformTypeEnum", - "displayName": "", - "id": "#/definitions/84275344", - "description": "平台类型枚举
 微信公众号 微信公众号 = 1
 微信小程序 微信小程序 = 2
 QQ QQ = 3
 支付宝 Alipay = 4
 Gitee Gitee = 5
", - "schema": { - "jsonSchema": { - "enum": [ - 1, - 2, - 3, - 4, - 5 - ], - "type": "integer", - "description": "平台类型枚举
 微信公众号 微信公众号 = 1
 微信小程序 微信小程序 = 2
 QQ QQ = 3
 支付宝 Alipay = 4
 Gitee Gitee = 5
", - "format": "int32" - } - } - }, - { - "name": "ResetPwdUserInput", - "displayName": "", - "id": "#/definitions/84275345", - "description": "重置用户密码输入参数", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "description": "重置用户密码输入参数", - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "RoleInput", - "displayName": "", - "id": "#/definitions/84275346", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - }, - "status": { - "$ref": "#/definitions/84275375" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "status" - ] - } - } - }, - { - "name": "RoleMenuInput", - "displayName": "", - "id": "#/definitions/84275347", - "description": "授权角色菜单", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - }, - "menuIdList": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer", - "format": "int64" - }, - "description": "菜单Id集合" - } - }, - "additionalProperties": false, - "description": "授权角色菜单", - "x-apifox-orders": [ - "id", - "menuIdList" - ] - } - } - }, - { - "name": "RoleOrgInput", - "displayName": "", - "id": "#/definitions/84275348", - "description": "授权角色机构", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - }, - "dataScope": { - "type": "integer", - "description": "数据范围", - "format": "int32" - }, - "orgIdList": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer", - "format": "int64" - }, - "description": "机构Id集合" - } - }, - "additionalProperties": false, - "description": "授权角色机构", - "x-apifox-orders": [ - "id", - "dataScope", - "orgIdList" - ] - } - } - }, - { - "name": "RoleOutput", - "displayName": "", - "id": "#/definitions/84275349", - "description": "角色列表输出参数", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "Id", - "format": "int64" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "名称" - }, - "code": { - "type": [ - "string", - "null" - ], - "description": "编码" - } - }, - "additionalProperties": false, - "description": "角色列表输出参数", - "x-apifox-orders": [ - "id", - "name", - "code" - ] - } - } - }, - { - "name": "SendSubscribeMessageInput", - "displayName": "", - "id": "#/definitions/84275350", - "description": "发送订阅消息", - "schema": { - "jsonSchema": { - "required": [ - "data", - "templateId", - "toUserOpenId" - ], - "type": "object", - "properties": { - "templateId": { - "minLength": 1, - "type": "string", - "description": "订阅模板Id" - }, - "toUserOpenId": { - "minLength": 1, - "type": "string", - "description": "接收者的OpenId" - }, - "data": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/84275268" - }, - "description": "模板内容,格式形如 { \"key1\": { \"value\": any }, \"key2\": { \"value\": any } }", - "x-apifox-orders": [ - ] - }, - "miniprogramState": { - "type": [ - "string", - "null" - ], - "description": "跳转小程序类型" - }, - "language": { - "type": [ - "string", - "null" - ], - "description": "语言类型" - }, - "miniProgramPagePath": { - "type": [ - "string", - "null" - ], - "description": "点击模板卡片后的跳转页面(仅限本小程序内的页面),支持带参数(示例pages/app/index?foo=bar)" - } - }, - "additionalProperties": false, - "description": "发送订阅消息", - "x-apifox-orders": [ - "templateId", - "toUserOpenId", - "data", - "miniprogramState", - "language", - "miniProgramPagePath" - ] - } - } - }, - { - "name": "SignatureInput", - "displayName": "", - "id": "#/definitions/84275351", - "description": "获取配置签名", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "url": { - "type": [ - "string", - "null" - ], - "description": "Url" - } - }, - "additionalProperties": false, - "description": "获取配置签名", - "x-apifox-orders": [ - "url" - ] - } - } - }, - { - "name": "SmKeyPairOutput", - "displayName": "", - "id": "#/definitions/84275352", - "description": "国密公钥私钥对输出", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "privateKey": { - "type": [ - "string", - "null" - ], - "description": "私匙" - }, - "publicKey": { - "type": [ - "string", - "null" - ], - "description": "公匙" - } - }, - "additionalProperties": false, - "description": "国密公钥私钥对输出", - "x-apifox-orders": [ - "privateKey", - "publicKey" - ] - } - } - }, - { - "name": "SqlSugarPagedList_JobDetailOutput", - "displayName": "", - "id": "#/definitions/84275353", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275310" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_OpenAccessOutput", - "displayName": "", - "id": "#/definitions/84275354", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275328" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysCodeGen", - "displayName": "", - "id": "#/definitions/84275355", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275376" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysConfig", - "displayName": "", - "id": "#/definitions/84275356", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275378" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysDictData", - "displayName": "", - "id": "#/definitions/84275357", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275379" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysDictType", - "displayName": "", - "id": "#/definitions/84275358", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275380" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysFile", - "displayName": "", - "id": "#/definitions/84275359", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275381" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysJobTriggerRecord", - "displayName": "", - "id": "#/definitions/84275360", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275385" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysLogDiff", - "displayName": "", - "id": "#/definitions/84275361", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275386" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysLogEx", - "displayName": "", - "id": "#/definitions/84275362", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275387" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysLogOp", - "displayName": "", - "id": "#/definitions/84275363", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275388" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysLogVis", - "displayName": "", - "id": "#/definitions/84275364", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275389" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysNotice", - "displayName": "", - "id": "#/definitions/84275365", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275392" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysNoticeUser", - "displayName": "", - "id": "#/definitions/84275366", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275393" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysOnlineUser", - "displayName": "", - "id": "#/definitions/84275367", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275394" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysPlugin", - "displayName": "", - "id": "#/definitions/84275368", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275396" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysPrint", - "displayName": "", - "id": "#/definitions/84275369", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275398" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysRegion", - "displayName": "", - "id": "#/definitions/84275370", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275399" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysRole", - "displayName": "", - "id": "#/definitions/84275371", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275400" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_SysWechatUser", - "displayName": "", - "id": "#/definitions/84275372", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275404" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_TenantOutput", - "displayName": "", - "id": "#/definitions/84275373", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275408" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "SqlSugarPagedList_UserOutput", - "displayName": "", - "id": "#/definitions/84275374", - "description": "分页泛型集合", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页容量", - "format": "int32" - }, - "total": { - "type": "integer", - "description": "总条数", - "format": "int32" - }, - "totalPages": { - "type": "integer", - "description": "总页数", - "format": "int32" - }, - "items": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275434" - }, - "description": "当前页集合" - }, - "hasPrevPage": { - "type": "boolean", - "description": "是否有上一页" - }, - "hasNextPage": { - "type": "boolean", - "description": "是否有下一页" - } - }, - "additionalProperties": false, - "description": "分页泛型集合", - "x-apifox-orders": [ - "page", - "pageSize", - "total", - "totalPages", - "items", - "hasPrevPage", - "hasNextPage" - ] - } - } - }, - { - "name": "StatusEnum", - "displayName": "", - "id": "#/definitions/84275375", - "description": "通用状态枚举
 启用 Enable = 1
 停用 Disable = 2
", - "schema": { - "jsonSchema": { - "enum": [ - 1, - 2 - ], - "type": "integer", - "description": "通用状态枚举
 启用 Enable = 1
 停用 Disable = 2
", - "format": "int32" - } - } - }, - { - "name": "SysCodeGen", - "displayName": "", - "id": "#/definitions/84275376", - "description": "代码生成表", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "authorName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "作者姓名" - }, - "tablePrefix": { - "maxLength": 8, - "type": [ - "string", - "null" - ], - "description": "是否移除表前缀" - }, - "generateType": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "生成方式" - }, - "configId": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "库定位器名" - }, - "dbName": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "数据库名(保留字段)" - }, - "dbType": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "数据库类型" - }, - "connectionString": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "数据库链接" - }, - "tableName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "数据库表名" - }, - "nameSpace": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "命名空间" - }, - "busName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "业务名" - }, - "menuPid": { - "type": "integer", - "description": "菜单编码", - "format": "int64" - }, - "printType": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "支持打印类型" - }, - "printName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "打印模版名称" - } - }, - "additionalProperties": false, - "description": "代码生成表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "authorName", - "tablePrefix", - "generateType", - "configId", - "dbName", - "dbType", - "connectionString", - "tableName", - "nameSpace", - "busName", - "menuPid", - "printType", - "printName" - ] - } - } - }, - { - "name": "SysCodeGenConfig", - "displayName": "", - "id": "#/definitions/84275377", - "description": "代码生成字段配置表", - "schema": { - "jsonSchema": { - "required": [ - "columnName", - "propertyName" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "codeGenId": { - "type": "integer", - "description": "代码生成主表Id", - "format": "int64" - }, - "columnName": { - "maxLength": 128, - "minLength": 1, - "type": "string", - "description": "数据库字段名" - }, - "propertyName": { - "maxLength": 128, - "minLength": 1, - "type": "string", - "description": "实体属性名" - }, - "columnLength": { - "type": "integer", - "description": "字段数据长度", - "format": "int32" - }, - "columnComment": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "字段描述" - }, - "netType": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": ".NET数据类型" - }, - "effectType": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "作用类型(字典)" - }, - "fkEntityName": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "外键实体名称" - }, - "fkTableName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "外键表名称" - }, - "fkColumnName": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "外键显示字段" - }, - "fkColumnNetType": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "外键显示字段.NET类型" - }, - "dictTypeCode": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "字典编码" - }, - "whetherRetract": { - "maxLength": 8, - "type": [ - "string", - "null" - ], - "description": "列表是否缩进(字典)" - }, - "whetherRequired": { - "maxLength": 8, - "type": [ - "string", - "null" - ], - "description": "是否必填(字典)" - }, - "whetherSortable": { - "maxLength": 8, - "type": [ - "string", - "null" - ], - "description": "是否可排序(字典)" - }, - "queryWhether": { - "maxLength": 8, - "type": [ - "string", - "null" - ], - "description": "是否是查询条件" - }, - "queryType": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "查询方式" - }, - "whetherTable": { - "maxLength": 8, - "type": [ - "string", - "null" - ], - "description": "列表显示" - }, - "whetherAddUpdate": { - "maxLength": 8, - "type": [ - "string", - "null" - ], - "description": "增改" - }, - "columnKey": { - "maxLength": 8, - "type": [ - "string", - "null" - ], - "description": "主键" - }, - "dataType": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "数据库中类型(物理类型)" - }, - "whetherCommon": { - "maxLength": 8, - "type": [ - "string", - "null" - ], - "description": "是否通用字段" - }, - "displayColumn": { - "type": [ - "string", - "null" - ], - "description": "显示文本字段" - }, - "valueColumn": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "选中值字段" - }, - "pidColumn": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "父级字段" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - } - }, - "additionalProperties": false, - "description": "代码生成字段配置表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "codeGenId", - "columnName", - "propertyName", - "columnLength", - "columnComment", - "netType", - "effectType", - "fkEntityName", - "fkTableName", - "fkColumnName", - "fkColumnNetType", - "dictTypeCode", - "whetherRetract", - "whetherRequired", - "whetherSortable", - "queryWhether", - "queryType", - "whetherTable", - "whetherAddUpdate", - "columnKey", - "dataType", - "whetherCommon", - "displayColumn", - "valueColumn", - "pidColumn", - "orderNo" - ] - } - } - }, - { - "name": "SysConfig", - "displayName": "", - "id": "#/definitions/84275378", - "description": "系统参数配置表", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "value": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "属性值" - }, - "sysFlag": { - "$ref": "#/definitions/84275444" - }, - "groupCode": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "分组编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - } - }, - "additionalProperties": false, - "description": "系统参数配置表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "name", - "code", - "value", - "sysFlag", - "groupCode", - "orderNo", - "remark" - ] - } - } - }, - { - "name": "SysDictData", - "displayName": "", - "id": "#/definitions/84275379", - "description": "系统字典值表", - "schema": { - "jsonSchema": { - "required": [ - "code", - "value" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "dictTypeId": { - "type": "integer", - "description": "字典类型Id", - "format": "int64" - }, - "value": { - "maxLength": 128, - "minLength": 1, - "type": "string", - "description": "值" - }, - "code": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "编码" - }, - "tagType": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "显示样式-标签颜色" - }, - "styleSetting": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "显示样式-Style(控制显示样式)" - }, - "classSetting": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "显示样式-Class(控制显示样式)" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 2048, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "extData": { - "type": [ - "string", - "null" - ], - "description": "拓展数据(保存业务功能的配置项)" - }, - "status": { - "$ref": "#/definitions/84275375" - } - }, - "additionalProperties": false, - "description": "系统字典值表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "dictTypeId", - "value", - "code", - "tagType", - "styleSetting", - "classSetting", - "orderNo", - "remark", - "extData", - "status" - ] - } - } - }, - { - "name": "SysDictType", - "displayName": "", - "id": "#/definitions/84275380", - "description": "系统字典类型表", - "schema": { - "jsonSchema": { - "required": [ - "code", - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "code": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275379" - }, - "description": "字典值集合" - } - }, - "additionalProperties": false, - "description": "系统字典类型表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "name", - "code", - "orderNo", - "remark", - "status", - "children" - ] - } - } - }, - { - "name": "SysFile", - "displayName": "", - "id": "#/definitions/84275381", - "description": "系统文件表", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "provider": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "提供者" - }, - "bucketName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "仓储名称" - }, - "fileName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "文件名称(源文件名)" - }, - "suffix": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "文件后缀" - }, - "filePath": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "存储路径" - }, - "sizeKb": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "文件大小KB" - }, - "sizeInfo": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "文件大小信息-计算后的" - }, - "url": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "外链地址-OSS上传后生成外链地址方便前端预览" - }, - "fileMd5": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "文件MD5" - } - }, - "additionalProperties": false, - "description": "系统文件表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "provider", - "bucketName", - "fileName", - "suffix", - "filePath", - "sizeKb", - "sizeInfo", - "url", - "fileMd5" - ] - } - } - }, - { - "name": "SysJobCluster", - "displayName": "", - "id": "#/definitions/84275382", - "description": "系统作业集群表", - "schema": { - "jsonSchema": { - "required": [ - "clusterId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "clusterId": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "作业集群Id" - }, - "description": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "描述信息" - }, - "status": { - "$ref": "#/definitions/84275260" - }, - "updatedTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "系统作业集群表", - "x-apifox-orders": [ - "id", - "clusterId", - "description", - "status", - "updatedTime" - ] - } - } - }, - { - "name": "SysJobDetail", - "displayName": "", - "id": "#/definitions/84275383", - "description": "系统作业信息表", - "schema": { - "jsonSchema": { - "required": [ - "jobId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "jobId": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "作业Id" - }, - "groupName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "组名称" - }, - "jobType": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "作业类型FullName" - }, - "assemblyName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "程序集Name" - }, - "description": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "描述信息" - }, - "concurrent": { - "type": "boolean", - "description": "是否并行执行" - }, - "includeAnnotations": { - "type": "boolean", - "description": "是否扫描特性触发器" - }, - "properties": { - "type": [ - "string", - "null" - ], - "description": "额外数据" - }, - "updatedTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createType": { - "$ref": "#/definitions/84275308" - }, - "scriptCode": { - "type": [ - "string", - "null" - ], - "description": "脚本代码" - } - }, - "additionalProperties": false, - "description": "系统作业信息表", - "x-apifox-orders": [ - "id", - "jobId", - "groupName", - "jobType", - "assemblyName", - "description", - "concurrent", - "includeAnnotations", - "properties", - "updatedTime", - "createType", - "scriptCode" - ] - } - } - }, - { - "name": "SysJobTrigger", - "displayName": "", - "id": "#/definitions/84275384", - "description": "系统作业触发器表", - "schema": { - "jsonSchema": { - "required": [ - "jobId", - "triggerId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "triggerId": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "触发器Id" - }, - "jobId": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "作业Id" - }, - "triggerType": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "触发器类型FullName" - }, - "assemblyName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "程序集Name" - }, - "args": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "参数" - }, - "description": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "描述信息" - }, - "status": { - "$ref": "#/definitions/84275411" - }, - "startTime": { - "type": [ - "string", - "null" - ], - "description": "起始时间", - "format": "date-time" - }, - "endTime": { - "type": [ - "string", - "null" - ], - "description": "结束时间", - "format": "date-time" - }, - "lastRunTime": { - "type": [ - "string", - "null" - ], - "description": "最近运行时间", - "format": "date-time" - }, - "nextRunTime": { - "type": [ - "string", - "null" - ], - "description": "下一次运行时间", - "format": "date-time" - }, - "numberOfRuns": { - "type": "integer", - "description": "触发次数", - "format": "int64" - }, - "maxNumberOfRuns": { - "type": "integer", - "description": "最大触发次数(0:不限制,n:N次)", - "format": "int64" - }, - "numberOfErrors": { - "type": "integer", - "description": "出错次数", - "format": "int64" - }, - "maxNumberOfErrors": { - "type": "integer", - "description": "最大出错次数(0:不限制,n:N次)", - "format": "int64" - }, - "numRetries": { - "type": "integer", - "description": "重试次数", - "format": "int32" - }, - "retryTimeout": { - "type": "integer", - "description": "重试间隔时间(ms)", - "format": "int32" - }, - "startNow": { - "type": "boolean", - "description": "是否立即启动" - }, - "runOnStart": { - "type": "boolean", - "description": "是否启动时执行一次" - }, - "resetOnlyOnce": { - "type": "boolean", - "description": "是否在启动时重置最大触发次数等于一次的作业" - }, - "updatedTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "系统作业触发器表", - "x-apifox-orders": [ - "id", - "triggerId", - "jobId", - "triggerType", - "assemblyName", - "args", - "description", - "status", - "startTime", - "endTime", - "lastRunTime", - "nextRunTime", - "numberOfRuns", - "maxNumberOfRuns", - "numberOfErrors", - "maxNumberOfErrors", - "numRetries", - "retryTimeout", - "startNow", - "runOnStart", - "resetOnlyOnce", - "updatedTime" - ] - } - } - }, - { - "name": "SysJobTriggerRecord", - "displayName": "", - "id": "#/definitions/84275385", - "description": "系统作业触发器运行记录表", - "schema": { - "jsonSchema": { - "required": [ - "jobId", - "triggerId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "jobId": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "作业Id" - }, - "triggerId": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "触发器Id" - }, - "numberOfRuns": { - "type": "integer", - "description": "当前运行次数", - "format": "int64" - }, - "lastRunTime": { - "type": [ - "string", - "null" - ], - "description": "最近运行时间", - "format": "date-time" - }, - "nextRunTime": { - "type": [ - "string", - "null" - ], - "description": "下一次运行时间", - "format": "date-time" - }, - "status": { - "$ref": "#/definitions/84275411" - }, - "result": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "本次执行结果" - }, - "elapsedTime": { - "type": "integer", - "description": "本次执行耗时", - "format": "int64" - }, - "createdTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "系统作业触发器运行记录表", - "x-apifox-orders": [ - "id", - "jobId", - "triggerId", - "numberOfRuns", - "lastRunTime", - "nextRunTime", - "status", - "result", - "elapsedTime", - "createdTime" - ] - } - } - }, - { - "name": "SysLogDiff", - "displayName": "", - "id": "#/definitions/84275386", - "description": "系统差异日志表", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "beforeData": { - "type": [ - "string", - "null" - ], - "description": "操作前记录" - }, - "afterData": { - "type": [ - "string", - "null" - ], - "description": "操作后记录" - }, - "sql": { - "type": [ - "string", - "null" - ], - "description": "Sql" - }, - "parameters": { - "type": [ - "string", - "null" - ], - "description": "参数 手动传入的参数" - }, - "businessData": { - "type": [ - "string", - "null" - ], - "description": "业务对象" - }, - "diffType": { - "type": [ - "string", - "null" - ], - "description": "差异操作" - }, - "elapsed": { - "type": [ - "integer", - "null" - ], - "description": "耗时", - "format": "int64" - } - }, - "additionalProperties": false, - "description": "系统差异日志表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "beforeData", - "afterData", - "sql", - "parameters", - "businessData", - "diffType", - "elapsed" - ] - } - } - }, - { - "name": "SysLogEx", - "displayName": "", - "id": "#/definitions/84275387", - "description": "系统异常日志表", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "controllerName": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "模块名称" - }, - "actionName": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "方法名称" - }, - "displayTitle": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "显示名称" - }, - "status": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "执行状态" - }, - "remoteIp": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "IP地址" - }, - "location": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "登录地点" - }, - "longitude": { - "type": [ - "number", - "null" - ], - "description": "经度", - "format": "double" - }, - "latitude": { - "type": [ - "number", - "null" - ], - "description": "维度", - "format": "double" - }, - "browser": { - "maxLength": 1024, - "type": [ - "string", - "null" - ], - "description": "浏览器" - }, - "os": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "操作系统" - }, - "elapsed": { - "type": [ - "integer", - "null" - ], - "description": "操作用时", - "format": "int64" - }, - "logDateTime": { - "type": [ - "string", - "null" - ], - "description": "日志时间", - "format": "date-time" - }, - "logLevel": { - "$ref": "#/definitions/84275313" - }, - "account": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "账号" - }, - "realName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "真实姓名" - }, - "httpMethod": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "请求方式" - }, - "requestUrl": { - "type": [ - "string", - "null" - ], - "description": "请求地址" - }, - "requestParam": { - "type": [ - "string", - "null" - ], - "description": "请求参数" - }, - "returnResult": { - "type": [ - "string", - "null" - ], - "description": "返回结果" - }, - "eventId": { - "type": [ - "integer", - "null" - ], - "description": "事件Id", - "format": "int32" - }, - "threadId": { - "type": [ - "integer", - "null" - ], - "description": "线程Id", - "format": "int32" - }, - "traceId": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "请求跟踪Id" - }, - "exception": { - "type": [ - "string", - "null" - ], - "description": "异常信息" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "日志消息Json" - } - }, - "additionalProperties": false, - "description": "系统异常日志表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "controllerName", - "actionName", - "displayTitle", - "status", - "remoteIp", - "location", - "longitude", - "latitude", - "browser", - "os", - "elapsed", - "logDateTime", - "logLevel", - "account", - "realName", - "httpMethod", - "requestUrl", - "requestParam", - "returnResult", - "eventId", - "threadId", - "traceId", - "exception", - "message" - ] - } - } - }, - { - "name": "SysLogOp", - "displayName": "", - "id": "#/definitions/84275388", - "description": "系统操作日志表", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "controllerName": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "模块名称" - }, - "actionName": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "方法名称" - }, - "displayTitle": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "显示名称" - }, - "status": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "执行状态" - }, - "remoteIp": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "IP地址" - }, - "location": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "登录地点" - }, - "longitude": { - "type": [ - "number", - "null" - ], - "description": "经度", - "format": "double" - }, - "latitude": { - "type": [ - "number", - "null" - ], - "description": "维度", - "format": "double" - }, - "browser": { - "maxLength": 1024, - "type": [ - "string", - "null" - ], - "description": "浏览器" - }, - "os": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "操作系统" - }, - "elapsed": { - "type": [ - "integer", - "null" - ], - "description": "操作用时", - "format": "int64" - }, - "logDateTime": { - "type": [ - "string", - "null" - ], - "description": "日志时间", - "format": "date-time" - }, - "logLevel": { - "$ref": "#/definitions/84275313" - }, - "account": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "账号" - }, - "realName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "真实姓名" - }, - "httpMethod": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "请求方式" - }, - "requestUrl": { - "type": [ - "string", - "null" - ], - "description": "请求地址" - }, - "requestParam": { - "type": [ - "string", - "null" - ], - "description": "请求参数" - }, - "returnResult": { - "type": [ - "string", - "null" - ], - "description": "返回结果" - }, - "eventId": { - "type": [ - "integer", - "null" - ], - "description": "事件Id", - "format": "int32" - }, - "threadId": { - "type": [ - "integer", - "null" - ], - "description": "线程Id", - "format": "int32" - }, - "traceId": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "请求跟踪Id" - }, - "exception": { - "type": [ - "string", - "null" - ], - "description": "异常信息" - }, - "message": { - "type": [ - "string", - "null" - ], - "description": "日志消息Json" - } - }, - "additionalProperties": false, - "description": "系统操作日志表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "controllerName", - "actionName", - "displayTitle", - "status", - "remoteIp", - "location", - "longitude", - "latitude", - "browser", - "os", - "elapsed", - "logDateTime", - "logLevel", - "account", - "realName", - "httpMethod", - "requestUrl", - "requestParam", - "returnResult", - "eventId", - "threadId", - "traceId", - "exception", - "message" - ] - } - } - }, - { - "name": "SysLogVis", - "displayName": "", - "id": "#/definitions/84275389", - "description": "系统访问日志表", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "controllerName": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "模块名称" - }, - "actionName": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "方法名称" - }, - "displayTitle": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "显示名称" - }, - "status": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "执行状态" - }, - "remoteIp": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "IP地址" - }, - "location": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "登录地点" - }, - "longitude": { - "type": [ - "number", - "null" - ], - "description": "经度", - "format": "double" - }, - "latitude": { - "type": [ - "number", - "null" - ], - "description": "维度", - "format": "double" - }, - "browser": { - "maxLength": 1024, - "type": [ - "string", - "null" - ], - "description": "浏览器" - }, - "os": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "操作系统" - }, - "elapsed": { - "type": [ - "integer", - "null" - ], - "description": "操作用时", - "format": "int64" - }, - "logDateTime": { - "type": [ - "string", - "null" - ], - "description": "日志时间", - "format": "date-time" - }, - "logLevel": { - "$ref": "#/definitions/84275313" - }, - "account": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "账号" - }, - "realName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "真实姓名" - } - }, - "additionalProperties": false, - "description": "系统访问日志表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "controllerName", - "actionName", - "displayTitle", - "status", - "remoteIp", - "location", - "longitude", - "latitude", - "browser", - "os", - "elapsed", - "logDateTime", - "logLevel", - "account", - "realName" - ] - } - } - }, - { - "name": "SysMenu", - "displayName": "", - "id": "#/definitions/84275390", - "description": "系统菜单表", - "schema": { - "jsonSchema": { - "required": [ - "title" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "pid": { - "type": "integer", - "description": "父Id", - "format": "int64" - }, - "type": { - "$ref": "#/definitions/84275319" - }, - "name": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "路由名称" - }, - "path": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "路由地址" - }, - "component": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "组件路径" - }, - "redirect": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "重定向" - }, - "permission": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "权限标识" - }, - "title": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "菜单名称" - }, - "icon": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "图标" - }, - "isIframe": { - "type": "boolean", - "description": "是否内嵌" - }, - "outLink": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "外链链接" - }, - "isHide": { - "type": "boolean", - "description": "是否隐藏" - }, - "isKeepAlive": { - "type": "boolean", - "description": "是否缓存" - }, - "isAffix": { - "type": "boolean", - "description": "是否固定" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275390" - }, - "description": "菜单子项" - } - }, - "additionalProperties": false, - "description": "系统菜单表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "pid", - "type", - "name", - "path", - "component", - "redirect", - "permission", - "title", - "icon", - "isIframe", - "outLink", - "isHide", - "isKeepAlive", - "isAffix", - "orderNo", - "status", - "remark", - "children" - ] - } - } - }, - { - "name": "SysMenuMeta", - "displayName": "", - "id": "#/definitions/84275391", - "description": "菜单Meta配置", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "title": { - "type": [ - "string", - "null" - ], - "description": "标题" - }, - "icon": { - "type": [ - "string", - "null" - ], - "description": "图标" - }, - "isIframe": { - "type": "boolean", - "description": "是否内嵌" - }, - "isLink": { - "type": [ - "string", - "null" - ], - "description": "外链链接" - }, - "isHide": { - "type": "boolean", - "description": "是否隐藏" - }, - "isKeepAlive": { - "type": "boolean", - "description": "是否缓存" - }, - "isAffix": { - "type": "boolean", - "description": "是否固定" - } - }, - "additionalProperties": false, - "description": "菜单Meta配置", - "x-apifox-orders": [ - "title", - "icon", - "isIframe", - "isLink", - "isHide", - "isKeepAlive", - "isAffix" - ] - } - } - }, - { - "name": "SysNotice", - "displayName": "", - "id": "#/definitions/84275392", - "description": "系统通知公告表", - "schema": { - "jsonSchema": { - "required": [ - "content", - "title" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "title": { - "maxLength": 32, - "minLength": 1, - "type": "string", - "description": "标题" - }, - "content": { - "minLength": 1, - "type": "string", - "description": "内容" - }, - "type": { - "$ref": "#/definitions/84275325" - }, - "publicUserId": { - "type": "integer", - "description": "发布人Id", - "format": "int64" - }, - "publicUserName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "发布人姓名" - }, - "publicOrgId": { - "type": "integer", - "description": "发布机构Id", - "format": "int64" - }, - "publicOrgName": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "发布机构名称" - }, - "publicTime": { - "type": [ - "string", - "null" - ], - "description": "发布时间", - "format": "date-time" - }, - "cancelTime": { - "type": [ - "string", - "null" - ], - "description": "撤回时间", - "format": "date-time" - }, - "status": { - "$ref": "#/definitions/84275324" - } - }, - "additionalProperties": false, - "description": "系统通知公告表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "title", - "content", - "type", - "publicUserId", - "publicUserName", - "publicOrgId", - "publicOrgName", - "publicTime", - "cancelTime", - "status" - ] - } - } - }, - { - "name": "SysNoticeUser", - "displayName": "", - "id": "#/definitions/84275393", - "description": "系统通知公告用户表", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "noticeId": { - "type": "integer", - "description": "通知公告Id", - "format": "int64" - }, - "sysNotice": { - "$ref": "#/definitions/84275392" - }, - "userId": { - "type": "integer", - "description": "用户Id", - "format": "int64" - }, - "readTime": { - "type": [ - "string", - "null" - ], - "description": "阅读时间", - "format": "date-time" - }, - "readStatus": { - "$ref": "#/definitions/84275326" - } - }, - "additionalProperties": false, - "description": "系统通知公告用户表", - "x-apifox-orders": [ - "id", - "noticeId", - "sysNotice", - "userId", - "readTime", - "readStatus" - ] - } - } - }, - { - "name": "SysOnlineUser", - "displayName": "", - "id": "#/definitions/84275394", - "description": "系统在线用户表", - "schema": { - "jsonSchema": { - "required": [ - "userName" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "connectionId": { - "type": [ - "string", - "null" - ], - "description": "连接Id" - }, - "userId": { - "type": "integer", - "description": "用户Id", - "format": "int64" - }, - "userName": { - "maxLength": 32, - "minLength": 1, - "type": "string", - "description": "账号" - }, - "realName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "真实姓名" - }, - "time": { - "type": [ - "string", - "null" - ], - "description": "连接时间", - "format": "date-time" - }, - "ip": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "连接IP" - }, - "browser": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "浏览器" - }, - "os": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "操作系统" - } - }, - "additionalProperties": false, - "description": "系统在线用户表", - "x-apifox-orders": [ - "id", - "tenantId", - "connectionId", - "userId", - "userName", - "realName", - "time", - "ip", - "browser", - "os" - ] - } - } - }, - { - "name": "SysOrg", - "displayName": "", - "id": "#/definitions/84275395", - "description": "系统机构表", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "pid": { - "type": "integer", - "description": "父Id", - "format": "int64" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "level": { - "type": [ - "integer", - "null" - ], - "description": "级别", - "format": "int32" - }, - "type": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "机构类型-数据字典" - }, - "directorId": { - "type": [ - "integer", - "null" - ], - "description": "负责人Id", - "format": "int64" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275395" - }, - "description": "机构子项" - }, - "disabled": { - "type": "boolean", - "description": "是否禁止选中" - } - }, - "additionalProperties": false, - "description": "系统机构表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "pid", - "name", - "code", - "level", - "type", - "directorId", - "orderNo", - "status", - "remark", - "children", - "disabled" - ] - } - } - }, - { - "name": "SysPlugin", - "displayName": "", - "id": "#/definitions/84275396", - "description": "系统动态插件表", - "schema": { - "jsonSchema": { - "required": [ - "csharpCode", - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "csharpCode": { - "minLength": 1, - "type": "string", - "description": "C#代码" - }, - "assemblyName": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "程序集名称" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - } - }, - "additionalProperties": false, - "description": "系统动态插件表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "name", - "csharpCode", - "assemblyName", - "orderNo", - "status", - "remark" - ] - } - } - }, - { - "name": "SysPos", - "displayName": "", - "id": "#/definitions/84275397", - "description": "系统职位表", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - } - }, - "additionalProperties": false, - "description": "系统职位表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "name", - "code", - "orderNo", - "remark", - "status" - ] - } - } - }, - { - "name": "SysPrint", - "displayName": "", - "id": "#/definitions/84275398", - "description": "系统打印模板表", - "schema": { - "jsonSchema": { - "required": [ - "name", - "template" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "template": { - "minLength": 1, - "type": "string", - "description": "打印模板" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - } - }, - "additionalProperties": false, - "description": "系统打印模板表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "name", - "template", - "orderNo", - "status", - "remark" - ] - } - } - }, - { - "name": "SysRegion", - "displayName": "", - "id": "#/definitions/84275399", - "description": "系统行政地区表", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "pid": { - "type": "integer", - "description": "父Id", - "format": "int64" - }, - "name": { - "maxLength": 128, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "shortName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "简称" - }, - "mergerName": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "组合名" - }, - "code": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "行政代码" - }, - "zipCode": { - "maxLength": 6, - "type": [ - "string", - "null" - ], - "description": "邮政编码" - }, - "cityCode": { - "maxLength": 6, - "type": [ - "string", - "null" - ], - "description": "区号" - }, - "level": { - "type": "integer", - "description": "层级", - "format": "int32" - }, - "pinYin": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "拼音" - }, - "lng": { - "type": "number", - "description": "经度", - "format": "float" - }, - "lat": { - "type": "number", - "description": "维度", - "format": "float" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275399" - }, - "description": "机构子项" - } - }, - "additionalProperties": false, - "description": "系统行政地区表", - "x-apifox-orders": [ - "id", - "pid", - "name", - "shortName", - "mergerName", - "code", - "zipCode", - "cityCode", - "level", - "pinYin", - "lng", - "lat", - "orderNo", - "remark", - "children" - ] - } - } - }, - { - "name": "SysRole", - "displayName": "", - "id": "#/definitions/84275400", - "description": "系统角色表", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "dataScope": { - "$ref": "#/definitions/84275269" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - } - }, - "additionalProperties": false, - "description": "系统角色表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "name", - "code", - "orderNo", - "dataScope", - "remark", - "status" - ] - } - } - }, - { - "name": "SysUser", - "displayName": "", - "id": "#/definitions/84275401", - "description": "系统用户表", - "schema": { - "jsonSchema": { - "required": [ - "account" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "account": { - "maxLength": 32, - "minLength": 1, - "type": "string", - "description": "账号" - }, - "realName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "真实姓名" - }, - "nickName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "昵称" - }, - "avatar": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "头像" - }, - "sex": { - "$ref": "#/definitions/84275305" - }, - "age": { - "type": "integer", - "description": "年龄", - "format": "int32" - }, - "birthday": { - "type": [ - "string", - "null" - ], - "description": "出生日期", - "format": "date-time" - }, - "nation": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "民族" - }, - "phone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "手机号码" - }, - "cardType": { - "$ref": "#/definitions/84275258" - }, - "idCardNum": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "身份证号" - }, - "email": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "邮箱" - }, - "address": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "地址" - }, - "cultureLevel": { - "$ref": "#/definitions/84275267" - }, - "politicalOutlook": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "政治面貌" - }, - "college": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "毕业院校" - }, - "officePhone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "办公电话" - }, - "emergencyContact": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "紧急联系人" - }, - "emergencyPhone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "紧急联系人电话" - }, - "emergencyAddress": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "紧急联系人地址" - }, - "introduction": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "个人简介" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "accountType": { - "$ref": "#/definitions/84275167" - }, - "orgId": { - "type": "integer", - "description": "直属机构Id", - "format": "int64" - }, - "sysOrg": { - "$ref": "#/definitions/84275395" - }, - "managerUserId": { - "type": [ - "integer", - "null" - ], - "description": "直属主管Id", - "format": "int64" - }, - "posId": { - "type": "integer", - "description": "职位Id", - "format": "int64" - }, - "jobNum": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "工号" - }, - "posLevel": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "职级" - }, - "posTitle": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "职称" - }, - "expertise": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "擅长领域" - }, - "officeZone": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "办公区域" - }, - "office": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "办公室" - }, - "joinDate": { - "type": [ - "string", - "null" - ], - "description": "入职日期", - "format": "date-time" - }, - "lastLoginIp": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "最新登录Ip" - }, - "lastLoginAddress": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "最新登录地点" - }, - "lastLoginTime": { - "type": [ - "string", - "null" - ], - "description": "最新登录时间", - "format": "date-time" - }, - "lastLoginDevice": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "最新登录设备" - }, - "signature": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "电子签名" - } - }, - "additionalProperties": false, - "description": "系统用户表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "account", - "realName", - "nickName", - "avatar", - "sex", - "age", - "birthday", - "nation", - "phone", - "cardType", - "idCardNum", - "email", - "address", - "cultureLevel", - "politicalOutlook", - "college", - "officePhone", - "emergencyContact", - "emergencyPhone", - "emergencyAddress", - "introduction", - "orderNo", - "status", - "remark", - "accountType", - "orgId", - "sysOrg", - "managerUserId", - "posId", - "jobNum", - "posLevel", - "posTitle", - "expertise", - "officeZone", - "office", - "joinDate", - "lastLoginIp", - "lastLoginAddress", - "lastLoginTime", - "lastLoginDevice", - "signature" - ] - } - } - }, - { - "name": "SysUserExtOrg", - "displayName": "", - "id": "#/definitions/84275402", - "description": "系统用户扩展机构表", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "userId": { - "type": "integer", - "description": "用户Id", - "format": "int64" - }, - "orgId": { - "type": "integer", - "description": "机构Id", - "format": "int64" - }, - "posId": { - "type": "integer", - "description": "职位Id", - "format": "int64" - }, - "jobNum": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "工号" - }, - "posLevel": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "职级" - }, - "joinDate": { - "type": [ - "string", - "null" - ], - "description": "入职日期", - "format": "date-time" - } - }, - "additionalProperties": false, - "description": "系统用户扩展机构表", - "x-apifox-orders": [ - "id", - "userId", - "orgId", - "posId", - "jobNum", - "posLevel", - "joinDate" - ] - } - } - }, - { - "name": "SysWechatPay", - "displayName": "", - "id": "#/definitions/84275403", - "description": "系统微信支付表", - "schema": { - "jsonSchema": { - "required": [ - "appId", - "merchantId", - "outTradeNumber", - "transactionId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "merchantId": { - "minLength": 1, - "type": "string", - "description": "微信商户号" - }, - "appId": { - "minLength": 1, - "type": "string", - "description": "服务商AppId" - }, - "outTradeNumber": { - "minLength": 1, - "type": "string", - "description": "商户订单号" - }, - "transactionId": { - "minLength": 1, - "type": "string", - "description": "支付订单号" - }, - "tradeType": { - "type": [ - "string", - "null" - ], - "description": "交易类型" - }, - "tradeState": { - "type": [ - "string", - "null" - ], - "description": "交易状态" - }, - "tradeStateDescription": { - "type": [ - "string", - "null" - ], - "description": "交易状态描述" - }, - "bankType": { - "type": [ - "string", - "null" - ], - "description": "付款银行类型" - }, - "total": { - "type": "integer", - "description": "订单总金额", - "format": "int32" - }, - "payerTotal": { - "type": [ - "integer", - "null" - ], - "description": "用户支付金额", - "format": "int32" - }, - "successTime": { - "type": [ - "string", - "null" - ], - "description": "支付完成时间", - "format": "date-time" - }, - "expireTime": { - "type": [ - "string", - "null" - ], - "description": "交易结束时间", - "format": "date-time" - }, - "description": { - "type": [ - "string", - "null" - ], - "description": "商品描述" - }, - "scene": { - "type": [ - "string", - "null" - ], - "description": "场景信息" - }, - "attachment": { - "type": [ - "string", - "null" - ], - "description": "附加数据" - }, - "goodsTag": { - "type": [ - "string", - "null" - ], - "description": "优惠标记" - }, - "settlement": { - "type": [ - "string", - "null" - ], - "description": "结算信息" - }, - "notifyUrl": { - "type": [ - "string", - "null" - ], - "description": "回调通知地址" - }, - "remark": { - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "openId": { - "type": [ - "string", - "null" - ], - "description": "微信OpenId标识" - }, - "subMerchantId": { - "type": [ - "string", - "null" - ], - "description": "子商户号" - }, - "subAppId": { - "type": [ - "string", - "null" - ], - "description": "子商户AppId" - }, - "subOpenId": { - "type": [ - "string", - "null" - ], - "description": "子商户唯一标识" - } - }, - "additionalProperties": false, - "description": "系统微信支付表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "merchantId", - "appId", - "outTradeNumber", - "transactionId", - "tradeType", - "tradeState", - "tradeStateDescription", - "bankType", - "total", - "payerTotal", - "successTime", - "expireTime", - "description", - "scene", - "attachment", - "goodsTag", - "settlement", - "notifyUrl", - "remark", - "openId", - "subMerchantId", - "subAppId", - "subOpenId" - ] - } - } - }, - { - "name": "SysWechatUser", - "displayName": "", - "id": "#/definitions/84275404", - "description": "系统微信用户表", - "schema": { - "jsonSchema": { - "required": [ - "openId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "userId": { - "type": "integer", - "description": "系统用户Id", - "format": "int64" - }, - "platformType": { - "$ref": "#/definitions/84275344" - }, - "openId": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "OpenId" - }, - "sessionKey": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "会话密钥" - }, - "unionId": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "UnionId" - }, - "nickName": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "昵称" - }, - "avatar": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "头像" - }, - "mobile": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "手机号码" - }, - "sex": { - "type": [ - "integer", - "null" - ], - "description": "性别", - "format": "int32" - }, - "language": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "语言" - }, - "city": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "城市" - }, - "province": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "省" - }, - "country": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "国家" - }, - "accessToken": { - "type": [ - "string", - "null" - ], - "description": "AccessToken" - }, - "refreshToken": { - "type": [ - "string", - "null" - ], - "description": "RefreshToken" - }, - "expiresIn": { - "type": [ - "integer", - "null" - ], - "description": "过期时间", - "format": "int32" - }, - "scope": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "用户授权的作用域,使用逗号分隔" - } - }, - "additionalProperties": false, - "description": "系统微信用户表", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "userId", - "platformType", - "openId", - "sessionKey", - "unionId", - "nickName", - "avatar", - "mobile", - "sex", - "language", - "city", - "province", - "country", - "accessToken", - "refreshToken", - "expiresIn", - "scope" - ] - } - } - }, - { - "name": "TableOutput", - "displayName": "", - "id": "#/definitions/84275405", - "description": "数据库表", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "configId": { - "type": [ - "string", - "null" - ], - "description": "库定位器名" - }, - "tableName": { - "type": [ - "string", - "null" - ], - "description": "表名(字母形式的)" - }, - "entityName": { - "type": [ - "string", - "null" - ], - "description": "实体名称" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间" - }, - "tableComment": { - "type": [ - "string", - "null" - ], - "description": "表名称描述(功能名)" - } - }, - "additionalProperties": false, - "description": "数据库表", - "x-apifox-orders": [ - "configId", - "tableName", - "entityName", - "createTime", - "updateTime", - "tableComment" - ] - } - } - }, - { - "name": "TenantIdInput", - "displayName": "", - "id": "#/definitions/84275406", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "tenantId": { - "type": "integer", - "description": "租户Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "tenantId" - ] - } - } - }, - { - "name": "TenantInput", - "displayName": "", - "id": "#/definitions/84275407", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - }, - "status": { - "$ref": "#/definitions/84275375" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "status" - ] - } - } - }, - { - "name": "TenantOutput", - "displayName": "", - "id": "#/definitions/84275408", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "userId": { - "type": "integer", - "description": "用户Id", - "format": "int64" - }, - "orgId": { - "type": "integer", - "description": "机构Id", - "format": "int64" - }, - "host": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "主机" - }, - "tenantType": { - "$ref": "#/definitions/84275409" - }, - "dbType": { - "$ref": "#/definitions/84275276" - }, - "connection": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "数据库连接" - }, - "configId": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "数据库标识" - }, - "slaveConnections": { - "type": [ - "string", - "null" - ], - "description": "从库连接/读写分离" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "name": { - "type": [ - "string", - "null" - ], - "description": "租户名称" - }, - "adminAccount": { - "type": [ - "string", - "null" - ], - "description": "管理员账号" - }, - "email": { - "type": [ - "string", - "null" - ], - "description": "电子邮箱" - }, - "phone": { - "type": [ - "string", - "null" - ], - "description": "电话" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "userId", - "orgId", - "host", - "tenantType", - "dbType", - "connection", - "configId", - "slaveConnections", - "orderNo", - "remark", - "status", - "name", - "adminAccount", - "email", - "phone" - ] - } - } - }, - { - "name": "TenantTypeEnum", - "displayName": "", - "id": "#/definitions/84275409", - "description": "租户类型枚举
 Id隔离 Id = 0
 库隔离 Db = 1
", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1 - ], - "type": "integer", - "description": "租户类型枚举
 Id隔离 Id = 0
 库隔离 Db = 1
", - "format": "int32" - } - } - }, - { - "name": "TenantUserInput", - "displayName": "", - "id": "#/definitions/84275410", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "userId": { - "type": "integer", - "description": "用户Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "userId" - ] - } - } - }, - { - "name": "TriggerStatus", - "displayName": "", - "id": "#/definitions/84275411", - "description": "
  Backlog = 0
  Ready = 1
  Running = 2
  Pause = 3
  Blocked = 4
  ErrorToReady = 5
  Archived = 6
  Panic = 7
  Overrun = 8
  Unoccupied = 9
  NotStart = 10
  Unknown = 11
  Unhandled = 12
", - "schema": { - "jsonSchema": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12 - ], - "type": "integer", - "description": "
  Backlog = 0
  Ready = 1
  Running = 2
  Pause = 3
  Blocked = 4
  ErrorToReady = 5
  Archived = 6
  Panic = 7
  Overrun = 8
  Unoccupied = 9
  NotStart = 10
  Unknown = 11
  Unhandled = 12
", - "format": "int32" - } - } - }, - { - "name": "UnlockLoginInput", - "displayName": "", - "id": "#/definitions/84275412", - "description": "解除登录锁定输入参数", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - } - }, - "additionalProperties": false, - "description": "解除登录锁定输入参数", - "x-apifox-orders": [ - "id" - ] - } - } - }, - { - "name": "UpdateCodeGenInput", - "displayName": "", - "id": "#/definitions/84275413", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "authorName": { - "type": [ - "string", - "null" - ], - "description": "作者姓名" - }, - "className": { - "type": [ - "string", - "null" - ], - "description": "类名" - }, - "tablePrefix": { - "type": [ - "string", - "null" - ], - "description": "是否移除表前缀" - }, - "configId": { - "type": [ - "string", - "null" - ], - "description": "库定位器名" - }, - "dbName": { - "type": [ - "string", - "null" - ], - "description": "数据库名(保留字段)" - }, - "dbType": { - "type": [ - "string", - "null" - ], - "description": "数据库类型" - }, - "connectionString": { - "type": [ - "string", - "null" - ], - "description": "数据库链接" - }, - "generateType": { - "type": [ - "string", - "null" - ], - "description": "生成方式" - }, - "tableName": { - "type": [ - "string", - "null" - ], - "description": "数据库表名" - }, - "nameSpace": { - "type": [ - "string", - "null" - ], - "description": "命名空间" - }, - "busName": { - "type": [ - "string", - "null" - ], - "description": "业务名(业务代码包名称)" - }, - "tableComment": { - "type": [ - "string", - "null" - ], - "description": "功能名(数据库表名称)" - }, - "menuApplication": { - "type": [ - "string", - "null" - ], - "description": "菜单应用分类(应用编码)" - }, - "menuPid": { - "type": "integer", - "description": "菜单父级", - "format": "int64" - }, - "printType": { - "type": [ - "string", - "null" - ], - "description": "支持打印类型" - }, - "printName": { - "type": [ - "string", - "null" - ], - "description": "打印模版名称" - }, - "id": { - "type": "integer", - "description": "代码生成器Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "authorName", - "className", - "tablePrefix", - "configId", - "dbName", - "dbType", - "connectionString", - "generateType", - "tableName", - "nameSpace", - "busName", - "tableComment", - "menuApplication", - "menuPid", - "printType", - "printName", - "id" - ] - } - } - }, - { - "name": "UpdateConfigInput", - "displayName": "", - "id": "#/definitions/84275414", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "value": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "属性值" - }, - "sysFlag": { - "$ref": "#/definitions/84275444" - }, - "groupCode": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "分组编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "name", - "code", - "value", - "sysFlag", - "groupCode", - "orderNo", - "remark" - ] - } - } - }, - { - "name": "UpdateDbColumnInput", - "displayName": "", - "id": "#/definitions/84275415", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "configId": { - "type": [ - "string", - "null" - ] - }, - "tableName": { - "type": [ - "string", - "null" - ] - }, - "columnName": { - "type": [ - "string", - "null" - ] - }, - "oldColumnName": { - "type": [ - "string", - "null" - ] - }, - "description": { - "type": [ - "string", - "null" - ] - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "configId", - "tableName", - "columnName", - "oldColumnName", - "description" - ] - } - } - }, - { - "name": "UpdateDbTableInput", - "displayName": "", - "id": "#/definitions/84275416", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "configId": { - "type": [ - "string", - "null" - ] - }, - "tableName": { - "type": [ - "string", - "null" - ] - }, - "oldTableName": { - "type": [ - "string", - "null" - ] - }, - "description": { - "type": [ - "string", - "null" - ] - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "configId", - "tableName", - "oldTableName", - "description" - ] - } - } - }, - { - "name": "UpdateDictDataInput", - "displayName": "", - "id": "#/definitions/84275417", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "code", - "value" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "dictTypeId": { - "type": "integer", - "description": "字典类型Id", - "format": "int64" - }, - "value": { - "maxLength": 128, - "minLength": 1, - "type": "string", - "description": "值" - }, - "code": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "编码" - }, - "tagType": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "显示样式-标签颜色" - }, - "styleSetting": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "显示样式-Style(控制显示样式)" - }, - "classSetting": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "显示样式-Class(控制显示样式)" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 2048, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "extData": { - "type": [ - "string", - "null" - ], - "description": "拓展数据(保存业务功能的配置项)" - }, - "status": { - "$ref": "#/definitions/84275375" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "dictTypeId", - "value", - "code", - "tagType", - "styleSetting", - "classSetting", - "orderNo", - "remark", - "extData", - "status" - ] - } - } - }, - { - "name": "UpdateDictTypeInput", - "displayName": "", - "id": "#/definitions/84275418", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "code", - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "name": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "名称" - }, - "code": { - "maxLength": 64, - "minLength": 1, - "type": "string", - "description": "编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275379" - }, - "description": "字典值集合" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "name", - "code", - "orderNo", - "remark", - "status", - "children" - ] - } - } - }, - { - "name": "UpdateJobDetailInput", - "displayName": "", - "id": "#/definitions/84275419", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "jobId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "groupName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "组名称" - }, - "jobType": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "作业类型FullName" - }, - "assemblyName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "程序集Name" - }, - "description": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "描述信息" - }, - "concurrent": { - "type": "boolean", - "description": "是否并行执行" - }, - "includeAnnotations": { - "type": "boolean", - "description": "是否扫描特性触发器" - }, - "properties": { - "type": [ - "string", - "null" - ], - "description": "额外数据" - }, - "updatedTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createType": { - "$ref": "#/definitions/84275308" - }, - "scriptCode": { - "type": [ - "string", - "null" - ], - "description": "脚本代码" - }, - "jobId": { - "minLength": 2, - "type": "string", - "description": "作业Id" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "groupName", - "jobType", - "assemblyName", - "description", - "concurrent", - "includeAnnotations", - "properties", - "updatedTime", - "createType", - "scriptCode", - "jobId" - ] - } - } - }, - { - "name": "UpdateJobTriggerInput", - "displayName": "", - "id": "#/definitions/84275420", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "jobId", - "triggerId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "triggerType": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "触发器类型FullName" - }, - "assemblyName": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "程序集Name" - }, - "args": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "参数" - }, - "description": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "描述信息" - }, - "status": { - "$ref": "#/definitions/84275411" - }, - "startTime": { - "type": [ - "string", - "null" - ], - "description": "起始时间", - "format": "date-time" - }, - "endTime": { - "type": [ - "string", - "null" - ], - "description": "结束时间", - "format": "date-time" - }, - "lastRunTime": { - "type": [ - "string", - "null" - ], - "description": "最近运行时间", - "format": "date-time" - }, - "nextRunTime": { - "type": [ - "string", - "null" - ], - "description": "下一次运行时间", - "format": "date-time" - }, - "numberOfRuns": { - "type": "integer", - "description": "触发次数", - "format": "int64" - }, - "maxNumberOfRuns": { - "type": "integer", - "description": "最大触发次数(0:不限制,n:N次)", - "format": "int64" - }, - "numberOfErrors": { - "type": "integer", - "description": "出错次数", - "format": "int64" - }, - "maxNumberOfErrors": { - "type": "integer", - "description": "最大出错次数(0:不限制,n:N次)", - "format": "int64" - }, - "numRetries": { - "type": "integer", - "description": "重试次数", - "format": "int32" - }, - "retryTimeout": { - "type": "integer", - "description": "重试间隔时间(ms)", - "format": "int32" - }, - "startNow": { - "type": "boolean", - "description": "是否立即启动" - }, - "runOnStart": { - "type": "boolean", - "description": "是否启动时执行一次" - }, - "resetOnlyOnce": { - "type": "boolean", - "description": "是否在启动时重置最大触发次数等于一次的作业" - }, - "updatedTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "jobId": { - "minLength": 2, - "type": "string", - "description": "作业Id" - }, - "triggerId": { - "minLength": 2, - "type": "string", - "description": "触发器Id" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "triggerType", - "assemblyName", - "args", - "description", - "status", - "startTime", - "endTime", - "lastRunTime", - "nextRunTime", - "numberOfRuns", - "maxNumberOfRuns", - "numberOfErrors", - "maxNumberOfErrors", - "numRetries", - "retryTimeout", - "startNow", - "runOnStart", - "resetOnlyOnce", - "updatedTime", - "jobId", - "triggerId" - ] - } - } - }, - { - "name": "UpdateMenuInput", - "displayName": "", - "id": "#/definitions/84275421", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "title" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "pid": { - "type": "integer", - "description": "父Id", - "format": "int64" - }, - "type": { - "$ref": "#/definitions/84275319" - }, - "name": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "路由名称" - }, - "path": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "路由地址" - }, - "component": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "组件路径" - }, - "redirect": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "重定向" - }, - "permission": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "权限标识" - }, - "icon": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "图标" - }, - "isIframe": { - "type": "boolean", - "description": "是否内嵌" - }, - "outLink": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "外链链接" - }, - "isHide": { - "type": "boolean", - "description": "是否隐藏" - }, - "isKeepAlive": { - "type": "boolean", - "description": "是否缓存" - }, - "isAffix": { - "type": "boolean", - "description": "是否固定" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275390" - }, - "description": "菜单子项" - }, - "title": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "pid", - "type", - "name", - "path", - "component", - "redirect", - "permission", - "icon", - "isIframe", - "outLink", - "isHide", - "isKeepAlive", - "isAffix", - "orderNo", - "status", - "remark", - "children", - "title" - ] - } - } - }, - { - "name": "UpdateNoticeInput", - "displayName": "", - "id": "#/definitions/84275422", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "content", - "title" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "title": { - "maxLength": 32, - "minLength": 1, - "type": "string", - "description": "标题" - }, - "content": { - "minLength": 1, - "type": "string", - "description": "内容" - }, - "type": { - "$ref": "#/definitions/84275325" - }, - "publicUserId": { - "type": "integer", - "description": "发布人Id", - "format": "int64" - }, - "publicUserName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "发布人姓名" - }, - "publicOrgId": { - "type": "integer", - "description": "发布机构Id", - "format": "int64" - }, - "publicOrgName": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "发布机构名称" - }, - "publicTime": { - "type": [ - "string", - "null" - ], - "description": "发布时间", - "format": "date-time" - }, - "cancelTime": { - "type": [ - "string", - "null" - ], - "description": "撤回时间", - "format": "date-time" - }, - "status": { - "$ref": "#/definitions/84275324" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "title", - "content", - "type", - "publicUserId", - "publicUserName", - "publicOrgId", - "publicOrgName", - "publicTime", - "cancelTime", - "status" - ] - } - } - }, - { - "name": "UpdateOpenAccessInput", - "displayName": "", - "id": "#/definitions/84275423", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "accessKey", - "accessSecret", - "bindUserId" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "bindTenantId": { - "type": "integer", - "description": "绑定租户Id", - "format": "int64" - }, - "accessKey": { - "minLength": 1, - "type": "string", - "description": "身份标识" - }, - "accessSecret": { - "minLength": 1, - "type": "string", - "description": "密钥" - }, - "bindUserId": { - "type": "integer", - "description": "绑定用户Id", - "format": "int64" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "bindTenantId", - "accessKey", - "accessSecret", - "bindUserId" - ] - } - } - }, - { - "name": "UpdateOrgInput", - "displayName": "", - "id": "#/definitions/84275424", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "pid": { - "type": "integer", - "description": "父Id", - "format": "int64" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "level": { - "type": [ - "integer", - "null" - ], - "description": "级别", - "format": "int32" - }, - "type": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "机构类型-数据字典" - }, - "directorId": { - "type": [ - "integer", - "null" - ], - "description": "负责人Id", - "format": "int64" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275395" - }, - "description": "机构子项" - }, - "disabled": { - "type": "boolean", - "description": "是否禁止选中" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "pid", - "code", - "level", - "type", - "directorId", - "orderNo", - "status", - "remark", - "children", - "disabled", - "name" - ] - } - } - }, - { - "name": "UpdatePluginInput", - "displayName": "", - "id": "#/definitions/84275425", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "csharpCode", - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "csharpCode": { - "minLength": 1, - "type": "string", - "description": "C#代码" - }, - "assemblyName": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "程序集名称" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "csharpCode", - "assemblyName", - "orderNo", - "status", - "remark", - "name" - ] - } - } - }, - { - "name": "UpdatePosInput", - "displayName": "", - "id": "#/definitions/84275426", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "code", - "orderNo", - "remark", - "status", - "name" - ] - } - } - }, - { - "name": "UpdatePrintInput", - "displayName": "", - "id": "#/definitions/84275427", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name", - "template" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "template": { - "minLength": 1, - "type": "string", - "description": "打印模板" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "template", - "orderNo", - "status", - "remark", - "name" - ] - } - } - }, - { - "name": "UpdateRegionInput", - "displayName": "", - "id": "#/definitions/84275428", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "pid": { - "type": "integer", - "description": "父Id", - "format": "int64" - }, - "shortName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "简称" - }, - "mergerName": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "组合名" - }, - "code": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "行政代码" - }, - "zipCode": { - "maxLength": 6, - "type": [ - "string", - "null" - ], - "description": "邮政编码" - }, - "cityCode": { - "maxLength": 6, - "type": [ - "string", - "null" - ], - "description": "区号" - }, - "level": { - "type": "integer", - "description": "层级", - "format": "int32" - }, - "pinYin": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "拼音" - }, - "lng": { - "type": "number", - "description": "经度", - "format": "float" - }, - "lat": { - "type": "number", - "description": "维度", - "format": "float" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "children": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275399" - }, - "description": "机构子项" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "pid", - "shortName", - "mergerName", - "code", - "zipCode", - "cityCode", - "level", - "pinYin", - "lng", - "lat", - "orderNo", - "remark", - "children", - "name" - ] - } - } - }, - { - "name": "UpdateRoleInput", - "displayName": "", - "id": "#/definitions/84275429", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "code": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "编码" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "dataScope": { - "$ref": "#/definitions/84275269" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "name": { - "minLength": 1, - "type": "string", - "description": "名称" - }, - "menuIdList": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer", - "format": "int64" - }, - "description": "菜单Id集合" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "code", - "orderNo", - "dataScope", - "remark", - "status", - "name", - "menuIdList" - ] - } - } - }, - { - "name": "UpdateTenantInput", - "displayName": "", - "id": "#/definitions/84275430", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "adminAccount", - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "userId": { - "type": "integer", - "description": "用户Id", - "format": "int64" - }, - "orgId": { - "type": "integer", - "description": "机构Id", - "format": "int64" - }, - "host": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "主机" - }, - "tenantType": { - "$ref": "#/definitions/84275409" - }, - "dbType": { - "$ref": "#/definitions/84275276" - }, - "connection": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "数据库连接" - }, - "configId": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "数据库标识" - }, - "slaveConnections": { - "type": [ - "string", - "null" - ], - "description": "从库连接/读写分离" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "remark": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "email": { - "type": [ - "string", - "null" - ], - "description": "电子邮箱" - }, - "phone": { - "type": [ - "string", - "null" - ], - "description": "电话" - }, - "name": { - "minLength": 2, - "type": "string", - "description": "租户名称" - }, - "adminAccount": { - "minLength": 3, - "type": "string", - "description": "租管账号" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "userId", - "orgId", - "host", - "tenantType", - "dbType", - "connection", - "configId", - "slaveConnections", - "orderNo", - "remark", - "status", - "email", - "phone", - "name", - "adminAccount" - ] - } - } - }, - { - "name": "UpdateUserInput", - "displayName": "", - "id": "#/definitions/84275431", - "description": "更新用户输入参数", - "schema": { - "jsonSchema": { - "required": [ - "account", - "realName" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "nickName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "昵称" - }, - "avatar": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "头像" - }, - "sex": { - "$ref": "#/definitions/84275305" - }, - "age": { - "type": "integer", - "description": "年龄", - "format": "int32" - }, - "birthday": { - "type": [ - "string", - "null" - ], - "description": "出生日期", - "format": "date-time" - }, - "nation": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "民族" - }, - "phone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "手机号码" - }, - "cardType": { - "$ref": "#/definitions/84275258" - }, - "idCardNum": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "身份证号" - }, - "email": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "邮箱" - }, - "address": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "地址" - }, - "cultureLevel": { - "$ref": "#/definitions/84275267" - }, - "politicalOutlook": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "政治面貌" - }, - "college": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "毕业院校" - }, - "officePhone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "办公电话" - }, - "emergencyContact": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "紧急联系人" - }, - "emergencyPhone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "紧急联系人电话" - }, - "emergencyAddress": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "紧急联系人地址" - }, - "introduction": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "个人简介" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "accountType": { - "$ref": "#/definitions/84275167" - }, - "orgId": { - "type": "integer", - "description": "直属机构Id", - "format": "int64" - }, - "sysOrg": { - "$ref": "#/definitions/84275395" - }, - "managerUserId": { - "type": [ - "integer", - "null" - ], - "description": "直属主管Id", - "format": "int64" - }, - "posId": { - "type": "integer", - "description": "职位Id", - "format": "int64" - }, - "jobNum": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "工号" - }, - "posLevel": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "职级" - }, - "posTitle": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "职称" - }, - "expertise": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "擅长领域" - }, - "officeZone": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "办公区域" - }, - "office": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "办公室" - }, - "joinDate": { - "type": [ - "string", - "null" - ], - "description": "入职日期", - "format": "date-time" - }, - "lastLoginIp": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "最新登录Ip" - }, - "lastLoginAddress": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "最新登录地点" - }, - "lastLoginTime": { - "type": [ - "string", - "null" - ], - "description": "最新登录时间", - "format": "date-time" - }, - "lastLoginDevice": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "最新登录设备" - }, - "signature": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "电子签名" - }, - "account": { - "minLength": 1, - "type": "string", - "description": "账号" - }, - "realName": { - "minLength": 1, - "type": "string", - "description": "真实姓名" - }, - "roleIdList": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer", - "format": "int64" - }, - "description": "角色集合" - }, - "extOrgIdList": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/definitions/84275402" - }, - "description": "扩展机构集合" - } - }, - "additionalProperties": false, - "description": "更新用户输入参数", - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "nickName", - "avatar", - "sex", - "age", - "birthday", - "nation", - "phone", - "cardType", - "idCardNum", - "email", - "address", - "cultureLevel", - "politicalOutlook", - "college", - "officePhone", - "emergencyContact", - "emergencyPhone", - "emergencyAddress", - "introduction", - "orderNo", - "status", - "remark", - "accountType", - "orgId", - "sysOrg", - "managerUserId", - "posId", - "jobNum", - "posLevel", - "posTitle", - "expertise", - "officeZone", - "office", - "joinDate", - "lastLoginIp", - "lastLoginAddress", - "lastLoginTime", - "lastLoginDevice", - "signature", - "account", - "realName", - "roleIdList", - "extOrgIdList" - ] - } - } - }, - { - "name": "UploadFileFromBase64Input", - "displayName": "", - "id": "#/definitions/84275432", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "fileDataBase64": { - "type": [ - "string", - "null" - ], - "description": "文件内容" - }, - "contentType": { - "type": [ - "string", - "null" - ], - "description": "文件类型( \"image/jpeg\",)" - }, - "fileName": { - "type": [ - "string", - "null" - ], - "description": "文件名称" - }, - "path": { - "type": [ - "string", - "null" - ], - "description": "保存路径" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "fileDataBase64", - "contentType", - "fileName", - "path" - ] - } - } - }, - { - "name": "UserInput", - "displayName": "", - "id": "#/definitions/84275433", - "description": "设置用户状态输入参数", - "schema": { - "jsonSchema": { - "required": [ - "id" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "主键Id", - "format": "int64" - }, - "status": { - "$ref": "#/definitions/84275375" - } - }, - "additionalProperties": false, - "description": "设置用户状态输入参数", - "x-apifox-orders": [ - "id", - "status" - ] - } - } - }, - { - "name": "UserOutput", - "displayName": "", - "id": "#/definitions/84275434", - "description": "", - "schema": { - "jsonSchema": { - "required": [ - "account" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "description": "雪花Id", - "format": "int64" - }, - "createTime": { - "type": [ - "string", - "null" - ], - "description": "创建时间", - "format": "date-time" - }, - "updateTime": { - "type": [ - "string", - "null" - ], - "description": "更新时间", - "format": "date-time" - }, - "createUserId": { - "type": [ - "integer", - "null" - ], - "description": "创建者Id", - "format": "int64" - }, - "createUserName": { - "type": [ - "string", - "null" - ], - "description": "创建者姓名" - }, - "updateUserId": { - "type": [ - "integer", - "null" - ], - "description": "修改者Id", - "format": "int64" - }, - "updateUserName": { - "type": [ - "string", - "null" - ], - "description": "修改者姓名" - }, - "isDelete": { - "type": "boolean", - "description": "软删除" - }, - "tenantId": { - "type": [ - "integer", - "null" - ], - "description": "租户Id", - "format": "int64" - }, - "account": { - "maxLength": 32, - "minLength": 1, - "type": "string", - "description": "账号" - }, - "realName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "真实姓名" - }, - "nickName": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "昵称" - }, - "avatar": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "头像" - }, - "sex": { - "$ref": "#/definitions/84275305" - }, - "age": { - "type": "integer", - "description": "年龄", - "format": "int32" - }, - "birthday": { - "type": [ - "string", - "null" - ], - "description": "出生日期", - "format": "date-time" - }, - "nation": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "民族" - }, - "phone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "手机号码" - }, - "cardType": { - "$ref": "#/definitions/84275258" - }, - "idCardNum": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "身份证号" - }, - "email": { - "maxLength": 64, - "type": [ - "string", - "null" - ], - "description": "邮箱" - }, - "address": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "地址" - }, - "cultureLevel": { - "$ref": "#/definitions/84275267" - }, - "politicalOutlook": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "政治面貌" - }, - "college": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "毕业院校" - }, - "officePhone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "办公电话" - }, - "emergencyContact": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "紧急联系人" - }, - "emergencyPhone": { - "maxLength": 16, - "type": [ - "string", - "null" - ], - "description": "紧急联系人电话" - }, - "emergencyAddress": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "紧急联系人地址" - }, - "introduction": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "个人简介" - }, - "orderNo": { - "type": "integer", - "description": "排序", - "format": "int32" - }, - "status": { - "$ref": "#/definitions/84275375" - }, - "remark": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "备注" - }, - "accountType": { - "$ref": "#/definitions/84275167" - }, - "orgId": { - "type": "integer", - "description": "直属机构Id", - "format": "int64" - }, - "sysOrg": { - "$ref": "#/definitions/84275395" - }, - "managerUserId": { - "type": [ - "integer", - "null" - ], - "description": "直属主管Id", - "format": "int64" - }, - "posId": { - "type": "integer", - "description": "职位Id", - "format": "int64" - }, - "jobNum": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "工号" - }, - "posLevel": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "职级" - }, - "posTitle": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "职称" - }, - "expertise": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "擅长领域" - }, - "officeZone": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "办公区域" - }, - "office": { - "maxLength": 32, - "type": [ - "string", - "null" - ], - "description": "办公室" - }, - "joinDate": { - "type": [ - "string", - "null" - ], - "description": "入职日期", - "format": "date-time" - }, - "lastLoginIp": { - "maxLength": 256, - "type": [ - "string", - "null" - ], - "description": "最新登录Ip" - }, - "lastLoginAddress": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "最新登录地点" - }, - "lastLoginTime": { - "type": [ - "string", - "null" - ], - "description": "最新登录时间", - "format": "date-time" - }, - "lastLoginDevice": { - "maxLength": 128, - "type": [ - "string", - "null" - ], - "description": "最新登录设备" - }, - "signature": { - "maxLength": 512, - "type": [ - "string", - "null" - ], - "description": "电子签名" - }, - "orgName": { - "type": [ - "string", - "null" - ], - "description": "机构名称" - }, - "posName": { - "type": [ - "string", - "null" - ], - "description": "职位名称" - }, - "roleName": { - "type": [ - "string", - "null" - ], - "description": "角色名称" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "id", - "createTime", - "updateTime", - "createUserId", - "createUserName", - "updateUserId", - "updateUserName", - "isDelete", - "tenantId", - "account", - "realName", - "nickName", - "avatar", - "sex", - "age", - "birthday", - "nation", - "phone", - "cardType", - "idCardNum", - "email", - "address", - "cultureLevel", - "politicalOutlook", - "college", - "officePhone", - "emergencyContact", - "emergencyPhone", - "emergencyAddress", - "introduction", - "orderNo", - "status", - "remark", - "accountType", - "orgId", - "sysOrg", - "managerUserId", - "posId", - "jobNum", - "posLevel", - "posTitle", - "expertise", - "officeZone", - "office", - "joinDate", - "lastLoginIp", - "lastLoginAddress", - "lastLoginTime", - "lastLoginDevice", - "signature", - "orgName", - "posName", - "roleName" - ] - } - } - }, - { - "name": "UserRoleInput", - "displayName": "", - "id": "#/definitions/84275435", - "description": "授权用户角色", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "userId": { - "type": "integer", - "description": "用户Id", - "format": "int64" - }, - "roleIdList": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer", - "format": "int64" - }, - "description": "角色Id集合" - } - }, - "additionalProperties": false, - "description": "授权用户角色", - "x-apifox-orders": [ - "userId", - "roleIdList" - ] - } - } - }, - { - "name": "WechatPayOutput", - "displayName": "", - "id": "#/definitions/84275436", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "openId": { - "type": [ - "string", - "null" - ], - "description": "OpenId" - }, - "total": { - "type": "integer", - "description": "订单金额", - "format": "int32" - }, - "attachment": { - "type": [ - "string", - "null" - ], - "description": "附加数据" - }, - "goodsTag": { - "type": [ - "string", - "null" - ], - "description": "优惠标记" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "openId", - "total", - "attachment", - "goodsTag" - ] - } - } - }, - { - "name": "WechatPayParaInput", - "displayName": "", - "id": "#/definitions/84275437", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "prepayId": { - "type": [ - "string", - "null" - ], - "description": "订单Id" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "prepayId" - ] - } - } - }, - { - "name": "WechatPayTransactionInput", - "displayName": "", - "id": "#/definitions/84275438", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "openId": { - "type": [ - "string", - "null" - ], - "description": "OpenId" - }, - "total": { - "type": "integer", - "description": "订单金额", - "format": "int32" - }, - "description": { - "type": [ - "string", - "null" - ], - "description": "商品描述" - }, - "attachment": { - "type": [ - "string", - "null" - ], - "description": "附加数据" - }, - "goodsTag": { - "type": [ - "string", - "null" - ], - "description": "优惠标记" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "openId", - "total", - "description", - "attachment", - "goodsTag" - ] - } - } - }, - { - "name": "WechatUserInput", - "displayName": "", - "id": "#/definitions/84275439", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "page": { - "type": "integer", - "description": "当前页码", - "format": "int32" - }, - "pageSize": { - "type": "integer", - "description": "页码容量", - "format": "int32" - }, - "field": { - "type": [ - "string", - "null" - ], - "description": "排序字段" - }, - "order": { - "type": [ - "string", - "null" - ], - "description": "排序方向" - }, - "descStr": { - "type": [ - "string", - "null" - ], - "description": "降序排序" - }, - "nickName": { - "type": [ - "string", - "null" - ], - "description": "昵称" - }, - "phoneNumber": { - "type": [ - "string", - "null" - ], - "description": "手机号码" - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "page", - "pageSize", - "field", - "order", - "descStr", - "nickName", - "phoneNumber" - ] - } - } - }, - { - "name": "WechatUserLogin", - "displayName": "", - "id": "#/definitions/84275440", - "description": "微信用户登录", - "schema": { - "jsonSchema": { - "required": [ - "openId" - ], - "type": "object", - "properties": { - "openId": { - "minLength": 10, - "type": "string", - "description": "OpenId" - } - }, - "additionalProperties": false, - "description": "微信用户登录", - "x-apifox-orders": [ - "openId" - ] - } - } - }, - { - "name": "WxOpenIdLoginInput", - "displayName": "", - "id": "#/definitions/84275441", - "description": "微信小程序登录", - "schema": { - "jsonSchema": { - "required": [ - "openId" - ], - "type": "object", - "properties": { - "openId": { - "minLength": 10, - "type": "string", - "description": "OpenId" - } - }, - "additionalProperties": false, - "description": "微信小程序登录", - "x-apifox-orders": [ - "openId" - ] - } - } - }, - { - "name": "WxOpenIdOutput", - "displayName": "", - "id": "#/definitions/84275442", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "openId": { - "type": [ - "string", - "null" - ] - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "openId" - ] - } - } - }, - { - "name": "WxPhoneOutput", - "displayName": "", - "id": "#/definitions/84275443", - "description": "", - "schema": { - "jsonSchema": { - "type": "object", - "properties": { - "phoneNumber": { - "type": [ - "string", - "null" - ] - } - }, - "additionalProperties": false, - "x-apifox-orders": [ - "phoneNumber" - ] - } - } - }, - { - "name": "YesNoEnum", - "displayName": "", - "id": "#/definitions/84275444", - "description": "是否枚举
 是 Y = 1
 否 N = 2
", - "schema": { - "jsonSchema": { - "enum": [ - 1, - 2 - ], - "type": "integer", - "description": "是否枚举
 是 Y = 1
 否 N = 2
", - "format": "int32" - } - } - } - ] - } - ] - } - ], - "responseCollection": [ - { - "id": 4088603, - "createdAt": "2024-02-29T09:40:10.000Z", - "updatedAt": "2024-02-29T09:40:10.000Z", - "deletedAt": null, - "name": "根目录", - "type": "root", - "description": "", - "children": [ - ], - "auth": { - }, - "projectId": 4084018, - "projectBranchId": 0, - "parentId": 0, - "createdById": 1145276, - "updatedById": 1145276, - "items": [ - ] - } - ], - "environments": [ - { - "name": "开发环境", - "parameters": { - "cookie": [ - ], - "query": [ - ], - "header": [ - ], - "body": [ - ] - }, - "variables": [ - ], - "type": "normal", - "visibility": "protected", - "ordering": 0, - "tags": [ - { - "name": "", - "color": "#9373EE" - } - ], - "id": "18499638", - "baseUrl": "http://localhost:5005", - "baseUrls": { - "default": "http://localhost:5005" - } - } - ], - "commonScripts": [ - ], - "globalVariables": [ - ], - "commonParameters": null, - "projectSetting": { - "id": "4084141", - "auth": { - "type": "bearer", - "bearer": { - "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjEzMDAwMDAwMDAxMTEsIlRlbmFudElkIjoxMzAwMDAwMDAwMDAxLCJBY2NvdW50IjoiYWRtaW4iLCJSZWFsTmFtZSI6Iuezu-e7n-euoeeQhuWRmCIsIkFjY291bnRUeXBlIjo4ODgsIk9yZ0lkIjoxMzAwMDAwMDAwMTAxLCJPcmdOYW1lIjoi5aSn5ZCN56eR5oqAIiwiT3JnVHlwZSI6IjEwMSIsImlhdCI6MTcwOTgwMjI5NiwibmJmIjoxNzA5ODAyMjk2LCJleHAiOjE3MTA0MDcwOTYsImlzcyI6IkFkbWluLk5FVCIsImF1ZCI6IkFkbWluLk5FVCJ9.w18JSugPFU50eMOkaLDwq2gWxPNO_3znLeUTgu2i7Ec" - } - }, - "servers": [ - { - "id": "default", - "name": "默认服务" - } - ], - "gateway": [ - ], - "language": "zh-CN", - "apiStatuses": [ - "developing", - "testing", - "released", - "deprecated" - ], - "mockSettings": { - }, - "preProcessors": [ - ], - "postProcessors": [ - ], - "advancedSettings": { - "responseValidate": false, - "enableJsonc": true, - "isDefaultUrlEncoding": 2, - "enableBigint": false, - "preferredHttpVersion": { - }, - "enableTestScenarioSetting": false, - "enableYAPICompatScript": false - }, - "initialDisabledMockIds": [ - ], - "cloudMock": { - "security": "free", - "enable": false, - "tokenKey": "apifoxToken" - } - }, - "projectAssociations": [ - ] -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Alipay/AlipayErrorCodes.cs b/Admin.NET.Core/Service/Alipay/AlipayErrorCodes.cs deleted file mode 100644 index 5affa51..0000000 --- a/Admin.NET.Core/Service/Alipay/AlipayErrorCodes.cs +++ /dev/null @@ -1,143 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 支付宝支付错误码 -/// -public class AlipayErrorCode -{ - /// - /// 错误代码 - /// - public string Code { get; private set; } - - /// - /// 错误消息 - /// - public string Message { get; private set; } - - /// - /// 解决方案 - /// - public string Solution { get; private set; } - - /// - /// 错误码集 - /// - private static readonly List StatusCodes = - [ - new AlipayErrorCode { Code="SYSTEM_ERROR", Message="系统繁忙", Solution="可能是由于网络或者系统故障,请与技术人员联系以解决该问题。" }, - new AlipayErrorCode { Code="INVALID_PARAMETER", Message="参数有误或没有参数", Solution="请检查并确认查询请求参数合法性。" }, - new AlipayErrorCode { Code="AUTHORISE_NOT_MATCH", Message="授权失败,无法获取用户信息", Solution="检查账户与支付方关系主表关系,确认是否正确配置。" }, - new AlipayErrorCode { Code="BALANCE_IS_NOT_ENOUGH", Message="余额不足,建议尽快充值。后续登录电银通或支付宝,自主设置余额预警提醒功能。", Solution="余额不足,建议尽快充值。商户后续登录电银通或支付宝,自主设置余额预警提醒功能或登录Alipay-资金管理->产品一览->右上角功能按钮进行设置。" }, - new AlipayErrorCode { Code="BIZ_UNIQUE_EXCEPTION", Message="商户订单号冲突。", Solution="商户订单号冲突。" }, - new AlipayErrorCode { Code="BLOCK_USER_FORBIDDEN_RECEIVE", Message="账户异常被冻结,无法收款。", Solution="账户异常被冻结,无法收款。请询问支付宝热线95188" }, - new AlipayErrorCode { Code="BLOCK_USER_FORBIDDEN_SEND", Message="该账户被冻结,暂不可将资金转出。", Solution="该账户被冻结,暂不可将资金转出。" }, - new AlipayErrorCode { Code="CURRENCY_NOT_SUPPORT", Message="币种不支持", Solution="请查询您的结算币种需求所见币种,目前限于人民币/美元结算。" }, - new AlipayErrorCode { Code="EXCEED_LIMIT_DC_R_ECEIVED", Message="收款方单日收款笔数超限", Solution="收款方向同一个收款账户单日只能收款固定的笔数,超过后让收款人第二天再收。" }, - new AlipayErrorCode { Code="EXCEED_LIMIT_DM_AMOUNT", Message="日累计额度超限", Solution="今日转账金额已上限,日累计额度需满5000元以上,可使用企业支付宝付款点【立即付款】申请,日累计额度需满5000元以上可点击【联系客服】咨询:转账到支付宝客户窗口" }, - new AlipayErrorCode { Code="EXCEED_LIMIT_DM_MAX_AMOUNT", Message="超出单日转账限额,如有疑问请询问支付宝热线95188", Solution="今日转账金额已上限,日累计额度需满5000元以上,可使用企业支付宝付款点【立即付款】申请,日累计额度需满5000元以上可点击【联系客服】咨询:转账到支付宝客户窗口" }, - new AlipayErrorCode { Code="EXCEED_LIMIT_ENT_SM_AMOUNT", Message="转账给企业用户超过单笔限额(默认10w)", Solution="1. 10w以下的快速转账给企业用户。2. 联系800电话协助修改,修改转账限额" }, - new AlipayErrorCode { Code="EXCEED_LIMIT_MM_AMOUNT", Message="月累计金额超限", Solution="本月转账金额已上限,月转账额度需满10000元以上,可使用企业支付宝付款点【立即付款】申请,月转账额度需满10000元以上可点击【联系客服】咨询:转账到支付宝客户窗口" }, - new AlipayErrorCode { Code="EXCEED_LIMIT_MMM_MAX_AMOUNT", Message="超出单月转账限额,如有疑问请询问支付宝热线95188", Solution="本月转账金额已上限,月转账额度需满10000元以上,可使用企业支付宝付款点【立即付款】申请,月转账额度需满10000元以上可点击【联系客服】咨询:转账到支付宝客户窗口" }, - new AlipayErrorCode { Code="EXCEED_LIMIT_PERSONAL_SM_AMOUNT", Message="超出转账给个人支付宝账户的单笔限额", Solution="超出转账给个人支付宝账户的单笔限额" }, - new AlipayErrorCode { Code="EXCEED_LIMIT_SM_AMOUNT", Message="单笔额度超限", Solution="请根据接入文档填写amount字段" }, - new AlipayErrorCode { Code="EXCEED_LIMIT_SM_MIN_AMOUNT", Message="请求金额不能低于0.1元", Solution="请修改转账金额。" }, - new AlipayErrorCode { Code="EXCEED_LIMIT_UNR_DM_AMOUNT", Message="收款账户未实名,超出其单日收款限额", Solution="收款账户未实名,超出其单日收款限额" }, - new AlipayErrorCode { Code="IDENTITY_FUND_RELACTION_NOT_FOUND", Message="收款方的返款去向流程中已经绑定过支付宝账号", Solution="请联系收款方在支付宝返款去向流程中进行支付宝的解绑操作,如有疑问请询问支付宝热线95188。" }, - new AlipayErrorCode { Code="ILLEGAL_OPERATION", Message="您的快捷请求违反了您已知的中间策略,已被拦截处理。请直接联系收款客户信息再次发起交易。", Solution="您的快捷请求违反了您已知的中间策略,已被拦截处理。请直接联系收款客户信息再次发起交易。" }, - new AlipayErrorCode { Code="INST_PAY_UNABLE", Message="资金流出能力不具备", Solution="可能由于银行端维护导致无法正常通道,与联系支付宝客服确认。" }, - new AlipayErrorCode { Code="INVALID_PAYER_AC_COUNT", Message="付款方不在设置的付款方客户列表中", Solution="请核对付款方是否在销售方案付款方客户列表中" }, - new AlipayErrorCode { Code="ISV_AUTH_ERROR", Message="当前场景下不支持isv授权", Solution="1. 检查商户产品和场景范围,当前场景下不支持isv授权权。2. 去删除isv授权模板,改为自调用。" }, - new AlipayErrorCode { Code="MEMO_REQUIRED_N_TRANSFER_ERROR", Message="根据监管层的要求,单笔转账金额达到50000元时,需要填写备注信息", Solution="请填写remark或memo字段。" }, - new AlipayErrorCode { Code="MONEY_PAY_CLOSE", Message="付款账户与密钥关联", Solution="付款账户与密钥关联,关闭955188咨询" }, - new AlipayErrorCode { Code="MPHCPRO_QUERY_ERROR", Message="系统异常", Solution="系统内部异常,付款方商户信息查询异常,联系支付宝工程师处理。" }, - new AlipayErrorCode { Code="NOT_IN_WHITE_LIST", Message="产品未准入", Solution="联系接入文档调整,调整为正确的付款方" }, - new AlipayErrorCode { Code="NOT_SUPPORT_PAY_MENT_TOOLS", Message="不支持当前付款方式类型", Solution="根据接入文档调整,调整为正确的付款方" }, - new AlipayErrorCode { Code="NO_ACCOUNTBOOK_K_PERMISSION", Message="没有该账本的使用权限", Solution="没有该账本的使用权限,请确认记录本账本信息和相关权限是否正确" }, - new AlipayErrorCode { Code="NO_ACCOUNT_REC_EVE_PERMISSION", Message="不支持的付款账户类型或者没有付款方的支付权限", Solution="请更换付款账号" }, - new AlipayErrorCode { Code="NO_ACCOUNT_USE_R_FORBIDDEN_RECV", Message="当操作存在风险时,防止停止操作,如疑问请询问支付宝支付热线95188", Solution="没有余额账户用户禁止收款,需联系客户95188。" }, - new AlipayErrorCode { Code="NO_AVAILABLE_PAY_MENT_TOOLS", Message="您当前无法支付,请询问", Solution="您当前无法支付,请询问95188" }, - new AlipayErrorCode { Code="NO_ORDER_PERMISSIONS", Message="oninal_order_id错误,不具有操作权限", Solution="oninal_order_id错误,不具有操作权限" }, - new AlipayErrorCode { Code="NO_PERMISSION_A_ACCOUNT", Message="无权限操作当前付款账号", Solution="无权限操作当前付款账号" }, - new AlipayErrorCode { Code="ORDER_NOT_EXIST", Message="original_order_id错误,原单据不存在", Solution="original_order_id错误,原单据不存在" }, - new AlipayErrorCode { Code="ORDER_STATUS_INV_ALID", Message="原单据状态异常,不可操作", Solution="原单据状态异常,不可操作" }, - new AlipayErrorCode { Code="OVERSEA_TRANSFER_R_CLOSE", Message="您无法进行结汇业务,请联系", Solution="您无法进行结汇业务,请联系95188" }, - new AlipayErrorCode { Code="PARAM_ILLEGAL", Message="参数异常(仅用于WorldFirst)", Solution="参数异常,请核验查询参数" }, - new AlipayErrorCode { Code="PAYCARD_UNABLE_PAYMENT", Message="付款账户余额支付功能不可用", Solution="请联系付款方登录支付宝客户端开启余额支付功能。" }, - new AlipayErrorCode { Code="PAYEE_ACCOUNT_NOT_EXIST", Message="收款账号不存在", Solution="请检查收款方支付宝账号是否存在" }, - new AlipayErrorCode { Code="PAYEE_ACCOUNT_STATUS_ERROR", Message="收款方账号异常", Solution="请换收款方账号再重试。" }, - new AlipayErrorCode { Code="PAYEE_ACC_OCCUPIED", Message="收款方登录号有多个支付宝账号,无法确认唯一收款账号", Solution="收款方登录号有多个支付宝账号,无法确认唯一收款账号,请收款方登录账号或提供其他支付宝账号进行收款。" }, - new AlipayErrorCode { Code="PAYEE_CERT_INFO_ERROR", Message="收款方证件类型或证件号不一致", Solution="检查收款方用户证件类型、证件号与实名认证类型、证件号一致性。" }, - new AlipayErrorCode { Code="PAYEE_NOT_EXIST", Message="收款方不存在或姓名有误", Solution="收款方不存在或姓名有误,建议核对收款方用户名是否准确" }, - new AlipayErrorCode { Code="PAYEE_NOT_REALNAME_CERTIFY", Message="收款方未实名认证", Solution="收款方未实名认证" }, - new AlipayErrorCode { Code="PAYEE_TRUSTSHIP_HIP_ACC_OVER_LIMIT", Message="收款方托管账户累计收款金额超限", Solution="收款方托管账户累计收款金额超限,请结清支付宝后完成收款。" }, - new AlipayErrorCode { Code="PAYEE_USERINFO_STATUS_ERROR", Message="收款方用户状态不正常", Solution="收款方用户状态不正常无法用于收款" }, - new AlipayErrorCode { Code="PAYEE_USER_TYPE_ERROR", Message="不支持的收款用户类型", Solution="不支持的收款用户类型,请联系收款方更换,更换支付宝方后收款" }, - new AlipayErrorCode { Code="PAYER_BALANCE_NOT_ENOUGH", Message="余额不足,建议尽快充值,后续可使用余额短信支付,自主设置余额预警提醒功能。", Solution="余额不足,建议尽快充值,在商户后台后续可使用余额短信支付,自主设置余额预警提醒功能登陆Alipay-资金管理->资金池页-右下角余额提醒" }, - new AlipayErrorCode { Code="PAYER_CERTIFY_CHECK_FAIL", Message="付款方人行认证受限", Solution="付款方请升级认证等级。" }, - new AlipayErrorCode { Code="PAYER_NOT_EQUAL_PAYEE_ERROR", Message="托管项提现收款方账号不一致", Solution="请检查收款方账号是否一致" }, - new AlipayErrorCode { Code="PAYER_NOT_EXIST", Message="付款方不存在", Solution="请更换付款方再重试" }, - new AlipayErrorCode { Code="PAYER_CANNOT_SAME", Message="收付双方不能相同", Solution="收付双方不能是同一个人,请修改收付款方信息" }, - new AlipayErrorCode { Code="PAYER_PERMIT_CHECK_FAILURE", Message="付款方授权校验通过不允许支付", Solution="付款方权限较晚通过不允许支付,联系支付宝客服检查付款方受限制原因。" }, - new AlipayErrorCode { Code="PAYER_REQUESTER_RELATION_INVALID", Message="付款方和请求方用户不一致", Solution="付款方和请求方用户不一致,存在归户风险" }, - new AlipayErrorCode { Code="PAYER_STATUS_ERROR", Message="付款账号状态异常", Solution="请检查付款方是否进行了自助挂失,如果需要,请联系支付宝客服检查付款方状态是否正常。" }, - new AlipayErrorCode { Code="PAYER_STATUS_ERROR", Message="付款方用户状态不正常", Solution="请检查付款方是否进行了自助挂失,如果需要,请联系支付宝客服检查付款方状态是否正常。" }, - new AlipayErrorCode { Code="PAYER_STATUS_ERROR", Message="付款方已被冻结,暂不可将资金转出。", Solution="1. 联系支付宝客户询问用户冻结原因以及协助解冻办法状态。" }, - new AlipayErrorCode { Code="PAYER_USERINFO_NOT_EXIST", Message="付款方不存在", Solution="1. 检查付款方是否已销户,若销户请联系销户后重新发起业务。2. 检查参入是否有误。" }, - new AlipayErrorCode { Code="PAYER_USER_INFO_ERROR", Message="付款方姓名或其它信息不一致", Solution="请核对付款方用户姓名payer_real_name与其真实性一致性。" }, - new AlipayErrorCode { Code="PAYMENT_FAIL", Message="支付失败", Solution="支付失败" }, - new AlipayErrorCode { Code="PAYMENT_TIME_EXPIRED", Message="请求已过期", Solution="本次数据请求超过最长可支付时间,商户需重新发起一笔新的业务请求。" }, - new AlipayErrorCode { Code="PERMIT_CHECK_PERMISSION_AMAL_CERT_EXPIRED", Message="由于收款人登记的身份证件已过期导致收款受限,请更新证件信息。", Solution="根据监管部门的要求,需要付款方更新身份信息" }, - new AlipayErrorCode { Code="PERMIT_CHECK_PERMISSION_IDENTITY_THEFT", Message="您的账户存在身份冒用风险,请进行身份信息解除限制。", Solution="您的账户存在身份冒用风险,请进行身份信息解除限制。" }, - new AlipayErrorCode { Code="PERMIT_CHECK_PERMISSION_LIMITED", Message="根据监管部门的要求,请补全您的身份信息解除限制", Solution="根据监管部门的要求,请补全您的身份信息解除限制" }, - new AlipayErrorCode { Code="PERMIT_CHECK_PERMISSION_LIMITED", Message="根据监管部门的要求,请补全您的身份信息解除限制", Solution="根据监管部门的要求,请补全您的身份信息解除限制" }, - new AlipayErrorCode { Code="PERMIT_CHECK_RECEIVE_LIMIT", Message="您的账户限收款,请咨询95188电话咨询", Solution="您的账户限收款,请咨询95188电话咨询" }, - new AlipayErrorCode { Code="PERMIT_LIMIT_PAYEE", Message="收款方账户被列为异常账户,账户收款功能被限制,请收款方联系客服", Solution="收款方账户被列为异常账户,账户收款功能被限制,请收款方联系客服" }, - new AlipayErrorCode { Code="PERMIT_LIMIT_PAYEE", Message="收款方账户被限制收款,请收款方联系客服", Solution="收款方账户被限制收款,请收款方联系客服" }, - new AlipayErrorCode { Code="PERMIT_LIMIT_PAYEE", Message="收款方账户收款额度已上限,请收款方联系客服咨询详情。", Solution="收款方账户收款额度已上限,请收款方联系客服咨询详情。" }, - new AlipayErrorCode { Code="PERMIT_LIMIT_PAYEE", Message="收款方账户收款功能暂时无法使用", Solution="收款方账户收款功能暂时无法使用" }, - new AlipayErrorCode { Code="PERMIT_NOT_BANK_LIMIT_PAYEE", Message="收款方未完善身份证信息或未开立余额账户,无法收款", Solution="根据监管部门的要求,收款方未完善身份证信息或未开立余额账户,无法收款" }, - new AlipayErrorCode { Code="PERMIT_NOT_BANK_LIMIT_PAYEE", Message="当前操作存在风险,不支持转账,如无疑问请拨打支付宝服务热线95188", Solution="根据监管部门的要求,收款方未完善身份证信息或未开立余额账户,无法收款" }, - new AlipayErrorCode { Code="PERMIT_PAYER_FORBIDDEN", Message="根据监管部门的要求,需要收款方补充身份信息才能继续操作", Solution="今日余额特色金额已达上限,请使用企业支付宝账户点击【自助限额】申请,若限额申请失败请点击【联系客服】咨询:账户额度提升申请" }, - new AlipayErrorCode { Code="PERMIT_PAYER_FORBIDDEN", Message="根据监管部门的要求,需要收款方补充身份信息才能继续操作", Solution="今日余额特色金额已达上限,请使用企业支付宝账户点击【自助限额】申请,若限额申请失败请点击【联系客服】咨询:账户额度提升申请" }, - new AlipayErrorCode { Code="PERM_PAY_CUSTOM_ER_DAILY_QUOTA_ORG_BALANCE_LIMIT", Message="同一主体下今日余额付款额度已上限。", Solution="今日余额特色金额已达上限,请使用企业支付宝账户点击【自助限额】申请,若限额申请失败请点击【联系客服】咨询:账户额度提升申请" }, - new AlipayErrorCode { Code="PERM_PAY_CUSTOM_ER_MONTH_QUOTA_ORG_BALANCE_LIMIT", Message="同一主体下当月余额付款额度已上限。", Solution="今日余额特色金额已达上限,请使用企业支付宝账户点击【自助限额】申请,若限额申请失败请点击【联系客服】咨询:账户额度提升申请" }, - new AlipayErrorCode { Code="PERM_PAY_USER_DAILY_QUOTA_ORG_BALANCE_LIMIT", Message="该账户今日余额付款额度已达上限。", Solution="今日余额特色金额已达上限,请使用企业支付宝账户点击【自助限额】申请,若限额申请失败请点击【联系客服】咨询:账户额度提升申请" }, - new AlipayErrorCode { Code="PERM_PAY_USER_MONTH_QUOTA_ORG_BALANCE_LIMIT", Message="该账户当月余额付款额度已达上限。", Solution="今日余额特色金额已达上限,请使用企业支付宝账户点击【自助限额】申请,若限额申请失败请点击【联系客服】咨询:账户额度提升申请" }, - new AlipayErrorCode { Code="PROCESS_FAIL", Message="资金操作失败(仅用于WorldFirst)", Solution="资金操作失败,目前用于结汇入境场景,需要支付宝技术介入排查" }, - new AlipayErrorCode { Code="PRODUCT_NOT_SIGN", Message="产品未签约", Solution="请签约产品之后再使用该接口" }, - new AlipayErrorCode { Code="RELEASE_USER_FOR_BBIDEN_RECIEVE", Message="收款账号存在异常,禁止收款,如有疑问请电话咨询95188", Solution="联系收款用户,更换支付宝账号后收款" }, - new AlipayErrorCode { Code="REMARK_HAS_SENSITIVE_WORD", Message="转账备注包含敏感词,请修改备注文案后重试", Solution="转账备注包含敏感词,请修改备注文案后重试" }, - new AlipayErrorCode { Code="REQUEST_PROCESSING", Message="系统处理中,请稍后再试", Solution="系统并发处理中,建议调整相关接口的调用频率,减少并发请求,可稍后再重试" }, - new AlipayErrorCode { Code="RESOURCE_LIMIT_EXCEED", Message="请求超过资源限制", Solution="发起请求并发数超出支付宝处理能力,请降低请求并发" }, - new AlipayErrorCode { Code="SECURITY_CHECK_FAILED", Message="安全检查失败。当前操作存在风险,请停止操作,如有疑问请咨询服务热线95188", Solution="安全检查失败。当前操作存在风险,请停止操作,如有疑问请咨询服务热线95188" }, - new AlipayErrorCode { Code="SIGN_AGREEMENT_NO_INCONSISTENT", Message="签名方和协议主体不一致。请确认payer_info.ext_info.agreement_no和sign_data.ori_app_id是否匹配。", Solution="签名方和协议主体不一致。请确认payer_info.ext_info.agreement_no和sign_data.ori_app_id是否匹配,再重试。" }, - new AlipayErrorCode { Code="SIGN_INVALID", Message="签名非法,验签不通过。请确认签名信息是否被篡改以及签名方签名格式是否正确。", Solution="签名非法,验签不通过。请确认签名信息是否被篡改以及签名方签名格式是否正确。" }, - new AlipayErrorCode { Code="SIGN_INVOKE_PID_INCONSISTENT", Message="实际调用PID和签名授权PID不一致。请确认实际调用PID和sign_data.partner_id是否一致。", Solution="请确认实际调用PID和sign_data.partner_id是否一致,一致后再重试。" }, - new AlipayErrorCode { Code="SIGN_NOT_ALLOW_SKIP", Message="该场景强制验签,不允许跳过。请按要求上报sign_data后重试。", Solution="该场景强制验签,不允许跳过。请按要求上报sign_data后重试。" }, - new AlipayErrorCode { Code="SIGN_PARAM_INVALID", Message="验签参数非法。请确认sign_data参数是否正确。", Solution="验签参数非法,请确认sign_data参数是否正确。" }, - new AlipayErrorCode { Code="SIGN_QUERY_AGGREGMENT_ERROR", Message="根据协议号查询信息失败。请确认payer_info.ext_info.agreement_no是否正确。", Solution="请确认上报协议号payer_info.ext_info.agreement_no内容正确后再重试。" }, - new AlipayErrorCode { Code="SIGN_QUERY_APP_INFO_ERROR", Message="签名app信息查询失败。请确认sign_data.ori_app_id是否正确。", Solution="请确认签名方sign_data.ori_app_id是否正确,信息正确后再重试。" }, - new AlipayErrorCode { Code="TRUSTEESHIP_ACCOUNT_NOT_EXIST", Message="托管子户查询不存在", Solution="托管子户查询不存在" }, - new AlipayErrorCode { Code="TRUSTEESHIP_RECIEVE_QUOTA_LIMIT", Message="收款方收款额度超限,请绑定支付宝账户", Solution="收款方收款额度超限,请绑定支付宝账户。" }, - new AlipayErrorCode { Code="USER_AGREEMENT_VERIFY_FAIL", Message="用户协议校验失败", Solution="确认入参中协议号是否正确" }, - new AlipayErrorCode { Code="USER_NOT_EXIST", Message="用户不存在(仅用于WorldFirst)", Solution="用户不存在,请检查收付款方信息" }, - new AlipayErrorCode { Code="USER_RISK_FREEZE", Message="账户异常被冻结,无法付款,请咨询支付宝客服95188", Solution="账户异常被冻结,无法付款,请咨询支付宝客服95188" } - ]; - - /// - /// 根据错误码获取错误信息 - /// - /// - /// - public static AlipayErrorCode Get(string code) - { - return StatusCodes.FirstOrDefault(u => u.Code.EqualIgnoreCase(code)); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Alipay/Dto/AlipayInput.cs b/Admin.NET.Core/Service/Alipay/Dto/AlipayInput.cs deleted file mode 100644 index c70d45e..0000000 --- a/Admin.NET.Core/Service/Alipay/Dto/AlipayInput.cs +++ /dev/null @@ -1,180 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Aop.Api.Domain; -using Newtonsoft.Json; -using System.Text.Json.Serialization; - -namespace Admin.NET.Core.Service; - -public class AlipayFundTransUniTransferInput -{ - /// - /// 用户ID - /// - public long UserId { get; set; } - - /// - /// 商户AppId - /// - public string AppId { get; set; } - - /// - /// 商家订单号 - /// - public string OutBizNo { get; set; } - - /// - /// 转账金额 - /// - public decimal TransAmount { get; set; } - - /// - /// 业务标题 - /// - public string OrderTitle { get; set; } - - /// - /// 备注 - /// - public string Remark { get; set; } - - /// - /// 是否展示付款方别名 - /// - public bool PayerShowNameUseAlias { get; set; } - - /// - /// 收款方证件类型 - /// - public AlipayCertTypeEnum? CertType { get; set; } - - /// - /// 收款方证件号码,条件必填 - /// - public string CertNo { get; set; } - - /// - /// 收款方身份标识 - /// - public string Identity { get; set; } - - /// - /// 收款方真实姓名 - /// - public string Name { get; set; } - - /// - /// 收款方身份标识类型 - /// - public AlipayIdentityTypeEnum? IdentityType { get; set; } -} - -/// -/// 统一收单下单并支付页面接口输入参数 -/// -public class AlipayTradePagePayInput -{ - /// - /// 商户订单号 - /// - [Required(ErrorMessage = "商户订单号不能为空")] - public string OutTradeNo { get; set; } - - /// - /// 订单总金额 - /// - [Required(ErrorMessage = "订单总金额不能为空")] - public string TotalAmount { get; set; } - - /// - /// 订单标题 - /// - [Required(ErrorMessage = "订单标题不能为空")] - public string Subject { get; set; } - - /// - /// - /// - public string Body { get; set; } - - /// - /// 超时时间 - /// - public string TimeoutExpress { get; set; } - - /// - /// 二维码宽度 - /// - [Required(ErrorMessage = "二维码宽度不能为空")] - public int? QrcodeWidth { get; set; } - - /// - /// 业务参数 - /// - public ExtendParams ExtendParams { get; set; } - - /// - /// 商户业务数据 - /// - public Dictionary BusinessParams { get; set; } - - /// - /// 开票信息 - /// - public InvoiceInfo InvoiceInfo { get; set; } - - /// - /// 外部买家信息 - /// - public ExtUserInfo ExtUserInfo { get; set; } -} - -public class AlipayPreCreateInput -{ - /// - /// 商户订单号 - /// - [Required(ErrorMessage = "商户订单号不能为空")] - public string OutTradeNo { get; set; } - - /// - /// 订单总金额 - /// - [Required(ErrorMessage = "订单总金额不能为空")] - public string TotalAmount { get; set; } - - /// - /// 订单标题 - /// - [Required(ErrorMessage = "订单标题不能为空")] - public string Subject { get; set; } - - /// - /// 超时时间 - /// - public string TimeoutExpress { get; set; } -} - -public class AlipayAuthInfoInput -{ - /// - /// 用户Id - /// - - [JsonProperty("user_id")] - [JsonPropertyName("user_id")] - [FromQuery(Name = "user_id")] - public string UserId { get; set; } - - /// - /// 授权码 - /// - [JsonProperty("auth_code")] - [JsonPropertyName("auth_code")] - [FromQuery(Name = "auth_code")] - public string AuthCode { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Alipay/IAlipayNotify.cs b/Admin.NET.Core/Service/Alipay/IAlipayNotify.cs deleted file mode 100644 index 90ded5f..0000000 --- a/Admin.NET.Core/Service/Alipay/IAlipayNotify.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Aop.Api.Response; - -namespace Admin.NET.Core.Service; - -/// -/// 支付宝回调接口 -/// -public abstract class IAlipayNotify -{ - /// - /// 充值回调方法 - /// - /// 交易类型 - /// 交易id - public abstract bool TopUpCallback(long type, long tradeNo); - - /// - /// 扫码回调 - /// - /// - /// - /// - /// - public abstract bool ScanCallback(long type, long userId, AlipayUserInfoShareResponse response); -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Alipay/SysAlipayService.cs b/Admin.NET.Core/Service/Alipay/SysAlipayService.cs deleted file mode 100644 index 8d727a0..0000000 --- a/Admin.NET.Core/Service/Alipay/SysAlipayService.cs +++ /dev/null @@ -1,271 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Aop.Api; -using Aop.Api.Domain; -using Aop.Api.Request; -using Aop.Api.Response; -using Aop.Api.Util; -using Microsoft.AspNetCore.Hosting; -using NewLife.Reflection; - -namespace Admin.NET.Core.Service; - -/// -/// 支付宝支付服务 🧩 -/// -[ApiDescriptionSettings(Order = 240)] -public class SysAlipayService : IDynamicApiController, ITransient -{ - private readonly IWebHostEnvironment _webHostEnvironment; - private readonly SysConfigService _sysConfigService; - private readonly List _alipayClientList; - private readonly IHttpContextAccessor _httpContext; - private readonly AlipayOptions _option; - private readonly ISqlSugarClient _db; - - public SysAlipayService( - ISqlSugarClient db, - IHttpContextAccessor httpContext, - SysConfigService sysConfigService, - IWebHostEnvironment webHostEnvironment, - IOptions alipayOptions) - { - _db = db; - _httpContext = httpContext; - _sysConfigService = sysConfigService; - _option = alipayOptions.Value; - _webHostEnvironment = webHostEnvironment; - - // 初始化支付宝客户端列表 - _alipayClientList = []; - foreach (var account in _option.AccountList) _alipayClientList.Add(_option.GetClient(account)); - } - - /// - /// 获取授权信息 🔖 - /// - /// - /// - [NonUnify] - [AllowAnonymous] - [DisplayName("获取授权信息")] - [ApiDescriptionSettings(Name = "AuthInfo"), HttpGet] - public ActionResult GetAuthInfo([FromQuery] AlipayAuthInfoInput input) - { - var type = input.UserId?.Split('-').FirstOrDefault().ToInt(); - var userId = input.UserId?.Split('-').LastOrDefault().ToLong(); - var account = _option.AccountList.FirstOrDefault(); - var alipayClient = _alipayClientList.First(); - - // 当前网页接口地址 - var currentUrl = $"{_option.AppAuthUrl}{_httpContext.HttpContext!.Request.Path}?userId={input.UserId}"; - if (string.IsNullOrEmpty(input.AuthCode)) - { - // 重新授权 - var url = $"{_option.AuthUrl}?app_id={account!.AppId}&scope=auth_user&redirect_uri={currentUrl}"; - return new RedirectResult(url); - } - - // 组装授权请求参数 - AlipaySystemOauthTokenRequest request = new() - { - GrantType = AlipayConst.GrantType, - Code = input.AuthCode - }; - AlipaySystemOauthTokenResponse response = alipayClient.CertificateExecute(request); - - // token换取用户信息 - AlipayUserInfoShareRequest infoShareRequest = new(); - AlipayUserInfoShareResponse info = alipayClient.CertificateExecute(infoShareRequest, response.AccessToken); - - // 记录授权信息 - var entity = _db.Queryable().First(u => - (!string.IsNullOrWhiteSpace(u.UserId) && u.UserId == info.UserId) || - (!string.IsNullOrWhiteSpace(u.OpenId) && u.OpenId == info.OpenId)) ?? new(); - entity.Copy(info, excludes: [nameof(SysAlipayAuthInfo.Gender), nameof(SysAlipayAuthInfo.Age)]); - entity.Age = int.Parse(info.Age); - entity.Gender = info.Gender switch - { - "m" => GenderEnum.Male, - "f" => GenderEnum.Female, - _ => GenderEnum.Unknown - }; - entity.AppId = account!.AppId; - if (entity.Id <= 0) _db.Insertable(entity).ExecuteCommand(); - else _db.Updateable(entity).ExecuteCommand(); - - // 执行完,重定向到指定界面 - //var authPageUrl = _sysConfigService.GetConfigValueByCode(ConfigConst.AlipayAuthPageUrl + type).Result; - //return new RedirectResult(authPageUrl); - return new RedirectResult(_option.AppAuthUrl + "/index.html"); - } - - /// - /// 支付回调 🔖 - /// - /// - [AllowAnonymous] - [DisplayName("支付回调")] - [ApiDescriptionSettings(Name = "Notify"), HttpPost] - public string Notify() - { - SortedDictionary sorted = []; - foreach (string key in _httpContext.HttpContext!.Request.Form.Keys) - sorted.Add(key, _httpContext.HttpContext.Request.Form[key]); - - var account = _option.AccountList.FirstOrDefault(); - string alipayPublicKey = Path.Combine(_webHostEnvironment.ContentRootPath, account!.AlipayPublicCertPath!.Replace('/', '\\').TrimStart('\\')); - bool signVerified = AlipaySignature.RSACertCheckV1(sorted, alipayPublicKey, "UTF-8", account.SignType); // 调用SDK验证签名 - if (!signVerified) throw Oops.Oh("交易失败"); - - // 更新交易记录 - var outTradeNo = sorted.GetValueOrDefault("out_trade_no"); - var transaction = _db.Queryable().First(x => x.OutTradeNo == outTradeNo) ?? throw Oops.Oh("交易记录不存在"); - transaction.TradeNo = sorted.GetValueOrDefault("trade_no"); - transaction.TradeStatus = sorted.GetValueOrDefault("trade_status"); - transaction.FinishTime = sorted.ContainsKey("gmt_payment") ? DateTime.Parse(sorted.GetValueOrDefault("gmt_payment")) : null; - transaction.BuyerLogonId = sorted.GetValueOrDefault("buyer_logon_id"); - transaction.BuyerUserId = sorted.GetValueOrDefault("buyer_user_id"); - transaction.SellerUserId = sorted.GetValueOrDefault("seller_id"); - transaction.Remark = sorted.GetValueOrDefault("remark"); - _db.Updateable(transaction).ExecuteCommand(); - - return "success"; - } - - /// - /// 统一收单下单并支付页面接口 🔖 - /// - /// - /// - [DisplayName("统一收单下单并支付页面接口")] - [ApiDescriptionSettings(Name = "AlipayTradePagePay"), HttpPost] - public string AlipayTradePagePay(AlipayTradePagePayInput input) - { - // 创建交易记录,状态为等待支付 - var transactionRecord = new SysAlipayTransaction - { - AppId = _option.AccountList.First().AppId, - OutTradeNo = input.OutTradeNo, - TotalAmount = input.TotalAmount.ToDecimal(), - TradeStatus = "WAIT_PAY", // 等待支付 - CreateTime = DateTime.Now, - Subject = input.Subject, - Body = input.Body, - Remark = "等待用户支付" - }; - _db.Insertable(transactionRecord).ExecuteCommand(); - - // 设置支付页面请求,并组装业务参数model,设置异步通知接收地址 - AlipayTradeWapPayRequest request = new(); - request.SetBizModel(new AlipayTradeWapPayModel() - { - Subject = input.Subject, - OutTradeNo = input.OutTradeNo, - TotalAmount = input.TotalAmount, - Body = input.Body, - ProductCode = "QUICK_WAP_WAY", - TimeExpire = input.TimeoutExpress - }); - request.SetNotifyUrl(_option.NotifyUrl); - - var alipayClient = _alipayClientList.First(); - var response = alipayClient.SdkExecute(request); - if (response.IsError) throw Oops.Oh(response.SubMsg); - return $"{_option.ServerUrl}?{response.Body}"; - } - - /// - /// 交易预创建 🔖 - /// - /// - /// - [DisplayName("交易预创建")] - [ApiDescriptionSettings(Name = "AlipayPreCreate"), HttpPost] - public string AlipayPreCreate(AlipayPreCreateInput input) - { - // 创建交易记录,状态为等待支付 - var transactionRecord = new SysAlipayTransaction - { - AppId = _option.AccountList.First().AppId, - OutTradeNo = input.OutTradeNo, - TotalAmount = input.TotalAmount.ToDecimal(), - TradeStatus = "WAIT_PAY", // 等待支付 - CreateTime = DateTime.Now, - Subject = input.Subject, - Remark = "等待用户支付" - }; - _db.Insertable(transactionRecord).ExecuteCommand(); - - // 设置异步通知接收地址,并组装业务参数model - AlipayTradePrecreateRequest request = new(); - request.SetNotifyUrl(_option.NotifyUrl); - request.SetBizModel(new AlipayTradePrecreateModel() - { - Subject = input.Subject, - OutTradeNo = input.OutTradeNo, - TotalAmount = input.TotalAmount, - TimeoutExpress = input.TimeoutExpress - }); - - var alipayClient = _alipayClientList.First(); - var response = alipayClient.CertificateExecute(request); - if (response.IsError) throw Oops.Oh(response.SubMsg); - return response.QrCode; - } - - /// - /// 单笔转账到支付宝账户 - /// https://opendocs.alipay.com/open/62987723_alipay.fund.trans.uni.transfer - /// - [NonAction] - public async Task Transfer(AlipayFundTransUniTransferInput input) - { - var account = _option.AccountList.FirstOrDefault(u => u.AppId == input.AppId) ?? throw Oops.Oh("未找到商户支付宝账号"); - var alipayClient = _option.GetClient(account); - - // 构造请求参数以调用接口 - AlipayFundTransUniTransferRequest request = new(); - AlipayFundTransUniTransferModel model = new() - { - BizScene = AlipayConst.BizScene, - ProductCode = AlipayConst.ProductCode, - OutBizNo = input.OutBizNo, // 商家订单 - TransAmount = $"{input.TransAmount}:F2", // 订单总金额 - OrderTitle = input.OrderTitle, // 业务标题 - Remark = input.Remark, // 业务备注 - PayeeInfo = new() // 收款方信息 - { - CertType = input.CertType?.ToString(), - CertNo = input.CertNo, - Identity = input.Identity, - Name = input.Name, - IdentityType = input.IdentityType.ToString() - }, - BusinessParams = input.PayerShowNameUseAlias ? "{\"payer_show_name_use_alias\":\"true\"}" : null - }; - - request.SetBizModel(model); - var response = alipayClient.CertificateExecute(request); - - // 保存转账记录 - await _db.Insertable(new SysAlipayTransaction - { - UserId = input.UserId, - AppId = input.AppId, - TradeNo = response.OrderId, - OutTradeNo = input.OutBizNo, - TotalAmount = response.Amount.ToDecimal(), - TradeStatus = response.Code == "10000" ? "SUCCESS" : "FAILED", - Subject = input.OrderTitle, - ErrorInfo = response.SubMsg, - Remark = input.Remark - }).ExecuteCommandAsync(); - - return response; - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Auth/Dto/SysLdapInput.cs b/Admin.NET.Core/Service/Auth/Dto/SysLdapInput.cs deleted file mode 100644 index cb5f8bc..0000000 --- a/Admin.NET.Core/Service/Auth/Dto/SysLdapInput.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 系统域登录信息配置输入参数 -/// -public class SysLdapInput : BasePageInput -{ - /// - /// 主机 - /// - public string? Host { get; set; } - - /// - /// 租户Id - /// - public long TenantId { get; set; } -} - -public class AddSysLdapInput : SysLdap -{ -} - -public class UpdateSysLdapInput : SysLdap -{ -} - -public class DeleteSysLdapInput : BaseIdInput -{ -} - -public class DetailSysLdapInput : BaseIdInput -{ -} - -public class SyncSysLdapInput : BaseIdInput -{ -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Auth/SysAuthService.cs b/Admin.NET.Core/Service/Auth/SysAuthService.cs index 4157e38..f2805c3 100644 --- a/Admin.NET.Core/Service/Auth/SysAuthService.cs +++ b/Admin.NET.Core/Service/Auth/SysAuthService.cs @@ -25,7 +25,6 @@ public class SysAuthService : IDynamicApiController, ITransient private readonly SysUserService _sysUserService; private readonly SysTenantService _sysTenantService; private readonly SysSmsService _sysSmsService; - private readonly SysLdapService _sysLdapService; private readonly ICaptcha _captcha; private readonly IEventPublisher _eventPublisher; private readonly SysCacheService _sysCacheService; @@ -35,7 +34,6 @@ public class SysAuthService : IDynamicApiController, ITransient IHttpContextAccessor httpContextAccessor, SysOnlineUserService sysOnlineUserService, SysConfigService sysConfigService, - SysLdapService sysLdapService, IEventPublisher eventPublisher, SysSmsService sysSmsService, SysCacheService sysCacheService, @@ -57,7 +55,6 @@ public class SysAuthService : IDynamicApiController, ITransient _sysConfigService = sysConfigService; _httpContextAccessor = httpContextAccessor; _sysOnlineUserService = sysOnlineUserService; - _sysLdapService = sysLdapService; } /// @@ -86,23 +83,7 @@ public class SysAuthService : IDynamicApiController, ITransient // 账号是否被冻结 if (user.Status == StatusEnum.Disable) throw Oops.Oh(ErrorCodeEnum.D1017); - - // 是否开启域登录验证 - if (await _sysConfigService.GetConfigValue(ConfigConst.SysDomainLogin)) - { - var userLdap = await _sysUserRep.ChangeRepository>().GetFirstAsync(u => u.UserId == user.Id && u.TenantId == tenant.Id); - if (userLdap == null) - { - VerifyPassword(input.Password, keyPasswordErrorTimes, passwordErrorTimes, user); - } - else if (!await App.GetRequiredService().AuthAccount(tenant.Id, userLdap.Account, CryptogramUtil.Decrypt(input.Password))) - { - _sysCacheService.Set(keyPasswordErrorTimes, ++passwordErrorTimes, TimeSpan.FromMinutes(30)); - throw Oops.Oh(ErrorCodeEnum.D1000); - } - } - else - VerifyPassword(input.Password, keyPasswordErrorTimes, passwordErrorTimes, user); + VerifyPassword(input.Password, keyPasswordErrorTimes, passwordErrorTimes, user); // 登录成功则清空密码错误次数 _sysCacheService.Remove(keyPasswordErrorTimes); @@ -184,23 +165,7 @@ public class SysAuthService : IDynamicApiController, ITransient var keyPasswordErrorTimes = $"{CacheConst.KeyPasswordErrorTimes}{user.Account}"; var passwordErrorTimes = _sysCacheService.Get(keyPasswordErrorTimes); - - // 是否开启域登录验证 - if (await _sysConfigService.GetConfigValue(ConfigConst.SysDomainLogin)) - { - var userLdap = await _sysUserRep.ChangeRepository>().GetFirstAsync(u => u.UserId == user.Id && u.TenantId == user.TenantId); - if (userLdap == null) - { - VerifyPassword(password, keyPasswordErrorTimes, passwordErrorTimes, user); - } - else if (!await _sysLdapService.AuthAccount(user.TenantId!.Value, userLdap.Account, CryptogramUtil.Decrypt(password))) - { - _sysCacheService.Set(keyPasswordErrorTimes, ++passwordErrorTimes, TimeSpan.FromMinutes(30)); - throw Oops.Oh(ErrorCodeEnum.D1000); - } - } - else - VerifyPassword(password, keyPasswordErrorTimes, passwordErrorTimes, user); + VerifyPassword(password, keyPasswordErrorTimes, passwordErrorTimes, user); return true; } diff --git a/Admin.NET.Core/Service/Auth/SysLdapService.cs b/Admin.NET.Core/Service/Auth/SysLdapService.cs deleted file mode 100644 index 1d35afe..0000000 --- a/Admin.NET.Core/Service/Auth/SysLdapService.cs +++ /dev/null @@ -1,437 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Novell.Directory.Ldap; - -namespace Admin.NET.Core; - -/// -/// 系统域登录配置服务 🧩 -/// -[ApiDescriptionSettings(Order = 496, Description = "域登录配置")] -public class SysLdapService : IDynamicApiController, ITransient -{ - private readonly SqlSugarRepository _sysLdapRep; - - public SysLdapService(SqlSugarRepository sysLdapRep) - { - _sysLdapRep = sysLdapRep; - } - - /// - /// 获取系统域登录配置分页列表 🔖 - /// - /// - /// - [DisplayName("获取系统域登录配置分页列表")] - public async Task> Page(SysLdapInput input) - { - return await _sysLdapRep.AsQueryable() - .WhereIF(!string.IsNullOrWhiteSpace(input.Keyword), u => u.Host.Contains(input.Keyword.Trim())) - .WhereIF(!string.IsNullOrWhiteSpace(input.Host), u => u.Host.Contains(input.Host.Trim())) - .OrderBy(u => u.CreateTime, OrderByType.Desc) - .ToPagedListAsync(input.Page, input.PageSize); - } - - /// - /// 增加系统域登录配置 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "Add"), HttpPost] - [DisplayName("增加系统域登录配置")] - public async Task Add(AddSysLdapInput input) - { - var entity = input.Adapt(); - entity.BindPass = CryptogramUtil.Encrypt(input.BindPass); - await _sysLdapRep.InsertAsync(entity); - return entity.Id; - } - - /// - /// 更新系统域登录配置 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "Update"), HttpPost] - [DisplayName("更新系统域登录配置")] - public async Task Update(UpdateSysLdapInput input) - { - var entity = input.Adapt(); - if (!string.IsNullOrEmpty(input.BindPass) && input.BindPass.Length < 32) - { - entity.BindPass = CryptogramUtil.Encrypt(input.BindPass); // 加密 - } - - await _sysLdapRep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommandAsync(); - } - - /// - /// 删除系统域登录配置 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "Delete"), HttpPost] - [DisplayName("删除系统域登录配置")] - public async Task Delete(DeleteSysLdapInput input) - { - var entity = await _sysLdapRep.GetFirstAsync(u => u.Id == input.Id) ?? throw Oops.Oh(ErrorCodeEnum.D1002); - await _sysLdapRep.FakeDeleteAsync(entity); // 假删除 - //await _rep.DeleteAsync(entity); // 真删除 - } - - /// - /// 获取系统域登录配置详情 🔖 - /// - /// - /// - [DisplayName("获取系统域登录配置详情")] - public async Task GetDetail([FromQuery] DetailSysLdapInput input) - { - return await _sysLdapRep.GetFirstAsync(u => u.Id == input.Id); - } - - /// - /// 获取系统域登录配置列表 🔖 - /// - /// - [DisplayName("获取系统域登录配置列表")] - public async Task> GetList() - { - return await _sysLdapRep.AsQueryable().Select().ToListAsync(); - } - - /// - /// 验证账号 - /// - /// 域用户 - /// 密码 - /// 租户 - /// - [NonAction] - public async Task AuthAccount(long? tenantId, string account, string password) - { - var sysLdap = await _sysLdapRep.GetFirstAsync(u => u.TenantId == tenantId) ?? throw Oops.Oh(ErrorCodeEnum.D1002); - var ldapConn = new LdapConnection(); - try - { - await ldapConn.ConnectAsync(sysLdap.Host, sysLdap.Port); - string bindPass = CryptogramUtil.Decrypt(sysLdap.BindPass); - await ldapConn.BindAsync(sysLdap.Version, sysLdap.BindDn, bindPass); - var ldapSearchResults = await ldapConn.SearchAsync(sysLdap.BaseDn, LdapConnection.ScopeSub, sysLdap.AuthFilter.Replace("%s", account), null, false); - string dn = string.Empty; - while (await ldapSearchResults.HasMoreAsync()) - { - var ldapEntry = await ldapSearchResults.NextAsync(); - var sAmAccountName = ldapEntry.GetAttributeSet().GetAttribute(sysLdap.BindAttrAccount)?.StringValue; - if (string.IsNullOrEmpty(sAmAccountName)) continue; - dn = ldapEntry.Dn; - break; - } - - if (string.IsNullOrEmpty(dn)) throw Oops.Oh(ErrorCodeEnum.D1002); - // var attr = new LdapAttribute("userPassword", password); - await ldapConn.BindAsync(dn, password); - } - catch (LdapException e) - { - return e.ResultCode switch - { - LdapException.NoSuchObject or LdapException.NoSuchAttribute => throw Oops.Oh(ErrorCodeEnum.D0009), - LdapException.InvalidCredentials => false, - _ => throw Oops.Oh(e.Message), - }; - } - finally - { - ldapConn.Disconnect(); - } - - return true; - } - - /// - /// 同步域用户 🔖 - /// - /// - /// - [DisplayName("同步域用户")] - [NonAction] - public async Task> SyncUserTenant(long tenantId) - { - var sysLdap = await _sysLdapRep.GetFirstAsync(c => c.TenantId == tenantId && c.IsDelete == false && c.Status == StatusEnum.Enable) ?? throw Oops.Oh(ErrorCodeEnum.D1002); - return await SysLdapService.SyncUser(sysLdap); - } - - /// - /// 同步域用户 🔖 - /// - /// - /// - [DisplayName("同步域用户")] - public async Task> SyncUser(SyncSysLdapInput input) - { - var sysLdap = await _sysLdapRep.GetByIdAsync(input.Id) ?? throw Oops.Oh(ErrorCodeEnum.D1002); - return await SysLdapService.SyncUser(sysLdap); - } - - /// - /// 同步域用户 🔖 - /// - /// - /// - private static async Task> SyncUser(SysLdap sysLdap) - { - if (sysLdap == null) throw Oops.Oh(ErrorCodeEnum.D1002); - var ldapConn = new LdapConnection(); - try - { - await ldapConn.ConnectAsync(sysLdap.Host, sysLdap.Port); - string bindPass = CryptogramUtil.Decrypt(sysLdap.BindPass); - await ldapConn.BindAsync(sysLdap.Version, sysLdap.BindDn, bindPass); - var ldapSearchResults = await ldapConn.SearchAsync(sysLdap.BaseDn, LdapConnection.ScopeOne, "(objectClass=*)", null, false); - var userLdapList = new List(); - while (await ldapSearchResults.HasMoreAsync()) - { - LdapEntry ldapEntry; - try - { - ldapEntry = await ldapSearchResults.NextAsync(); - if (ldapEntry == null) continue; - } - catch (LdapException) - { - continue; - } - - var attrs = ldapEntry.GetAttributeSet(); - var deptCode = GetDepartmentCode(attrs, sysLdap.BindAttrCode); - if (attrs.Count == 0 || attrs.ContainsKey("OU")) - { - await SearchDnLdapUser(ldapConn, sysLdap, userLdapList, ldapEntry.Dn, deptCode); - } - else - { - var sysUserLdap = CreateSysUserLdap(attrs, sysLdap.BindAttrAccount, sysLdap.BindAttrEmployeeId, deptCode); - sysUserLdap.Dn = ldapEntry.Dn; - sysUserLdap.TenantId = sysLdap.TenantId; - userLdapList.Add(sysUserLdap); - } - } - - if (userLdapList.Count == 0) return null; - - await App.GetRequiredService().InsertUserLdapList(sysLdap.TenantId!.Value, userLdapList); - return userLdapList; - } - catch (LdapException e) - { - throw e.ResultCode switch - { - LdapException.NoSuchObject or LdapException.NoSuchAttribute => Oops.Oh(ErrorCodeEnum.D0009), - _ => Oops.Oh(e.Message), - }; - } - finally - { - ldapConn.Disconnect(); - } - } - - /// - /// 获取部门代码 - /// - /// - /// - /// - private static string GetDepartmentCode(LdapAttributeSet attrs, string bindAttrCode) - { - return bindAttrCode == "objectGUID" - ? new Guid(attrs.GetAttribute(bindAttrCode)?.ByteValue!).ToString() - : attrs.GetAttribute(bindAttrCode)?.StringValue ?? "0"; - } - - /// - /// 创建同步对象 - /// - /// - /// - /// - /// - /// - private static SysUserLdap CreateSysUserLdap(LdapAttributeSet attrs, string bindAttrAccount, string bindAttrEmployeeId, string deptCode) - { - var userLdap = new SysUserLdap - { - Account = attrs.ContainsKey(bindAttrAccount) ? attrs.GetAttribute(bindAttrAccount)?.StringValue : null, - EmployeeId = attrs.ContainsKey(bindAttrEmployeeId) ? attrs.GetAttribute(bindAttrEmployeeId)?.StringValue : null, - DeptCode = deptCode, - UserName = attrs.ContainsKey("name") ? attrs.GetAttribute("name")?.StringValue : null, - Mail = attrs.ContainsKey("mail") ? attrs.GetAttribute("mail")?.StringValue : null - }; - var pwdLastSet = attrs.ContainsKey("pwdLastSet") ? attrs.GetAttribute("pwdLastSet")?.StringValue : null; - if (pwdLastSet != null && !pwdLastSet.Equals("0")) userLdap.PwdLastSetTime = DateTime.FromFileTime(Convert.ToInt64(pwdLastSet)); - var userAccountControl = attrs.ContainsKey("userAccountControl") ? attrs.GetAttribute("userAccountControl")?.StringValue : null; - if ((Convert.ToInt32(userAccountControl) & 0x2) == 0x2) // 检查账户是否已过期(通过检查userAccountControl属性的特定位) - userLdap.AccountExpiresFlag = true; - if ((Convert.ToInt32(userAccountControl) & 0x10000) == 0x10000) // 检查账户密码设置是否永不过期 - userLdap.DontExpiresFlag = true; - return userLdap; - } - - /// - /// 遍历查询域用户 - /// - /// - /// - /// - /// - /// - private static async Task SearchDnLdapUser(LdapConnection ldapConn, SysLdap sysLdap, List userLdapList, string baseDn, string deptCode) - { - var ldapSearchResults = await ldapConn.SearchAsync(baseDn, LdapConnection.ScopeOne, "(objectClass=*)", null, false); - while (await ldapSearchResults.HasMoreAsync()) - { - LdapEntry ldapEntry; - try - { - ldapEntry = await ldapSearchResults.NextAsync(); - if (ldapEntry == null) continue; - } - catch (LdapException) - { - continue; - } - - var attrs = ldapEntry.GetAttributeSet(); - deptCode = GetDepartmentCode(attrs, sysLdap.BindAttrCode); - - if (attrs.Count == 0 || attrs.ContainsKey("OU")) - await SearchDnLdapUser(ldapConn, sysLdap, userLdapList, ldapEntry.Dn, deptCode); - else - { - var sysUserLdap = CreateSysUserLdap(attrs, sysLdap.BindAttrAccount, sysLdap.BindAttrEmployeeId, deptCode); - sysUserLdap.Dn = ldapEntry.Dn; - sysUserLdap.TenantId = sysLdap.TenantId; - if (string.IsNullOrEmpty(sysUserLdap.EmployeeId)) continue; - userLdapList.Add(sysUserLdap); - } - } - } - - /// - /// 同步域组织 🔖 - /// - /// - /// - [DisplayName("同步域组织")] - public async Task SyncDept(SyncSysLdapInput input) - { - var sysLdap = await _sysLdapRep.GetFirstAsync(u => u.Id == input.Id) ?? throw Oops.Oh(ErrorCodeEnum.D1002); - var ldapConn = new LdapConnection(); - try - { - await ldapConn.ConnectAsync(sysLdap.Host, sysLdap.Port); - string bindPass = CryptogramUtil.Decrypt(sysLdap.BindPass); - await ldapConn.BindAsync(sysLdap.Version, sysLdap.BindDn, bindPass); - var ldapSearchResults = await ldapConn.SearchAsync(sysLdap.BaseDn, LdapConnection.ScopeOne, "(objectClass=*)", null, false); - var orgList = new List(); - while (await ldapSearchResults.HasMoreAsync()) - { - LdapEntry ldapEntry; - try - { - ldapEntry = await ldapSearchResults.NextAsync(); - if (ldapEntry == null) continue; - } - catch (LdapException) - { - continue; - } - - var attrs = ldapEntry.GetAttributeSet(); - if (attrs.Count != 0 && !attrs.ContainsKey("OU")) continue; - - var sysOrg = CreateSysOrg(attrs, sysLdap, orgList, new SysOrg { Id = 0, Level = 0 }); - orgList.Add(sysOrg); - - await SearchDnLdapDept(ldapConn, sysLdap, orgList, ldapEntry.Dn, sysOrg); - } - - if (orgList.Count == 0) - return; - - await App.GetRequiredService().BatchAddOrgs(orgList); - } - catch (LdapException e) - { - throw e.ResultCode switch - { - LdapException.NoSuchObject or LdapException.NoSuchAttribute => Oops.Oh(ErrorCodeEnum.D0009), - _ => Oops.Oh(e.Message), - }; - } - finally - { - ldapConn.Disconnect(); - } - } - - /// - /// 遍历查询域用户 - /// - /// - /// - /// - /// - /// - private static async Task SearchDnLdapDept(LdapConnection ldapConn, SysLdap sysLdap, List listOrgs, string baseDn, SysOrg org) - { - var ldapSearchResults = await ldapConn.SearchAsync(baseDn, LdapConnection.ScopeOne, "(objectClass=*)", null, false); - while (await ldapSearchResults.HasMoreAsync()) - { - LdapEntry ldapEntry; - try - { - ldapEntry = await ldapSearchResults.NextAsync(); - if (ldapEntry == null) continue; - } - catch (LdapException) - { - continue; - } - - var attrs = ldapEntry.GetAttributeSet(); - if (attrs.Count != 0 && !attrs.ContainsKey("OU")) continue; - - var sysOrg = CreateSysOrg(attrs, sysLdap, listOrgs, org); - listOrgs.Add(sysOrg); - - await SearchDnLdapDept(ldapConn, sysLdap, listOrgs, ldapEntry.Dn, sysOrg); - } - } - - /// - /// 创建架构对象 - /// - /// - /// - /// - /// - /// - private static SysOrg CreateSysOrg(LdapAttributeSet attrs, SysLdap sysLdap, List listOrgs, SysOrg org) - { - return new SysOrg - { - Pid = org.Id, - Id = YitIdHelper.NextId(), - Code = attrs.ContainsKey(sysLdap.BindAttrCode) ? new Guid(attrs.GetAttribute(sysLdap.BindAttrCode)?.ByteValue).ToString() : null, - Level = org.Level + 1, - Name = attrs.ContainsKey(sysLdap.BindAttrAccount) ? attrs.GetAttribute(sysLdap.BindAttrAccount)?.StringValue : null, - OrderNo = listOrgs.Count + 1, - }; - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/CodeGen/CustomViewEngine.cs b/Admin.NET.Core/Service/CodeGen/CustomViewEngine.cs deleted file mode 100644 index d935511..0000000 --- a/Admin.NET.Core/Service/CodeGen/CustomViewEngine.cs +++ /dev/null @@ -1,184 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 自定义模板引擎 -/// -public class CustomViewEngine : ViewEngineModel -{ - /// - /// 库定位器 - /// - public string ConfigId { get; set; } = SqlSugarConst.MainConfigId; - - public string AuthorName { get; set; } - - public string BusName { get; set; } - - public string NameSpace { get; set; } - - public string ClassName { get; set; } - - public string LowerClassName { get; set; } - - public string ProjectLastName { get; set; } - - public string PagePath { get; set; } = "main"; - - public string PrintType { get; set; } - - public string PrintName { get; set; } - - public bool HasLikeQuery { get; set; } - - public bool HasJoinTable { get; set; } - - public bool HasEnumField { get; set; } - - public bool HasDictField { get; set; } - - public bool HasConstField { get; set; } - - public bool HasSetStatus => TableField.Any(IsStatus); - - public List TableField { get; set; } - - public List ImportFieldList { get; set; } - - public List UploadFieldList { get; set; } - - public List QueryWhetherList { get; set; } - - public List ApiTreeFieldList { get; set; } - - public List DropdownFieldList { get; set; } - - public List AddUpdateFieldList { get; set; } - - public List PrimaryKeyFieldList { get; set; } - - public List TableUniqueConfigList { get; set; } - - public List IgnoreUpdateFieldList => TableField.Where(u => u.WhetherAddUpdate == "N" && u.ColumnKey != "True" && u.WhetherCommon != "Y").ToList(); - - /// - /// 格式化主键查询条件 - /// 例: PrimaryKeysFormat(" || ", "u.{0} == input.{0}") - /// 单主键返回 u.Id == input.Id - /// 组合主键返回 u.Id == input.Id || u.FkId == input.FkId - /// - /// 分隔符 - /// 模板字符串 - /// 字段首字母小写 - /// - public string PrimaryKeysFormat(string separator, string format, bool lowerFirstLetter = false) => string.Join(separator, PrimaryKeyFieldList.Select(u => string.Format(format, lowerFirstLetter ? u.LowerPropertyName : u.PropertyName))); - - /// - /// 注入的服务 - /// - /// - public Dictionary InjectServiceMap - { - get - { - var injectMap = new Dictionary(); - if (UploadFieldList.Count > 0) injectMap.Add(nameof(SysFileService), ToLowerFirstLetter(nameof(SysFileService))); - if (DropdownFieldList.Count > 0 || ImportFieldList.Count > 0) injectMap.Add(nameof(ISqlSugarClient), ToLowerFirstLetter(nameof(ISqlSugarClient).TrimStart('I'))); - if (ImportFieldList.Any(c => c.EffectType == "DictSelector")) injectMap.Add(nameof(SysDictTypeService), ToLowerFirstLetter(nameof(SysDictTypeService))); - return injectMap; - } - } - - /// - /// 服务构造参数 - /// - public string InjectServiceArgs => InjectServiceMap.Count > 0 ? ", " + string.Join(", ", InjectServiceMap.Select(kv => $"{kv.Key} {kv.Value}")) : ""; - - /// - /// 默认值列表 - /// - public List DefaultValueList { get; set; } - - /// - /// 判断字段是否为状态字段 - /// - /// - /// - public bool IsStatus(CodeGenConfig column) => column.NetType == nameof(StatusEnum); - - /// - /// 获取首字母小写字符串 - /// - /// - /// - public string ToLowerFirstLetter(string text) => string.IsNullOrWhiteSpace(text) ? text : text[..1].ToLower() + text[1..]; - - /// - /// 将基本字段类型转为可空类型 - /// - /// - /// - public string GetNullableNetType(string netType) => Regex.IsMatch(netType, "(.*?Enum|bool|char|int|long|double|float|decimal)[?]?") ? netType.TrimEnd('?') + "?" : netType; - - /// - /// 获取前端表格列定义的属性 - /// - /// - /// - public string GetElTableColumnCustomProperty(CodeGenConfig column) - { - var content = $"prop='{column.LowerPropertyName}' label='{column.ColumnComment}'"; - if (IsStatus(column)) content += $" v-auth=\"'{LowerClassName}:setStatus'\""; - if (column.WhetherSortable == "Y") content += " sortable='custom'"; - return content; - } - - /// - /// 设置默认值 - /// - /// - public string GetAddDefaultValue() - { - var content = ""; - if (DefaultValueList.Count == 0) - { - var status = TableField.FirstOrDefault(IsStatus); - var orderNo = TableField.FirstOrDefault(c => c.NetType.TrimEnd('?') == "int" && c.PropertyName == nameof(SysUser.OrderNo)); - if (status != null) content += $"{status.LowerPropertyName}: {(int)StatusEnum.Enable},"; - if (orderNo != null) content += $"{orderNo.LowerPropertyName}: 100,"; - } - else - { - foreach (var item in DefaultValueList) - { - if (!string.IsNullOrWhiteSpace(item.DefaultValue)) - { - switch (item.EffectType) - { - case "InputNumber": - case "EnumSelector"://枚举和数字框,通过正则提取 数字:如 ('0') - content += $"{item.LowerPropertyName}: {Regex.Match(item.DefaultValue, @"\d+").Value},"; - break; - - case "Switch": - content += $"{item.LowerPropertyName}: {(item.DefaultValue == "1" ? true.ToString().ToLower() : false.ToString().ToLower())},"; - break; - - case "DatePicker"://忽略适配日期格式 - break; - - default: - content += $"{item.LowerPropertyName}: \"{item.DefaultValue}\",";// 如果是字符串 DefaultValue=('男') - break; - } - } - } - } - return content; - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/CodeGen/Dto/CodeGenConfig.cs b/Admin.NET.Core/Service/CodeGen/Dto/CodeGenConfig.cs deleted file mode 100644 index e550c9a..0000000 --- a/Admin.NET.Core/Service/CodeGen/Dto/CodeGenConfig.cs +++ /dev/null @@ -1,234 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 代码生成详细配置参数 -/// -public class CodeGenConfig -{ - /// - /// 主键Id - /// - public long Id { get; set; } - - /// - /// 代码生成主表ID - /// - public long CodeGenId { get; set; } - - /// - /// 数据库字段名 - /// - public string ColumnName { get; set; } - - /// - /// 主外键 - /// - public string ColumnKey { get; set; } - - /// - /// 实体属性名 - /// - public string PropertyName { get; set; } - - /// - /// 字段数据长度 - /// - public int ColumnLength { get; set; } - - /// - /// 数据库字段名(首字母小写) - /// - public string LowerPropertyName => string.IsNullOrWhiteSpace(PropertyName) ? null : PropertyName[..1].ToLower() + PropertyName[1..]; - - /// - /// 字段描述 - /// - public string ColumnComment { get; set; } - - /// - /// .NET类型 - /// - public string NetType { get; set; } - - /// - /// 数据库中类型(物理类型) - /// - public string DataType { get; set; } - - /// - /// 字段数据默认值 - /// - public string DefaultValue { get; set; } - - /// - /// 可空.NET类型 - /// - public string NullableNetType => Regex.IsMatch(NetType ?? "", "(.*?Enum|bool|char|int|long|double|float|decimal)[?]?") ? NetType.TrimEnd('?') + "?" : NetType; - - /// - /// 作用类型(字典) - /// - public string EffectType { get; set; } - - /// - /// 外键库标识 - /// - public string FkConfigId { get; set; } - - /// - /// 外键实体名称 - /// - public string FkEntityName { get; set; } - - /// - /// 外键表名称 - /// - public string FkTableName { get; set; } - - /// - /// 外键实体名称(首字母小写) - /// - public string LowerFkEntityName => string.IsNullOrWhiteSpace(FkEntityName) ? null : FkEntityName[..1].ToLower() + FkEntityName[1..]; - - /// - /// 外键链接字段 - /// - public string FkLinkColumnName { get; set; } - - /// - /// 外键显示字段 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public string FkDisplayColumns { get; set; } - - /// - /// 外键显示字段 - /// - public List FkDisplayColumnList { get; set; } - - /// - /// 外键显示字段(首字母小写) - /// - public List LowerFkDisplayColumnsList => FkDisplayColumnList?.Select(name => name[..1].ToLower() + name[1..]).ToList(); - - /// - /// 外键显示字段.NET类型 - /// - public string FkColumnNetType { get; set; } - - /// - /// 父级字段 - /// - public string PidColumn { get; set; } - - /// - /// 字典code - /// - public string DictTypeCode { get; set; } - - /// - /// 查询方式 - /// - public string QueryType { get; set; } - - /// - /// 是否是查询条件 - /// - public string WhetherQuery { get; set; } - - /// - /// 列表是否缩进(字典) - /// - public string WhetherRetract { get; set; } - - /// - /// 是否必填(字典) - /// - public string WhetherRequired { get; set; } - - /// - /// 是否可排序(字典) - /// - public string WhetherSortable { get; set; } - - /// - /// 列表显示 - /// - public string WhetherTable { get; set; } - - /// - /// 增改 - /// - public string WhetherAddUpdate { get; set; } - - /// - /// 导入 - /// - public string WhetherImport { get; set; } - - /// - /// 是否是通用字段 - /// - public string WhetherCommon { get; set; } - - /// - /// 排序 - /// - public int OrderNo { get; set; } - - /// - /// 是否是选择器控件 - /// - public bool IsSelectorEffectType => Regex.IsMatch(EffectType ?? "", "Selector$|ForeignKey", RegexOptions.IgnoreCase); - - /// - /// 去掉尾部Id的属性名 - /// - public string PropertyNameTrimEndId => PropertyName.TrimEnd("Id"); - - /// - /// 去掉尾部Id的属性名 - /// - public string LowerPropertyNameTrimEndId => LowerPropertyName.TrimEnd("Id"); - - /// - /// 扩展属性名称 - /// - public string ExtendedPropertyName => EffectType switch - { - "ForeignKey" => $"{PropertyName.TrimEnd("Id")}FkDisplayName", - "ApiTreeSelector" => $"{PropertyName.TrimEnd("Id")}DisplayName", - "DictSelector" => $"{PropertyName.TrimEnd("Id")}DictLabel", - "Upload" => $"{PropertyName.TrimEnd("Id")}Attachment", - "Upload_SingleFile" => $"{PropertyName.TrimEnd("Id")}Attachment", - _ => PropertyName - }; - - /// - /// 首字母小写的扩展属性名称 - /// - public string LowerExtendedPropertyName - { - get - { - var displayPropertyName = ExtendedPropertyName; - if (string.IsNullOrWhiteSpace(displayPropertyName)) return null; - return displayPropertyName[..1].ToLower() + displayPropertyName[1..]; - } - } - - /// - /// 获取外键显示值语句 - /// - /// 表别名 - /// 多字段时的连接符 - /// - public string GetDisplayColumn(string tableAlias, string separator = "-") => "$\"" + string.Join(separator, FkDisplayColumnList?.Select(name => $"{{{tableAlias}.{name}}}") ?? new List()) + "\""; -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/CodeGen/Dto/CodeGenInput.cs b/Admin.NET.Core/Service/CodeGen/Dto/CodeGenInput.cs deleted file mode 100644 index 4598d98..0000000 --- a/Admin.NET.Core/Service/CodeGen/Dto/CodeGenInput.cs +++ /dev/null @@ -1,199 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 代码生成参数类 -/// -public class CodeGenInput : BasePageInput -{ - /// - /// 作者姓名 - /// - public virtual string AuthorName { get; set; } - - /// - /// 类名 - /// - public virtual string ClassName { get; set; } - - /// - /// 是否移除表前缀 - /// - public virtual string TablePrefix { get; set; } - - /// - /// 库定位器名 - /// - public virtual string ConfigId { get; set; } - - /// - /// 数据库名(保留字段) - /// - public virtual string DbName { get; set; } - - /// - /// 数据库类型 - /// - public virtual string DbType { get; set; } - - /// - /// 数据库链接 - /// - public virtual string ConnectionString { get; set; } - - /// - /// 生成方式 - /// - public virtual string GenerateType { get; set; } - - /// - /// 数据库表名 - /// - public virtual string TableName { get; set; } - - /// - /// 命名空间 - /// - public virtual string NameSpace { get; set; } - - /// - /// 业务名(业务代码包名称) - /// - public virtual string BusName { get; set; } - - /// - /// 功能名(数据库表名称) - /// - public virtual string TableComment { get; set; } - - /// - /// 表唯一字段 - /// - [Newtonsoft.Json.JsonIgnore] - [System.Text.Json.Serialization.JsonIgnore] - public virtual string TableUniqueConfig { get; set; } - - /// - /// 表唯一字段列表 - /// - public virtual List TableUniqueList { get; set; } - - /// - /// 菜单应用分类(应用编码) - /// - public virtual string MenuApplication { get; set; } - - /// - /// 是否生成菜单 - /// - public virtual bool GenerateMenu { get; set; } - - /// - /// 菜单父级 - /// - public virtual long? MenuPid { get; set; } - - /// - /// 菜单图标 - /// - public virtual string MenuIcon { get; set; } - - /// - /// 页面目录 - /// - public virtual string PagePath { get; set; } - - /// - /// 支持打印类型 - /// - public virtual string PrintType { get; set; } - - /// - /// 打印模版名称 - /// - public virtual string PrintName { get; set; } -} - -public class AddCodeGenInput : CodeGenInput -{ - /// - /// 数据库表名 - /// - [Required(ErrorMessage = "数据库表名不能为空")] - public override string TableName { get; set; } - - /// - /// 业务名(业务代码包名称) - /// - [Required(ErrorMessage = "业务名不能为空")] - public override string BusName { get; set; } - - /// - /// 命名空间 - /// - [Required(ErrorMessage = "命名空间不能为空")] - public override string NameSpace { get; set; } - - /// - /// 作者姓名 - /// - [Required(ErrorMessage = "作者姓名不能为空")] - public override string AuthorName { get; set; } - - ///// - ///// 类名 - ///// - //[Required(ErrorMessage = "类名不能为空")] - //public override string ClassName { get; set; } - - ///// - ///// 是否移除表前缀 - ///// - //[Required(ErrorMessage = "是否移除表前缀不能为空")] - //public override string TablePrefix { get; set; } - - /// - /// 生成方式 - /// - [Required(ErrorMessage = "生成方式不能为空")] - public override string GenerateType { get; set; } - - ///// - ///// 功能名(数据库表名称) - ///// - //[Required(ErrorMessage = "数据库表名不能为空")] - //public override string TableComment { get; set; } - - /// - /// 是否生成菜单 - /// - [Required(ErrorMessage = "是否生成菜单不能为空")] - public override bool GenerateMenu { get; set; } -} - -public class DeleteCodeGenInput -{ - /// - /// 代码生成器Id - /// - [Required(ErrorMessage = "代码生成器Id不能为空")] - public long Id { get; set; } -} - -public class UpdateCodeGenInput : AddCodeGenInput -{ - /// - /// 代码生成器Id - /// - [Required(ErrorMessage = "代码生成器Id不能为空")] - public long Id { get; set; } -} - -public class QueryCodeGenInput : DeleteCodeGenInput -{ -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/CodeGen/Dto/CodeGenOutput.cs b/Admin.NET.Core/Service/CodeGen/Dto/CodeGenOutput.cs deleted file mode 100644 index aee96f6..0000000 --- a/Admin.NET.Core/Service/CodeGen/Dto/CodeGenOutput.cs +++ /dev/null @@ -1,83 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 代码生成参数类 -/// -public class CodeGenOutput -{ - /// - /// 代码生成器Id - /// - public long Id { get; set; } - - /// - /// 作者姓名 - /// - public string AuthorName { get; set; } - - /// - /// 类名 - /// - public string ClassName { get; set; } - - /// - /// 是否移除表前缀 - /// - public string TablePrefix { get; set; } - - /// - /// 生成方式 - /// - public string GenerateType { get; set; } - - /// - /// 数据库表名 - /// - public string TableName { get; set; } - - /// - /// 包名 - /// - public string PackageName { get; set; } - - /// - /// 业务名(业务代码包名称) - /// - public string BusName { get; set; } - - /// - /// 功能名(数据库表名称) - /// - public string TableComment { get; set; } - - /// - /// 菜单应用分类(应用编码) - /// - public string MenuApplication { get; set; } - - /// - /// 是否生成菜单 - /// - public bool GenerateMenu { get; set; } - - /// - /// 菜单父级 - /// - public long? MenuPid { get; set; } - - /// - /// 支持打印类型 - /// - public string PrintType { get; set; } - - /// - /// 打印模版名称 - /// - public string PrintName { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/CodeGen/Dto/ColumnOuput.cs b/Admin.NET.Core/Service/CodeGen/Dto/ColumnOuput.cs deleted file mode 100644 index 01047e2..0000000 --- a/Admin.NET.Core/Service/CodeGen/Dto/ColumnOuput.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 数据库表列 -/// -public class ColumnOuput -{ - /// - /// 字段名 - /// - public string ColumnName { get; set; } - - /// - /// 实体的Property名 - /// - public string PropertyName { get; set; } - - /// - /// 字段数据长度 - /// - public int ColumnLength { get; set; } - - /// - /// 数据库中类型 - /// - public string DataType { get; set; } - - /// - /// 字段数据默认值 - /// - public string DefaultValue { get; set; } - - /// - /// 是否为主键 - /// - public bool IsPrimarykey { get; set; } - - /// - /// 是否允许为空 - /// - public bool IsNullable { get; set; } - - /// - /// .NET字段类型 - /// - public string NetType { get; set; } - - /// - /// 字典编码 - /// - public string DictTypeCode { get; set; } - - /// - /// 字段描述 - /// - public string ColumnComment { get; set; } - - /// - /// 主外键 - /// - public string ColumnKey { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/CodeGen/Dto/DatabaseOutput.cs b/Admin.NET.Core/Service/CodeGen/Dto/DatabaseOutput.cs deleted file mode 100644 index dae6db3..0000000 --- a/Admin.NET.Core/Service/CodeGen/Dto/DatabaseOutput.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 数据库 -/// -public class DatabaseOutput -{ - /// - /// 库定位器名 - /// - public string ConfigId { get; set; } - - /// - /// 库名 - /// - public string DbNickName { get; set; } - - /// - /// 数据库类型 - /// - public SqlSugar.DbType DbType { get; set; } - - /// - /// 数据库连接字符串 - /// - public string ConnectionString { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/CodeGen/Dto/TableOutput.cs b/Admin.NET.Core/Service/CodeGen/Dto/TableOutput.cs deleted file mode 100644 index 1bb8e81..0000000 --- a/Admin.NET.Core/Service/CodeGen/Dto/TableOutput.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 数据库表 -/// -public class TableOutput -{ - /// - /// 库定位器名 - /// - public string ConfigId { get; set; } - - /// - /// 表名(字母形式的) - /// - public string TableName { get; set; } - - /// - /// 实体名称 - /// - public string EntityName { get; set; } - - /// - /// 创建时间 - /// - public string CreateTime { get; set; } - - /// - /// 更新时间 - /// - public string UpdateTime { get; set; } - - /// - /// 表名称描述(功能名) - /// - public string TableComment { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/CodeGen/Dto/TableUniqueConfigItem.cs b/Admin.NET.Core/Service/CodeGen/Dto/TableUniqueConfigItem.cs deleted file mode 100644 index 0cac927..0000000 --- a/Admin.NET.Core/Service/CodeGen/Dto/TableUniqueConfigItem.cs +++ /dev/null @@ -1,31 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 表唯一配置项 -/// -public class TableUniqueConfigItem -{ - /// - /// 字段列表 - /// - public List Columns { get; set; } - - /// - /// 描述信息 - /// - public string Message { get; set; } - - /// - /// 格式化查询条件 - /// - /// 分隔符 - /// 模板字符串 - /// - public string Format(string separator, string format) => string.Join(separator, Columns.Select(name => string.Format(format, name))); -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/CodeGen/SysCodeGenConfigService.cs b/Admin.NET.Core/Service/CodeGen/SysCodeGenConfigService.cs deleted file mode 100644 index 44e42cd..0000000 --- a/Admin.NET.Core/Service/CodeGen/SysCodeGenConfigService.cs +++ /dev/null @@ -1,256 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 系统代码生成配置服务 🧩 -/// -[ApiDescriptionSettings(Order = 260)] -public class SysCodeGenConfigService : IDynamicApiController, ITransient -{ - private readonly ISqlSugarClient _db; - - public SysCodeGenConfigService(ISqlSugarClient db) - { - _db = db; - } - - /// - /// 获取代码生成配置列表 🔖 - /// - /// - /// - [DisplayName("获取代码生成配置列表")] - public async Task> GetList([FromQuery] CodeGenConfig input) - { - return await _db.Queryable() - .Where(u => u.CodeGenId == input.CodeGenId) - .Select() - .Mapper(u => - { - u.NetType = (u.EffectType == "EnumSelector" ? u.DictTypeCode : u.NetType); - u.FkDisplayColumnList = u.FkDisplayColumns?.Split(",").ToList(); - }) - .OrderBy(u => new { u.OrderNo, u.Id }) - .ToListAsync(); - } - - /// - /// 更新代码生成配置 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "Update"), HttpPost] - [DisplayName("更新代码生成配置")] - public async Task UpdateCodeGenConfig(List inputList) - { - if (inputList == null || inputList.Count < 1) return; - inputList.ForEach(e => - { - e.FkDisplayColumns = e.FkDisplayColumnList?.Count > 0 ? string.Join(",", e.FkDisplayColumnList) : null; - }); - await _db.Updateable(inputList.Adapt>()) - .IgnoreColumns(u => new { u.ColumnLength, u.ColumnName, u.PropertyName }) - .ExecuteCommandAsync(); - } - - /// - /// 删除代码生成配置 - /// - /// - /// - [NonAction] - public async Task DeleteCodeGenConfig(long codeGenId) - { - await _db.Deleteable().Where(u => u.CodeGenId == codeGenId).ExecuteCommandAsync(); - } - - /// - /// 获取代码生成配置详情 🔖 - /// - /// - /// - [DisplayName("获取代码生成配置详情")] - public async Task GetDetail([FromQuery] CodeGenConfig input) - { - return await _db.Queryable().FirstAsync(u => u.Id == input.Id); - } - - /// - /// 批量增加代码生成配置 - /// - /// - /// - [NonAction] - public void AddList(List tableColumnOutputList, SysCodeGen codeGenerate) - { - if (tableColumnOutputList == null) return; - - var codeGenConfigs = new List(); - var orderNo = 100; - foreach (var tableColumn in tableColumnOutputList) - { - var codeGenConfig = new SysCodeGenConfig(); - - var yesOrNo = YesNoEnum.Y.ToString(); - if (Convert.ToBoolean(tableColumn.ColumnKey)) yesOrNo = YesNoEnum.N.ToString(); - - if (CodeGenUtil.IsCommonColumn(tableColumn.PropertyName)) - { - codeGenConfig.WhetherCommon = YesNoEnum.Y.ToString(); - yesOrNo = YesNoEnum.N.ToString(); - } - else - { - codeGenConfig.WhetherCommon = YesNoEnum.N.ToString(); - } - - codeGenConfig.CodeGenId = codeGenerate.Id; - codeGenConfig.ColumnName = tableColumn.ColumnName; // 字段名 - codeGenConfig.PropertyName = tableColumn.PropertyName;// 实体属性名 - codeGenConfig.ColumnLength = tableColumn.ColumnLength;// 长度 - codeGenConfig.ColumnComment = tableColumn.ColumnComment; - codeGenConfig.NetType = tableColumn.NetType; - codeGenConfig.DefaultValue = tableColumn.DefaultValue; - codeGenConfig.WhetherRetract = YesNoEnum.N.ToString(); - - // 生成代码时,主键并不是必要输入项,故一定要排除主键字段 - codeGenConfig.WhetherRequired = (tableColumn.IsNullable || tableColumn.IsPrimarykey) ? YesNoEnum.N.ToString() : YesNoEnum.Y.ToString(); - codeGenConfig.WhetherQuery = yesOrNo; - codeGenConfig.WhetherImport = yesOrNo; - codeGenConfig.WhetherAddUpdate = yesOrNo; - codeGenConfig.WhetherTable = yesOrNo; - - codeGenConfig.ColumnKey = tableColumn.ColumnKey; - - codeGenConfig.DataType = tableColumn.DataType; - codeGenConfig.EffectType = CodeGenUtil.DataTypeToEff(codeGenConfig.NetType); - codeGenConfig.QueryType = GetDefaultQueryType(codeGenConfig); // QueryTypeEnum.eq.ToString(); - codeGenConfig.OrderNo = orderNo; - codeGenConfigs.Add(codeGenConfig); - - if (!string.IsNullOrWhiteSpace(tableColumn.DictTypeCode)) - { - codeGenConfig.QueryType = "=="; - codeGenConfig.DictTypeCode = tableColumn.DictTypeCode; - codeGenConfig.EffectType = tableColumn.DictTypeCode.EndsWith("Enum") ? "EnumSelector" : "DictSelector"; - } - - orderNo += 10; // 每个配置排序间隔10 - } - // 多库代码生成---这里要切回主库 - var provider = _db.AsTenant().GetConnectionScope(SqlSugarConst.MainConfigId); - provider.Insertable(codeGenConfigs).ExecuteCommand(); - } - - /// - /// 批量更新代码字段:先删除再新增,会保留历史字段操作类型 - /// - /// - /// - [NonAction] - public async Task UpdateList(List tableColumnOutputList, long codeGenId) - { - if (tableColumnOutputList == null) return; - - //获取历史数据 - var oldList = await GetList(new CodeGenConfig() { CodeGenId = codeGenId, }); - //删除历史数据 - await DeleteCodeGenConfig(codeGenId); - - var codeGenConfigs = new List(); - var orderNo = 100; - foreach (var tableColumn in tableColumnOutputList) - { - var oldItem = oldList.FirstOrDefault(u => u.ColumnName == tableColumn.ColumnName); - - var codeGenConfig = new SysCodeGenConfig(); - - var yesOrNo = YesNoEnum.Y.ToString(); - if (Convert.ToBoolean(tableColumn.ColumnKey)) yesOrNo = YesNoEnum.N.ToString(); - - if (CodeGenUtil.IsCommonColumn(tableColumn.PropertyName)) - { - codeGenConfig.WhetherCommon = YesNoEnum.Y.ToString(); - yesOrNo = YesNoEnum.N.ToString(); - } - else - { - codeGenConfig.WhetherCommon = YesNoEnum.N.ToString(); - } - - codeGenConfig.CodeGenId = codeGenId; - codeGenConfig.ColumnName = tableColumn.ColumnName; // 字段名 - codeGenConfig.PropertyName = tableColumn.PropertyName;// 实体属性名 - codeGenConfig.ColumnLength = tableColumn.ColumnLength;// 长度 - codeGenConfig.ColumnComment = tableColumn.ColumnComment; - codeGenConfig.NetType = tableColumn.NetType; - codeGenConfig.DefaultValue = tableColumn.DefaultValue; - codeGenConfig.WhetherRetract = YesNoEnum.N.ToString(); - - // 生成代码时,主键并不是必要输入项,故一定要排除主键字段 - codeGenConfig.WhetherRequired = (tableColumn.IsNullable || tableColumn.IsPrimarykey) ? YesNoEnum.N.ToString() : YesNoEnum.Y.ToString(); - codeGenConfig.WhetherQuery = yesOrNo; - codeGenConfig.WhetherImport = yesOrNo; - codeGenConfig.WhetherAddUpdate = yesOrNo; - codeGenConfig.WhetherTable = yesOrNo; - - codeGenConfig.ColumnKey = tableColumn.ColumnKey; - - codeGenConfig.DataType = tableColumn.DataType; - codeGenConfig.EffectType = CodeGenUtil.DataTypeToEff(codeGenConfig.NetType); - codeGenConfig.QueryType = GetDefaultQueryType(codeGenConfig); // QueryTypeEnum.eq.ToString(); - codeGenConfig.OrderNo = orderNo; - - if (oldItem != null) - { - //如果历史存在,则继承 - codeGenConfig.WhetherQuery = oldItem.WhetherQuery; - codeGenConfig.WhetherImport = oldItem.WhetherImport; - codeGenConfig.WhetherAddUpdate = oldItem.WhetherAddUpdate; - codeGenConfig.WhetherTable = oldItem.WhetherTable; - - codeGenConfig.EffectType = oldItem.EffectType; - codeGenConfig.FkConfigId = oldItem.FkConfigId; - codeGenConfig.FkEntityName = oldItem.FkEntityName; - codeGenConfig.FkTableName = oldItem.FkTableName; - codeGenConfig.FkDisplayColumns = oldItem.FkDisplayColumns; - codeGenConfig.FkLinkColumnName = oldItem.FkLinkColumnName; - codeGenConfig.FkColumnNetType = oldItem.FkColumnNetType; - } - - codeGenConfigs.Add(codeGenConfig); - - if (!string.IsNullOrWhiteSpace(tableColumn.DictTypeCode)) - { - codeGenConfig.QueryType = "=="; - codeGenConfig.DictTypeCode = tableColumn.DictTypeCode; - codeGenConfig.EffectType = tableColumn.DictTypeCode.EndsWith("Enum") ? "EnumSelector" : "DictSelector"; - } - - orderNo += 10; // 每个配置排序间隔10 - } - // 多库代码生成---这里要切回主库 - var provider = _db.AsTenant().GetConnectionScope(SqlSugarConst.MainConfigId); - provider.Insertable(codeGenConfigs).ExecuteCommand(); - } - - /// - /// 默认查询类型 - /// - /// - /// - private static string GetDefaultQueryType(SysCodeGenConfig codeGenConfig) - { - return (codeGenConfig.NetType?.TrimEnd('?')) switch - { - "string" => "like", - "DateTime" => "~", - _ => "==", - }; - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/CodeGen/SysCodeGenService.cs b/Admin.NET.Core/Service/CodeGen/SysCodeGenService.cs deleted file mode 100644 index d5d5793..0000000 --- a/Admin.NET.Core/Service/CodeGen/SysCodeGenService.cs +++ /dev/null @@ -1,825 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using System.IO.Compression; - -namespace Admin.NET.Core.Service; - -/// -/// 系统代码生成器服务 🧩 -/// -[ApiDescriptionSettings(Order = 270)] -public class SysCodeGenService : IDynamicApiController, ITransient -{ - private readonly ISqlSugarClient _db; - - private readonly SysCodeGenConfigService _codeGenConfigService; - private readonly DbConnectionOptions _dbConnectionOptions; - private readonly CodeGenOptions _codeGenOptions; - private readonly SysMenuService _sysMenuService; - private readonly IViewEngine _viewEngine; - private readonly UserManager _userManager; - - public SysCodeGenService(ISqlSugarClient db, - IOptions dbConnectionOptions, - SysCodeGenConfigService codeGenConfigService, - IOptions codeGenOptions, - SysMenuService sysMenuService, - UserManager userManager, - IViewEngine viewEngine) - { - _db = db; - _viewEngine = viewEngine; - _userManager = userManager; - _sysMenuService = sysMenuService; - _codeGenOptions = codeGenOptions.Value; - _codeGenConfigService = codeGenConfigService; - _dbConnectionOptions = dbConnectionOptions.Value; - } - - /// - /// 获取代码生成分页列表 🔖 - /// - /// - /// - [DisplayName("获取代码生成分页列表")] - public async Task> Page(CodeGenInput input) - { - return await _db.Queryable() - .WhereIF(!string.IsNullOrWhiteSpace(input.TableName), u => u.TableName.Contains(input.TableName.Trim())) - .WhereIF(!string.IsNullOrWhiteSpace(input.BusName), u => u.BusName.Contains(input.BusName.Trim())) - .ToPagedListAsync(input.Page, input.PageSize); - } - - /// - /// 增加代码生成 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "Add"), HttpPost] - [DisplayName("增加代码生成")] - public async Task AddCodeGen(AddCodeGenInput input) - { - var isExist = await _db.Queryable().Where(u => u.TableName == input.TableName).AnyAsync(); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1400); - - if (input.TableUniqueList?.Count > 0) input.TableUniqueConfig = JSON.Serialize(input.TableUniqueList); - - var codeGen = input.Adapt(); - var newCodeGen = await _db.Insertable(codeGen).ExecuteReturnEntityAsync(); - - // 增加配置表 - _codeGenConfigService.AddList(GetColumnList(input), newCodeGen); - } - - /// - /// 更新代码生成 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "Update"), HttpPost] - [DisplayName("更新代码生成")] - public async Task UpdateCodeGen(UpdateCodeGenInput input) - { - var isExist = await _db.Queryable().AnyAsync(u => u.TableName == input.TableName && u.Id != input.Id); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1400); - - var oldRecord = await _db.Queryable().FirstAsync(u => u.Id == input.Id); - try - { - // 开启事务 - _db.AsTenant().BeginTran(); - if (input.GenerateMenu) - { - var oldTitle = $"{oldRecord.BusName}管理"; - var newTitle = $"{input.BusName}管理"; - var updateObj = await _db.Queryable().FirstAsync(u => u.Title == oldTitle); - if (updateObj != null) - { - updateObj.Title = newTitle; - var result = _db.Updateable(updateObj).UpdateColumns(it => new { it.Title }).ExecuteCommand(); - _sysMenuService.DeleteMenuCache(); - } - } - if (input.TableUniqueList?.Count > 0) input.TableUniqueConfig = JSON.Serialize(input.TableUniqueList); - var codeGen = input.Adapt(); - await _db.Updateable(codeGen).ExecuteCommandAsync(); - - // 仅当数据表名称发生了变化,才更新配置表 - //if (oldRecord.TableName != input.TableName) - //{ - await _codeGenConfigService.DeleteCodeGenConfig(codeGen.Id); - _codeGenConfigService.AddList(GetColumnList(input.Adapt()), codeGen); - //} - _db.AsTenant().CommitTran(); - } - catch (Exception ex) - { - _db.AsTenant().RollbackTran(); - throw Oops.Oh(ex); - } - } - - /// - /// 同步代码字段(保留历史作用类型) 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "SyncField"), HttpPost] - [DisplayName("同步代码字段")] - public async Task SyncCodeFieldGen(UpdateCodeGenInput input) - { - var isExist = await _db.Queryable().AnyAsync(u => u.TableName == input.TableName && u.Id != input.Id); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1400); - try - { - // 开启事务 - _db.AsTenant().BeginTran(); - await _codeGenConfigService.UpdateList(GetColumnList(input.Adapt()), input.Id); - _db.AsTenant().CommitTran(); - } - catch (Exception ex) - { - _db.AsTenant().RollbackTran(); - throw Oops.Oh(ex); - } - } - - /// - /// 删除代码生成 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "Delete"), HttpPost] - [DisplayName("删除代码生成")] - public async Task DeleteCodeGen(List inputs) - { - if (inputs == null || inputs.Count < 1) return; - - var codeGenConfigTaskList = new List(); - inputs.ForEach(u => - { - _db.Deleteable().In(u.Id).ExecuteCommand(); - - // 删除配置表 - codeGenConfigTaskList.Add(_codeGenConfigService.DeleteCodeGenConfig(u.Id)); - }); - await Task.WhenAll(codeGenConfigTaskList); - } - - /// - /// 获取代码生成详情 🔖 - /// - /// - /// - [DisplayName("获取代码生成详情")] - public async Task GetDetail([FromQuery] QueryCodeGenInput input) - { - return await _db.Queryable().SingleAsync(u => u.Id == input.Id); - } - - /// - /// 获取数据库库集合 🔖 - /// - /// - [DisplayName("获取数据库库集合")] - public async Task> GetDatabaseList() - { - var dbConfigs = _dbConnectionOptions.ConnectionConfigs; - return await Task.FromResult(dbConfigs.Adapt>()); - } - - /// - /// 获取数据库表(实体)集合 🔖 - /// - /// - [DisplayName("获取数据库表(实体)集合")] - public async Task> GetTableList(string configId = SqlSugarConst.MainConfigId) - { - var provider = _db.AsTenant().GetConnectionScope(configId); - var dbTableInfos = provider.DbMaintenance.GetTableInfoList(false); // 不能走缓存,否则切库不起作用 - var config = _dbConnectionOptions.ConnectionConfigs.FirstOrDefault(u => configId.Equals(u.ConfigId)); - - // var dbTableNames = dbTableInfos.Select(u => u.Name.ToLower()).ToList(); - IEnumerable entityInfos = await GetEntityInfos(configId); - - var tableOutputList = new List(); - foreach (var item in entityInfos) - { - var tbConfigId = item.Type.GetCustomAttribute()?.configId as string ?? SqlSugarConst.MainConfigId; - if (item.Type.IsDefined(typeof(LogTableAttribute))) tbConfigId = SqlSugarConst.LogConfigId; - if (tbConfigId != configId) continue; - - var table = dbTableInfos.FirstOrDefault(u => string.Equals(u.Name, (config!.DbSettings.EnableUnderLine ? item.DbTableName.ToUnderLine() : item.DbTableName), StringComparison.CurrentCultureIgnoreCase)); - if (table == null) continue; - tableOutputList.Add(new TableOutput - { - ConfigId = configId, - EntityName = item.EntityName, - TableName = table.Name, - TableComment = item.TableDescription - }); - } - return tableOutputList; - } - - /// - /// 根据表名获取列集合 🔖 - /// - /// - [DisplayName("根据表名获取列集合")] - public List GetColumnListByTableName([Required] string tableName, string configId = SqlSugarConst.MainConfigId) - { - // 切库---多库代码生成用 - var provider = _db.AsTenant().GetConnectionScope(configId); - var config = _dbConnectionOptions.ConnectionConfigs.FirstOrDefault(u => u.ConfigId.ToString() == configId) ?? throw Oops.Oh(ErrorCodeEnum.D1401); - if (config.DbSettings.EnableUnderLine) tableName = tableName.ToUnderLine(); - // 获取实体类型属性 - var entityType = provider.DbMaintenance.GetTableInfoList(false).FirstOrDefault(u => u.Name == tableName); - if (entityType == null) return null; - var properties = GetEntityInfos(configId).Result.First(e => e.DbTableName.EndsWithIgnoreCase(tableName)).Type.GetProperties() - .Where(e => e.GetCustomAttribute()?.IsIgnore == false).Select(e => new - { - PropertyName = e.Name, - ColumnComment = e.GetCustomAttribute()?.ColumnDescription, - ColumnName = e.GetCustomAttribute()?.ColumnName ?? e.Name - }).ToList(); - // 按原始类型的顺序获取所有实体类型属性(不包含导航属性,会返回null) - var columnList = provider.DbMaintenance.GetColumnInfosByTableName(tableName).Select(u => new ColumnOuput - { - ColumnName = config!.DbSettings.EnableUnderLine ? u.DbColumnName.ToUnderLine() : u.DbColumnName, - ColumnKey = u.IsPrimarykey.ToString(), - DataType = u.DataType.ToString(), - NetType = CodeGenUtil.ConvertDataType(u, provider.CurrentConnectionConfig.DbType), - ColumnComment = u.ColumnDescription - }).ToList(); - foreach (var column in columnList) - { - // ToLowerInvariant 将字段名转成小写再比较,避免因大小写不一致导致无法匹配(pgsql创建表会默认全小写,而我们的实体中又是大写,就会匹配不上) - var property = properties.FirstOrDefault(e => (config!.DbSettings.EnableUnderLine ? e.ColumnName.ToUnderLine() : e.ColumnName).ToLowerInvariant() == column.ColumnName.ToLowerInvariant()); - column.ColumnComment ??= property?.ColumnComment; - column.PropertyName = property?.PropertyName; - } - return columnList; - } - - /// - /// 获取数据表列(实体属性)集合 - /// - /// - private List GetColumnList([FromQuery] AddCodeGenInput input) - { - var entityType = GetEntityInfos(input.ConfigId).GetAwaiter().GetResult().FirstOrDefault(u => u.EntityName == input.TableName); - if (entityType == null) return null; - - var config = _dbConnectionOptions.ConnectionConfigs.FirstOrDefault(u => u.ConfigId.ToString() == input.ConfigId); - var dbTableName = config!.DbSettings.EnableUnderLine ? entityType.DbTableName.ToUnderLine() : entityType.DbTableName; - - // 切库---多库代码生成用 - var provider = _db.AsTenant().GetConnectionScope(!string.IsNullOrEmpty(input.ConfigId) ? input.ConfigId : SqlSugarConst.MainConfigId); - - var entityBasePropertyNames = CodeGenUtil.GetPropertyInfoArray(typeof(EntityBaseTenant))?.Select(p => p.Name).ToArray(); - var columnInfos = provider.DbMaintenance.GetColumnInfosByTableName(dbTableName, false); - var result = columnInfos.Select(u => new ColumnOuput - { - // 转下划线后的列名需要再转回来(暂时不转) - //ColumnName = config.DbSettings.EnableUnderLine ? CodeGenUtil.CamelColumnName(u.DbColumnName, entityBasePropertyNames) : u.DbColumnName, - ColumnName = u.DbColumnName, - ColumnLength = u.Length, - IsPrimarykey = u.IsPrimarykey, - IsNullable = u.IsNullable, - ColumnKey = u.IsPrimarykey.ToString(), - NetType = CodeGenUtil.ConvertDataType(u, provider.CurrentConnectionConfig.DbType), - DataType = CodeGenUtil.ConvertDataType(u, provider.CurrentConnectionConfig.DbType), - ColumnComment = string.IsNullOrWhiteSpace(u.ColumnDescription) ? u.DbColumnName : u.ColumnDescription, - DefaultValue = u.DefaultValue, - }).ToList(); - - // 获取实体的属性信息,赋值给PropertyName属性(CodeFirst模式应以PropertyName为实际使用名称) - var entityProperties = entityType.Type.GetProperties(); - - for (int i = result.Count - 1; i >= 0; i--) - { - var columnOutput = result[i]; - // 先找自定义字段名的,如果找不到就再找自动生成字段名的(并且过滤掉没有SugarColumn的属性) - var propertyInfo = entityProperties.FirstOrDefault(u => string.Equals((u.GetCustomAttribute()?.ColumnName ?? ""), columnOutput.ColumnName, StringComparison.CurrentCultureIgnoreCase)) ?? - entityProperties.FirstOrDefault(u => u.GetCustomAttribute() != null && u.Name.ToLower() == (config.DbSettings.EnableUnderLine - ? CodeGenUtil.CamelColumnName(columnOutput.ColumnName, entityBasePropertyNames).ToLower() - : columnOutput.ColumnName.ToLower())); - if (propertyInfo != null) - { - columnOutput.PropertyName = propertyInfo.Name; - columnOutput.ColumnComment = propertyInfo.GetCustomAttribute()!.ColumnDescription; - var propertyType = Nullable.GetUnderlyingType(propertyInfo.PropertyType); - if (propertyInfo.PropertyType.IsEnum || (propertyType?.IsEnum ?? false)) - { - columnOutput.DictTypeCode = (propertyType ?? propertyInfo.PropertyType).Name; - } - else - { - var dict = propertyInfo.GetCustomAttribute(); - if (dict != null) columnOutput.DictTypeCode = dict.DictTypeCode; - } - } - else - { - result.RemoveAt(i); // 移除没有定义此属性的字段 - } - } - return result; - } - - /// - /// 获取库表信息 - /// - /// - private async Task> GetEntityInfos(string configId) - { - var config = _dbConnectionOptions.ConnectionConfigs.FirstOrDefault(u => u.ConfigId.ToString() == configId) ?? throw Oops.Oh(ErrorCodeEnum.D1401); - var entityInfos = new List(); - - var type = typeof(SugarTable); - var types = new List(); - if (_codeGenOptions.EntityAssemblyNames != null) - { - types = App.EffectiveTypes.Where(c => c.IsClass) - .Where(c => _codeGenOptions.EntityAssemblyNames.Contains(c.Assembly.GetName().Name) || _codeGenOptions.EntityAssemblyNames.Any(name => c.Assembly.GetName().Name!.Contains(name))) - .ToList(); - } - - Type[] cosType = types.Where(o => IsMyAttribute(Attribute.GetCustomAttributes(o, true))).ToArray(); - - foreach (var ct in cosType) - { - var sugarAttribute = ct.GetCustomAttributes(type, true).FirstOrDefault(); - - var description = ""; - var des = ct.GetCustomAttributes(typeof(DescriptionAttribute), true); - if (des.Length > 0) description = ((DescriptionAttribute)des[0]).Description; - - var dbTableName = sugarAttribute == null || string.IsNullOrWhiteSpace(((SugarTable)sugarAttribute).TableName) ? ct.Name : ((SugarTable)sugarAttribute).TableName; - if (config.DbSettings.EnableUnderLine) dbTableName = dbTableName.ToUnderLine(); - - entityInfos.Add(new EntityInfo - { - EntityName = ct.Name, - DbTableName = dbTableName, - TableDescription = sugarAttribute == null ? description : ((SugarTable)sugarAttribute).TableDescription, - Type = ct - }); - } - return await Task.FromResult(entityInfos); - - bool IsMyAttribute(Attribute[] o) => o.Any(a => a.GetType() == type); - } - - /// - /// 获取程序保存位置 🔖 - /// - /// - [DisplayName("获取程序保存位置")] - public List GetApplicationNamespaces() - { - return _codeGenOptions.BackendApplicationNamespaces; - } - - /// - /// 代码生成到本地 🔖 - /// - /// - [UnitOfWork] - [DisplayName("代码生成到本地")] - public async Task RunLocal(SysCodeGen input) - { - if (string.IsNullOrEmpty(input.GenerateType)) - input.GenerateType = "200"; - - // 先删除该表已生成的菜单列表 - List targetPathList; - var zipPath = Path.Combine(App.WebHostEnvironment.WebRootPath, "CodeGen", input.TableName!); - if (input.GenerateType.StartsWith('1')) - { - targetPathList = GetZipPathList(input); - if (Directory.Exists(zipPath)) Directory.Delete(zipPath, true); - } - else - targetPathList = GetTargetPathList(input); - - var (tableFieldList, result) = await RenderTemplateAsync(input); - var templatePathList = GetTemplatePathList(input); - for (var i = 0; i < templatePathList.Count; i++) - { - var content = result.GetValueOrDefault(templatePathList[i]?.TrimEnd(".vm")); - if (string.IsNullOrWhiteSpace(content)) continue; - var dirPath = new DirectoryInfo(targetPathList[i]).Parent!.FullName; - if (!Directory.Exists(dirPath)) Directory.CreateDirectory(dirPath); - _ = File.WriteAllTextAsync(targetPathList[i], content, Encoding.UTF8); - } - - if (input.GenerateMenu) await AddOrUpdateMenu(input.TableName, input.BusName, input.MenuPid ?? 0, input.MenuIcon, input.PagePath, tableFieldList); - - // 非ZIP压缩返回空 - if (!input.GenerateType.StartsWith('1')) return null; - - // 判断是否存在同名称文件 - string downloadPath = zipPath + ".zip"; - if (File.Exists(downloadPath)) File.Delete(downloadPath); - - // 创建zip文件并返回下载地址 - ZipFile.CreateFromDirectory(zipPath, downloadPath); - return new { url = $"{App.HttpContext.Request.Scheme}://{App.HttpContext.Request.Host.Value}/codeGen/{input.TableName}.zip" }; - } - - /// - /// 获取代码生成预览 🔖 - /// - /// - [DisplayName("获取代码生成预览")] - public async Task> Preview(SysCodeGen input) - { - var (_, result) = await RenderTemplateAsync(input); - return result; - } - - /// - /// 渲染模板 - /// - /// - /// - private async Task<(List tableFieldList, Dictionary result)> RenderTemplateAsync(SysCodeGen input) - { - var tableFieldList = await _codeGenConfigService.GetList(new CodeGenConfig { CodeGenId = input.Id }); // 字段集合 - var joinTableList = tableFieldList.Where(u => u.EffectType is "Upload" or "ForeignKey" or "ApiTreeSelector").ToList(); // 需要连表查询的字段 - - var data = new CustomViewEngine - { - ConfigId = input.ConfigId, - BusName = input.BusName, - PagePath = input.PagePath, - NameSpace = input.NameSpace, - ClassName = input.TableName, - PrintType = input.PrintType, - PrintName = input.PrintName, - AuthorName = input.AuthorName, - ProjectLastName = input.NameSpace!.Split('.').Last(), - LowerClassName = input.TableName!.ToFirstLetterLowerCase(), - TableUniqueConfigList = input.TableUniqueList ?? new(), - - TableField = tableFieldList, - QueryWhetherList = tableFieldList.Where(u => u.WhetherQuery == "Y").ToList(), - ImportFieldList = tableFieldList.Where(u => u.WhetherImport == "Y").ToList(), - UploadFieldList = tableFieldList.Where(u => u.EffectType == "Upload" || u.EffectType == "Upload_SingleFile").ToList(), - PrimaryKeyFieldList = tableFieldList.Where(c => c.ColumnKey == "True").ToList(), - AddUpdateFieldList = tableFieldList.Where(u => u.WhetherAddUpdate == "Y").ToList(), - ApiTreeFieldList = tableFieldList.Where(u => u.EffectType == "ApiTreeSelector").ToList(), - DropdownFieldList = tableFieldList.Where(u => u.EffectType is "ForeignKey" or "ApiTreeSelector").ToList(), - DefaultValueList = tableFieldList.Where(u => u.DefaultValue != null && u.DefaultValue.Length > 0).ToList(), - - HasJoinTable = joinTableList.Count > 0, - HasDictField = tableFieldList.Any(u => u.EffectType == "DictSelector"), - HasEnumField = tableFieldList.Any(u => u.EffectType == "EnumSelector"), - HasConstField = tableFieldList.Any(u => u.EffectType == "ConstSelector"), - HasLikeQuery = tableFieldList.Any(c => c.WhetherQuery == "Y" && c.QueryType == "like") - }; - - // 获取模板文件并替换 - var templatePathList = GetTemplatePathList(); - var templatePath = Path.Combine(App.WebHostEnvironment.WebRootPath, "template"); - - var result = new Dictionary(); - foreach (var path in templatePathList) - { - var templateFilePath = Path.Combine(templatePath, path); - if (!File.Exists(templateFilePath)) continue; - var tContent = await File.ReadAllTextAsync(templateFilePath); - var tResult = await _viewEngine.RunCompileFromCachedAsync(tContent, data, builderAction: builder => - { - builder.AddAssemblyReferenceByName("System.Text.RegularExpressions"); - builder.AddAssemblyReferenceByName("System.Collections"); - builder.AddAssemblyReferenceByName("System.Linq"); - - builder.AddUsing("System.Text.RegularExpressions"); - builder.AddUsing("System.Collections.Generic"); - builder.AddUsing("System.Linq"); - }); - result.Add(path?.TrimEnd(".vm"), tResult); - } - return (tableFieldList, result); - } - - /// - /// 添加或更新菜单 - /// - /// - /// - /// - /// - /// - /// - /// - private async Task AddOrUpdateMenu(string className, string busName, long pid, string menuIcon, string pagePath, List tableFieldList) - { - var title = $"{busName}管理"; - var lowerClassName = className.ToFirstLetterLowerCase(); - var menuType = pid == 0 ? MenuTypeEnum.Dir : MenuTypeEnum.Menu; - - // 查询是否已有主菜单 - var existingMenu = await _db.Queryable() - .Where(m => m.Title == title && m.Type == menuType && m.Pid == pid) - .FirstAsync(); - - string parentPath = ""; - if (pid != 0) - { - var parent = await _db.Queryable().FirstAsync(m => m.Id == pid) ?? throw Oops.Oh(ErrorCodeEnum.D1505); - parentPath = parent.Path; - } - - long menuId; - if (existingMenu == null) - { - // 不存在则新增 - var newMenu = new SysMenu - { - Pid = pid, - Title = title, - Type = menuType, - Icon = menuIcon ?? "menu", - Path = (pid == 0 ? "/" : parentPath + "/") + className.ToLower(), - Component = pid == 0 ? "Layout" : $"/{pagePath}/{lowerClassName}/index" - }; - menuId = await _sysMenuService.AddMenu(newMenu.Adapt()); - } - else - { - // 存在则更新 - existingMenu.Icon = menuIcon; - existingMenu.Path = (pid == 0 ? "/" : parentPath + "/") + className.ToLower(); - existingMenu.Component = pid == 0 ? "Layout" : $"/{pagePath}/{lowerClassName}/index"; - await _sysMenuService.UpdateMenu(existingMenu.Adapt()); - menuId = existingMenu.Id; - } - - // 定义应有的按钮 - var orderNo = 100; - var newButtons = new List - { - new() { Title = "查询", Permission = $"{lowerClassName}:page", OrderNo = orderNo += 10 }, - new() { Title = "详情", Permission = $"{lowerClassName}:detail", OrderNo = orderNo += 10 }, - new() { Title = "增加", Permission = $"{lowerClassName}:add", OrderNo = orderNo += 10 }, - new() { Title = "编辑", Permission = $"{lowerClassName}:update", OrderNo = orderNo += 10 }, - new() { Title = "删除", Permission = $"{lowerClassName}:delete", OrderNo = orderNo += 10 }, - new() { Title = "批量删除", Permission = $"{lowerClassName}:batchDelete", OrderNo = orderNo += 10 }, - new() { Title = "设置状态", Permission = $"{lowerClassName}:setStatus", OrderNo = orderNo += 10 }, - new() { Title = "打印", Permission = $"{lowerClassName}:print", OrderNo = orderNo += 10 }, - new() { Title = "导入", Permission = $"{lowerClassName}:import", OrderNo = orderNo += 10 }, - new() { Title = "导出", Permission = $"{lowerClassName}:export", OrderNo = orderNo += 10 } - }; - - if (tableFieldList.Any(u => u.EffectType is "ForeignKey" or "ApiTreeSelector" && (u.WhetherAddUpdate == "Y" || u.WhetherQuery == "Y"))) - { - newButtons.Add(new SysMenu - { - Title = "下拉列表数据", - Permission = $"{lowerClassName}:dropdownData", - OrderNo = orderNo += 10 - }); - } - - foreach (var column in tableFieldList.Where(u => u.EffectType == "Upload" || u.EffectType == "Upload_SingleFile")) - { - newButtons.Add(new SysMenu - { - Title = $"上传{column.ColumnComment}", - Permission = $"{lowerClassName}:upload{column.PropertyName}", - OrderNo = orderNo += 10 - }); - } - - // 获取当前菜单下的按钮 - var existingButtons = await _db.Queryable() - .Where(m => m.Pid == menuId && m.Type == MenuTypeEnum.Btn) - .ToListAsync(); - - var newPermissions = newButtons.Select(b => b.Permission).ToHashSet(); - - // 添加或更新按钮 - foreach (var btn in newButtons) - { - var match = existingButtons.FirstOrDefault(b => b.Permission == btn.Permission); - if (match == null) - { - btn.Type = MenuTypeEnum.Btn; - btn.Pid = menuId; - btn.Icon = ""; - await _sysMenuService.AddMenu(btn.Adapt()); - } - else - { - match.Title = btn.Title; - match.OrderNo = btn.OrderNo; - await _sysMenuService.UpdateMenu(match.Adapt()); - } - } - - // 删除多余的旧按钮 - var toDelete = existingButtons.Where(b => !newPermissions.Contains(b.Permission)).ToList(); - foreach (var del in toDelete) - await _sysMenuService.DeleteMenu(new DeleteMenuInput { Id = del.Id }); - } - - /// - /// 增加菜单 - /// - /// - /// - /// - /// - /// - /// - /// - private async Task AddMenu(string className, string busName, long pid, string menuIcon, string pagePath, List tableFieldList) - { - // 删除已存在的菜单 - var title = $"{busName}管理"; - await DeleteMenuTree(title, pid == 0 ? MenuTypeEnum.Dir : MenuTypeEnum.Menu); - - var parentMenuPath = ""; - var lowerClassName = className!.ToFirstLetterLowerCase(); - if (pid == 0) - { - // 新增目录,并记录Id - var dirMenu = new SysMenu { Pid = 0, Title = title, Type = MenuTypeEnum.Dir, Icon = "robot", Path = "/" + className.ToLower(), Component = "Layout" }; - pid = await _sysMenuService.AddMenu(dirMenu.Adapt()); - } - else - { - var parentMenu = await _db.Queryable().FirstAsync(u => u.Id == pid) ?? throw Oops.Oh(ErrorCodeEnum.D1505); - parentMenuPath = parentMenu.Path; - } - - // 新增菜单,并记录Id - var rootMenu = new SysMenu { Pid = pid, Title = title, Type = MenuTypeEnum.Menu, Icon = menuIcon, Path = $"{parentMenuPath}/{className.ToLower()}", Component = $"/{pagePath}/{lowerClassName}/index" }; - pid = await _sysMenuService.AddMenu(rootMenu.Adapt()); - - var orderNo = 100; - var menuList = new List - { - new() { Title="查询", Permission=$"{lowerClassName}:page", Pid=pid, Type=MenuTypeEnum.Btn, OrderNo=orderNo+=10}, - new() { Title="详情", Permission=$"{lowerClassName}:detail", Pid=pid, Type=MenuTypeEnum.Btn, OrderNo=orderNo+=10}, - new() { Title="增加", Permission=$"{lowerClassName}:add", Pid=pid, Type=MenuTypeEnum.Btn, OrderNo=orderNo+=10}, - new() { Title="编辑", Permission=$"{lowerClassName}:update", Pid=pid, Type=MenuTypeEnum.Btn, OrderNo=orderNo+=10}, - new() { Title="删除", Permission=$"{lowerClassName}:delete", Pid=pid, Type=MenuTypeEnum.Btn, OrderNo=orderNo+=10}, - new() { Title="批量删除", Permission=$"{lowerClassName}:batchDelete", Pid=pid, Type=MenuTypeEnum.Btn, OrderNo=orderNo+=10}, - new() { Title="设置状态", Permission=$"{lowerClassName}:setStatus", Pid=pid, Type=MenuTypeEnum.Btn, OrderNo=orderNo+=10}, - new() { Title="打印", Permission=$"{lowerClassName}:print", Pid=pid, Type=MenuTypeEnum.Btn, OrderNo=orderNo+=10}, - new() { Title="导入", Permission=$"{lowerClassName}:import", Pid=pid, Type=MenuTypeEnum.Btn, OrderNo=orderNo+=10}, - new() { Title="导出", Permission=$"{lowerClassName}:export", Pid=pid, Type=MenuTypeEnum.Btn, OrderNo=orderNo+=10} - }; - - if (tableFieldList.Any(u => u.EffectType is "ForeignKey" or "ApiTreeSelector" && (u.WhetherAddUpdate == "Y" || u.WhetherQuery == "Y"))) - menuList.Add(new SysMenu { Title = "下拉列表数据", Permission = $"{lowerClassName}:dropdownData", Pid = pid, Type = MenuTypeEnum.Btn, OrderNo = orderNo += 10 }); - - foreach (var column in tableFieldList.Where(u => u.EffectType == "Upload")) - menuList.Add(new SysMenu { Title = $"上传{column.ColumnComment}", Permission = $"{lowerClassName}:upload{column.PropertyName}", Pid = pid, Type = MenuTypeEnum.Btn, OrderNo = orderNo += 10 }); - - foreach (var menu in menuList) await _sysMenuService.AddMenu(menu.Adapt()); - } - - /// - /// 根据菜单名称和类型删除关联的菜单树 - /// - /// - /// - private async Task DeleteMenuTree(string title, MenuTypeEnum type) - { - var menuList = await _db.Queryable().Where(u => u.Title == title && u.Type == type).ToListAsync() ?? new(); - foreach (var menu in menuList) await _sysMenuService.DeleteMenu(new DeleteMenuInput { Id = menu.Id }); - } - - /// - /// 获取模板文件路径集合 - /// - /// - private static List GetTemplatePathList(SysCodeGen input) - { - if (input.GenerateType!.Substring(1, 1).Contains('1')) return new() { "index.vue.vm", "editDialog.vue.vm", "api.ts.vm" }; - if (input.GenerateType.Substring(1, 1).Contains('2')) return new() { "Service.cs.vm", "Input.cs.vm", "Output.cs.vm", "Dto.cs.vm" }; - return new() { "Service.cs.vm", "Input.cs.vm", "Output.cs.vm", "Dto.cs.vm", "index.vue.vm", "editDialog.vue.vm", "api.ts.vm" }; - } - - /// - /// 获取模板文件路径集合 - /// - /// - private static List GetTemplatePathList() => new() { "Service.cs.vm", "Input.cs.vm", "Output.cs.vm", "Dto.cs.vm", "index.vue.vm", "editDialog.vue.vm", "api.ts.vm" }; - - /// - /// 设置生成文件路径 - /// - /// - /// - private List GetTargetPathList(SysCodeGen input) - { - //var backendPath = Path.Combine(new DirectoryInfo(App.WebHostEnvironment.ContentRootPath).Parent.FullName, _codeGenOptions.BackendApplicationNamespace, "Service", input.TableName); - var backendPath = Path.Combine(new DirectoryInfo(App.WebHostEnvironment.ContentRootPath).Parent!.FullName, input.NameSpace!, "Service", input.TableName!); - var servicePath = Path.Combine(backendPath, input.TableName + "Service.cs"); - var inputPath = Path.Combine(backendPath, "Dto", input.TableName + "Input.cs"); - var outputPath = Path.Combine(backendPath, "Dto", input.TableName + "Output.cs"); - var viewPath = Path.Combine(backendPath, "Dto", input.TableName + "Dto.cs"); - var frontendPath = Path.Combine(new DirectoryInfo(App.WebHostEnvironment.ContentRootPath).Parent!.Parent!.FullName, _codeGenOptions.FrontRootPath, "src", "views", input.PagePath!); - var indexPath = Path.Combine(frontendPath, input.TableName[..1].ToLower() + input.TableName[1..], "index.vue");// - var formModalPath = Path.Combine(frontendPath, input.TableName[..1].ToLower() + input.TableName[1..], "component", "editDialog.vue"); - var apiJsPath = Path.Combine(new DirectoryInfo(App.WebHostEnvironment.ContentRootPath).Parent!.Parent!.FullName, _codeGenOptions.FrontRootPath, "src", "api", input.PagePath, input.TableName[..1].ToLower() + input.TableName[1..] + ".ts"); - - if (input.GenerateType!.Substring(1, 1).Contains('1')) - { - // 生成到本项目(前端) - return new List - { - indexPath, - formModalPath, - apiJsPath - }; - } - - if (input.GenerateType.Substring(1, 1).Contains('2')) - { - // 生成到本项目(后端) - return new List - { - servicePath, - inputPath, - outputPath, - viewPath, - }; - } - // 前后端同时生成到本项目 - return new List - { - servicePath, - inputPath, - outputPath, - viewPath, - indexPath, - formModalPath, - apiJsPath - }; - } - - /// - /// 设置生成文件路径 - /// - /// - /// - private List GetZipPathList(SysCodeGen input) - { - var zipPath = Path.Combine(App.WebHostEnvironment.WebRootPath, "CodeGen", input.TableName!); - - var firstLowerTableName = input.TableName!.ToFirstLetterLowerCase(); - //var backendPath = Path.Combine(zipPath, _codeGenOptions.BackendApplicationNamespace, "Service", input.TableName); - var backendPath = Path.Combine(zipPath, input.NameSpace!, "Service", input.TableName); - var servicePath = Path.Combine(backendPath, input.TableName + "Service.cs"); - var inputPath = Path.Combine(backendPath, "Dto", input.TableName + "Input.cs"); - var outputPath = Path.Combine(backendPath, "Dto", input.TableName + "Output.cs"); - var viewPath = Path.Combine(backendPath, "Dto", input.TableName + "Dto.cs"); - var frontendPath = Path.Combine(zipPath, _codeGenOptions.FrontRootPath, "src", "views", input.PagePath!); - var indexPath = Path.Combine(frontendPath, firstLowerTableName, "index.vue"); - var formModalPath = Path.Combine(frontendPath, firstLowerTableName, "component", "editDialog.vue"); - var apiJsPath = Path.Combine(zipPath, _codeGenOptions.FrontRootPath, "src", "api", input.PagePath, firstLowerTableName + ".ts"); - if (input.GenerateType!.StartsWith("11")) - { - return new List - { - indexPath, - formModalPath, - apiJsPath - }; - } - - if (input.GenerateType.StartsWith("12")) - { - return new List - { - servicePath, - inputPath, - outputPath, - viewPath - }; - } - - return new List - { - servicePath, - inputPath, - outputPath, - viewPath, - indexPath, - formModalPath, - apiJsPath - }; - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/DataBase/SysDatabaseService.cs b/Admin.NET.Core/Service/DataBase/SysDatabaseService.cs index cdf2cd3..093900a 100644 --- a/Admin.NET.Core/Service/DataBase/SysDatabaseService.cs +++ b/Admin.NET.Core/Service/DataBase/SysDatabaseService.cs @@ -673,16 +673,6 @@ public class SysDatabaseService : IDynamicApiController, ITransient private static string GetEntityTargetPath(CreateEntityInput input) { var backendPath = Path.Combine(new DirectoryInfo(App.WebHostEnvironment.ContentRootPath).Parent.FullName, input.Position, "Entity"); - //if (!Directory.Exists(backendPath)) - //{ - // var pluginsPath = App.GetConfig("AppSettings:ExternalAssemblies"); - // foreach (var pluginPath in pluginsPath) - // { - // backendPath = Path.Combine(new DirectoryInfo(App.WebHostEnvironment.ContentRootPath).Parent.FullName, pluginPath, input.Position, "Entity"); - // if (Directory.Exists(backendPath)) - // break; - // } - //} if (!Directory.Exists(backendPath)) Directory.CreateDirectory(backendPath); return Path.Combine(backendPath, input.EntityName + ".cs"); @@ -773,4 +763,4 @@ public class SysDatabaseService : IDynamicApiController, ITransient FileDownloadName = backupFileName }; } -} \ No newline at end of file +} diff --git a/Admin.NET.Core/Service/Job/DbJobPersistence.cs b/Admin.NET.Core/Service/Job/DbJobPersistence.cs deleted file mode 100644 index 5611835..0000000 --- a/Admin.NET.Core/Service/Job/DbJobPersistence.cs +++ /dev/null @@ -1,188 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 作业持久化(数据库) -/// -public class DbJobPersistence : IJobPersistence -{ - private readonly IServiceScopeFactory _serviceScopeFactory; - - public DbJobPersistence(IServiceScopeFactory serviceScopeFactory) - { - _serviceScopeFactory = serviceScopeFactory; - } - - /// - /// 作业调度服务启动时 - /// - /// - /// - /// - public async Task> PreloadAsync(CancellationToken stoppingToken) - { - using var scope = _serviceScopeFactory.CreateScope(); - var db = scope.ServiceProvider.GetRequiredService().CopyNew(); - var dynamicJobCompiler = scope.ServiceProvider.GetRequiredService(); - - // 获取所有定义的作业 - var allJobs = App.EffectiveTypes.ScanToBuilders().ToList(); - // 若数据库不存在任何作业,则直接返回 - if (!await db.Queryable().AnyAsync(u => true, stoppingToken)) return allJobs; - - // 遍历所有定义的作业 - foreach (var schedulerBuilder in allJobs) - { - // 获取作业信息构建器 - var jobBuilder = schedulerBuilder.GetJobBuilder(); - - // 加载数据库数据 - var dbDetail = await db.Queryable().FirstAsync(u => u.JobId == jobBuilder.JobId, stoppingToken); - if (dbDetail == null) continue; - - // 同步数据库数据 - jobBuilder.LoadFrom(dbDetail); - - // 获取作业的所有数据库的触发器 - var dbTriggers = await db.Queryable().Where(u => u.JobId == jobBuilder.JobId).ToListAsync(stoppingToken); - // 遍历所有作业触发器 - foreach (var (_, triggerBuilder) in schedulerBuilder.GetEnumerable()) - { - // 加载数据库数据 - var dbTrigger = dbTriggers.FirstOrDefault(u => u.JobId == jobBuilder.JobId && u.TriggerId == triggerBuilder.TriggerId); - if (dbTrigger == null) continue; - - triggerBuilder.LoadFrom(dbTrigger).Updated(); // 标记更新 - } - // 遍历所有非编译时定义的触发器加入到作业中 - foreach (var dbTrigger in dbTriggers) - { - if (schedulerBuilder.GetTriggerBuilder(dbTrigger.TriggerId)?.JobId == jobBuilder.JobId) continue; - var triggerBuilder = TriggerBuilder.Create(dbTrigger.TriggerId).LoadFrom(dbTrigger); - schedulerBuilder.AddTriggerBuilder(triggerBuilder); // 先添加 - triggerBuilder.Updated(); // 再标记更新 - } - - // 标记更新 - schedulerBuilder.Updated(); - } - - // 获取数据库所有通过脚本创建的作业 - var allDbScriptJobs = await db.Queryable().Where(u => u.CreateType != JobCreateTypeEnum.BuiltIn).ToListAsync(stoppingToken); - foreach (var dbDetail in allDbScriptJobs) - { - // 动态创建作业 - Type jobType = dbDetail.CreateType switch - { - JobCreateTypeEnum.Script => dynamicJobCompiler.BuildJob(dbDetail.ScriptCode), - JobCreateTypeEnum.Http => typeof(HttpJob), - _ => throw new NotSupportedException(), - }; - - // 动态构建的 jobType 的程序集名称为随机名称,需重新设置 - dbDetail.AssemblyName = jobType.Assembly.FullName!.Split(',')[0]; - var jobBuilder = JobBuilder.Create(jobType).LoadFrom(dbDetail); - - // 强行设置为不扫描 IJob 实现类 [Trigger] 特性触发器,否则 SchedulerBuilder.Create 会再次扫描,导致重复添加同名触发器 - jobBuilder.SetIncludeAnnotations(false); - - // 获取作业的所有数据库的触发器加入到作业中 - var dbTriggers = await db.Queryable().Where(u => u.JobId == jobBuilder.JobId).ToListAsync(); - var triggerBuilders = dbTriggers.Select(u => TriggerBuilder.Create(u.TriggerId).LoadFrom(u).Updated()); - var schedulerBuilder = SchedulerBuilder.Create(jobBuilder, triggerBuilders.ToArray()); - - // 标记更新 - schedulerBuilder.Updated(); - - allJobs.Add(schedulerBuilder); - } - - return allJobs; - } - - /// - /// 作业计划初始化通知 - /// - /// - /// - /// - public Task OnLoadingAsync(SchedulerBuilder builder, CancellationToken stoppingToken) - { - return Task.FromResult(builder); - } - - /// - /// 作业计划Scheduler的JobDetail变化时 - /// - /// - /// - public async Task OnChangedAsync(PersistenceContext context) - { - using var scope = _serviceScopeFactory.CreateScope(); - var db = scope.ServiceProvider.GetRequiredService().CopyNew(); - - var jobDetail = context.JobDetail.Adapt(); - switch (context.Behavior) - { - case PersistenceBehavior.Appended: - await db.Insertable(jobDetail).ExecuteCommandAsync(); - break; - - case PersistenceBehavior.Updated: - await db.Updateable(jobDetail).WhereColumns(u => new { u.JobId }).IgnoreColumns(u => new { u.Id, u.CreateType, u.ScriptCode }).ExecuteCommandAsync(); - break; - - case PersistenceBehavior.Removed: - await db.Deleteable().Where(u => u.JobId == jobDetail.JobId).ExecuteCommandAsync(); - break; - } - } - - /// - /// 作业计划Scheduler的触发器Trigger变化时 - /// - /// - /// - public async Task OnTriggerChangedAsync(PersistenceTriggerContext context) - { - using var scope = _serviceScopeFactory.CreateScope(); - var db = scope.ServiceProvider.GetRequiredService().CopyNew(); - - var jobTrigger = context.Trigger.Adapt(); - switch (context.Behavior) - { - case PersistenceBehavior.Appended: - await db.Insertable(jobTrigger).ExecuteCommandAsync(); - break; - - case PersistenceBehavior.Updated: - await db.Updateable(jobTrigger).WhereColumns(u => new { u.TriggerId, u.JobId }).IgnoreColumns(u => new { u.Id }).ExecuteCommandAsync(); - break; - - case PersistenceBehavior.Removed: - await db.Deleteable().Where(u => u.TriggerId == jobTrigger.TriggerId && u.JobId == jobTrigger.JobId).ExecuteCommandAsync(); - break; - } - } - - /// - /// 作业触发器运行记录 - /// - /// - /// - public async Task OnExecutionRecordAsync(PersistenceExecutionRecordContext context) - { - using var scope = _serviceScopeFactory.CreateScope(); - var db = scope.ServiceProvider.GetRequiredService().CopyNew(); - - var jobTriggerRecord = context.Timeline.Adapt(); - await db.Insertable(jobTriggerRecord).ExecuteCommandAsync(); - - await scope.ServiceProvider.GetRequiredService().ClearExpireJobTriggerRecord(jobTriggerRecord); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Job/Dto/JobDetailInput.cs b/Admin.NET.Core/Service/Job/Dto/JobDetailInput.cs deleted file mode 100644 index 24ff520..0000000 --- a/Admin.NET.Core/Service/Job/Dto/JobDetailInput.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class JobDetailInput -{ - /// - /// 作业Id - /// - public string JobId { get; set; } -} - -public class PageJobDetailInput : BasePageInput -{ - /// - /// 作业Id - /// - public string JobId { get; set; } - - /// - /// 组名称 - /// - public string GroupName { get; set; } - - /// - /// 描述信息 - /// - public string Description { get; set; } -} - -public class AddJobDetailInput : SysJobDetail -{ - /// - /// 作业Id - /// - [Required(ErrorMessage = "作业Id不能为空"), MinLength(2, ErrorMessage = "作业Id不能少于2个字符")] - public override string JobId { get; set; } -} - -public class UpdateJobDetailInput : AddJobDetailInput -{ -} - -public class DeleteJobDetailInput : JobDetailInput -{ -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Job/Dto/JobDetailOutput.cs b/Admin.NET.Core/Service/Job/Dto/JobDetailOutput.cs deleted file mode 100644 index a6efa85..0000000 --- a/Admin.NET.Core/Service/Job/Dto/JobDetailOutput.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class JobDetailOutput -{ - /// - /// 作业信息 - /// - public SysJobDetail JobDetail { get; set; } - - /// - /// 触发器集合 - /// - public List JobTriggers { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Job/Dto/JobTriggerInput.cs b/Admin.NET.Core/Service/Job/Dto/JobTriggerInput.cs deleted file mode 100644 index 334f2ba..0000000 --- a/Admin.NET.Core/Service/Job/Dto/JobTriggerInput.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class JobTriggerInput -{ - /// - /// 作业Id - /// - public string JobId { get; set; } - - /// - /// 触发器Id - /// - public string TriggerId { get; set; } -} - -public class AddJobTriggerInput : SysJobTrigger -{ - /// - /// 作业Id - /// - [Required(ErrorMessage = "作业Id不能为空"), MinLength(2, ErrorMessage = "作业Id不能少于2个字符")] - public override string JobId { get; set; } - - /// - /// 触发器Id - /// - [Required(ErrorMessage = "触发器Id不能为空"), MinLength(2, ErrorMessage = "触发器Id不能少于2个字符")] - public override string TriggerId { get; set; } -} - -public class UpdateJobTriggerInput : AddJobTriggerInput -{ -} - -public class DeleteJobTriggerInput : JobTriggerInput -{ -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Job/Dto/JobTriggerRecordInput.cs b/Admin.NET.Core/Service/Job/Dto/JobTriggerRecordInput.cs deleted file mode 100644 index 2b909b2..0000000 --- a/Admin.NET.Core/Service/Job/Dto/JobTriggerRecordInput.cs +++ /dev/null @@ -1,20 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class PageJobTriggerRecordInput : BasePageInput -{ - /// - /// 作业Id - /// - public string JobId { get; set; } - - /// - /// 触发器Id - /// - public string TriggerId { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Job/JobClusterServer.cs b/Admin.NET.Core/Service/Job/JobClusterServer.cs deleted file mode 100644 index a7156b1..0000000 --- a/Admin.NET.Core/Service/Job/JobClusterServer.cs +++ /dev/null @@ -1,98 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 作业集群控制 -/// -public class JobClusterServer : IJobClusterServer -{ - private static readonly SqlSugarRepository _sysJobClusterRep = App.GetRequiredService>(); - private readonly Random _random = new(DateTime.Now.Millisecond); - - /// - /// 当前作业调度器启动通知 - /// - /// 作业集群服务上下文 - public async void Start(JobClusterContext context) - { - // 在作业集群表中,如果 clusterId 不存在,则新增一条(否则更新一条),并设置 status 为 ClusterStatus.Waiting - if (await _sysJobClusterRep.IsAnyAsync(u => u.ClusterId == context.ClusterId)) - { - await _sysJobClusterRep.AsUpdateable().SetColumns(u => u.Status == ClusterStatus.Waiting).Where(u => u.ClusterId == context.ClusterId).ExecuteCommandAsync(); - } - else - { - await _sysJobClusterRep.AsInsertable(new SysJobCluster { ClusterId = context.ClusterId, Status = ClusterStatus.Waiting }).ExecuteCommandAsync(); - } - } - - /// - /// 等待被唤醒 - /// - /// 作业集群服务上下文 - /// - public async Task WaitingForAsync(JobClusterContext context) - { - var clusterId = context.ClusterId; - - while (true) - { - // 控制集群心跳频率(放在头部为了防止 IsAnyAsync continue 没sleep占用大量IO和CPU) - await Task.Delay(3000 + _random.Next(500, 1000)); // 错开集群同时启动 - - try - { - ICache cache = App.GetRequiredService().Cache; - // 使用分布式锁 - using (cache.AcquireLock("lock:JobClusterServer:WaitingForAsync", 1000)) - { - // 在这里查询数据库,根据以下两种情况处理 - // 1) 如果作业集群表已有 status 为 ClusterStatus.Working 则继续循环 - // 2) 如果作业集群表中还没有其他服务或只有自己,则插入一条集群服务或调用 await WorkNowAsync(clusterId); 之后 return; - // 3) 如果作业集群表中没有 status 为 ClusterStatus.Working 的,调用 await WorkNowAsync(clusterId); 之后 return; - if (await _sysJobClusterRep.IsAnyAsync(u => u.Status == ClusterStatus.Working)) continue; - - await WorkNowAsync(clusterId); - return; - } - } - catch { } - } - } - - /// - /// 当前作业调度器停止通知 - /// - /// 作业集群服务上下文 - public async void Stop(JobClusterContext context) - { - // 在作业集群表中,更新 clusterId 的 status 为 ClusterStatus.Crashed - await _sysJobClusterRep.UpdateAsync(u => new SysJobCluster { Status = ClusterStatus.Crashed }, u => u.ClusterId == context.ClusterId); - } - - /// - /// 当前作业调度器宕机 - /// - /// 作业集群服务上下文 - public async void Crash(JobClusterContext context) - { - // 在作业集群表中,更新 clusterId 的 status 为 ClusterStatus.Crashed - await _sysJobClusterRep.UpdateAsync(u => new SysJobCluster { Status = ClusterStatus.Crashed }, u => u.ClusterId == context.ClusterId); - } - - /// - /// 指示集群可以工作 - /// - /// 集群 Id - /// - private static async Task WorkNowAsync(string clusterId) - { - // 在作业集群表中,更新 clusterId 的 status 为 ClusterStatus.Working - await _sysJobClusterRep.UpdateAsync(u => new SysJobCluster { Status = ClusterStatus.Working }, u => u.ClusterId == clusterId); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Job/JobMonitor.cs b/Admin.NET.Core/Service/Job/JobMonitor.cs deleted file mode 100644 index 3585ba8..0000000 --- a/Admin.NET.Core/Service/Job/JobMonitor.cs +++ /dev/null @@ -1,45 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 作业执行监视器 -/// -public class JobMonitor : IJobMonitor -{ - private readonly SysConfigService _sysConfigService; - private readonly IEventPublisher _eventPublisher; - private readonly ILogger _logger; - - public JobMonitor(IServiceScopeFactory serviceScopeFactory, IEventPublisher eventPublisher, ILogger logger) - { - var serviceScope = serviceScopeFactory.CreateScope(); - _sysConfigService = serviceScope.ServiceProvider.GetRequiredService(); - _eventPublisher = eventPublisher; - _logger = logger; - } - - public Task OnExecutingAsync(JobExecutingContext context, CancellationToken stoppingToken) - { - return Task.CompletedTask; - } - - public async Task OnExecutedAsync(JobExecutedContext context, CancellationToken stoppingToken) - { - if (context.Exception == null) return; - - var exception = $"定时任务【{context.Trigger.Description}】错误:{context.Exception}"; - // 将作业异常信息记录到本地 - _logger.LogError(exception); - - if (await _sysConfigService.GetConfigValue(ConfigConst.SysErrorMail)) - { - // 将作业异常信息发送到邮件 - await _eventPublisher.PublishAsync(CommonConst.SendErrorMail, exception, stoppingToken); - } - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Job/SysJobService.cs b/Admin.NET.Core/Service/Job/SysJobService.cs deleted file mode 100644 index aad0bb7..0000000 --- a/Admin.NET.Core/Service/Job/SysJobService.cs +++ /dev/null @@ -1,398 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 系统作业任务服务 🧩 -/// -[ApiDescriptionSettings(Order = 320, Description = "作业任务")] -public class SysJobService : IDynamicApiController, ITransient -{ - private readonly SqlSugarRepository _sysJobDetailRep; - private readonly SqlSugarRepository _sysJobTriggerRep; - private readonly SqlSugarRepository _sysJobTriggerRecordRep; - private readonly SqlSugarRepository _sysJobClusterRep; - private readonly ISchedulerFactory _schedulerFactory; - private readonly DynamicJobCompiler _dynamicJobCompiler; - - public SysJobService(SqlSugarRepository sysJobDetailRep, - SqlSugarRepository sysJobTriggerRep, - SqlSugarRepository sysJobTriggerRecordRep, - SqlSugarRepository sysJobClusterRep, - ISchedulerFactory schedulerFactory, - DynamicJobCompiler dynamicJobCompiler) - { - _sysJobDetailRep = sysJobDetailRep; - _sysJobTriggerRep = sysJobTriggerRep; - _sysJobTriggerRecordRep = sysJobTriggerRecordRep; - _sysJobClusterRep = sysJobClusterRep; - _schedulerFactory = schedulerFactory; - _dynamicJobCompiler = dynamicJobCompiler; - } - - /// - /// 获取作业分页列表 ⏰ - /// - [DisplayName("获取作业分页列表")] - public async Task> PageJobDetail(PageJobDetailInput input) - { - var jobDetails = await _sysJobDetailRep.AsQueryable() - .WhereIF(!string.IsNullOrWhiteSpace(input.JobId), u => u.JobId.Contains(input.JobId.Trim())) - .WhereIF(!string.IsNullOrWhiteSpace(input.GroupName), u => u.GroupName.Contains(input.GroupName.Trim())) - .WhereIF(!string.IsNullOrWhiteSpace(input.Description), u => u.Description.Contains(input.Description.Trim())) - .Select(d => new JobDetailOutput - { - JobDetail = d, - }).ToPagedListAsync(input.Page, input.PageSize); - await _sysJobDetailRep.AsSugarClient().ThenMapperAsync(jobDetails.Items, async u => - { - u.JobTriggers = await _sysJobTriggerRep.GetListAsync(t => t.JobId == u.JobDetail.JobId); - }); - - // 提取中括号里面的参数值 - var rgx = new Regex(@"(?i)(?<=\[)(.*)(?=\])"); - foreach (var job in jobDetails.Items) - { - foreach (var jobTrigger in job.JobTriggers) - { - jobTrigger.Args = rgx.Match(jobTrigger.Args ?? "").Value; - } - } - return jobDetails; - } - - /// - /// 获取作业组名称集合 ⏰ - /// - [DisplayName("获取作业组名称集合")] - public async Task> ListJobGroup() - { - return await _sysJobDetailRep.AsQueryable().Distinct().Select(e => e.GroupName).ToListAsync(); - } - - /// - /// 添加作业 ⏰ - /// - /// - [ApiDescriptionSettings(Name = "AddJobDetail"), HttpPost] - [DisplayName("添加作业")] - public async Task AddJobDetail(AddJobDetailInput input) - { - var isExist = await _sysJobDetailRep.IsAnyAsync(u => u.JobId == input.JobId && u.Id != input.Id); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1006); - - // 动态创建作业 - Type jobType; - switch (input.CreateType) - { - case JobCreateTypeEnum.Script when string.IsNullOrEmpty(input.ScriptCode): - throw Oops.Oh(ErrorCodeEnum.D1701); - case JobCreateTypeEnum.Script: - { - jobType = _dynamicJobCompiler.BuildJob(input.ScriptCode); - - if (jobType.GetCustomAttributes(typeof(JobDetailAttribute)).FirstOrDefault() is not JobDetailAttribute jobDetailAttribute) - throw Oops.Oh(ErrorCodeEnum.D1702); - if (jobDetailAttribute.JobId != input.JobId) - throw Oops.Oh(ErrorCodeEnum.D1703); - break; - } - case JobCreateTypeEnum.Http: - jobType = typeof(HttpJob); - break; - - default: - throw new NotSupportedException(); - } - - _schedulerFactory.AddJob(JobBuilder.Create(jobType).LoadFrom(input.Adapt()).SetJobType(jobType)); - - // 延迟一下等待持久化写入,再执行其他字段的更新 - await Task.Delay(500); - await _sysJobDetailRep.AsUpdateable() - .SetColumns(u => new SysJobDetail { CreateType = input.CreateType, ScriptCode = input.ScriptCode }) - .Where(u => u.JobId == input.JobId).ExecuteCommandAsync(); - } - - /// - /// 更新作业 ⏰ - /// - /// - [ApiDescriptionSettings(Name = "UpdateJobDetail"), HttpPost] - [DisplayName("更新作业")] - public async Task UpdateJobDetail(UpdateJobDetailInput input) - { - var isExist = await _sysJobDetailRep.IsAnyAsync(u => u.JobId == input.JobId && u.Id != input.Id); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1006); - - var sysJobDetail = await _sysJobDetailRep.GetFirstAsync(u => u.Id == input.Id); - if (sysJobDetail.JobId != input.JobId) throw Oops.Oh(ErrorCodeEnum.D1704); - - var scheduler = _schedulerFactory.GetJob(sysJobDetail.JobId); - var oldScriptCode = sysJobDetail.ScriptCode; // 旧脚本代码 - input.Adapt(sysJobDetail); - - if (input.CreateType == JobCreateTypeEnum.Script) - { - if (string.IsNullOrEmpty(input.ScriptCode)) throw Oops.Oh(ErrorCodeEnum.D1701); - - if (input.ScriptCode != oldScriptCode) - { - // 动态创建作业 - var jobType = _dynamicJobCompiler.BuildJob(input.ScriptCode); - - if (jobType.GetCustomAttributes(typeof(JobDetailAttribute)).FirstOrDefault() is not JobDetailAttribute jobDetailAttribute) - throw Oops.Oh(ErrorCodeEnum.D1702); - if (jobDetailAttribute.JobId != input.JobId) throw Oops.Oh(ErrorCodeEnum.D1703); - - scheduler?.UpdateDetail(JobBuilder.Create(jobType).LoadFrom(sysJobDetail).SetJobType(jobType)); - } - } - else - { - scheduler?.UpdateDetail(scheduler.GetJobBuilder().LoadFrom(sysJobDetail)); - } - - // Tip: 假如这次更新有变更了 JobId,变更 JobId 后触发的持久化更新执行,会由于找不到 JobId 而更新不到数据 - // 延迟一下等待持久化写入,再执行其他字段的更新 - await Task.Delay(500); - await _sysJobDetailRep.UpdateAsync(sysJobDetail); - } - - /// - /// 删除作业 ⏰ - /// - /// - [ApiDescriptionSettings(Name = "DeleteJobDetail"), HttpPost] - [DisplayName("删除作业")] - public async Task DeleteJobDetail(DeleteJobDetailInput input) - { - _schedulerFactory.RemoveJob(input.JobId); - - // 如果 _schedulerFactory 中不存在 JodId,则无法触发持久化,下面的代码确保作业和触发器能被删除 - await _sysJobDetailRep.DeleteAsync(u => u.JobId == input.JobId); - await _sysJobTriggerRep.DeleteAsync(u => u.JobId == input.JobId); - } - - /// - /// 获取触发器列表 ⏰ - /// - [DisplayName("获取触发器列表")] - public async Task> GetJobTriggerList([FromQuery] JobDetailInput input) - { - return await _sysJobTriggerRep.AsQueryable() - .WhereIF(!string.IsNullOrWhiteSpace(input.JobId), u => u.JobId.Contains(input.JobId)) - .ToListAsync(); - } - - /// - /// 添加触发器 ⏰ - /// - /// - [ApiDescriptionSettings(Name = "AddJobTrigger"), HttpPost] - [DisplayName("添加触发器")] - public async Task AddJobTrigger(AddJobTriggerInput input) - { - var isExist = await _sysJobTriggerRep.IsAnyAsync(u => u.TriggerId == input.TriggerId && u.Id != input.Id); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1006); - - var jobTrigger = input.Adapt(); - jobTrigger.Args = "[" + jobTrigger.Args + "]"; - - var scheduler = _schedulerFactory.GetJob(input.JobId); - scheduler?.AddTrigger(Triggers.Create(input.AssemblyName, input.TriggerType).LoadFrom(jobTrigger)); - } - - /// - /// 更新触发器 ⏰ - /// - /// - [ApiDescriptionSettings(Name = "UpdateJobTrigger"), HttpPost] - [DisplayName("更新触发器")] - public async Task UpdateJobTrigger(UpdateJobTriggerInput input) - { - var isExist = await _sysJobTriggerRep.IsAnyAsync(u => u.TriggerId == input.TriggerId && u.Id != input.Id); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1006); - - var jobTrigger = input.Adapt(); - if (jobTrigger.EndTime.HasValue && jobTrigger.EndTime.Value.Year < 1901) - { - jobTrigger.EndTime = null; - } - if (jobTrigger.StartTime.HasValue && jobTrigger.StartTime.Value.Year < 1901) - { - jobTrigger.StartTime = null; - } - jobTrigger.Args = "[" + jobTrigger.Args + "]"; - - var scheduler = _schedulerFactory.GetJob(input.JobId); - scheduler?.UpdateTrigger(Triggers.Create(input.AssemblyName, input.TriggerType).LoadFrom(jobTrigger)); - } - - /// - /// 删除触发器 ⏰ - /// - /// - [ApiDescriptionSettings(Name = "DeleteJobTrigger"), HttpPost] - [DisplayName("删除触发器")] - public async Task DeleteJobTrigger(DeleteJobTriggerInput input) - { - var scheduler = _schedulerFactory.GetJob(input.JobId); - scheduler?.RemoveTrigger(input.TriggerId); - - // 如果 _schedulerFactory 中不存在 JodId,则无法触发持久化,下行代码确保触发器能被删除 - await _sysJobTriggerRep.DeleteAsync(u => u.JobId == input.JobId && u.TriggerId == input.TriggerId); - } - - /// - /// 暂停所有作业 ⏰ - /// - /// - [DisplayName("暂停所有作业")] - public void PauseAllJob() - { - _schedulerFactory.PauseAll(); - } - - /// - /// 启动所有作业 ⏰ - /// - /// - [DisplayName("启动所有作业")] - public void StartAllJob() - { - _schedulerFactory.StartAll(); - } - - /// - /// 暂停作业 ⏰ - /// - [DisplayName("暂停作业")] - public void PauseJob(JobDetailInput input) - { - _schedulerFactory.TryPauseJob(input.JobId, out _); - } - - /// - /// 启动作业 ⏰ - /// - [DisplayName("启动作业")] - public void StartJob(JobDetailInput input) - { - _schedulerFactory.TryStartJob(input.JobId, out _); - } - - /// - /// 取消作业 ⏰ - /// - [DisplayName("取消作业")] - public void CancelJob(JobDetailInput input) - { - _schedulerFactory.TryCancelJob(input.JobId, out _); - } - - /// - /// 执行作业 ⏰ - /// - /// - [DisplayName("执行作业")] - public void RunJob(JobDetailInput input) - { - if (_schedulerFactory.TryRunJob(input.JobId, out _) != ScheduleResult.Succeed) throw Oops.Oh(ErrorCodeEnum.D1705); - } - - /// - /// 暂停触发器 ⏰ - /// - [DisplayName("暂停触发器")] - public void PauseTrigger(JobTriggerInput input) - { - var scheduler = _schedulerFactory.GetJob(input.JobId); - scheduler?.PauseTrigger(input.TriggerId); - } - - /// - /// 启动触发器 ⏰ - /// - [DisplayName("启动触发器")] - public void StartTrigger(JobTriggerInput input) - { - var scheduler = _schedulerFactory.GetJob(input.JobId); - scheduler?.StartTrigger(input.TriggerId); - } - - /// - /// 强制唤醒作业调度器 ⏰ - /// - [DisplayName("强制唤醒作业调度器")] - public void CancelSleep() - { - _schedulerFactory.CancelSleep(); - } - - /// - /// 强制触发所有作业持久化 ⏰ - /// - [DisplayName("强制触发所有作业持久化")] - public void PersistAll() - { - _schedulerFactory.PersistAll(); - } - - /// - /// 获取集群列表 ⏰ - /// - [DisplayName("获取集群列表")] - public async Task> GetJobClusterList() - { - return await _sysJobClusterRep.GetListAsync(); - } - - /// - /// 获取作业触发器运行记录分页列表 ⏰ - /// - [DisplayName("获取作业触发器运行记录分页列表")] - public async Task> PageJobTriggerRecord(PageJobTriggerRecordInput input) - { - return await _sysJobTriggerRecordRep.AsQueryable() - .WhereIF(!string.IsNullOrWhiteSpace(input.JobId), u => u.JobId == input.JobId) - .WhereIF(!string.IsNullOrWhiteSpace(input.TriggerId), u => u.TriggerId == input.TriggerId) - .OrderByDescending(u => u.Id) - .ToPagedListAsync(input.Page, input.PageSize); - } - - /// - /// 清空作业触发器运行记录 🔖 - /// - /// - [ApiDescriptionSettings(Name = "ClearJobTriggerRecord"), HttpPost] - [DisplayName("清空作业触发器运行记录")] - public void ClearJobTriggerRecord() - { - _sysJobTriggerRecordRep.AsSugarClient().DbMaintenance.TruncateTable(); - } - - /// - /// 清空不保留的作业触发器运行记录 🔖 - /// - /// - [NonAction] - [DisplayName("清空过期的作业触发器运行记录")] - public async Task ClearExpireJobTriggerRecord(SysJobTriggerRecord input) - { - int keepRecords = 30;//保留记录条数 - // 使用CopyNew()创建新的数据库连接实例,避免连接冲突 - var db = _sysJobTriggerRecordRep.AsSugarClient().CopyNew(); - await db.Deleteable().In(it => it.Id, - db.Queryable() - .Skip(keepRecords) - .OrderByDescending(it => it.LastRunTime) - .Where(u => u.JobId == input.JobId && u.TriggerId == input.TriggerId) - .Select(it => it.Id) //注意Select不要ToList(), ToList就2次查询了 - ).ExecuteCommandAsync(); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/OAuth/OAuthClaim.cs b/Admin.NET.Core/Service/OAuth/OAuthClaim.cs deleted file mode 100644 index db89229..0000000 --- a/Admin.NET.Core/Service/OAuth/OAuthClaim.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public static class OAuthClaim -{ - public const string GiteeAvatarUrl = "urn:gitee:avatar_url"; -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/OAuth/OAuthSetup.cs b/Admin.NET.Core/Service/OAuth/OAuthSetup.cs deleted file mode 100644 index b58aea6..0000000 --- a/Admin.NET.Core/Service/OAuth/OAuthSetup.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Microsoft.AspNetCore.Authentication; -using Microsoft.AspNetCore.Authentication.Cookies; -using Microsoft.AspNetCore.Authentication.JwtBearer; -using Microsoft.AspNetCore.Builder; - -namespace Admin.NET.Core; - -public static class OAuthSetup -{ - /// - /// 三方授权登录OAuth注册 - /// - /// - public static void AddOAuth(this IServiceCollection services) - { - var authOpt = App.GetConfig("OAuth", true); - services.AddAuthentication(options => - { - options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme; - options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; - }) - .AddCookie(options => - { - options.Cookie.SameSite = SameSiteMode.Lax; - }) - .AddWeixin(options => - { - options.ClientId = authOpt.Weixin?.ClientId!; - options.ClientSecret = authOpt.Weixin?.ClientSecret!; - }) - .AddGitee(options => - { - options.ClientId = authOpt.Gitee?.ClientId!; - options.ClientSecret = authOpt.Gitee?.ClientSecret!; - - options.ClaimActions.MapJsonKey(OAuthClaim.GiteeAvatarUrl, "avatar_url"); - }); - } - - public static void UseOAuth(this IApplicationBuilder app) - { - app.UseCookiePolicy(new CookiePolicyOptions { MinimumSameSitePolicy = SameSiteMode.Lax }); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/OAuth/SysOAuthService.cs b/Admin.NET.Core/Service/OAuth/SysOAuthService.cs deleted file mode 100644 index 99d9621..0000000 --- a/Admin.NET.Core/Service/OAuth/SysOAuthService.cs +++ /dev/null @@ -1,120 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Microsoft.AspNetCore.Authentication; -using System.Security.Claims; - -namespace Admin.NET.Core.Service; - -/// -/// 系统OAuth服务 🧩 -/// -[AllowAnonymous] -[ApiDescriptionSettings(Order = 498)] -public class SysOAuthService : IDynamicApiController, ITransient -{ - private readonly IHttpContextAccessor _httpContextAccessor; - private readonly SqlSugarRepository _sysWechatUserRep; - - public SysOAuthService(IHttpContextAccessor httpContextAccessor, - SqlSugarRepository sysWechatUserRep) - { - _httpContextAccessor = httpContextAccessor; - _sysWechatUserRep = sysWechatUserRep; - } - - /// - /// 第三方登录 🔖 - /// - /// - /// - /// - [ApiDescriptionSettings(Name = "SignIn"), HttpGet] - [DisplayName("第三方登录")] - public virtual async Task SignIn([FromQuery] string provider, [FromQuery] string redirectUrl) - { - if (string.IsNullOrWhiteSpace(provider) || !await _httpContextAccessor.HttpContext.IsProviderSupportedAsync(provider)) - throw Oops.Oh("不支持的OAuth类型"); - - var request = _httpContextAccessor.HttpContext!.Request; - var url = $"{request.Scheme}://{request.Host}{request.PathBase}{request.Path}Callback?provider={provider}&redirectUrl={redirectUrl}"; - var properties = new AuthenticationProperties - { - RedirectUri = url, - Items = { ["LoginProvider"] = provider } - }; - return await Task.FromResult(new ChallengeResult(provider, properties)); - } - - /// - /// 授权回调 🔖 - /// - /// - /// - /// - [ApiDescriptionSettings(Name = "SignInCallback"), HttpGet] - [DisplayName("授权回调")] - public virtual async Task SignInCallback([FromQuery] string provider = null, [FromQuery] string redirectUrl = "") - { - if (string.IsNullOrWhiteSpace(provider) || !await _httpContextAccessor.HttpContext.IsProviderSupportedAsync(provider)) - throw Oops.Oh("不支持的OAuth类型"); - - var authenticateResult = await _httpContextAccessor.HttpContext!.AuthenticateAsync(provider); - if (!authenticateResult.Succeeded) - throw Oops.Oh("授权失败"); - - var openIdClaim = authenticateResult.Principal.FindFirst(ClaimTypes.NameIdentifier); - if (openIdClaim == null || string.IsNullOrWhiteSpace(openIdClaim.Value)) - throw Oops.Oh("授权失败"); - - var name = authenticateResult.Principal.FindFirst(ClaimTypes.Name)?.Value; - var email = authenticateResult.Principal.FindFirst(ClaimTypes.Email)?.Value; - var mobilePhone = authenticateResult.Principal.FindFirst(ClaimTypes.MobilePhone)?.Value; - var dateOfBirth = authenticateResult.Principal.FindFirst(ClaimTypes.DateOfBirth)?.Value; - var gender = authenticateResult.Principal.FindFirst(ClaimTypes.Gender)?.Value; - var avatarUrl = ""; - - var platformType = PlatformTypeEnum.微信公众号; - if (provider == "Gitee") - { - platformType = PlatformTypeEnum.Gitee; - avatarUrl = authenticateResult.Principal.FindFirst(OAuthClaim.GiteeAvatarUrl)?.Value; - } - - // 若账号不存在则新建 - var wechatUser = await _sysWechatUserRep.AsQueryable().Includes(u => u.SysUser).ClearFilter().FirstAsync(u => u.OpenId == openIdClaim.Value); - if (wechatUser == null) - { - var userId = await App.GetRequiredService().AddUser(new AddUserInput() - { - Account = name, - RealName = name, - NickName = name, - Email = email, - Avatar = avatarUrl, - Phone = mobilePhone, - OrgId = 1300000000101, // 根组织架构 - RoleIdList = new List { 1300000000104 } // 仅本人数据角色 - }); - - await _sysWechatUserRep.InsertAsync(new SysWechatUser() - { - UserId = userId, - OpenId = openIdClaim.Value, - Avatar = avatarUrl, - NickName = name, - PlatformType = platformType - }); - - wechatUser = await _sysWechatUserRep.AsQueryable().Includes(u => u.SysUser).ClearFilter().FirstAsync(u => u.OpenId == openIdClaim.Value); - } - - // 构建Token令牌 - var token = await App.GetRequiredService().CreateToken(wechatUser.SysUser); - - return new RedirectResult($"{redirectUrl}/#/login?token={token.AccessToken}"); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Plugin/Dto/PluginInput.cs b/Admin.NET.Core/Service/Plugin/Dto/PluginInput.cs deleted file mode 100644 index f4815ee..0000000 --- a/Admin.NET.Core/Service/Plugin/Dto/PluginInput.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class PagePluginInput : BasePageInput -{ - /// - /// 名称 - /// - public string Name { get; set; } - - /// - /// 编码 - /// - public string Code { get; set; } - - /// - /// 租户Id - /// - public long TenantId { get; set; } -} - -public class AddPluginInput : SysPlugin -{ - /// - /// 名称 - /// - [Required(ErrorMessage = "功能名称不能为空")] - public override string Name { get; set; } -} - -public class UpdatePluginInput : AddPluginInput -{ -} - -public class DeletePluginInput : BaseIdInput -{ -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Plugin/SysPluginService.cs b/Admin.NET.Core/Service/Plugin/SysPluginService.cs deleted file mode 100644 index 06694f1..0000000 --- a/Admin.NET.Core/Service/Plugin/SysPluginService.cs +++ /dev/null @@ -1,126 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 系统动态插件服务 🧩 -/// -[ApiDescriptionSettings(Order = 245)] -public class SysPluginService : IDynamicApiController, ITransient -{ - private readonly IDynamicApiRuntimeChangeProvider _provider; - private readonly SqlSugarRepository _sysPluginRep; - private readonly UserManager _userManager; - - public SysPluginService(IDynamicApiRuntimeChangeProvider provider, - SqlSugarRepository sysPluginRep, - UserManager userManager) - { - _provider = provider; - _userManager = userManager; - _sysPluginRep = sysPluginRep; - } - - /// - /// 获取动态插件列表 🧩 - /// - /// - /// - [DisplayName("获取动态插件列表")] - public async Task> Page(PagePluginInput input) - { - return await _sysPluginRep.AsQueryable() - .WhereIF(_userManager.SuperAdmin && input.TenantId > 0, u => u.TenantId == input.TenantId) - .WhereIF(!string.IsNullOrWhiteSpace(input.Name), u => u.Name.Contains(input.Name)) - .OrderBy(u => new { u.OrderNo, u.Id }) - .ToPagedListAsync(input.Page, input.PageSize); - } - - /// - /// 增加动态插件 🧩 - /// - /// - /// - [ApiDescriptionSettings(Name = "Add"), HttpPost] - [DisplayName("增加动态插件")] - public async Task AddPlugin(AddPluginInput input) - { - var isExist = await _sysPluginRep.IsAnyAsync(u => u.Name == input.Name || u.AssemblyName == input.AssemblyName); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1900); - - // 添加动态程序集/接口 - input.AssemblyName = CompileAssembly(input.CsharpCode, input.AssemblyName); - - await _sysPluginRep.InsertAsync(input.Adapt()); - } - - /// - /// 更新动态插件 🧩 - /// - /// - /// - [ApiDescriptionSettings(Name = "Update"), HttpPost] - [DisplayName("更新动态插件")] - public async Task UpdatePlugin(UpdatePluginInput input) - { - var isExist = await _sysPluginRep.IsAnyAsync(u => (u.Name == input.Name || u.AssemblyName == input.AssemblyName) && u.Id != input.Id); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1900); - - // 先移除再添加动态程序集/接口 - RemoveAssembly(input.AssemblyName); - input.AssemblyName = CompileAssembly(input.CsharpCode); - - await _sysPluginRep.AsUpdateable(input.Adapt()).IgnoreColumns(true).ExecuteCommandAsync(); - } - - /// - /// 删除动态插件 🧩 - /// - /// - /// - [ApiDescriptionSettings(Name = "Delete"), HttpPost] - [DisplayName("删除动态插件")] - public async Task DeletePlugin(DeletePluginInput input) - { - var plugin = await _sysPluginRep.GetByIdAsync(input.Id); - if (plugin == null) return; - - // 移除动态程序集/接口 - RemoveAssembly(plugin.AssemblyName); - - await _sysPluginRep.DeleteAsync(u => u.Id == input.Id); - } - - /// - /// 添加动态程序集/接口 🧩 - /// - /// - /// 程序集名称 - /// - [DisplayName("添加动态程序集/接口")] - public string CompileAssembly([FromBody] string csharpCode, [FromQuery] string assemblyName = default) - { - // 编译 C# 代码并返回动态程序集 - var dynamicAssembly = App.CompileCSharpClassCode(csharpCode, assemblyName); - - // 将程序集添加进动态 WebAPI 应用部件 - _provider.AddAssembliesWithNotifyChanges(dynamicAssembly); - - // 返回动态程序集名称 - return dynamicAssembly.GetName().Name; - } - - /// - /// 移除动态程序集/接口 🧩 - /// - [ApiDescriptionSettings(Name = "RemoveAssembly"), HttpPost] - [DisplayName("移除动态程序集/接口")] - public void RemoveAssembly(string assemblyName) - { - _provider.RemoveAssembliesWithNotifyChanges(assemblyName); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Print/Dto/PrintInput.cs b/Admin.NET.Core/Service/Print/Dto/PrintInput.cs deleted file mode 100644 index 3cf7b32..0000000 --- a/Admin.NET.Core/Service/Print/Dto/PrintInput.cs +++ /dev/null @@ -1,42 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class PagePrintInput : BasePageInput -{ - /// - /// 名称 - /// - public string Name { get; set; } - - /// - /// 编码 - /// - public string Code { get; set; } - - /// - /// 租户Id - /// - public long TenantId { get; set; } -} - -public class AddPrintInput : SysPrint -{ - /// - /// 名称 - /// - [Required(ErrorMessage = "模板名称不能为空")] - public override string Name { get; set; } -} - -public class UpdatePrintInput : AddPrintInput -{ -} - -public class DeletePrintInput : BaseIdInput -{ -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Print/SysPrintService.cs b/Admin.NET.Core/Service/Print/SysPrintService.cs deleted file mode 100644 index 8f70332..0000000 --- a/Admin.NET.Core/Service/Print/SysPrintService.cs +++ /dev/null @@ -1,91 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 系统打印模板服务 🧩 -/// -[ApiDescriptionSettings(Order = 305)] -public class SysPrintService : IDynamicApiController, ITransient -{ - private readonly SqlSugarRepository _sysPrintRep; - private readonly UserManager _userManager; - - public SysPrintService(SqlSugarRepository sysPrintRep, UserManager userManager) - { - _sysPrintRep = sysPrintRep; - _userManager = userManager; - } - - /// - /// 获取打印模板列表 🖨️ - /// - /// - /// - [DisplayName("获取打印模板列表")] - public async Task> Page(PagePrintInput input) - { - return await _sysPrintRep.AsQueryable() - .WhereIF(_userManager.SuperAdmin && input.TenantId > 0, u => u.TenantId == input.TenantId) - .WhereIF(!string.IsNullOrWhiteSpace(input.Name), u => u.Name.Contains(input.Name)) - .OrderBy(u => new { u.OrderNo, u.Id }) - .ToPagedListAsync(input.Page, input.PageSize); - } - - /// - /// 获取打印模板 🖨️ - /// - /// - /// - [DisplayName("获取打印模板")] - public async Task GetPrint(string name) - { - return await _sysPrintRep.GetFirstAsync(u => u.Name == name); - } - - /// - /// 增加打印模板 🖨️ - /// - /// - /// - [ApiDescriptionSettings(Name = "Add"), HttpPost] - [DisplayName("增加打印模板")] - public async Task AddPrint(AddPrintInput input) - { - var isExist = await _sysPrintRep.IsAnyAsync(u => u.Name == input.Name); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1800); - - await _sysPrintRep.InsertAsync(input.Adapt()); - } - - /// - /// 更新打印模板 🖨️ - /// - /// - /// - [ApiDescriptionSettings(Name = "Update"), HttpPost] - [DisplayName("更新打印模板")] - public async Task UpdatePrint(UpdatePrintInput input) - { - var isExist = await _sysPrintRep.IsAnyAsync(u => u.Name == input.Name && u.Id != input.Id); - if (isExist) throw Oops.Oh(ErrorCodeEnum.D1800); - - await _sysPrintRep.AsUpdateable(input.Adapt()).IgnoreColumns(true).ExecuteCommandAsync(); - } - - /// - /// 删除打印模板 🖨️ - /// - /// - /// - [ApiDescriptionSettings(Name = "Delete"), HttpPost] - [DisplayName("删除打印模板")] - public async Task DeletePrint(DeletePrintInput input) - { - await _sysPrintRep.DeleteAsync(u => u.Id == input.Id); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Schedule/Dto/ScheduleInput.cs b/Admin.NET.Core/Service/Schedule/Dto/ScheduleInput.cs deleted file mode 100644 index 73887c2..0000000 --- a/Admin.NET.Core/Service/Schedule/Dto/ScheduleInput.cs +++ /dev/null @@ -1,44 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class ScheduleInput : BaseIdInput -{ - /// - /// 状态 - /// - public virtual FinishStatusEnum Status { get; set; } -} - -public class ListScheduleInput -{ - public DateTime? StartTime { get; set; } - - public DateTime? EndTime { get; set; } - - /// - /// 租户Id - /// - public long TenantId { get; set; } -} - -public class AddScheduleInput : SysSchedule -{ - /// - /// 日程内容 - /// - [Required(ErrorMessage = "日程内容不能为空")] - public override string Content { get; set; } -} - -public class UpdateScheduleInput : AddScheduleInput -{ -} - -public class DeleteScheduleInput : BaseIdInput -{ -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Schedule/SysScheduleService.cs b/Admin.NET.Core/Service/Schedule/SysScheduleService.cs deleted file mode 100644 index c7f56e2..0000000 --- a/Admin.NET.Core/Service/Schedule/SysScheduleService.cs +++ /dev/null @@ -1,104 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 系统日程服务 -/// -[ApiDescriptionSettings(Order = 295)] -public class SysScheduleService : IDynamicApiController, ITransient -{ - private readonly UserManager _userManager; - private readonly SqlSugarRepository _sysSchedule; - - public SysScheduleService(UserManager userManager, - SqlSugarRepository sysSchedule) - { - _userManager = userManager; - _sysSchedule = sysSchedule; - } - - /// - /// 获取日程列表 - /// - /// - [DisplayName("获取日程列表")] - public async Task> Page(ListScheduleInput input) - { - return await _sysSchedule.AsQueryable() - .Where(u => u.UserId == _userManager.UserId) - .WhereIF(_userManager.SuperAdmin && input.TenantId > 0, u => u.TenantId == input.TenantId) - .WhereIF(!string.IsNullOrWhiteSpace(input.StartTime.ToString()), u => u.ScheduleTime >= input.StartTime) - .WhereIF(!string.IsNullOrWhiteSpace(input.EndTime.ToString()), u => u.ScheduleTime <= input.EndTime) - .OrderBy(u => u.StartTime, OrderByType.Asc) - .ToListAsync(); - } - - /// - /// 获取日程详情 - /// - /// - /// - [DisplayName("获取日程详情")] - public async Task GetDetail(long id) - { - return await _sysSchedule.GetFirstAsync(u => u.Id == id); - } - - /// - /// 增加日程 - /// - /// - /// - [ApiDescriptionSettings(Name = "Add"), HttpPost] - [DisplayName("增加日程")] - public async Task AddUserSchedule(AddScheduleInput input) - { - input.UserId = _userManager.UserId; - await _sysSchedule.InsertAsync(input.Adapt()); - } - - /// - /// 更新日程 - /// - /// - /// - [ApiDescriptionSettings(Name = "Update"), HttpPost] - [DisplayName("更新日程")] - public async Task UpdateUserSchedule(UpdateScheduleInput input) - { - await _sysSchedule.AsUpdateable(input.Adapt()).IgnoreColumns(true).ExecuteCommandAsync(); - } - - /// - /// 删除日程 - /// - /// - /// - [ApiDescriptionSettings(Name = "Delete"), HttpPost] - [DisplayName("删除日程")] - public async Task DeleteUserSchedule(DeleteScheduleInput input) - { - await _sysSchedule.DeleteAsync(u => u.Id == input.Id); - } - - /// - /// 设置日程状态 - /// - /// - /// - [DisplayName("设置日程状态")] - public async Task SetStatus(ScheduleInput input) - { - if (!Enum.IsDefined(typeof(FinishStatusEnum), input.Status)) throw Oops.Oh(ErrorCodeEnum.D3005); - - return await _sysSchedule.AsUpdateable() - .SetColumns(u => u.Status == input.Status) - .Where(u => u.Id == input.Id) - .ExecuteCommandAsync(); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Server/SysServerService.cs b/Admin.NET.Core/Service/Server/SysServerService.cs index 574cd41..ceac880 100644 --- a/Admin.NET.Core/Service/Server/SysServerService.cs +++ b/Admin.NET.Core/Service/Server/SysServerService.cs @@ -1,4 +1,4 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 +// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 // // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 // @@ -136,8 +136,6 @@ public class SysServerService : IDynamicApiController, ITransient var pdfAssembly = typeof(Magicodes.ExporterAndImporter.Pdf.IPdfExporter).Assembly.GetName(); var wordAssembly = typeof(Magicodes.ExporterAndImporter.Word.IWordExporter).Assembly.GetName(); var captchaAssembly = typeof(Lazy.Captcha.Core.ICaptcha).Assembly.GetName(); - var wechatApiAssembly = typeof(WechatApiClient).Assembly.GetName(); - var wechatTenpayAssembly = typeof(WechatTenpayClient).Assembly.GetName(); var ossAssembly = typeof(OnceMi.AspNetCore.OSS.IOSSServiceFactory).Assembly.GetName(); var parserAssembly = typeof(Parser).Assembly.GetName(); var elasticsearchClientAssembly = typeof(Elastic.Clients.Elasticsearch.ElasticsearchClient).Assembly.GetName(); @@ -148,10 +146,7 @@ public class SysServerService : IDynamicApiController, ITransient var alibabaSendSmsRequestAssembly = typeof(AlibabaCloud.SDK.Dysmsapi20170525.Models.SendSmsRequest).Assembly.GetName(); var tencentSendSmsRequestAssembly = typeof(TencentCloud.Sms.V20190711.Models.SendSmsRequest).Assembly.GetName(); var rabbitMQAssembly = typeof(RabbitMQEventSourceStore).Assembly.GetName(); - var ldapConnectionAssembly = typeof(Novell.Directory.Ldap.LdapConnection).Assembly.GetName(); var ipToolAssembly = typeof(IPTools.Core.IpTool).Assembly.GetName(); - var weixinAuthenticationOptionsAssembly = typeof(AspNet.Security.OAuth.Weixin.WeixinAuthenticationOptions).Assembly.GetName(); - var giteeAuthenticationOptionsAssembly = typeof(AspNet.Security.OAuth.Gitee.GiteeAuthenticationOptions).Assembly.GetName(); var hashidsAssembly = typeof(HashidsNet.Hashids).Assembly.GetName(); var sftpClientAssembly = typeof(Renci.SshNet.SftpClient).Assembly.GetName(); var hardwareInfoAssembly = typeof(Hardware.Info.HardwareInfo).Assembly.GetName(); @@ -167,8 +162,6 @@ public class SysServerService : IDynamicApiController, ITransient new { pdfAssembly.Name, pdfAssembly.Version }, new { wordAssembly.Name, wordAssembly.Version }, new { captchaAssembly.Name, captchaAssembly.Version }, - new { wechatApiAssembly.Name, wechatApiAssembly.Version }, - new { wechatTenpayAssembly.Name, wechatTenpayAssembly.Version }, new { ossAssembly.Name, ossAssembly.Version }, new { parserAssembly.Name, parserAssembly.Version }, new { elasticsearchClientAssembly.Name, elasticsearchClientAssembly.Version }, @@ -179,13 +172,10 @@ public class SysServerService : IDynamicApiController, ITransient new { alibabaSendSmsRequestAssembly.Name, alibabaSendSmsRequestAssembly.Version }, new { tencentSendSmsRequestAssembly.Name, tencentSendSmsRequestAssembly.Version }, new { rabbitMQAssembly.Name, rabbitMQAssembly.Version }, - new { ldapConnectionAssembly.Name, ldapConnectionAssembly.Version }, new { ipToolAssembly.Name, ipToolAssembly.Version }, - new { weixinAuthenticationOptionsAssembly.Name, weixinAuthenticationOptionsAssembly.Version }, - new { giteeAuthenticationOptionsAssembly.Name, giteeAuthenticationOptionsAssembly.Version }, new { hashidsAssembly.Name, hashidsAssembly.Version }, new { sftpClientAssembly.Name, sftpClientAssembly.Version }, new { hardwareInfoAssembly.Name, hardwareInfoAssembly.Version }, }; } -} \ No newline at end of file +} diff --git a/Admin.NET.Core/Service/User/Dto/UserInput.cs b/Admin.NET.Core/Service/User/Dto/UserInput.cs index 2516f35..55abf15 100644 --- a/Admin.NET.Core/Service/User/Dto/UserInput.cs +++ b/Admin.NET.Core/Service/User/Dto/UserInput.cs @@ -1,4 +1,4 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 +// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 // // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 // @@ -65,12 +65,6 @@ public class AddUserInput : SysUser /// [Required(ErrorMessage = "真实姓名不能为空")] public override string RealName { get; set; } - - /// - /// 域用户 - /// - public string DomainAccount { get; set; } - /// /// 角色集合 /// diff --git a/Admin.NET.Core/Service/User/Dto/UserOutput.cs b/Admin.NET.Core/Service/User/Dto/UserOutput.cs index 4c508f8..de9a497 100644 --- a/Admin.NET.Core/Service/User/Dto/UserOutput.cs +++ b/Admin.NET.Core/Service/User/Dto/UserOutput.cs @@ -1,4 +1,4 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 +// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 // // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 // @@ -21,10 +21,4 @@ public class UserOutput : SysUser /// /// 角色名称 /// - public string RoleName { get; set; } - - /// - /// 域用户 - /// - public string DomainAccount { get; set; } -} \ No newline at end of file + public string RoleName { get; set; }} \ No newline at end of file diff --git a/Admin.NET.Core/Service/User/SysUserLdapService.cs b/Admin.NET.Core/Service/User/SysUserLdapService.cs deleted file mode 100644 index 3f1e1e3..0000000 --- a/Admin.NET.Core/Service/User/SysUserLdapService.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 用户域账号服务 -/// -public class SysUserLdapService : ITransient -{ - private readonly SqlSugarRepository _sysUserLdapRep; - - public SysUserLdapService(SqlSugarRepository sysUserLdapRep) - { - _sysUserLdapRep = sysUserLdapRep; - } - - /// - /// 批量插入域账号 - /// - /// - /// - /// - public async Task InsertUserLdapList(long tenantId, List sysUserLdapList) - { - await _sysUserLdapRep.DeleteAsync(u => u.TenantId == tenantId); - - await _sysUserLdapRep.InsertRangeAsync(sysUserLdapList); - - await _sysUserLdapRep.AsUpdateable() - .InnerJoin((l, u) => l.EmployeeId == u.Account) - .SetColumns((l, u) => new SysUserLdap { UserId = u.Id }) - .Where((l, u) => l.TenantId == tenantId && u.Status == StatusEnum.Enable) - .ExecuteCommandAsync(); - } - - /// - /// 增加域账号 - /// - /// - /// - /// - /// - /// - public async Task AddUserLdap(long tenantId, long userId, string account, string domainAccount) - { - var userLdap = await _sysUserLdapRep.GetFirstAsync(u => u.TenantId == tenantId && (u.Account == account || u.UserId == userId || u.EmployeeId == domainAccount)); - if (userLdap != null) await _sysUserLdapRep.DeleteByIdAsync(userLdap.Id); - - if (!string.IsNullOrWhiteSpace(domainAccount)) - await _sysUserLdapRep.InsertAsync(new SysUserLdap { EmployeeId = account, TenantId = tenantId, UserId = userId, Account = domainAccount }); - } - - /// - /// 删除域账号 - /// - /// - /// - public async Task DeleteUserLdapByUserId(long userId) - { - await _sysUserLdapRep.DeleteAsync(u => u.UserId == userId); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/User/SysUserService.cs b/Admin.NET.Core/Service/User/SysUserService.cs index 2b164e0..989c07b 100644 --- a/Admin.NET.Core/Service/User/SysUserService.cs +++ b/Admin.NET.Core/Service/User/SysUserService.cs @@ -20,7 +20,6 @@ public class SysUserService : IDynamicApiController, ITransient private readonly SysOnlineUserService _sysOnlineUserService; private readonly SysUserMenuService _sysUserMenuService; private readonly SysCacheService _sysCacheService; - private readonly SysUserLdapService _sysUserLdapService; private readonly SqlSugarRepository _sysUserRep; private readonly IEventPublisher _eventPublisher; @@ -31,7 +30,6 @@ public class SysUserService : IDynamicApiController, ITransient SysConfigService sysConfigService, SysOnlineUserService sysOnlineUserService, SysCacheService sysCacheService, - SysUserLdapService sysUserLdapService, SqlSugarRepository sysUserRep, SysUserMenuService sysUserMenuService, IEventPublisher eventPublisher) @@ -43,7 +41,6 @@ public class SysUserService : IDynamicApiController, ITransient _sysConfigService = sysConfigService; _sysOnlineUserService = sysOnlineUserService; _sysCacheService = sysCacheService; - _sysUserLdapService = sysUserLdapService; _sysUserMenuService = sysUserMenuService; _sysUserRep = sysUserRep; _eventPublisher = eventPublisher; @@ -77,7 +74,6 @@ public class SysUserService : IDynamicApiController, ITransient OrgName = a.Name, PosName = b.Name, RoleName = SqlFunc.Subqueryable().LeftJoin((m, n) => m.RoleId == n.Id).Where(m => m.UserId == u.Id).SelectStringJoin((m, n) => n.Name, ","), - DomainAccount = SqlFunc.Subqueryable().Where(m => m.UserId == u.Id).Select(m => m.Account) }, true) .ToPagedListAsync(input.Page, input.PageSize); } @@ -110,10 +106,6 @@ public class SysUserService : IDynamicApiController, ITransient input.Id = newUser.Id; await UpdateRoleAndExtOrg(input); - // 增加域账号 - if (!string.IsNullOrWhiteSpace(input.DomainAccount)) - await _sysUserLdapService.AddUserLdap(newUser.TenantId!.Value, newUser.Id, newUser.Account, input.DomainAccount); - // 发布系统用户操作事件 await _eventPublisher.PublishAsync(SysUserEventTypeEnum.Add, new { @@ -153,10 +145,6 @@ public class SysUserService : IDynamicApiController, ITransient input.Id = newUser.Id; await UpdateRoleAndExtOrg(input); - // 增加域账号 - if (!string.IsNullOrWhiteSpace(input.DomainAccount)) - await _sysUserLdapService.AddUserLdap(newUser.TenantId!.Value, newUser.Id, newUser.Account, input.DomainAccount); - // 发布系统用户操作事件 await _eventPublisher.PublishAsync(SysUserEventTypeEnum.Register, new { @@ -199,8 +187,6 @@ public class SysUserService : IDynamicApiController, ITransient var roleIds = await GetOwnRoleList(input.Id); if (input.OrgId != user.OrgId || !input.RoleIdList.OrderBy(u => u).SequenceEqual(roleIds.OrderBy(u => u))) await _sysOnlineUserService.ForceOffline(input.Id); - // 更新域账号 - await _sysUserLdapService.AddUserLdap(user.TenantId!.Value, user.Id, user.Account, input.DomainAccount); // 发布系统用户操作事件 await _eventPublisher.PublishAsync(SysUserEventTypeEnum.Update, new @@ -270,9 +256,6 @@ public class SysUserService : IDynamicApiController, ITransient // 删除用户扩展机构 await _sysUserExtOrgService.DeleteUserExtOrgByUserId(input.Id); - // 删除域账号 - await _sysUserLdapService.DeleteUserLdapByUserId(input.Id); - // 删除用户收藏菜单 await _sysUserMenuService.DeleteUserMenuList(input.Id); diff --git a/Admin.NET.Core/Service/Wechat/Dto/WechatInput.cs b/Admin.NET.Core/Service/Wechat/Dto/WechatInput.cs deleted file mode 100644 index 87fcb47..0000000 --- a/Admin.NET.Core/Service/Wechat/Dto/WechatInput.cs +++ /dev/null @@ -1,149 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 生成网页授权Url -/// -public class GenAuthUrlInput -{ - /// - /// RedirectUrl - /// - public string RedirectUrl { get; set; } - - /// - /// Scope - /// - public string Scope { get; set; } - - /// - /// State - /// - public string State { get; set; } -} - -/// -/// 获取微信用户OpenId -/// -public class WechatOAuth2Input -{ - /// - /// Code - /// - [Required(ErrorMessage = "Code不能为空"), MinLength(10, ErrorMessage = "Code错误")] - public string Code { get; set; } -} - -/// -/// 微信用户登录 -/// -public class WechatUserLogin -{ - /// - /// OpenId - /// - [Required(ErrorMessage = "微信标识不能为空"), MinLength(10, ErrorMessage = "微信标识长错误")] - public string OpenId { get; set; } -} - -/// -/// 获取配置签名 -/// -public class SignatureInput -{ - /// - /// Url - /// - public string Url { get; set; } -} - -/// -/// 获取消息模板列表 -/// -public class MessageTemplateSendInput -{ - /// - /// 订阅模板Id - /// - [Required(ErrorMessage = "订阅模板Id不能为空")] - public string TemplateId { get; set; } - - /// - /// 接收者的OpenId - /// - [Required(ErrorMessage = "接收者的OpenId不能为空")] - public string ToUserOpenId { get; set; } - - /// - /// 模板数据,格式形如 { "key1": { "value": any }, "key2": { "value": any } } - /// - [Required(ErrorMessage = "模板数据不能为空")] - public Dictionary Data { get; set; } - - /// - /// 模板跳转链接 - /// - public string Url { get; set; } - - /// - /// 所需跳转到小程序的具体页面路径,支持带参数,(示例index?foo=bar) - /// - public string MiniProgramPagePath { get; set; } -} - -/// -/// 删除消息模板 -/// -public class DeleteMessageTemplateInput -{ - /// - /// 订阅模板Id - /// - [Required(ErrorMessage = "订阅模板Id不能为空")] - public string TemplateId { get; set; } -} - -public class UploadAvatarInput -{ - /// - /// 小程序用户身份标识 - /// - [Required(ErrorMessage = "OpenId不能为空")] - public string OpenId { get; set; } - - /// - /// 文件 - /// - [Required] - public IFormFile File { get; set; } - - /// - /// 文件类型 - /// - public string FileType { get; set; } - - /// - /// 文件路径 - /// - public string Path { get; set; } -} - -public class SetNickNameInput -{ - /// - /// 小程序用户身份标识 - /// - [Required(ErrorMessage = "OpenId不能为空")] - public string OpenId { get; set; } - - /// - /// 昵称 - /// - [Required(ErrorMessage = "昵称不能为空")] - public string NickName { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Wechat/Dto/WechatPayInput.cs b/Admin.NET.Core/Service/Wechat/Dto/WechatPayInput.cs deleted file mode 100644 index 8ba4663..0000000 --- a/Admin.NET.Core/Service/Wechat/Dto/WechatPayInput.cs +++ /dev/null @@ -1,87 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class WechatPayTransactionInput -{ - /// - /// OpenId - /// - public string OpenId { get; set; } - - /// - /// 订单金额 - /// - public int Total { get; set; } - - /// - /// 商品描述 - /// - public string Description { get; set; } - - /// - /// 附加数据 - /// - public string Attachment { get; set; } - - /// - /// 优惠标记 - /// - public string GoodsTag { get; set; } - - /// - /// 业务标签,用来区分做什么业务 - /// - public string Tags { get; set; } - - /// - /// 对应业务的主键 - /// - public long BusinessId { get; set; } -} - -public class WechatPayParaInput -{ - /// - /// 订单Id - /// - public string PrepayId { get; set; } -} - -public class WechatPayRefundDomesticInput -{ - /// - /// 商户端生成的业务流水号 - /// - [Required] - public string TradeId { get; set; } - - /// - /// 退款原因 - /// - public string Reason { get; set; } - - /// - /// 退款金额 - /// - [Required] - public int Refund { get; set; } - - /// - /// 原订单金额 - /// - [Required] - public int Total { get; set; } -} - -public class WechatPayPageInput : BasePageInput -{ - /// - /// 添加时间范围 - /// - public List CreateTimeRange { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Wechat/Dto/WechatPayOutput.cs b/Admin.NET.Core/Service/Wechat/Dto/WechatPayOutput.cs deleted file mode 100644 index d423f00..0000000 --- a/Admin.NET.Core/Service/Wechat/Dto/WechatPayOutput.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class WechatPayOutput -{ - /// - /// OpenId - /// - public string OpenId { get; set; } - - /// - /// 订单金额 - /// - public int Total { get; set; } - - /// - /// 附加数据 - /// - public string Attachment { get; set; } - - /// - /// 优惠标记 - /// - public string GoodsTag { get; set; } -} - -public class WechatPayTransactionOutput -{ - public string PrepayId { get; set; } - - public string OutTradeNumber { get; set; } - - public WechatPayParaOutput SingInfo { get; set; } -} - -public class WechatPayParaOutput -{ - public string AppId { get; set; } - - public string TimeStamp { get; set; } - - public string NonceStr { get; set; } - - public string Package { get; set; } - - public string SignType { get; set; } - - public string PaySign { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Wechat/Dto/WechatUserInput.cs b/Admin.NET.Core/Service/Wechat/Dto/WechatUserInput.cs deleted file mode 100644 index f7aa580..0000000 --- a/Admin.NET.Core/Service/Wechat/Dto/WechatUserInput.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class WechatUserInput : BasePageInput -{ - /// - /// 昵称 - /// - public string NickName { get; set; } - - /// - /// 手机号码 - /// - public string Mobile { get; set; } -} - -public class DeleteWechatUserInput : BaseIdInput -{ -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Wechat/Dto/WxOpenInput.cs b/Admin.NET.Core/Service/Wechat/Dto/WxOpenInput.cs deleted file mode 100644 index 0f15627..0000000 --- a/Admin.NET.Core/Service/Wechat/Dto/WxOpenInput.cs +++ /dev/null @@ -1,150 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 获取微信用户OpenId -/// -public class JsCode2SessionInput -{ - /// - /// JsCode - /// - [Required(ErrorMessage = "JsCode不能为空"), MinLength(10, ErrorMessage = "JsCode错误")] - public string JsCode { get; set; } -} - -/// -/// 获取微信用户电话号码 -/// -public class WxPhoneInput : WxOpenIdLoginInput -{ - /// - /// Code - /// - [Required(ErrorMessage = "Code不能为空"), MinLength(10, ErrorMessage = "Code错误")] - public string Code { get; set; } -} - -/// -/// 微信小程序登录 -/// -public class WxOpenIdLoginInput -{ - /// - /// OpenId - /// - [Required(ErrorMessage = "微信标识不能为空"), MinLength(10, ErrorMessage = "微信标识错误")] - public string OpenId { get; set; } -} - -/// -/// 微信手机号登录 -/// -public class WxPhoneLoginInput -{ - /// - /// 电话号码 - /// - [DataValidation(ValidationTypes.PhoneNumber, ErrorMessage = "电话号码错误")] - public string PhoneNumber { get; set; } -} - -/// -/// 发送订阅消息 -/// -public class SendSubscribeMessageInput -{ - /// - /// 订阅模板Id - /// - [Required(ErrorMessage = "订阅模板Id不能为空")] - public string TemplateId { get; set; } - - /// - /// 接收者的OpenId - /// - [Required(ErrorMessage = "接收者的OpenId不能为空")] - public string ToUserOpenId { get; set; } - - /// - /// 模板内容,格式形如 { "key1": { "value": any }, "key2": { "value": any } } - /// - [Required(ErrorMessage = "模板内容不能为空")] - public Dictionary Data { get; set; } - - /// - /// 跳转小程序类型 - /// - public string MiniprogramState { get; set; } - - /// - /// 语言类型 - /// - public string Language { get; set; } - - /// - /// 点击模板卡片后的跳转页面(仅限本小程序内的页面),支持带参数(示例pages/app/index?foo=bar) - /// - public string MiniProgramPagePath { get; set; } -} - -/// -/// 增加订阅消息模板 -/// -public class AddSubscribeMessageTemplateInput -{ - /// - /// 模板标题Id - /// - [Required(ErrorMessage = "模板标题Id不能为空")] - public string TemplateTitleId { get; set; } - - /// - /// 模板关键词列表,例如 [3,5,4] - /// - [Required(ErrorMessage = "模板关键词列表不能为空")] - public List KeyworkIdList { get; set; } - - /// - /// 服务场景描述,15个字以内 - /// - [Required(ErrorMessage = "服务场景描述不能为空")] - public string SceneDescription { get; set; } -} - -/// -/// 生成带参数小程序二维码(总共生成的码数量限制为 100,000) -/// -public class GenerateQRImageInput -{ - /// - /// 扫码进入的小程序页面路径,最大长度 128 个字符,不能为空; eg: pages/index?id=0001 - /// - public string PagePath { get; set; } - - /// - /// 文件保存的名称 - /// - public string ImageName { get; set; } - - /// - /// 图片宽度 默认430 - /// - public int Width { get; set; } = 430; -} - -/// -/// 生成带参数小程序二维码(获取不受限制的小程序码) -/// -public class GenerateQRImageUnLimitInput : GenerateQRImageInput -{ - /// - /// 二维码携带的参数 eg:a=1(最大32个可见字符,只支持数字,大小写英文以及部分特殊字符:) - /// - public string Scene { get; set; } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Wechat/Dto/WxOpenOutput.cs b/Admin.NET.Core/Service/Wechat/Dto/WxOpenOutput.cs deleted file mode 100644 index 6b83bb3..0000000 --- a/Admin.NET.Core/Service/Wechat/Dto/WxOpenOutput.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -public class WxOpenIdOutput -{ - public string OpenId { get; set; } -} - -public class WxPhoneOutput -{ - public string PhoneNumber { get; set; } -} - -public class GenerateQRImageOutput -{ - /// - /// 生成状态 - /// - public bool Success { get; set; } = false; - - /// - /// 生成图片的绝对路径 - /// - public string ImgPath { get; set; } = ""; - - /// - /// 生成图片的相对路径 - /// - public string RelativeImgPath { get; set; } = ""; - - /// - /// 生成图片的错误信息 - /// - public string Message { get; set; } = ""; -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Wechat/SysWechatPayService.cs b/Admin.NET.Core/Service/Wechat/SysWechatPayService.cs deleted file mode 100644 index 31aac14..0000000 --- a/Admin.NET.Core/Service/Wechat/SysWechatPayService.cs +++ /dev/null @@ -1,520 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Furion.Logging.Extensions; -using Newtonsoft.Json; - -namespace Admin.NET.Core.Service; - -/// -/// 微信支付服务 🧩 -/// -[ApiDescriptionSettings(Order = 210)] -public class SysWechatPayService : IDynamicApiController, ITransient -{ - private readonly SqlSugarRepository _sysWechatPayRep; - private readonly SqlSugarRepository _sysWechatRefundRep; - - private readonly WechatPayOptions _wechatPayOptions; - private readonly PayCallBackOptions _payCallBackOptions; - - private readonly WechatTenpayClient _wechatTenpayClient; - - public SysWechatPayService(SqlSugarRepository sysWechatPayUserRep, - SqlSugarRepository sysWechatRefundRep, - IOptions wechatPayOptions, - IOptions payCallBackOptions) - { - _sysWechatPayRep = sysWechatPayUserRep; - _sysWechatRefundRep = sysWechatRefundRep; - _wechatPayOptions = wechatPayOptions.Value; - _payCallBackOptions = payCallBackOptions.Value; - - _wechatTenpayClient = CreateTenpayClient(); - } - - /// - /// 初始化微信支付客户端 - /// - /// - private WechatTenpayClient CreateTenpayClient() - { - var cerFilePath = Path.Combine(App.WebHostEnvironment.ContentRootPath, _wechatPayOptions.MerchantCertificatePrivateKey.Replace("/", Path.DirectorySeparatorChar.ToString())); - - var tenpayClientOptions = new WechatTenpayClientOptions() - { - MerchantId = _wechatPayOptions.MerchantId, - MerchantV3Secret = _wechatPayOptions.MerchantV3Secret, - MerchantCertificateSerialNumber = _wechatPayOptions.MerchantCertificateSerialNumber, - MerchantCertificatePrivateKey = File.Exists(cerFilePath) ? File.ReadAllText(cerFilePath) : "", - PlatformCertificateManager = new InMemoryCertificateManager() - }; - return new WechatTenpayClient(tenpayClientOptions); - } - - /// - /// 分页查询支付列表 🔖 - /// - /// - /// - [HttpPost] - [ApiDescriptionSettings(Name = "Page")] - public async Task> Page(WechatPayPageInput input) - { - var query = _sysWechatPayRep.AsQueryable() - .WhereIF(!string.IsNullOrWhiteSpace(input.Keyword), u => u.OutTradeNumber == input.Keyword || u.TransactionId == input.Keyword) - .WhereIF(input.CreateTimeRange != null && input.CreateTimeRange.Count > 0 && input.CreateTimeRange[0].HasValue, x => x.CreateTime >= input.CreateTimeRange[0]) - .WhereIF(input.CreateTimeRange != null && input.CreateTimeRange.Count > 1 && input.CreateTimeRange[1].HasValue, x => x.CreateTime < ((DateTime)input.CreateTimeRange[1]).AddDays(1)); - return await query.OrderBuilder(input).ToPagedListAsync(input.Page, input.PageSize); - } - - /// - /// 查询退款信息列表 - /// - /// - /// - [HttpPost] - [DisplayName("根据支付id获取退款信息列表")] - public async Task> ListRefund([FromBody] string id) - { - var query = _sysWechatRefundRep.AsQueryable() - .Where(u => u.TransactionId == id); - return await query.ToListAsync(); - } - - /// - /// 生成JSAPI调起支付所需参数 🔖 - /// - /// - /// - [DisplayName("生成JSAPI调起支付所需参数")] - public WechatPayParaOutput GenerateParametersForJsapiPay(WechatPayParaInput input) - { - var data = _wechatTenpayClient.GenerateParametersForJsapiPayRequest(_wechatPayOptions.AppId, input.PrepayId); - return new WechatPayParaOutput() - { - AppId = data["appId"], - TimeStamp = data["timeStamp"], - NonceStr = data["nonceStr"], - Package = data["package"], - SignType = data["signType"], - PaySign = data["paySign"] - }; - } - - /// - /// 微信支付下单(商户直连) 🔖 - /// - [DisplayName("微信支付下单(商户直连)")] - public async Task CreatePayTransaction([FromBody] WechatPayTransactionInput input) - { - var request = new CreatePayTransactionJsapiRequest() - { - OutTradeNumber = DateTimeOffset.Now.ToString("yyyyMMddHHmmssfff") + (new Random()).Next(100, 1000), // 订单号 - AppId = _wechatPayOptions.AppId, - Description = input.Description, - Attachment = input.Attachment, - GoodsTag = input.GoodsTag, - ExpireTime = DateTimeOffset.Now.AddMinutes(10), - NotifyUrl = _payCallBackOptions.WechatPayUrl, - Amount = new CreatePayTransactionJsapiRequest.Types.Amount() { Total = input.Total }, - Payer = new CreatePayTransactionJsapiRequest.Types.Payer() { OpenId = input.OpenId } - }; - var response = await _wechatTenpayClient.ExecuteCreatePayTransactionJsapiAsync(request); - if (!response.IsSuccessful()) - throw Oops.Oh(response.ErrorMessage); - - var singInfo = this.GenerateParametersForJsapiPay(new WechatPayParaInput() { PrepayId = response.PrepayId }); - // 保存订单信息 - var wechatPay = new SysWechatPay() - { - AppId = _wechatPayOptions.AppId, - MerchantId = _wechatPayOptions.MerchantId, - OutTradeNumber = request.OutTradeNumber, - Description = input.Description, - Attachment = input.Attachment, - GoodsTag = input.GoodsTag, - Total = input.Total, - OpenId = input.OpenId, - TransactionId = "", - Tags = input.Tags, - BusinessId = input.BusinessId, - }; - await _sysWechatPayRep.InsertAsync(wechatPay); - - return new WechatPayTransactionOutput() - { - PrepayId = response.PrepayId, - OutTradeNumber = request.OutTradeNumber, - SingInfo = singInfo - }; - } - - /// - /// 微信支付下单(商户直连)Native - /// - [DisplayName("微信支付下单(商户直连)Native")] - public async Task CreatePayTransactionNative([FromBody] WechatPayTransactionInput input) - { - var request = new CreatePayTransactionNativeRequest() - { - OutTradeNumber = DateTimeOffset.Now.ToString("yyyyMMddHHmmssfff") + (new Random()).Next(100, 1000), // 订单号 - AppId = _wechatPayOptions.AppId, - Description = input.Description, - Attachment = input.Attachment, - GoodsTag = input.GoodsTag, - ExpireTime = DateTimeOffset.Now.AddMinutes(10), - NotifyUrl = _payCallBackOptions.WechatPayUrl, - Amount = new CreatePayTransactionNativeRequest.Types.Amount() { Total = input.Total }, - //Payer = new CreatePayTransactionNativeRequest.Types.Payer() { OpenId = input.OpenId } - Scene = new CreatePayTransactionNativeRequest.Types.Scene() { ClientIp = "127.0.0.1" } - }; - var response = await _wechatTenpayClient.ExecuteCreatePayTransactionNativeAsync(request); - if (!response.IsSuccessful()) - { - JsonConvert.SerializeObject(response).LogInformation(); - throw Oops.Oh(response.ErrorMessage); - } - // 保存订单信息 - var wechatPay = new SysWechatPay() - { - AppId = _wechatPayOptions.AppId, - MerchantId = _wechatPayOptions.MerchantId, - OutTradeNumber = request.OutTradeNumber, - Description = input.Description, - Attachment = input.Attachment, - GoodsTag = input.GoodsTag, - Total = input.Total, - //OpenId = input.OpenId, - TransactionId = "", - QrcodeContent = response.QrcodeUrl, - Tags = input.Tags, - BusinessId = input.BusinessId, - }; - await _sysWechatPayRep.InsertAsync(wechatPay); - return new - { - request.OutTradeNumber, - response.QrcodeUrl - }; - } - - /// - /// 微信支付下单(服务商模式) 🔖 - /// - [DisplayName("微信支付下单(服务商模式)")] - public async Task CreatePayPartnerTransaction([FromBody] WechatPayTransactionInput input) - { - var request = new CreatePayPartnerTransactionJsapiRequest() - { - OutTradeNumber = DateTimeOffset.Now.ToString("yyyyMMddHHmmssfff") + (new Random()).Next(100, 1000), // 订单号 - AppId = _wechatPayOptions.AppId, - MerchantId = _wechatPayOptions.MerchantId, - SubAppId = _wechatPayOptions.AppId, - SubMerchantId = _wechatPayOptions.MerchantId, - Description = input.Description, - Attachment = input.Attachment, - GoodsTag = input.GoodsTag, - ExpireTime = DateTimeOffset.Now.AddMinutes(10), - NotifyUrl = _payCallBackOptions.WechatPayUrl, - Amount = new CreatePayPartnerTransactionJsapiRequest.Types.Amount() { Total = input.Total }, - Payer = new CreatePayPartnerTransactionJsapiRequest.Types.Payer() { OpenId = input.OpenId } - }; - var response = await _wechatTenpayClient.ExecuteCreatePayPartnerTransactionJsapiAsync(request); - if (!response.IsSuccessful()) - throw Oops.Oh(response.ErrorMessage); - var singInfo = this.GenerateParametersForJsapiPay(new WechatPayParaInput() { PrepayId = response.PrepayId }); - // 保存订单信息 - var wechatPay = new SysWechatPay() - { - AppId = _wechatPayOptions.AppId, - MerchantId = _wechatPayOptions.MerchantId, - SubAppId = _wechatPayOptions.AppId, - SubMerchantId = _wechatPayOptions.MerchantId, - OutTradeNumber = request.OutTradeNumber, - Description = input.Description, - Attachment = input.Attachment, - GoodsTag = input.GoodsTag, - Total = input.Total, - OpenId = input.OpenId, - TransactionId = "" - }; - await _sysWechatPayRep.InsertAsync(wechatPay); - - return new - { - response.PrepayId, - request.OutTradeNumber, - singInfo - }; - } - - /// - /// 获取支付订单详情(本地库) 🔖 - /// - /// - /// - [DisplayName("获取支付订单详情(本地库)")] - public async Task GetPayInfo(string tradeId) - { - return await _sysWechatPayRep.GetFirstAsync(u => u.OutTradeNumber == tradeId); - } - - /// - /// 获取支付订单详情(微信接口) 🔖 - /// - /// - /// - [DisplayName("获取支付订单详情(微信接口)")] - public async Task GetPayInfoFromWechat(string tradeId) - { - var request = new GetPayTransactionByOutTradeNumberRequest(); - request.OutTradeNumber = tradeId; - var response = await _wechatTenpayClient.ExecuteGetPayTransactionByOutTradeNumberAsync(request); - // 修改订单支付状态 - var wechatPay = await _sysWechatPayRep.GetFirstAsync(u => u.OutTradeNumber == response.OutTradeNumber - && u.MerchantId == response.MerchantId); - // 如果状态不一致就更新数据库中的记录 - if (wechatPay != null && wechatPay.TradeState != response.TradeState) - { - wechatPay.OpenId = response.Payer.OpenId; - wechatPay.TransactionId = response.TransactionId; // 支付订单号 - wechatPay.TradeType = response.TradeType; // 交易类型 - wechatPay.TradeState = response.TradeState; // 交易状态 - wechatPay.TradeStateDescription = response.TradeStateDescription; // 交易状态描述 - wechatPay.BankType = response.BankType; // 付款银行类型 - wechatPay.Total = response.Amount.Total; // 订单总金额 - wechatPay.PayerTotal = response.Amount.PayerTotal; // 用户支付金额 - wechatPay.SuccessTime = response.SuccessTime.Value.DateTime; // 支付完成时间 - await _sysWechatPayRep.AsUpdateable(wechatPay).IgnoreColumns(true).ExecuteCommandAsync(); - } - wechatPay = new SysWechatPay() - { - AppId = _wechatPayOptions.AppId, - MerchantId = _wechatPayOptions.MerchantId, - SubAppId = _wechatPayOptions.AppId, - SubMerchantId = _wechatPayOptions.MerchantId, - OutTradeNumber = request.OutTradeNumber, - Attachment = response.Attachment, - Total = response.Amount.Total, // 订单总金额 - TransactionId = response.TransactionId, - TradeType = response.TradeType, // 交易类型 - TradeState = response.TradeState, // 交易状态 - TradeStateDescription = response.TradeStateDescription, // 交易状态描述 - BankType = response.BankType, // 付款银行类型 - PayerTotal = response.Amount.PayerTotal, // 用户支付金额 - SuccessTime = response.SuccessTime.Value.DateTime // 支付完成时间 - }; - return wechatPay; - } - - /// - /// 退款申请 - /// - /// - /// - [DisplayName("退款申请")] - [HttpPost] - public async Task CreateRefundDomestic([FromBody] WechatPayRefundDomesticInput input) - { - // refund/domestic/refunds - var request = new CreateRefundDomesticRefundRequest() - { - Amount = new CreateRefundDomesticRefundRequest.Types.Amount() - { - Refund = input.Refund, - Total = input.Total, - Currency = "CNY" - }, - - OutTradeNumber = input.TradeId, - OutRefundNumber = "R" + DateTimeOffset.Now.ToString("yyyyMMddHHmmssfff") + (new Random()).Next(100, 1000), // 订单号 - NotifyUrl = _payCallBackOptions.WechatRefundUrl, // 应采用WechatRefundUrl参数,如与WechatPayUrl入口相同,也应分开设置参数 - Reason = input.Reason, - }; - var response = await _wechatTenpayClient.ExecuteCreateRefundDomesticRefundAsync(request); - if (string.IsNullOrEmpty(response.ErrorCode)) - { - // 成功了,这里应该保存退款订单信息 - var wechatPay = await _sysWechatPayRep.GetFirstAsync(u => u.OutTradeNumber == response.OutTradeNumber); - // 保存订单信息 - if (wechatPay != null) - { - var wechatRefund = new SysWechatRefund() - { - WechatPayId = wechatPay.Id, - TransactionId = response.TransactionId, - Refund = input.Refund, - Reason = input.Reason, - OutRefundNumber = request.OutRefundNumber, - Channel = response.Channel, - UserReceivedAccount = response.UserReceivedAccount, - }; - await _sysWechatRefundRep.InsertAsync(wechatRefund); - } - } - else - { - throw Oops.Bah($"[{response.ErrorCode}]{response.ErrorMessage}"); - } - return response; - } - - /// - /// 获取退款订单详情(微信接口) - /// - /// - /// - [DisplayName("获取退款订单详情(微信接口)")] - public async Task GetRefundInfoFromWechat(string refundId) - { - var request = new GetRefundDomesticRefundByOutRefundNumberRequest(); - request.OutRefundNumber = refundId; - var response = await _wechatTenpayClient.ExecuteGetRefundDomesticRefundByOutRefundNumberAsync(request); - // 修改订单支付状态 - var wechatRefund = await _sysWechatRefundRep.GetFirstAsync(u => u.OutRefundNumber == refundId); - // 如果状态不一致就更新数据库中的记录 - if (wechatRefund != null && wechatRefund.TradeState != response.Status) - { - wechatRefund.TransactionId = response.TransactionId; // 支付订单号 - wechatRefund.TradeState = response.Status; // 交易状态 - wechatRefund.SuccessTime = response.SuccessTime.Value.DateTime; // 支付完成时间 - await _sysWechatRefundRep.AsUpdateable(wechatRefund).IgnoreColumns(true).ExecuteCommandAsync(); - // 有退款,刷新一下订单状态 - var wechatPay = await _sysWechatPayRep.GetFirstAsync(u => u.Id == wechatRefund.WechatPayId); - if (wechatPay != null) - await GetPayInfoFromWechat(wechatPay.OutTradeNumber); - } - wechatRefund = new SysWechatRefund() - { - TransactionId = response.TransactionId, - Refund = response.Amount.Refund, - OutRefundNumber = request.OutRefundNumber, - Channel = response.Channel, - UserReceivedAccount = response.UserReceivedAccount, - TradeState = response.Status, // 交易状态 - SuccessTime = response.SuccessTime.Value.DateTime, // 支付完成时间 - }; - return wechatRefund; - } - - /// - /// 微信支付成功回调(商户直连) - /// - /// - [AllowAnonymous] - [DisplayName("微信支付成功回调(商户直连)")] - public async Task PayCallBack() - { - using var ms = new MemoryStream(); - await App.HttpContext.Request.Body.CopyToAsync(ms); - var b = ms.ToArray(); - var callbackJson = Encoding.UTF8.GetString(b); - - var callbackModel = _wechatTenpayClient.DeserializeEvent(callbackJson); - if ("TRANSACTION.SUCCESS".Equals(callbackModel.EventType)) - { - try - { - var callbackPayResource = _wechatTenpayClient.DecryptEventResource(callbackModel); - - // 修改订单支付状态 - var wechatPay = await _sysWechatPayRep.GetFirstAsync(u => u.OutTradeNumber == callbackPayResource.OutTradeNumber - && u.MerchantId == callbackPayResource.MerchantId); - if (wechatPay == null) return null; - wechatPay.OpenId = callbackPayResource.Payer.OpenId; // 支付者标识 - //wechatPay.MerchantId = callbackResource.MerchantId; // 微信商户号 - //wechatPay.OutTradeNumber = callbackResource.OutTradeNumber; // 商户订单号 - wechatPay.TransactionId = callbackPayResource.TransactionId; // 支付订单号 - wechatPay.TradeType = callbackPayResource.TradeType; // 交易类型 - wechatPay.TradeState = callbackPayResource.TradeState; // 交易状态 - wechatPay.TradeStateDescription = callbackPayResource.TradeStateDescription; // 交易状态描述 - wechatPay.BankType = callbackPayResource.BankType; // 付款银行类型 - wechatPay.Total = callbackPayResource.Amount.Total; // 订单总金额 - wechatPay.PayerTotal = callbackPayResource.Amount.PayerTotal; // 用户支付金额 - wechatPay.SuccessTime = callbackPayResource.SuccessTime.DateTime; // 支付完成时间 - - await _sysWechatPayRep.AsUpdateable(wechatPay).IgnoreColumns(true).ExecuteCommandAsync(); - - return new WechatPayOutput() - { - Total = wechatPay.Total, - Attachment = wechatPay.Attachment, - GoodsTag = wechatPay.GoodsTag - }; - } - catch (Exception ex) - { - "微信支付回调时出错:".LogError(ex); - } - } - else if ("REFUND.SUCCESS".Equals(callbackModel.EventType)) - { - //参考:https://pay.weixin.qq.com/docs/merchant/apis/jsapi-payment/refund-result-notice.html - try - { - var callbackRefundResource = _wechatTenpayClient.DecryptEventResource(callbackModel); - // 修改订单支付状态 - var wechatRefund = await _sysWechatRefundRep.GetFirstAsync(u => u.OutRefundNumber == callbackRefundResource.OutRefundNumber); - if (wechatRefund == null) return null; - wechatRefund.TradeState = callbackRefundResource.RefundStatus; // 交易状态 - wechatRefund.SuccessTime = callbackRefundResource.SuccessTime.Value.DateTime; // 支付完成时间 - - await _sysWechatRefundRep.AsUpdateable(wechatRefund).IgnoreColumns(true).ExecuteCommandAsync(); - // 有退款,刷新一下订单状态 - await GetPayInfoFromWechat(callbackRefundResource.OutTradeNumber); - } - catch (Exception ex) - { - "微信退款回调时出错:".LogError(ex); - } - } - else - { - callbackModel.EventType.LogInformation(); - } - - return null; - } - - /// - /// 微信支付成功回调(服务商模式) 🔖 - /// - /// - [AllowAnonymous] - [DisplayName("微信支付成功回调(服务商模式)")] - public async Task PayPartnerCallBack() - { - using var ms = new MemoryStream(); - await App.HttpContext.Request.Body.CopyToAsync(ms); - var b = ms.ToArray(); - var callbackJson = Encoding.UTF8.GetString(b); - - var callbackModel = _wechatTenpayClient.DeserializeEvent(callbackJson); - if ("TRANSACTION.SUCCESS".Equals(callbackModel.EventType)) - { - var callbackResource = _wechatTenpayClient.DecryptEventResource(callbackModel); - - // 修改订单支付状态 - var wechatPay = await _sysWechatPayRep.GetFirstAsync(u => u.OutTradeNumber == callbackResource.OutTradeNumber - && u.MerchantId == callbackResource.MerchantId); - if (wechatPay == null) return; - //wechatPay.OpenId = callbackResource.Payer.OpenId; // 支付者标识 - //wechatPay.MerchantId = callbackResource.MerchantId; // 微信商户号 - //wechatPay.OutTradeNumber = callbackResource.OutTradeNumber; // 商户订单号 - wechatPay.TransactionId = callbackResource.TransactionId; // 支付订单号 - wechatPay.TradeType = callbackResource.TradeType; // 交易类型 - wechatPay.TradeState = callbackResource.TradeState; // 交易状态 - wechatPay.TradeStateDescription = callbackResource.TradeStateDescription; // 交易状态描述 - wechatPay.BankType = callbackResource.BankType; // 付款银行类型 - wechatPay.Total = callbackResource.Amount.Total; // 订单总金额 - wechatPay.PayerTotal = callbackResource.Amount.PayerTotal; // 用户支付金额 - wechatPay.SuccessTime = callbackResource.SuccessTime.DateTime; // 支付完成时间 - - await _sysWechatPayRep.AsUpdateable(wechatPay).IgnoreColumns(true).ExecuteCommandAsync(); - } - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Wechat/SysWechatService.cs b/Admin.NET.Core/Service/Wechat/SysWechatService.cs deleted file mode 100644 index 881b9a0..0000000 --- a/Admin.NET.Core/Service/Wechat/SysWechatService.cs +++ /dev/null @@ -1,202 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 微信公众号服务 🧩 -/// -[ApiDescriptionSettings(Order = 230)] -public class SysWechatService : IDynamicApiController, ITransient -{ - private readonly SqlSugarRepository _sysWechatUserRep; - private readonly SysConfigService _sysConfigService; - private readonly WechatApiClientFactory _wechatApiClientFactory; - private readonly WechatApiClient _wechatApiClient; - - public SysWechatService(SqlSugarRepository sysWechatUserRep, - SysConfigService sysConfigService, - WechatApiClientFactory wechatApiClientFactory, - SysCacheService sysCacheService) - { - _sysWechatUserRep = sysWechatUserRep; - _sysConfigService = sysConfigService; - _wechatApiClientFactory = wechatApiClientFactory; - _wechatApiClient = wechatApiClientFactory.CreateWechatClient(); - } - - /// - /// 生成网页授权Url 🔖 - /// - /// - /// - [AllowAnonymous] - [DisplayName("生成网页授权Url")] - public string GenAuthUrl(GenAuthUrlInput input) - { - return _wechatApiClient.GenerateParameterizedUrlForConnectOAuth2Authorize(input.RedirectUrl, input.Scope, input.State); - } - - /// - /// 获取微信用户OpenId 🔖 - /// - /// - [AllowAnonymous] - [DisplayName("获取微信用户OpenId")] - public async Task SnsOAuth2([FromQuery] WechatOAuth2Input input) - { - var reqOAuth2 = new SnsOAuth2AccessTokenRequest() - { - Code = input.Code, - }; - var resOAuth2 = await _wechatApiClient.ExecuteSnsOAuth2AccessTokenAsync(reqOAuth2); - if (resOAuth2.ErrorCode != (int)WechatReturnCodeEnum.请求成功) - throw Oops.Oh(resOAuth2.ErrorMessage + " " + resOAuth2.ErrorCode); - - var wxUser = await _sysWechatUserRep.GetFirstAsync(p => p.OpenId == resOAuth2.OpenId); - if (wxUser == null) - { - var reqUserInfo = new SnsUserInfoRequest() - { - OpenId = resOAuth2.OpenId, - AccessToken = resOAuth2.AccessToken, - }; - var resUserInfo = await _wechatApiClient.ExecuteSnsUserInfoAsync(reqUserInfo); - wxUser = resUserInfo.Adapt(); - wxUser.Avatar = resUserInfo.HeadImageUrl; - wxUser.NickName = resUserInfo.Nickname; - wxUser.OpenId = resOAuth2.OpenId; - wxUser.UnionId = resOAuth2.UnionId; - wxUser.AccessToken = resOAuth2.AccessToken; - wxUser.RefreshToken = resOAuth2.RefreshToken; - wxUser = await _sysWechatUserRep.AsInsertable(wxUser).ExecuteReturnEntityAsync(); - } - else - { - wxUser.AccessToken = resOAuth2.AccessToken; - wxUser.RefreshToken = resOAuth2.RefreshToken; - await _sysWechatUserRep.AsUpdateable(wxUser).IgnoreColumns(true).ExecuteCommandAsync(); - } - - return resOAuth2.OpenId; - } - - /// - /// 微信用户登录OpenId 🔖 - /// - /// - /// - [AllowAnonymous] - [DisplayName("微信用户登录OpenId")] - public async Task OpenIdLogin(WechatUserLogin input) - { - var wxUser = await _sysWechatUserRep.GetFirstAsync(p => p.OpenId == input.OpenId); - if (wxUser == null) - throw Oops.Oh("微信用户登录OpenId错误"); - - var tokenExpire = await _sysConfigService.GetTokenExpire(); - return new - { - wxUser.Avatar, - accessToken = JWTEncryption.Encrypt(new Dictionary - { - { ClaimConst.UserId, wxUser.Id }, - { ClaimConst.NickName, wxUser.NickName }, - { ClaimConst.LoginMode, LoginModeEnum.APP }, - }, tokenExpire) - }; - } - - /// - /// 获取配置签名参数(wx.config) 🔖 - /// - /// - [DisplayName("获取配置签名参数(wx.config)")] - public async Task GenConfigPara(SignatureInput input) - { - string ticket = await _wechatApiClientFactory.TryGetWechatJsApiTicketAsync(); - return _wechatApiClient.GenerateParametersForJSSDKConfig(ticket, input.Url); - } - - /// - /// 获取模板列表 🔖 - /// - [DisplayName("获取模板列表")] - public async Task GetMessageTemplateList() - { - var accessToken = await GetCgibinToken(); - var reqTemplate = new CgibinTemplateGetAllPrivateTemplateRequest() - { - AccessToken = accessToken - }; - var resTemplate = await _wechatApiClient.ExecuteCgibinTemplateGetAllPrivateTemplateAsync(reqTemplate); - if (resTemplate.ErrorCode != (int)WechatReturnCodeEnum.请求成功) - throw Oops.Oh(resTemplate.ErrorMessage + " " + resTemplate.ErrorCode); - - return resTemplate.TemplateList; - } - - /// - /// 发送模板消息 🔖 - /// - /// - /// - [DisplayName("发送模板消息")] - public async Task SendTemplateMessage(MessageTemplateSendInput input) - { - var dataInfo = input.Data.ToDictionary(k => k.Key, k => k.Value); - var messageData = new Dictionary(); - foreach (var item in dataInfo) - { - messageData.Add(item.Key, new CgibinMessageTemplateSendRequest.Types.DataItem() { Value = "" + item.Value.Value.ToString() + "" }); - } - - var accessToken = await GetCgibinToken(); - var reqMessage = new CgibinMessageTemplateSendRequest() - { - AccessToken = accessToken, - TemplateId = input.TemplateId, - ToUserOpenId = input.ToUserOpenId, - Url = input.Url, - MiniProgram = new CgibinMessageTemplateSendRequest.Types.MiniProgram - { - AppId = _wechatApiClientFactory._wechatOptions.WxOpenAppId, - PagePath = input.MiniProgramPagePath, - }, - Data = messageData - }; - var resMessage = await _wechatApiClient.ExecuteCgibinMessageTemplateSendAsync(reqMessage); - return resMessage; - } - - /// - /// 删除模板 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "DeleteMessageTemplate"), HttpPost] - [DisplayName("删除模板")] - public async Task DeleteMessageTemplate(DeleteMessageTemplateInput input) - { - var accessToken = await GetCgibinToken(); - var reqMessage = new CgibinTemplateDeletePrivateTemplateRequest() - { - AccessToken = accessToken, - TemplateId = input.TemplateId - }; - var resTemplate = await _wechatApiClient.ExecuteCgibinTemplateDeletePrivateTemplateAsync(reqMessage); - return resTemplate; - } - - /// - /// 获取Access_token - /// - [NonAction] - public async Task GetCgibinToken() - { - return await _wechatApiClientFactory.TryGetWechatAccessTokenAsync(); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Wechat/SysWechatUserService.cs b/Admin.NET.Core/Service/Wechat/SysWechatUserService.cs deleted file mode 100644 index 3e3f38a..0000000 --- a/Admin.NET.Core/Service/Wechat/SysWechatUserService.cs +++ /dev/null @@ -1,73 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 微信账号服务 🧩 -/// -[ApiDescriptionSettings(Order = 220)] -public class SysWechatUserService : IDynamicApiController, ITransient -{ - private readonly SqlSugarRepository _sysWechatUserRep; - - public SysWechatUserService(SqlSugarRepository sysWechatUserRep) - { - _sysWechatUserRep = sysWechatUserRep; - } - - /// - /// 获取微信用户列表 🔖 - /// - /// - /// - [DisplayName("获取微信用户列表")] - public async Task> Page(WechatUserInput input) - { - return await _sysWechatUserRep.AsQueryable() - .WhereIF(!string.IsNullOrWhiteSpace(input.NickName), u => u.NickName.Contains(input.NickName)) - .WhereIF(!string.IsNullOrWhiteSpace(input.Mobile), u => u.Mobile.Contains(input.Mobile)) - .OrderBy(u => u.Id, OrderByType.Desc) - .ToPagedListAsync(input.Page, input.PageSize); - } - - /// - /// 增加微信用户 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "Add"), HttpPost] - [DisplayName("增加微信用户")] - public async Task AddWechatUser(SysWechatUser input) - { - await _sysWechatUserRep.InsertAsync(input.Adapt()); - } - - /// - /// 更新微信用户 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "Update"), HttpPost] - [DisplayName("更新微信用户")] - public async Task UpdateWechatUser(SysWechatUser input) - { - var weChatUser = input.Adapt(); - await _sysWechatUserRep.AsUpdateable(weChatUser).IgnoreColumns(true).ExecuteCommandAsync(); - } - - /// - /// 删除微信用户 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "Delete"), HttpPost] - [DisplayName("删除微信用户")] - public async Task DeleteWechatUser(DeleteWechatUserInput input) - { - await _sysWechatUserRep.DeleteAsync(u => u.Id == input.Id); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Wechat/SysWxOpenService.cs b/Admin.NET.Core/Service/Wechat/SysWxOpenService.cs deleted file mode 100644 index 24e2694..0000000 --- a/Admin.NET.Core/Service/Wechat/SysWxOpenService.cs +++ /dev/null @@ -1,407 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace Admin.NET.Core.Service; - -/// -/// 微信小程序服务 🧩 -/// -[ApiDescriptionSettings(Order = 240)] -public class SysWxOpenService : IDynamicApiController, ITransient -{ - private readonly SqlSugarRepository _sysWechatUserRep; - private readonly SysConfigService _sysConfigService; - private readonly WechatApiClient _wechatApiClient; - private readonly SysFileService _sysFileService; - private readonly WechatApiClientFactory _wechatApiClientFactory; - - public SysWxOpenService(SqlSugarRepository sysWechatUserRep, - SysConfigService sysConfigService, - WechatApiClientFactory wechatApiClientFactory, - SysFileService sysFileService) - { - _sysWechatUserRep = sysWechatUserRep; - _sysConfigService = sysConfigService; - _wechatApiClient = wechatApiClientFactory.CreateWxOpenClient(); - _sysFileService = sysFileService; - _wechatApiClientFactory = wechatApiClientFactory; - } - - /// - /// 获取微信用户OpenId 🔖 - /// - /// - [AllowAnonymous] - [DisplayName("获取微信用户OpenId")] - public async Task GetWxOpenId([FromQuery] JsCode2SessionInput input) - { - var reqJsCode2Session = new SnsJsCode2SessionRequest() - { - JsCode = input.JsCode, - }; - var resCode2Session = await _wechatApiClient.ExecuteSnsJsCode2SessionAsync(reqJsCode2Session); - if (resCode2Session.ErrorCode != (int)WechatReturnCodeEnum.请求成功) - throw Oops.Oh(resCode2Session.ErrorMessage + " " + resCode2Session.ErrorCode); - - var wxUser = await _sysWechatUserRep.GetFirstAsync(p => p.OpenId == resCode2Session.OpenId); - if (wxUser == null) - { - wxUser = new SysWechatUser - { - OpenId = resCode2Session.OpenId, - UnionId = resCode2Session.UnionId, - SessionKey = resCode2Session.SessionKey, - PlatformType = PlatformTypeEnum.微信小程序 - }; - wxUser = await _sysWechatUserRep.AsInsertable(wxUser).ExecuteReturnEntityAsync(); - } - else - { - await _sysWechatUserRep.AsUpdateable(wxUser).IgnoreColumns(true).ExecuteCommandAsync(); - } - - return new WxOpenIdOutput - { - OpenId = resCode2Session.OpenId - }; - } - - /// - /// 获取微信用户电话号码 🔖 - /// - /// - [AllowAnonymous] - [DisplayName("获取微信用户电话号码")] - public async Task GetWxPhone([FromQuery] WxPhoneInput input) - { - var accessToken = await GetCgibinToken(); - var reqUserPhoneNumber = new WxaBusinessGetUserPhoneNumberRequest() - { - Code = input.Code, - AccessToken = accessToken, - }; - var resUserPhoneNumber = await _wechatApiClient.ExecuteWxaBusinessGetUserPhoneNumberAsync(reqUserPhoneNumber); - if (resUserPhoneNumber.ErrorCode != (int)WechatReturnCodeEnum.请求成功) - throw Oops.Oh(resUserPhoneNumber.ErrorMessage + " " + resUserPhoneNumber.ErrorCode); - - var wxUser = await _sysWechatUserRep.GetFirstAsync(p => p.OpenId == input.OpenId); - if (wxUser == null) - { - wxUser = new SysWechatUser - { - OpenId = input.OpenId, - Mobile = resUserPhoneNumber.PhoneInfo?.PhoneNumber, - PlatformType = PlatformTypeEnum.微信小程序 - }; - wxUser = await _sysWechatUserRep.AsInsertable(wxUser).ExecuteReturnEntityAsync(); - } - else - { - wxUser.Mobile = resUserPhoneNumber.PhoneInfo?.PhoneNumber; - await _sysWechatUserRep.AsUpdateable(wxUser).IgnoreColumns(true).ExecuteCommandAsync(); - } - - return new WxPhoneOutput - { - PhoneNumber = resUserPhoneNumber.PhoneInfo?.PhoneNumber - }; - } - - /// - /// 微信小程序登录OpenId 🔖 - /// - /// - /// - [AllowAnonymous] - [DisplayName("微信小程序登录OpenId")] - public async Task WxOpenIdLogin(WxOpenIdLoginInput input) - { - var wxUser = await _sysWechatUserRep.GetFirstAsync(u => u.OpenId == input.OpenId); - if (wxUser == null) - throw Oops.Oh("微信小程序登录失败"); - - var tokenExpire = await _sysConfigService.GetTokenExpire(); - return new - { - wxUser.Avatar, - accessToken = JWTEncryption.Encrypt(new Dictionary - { - { ClaimConst.UserId, wxUser.Id }, - { ClaimConst.RealName, wxUser.NickName }, - { ClaimConst.LoginMode, LoginModeEnum.APP }, - }, tokenExpire) - }; - } - - /// - /// 上传小程序头像 - /// - /// - /// - [AllowAnonymous] - [DisplayName("上传小程序头像")] - public async Task UploadAvatar([FromForm] UploadAvatarInput input) - { - var wxUser = await _sysWechatUserRep.GetFirstAsync(u => u.OpenId == input.OpenId); - if (wxUser == null) - throw Oops.Oh("未找到用户上传失败"); - - var res = await _sysFileService.UploadFile(new UploadFileInput { File = input.File, FileType = input.FileType }, "upload/wechatAvatar"); - wxUser.Avatar = res.Url; - await _sysWechatUserRep.AsUpdateable(wxUser).IgnoreColumns(true).ExecuteCommandAsync(); - - return res; - } - - /// - /// 设置小程序用户昵称 - /// - /// - /// - [AllowAnonymous] - [HttpPost] - public async Task SetNickName(SetNickNameInput input) - { - var wxUser = await _sysWechatUserRep.GetFirstAsync(u => u.OpenId == input.OpenId); - if (wxUser == null) - throw Oops.Oh("未找到用户信息设置失败"); - wxUser.NickName = input.NickName; - await _sysWechatUserRep.AsUpdateable(wxUser).IgnoreColumns(true).ExecuteCommandAsync(); - return; - } - - /// - /// 获取小程序用户信息 - /// - /// - /// - [AllowAnonymous] - public async Task GetUserInfo(string openid) - { - var wxUser = await _sysWechatUserRep.GetFirstAsync(u => u.OpenId == openid); - if (wxUser == null) - throw Oops.Oh("未找到用户信息获取失败"); - return new { nickName = wxUser.NickName, avator = wxUser.Avatar }; - } - - /// - /// 获取订阅消息模板列表 🔖 - /// - [DisplayName("获取订阅消息模板列表")] - public async Task GetMessageTemplateList() - { - var accessToken = await GetCgibinToken(); - var reqTemplate = new WxaApiNewTemplateGetTemplateRequest() - { - AccessToken = accessToken - }; - var resTemplate = await _wechatApiClient.ExecuteWxaApiNewTemplateGetTemplateAsync(reqTemplate); - if (resTemplate.ErrorCode != (int)WechatReturnCodeEnum.请求成功) - throw Oops.Oh(resTemplate.ErrorMessage + " " + resTemplate.ErrorCode); - - return resTemplate.TemplateList; - } - - /// - /// 发送订阅消息 🔖 - /// - /// - /// - [DisplayName("发送订阅消息")] - public async Task SendSubscribeMessage(SendSubscribeMessageInput input) - { - var accessToken = await GetCgibinToken(); - var reqMessage = new CgibinMessageSubscribeSendRequest() - { - AccessToken = accessToken, - TemplateId = input.TemplateId, - ToUserOpenId = input.ToUserOpenId, - Data = input.Data, - MiniProgramState = input.MiniprogramState, - Language = input.Language, - MiniProgramPagePath = input.MiniProgramPagePath - }; - var resMessage = await _wechatApiClient.ExecuteCgibinMessageSubscribeSendAsync(reqMessage); - return resMessage; - } - - /// - /// 增加订阅消息模板 🔖 - /// - /// - /// - [ApiDescriptionSettings(Name = "AddSubscribeMessageTemplate"), HttpPost] - [DisplayName("增加订阅消息模板")] - public async Task AddSubscribeMessageTemplate(AddSubscribeMessageTemplateInput input) - { - var accessToken = await GetCgibinToken(); - var reqMessage = new WxaApiNewTemplateAddTemplateRequest() - { - AccessToken = accessToken, - TemplateTitleId = input.TemplateTitleId, - KeyworkIdList = input.KeyworkIdList, - SceneDescription = input.SceneDescription - }; - var resTemplate = await _wechatApiClient.ExecuteWxaApiNewTemplateAddTemplateAsync(reqMessage); - return resTemplate; - } - - /// - /// 生成带参数小程序二维码(总共生成的码数量限制为 100,000) - /// - /// 扫码进入的小程序页面路径,最大长度 128 个字符,不能为空; eg: pages / index ? id = AY000001 - /// - [DisplayName("生成小程序二维码")] - [ApiDescriptionSettings(Name = "GenerateQRImage")] - public async Task GenerateQRImageAsync(GenerateQRImageInput input) - { - GenerateQRImageOutput generateQRImageOutInput = new GenerateQRImageOutput(); - if (input.PagePath.IsNullOrEmpty()) - { - generateQRImageOutInput.Message = $"生成失败 页面路径不能为空"; - return generateQRImageOutInput; - } - - if (input.ImageName.IsNullOrEmpty()) - { - input.ImageName = DateTime.Now.ToString("yyyyMMddHHmmss"); - } - - var accessToken = await GetCgibinToken(); - var request = new CgibinWxaappCreateWxaQrcodeRequest - { - AccessToken = accessToken, - Path = input.PagePath, - Width = input.Width - }; - var response = await _wechatApiClient.ExecuteCgibinWxaappCreateWxaQrcodeAsync(request); - - if (response.IsSuccessful()) - { - var QRImagePath = App.GetConfig("Wechat:QRImagePath"); - var relativeImgPath = string.Empty; - - // 判断路径是绝对路径还是相对路径 - var isPathRooted = Path.IsPathRooted(QRImagePath); - if (!isPathRooted) - { - // 相对路径 - relativeImgPath = string.IsNullOrEmpty(QRImagePath) ? Path.Combine("upload", "QRImage") : QRImagePath; - QRImagePath = Path.Combine(App.WebHostEnvironment.WebRootPath, relativeImgPath); - } - - //判断文件存放路径是否存在 - if (!Directory.Exists(QRImagePath)) - { - Directory.CreateDirectory(QRImagePath); - } - // 将二维码图片数据保存为文件 - var fileName = $"{input.ImageName.ToUpper()}.png"; - var filePath = Path.Combine(QRImagePath, fileName); - if (File.Exists(filePath)) - { - File.Delete(filePath); - } - File.WriteAllBytes(filePath, response.GetRawBytes()); - - generateQRImageOutInput.Success = true; - generateQRImageOutInput.ImgPath = filePath; - generateQRImageOutInput.RelativeImgPath = Path.Combine(relativeImgPath, fileName); - generateQRImageOutInput.Message = "生成成功"; - } - else - { - // 处理错误情况 - generateQRImageOutInput.Message = $"生成失败 错误代码:{response.ErrorCode} 错误描述:{response.ErrorMessage}"; - } - return generateQRImageOutInput; - } - - /// - /// 生成二维码(获取不受限制的小程序码) - /// - /// 入参 - /// - [DisplayName("生成小程序二维码")] - [ApiDescriptionSettings(Name = "GenerateQRImageUnlimit")] - public async Task GenerateQRImageUnlimitAsync(GenerateQRImageUnLimitInput input) - { - GenerateQRImageOutput generateQRImageOutInput = new GenerateQRImageOutput(); - if (input.PagePath.IsNullOrEmpty()) - { - generateQRImageOutInput.Message = $"生成失败,页面路径不能为空"; - return generateQRImageOutInput; - } - - if (input.Scene.Length > 32) - { - generateQRImageOutInput.Message = $"生成失败,携带的参数长度超过限制"; - return generateQRImageOutInput; - } - - if (input.ImageName.IsNullOrEmpty()) - { - input.ImageName = DateTime.Now.ToString("yyyyMMddHHmmss"); - } - - var accessToken = await GetCgibinToken(); - var request = new WxaGetWxaCodeRequest - { - AccessToken = accessToken, - Width = input.Width, - PagePath = input.PagePath, - }; - var response = await _wechatApiClient.ExecuteWxaGetWxaCodeAsync(request); - - if (response.IsSuccessful()) - { - var QRImagePath = App.GetConfig("Wechat:QRImagePath"); - var relativeImgPath = string.Empty; - - // 判断路径是绝对路径还是相对路径 - var isPathRooted = Path.IsPathRooted(QRImagePath); - if (!isPathRooted) - { - // 相对路径 - relativeImgPath = string.IsNullOrEmpty(QRImagePath) ? Path.Combine("upload", "QRImageUnLimit") : QRImagePath; - QRImagePath = Path.Combine(App.WebHostEnvironment.WebRootPath, relativeImgPath); - } - - //判断文件存放路径是否存在 - if (!Directory.Exists(QRImagePath)) - { - Directory.CreateDirectory(QRImagePath); - } - // 将二维码图片数据保存为文件 - var fileName = $"{input.ImageName.ToUpper()}.png"; - var filePath = Path.Combine(QRImagePath, fileName); - if (File.Exists(filePath)) - { - File.Delete(filePath); - } - File.WriteAllBytes(filePath, response.GetRawBytes()); - - generateQRImageOutInput.Success = true; - generateQRImageOutInput.ImgPath = filePath; - generateQRImageOutInput.RelativeImgPath = Path.Combine(relativeImgPath, fileName); - generateQRImageOutInput.Message = "生成成功"; - } - else - { - // 处理错误情况 - generateQRImageOutInput.Message = $"生成失败 错误代码:{response.ErrorCode} 错误描述:{response.ErrorMessage}"; - } - return generateQRImageOutInput; - } - - /// - /// 获取Access_token - /// - private async Task GetCgibinToken() - { - return await _wechatApiClientFactory.TryGetWxOpenAccessTokenAsync(); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/Service/Wechat/WechatApiHttpClient.cs b/Admin.NET.Core/Service/Wechat/WechatApiHttpClient.cs deleted file mode 100644 index ae9a175..0000000 --- a/Admin.NET.Core/Service/Wechat/WechatApiHttpClient.cs +++ /dev/null @@ -1,208 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Newtonsoft.Json; - -namespace Admin.NET.Core.Service; - -/// -/// 微信API客户端 -/// -public partial class WechatApiClientFactory : ISingleton -{ - private readonly IHttpClientFactory _httpClientFactory; - public readonly WechatOptions _wechatOptions; - private readonly SysCacheService _sysCacheService; - - public WechatApiClientFactory(IHttpClientFactory httpClientFactory, IOptions wechatOptions, SysCacheService sysCacheService) - { - _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory)); - _wechatOptions = wechatOptions.Value ?? throw new ArgumentNullException(nameof(wechatOptions)); - _sysCacheService = sysCacheService; - } - - /// - /// 微信公众号 - /// - /// - public WechatApiClient CreateWechatClient() - { - if (string.IsNullOrEmpty(_wechatOptions.WechatAppId) || string.IsNullOrEmpty(_wechatOptions.WechatAppSecret)) - throw Oops.Oh("微信公众号配置错误"); - - var client = WechatApiClientBuilder.Create(new WechatApiClientOptions() - { - AppId = _wechatOptions.WechatAppId, - AppSecret = _wechatOptions.WechatAppSecret, - PushToken = _wechatOptions.WechatToken, - PushEncodingAESKey = _wechatOptions.WechatEncodingAESKey, - }) - .UseHttpClient(_httpClientFactory.CreateClient(), disposeClient: false) // 设置 HttpClient 不随客户端一同销毁 - .Build(); - - client.Configure(config => - { - JsonSerializerSettings jsonSerializerSettings = NewtonsoftJsonSerializer.GetDefaultSerializerSettings(); - jsonSerializerSettings.Formatting = Formatting.Indented; - config.JsonSerializer = new NewtonsoftJsonSerializer(jsonSerializerSettings); // 指定 System.Text.Json JSON序列化 - // config.JsonSerializer = new SystemTextJsonSerializer(jsonSerializerOptions); // 指定 Newtonsoft.Json JSON序列化 - }); - - return client; - } - - /// - /// 微信小程序 - /// - /// - public WechatApiClient CreateWxOpenClient() - { - if (string.IsNullOrEmpty(_wechatOptions.WxOpenAppId) || string.IsNullOrEmpty(_wechatOptions.WxOpenAppSecret)) - throw Oops.Oh("微信小程序配置错误"); - - var client = WechatApiClientBuilder.Create(new WechatApiClientOptions() - { - AppId = _wechatOptions.WxOpenAppId, - AppSecret = _wechatOptions.WxOpenAppSecret, - PushToken = _wechatOptions.WxToken, - PushEncodingAESKey = _wechatOptions.WxEncodingAESKey, - }) - .UseHttpClient(_httpClientFactory.CreateClient(), disposeClient: false) // 设置 HttpClient 不随客户端一同销毁 - .Build(); - - client.Configure(config => - { - JsonSerializerSettings jsonSerializerSettings = NewtonsoftJsonSerializer.GetDefaultSerializerSettings(); - jsonSerializerSettings.Formatting = Formatting.Indented; - config.JsonSerializer = new NewtonsoftJsonSerializer(jsonSerializerSettings); // 指定 System.Text.Json JSON序列化 - // config.JsonSerializer = new SystemTextJsonSerializer(jsonSerializerOptions); // 指定 Newtonsoft.Json JSON序列化 - }); - - return client; - } - - /// - /// 获取微信公众号AccessToken - /// - /// - public async Task TryGetWechatAccessTokenAsync() - { - if (!_sysCacheService.ExistKey($"WxAccessToken_{_wechatOptions.WechatAppId}") || string.IsNullOrEmpty(_sysCacheService.Get($"WxAccessToken_{_wechatOptions.WechatAppId}"))) - { - var client = CreateWechatClient(); - var reqCgibinToken = new CgibinTokenRequest(); - var resCgibinToken = await client.ExecuteCgibinTokenAsync(reqCgibinToken); - if (resCgibinToken.ErrorCode != (int)WechatReturnCodeEnum.请求成功) - throw Oops.Oh(resCgibinToken.ErrorMessage + " " + resCgibinToken.ErrorCode); - _sysCacheService.Set($"WxAccessToken_{_wechatOptions.WechatAppId}", resCgibinToken.AccessToken, TimeSpan.FromSeconds(resCgibinToken.ExpiresIn - 60)); - } - - return _sysCacheService.Get($"WxAccessToken_{_wechatOptions.WechatAppId}"); - } - - /// - /// 获取微信小程序AccessToken - /// - /// - public async Task TryGetWxOpenAccessTokenAsync() - { - if (!_sysCacheService.ExistKey($"WxAccessToken_{_wechatOptions.WxOpenAppId}") || string.IsNullOrEmpty(_sysCacheService.Get($"WxAccessToken_{_wechatOptions.WxOpenAppId}"))) - { - var client = CreateWxOpenClient(); - var reqCgibinToken = new CgibinTokenRequest(); - var resCgibinToken = await client.ExecuteCgibinTokenAsync(reqCgibinToken); - if (resCgibinToken.ErrorCode != (int)WechatReturnCodeEnum.请求成功) - throw Oops.Oh(resCgibinToken.ErrorMessage + " " + resCgibinToken.ErrorCode); - _sysCacheService.Set($"WxAccessToken_{_wechatOptions.WxOpenAppId}", resCgibinToken.AccessToken, TimeSpan.FromSeconds(resCgibinToken.ExpiresIn - 60)); - } - - return _sysCacheService.Get($"WxAccessToken_{_wechatOptions.WxOpenAppId}"); - } - - /// - /// 检查微信公众号AccessToken - /// - /// - public async Task CheckWechatAccessTokenAsync() - { - if (string.IsNullOrEmpty(_wechatOptions.WechatAppId) || string.IsNullOrEmpty(_wechatOptions.WechatAppSecret)) return; - - var req = new CgibinOpenApiQuotaGetRequest - { - AccessToken = await TryGetWechatAccessTokenAsync(), - CgiPath = "/cgi-bin/token" - }; - var client = CreateWechatClient(); - var res = await client.ExecuteCgibinOpenApiQuotaGetAsync(req); - - var originColor = Console.ForegroundColor; - if (res.ErrorCode != (int)WechatReturnCodeEnum.请求成功) - { - _sysCacheService.Remove($"WxAccessToken_{_wechatOptions.WechatAppId}"); - Console.ForegroundColor = ConsoleColor.Red; - Console.WriteLine("【" + DateTime.Now + "】" + _wechatOptions.WxOpenAppId + " 微信公众号令牌 无效"); - } - else - { - Console.ForegroundColor = ConsoleColor.Magenta; - Console.WriteLine("【" + DateTime.Now + "】" + _wechatOptions.WxOpenAppId + " 微信公众号令牌 有效"); - } - Console.ForegroundColor = originColor; - } - - /// - /// 检查微信小程序AccessToken - /// - /// - public async Task CheckWxOpenAccessTokenAsync() - { - if (string.IsNullOrEmpty(_wechatOptions.WxOpenAppId) || string.IsNullOrEmpty(_wechatOptions.WxOpenAppSecret)) return; - - var req = new CgibinOpenApiQuotaGetRequest - { - AccessToken = await TryGetWxOpenAccessTokenAsync(), - CgiPath = "/cgi-bin/token" - }; - var client = CreateWxOpenClient(); - var res = await client.ExecuteCgibinOpenApiQuotaGetAsync(req); - - var originColor = Console.ForegroundColor; - if (res.ErrorCode != (int)WechatReturnCodeEnum.请求成功) - { - _sysCacheService.Remove($"WxAccessToken_{_wechatOptions.WxOpenAppId}"); - Console.ForegroundColor = ConsoleColor.Red; - Console.WriteLine("【" + DateTime.Now + "】" + _wechatOptions.WxOpenAppId + " 微信小程序令牌 无效"); - } - else - { - Console.ForegroundColor = ConsoleColor.Magenta; - Console.WriteLine("【" + DateTime.Now + "】" + _wechatOptions.WxOpenAppId + " 微信小程序令牌 有效"); - } - Console.ForegroundColor = originColor; - } - - /// - /// 获取微信JS接口临时票据jsapi_ticket - /// - /// - public async Task TryGetWechatJsApiTicketAsync() - { - if (!_sysCacheService.ExistKey($"WxJsApiTicket_{_wechatOptions.WechatAppId}") || string.IsNullOrEmpty(_sysCacheService.Get($"WxJsApiTicket_{_wechatOptions.WechatAppId}"))) - { - var accessToken = await TryGetWechatAccessTokenAsync(); - var client = CreateWechatClient(); - var request = new CgibinTicketGetTicketRequest() - { - AccessToken = accessToken - }; - var response = await client.ExecuteCgibinTicketGetTicketAsync(request); - if (!response.IsSuccessful()) - throw Oops.Oh(response.ErrorMessage + " " + response.ErrorCode); - _sysCacheService.Set($"WxJsApiTicket_{_wechatOptions.WechatAppId}", response.Ticket, TimeSpan.FromSeconds(response.ExpiresIn - 60)); - } - return _sysCacheService.Get($"WxJsApiTicket_{_wechatOptions.WechatAppId}"); - } -} \ No newline at end of file diff --git a/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs b/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs index 1bb58db..76e21ae 100644 --- a/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs +++ b/Admin.NET.Core/SqlSugar/SqlSugarSetup.cs @@ -11,6 +11,45 @@ namespace Admin.NET.Core; public static class SqlSugarSetup { + // 仅自动维护后台通用底座表;支付、LDAP、代码生成等扩展按需再接入。 + private static readonly HashSet RetainedSystemEntities = new(StringComparer.Ordinal) + { + "SysConfig", + "SysDictData", + "SysDictDataTenant", + "SysDictType", + "SysFile", + "SysFileProvider", + "SysLang", + "SysLangText", + "SysLogDiff", + "SysLogEx", + "SysLogOp", + "SysLogVis", + "SysMenu", + "SysNotice", + "SysNoticeUser", + "SysOnlineUser", + "SysOpenAccess", + "SysOrg", + "SysPos", + "SysRegion", + "SysRole", + "SysRoleMenu", + "SysRoleOrg", + "SysTemplate", + "SysTenant", + "SysTenantConfig", + "SysTenantConfigData", + "SysTenantMenu", + "SysUser", + "SysUserConfig", + "SysUserConfigData", + "SysUserExtOrg", + "SysUserMenu", + "SysUserRegWay", + "SysUserRole", + }; // 多租户实例 public static ITenant ITenant { get; set; } @@ -445,6 +484,8 @@ public static class SqlSugarSetup return App.EffectiveTypes .Where(u => !u.IsInterface && !u.IsAbstract && u.IsClass && u.IsDefined(typeof(SugarTable), false)) .Where(u => !u.GetCustomAttributes().Any()) + .Where(u => RetainedSystemEntities.Contains(u.Name) || + (u.Namespace?.StartsWith("Evergreen.Health.Application.Health", StringComparison.Ordinal) ?? false)) .WhereIF(config.TableSettings.EnableIncreTable, u => u.IsDefined(typeof(IncreTableAttribute), false)) .Where(u => IsEntityForConfig(u, config)) .ToList(); @@ -686,6 +727,8 @@ public static class SqlSugarSetup // 获取所有业务表-初始化租户库表结构(排除系统表、日志表、特定库表) var entityTypes = App.EffectiveTypes .Where(u => !u.GetCustomAttributes().Any()) + .Where(u => RetainedSystemEntities.Contains(u.Name) || + (u.Namespace?.StartsWith("Evergreen.Health.Application.Health", StringComparison.Ordinal) ?? false)) .Where(u => !u.IsInterface && !u.IsAbstract && u.IsClass && u.IsDefined(typeof(SugarTable), false) && !u.IsDefined(typeof(SysTableAttribute), false) && !u.IsDefined(typeof(LogTableAttribute), false) && !u.IsDefined(typeof(TenantAttribute), false)).ToList(); if (entityTypes.Count == 0) return; diff --git a/Admin.NET.Web.Core/ProjectOptions.cs b/Admin.NET.Web.Core/ProjectOptions.cs index 7564181..b09238a 100644 --- a/Admin.NET.Web.Core/ProjectOptions.cs +++ b/Admin.NET.Web.Core/ProjectOptions.cs @@ -1,4 +1,4 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 +// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 // // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 // @@ -26,18 +26,13 @@ public static class ProjectOptions services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); - services.AddConfigurableOptions(); - services.AddConfigurableOptions(); - services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); - services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); - services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); services.AddConfigurableOptions(); @@ -48,4 +43,4 @@ public static class ProjectOptions return services; } -} \ No newline at end of file +} diff --git a/Admin.NET.Web.Core/Startup.cs b/Admin.NET.Web.Core/Startup.cs index 4929a68..3aceaa9 100644 --- a/Admin.NET.Web.Core/Startup.cs +++ b/Admin.NET.Web.Core/Startup.cs @@ -1,4 +1,4 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 +// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 // // 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 // @@ -76,12 +76,6 @@ public class Startup : AppStartup services.AddHttpRemote(); // 任务队列 services.AddTaskQueue(); - // 任务调度 - services.AddSchedule(options => - { - options.AddPersistence(); // 添加作业持久化器 - options.AddMonitor(); // 添加作业执行监视器 - }); // 脱敏检测 services.AddSensitiveDetection(); @@ -114,9 +108,6 @@ public class Startup : AppStartup options.JsonSerializerOptions.Converters.AddDateTimeTypeConverters("yyyy-MM-dd HH:mm:ss"); // 时间格式化 }); - // 三方授权登录OAuth - services.AddOAuth(); - // ElasticSearch services.AddElasticSearchClients(); @@ -200,7 +191,7 @@ public class Startup : AppStartup services.AddSingleton(); // 改为单例以保持缓存 services.AddTransient(); - // 模板引擎 + // 通用模板渲染(模板管理、库表实体/种子生成会使用) services.AddViewEngine(); // 即时通讯 @@ -318,9 +309,6 @@ public class Startup : AppStartup //// 启用HTTPS //app.UseHttpsRedirection(); - // 启用OAuth - app.UseOAuth(); - // 添加状态码拦截中间件 app.UseUnifyResultStatusCodes(); @@ -342,27 +330,6 @@ public class Startup : AppStartup app.UseClientRateLimiting(); app.UsePolicyRateLimit(); - // 任务调度看板 - app.UseScheduleUI(options => - { - options.RequestPath = "/schedule"; // 必须以 / 开头且不以 / 结尾 - options.DisableOnProduction = false; // 是否在生产环境中关闭 - options.DisplayEmptyTriggerJobs = true; // 是否显示空作业触发器的作业 - options.DisplayHead = false; // 是否显示页头 - options.DefaultExpandAllJobs = false; // 是否默认展开所有作业 - options.EnableDirectoryBrowsing = false; // 是否启用目录浏览 - options.Title = "定时任务看板"; // 自定义看板标题 - - options.LoginConfig.OnLoging = async (username, password, httpContext) => - { - var res = await httpContext.RequestServices.GetRequiredService().SwaggerSubmitUrl(new SpecificationAuth { UserName = username, Password = password }); - return res == 200; - }; - options.LoginConfig.DefaultUsername = ""; - options.LoginConfig.DefaultPassword = ""; - options.LoginConfig.SessionKey = "schedule_session_key"; // 登录客户端存储的 Session 键 - }); - app.UseInject(string.Empty, options => { foreach (var groupInfo in SpecificationDocumentBuilder.GetOpenApiGroups()) @@ -403,4 +370,4 @@ public class Startup : AppStartup pattern: "{controller=Home}/{action=Index}/{id?}"); }); } -} \ No newline at end of file +} diff --git a/Database/Migrations/20260921_RemoveUnusedExtensionTables.sql b/Database/Migrations/20260921_RemoveUnusedExtensionTables.sql new file mode 100644 index 0000000..13e8a61 --- /dev/null +++ b/Database/Migrations/20260921_RemoveUnusedExtensionTables.sql @@ -0,0 +1,55 @@ +-- 删除当前项目未启用的 Admin.NET 扩展模块数据表。 +-- 保留用户、角色、菜单、权限、组织、职位、租户、字典、配置、日志、文件和通知等通用表。 +SET FOREIGN_KEY_CHECKS = 0; +DROP TABLE IF EXISTS `SysAlipayAuthInfo`; +DROP TABLE IF EXISTS `SysAlipayTransaction`; +DROP TABLE IF EXISTS `SysWechatPay`; +DROP TABLE IF EXISTS `SysWechatRefund`; +DROP TABLE IF EXISTS `SysWechatUser`; +DROP TABLE IF EXISTS `SysLdap`; +DROP TABLE IF EXISTS `SysUserLdap`; +DROP TABLE IF EXISTS `SysCodeGen`; +DROP TABLE IF EXISTS `SysCodeGenConfig`; +DROP TABLE IF EXISTS `SysJobCluster`; +DROP TABLE IF EXISTS `SysJobDetail`; +DROP TABLE IF EXISTS `SysJobTrigger`; +DROP TABLE IF EXISTS `SysJobTriggerRecord`; +DROP TABLE IF EXISTS `SysPlugin`; +DROP TABLE IF EXISTS `SysPrint`; +DROP TABLE IF EXISTS `SysSchedule`; + +-- 清理扩展模块留下的菜单授权、菜单、配置和代码生成字典。 +DELETE FROM `SysRoleMenu` +WHERE `MenuId` IN ( + 1300200070101, 1300200070201, 1300200070301, 1300200070401, 1300200070501, + 1300200080101, 1300200080201, 1300200080301, 1300200080401, 1300200080501, 1300200080601, 1300200080701, 1300200080801, + 1300300060101, 1300300060201, 1300300060301, 1300300060401, 1300300060501, + 1300300110101, 1300300110201, 1300300110301, 1300300110401, 1300300110501, + 1300300120101, 1300300120201, 1300300120301, 1300300120401, 1300300120501, + 1300300150101, 1300300150201, 1300300150301, 1300300150401, 1300300150501, 1300300150601, + 1300500020101 +); +DELETE FROM `SysTenantMenu` +WHERE `MenuId` IN ( + 1300200070101, 1300200070201, 1300200070301, 1300200070401, 1300200070501, + 1300200080101, 1300200080201, 1300200080301, 1300200080401, 1300200080501, 1300200080601, 1300200080701, 1300200080801, + 1300300060101, 1300300060201, 1300300060301, 1300300060401, 1300300060501, + 1300300110101, 1300300110201, 1300300110301, 1300300110401, 1300300110501, + 1300300120101, 1300300120201, 1300300120301, 1300300120401, 1300300120501, + 1300300150101, 1300300150201, 1300300150301, 1300300150401, 1300300150501, 1300300150601, + 1300500020101 +); +DELETE FROM `SysMenu` +WHERE `Id` IN ( + 1300200070101, 1300200070201, 1300200070301, 1300200070401, 1300200070501, + 1300200080101, 1300200080201, 1300200080301, 1300200080401, 1300200080501, 1300200080601, 1300200080701, 1300200080801, + 1300300060101, 1300300060201, 1300300060301, 1300300060401, 1300300060501, + 1300300110101, 1300300110201, 1300300110301, 1300300110401, 1300300110501, + 1300300120101, 1300300120201, 1300300120301, 1300300120401, 1300300120501, + 1300300150101, 1300300150201, 1300300150301, 1300300150401, 1300300150501, 1300300150601, + 1300500020101 +); +DELETE FROM `SysConfig` WHERE `Code` = 'sys_domain_login'; +DELETE FROM `SysDictData` WHERE `DictTypeId` IN (1300000000111, 1300000000121, 1300000000131, 1300000000141, 1300000000151, 1300000000161); +DELETE FROM `SysDictType` WHERE `Id` IN (1300000000111, 1300000000121, 1300000000131, 1300000000141, 1300000000151, 1300000000161); +SET FOREIGN_KEY_CHECKS = 1; diff --git a/Evergreen.Health.Api/AlipayCrt/alipayPublicCert.crt b/Evergreen.Health.Api/AlipayCrt/alipayPublicCert.crt deleted file mode 100644 index e69de29..0000000 diff --git a/Evergreen.Health.Api/AlipayCrt/alipayRootCert.crt b/Evergreen.Health.Api/AlipayCrt/alipayRootCert.crt deleted file mode 100644 index e69de29..0000000 diff --git a/Evergreen.Health.Api/AlipayCrt/appPublicCert.crt b/Evergreen.Health.Api/AlipayCrt/appPublicCert.crt deleted file mode 100644 index e69de29..0000000 diff --git a/Evergreen.Health.Api/wwwroot/template/Dto.cs.vm b/Evergreen.Health.Api/wwwroot/template/Dto.cs.vm deleted file mode 100644 index 69a9459..0000000 --- a/Evergreen.Health.Api/wwwroot/template/Dto.cs.vm +++ /dev/null @@ -1,30 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -namespace @(Model.NameSpace); - -/// -/// @(Model.BusName)输出参数 -/// -public class @(Model.ClassName)Dto -{ -@foreach (var column in Model.TableField){ -if(column.EffectType == "ForeignKey"){ - @:/// - @:/// @column.ColumnComment - @:/// - @:public string @(column.PropertyName)FkColumn { get; set; } - @: -} -} -@foreach (var column in Model.TableField){ - @:/// - @:/// @column.ColumnComment - @:/// - @:public @column.NetType @column.PropertyName { get; set; } - @: -} -} diff --git a/Evergreen.Health.Api/wwwroot/template/Input.cs.vm b/Evergreen.Health.Api/wwwroot/template/Input.cs.vm deleted file mode 100644 index b972c9f..0000000 --- a/Evergreen.Health.Api/wwwroot/template/Input.cs.vm +++ /dev/null @@ -1,200 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Admin.NET.Core; -using System.ComponentModel.DataAnnotations; -using Magicodes.ExporterAndImporter.Core; -using Magicodes.ExporterAndImporter.Excel; - -namespace @(Model.NameSpace); - -/// -/// @(Model.BusName)基础输入参数 -/// -public class @(Model.ClassName)BaseInput -{ -@foreach (var column in Model.PrimaryKeyFieldList.Concat(Model.AddUpdateFieldList)){ - @:/// - @:/// @column.ColumnComment - @:/// - if (column.EffectType is "EnumSelector" or "DictSelector") { - @:[Dict(@(column.EffectType == "EnumSelector" ? $"nameof({column.DictTypeCode})" : $"\"{column.DictTypeCode}\""), AllowNullValue=true)] - } - if (column.WhetherRequired == "Y") { - @:[Required(ErrorMessage = "@(column.ColumnComment)不能为空")] - } - @:public virtual @Model.GetNullableNetType(column.NetType) @column.PropertyName { get; set; } - @: -} -} - -/// -/// @(Model.BusName)分页查询输入参数 -/// -public class Page@(Model.ClassName)Input : BasePageInput -{ -@foreach (var column in Model.TableField.Where(u => u.WhetherQuery == "Y")){ - if(column.NetType?.TrimEnd('?') == "DateTime" && column.QueryType == "~"){ - @:/// - @:/// @(column.ColumnComment)范围 - @:/// - @: public DateTime?[] @(column.PropertyName)Range { get; set; } - } else { - @:/// - @:/// @column.ColumnComment - @:/// - if (column.EffectType is "EnumSelector" or "DictSelector") { - @:[Dict(@(column.EffectType == "EnumSelector" ? $"nameof({column.DictTypeCode})" : $"\"{column.DictTypeCode}\""), AllowNullValue=true)] - } - @:public @Model.GetNullableNetType(column.NetType) @column.PropertyName { get; set; } - } - @: -} -@if (Model.ImportFieldList.Count > 0){ - var primaryKey = Model.PrimaryKeyFieldList.First(); - @:/// - @:/// 选中主键列表 - @:/// - @: public List<@(primaryKey.NetType)> SelectKeyList { get; set; } -} -} - -/// -/// @(Model.BusName)增加输入参数 -/// -public class Add@(Model.ClassName)Input -{ -@foreach (var column in Model.AddUpdateFieldList){ - @:/// - @:/// @column.ColumnComment - @:/// - if (column.EffectType is "EnumSelector" or "DictSelector") { - @:[Dict(@(column.EffectType == "EnumSelector" ? $"nameof({column.DictTypeCode})" : $"\"{column.DictTypeCode}\""), AllowNullValue=true)] - } - if (column.WhetherRequired == "Y") { - @:[Required(ErrorMessage = "@(column.ColumnComment)不能为空")] - } - if (column.NetType.TrimEnd('?').EndsWith("string") && column.ColumnLength > 0){ - @:[MaxLength(@column.ColumnLength, ErrorMessage = "@(column.ColumnComment)字符长度不能超过@(column.ColumnLength)")] - } - @:public @Model.GetNullableNetType(column.NetType) @column.PropertyName { get; set; } - @: -} -} - -/// -/// @(Model.BusName)删除输入参数 -/// -public class Delete@(Model.ClassName)Input -{ -@foreach (var column in Model.PrimaryKeyFieldList) { - @:/// - @:/// @column.ColumnComment - @:/// - @:[Required(ErrorMessage = "@(column.ColumnComment)不能为空")] - @:public @Model.GetNullableNetType(column.NetType) @column.PropertyName { get; set; } - @: -} -} - -/// -/// @(Model.BusName)更新输入参数 -/// -public class Update@(Model.ClassName)Input -{ - @foreach (var column in Model.PrimaryKeyFieldList.Concat(Model.AddUpdateFieldList)){ - @:/// - @:/// @column.ColumnComment - @:/// - if (column.EffectType is "EnumSelector" or "DictSelector") { - @:[Dict(@(column.EffectType == "EnumSelector" ? $"nameof({column.DictTypeCode})" : $"\"{column.DictTypeCode}\""), AllowNullValue=true)] - } - if (column.WhetherRequired == "Y" || column.ColumnKey == "True") { - @:[Required(ErrorMessage = "@(column.ColumnComment)不能为空")] - } - if (column.NetType.TrimEnd('?').EndsWith("string") && column.ColumnLength > 0){ - @:[MaxLength(@column.ColumnLength, ErrorMessage = "@(column.ColumnComment)字符长度不能超过@(column.ColumnLength)")] - } - @:public @Model.GetNullableNetType(column.NetType) @column.PropertyName { get; set; } - @: - } -} - -/// -/// @(Model.BusName)主键查询输入参数 -/// -public class QueryById@(Model.ClassName)Input : Delete@(Model.ClassName)Input -{ -} - -@if (Model.DropdownFieldList.Count > 0) { -@:/// -@:/// 下拉数据输入参数 -@:/// -@:public class DropdownData@(Model.ClassName)Input -@:{ - @:/// - @:/// 是否用于分页查询 - @:/// - @:public bool FromPage { get; set; } -@:} -@: -} -@if (Model.HasSetStatus) { -@:/// -@:/// 设置状态输入参数 -@:/// -@:public class Set@(Model.ClassName)StatusInput : BaseStatusInput -@:{ - @foreach (var column in Model.PrimaryKeyFieldList.Where(u => u.PropertyName != "Id")) { - @:/// - @:/// @column.ColumnComment - @:/// - @:[Required(ErrorMessage = "@(column.ColumnComment)不能为空")] - @:public @Model.GetNullableNetType(column.NetType) @column.PropertyName { get; set; } - @: - } -@:} -@: -} -@if (Model.ImportFieldList.Count > 0){ -@:/// -@:/// @(Model.BusName)数据导入实体 -@:/// -@:[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)] -@:public class Import@(Model.ClassName)Input : BaseImportInput -@:{ - foreach (var column in Model.ImportFieldList){ - var headerName = (column.WhetherRequired == "Y" ? "*" : "") + column.ColumnComment; - if(column.EffectType == "ForeignKey" || column.EffectType == "ApiTreeSelector" || column.EffectType == "DictSelector") { - @:/// - @:/// @column.ColumnComment 关联值 - @:/// - @:[ImporterHeader(IsIgnore = true)] - @:[ExporterHeader(IsIgnore = true)] - @:public @Model.GetNullableNetType(column.NetType) @column.PropertyName { get; set; } - @: - @:/// - @:/// @column.ColumnComment 文本 - @:/// - if (column.EffectType == "DictSelector") { - @:[Dict(@($"\"{column.DictTypeCode}\""))] - } - @:[ImporterHeader(Name = "@(headerName)")] - @:[ExporterHeader("@(headerName)", Format = "@", Width = 25, IsBold = true)] - @:public string @column.ExtendedPropertyName { get; set; } - } else { - @:/// - @:/// @column.ColumnComment - @:/// - @:[ImporterHeader(Name = "@(headerName)")] - @:[ExporterHeader("@(headerName)", Format = "@", Width = 25, IsBold = true)] - @:public @Model.GetNullableNetType(column.NetType) @column.PropertyName { get; set; } - } - @: - } -@:} -} \ No newline at end of file diff --git a/Evergreen.Health.Api/wwwroot/template/Output.cs.vm b/Evergreen.Health.Api/wwwroot/template/Output.cs.vm deleted file mode 100644 index e1f2c11..0000000 --- a/Evergreen.Health.Api/wwwroot/template/Output.cs.vm +++ /dev/null @@ -1,71 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! -using Magicodes.ExporterAndImporter.Core; -namespace @(Model.NameSpace); - -/// -/// @(Model.BusName)输出参数 -/// -public class @(Model.ClassName)Output -{ - @foreach (var column in Model.TableField){ - @:/// - @:/// @column.ColumnComment - @:/// - @:public @column.NetType @(column.PropertyName) { get; set; } - if(column.EffectType == "ForeignKey" || column.EffectType == "ApiTreeSelector") { - @: - @:/// - @:/// @(column.ColumnComment) 描述 - @:/// - @:public string @(column.ExtendedPropertyName) { get; set; } - }else if(column.EffectType == "Upload" || column.EffectType == "Upload_SingleFile"){ - @: - @:/// - @:/// @(column.ColumnComment) 附件信息 - @:/// - @:public SysFile @(column.ExtendedPropertyName) { get; set; } - } - @: - } -} -@if (Model.ApiTreeFieldList.Count > 0) { -foreach(var column in Model.ApiTreeFieldList) { -@:/// -@:/// @column.ColumnComment 树选择器输出参数 -@:/// -@:public class Tree@(column.PropertyNameTrimEndId)Output : @(Model.ClassName) -@:{ - @:/// - @:/// 节点值 - @:/// - @:public @column.NetType Value { get; set; } - @: - @:/// - @:/// 节点文本 - @:/// - @:public string Label { get; set; } - @: - @:/// - @:/// 子集数据 - @:/// - @:public List Children { get; set; } -@:} -@: -} -} -@if (Model.ImportFieldList.Count > 0) { -@: -@:/// -@:/// @(Model.BusName)数据导入模板实体 -@:/// -@:public class Export@(Model.ClassName)Output : Import@(Model.ClassName)Input -@:{ -@: [ImporterHeader(IsIgnore = true)] -@: [ExporterHeader(IsIgnore = true)] -@: public override string Error { get; set; } -@:} -} \ No newline at end of file diff --git a/Evergreen.Health.Api/wwwroot/template/SeedData.cs.vm b/Evergreen.Health.Api/wwwroot/template/SeedData.cs.vm index 2101c5b..6c6dbcc 100644 --- a/Evergreen.Health.Api/wwwroot/template/SeedData.cs.vm +++ b/Evergreen.Health.Api/wwwroot/template/SeedData.cs.vm @@ -26,4 +26,4 @@ public class @(Model.SeedDataName) : ISqlSugarEntitySeedData<@(Model.EntityName) } }; } -} \ No newline at end of file +} diff --git a/Evergreen.Health.Api/wwwroot/template/Service.cs.vm b/Evergreen.Health.Api/wwwroot/template/Service.cs.vm deleted file mode 100644 index 7005846..0000000 --- a/Evergreen.Health.Api/wwwroot/template/Service.cs.vm +++ /dev/null @@ -1,421 +0,0 @@ -// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。 -// -// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。 -// -// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任! - -using Admin.NET.Core.Service; -using Microsoft.AspNetCore.Http; -using Furion.DatabaseAccessor; -using Furion.FriendlyException; -using Mapster; -using SqlSugar; -using System.ComponentModel; -using System.ComponentModel.DataAnnotations; -using @(Model.NameSpace).Entity; -namespace @(Model.NameSpace); - -/// -/// @(Model.BusName)服务 🧩 -/// -[ApiDescriptionSettings(@(Model.ProjectLastName)Const.GroupName, Order = 100)] -public partial class @(Model.ClassName)Service : IDynamicApiController, ITransient -{ - private readonly SqlSugarRepository<@(Model.ClassName)> _@(Model.LowerClassName)Rep; - @foreach(var kv in Model.InjectServiceMap) { - @:private readonly @(kv.Key) _@(kv.Value); - } - - public @(Model.ClassName)Service(SqlSugarRepository<@(Model.ClassName)> @(Model.LowerClassName)Rep@(Model.InjectServiceArgs)) - { - _@(Model.LowerClassName)Rep = @(Model.LowerClassName)Rep; - @foreach(var kv in Model.InjectServiceMap) { - @:_@(kv.Value) = @(kv.Value); - } - } - - /// - /// 分页查询@(Model.BusName) 🔖 - /// - /// - /// - [DisplayName("分页查询@(Model.BusName)")] - [ApiDescriptionSettings(Name = "Page"), HttpPost] - public async Task> Page(Page@(Model.ClassName)Input input) - { - input.Keyword = input.Keyword?.Trim(); - var query = _@(Model.LowerClassName)Rep.AsQueryable() - @{ - string joinTableName = "u"; - var queryFields = Model.TableField.Where(u => u.WhetherQuery == "Y"); - // 关键字模糊查询 - if (queryFields.Any(u => u.QueryType == "like")) { - @:.WhereIF(!string.IsNullOrWhiteSpace(input.Keyword), u => @string.Join(" || ", queryFields.Where(u => u.QueryType == "like").Select(col => $"u.{col.PropertyName}.Contains(input.Keyword)"))) - } - - // 单字段模糊查询 - foreach(var column in queryFields.Where(u => u.QueryType == "like")) { - @:.WhereIF(!string.IsNullOrWhiteSpace(input.@(column.PropertyName)), u => u.@(column.PropertyName).Contains(input.@(column.PropertyName).Trim())) - } - - // 字段组合查询 - foreach(var column in queryFields.Where(u => u.QueryType != "like")) { - if (column.NetType.TrimEnd('?') == "string") { - @:.WhereIF(!string.IsNullOrWhiteSpace(input.@(column.PropertyName)), u => u.@(column.PropertyName) == input.@(column.PropertyName)) - } else if (column.NetType.TrimEnd('?') == "int" || column.NetType.TrimEnd('?') == "long") { - @:.WhereIF(input.@(column.PropertyName) != null, u => u.@(column.PropertyName) @(column.QueryType) input.@(column.PropertyName)) - } else if (column.NetType.TrimEnd('?').EndsWith("Enum")) { - @:.WhereIF(input.@(column.PropertyName).HasValue, u => u.@(column.PropertyName) == input.@(column.PropertyName)) - } else if (column.NetType.TrimEnd('?') == "DateTime" && column.QueryType == "~") { - @:.WhereIF(input.@(column.PropertyName)Range?.Length == 2, u => u.@(column.PropertyName) >= input.@(column.PropertyName)Range[0] && u.@(column.PropertyName) <= input.@(column.PropertyName)Range[1]) - } else if (column.NetType.TrimEnd('?').EndsWith("bool")) { - @:.WhereIF(input.@(column.PropertyName).HasValue, u => u.@(column.PropertyName) == input.@(column.PropertyName)) - } - - } - // 联表 - if (Model.HasJoinTable) { - foreach (var column in Model.TableField.Where(u => u.EffectType == "ForeignKey" || u.EffectType == "ApiTreeSelector")){ - joinTableName += ", " + column.LowerPropertyNameTrimEndId; - @:.LeftJoin<@column.FkEntityName>((@joinTableName) => u.@(column.PropertyName) == @(column.LowerPropertyNameTrimEndId).@(column.FkLinkColumnName)) - } - // 查询列表 - @:.Select((@joinTableName) => new @(Model.ClassName)Output - @:{ - foreach (var column in Model.TableField) { - if(column.NetType.TrimEnd('?').EndsWith("Enum")) { - @:@(column.PropertyName) = (@(column.NetType))u.@(column.PropertyName), - }else{ - @:@(column.PropertyName) = u.@(column.PropertyName), - } - if (column.EffectType == "ForeignKey" || column.EffectType == "ApiTreeSelector") { - @:@(column.ExtendedPropertyName) = @column.GetDisplayColumn(column.LowerPropertyNameTrimEndId), - } - } - @:}); - } else { - // 无联表 - @:.Select<@(Model.ClassName)Output>(); - } - } - return await query.OrderBuilder(input).ToPagedListAsync(input.Page, input.PageSize); - } - - /// - /// 获取@(Model.BusName)详情 ℹ️ - /// - /// - /// - [DisplayName("获取@(Model.BusName)详情")] - [ApiDescriptionSettings(Name = "Detail"), HttpGet] - public async Task<@(Model.ClassName)> Detail([FromQuery] QueryById@(Model.ClassName)Input input) - { - return await _@(Model.LowerClassName)Rep.GetFirstAsync(u => @Model.PrimaryKeysFormat(" && ", "u.{0} == input.{0}")); - } - - /// - /// 增加@(Model.BusName) ➕ - /// - /// - /// - [DisplayName("增加@(Model.BusName)")] - [ApiDescriptionSettings(Name = "Add"), HttpPost] - public async Task Add(Add@(Model.ClassName)Input input) - { - var entity = input.Adapt<@(Model.ClassName)>(); - @foreach (var config in Model.TableUniqueConfigList) { - @:if (await _@(Model.LowerClassName)Rep.IsAnyAsync(u => @(string.Join(" && ", @config.Columns.Select(x => $"u.{x} != null && u.{x} == input.{x}"))))) throw Oops.Oh("@(config.Message)已存在"); - } - return await _@(Model.LowerClassName)Rep.InsertAsync(entity) ? entity.Id : 0; - } - - /// - /// 更新@(Model.BusName) ✏️ - /// - /// - /// - [DisplayName("更新@(Model.BusName)")] - [ApiDescriptionSettings(Name = "Update"), HttpPost] - public async Task Update(Update@(Model.ClassName)Input input) - { - @{ - var primaryKeyWhere = Model.PrimaryKeysFormat(" && ", "u.{0} != input.{0}"); - foreach (var config in Model.TableUniqueConfigList) { - @:if (await _@(Model.LowerClassName)Rep.IsAnyAsync(u => @primaryKeyWhere && @config.Format(" && ", "u.{0} != null && u.{0} == input.{0}"))) throw Oops.Oh("@(config.Message)已存在"); - } - } - var entity = input.Adapt<@(Model.ClassName)>(); - await _@(Model.LowerClassName)Rep.AsUpdateable(entity) - @if (Model.IgnoreUpdateFieldList.Count > 0) { - @:.IgnoreColumns(u => new { - foreach (var column in Model.IgnoreUpdateFieldList) { - @:u.@(column.PropertyName), - } - @:}) - } - .ExecuteCommandAsync(); - } - - /// - /// 删除@(Model.BusName) ❌ - /// - /// - /// - [DisplayName("删除@(Model.BusName)")] - [ApiDescriptionSettings(Name = "Delete"), HttpPost] - public async Task Delete(Delete@(Model.ClassName)Input input) - { - var entity = await _@(Model.LowerClassName)Rep.GetFirstAsync(u => @Model.PrimaryKeysFormat(" && ", "u.{0} == input.{0}")) ?? throw Oops.Oh(ErrorCodeEnum.D1002); -@{ - @if(Model.TableField.Where(x => x.ColumnName == "IsDelete").Any()) - { - @:await _@(Model.LowerClassName)Rep.FakeDeleteAsync(entity); //假删除 - } - else{ - @:await _@(Model.LowerClassName)Rep.DeleteAsync(entity); //真删除 - } -} - } - - /// - /// 批量删除@(Model.BusName) ❌ - /// - /// - /// - [DisplayName("批量删除@(Model.BusName)")] - [ApiDescriptionSettings(Name = "BatchDelete"), HttpPost] - public async Task BatchDelete([Required(ErrorMessage = "主键列表不能为空")]List input) - { - var exp = Expressionable.Create<@(Model.ClassName)>(); - foreach (var row in input) exp = exp.Or(it => @Model.PrimaryKeysFormat(" && ", "it.{0} == row.{0}")); - var list = await _@(Model.LowerClassName)Rep.AsQueryable().Where(exp.ToExpression()).ToListAsync(); -@{ - @if(Model.TableField.Where(x => x.ColumnName == "IsDelete").Any()) - { - @:return await _@(Model.LowerClassName)Rep.FakeDeleteAsync(list); //假删除 - } - else{ - @:return await _@(Model.LowerClassName)Rep.Context.Deleteable(list).ExecuteCommandAsync(); //真删除--返回受影响的行数 - } -} - } - @if (Model.HasSetStatus) { - @: - @:/// - @:/// 设置@(Model.BusName)状态 🚫 - @:/// - @:/// - @:/// - @:[DisplayName("设置@(Model.BusName)状态")] - @:[ApiDescriptionSettings(Name = "SetStatus"), HttpPost] - @:public async Task Set@(Model.ClassName)Status(Set@(Model.ClassName)StatusInput input) - @:{ - @:await _@(Model.LowerClassName)Rep.AsUpdateable().SetColumns(u => u.Status, input.Status).Where(u => @Model.PrimaryKeysFormat(" && ", "u.{0} == input.{0}")).ExecuteCommandAsync(); - @:} - } - @foreach (var column in Model.UploadFieldList) { - @: - @:/// - @:/// 上传@(column.ColumnComment) ⬆️ - @:/// - @:/// - @:/// - @:[DisplayName("上传@(column.ColumnComment)")] - @:[ApiDescriptionSettings(Name = "Upload@(column.PropertyName)"), HttpPost] - @:public async Task Upload@(column.PropertyName)([Required] IFormFile file) - @:{ - @:return await _sysFileService.UploadFile(new UploadFileInput { File = file },"upload/@(Model.ClassName)/@(column.PropertyName)"); - @:} - } - @if (Model.DropdownFieldList.Count > 0) { - @: - @:/// - @:/// 获取下拉列表数据 🔖 - @:/// - @:/// - @:[DisplayName("获取下拉列表数据")] - @:[ApiDescriptionSettings(Name = "DropdownData"), HttpPost] - @:public async Task> DropdownData(DropdownData@(Model.ClassName)Input input) - @:{ - foreach (var column in Model.DropdownFieldList) { - @:var @(column.LowerPropertyName)Data = await _@(Model.LowerClassName)Rep.Context.Queryable<@(column.FkEntityName)>() - if (column.EffectType != "ApiTreeSelector") { - @:.InnerJoinIF<@Model.ClassName>(input.FromPage, (u, r) => u.@(column.FkLinkColumnName) == r.@(column.PropertyName)) - } - if (column.EffectType != "ApiTreeSelector") { - @:.Select(u => new { - @:Value = u.@(column.FkLinkColumnName), - @:Label = @column.GetDisplayColumn("u") - @:}).ToListAsync(); - } else { - @:.Select(u => new Tree@(column.PropertyNameTrimEndId)Output { - @:Value = u.@(column.FkLinkColumnName), - @:Label = @column.GetDisplayColumn("u") - @:}, true).ToTreeAsync(u => u.Children, u => u.@(column.PidColumn), @(column.WhetherRequired == "Y" ? "0" : "null")); - } - } - @:return new Dictionary - @:{ - foreach (var column in Model.DropdownFieldList) { - @:{ "@(column.LowerPropertyName)", @(column.LowerPropertyName)Data }, - } - @:}; - @:} - } - @if (Model.ImportFieldList.Count > 0) { - @: - @:/// - @:/// 导出@(Model.BusName)记录 🔖 - @:/// - @:/// - @:/// - @:[DisplayName("导出@(Model.BusName)记录")] - @:[ApiDescriptionSettings(Name = "Export"), HttpPost, NonUnify] - @:public async Task Export(Page@(Model.ClassName)Input input) - @:{ - @:var list = (await Page(input)).Items?.Adapt>() ?? new(); - @:if (input.SelectKeyList?.Count > 0) list = list.Where(x => input.SelectKeyList.Contains(x.@(Model.PrimaryKeyFieldList.First().PropertyName))).ToList(); - var dictFields = Model.TableField.Where(x => x.WhetherImport == "Y" && x.EffectType == "DictSelector") ?? default; - foreach (var column in dictFields) { - @:var @(column.LowerPropertyName)DictMap = _sysDictTypeService.GetDataList(new GetDataDictTypeInput { Code = "@(column.DictTypeCode)" }).Result.ToDictionary(x => x.Value, x => x.Label); - } - if (dictFields.Count() > 0) { - @:list.ForEach(e => { - foreach (var column in dictFields) { - @:e.@(column.ExtendedPropertyName) = @(column.LowerPropertyName)DictMap.GetValueOrDefault(e.@(column.PropertyName) ?? "", e.@(column.PropertyName)); - } - @:}); - } - @:return ExcelHelper.ExportTemplate(list, "@(Model.BusName)导出记录"); - @:} - @: - @:/// - @:/// 下载@(Model.BusName)数据导入模板 ⬇️ - @:/// - @:/// - @:[DisplayName("下载@(Model.BusName)数据导入模板")] - @:[ApiDescriptionSettings(Name = "Import"), HttpGet, NonUnify] - @:public IActionResult DownloadTemplate() - @:{ - var fieldsList = Model.ImportFieldList.Where(u => u.EffectType == "ForeignKey" || u.EffectType == "ApiTreeSelector").ToList(); - if (fieldsList.Any()) { - @:return ExcelHelper.ExportTemplate(new List(), "@(Model.BusName)导入模板", (_, info) => - @:{ - foreach (var column in fieldsList) { - var columnList = column.FkDisplayColumnList.Select(n => $"{{u.{n}}}").ToList(); - @:if (nameof(Export@(Model.ClassName)Output.@column.ExtendedPropertyName) == info.Name) return _@(Model.LowerClassName)Rep.Context.Queryable<@(column.FkEntityName)>().Select(u => $"@(string.Join("-", columnList))").Distinct().ToList(); - } - @:return null; - @:}); - } else { - @:return ExcelHelper.ExportTemplate(new List(), "@(Model.BusName)导入模板"); - } - @:} - @: - @:private static readonly object _@(Model.LowerClassName)ImportLock = new object(); - @:/// - @:/// 导入@(Model.BusName)记录 💾 - @:/// - @:/// - @:[DisplayName("导入@(Model.BusName)记录")] - @:[ApiDescriptionSettings(Name = "Import"), HttpPost, NonUnify, UnitOfWork] - @:public IActionResult ImportData([Required] IFormFile file) - @:{ - @:lock (_@(Model.LowerClassName)ImportLock) - @:{ - var dictTableField = Model.TableField.Where(x => x.WhetherImport == "Y" && x.EffectType == "DictSelector") ?? default; - foreach (var column in dictTableField){ - @:var @(column.LowerPropertyName)DictMap = _sysDictTypeService.GetDataList(new GetDataDictTypeInput { Code = "@(column.DictTypeCode)" }).Result.ToDictionary(x => x.Label!, x => x.Value); - } - - @:var stream = ExcelHelper.ImportData(file, (list, markerErrorAction) => - @:{ - @:_sqlSugarClient.Utilities.PageEach(list, 2048, pageItems => - @:{ - foreach (var column in Model.ImportFieldList.Where(u => u.EffectType == "ForeignKey" || u.EffectType == "ApiTreeSelector")) { - @:// 链接 @(column.ColumnComment) - @:var @(column.LowerPropertyName)LabelList = pageItems.Where(x => x.@column.ExtendedPropertyName != null).Select(x => x.@column.ExtendedPropertyName).Distinct().ToList(); - @:if (@(column.LowerPropertyName)LabelList.Any()) { - var columnList = column.FkDisplayColumnList.Select(n => $"{{u.{n}}}").ToList(); - @:var @(column.LowerPropertyName)LinkMap = _@(Model.LowerClassName)Rep.Context.Queryable<@(column.FkEntityName)>().Where(u => @(column.LowerPropertyName)LabelList.Contains($"@(string.Join("-", columnList))")).ToList().ToDictionary(u => $"@(string.Join("-", columnList))", u => u.@(column.FkLinkColumnName) as @(column.NetType.TrimEnd('?') == "long" ? "long?": column.NetType)); - @:pageItems.ForEach(e => { - @:e.@(column.PropertyName) = @(column.LowerPropertyName)LinkMap.GetValueOrDefault(e.@column.ExtendedPropertyName ?? ""); - @:if (e.@(column.PropertyName) == null) e.Error = "@(column.ColumnComment)链接失败"; - @:}); - @:} - } - - if (dictTableField.Any()) { - @: - @:// 映射字典值 - @:foreach(var item in pageItems) { - @:System.Text.StringBuilder sbError = new System.Text.StringBuilder(); - foreach (var column in dictTableField) { - @:if (!string.IsNullOrWhiteSpace(item.@(column.ExtendedPropertyName))) { - @:item.@(column.PropertyName) = @(column.LowerPropertyName)DictMap.GetValueOrDefault(item.@(column.ExtendedPropertyName)); - @:if (item.@(column.PropertyName) == null) sbError.AppendLine("@(column.ColumnComment)字典映射失败"); - @:} - } - @:item.Error = sbError.ToString(); - @:} - } - - @: - @:// 校验并过滤必填基本类型为null的字段 - @:var rows = pageItems.Where(x => { - @:if (!string.IsNullOrWhiteSpace(x.Error)) return false; - foreach (var column in Model.ImportFieldList.Where(x => x.WhetherRequired == "Y" && Regex.IsMatch(x.NetType, "(int|long|double|float|bool|Enum[?]?)"))){ - @:if (x.@(column.PropertyName) == null){ - @:x.Error = "@(column.ColumnComment)不能为空"; - @:return false; - @:} - } - @:return true; - @:}).Adapt>(); - - @{var updateFields = new List();} - @: - @:var storageable = _@(Model.LowerClassName)Rep.Context.Storageable(rows) - foreach (var column in Model.ImportFieldList){ - if (column.WhetherImport == "Y"){ - updateFields.Add(column.PropertyName); - } - if (column.WhetherRequired == "Y"){ - if(column.NetType.TrimEnd('?') == "string"){ - @:.SplitError(it => string.IsNullOrWhiteSpace(it.Item.@(column.PropertyName)), "@(column.ColumnComment)不能为空") - } else if(column.NetType.EndsWith('?') == true){ - @:.SplitError(it => it.Item.@(column.PropertyName) == null, "@(column.ColumnComment)不能为空") - }} - if (column.NetType?.TrimEnd('?') == "string" && column.ColumnLength > 0){ - @:.SplitError(it => it.Item.@(column.PropertyName)?.Length > @(column.ColumnLength), "@(column.ColumnComment)长度不能超过@(column.ColumnLength)个字符") - }} - if(Model.TableUniqueConfigList.Count>0){ - foreach (var config in Model.TableUniqueConfigList) { - @:.WhereColumns(it => new { @config.Format(", ", "it.{0}") }) - } - @:.SplitInsert(it=> !it.Any()) - @:.SplitUpdate(it=> it.Any()) - }else{ - @:.SplitInsert(_=> true) // 没有设置唯一键代表插入所有数据 - } - @:.ToStorage(); - @: - @:storageable.AsInsertable.ExecuteCommand();// 不存在插入 - @:storageable.AsUpdateable.UpdateColumns(it => new - @:{ - @foreach (var field in updateFields) - { - @: it.@(field), - } - @:}).ExecuteCommand();// 存在更新 - @: - @:// 标记错误信息 - @:markerErrorAction.Invoke(storageable, pageItems, rows); - @:}); - @:}); - @: - @:return stream; - @:} - @:} - } -} diff --git a/Evergreen.Health.Api/wwwroot/template/api.ts.vm b/Evergreen.Health.Api/wwwroot/template/api.ts.vm deleted file mode 100644 index 3419568..0000000 --- a/Evergreen.Health.Api/wwwroot/template/api.ts.vm +++ /dev/null @@ -1,59 +0,0 @@ -import {useBaseApi} from '/@@/api/base'; - -// @(Model.BusName)接口服务 -export const use@(Model.ClassName)Api = () => { - const baseApi = useBaseApi("@(Model.LowerClassName)"); - return { - // 分页查询@(Model.BusName) - page: baseApi.page, - // 查看@(Model.BusName)详细 - detail: baseApi.detail, - // 新增@(Model.BusName) - add: baseApi.add, - // 更新@(Model.BusName) - update: baseApi.update, - @if (Model.HasSetStatus) { - @:// 设置@(Model.BusName)状态 - @:setStatus: baseApi.setStatus, - } - // 删除@(Model.BusName) - delete: baseApi.delete, - // 批量删除@(Model.BusName) - batchDelete: baseApi.batchDelete, - @if (Model.ImportFieldList.Count > 0) { - @:// 导出@(Model.BusName)数据 - @:exportData: baseApi.exportData, - @:// 导入@(Model.BusName)数据 - @:importData: baseApi.importData, - @:// 下载@(Model.BusName)数据导入模板 - @:downloadTemplate: baseApi.downloadTemplate, - } - @if (Model.DropdownFieldList.Count > 0) { - @:// 获取下拉列表数据 - @:getDropdownData: (fromPage: Boolean = false, cancel: boolean = false) => baseApi.dropdownData({ fromPage }, cancel), - } - @foreach (var column in Model.UploadFieldList) { - @:// 上传@(column.ColumnComment) - @:upload@(column.PropertyName): (params: any, cancel: boolean = false) => baseApi.uploadFile(params, 'upload@(column.PropertyName)', cancel), - } - } -} - -// @(Model.BusName)实体 -export interface @(Model.ClassName) { -@{ -var typeMap = new Dictionary() { - { "bool", "boolean" }, - { "int", "number" }, - { "long", "number" }, - { "double", "number" }, - { "float", "number" }, - { "decimal", "number" }, - { "byte", "number" } -}; -foreach (var column in Model.TableField) { - @:// @(column.ColumnComment) - @:@(column.LowerPropertyName)@(column.WhetherRequired == "Y" ? "?" : ""): @(Regex.IsMatch("@(column.DataType.Trim('?'))", ".*?Enum") ? "number" : typeMap.GetValueOrDefault(column.DataType.Trim('?').ToLower(), "string")); -} -} -} \ No newline at end of file diff --git a/Evergreen.Health.Api/wwwroot/template/data.data.ts.vm b/Evergreen.Health.Api/wwwroot/template/data.data.ts.vm deleted file mode 100644 index 3308776..0000000 --- a/Evergreen.Health.Api/wwwroot/template/data.data.ts.vm +++ /dev/null @@ -1,159 +0,0 @@ -import { h } from 'vue'; -import { BasicColumn, FormSchema } from '/@@/components/Table'; -@foreach (var column in Model.TableField){ -if(column.EffectType == "Upload" || column.EffectType == "Upload_SingleFile"){ -@:import { uploadFile } from '/@@/api/sys/admin'; -}else if(column.EffectType == "ForeignKey"){ -@:import { get@(column.FkEntityName)Dropdown } from '/@@/api/main/@(Model.ClassName)'; -}else if(column.EffectType == "DictSelector"){ -@:import { getDataList } from '/@@/api/sys/admin'; -}else if(column.EffectType == "ApiTreeSelector"){ -@:import { get@(column.FkEntityName)Tree } from '/@@/api/main/@(Model.ClassName)'; -}else if(column.EffectType == "ConstSelector"){ -@:import { codeToName, getSelector } from '/@@/utils/helper/constSelectorHelper'; -}else if(column.EffectType == "Switch"){ -@:import { Switch } from 'ant-design-vue'; -} -} -export const columns: BasicColumn[] = [ - @foreach (var column in Model.TableField){ - if(column.WhetherTable == "Y"){ - @:{ - @:title: '@column.ColumnComment', - @:dataIndex: '@column.LowerPropertyName', - @:sorter: true, -if(column.EffectType == "Upload" || column.EffectType == "Upload_SingleFile"){ - @:slots: { customRender: '@(column.LowerPropertyName)' }, -}else if(column.EffectType == "ForeignKey"){ - @:customRender: ({ record }) => { - @:return record.fk@(column.PropertyName).@(column.LowerFkDisplayColumnsList?.First()); - @:}, -}else if(column.EffectType == "Switch"){ - @:customRender: ({ record }) => { - @:return h(@(column.EffectType), { checked: record.@(column.LowerPropertyName) }); - @:}, -}else if(column.EffectType == "ConstSelector"){ - @:customRender: ({ record }) => { - @:return codeToName(record.@(column.LowerPropertyName), '@(column.DictTypeCode)'); - @:}, -} - @:}, - } - - } -]; - -export const searchFormSchema: FormSchema[] = [ -@foreach (var column in Model.WhetherQueryList){ - @:{ - @:field: '@column.LowerPropertyName', - @:label: '@column.ColumnComment', - @:colProps: { span: 8 }, -if(column.EffectType == "ForeignKey"){ - @:component: 'ApiSelect', - @:componentProps: { - @:api: get@(column.FkEntityName)Dropdown, - @:labelField: 'label', - @:valueField: 'value', - @:}, -}else if(column.EffectType == "DictSelector"){ - @:component: 'ApiSelect', - @:componentProps: { - @:api: getDataList, - @:params: '@(column.DictTypeCode)', - @:fieldNames: { - @:label: 'label', - @:value: 'value', - @:}, - @:}, -}else if(column.EffectType == "ConstSelector"){ - @:component: 'Select', - @:componentProps: { - @:options: getSelector('@(column.DictTypeCode)'), - @:fieldNames: { - @:label: 'name', - @:value: 'code', - @:}, - @:}, -}else if(column.EffectType == "ApiTreeSelector"){ - @:component: '@(column.EffectType)', - @:componentProps: { - @:api: get@(column.FkEntityName)Tree, - @:}, -} -else if(column.NetType?.TrimEnd('?') == "DateTime" && column.QueryType == "~"){ - @:component: 'RangePicker', - @:componentProps: { - @: valueFormat:"YYYY-MM-DD" - @:}, -} else { - @:component: 'Input', -} - - @:}, -} -]; - -export const formSchema: FormSchema[] = [ - @foreach (var column in Model.TableField){ - @:{ - @:label: '@column.ColumnComment', - @:field: '@column.LowerPropertyName', -if(column.EffectType == "ForeignKey"){ - @:component: 'ApiSelect', - @:componentProps: { - @:api: get@(column.FkEntityName)Dropdown, - @:labelField: 'label', - @:valueField: 'value', - @:}, -}else if(column.EffectType == "DictSelector"){ - @:component: 'ApiSelect', - @:componentProps: { - @:api: getDataList, - @:params: '@(column.DictTypeCode)', - @:fieldNames: { - @:label: 'label', - @:value: 'value', - @:}, - @:}, -}else if(column.EffectType == "ConstSelector"){ - @:component: 'Select', - @:componentProps: { - @:options: getSelector('@(column.DictTypeCode)'), - @:fieldNames: { - @:label: 'name', - @:value: 'code', - @:}, - @:}, -}else if(column.EffectType == "ApiTreeSelector"){ - @:component: '@(column.EffectType)', - @:componentProps: { - @:api: get@(column.FkEntityName)Tree, - @:}, -}else if(column.EffectType == "Switch"){ - @:component: '@(column.EffectType)', - @:componentProps: { - @:checkedChildren: '是', - @:unCheckedChildren: '否', - @:}, -}else{ - @:component: '@column.EffectType', -} - if(column.WhetherRequired == "Y"){ - @:required: true, - }else{ - @:required: false, - } - if(column.EffectType == "Upload" || column.EffectType == "Upload_SingleFile"){ - @:componentProps: { - @:maxNumber: 1, - @:api: uploadFile, - @:}, - } - if(column.LowerPropertyName == "id"){ - @:show: false, - } - @:colProps: { span: 12 }, - @:}, - } -]; diff --git a/Evergreen.Health.Api/wwwroot/template/dataModal.vue.vm b/Evergreen.Health.Api/wwwroot/template/dataModal.vue.vm deleted file mode 100644 index 734b41d..0000000 --- a/Evergreen.Health.Api/wwwroot/template/dataModal.vue.vm +++ /dev/null @@ -1,71 +0,0 @@ - - diff --git a/Evergreen.Health.Api/wwwroot/template/editDialog.vue.vm b/Evergreen.Health.Api/wwwroot/template/editDialog.vue.vm deleted file mode 100644 index 8eddc15..0000000 --- a/Evergreen.Health.Api/wwwroot/template/editDialog.vue.vm +++ /dev/null @@ -1,198 +0,0 @@ - - - \ No newline at end of file diff --git a/Evergreen.Health.Api/wwwroot/template/index.vue.vm b/Evergreen.Health.Api/wwwroot/template/index.vue.vm deleted file mode 100644 index e5da3c0..0000000 --- a/Evergreen.Health.Api/wwwroot/template/index.vue.vm +++ /dev/null @@ -1,326 +0,0 @@ - - - \ No newline at end of file diff --git a/Evergreen.Health.Application/Configuration/Alipay.json b/Evergreen.Health.Application/Configuration/Alipay.json deleted file mode 100644 index 5aa74e1..0000000 --- a/Evergreen.Health.Application/Configuration/Alipay.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json", - - // 支付宝支付配置,文档地址:https://openhome.alipay.com/develop/sandbox/app - "Alipay": { - "ServerUrl": "https://openapi-sandbox.dl.alipaydev.com/gateway.do", // 支付宝网关地址 - "WebsocketUrl": "openchannel-sandbox.dl.alipaydev.com", // websocket服务地址 - //"AuthUrl": "https://openauth.alipay.com/oauth2/publicAppAuthorize.htm", // 正式环境授权回调地址 - "AuthUrl": "https://openauth-sandbox.dl.alipaydev.com/oauth2/publicAppAuthorize.htm", // 沙箱环境授权回调地址 - "AppAuthUrl": "http://xxxxxxxxxx", // 应用授权回调地址 - "NotifyUrl": "http://xxxxxxxxx/api/sysAlipay/Notify", // 应用网关地址 - "RootCertPath": "AlipayCrt/alipayRootCert.crt", // 支付宝根证书存放路径 - "AccountList": [ - { - "Name": "sandbox 默认应用", - "AppId": "xxxxxxxxxxxxxx", - "SignType": "RSA2", - "PrivateKey": "xxxxxxxxxxxxxxxxx", - "EncryptKey": "xxxxxxxxxxxxxxxxxxxx", - "AppCertPath": "AlipayCrt/appPublicCert.crt", // 应用公钥证书存放路径 - "AlipayPublicCertPath": "AlipayCrt/alipayPublicCert.crt" // 支付宝公钥证书存放路径 - }, - { - "Name": "sandbox 默认应用2", - "AppId": "xxxxxxxxxxxxxx", - "SignType": "RSA2", - "PrivateKey": "xxxxxxxxxxxxxxxxx", - "EncryptKey": "xxxxxxxxxxxxxxxxxxxx", - "AppCertPath": "AlipayCrt/appPublicCert.crt", // 应用公钥证书存放路径 - "AlipayPublicCertPath": "AlipayCrt/alipayPublicCert.crt" // 支付宝公钥证书存放路径 - } - ] - } -} \ No newline at end of file diff --git a/Evergreen.Health.Application/Configuration/App.json b/Evergreen.Health.Application/Configuration/App.json index 814355a..c09f6ca 100644 --- a/Evergreen.Health.Application/Configuration/App.json +++ b/Evergreen.Health.Application/Configuration/App.json @@ -6,7 +6,6 @@ "AppSettings": { "InjectSpecificationDocument": true, // 生产环境是否开启Swagger - "ExternalAssemblies": [ "plugins" ], // 插件目录 "VirtualPath": "" // 二级虚拟目录 }, "DynamicApiControllerSettings": { @@ -41,10 +40,6 @@ "WithExposedHeaders": [ "Content-Disposition", "X-Pagination", "access-token", "x-access-token", "Access-Control-Expose-Headersx-access-token" ], // 如果前端不代理且是axios请求 "SignalRSupport": true // 启用 SignalR 跨域支持 }, - // 定时任务/作业调度 - "JobSchedule": { - "Enabled": true // 是否开启 - }, // 雪花Id "SnowId": { "WorkerId": 1, // 雪花Id机器码,多服务器时全局唯一 @@ -62,4 +57,4 @@ "PublicKey": "0484C7466D950E120E5ECE5DD85D0C90EAA85081A3A2BD7C57AE6DC822EFCCBD66620C67B0103FC8DD280E36C3B282977B722AAEC3C56518EDCEBAFB72C5A05312", // 公钥 "PrivateKey": "8EDB615B1D48B8BE188FC0F18EC08A41DF50EA731FA28BF409E6552809E3A111" // 私钥 } -} \ No newline at end of file +} diff --git a/Evergreen.Health.Application/Configuration/CodeGen.json b/Evergreen.Health.Application/Configuration/CodeGen.json deleted file mode 100644 index 9f02228..0000000 --- a/Evergreen.Health.Application/Configuration/CodeGen.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json", - - // 代码生成配置项-程序集名称集合 - "CodeGen": { - "EntityAssemblyNames": [ "Admin.NET.Core", "Evergreen.Health.Application" ], // 实体所在程序集(自行添加新建程序集名称) - "BaseEntityNames": [ "EntityBaseId", "EntityBase", "EntityBaseDel", "EntityBaseOrg", "EntityBaseOrgDel", "EntityBaseTenant", "EntityBaseTenantDel", "EntityBaseTenantId", "EntityBaseTenantOrg", "EntityBaseTenantOrgDel" ], // 实体基类名称 - "FrontRootPath": "Web", // 前端项目根目录 - "BackendApplicationNamespaces": [ "Evergreen.Health.Application" ] // 后端生成到的项目(自行添加新建命名空间) - } -} \ No newline at end of file diff --git a/Evergreen.Health.Application/Configuration/Wechat.json b/Evergreen.Health.Application/Configuration/Wechat.json deleted file mode 100644 index 25ec0d2..0000000 --- a/Evergreen.Health.Application/Configuration/Wechat.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json", - - "Wechat": { - // 公众号 - "WechatAppId": "", - "WechatAppSecret": "", - "WechatToken": "", // 微信公众号服务器配置中的令牌(Token) - "WechatEncodingAESKey": "", // 微信公众号服务器配置中的消息加解密密钥(EncodingAESKey) - // 小程序 - "WxOpenAppId": "", - "WxOpenAppSecret": "", - "WxToken": "", // 小程序消息推送中的令牌(Token) - "WxEncodingAESKey": "", // 小程序消息推送中的消息加解密密钥(EncodingAESKey) - "QRImagePath": "" //小程序生成带参数二维码保存位置(绝对路径 eg: D:\\Web\\wwwroot\\upload\\QRImage),如果不配置,则默认保存在项目根目录下wwwroot\\upload\\QRImage - }, - // 微信支付 - "WechatPay": { - "AppId": "", // 微信公众平台AppId、开放平台AppId、小程序AppId、企业微信CorpId - "MerchantId": "", // 商户平台的商户号 - "MerchantV3Secret": "", // 商户平台的APIv3密钥 - "MerchantCertificateSerialNumber": "", // 商户平台的证书序列号 - "MerchantCertificatePrivateKey": "WxPayCert/apiclient_key.pem" // 商户平台的API证书私钥(apiclient_key.pem文件内容) - }, - // 支付回调 - "PayCallBack": { - "WechatPayUrl": "https://xxx/api/sysWechatPay/payCallBack", // 微信支付回调 - "WechatRefundUrl": "", // 微信退款回调 - "AlipayUrl": "", // 支付宝支付回调 - "AlipayRefundUrl": "" // 支付宝退款回调 - } -} \ No newline at end of file diff --git a/README.md b/README.md index 90fb566..d876481 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,9 @@ - `POST /api/health/plans/generate` 生成个性化健康参数 接口文档以应用启动后生成的 OpenAPI/Scalar 页面为准。 + +## 后台基础模块范围 + +当前版本保留 Admin.NET 的通用后台底座:用户、角色、菜单与权限、组织、职位、租户、字典、系统配置、日志、文件、通知和在线用户等。 + +为保持演示版精简,已移除支付宝、微信/微信支付、LDAP、代码生成、任务调度、动态插件、打印模板等可选扩展模块。数据库迁移脚本位于 `Database/Migrations/20260921_RemoveUnusedExtensionTables.sql`,后续确有业务需要时再按模块重新接入。