mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-08-03 02:18:00 +08:00
Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
06b7aa4ae8 | |||
b1678e2537 | |||
442a69f90d | |||
f1fd53f72b | |||
ae4ed8b3ef | |||
4e4a1d0dff | |||
098cfc135e | |||
0285eea352 | |||
725662693b | |||
9504c96f40 | |||
d1e4704adc | |||
0b036e9d67 | |||
89846d9783 | |||
194eb89d31 | |||
d622111f53 | |||
c2a2b27afd | |||
4228bd5c32 | |||
b24642e5c9 |
75
CHANGELOG.md
75
CHANGELOG.md
@ -2,6 +2,81 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||||
|
|
||||||
|
### [2.3.1](https://github.com/nsnail/NetAdmin/compare/v2.1.0...v2.3.1) (2024-12-13)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* ✨ 菜单复制 ([#214](https://github.com/nsnail/NetAdmin/issues/214)) ([81d9b0b](https://github.com/nsnail/NetAdmin/commit/81d9b0b3bb280661ceffa61aa6e9d612fb7ec52c))
|
||||||
|
* ✨ 分组统计功能 ([0b036e9](https://github.com/nsnail/NetAdmin/commit/0b036e9d67ffdf7a07c772606009f02744e6a3c3))
|
||||||
|
* ✨ 框架代码同步 ([098cfc1](https://github.com/nsnail/NetAdmin/commit/098cfc135e781a0cf172cd1289e5e871c7a76419))
|
||||||
|
* ✨ 框架代码同步 ([7256626](https://github.com/nsnail/NetAdmin/commit/725662693b7b47f6fae4c1917dd8d80220c7640a))
|
||||||
|
* ✨ 文档管理 ([#221](https://github.com/nsnail/NetAdmin/issues/221)) ([7ed3040](https://github.com/nsnail/NetAdmin/commit/7ed30406c9f721a12f0b756ec8884a1882242b93))
|
||||||
|
* ✨ select-filter badge icon ([#217](https://github.com/nsnail/NetAdmin/issues/217)) ([4d857f1](https://github.com/nsnail/NetAdmin/commit/4d857f1861b1256980e7cc59e2ab6a5f7d966da2))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 🐛 按钮文字提示 ([#227](https://github.com/nsnail/NetAdmin/issues/227)) ([c88c8d2](https://github.com/nsnail/NetAdmin/commit/c88c8d293d44f2707f3b5232e6a40a141af9981c))
|
||||||
|
* 🐛 导出界面报错 ([#213](https://github.com/nsnail/NetAdmin/issues/213)) ([ef2f0de](https://github.com/nsnail/NetAdmin/commit/ef2f0de095e314f34bec21c0a2ccdb51423a163b))
|
||||||
|
* 🐛 导出文件的responseType ([#205](https://github.com/nsnail/NetAdmin/issues/205)) ([841a419](https://github.com/nsnail/NetAdmin/commit/841a4195e77aa96e3c6c72626c1add3f71a310aa))
|
||||||
|
* 🐛 个性主题色冲突 ([4e4a1d0](https://github.com/nsnail/NetAdmin/commit/4e4a1d0dff7f3698e9a9cfcf46368260cfd70cbd))
|
||||||
|
* 🐛 请求日志批量插入,漏写了登录日志 ([#210](https://github.com/nsnail/NetAdmin/issues/210)) ([6c71c74](https://github.com/nsnail/NetAdmin/commit/6c71c74a27617c7d0530a5f6eaff650ecfd4eaec))
|
||||||
|
* 🐛 修复一些样式问题 ([442a69f](https://github.com/nsnail/NetAdmin/commit/442a69f90de179539f78c01d967572f83bd2eff8))
|
||||||
|
* 🐛 用户选择器报错 ([#220](https://github.com/nsnail/NetAdmin/issues/220)) ([71bfdaa](https://github.com/nsnail/NetAdmin/commit/71bfdaafa8176cf686b03244ee758de058080a71))
|
||||||
|
* 🐛 editUser ([ef2a0c3](https://github.com/nsnail/NetAdmin/commit/ef2a0c3280532ac24889279e4780a1b1a2561a6b))
|
||||||
|
* 🐛 idd ([#208](https://github.com/nsnail/NetAdmin/issues/208)) ([4e9f605](https://github.com/nsnail/NetAdmin/commit/4e9f605ea2cc6fe394068cfea5638e51920b9096))
|
||||||
|
* 🐛 version 条件重复指定 ([01058ba](https://github.com/nsnail/NetAdmin/commit/01058ba7288bcc645f66de2f78e1d659d55333cf))
|
||||||
|
* 🐛 version lock ([4eecc0b](https://github.com/nsnail/NetAdmin/commit/4eecc0b4ce09f620f83109949e4c2b67b7f8ba90))
|
||||||
|
|
||||||
|
## [2.3.0](https://github.com/nsnail/NetAdmin/compare/v2.1.0...v2.3.0) (2024-12-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* ✨ 菜单复制 ([#214](https://github.com/nsnail/NetAdmin/issues/214)) ([81d9b0b](https://github.com/nsnail/NetAdmin/commit/81d9b0b3bb280661ceffa61aa6e9d612fb7ec52c))
|
||||||
|
* ✨ 分组统计功能 ([0b036e9](https://github.com/nsnail/NetAdmin/commit/0b036e9d67ffdf7a07c772606009f02744e6a3c3))
|
||||||
|
* ✨ 框架代码同步 ([098cfc1](https://github.com/nsnail/NetAdmin/commit/098cfc135e781a0cf172cd1289e5e871c7a76419))
|
||||||
|
* ✨ 框架代码同步 ([7256626](https://github.com/nsnail/NetAdmin/commit/725662693b7b47f6fae4c1917dd8d80220c7640a))
|
||||||
|
* ✨ 文档管理 ([#221](https://github.com/nsnail/NetAdmin/issues/221)) ([7ed3040](https://github.com/nsnail/NetAdmin/commit/7ed30406c9f721a12f0b756ec8884a1882242b93))
|
||||||
|
* ✨ select-filter badge icon ([#217](https://github.com/nsnail/NetAdmin/issues/217)) ([4d857f1](https://github.com/nsnail/NetAdmin/commit/4d857f1861b1256980e7cc59e2ab6a5f7d966da2))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 🐛 按钮文字提示 ([#227](https://github.com/nsnail/NetAdmin/issues/227)) ([c88c8d2](https://github.com/nsnail/NetAdmin/commit/c88c8d293d44f2707f3b5232e6a40a141af9981c))
|
||||||
|
* 🐛 导出界面报错 ([#213](https://github.com/nsnail/NetAdmin/issues/213)) ([ef2f0de](https://github.com/nsnail/NetAdmin/commit/ef2f0de095e314f34bec21c0a2ccdb51423a163b))
|
||||||
|
* 🐛 导出文件的responseType ([#205](https://github.com/nsnail/NetAdmin/issues/205)) ([841a419](https://github.com/nsnail/NetAdmin/commit/841a4195e77aa96e3c6c72626c1add3f71a310aa))
|
||||||
|
* 🐛 个性主题色冲突 ([4e4a1d0](https://github.com/nsnail/NetAdmin/commit/4e4a1d0dff7f3698e9a9cfcf46368260cfd70cbd))
|
||||||
|
* 🐛 请求日志批量插入,漏写了登录日志 ([#210](https://github.com/nsnail/NetAdmin/issues/210)) ([6c71c74](https://github.com/nsnail/NetAdmin/commit/6c71c74a27617c7d0530a5f6eaff650ecfd4eaec))
|
||||||
|
* 🐛 用户选择器报错 ([#220](https://github.com/nsnail/NetAdmin/issues/220)) ([71bfdaa](https://github.com/nsnail/NetAdmin/commit/71bfdaafa8176cf686b03244ee758de058080a71))
|
||||||
|
* 🐛 editUser ([ef2a0c3](https://github.com/nsnail/NetAdmin/commit/ef2a0c3280532ac24889279e4780a1b1a2561a6b))
|
||||||
|
* 🐛 idd ([#208](https://github.com/nsnail/NetAdmin/issues/208)) ([4e9f605](https://github.com/nsnail/NetAdmin/commit/4e9f605ea2cc6fe394068cfea5638e51920b9096))
|
||||||
|
* 🐛 version 条件重复指定 ([01058ba](https://github.com/nsnail/NetAdmin/commit/01058ba7288bcc645f66de2f78e1d659d55333cf))
|
||||||
|
* 🐛 version lock ([4eecc0b](https://github.com/nsnail/NetAdmin/commit/4eecc0b4ce09f620f83109949e4c2b67b7f8ba90))
|
||||||
|
|
||||||
|
### [2.2.1](https://github.com/nsnail/NetAdmin/compare/v2.1.0...v2.2.1) (2024-12-04)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* ✨ 菜单复制 ([#214](https://github.com/nsnail/NetAdmin/issues/214)) ([81d9b0b](https://github.com/nsnail/NetAdmin/commit/81d9b0b3bb280661ceffa61aa6e9d612fb7ec52c))
|
||||||
|
* ✨ 文档管理 ([#221](https://github.com/nsnail/NetAdmin/issues/221)) ([7ed3040](https://github.com/nsnail/NetAdmin/commit/7ed30406c9f721a12f0b756ec8884a1882242b93))
|
||||||
|
* ✨ select-filter badge icon ([#217](https://github.com/nsnail/NetAdmin/issues/217)) ([4d857f1](https://github.com/nsnail/NetAdmin/commit/4d857f1861b1256980e7cc59e2ab6a5f7d966da2))
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 🐛 按钮文字提示 ([#227](https://github.com/nsnail/NetAdmin/issues/227)) ([c88c8d2](https://github.com/nsnail/NetAdmin/commit/c88c8d293d44f2707f3b5232e6a40a141af9981c))
|
||||||
|
* 🐛 导出界面报错 ([#213](https://github.com/nsnail/NetAdmin/issues/213)) ([ef2f0de](https://github.com/nsnail/NetAdmin/commit/ef2f0de095e314f34bec21c0a2ccdb51423a163b))
|
||||||
|
* 🐛 导出文件的responseType ([#205](https://github.com/nsnail/NetAdmin/issues/205)) ([841a419](https://github.com/nsnail/NetAdmin/commit/841a4195e77aa96e3c6c72626c1add3f71a310aa))
|
||||||
|
* 🐛 请求日志批量插入,漏写了登录日志 ([#210](https://github.com/nsnail/NetAdmin/issues/210)) ([6c71c74](https://github.com/nsnail/NetAdmin/commit/6c71c74a27617c7d0530a5f6eaff650ecfd4eaec))
|
||||||
|
* 🐛 用户选择器报错 ([#220](https://github.com/nsnail/NetAdmin/issues/220)) ([71bfdaa](https://github.com/nsnail/NetAdmin/commit/71bfdaafa8176cf686b03244ee758de058080a71))
|
||||||
|
* 🐛 editUser ([ef2a0c3](https://github.com/nsnail/NetAdmin/commit/ef2a0c3280532ac24889279e4780a1b1a2561a6b))
|
||||||
|
* 🐛 idd ([#208](https://github.com/nsnail/NetAdmin/issues/208)) ([4e9f605](https://github.com/nsnail/NetAdmin/commit/4e9f605ea2cc6fe394068cfea5638e51920b9096))
|
||||||
|
* 🐛 version 条件重复指定 ([01058ba](https://github.com/nsnail/NetAdmin/commit/01058ba7288bcc645f66de2f78e1d659d55333cf))
|
||||||
|
* 🐛 version lock ([4eecc0b](https://github.com/nsnail/NetAdmin/commit/4eecc0b4ce09f620f83109949e4c2b67b7f8ba90))
|
||||||
|
|
||||||
## [2.2.0](https://github.com/nsnail/NetAdmin/compare/v2.1.0...v2.2.0) (2024-11-27)
|
## [2.2.0](https://github.com/nsnail/NetAdmin/compare/v2.1.0...v2.2.0) (2024-11-27)
|
||||||
|
|
||||||
|
|
||||||
|
@ -117,4 +117,4 @@ biz-infra-->infra
|
|||||||
| JavaScript | JavaScript解析器 | [Terser](https://github.com/terser/terser) |
|
| JavaScript | JavaScript解析器 | [Terser](https://github.com/terser/terser) |
|
||||||
| JavaScript | 代码质量检查 | [ESLint](https://github.com/eslint/eslint) |
|
| JavaScript | 代码质量检查 | [ESLint](https://github.com/eslint/eslint) |
|
||||||
| JavaScript | 代码格式化工具 | [Prettier](https://github.com/prettier/prettier) |
|
| JavaScript | 代码格式化工具 | [Prettier](https://github.com/prettier/prettier) |
|
||||||
| JavaScript | 标准加密库 | [crypto-js](https://github.com/brix/crypto-js) |
|
| JavaScript | 标准加密库 | [crypto-js](https://github.com/brix/crypto-js) |
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"version": "2.2.0",
|
"version": "2.3.1",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cz-git": "^1.11.0",
|
"cz-git": "^1.11.0",
|
||||||
"commitizen": "^4.3.1",
|
"commitizen": "^4.3.1",
|
||||||
"prettier": "^3.4.1",
|
"prettier": "^3.4.2",
|
||||||
"standard-version": "^9.5.0"
|
"standard-version": "^9.5.0"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
@ -11,4 +11,4 @@
|
|||||||
"path": "node_modules/cz-git"
|
"path": "node_modules/cz-git"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4
scripts/git.config.cmd
Normal file
4
scripts/git.config.cmd
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
git config --local core.eol lf
|
||||||
|
git config --local core.autocrlf false
|
||||||
|
git config --local core.longpaths true
|
||||||
|
git config --local pull.rebase false
|
@ -8,12 +8,14 @@ namespace NetAdmin.Application.Modules;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TCreateReq">创建请求类型</typeparam>
|
/// <typeparam name="TCreateReq">创建请求类型</typeparam>
|
||||||
/// <typeparam name="TCreateRsp">创建响应类型</typeparam>
|
/// <typeparam name="TCreateRsp">创建响应类型</typeparam>
|
||||||
|
/// <typeparam name="TEditReq">编辑请求类型</typeparam>
|
||||||
/// <typeparam name="TQueryReq">查询请求类型</typeparam>
|
/// <typeparam name="TQueryReq">查询请求类型</typeparam>
|
||||||
/// <typeparam name="TQueryRsp">查询响应类型</typeparam>
|
/// <typeparam name="TQueryRsp">查询响应类型</typeparam>
|
||||||
/// <typeparam name="TDelReq">删除请求类型</typeparam>
|
/// <typeparam name="TDelReq">删除请求类型</typeparam>
|
||||||
public interface ICrudModule<in TCreateReq, TCreateRsp, TQueryReq, TQueryRsp, TDelReq>
|
public interface ICrudModule<in TCreateReq, TCreateRsp, in TEditReq, TQueryReq, TQueryRsp, TDelReq>
|
||||||
where TCreateReq : DataAbstraction, new()
|
where TCreateReq : DataAbstraction, new()
|
||||||
where TCreateRsp : DataAbstraction
|
where TCreateRsp : DataAbstraction
|
||||||
|
where TEditReq : DataAbstraction, new()
|
||||||
where TQueryReq : DataAbstraction, new()
|
where TQueryReq : DataAbstraction, new()
|
||||||
where TQueryRsp : DataAbstraction
|
where TQueryRsp : DataAbstraction
|
||||||
where TDelReq : DataAbstraction, new()
|
where TDelReq : DataAbstraction, new()
|
||||||
@ -28,6 +30,11 @@ public interface ICrudModule<in TCreateReq, TCreateRsp, TQueryReq, TQueryRsp, TD
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
Task<long> CountAsync(QueryReq<TQueryReq> req);
|
Task<long> CountAsync(QueryReq<TQueryReq> req);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 实体分组计数
|
||||||
|
/// </summary>
|
||||||
|
Task<IOrderedEnumerable<KeyValuePair<IImmutableDictionary<string, string>, int>>> CountByAsync(QueryReq<TQueryReq> req);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建实体
|
/// 创建实体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -39,9 +46,9 @@ public interface ICrudModule<in TCreateReq, TCreateRsp, TQueryReq, TQueryRsp, TD
|
|||||||
Task<int> DeleteAsync(TDelReq req);
|
Task<int> DeleteAsync(TDelReq req);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 判断实体是否存在
|
/// 编辑实体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Task<bool> ExistAsync(QueryReq<TQueryReq> req);
|
Task<TQueryRsp> EditAsync(TEditReq req);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 导出实体
|
/// 导出实体
|
||||||
|
@ -7,6 +7,7 @@ namespace NetAdmin.Application.Modules.Tpl;
|
|||||||
/// 示例模块
|
/// 示例模块
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface IExampleModule : ICrudModule<CreateExampleReq, QueryExampleRsp // 创建类型
|
public interface IExampleModule : ICrudModule<CreateExampleReq, QueryExampleRsp // 创建类型
|
||||||
|
, EditExampleReq // 编辑类型
|
||||||
, QueryExampleReq, QueryExampleRsp // 查询类型
|
, QueryExampleReq, QueryExampleRsp // 查询类型
|
||||||
, DelReq // 删除类型
|
, DelReq // 删除类型
|
||||||
>;
|
>;
|
@ -5,6 +5,7 @@ using NetAdmin.Domain;
|
|||||||
using NetAdmin.Domain.DbMaps.Dependency;
|
using NetAdmin.Domain.DbMaps.Dependency;
|
||||||
using NetAdmin.Domain.DbMaps.Dependency.Fields;
|
using NetAdmin.Domain.DbMaps.Dependency.Fields;
|
||||||
using NetAdmin.Domain.Dto.Dependency;
|
using NetAdmin.Domain.Dto.Dependency;
|
||||||
|
using NetAdmin.Domain.Extensions;
|
||||||
|
|
||||||
namespace NetAdmin.Application.Services;
|
namespace NetAdmin.Application.Services;
|
||||||
|
|
||||||
@ -52,7 +53,9 @@ public abstract class RepositoryService<TEntity, TPrimary, TLogger>(BasicReposit
|
|||||||
{
|
{
|
||||||
var select = selector(query).WithNoLockNoWait().Take(Numbers.MAX_LIMIT_EXPORT);
|
var select = selector(query).WithNoLockNoWait().Take(Numbers.MAX_LIMIT_EXPORT);
|
||||||
|
|
||||||
object list = listExp == null ? await select.ToListAsync().ConfigureAwait(false) : await select.ToListAsync(listExp).ConfigureAwait(false);
|
object list = listExp == null
|
||||||
|
? await select.ToListAsync().ConfigureAwait(false)
|
||||||
|
: await select.ToListAsync(listExp).ConfigureAwait(false);
|
||||||
|
|
||||||
return await GetExportFileStreamAsync<TExport>(fileName, list).ConfigureAwait(false);
|
return await GetExportFileStreamAsync<TExport>(fileName, list).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ using NetAdmin.Application.Services.Tpl.Dependency;
|
|||||||
using NetAdmin.Domain.DbMaps.Tpl;
|
using NetAdmin.Domain.DbMaps.Tpl;
|
||||||
using NetAdmin.Domain.Dto.Dependency;
|
using NetAdmin.Domain.Dto.Dependency;
|
||||||
using NetAdmin.Domain.Dto.Tpl.Example;
|
using NetAdmin.Domain.Dto.Tpl.Example;
|
||||||
|
using NetAdmin.Domain.Extensions;
|
||||||
|
|
||||||
namespace NetAdmin.Application.Services.Tpl;
|
namespace NetAdmin.Application.Services.Tpl;
|
||||||
|
|
||||||
@ -31,6 +32,21 @@ public sealed class ExampleService(BasicRepository<Tpl_Example, long> rpo) //
|
|||||||
return QueryInternal(req).WithNoLockNoWait().CountAsync();
|
return QueryInternal(req).WithNoLockNoWait().CountAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public async Task<IOrderedEnumerable<KeyValuePair<IImmutableDictionary<string, string>, int>>> CountByAsync(QueryReq<QueryExampleReq> req)
|
||||||
|
{
|
||||||
|
req.ThrowIfInvalid();
|
||||||
|
var ret = await QueryInternal(req with { Order = Orders.None })
|
||||||
|
.WithNoLockNoWait()
|
||||||
|
.GroupBy(req.GetToListExp<Tpl_Example>())
|
||||||
|
.ToDictionaryAsync(a => a.Count())
|
||||||
|
.ConfigureAwait(false);
|
||||||
|
return ret.Select(x => new KeyValuePair<IImmutableDictionary<string, string>, int>(
|
||||||
|
req.RequiredFields.ToImmutableDictionary(y => y, y => typeof(Tpl_Example).GetProperty(y)!.GetValue(x.Key)!.ToString())
|
||||||
|
, x.Value))
|
||||||
|
.OrderByDescending(x => x.Value);
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public async Task<QueryExampleRsp> CreateAsync(CreateExampleReq req)
|
public async Task<QueryExampleRsp> CreateAsync(CreateExampleReq req)
|
||||||
{
|
{
|
||||||
@ -47,10 +63,14 @@ public sealed class ExampleService(BasicRepository<Tpl_Example, long> rpo) //
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public Task<bool> ExistAsync(QueryReq<QueryExampleReq> req)
|
public async Task<QueryExampleRsp> EditAsync(EditExampleReq req)
|
||||||
{
|
{
|
||||||
req.ThrowIfInvalid();
|
req.ThrowIfInvalid();
|
||||||
return QueryInternal(req).WithNoLockNoWait().AnyAsync();
|
#if DBTYPE_SQLSERVER
|
||||||
|
return (await UpdateReturnListAsync(req).ConfigureAwait(false)).FirstOrDefault()?.Adapt<QueryExampleRsp>();
|
||||||
|
#else
|
||||||
|
return await UpdateAsync(req).ConfigureAwait(false) > 0 ? await GetAsync(new QueryExampleReq { Id = req.Id }).ConfigureAwait(false) : null;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
@ -72,7 +92,12 @@ public sealed class ExampleService(BasicRepository<Tpl_Example, long> rpo) //
|
|||||||
public async Task<PagedQueryRsp<QueryExampleRsp>> PagedQueryAsync(PagedQueryReq<QueryExampleReq> req)
|
public async Task<PagedQueryRsp<QueryExampleRsp>> PagedQueryAsync(PagedQueryReq<QueryExampleReq> req)
|
||||||
{
|
{
|
||||||
req.ThrowIfInvalid();
|
req.ThrowIfInvalid();
|
||||||
var list = await QueryInternal(req).Page(req.Page, req.PageSize).WithNoLockNoWait().Count(out var total).ToListAsync().ConfigureAwait(false);
|
var list = await QueryInternal(req)
|
||||||
|
.Page(req.Page, req.PageSize)
|
||||||
|
.WithNoLockNoWait()
|
||||||
|
.Count(out var total)
|
||||||
|
.ToListAsync(req)
|
||||||
|
.ConfigureAwait(false);
|
||||||
|
|
||||||
return new PagedQueryRsp<QueryExampleRsp>(req.Page, req.PageSize, total, list.Adapt<IEnumerable<QueryExampleRsp>>());
|
return new PagedQueryRsp<QueryExampleRsp>(req.Page, req.PageSize, total, list.Adapt<IEnumerable<QueryExampleRsp>>());
|
||||||
}
|
}
|
||||||
@ -81,7 +106,7 @@ public sealed class ExampleService(BasicRepository<Tpl_Example, long> rpo) //
|
|||||||
public async Task<IEnumerable<QueryExampleRsp>> QueryAsync(QueryReq<QueryExampleReq> req)
|
public async Task<IEnumerable<QueryExampleRsp>> QueryAsync(QueryReq<QueryExampleReq> req)
|
||||||
{
|
{
|
||||||
req.ThrowIfInvalid();
|
req.ThrowIfInvalid();
|
||||||
var ret = await QueryInternal(req).WithNoLockNoWait().Take(req.Count).ToListAsync().ConfigureAwait(false);
|
var ret = await QueryInternal(req).WithNoLockNoWait().Take(req.Count).ToListAsync(req).ConfigureAwait(false);
|
||||||
return ret.Adapt<IEnumerable<QueryExampleRsp>>();
|
return ret.Adapt<IEnumerable<QueryExampleRsp>>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,12 @@ public sealed class ExampleCache(IDistributedCache cache, IExampleService servic
|
|||||||
return Service.CountAsync(req);
|
return Service.CountAsync(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public Task<IOrderedEnumerable<KeyValuePair<IImmutableDictionary<string, string>, int>>> CountByAsync(QueryReq<QueryExampleReq> req)
|
||||||
|
{
|
||||||
|
return Service.CountByAsync(req);
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public Task<QueryExampleRsp> CreateAsync(CreateExampleReq req)
|
public Task<QueryExampleRsp> CreateAsync(CreateExampleReq req)
|
||||||
{
|
{
|
||||||
@ -34,9 +40,9 @@ public sealed class ExampleCache(IDistributedCache cache, IExampleService servic
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public Task<bool> ExistAsync(QueryReq<QueryExampleReq> req)
|
public Task<QueryExampleRsp> EditAsync(EditExampleReq req)
|
||||||
{
|
{
|
||||||
return Service.ExistAsync(req);
|
return Service.EditAsync(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -11,7 +11,8 @@ public sealed class ApiIdAttribute : ValidationAttribute
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
|
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
|
||||||
{
|
{
|
||||||
var service = App.GetService(App.EffectiveTypes.Single(x => x.FullName == "NetAdmin.SysComponent.Cache.Sys.Dependency.IApiCache"));
|
var service = App.GetService(
|
||||||
|
App.EffectiveTypes.Single(x => x.FullName == "NetAdmin.SysComponent.Application.Services.Sys.Dependency.IApiService"));
|
||||||
|
|
||||||
var req = new QueryReq<QueryApiReq> { Filter = new QueryApiReq { Id = value as string } };
|
var req = new QueryReq<QueryApiReq> { Filter = new QueryApiReq { Id = value as string } };
|
||||||
|
|
||||||
|
@ -11,7 +11,8 @@ public sealed class UserIdAttribute : ValidationAttribute
|
|||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
|
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
|
||||||
{
|
{
|
||||||
var service = App.GetService(App.EffectiveTypes.Single(x => x.FullName == "NetAdmin.SysComponent.Cache.Sys.Dependency.IUserCache"));
|
var service = App.GetService(
|
||||||
|
App.EffectiveTypes.Single(x => x.FullName == "NetAdmin.SysComponent.Application.Services.Sys.Dependency.IUserService"));
|
||||||
|
|
||||||
var req = new QueryReq<QueryUserReq> { Filter = new QueryUserReq { Id = (long)value! } };
|
var req = new QueryReq<QueryUserReq> { Filter = new QueryUserReq { Id = (long)value! } };
|
||||||
|
|
||||||
|
@ -5,10 +5,15 @@ namespace NetAdmin.Domain.Attributes;
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Enum)]
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Enum)]
|
||||||
public sealed class IndicatorAttribute(string indicate) : Attribute
|
public sealed class IndicatorAttribute(string indicate, bool pulse) : Attribute
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 状态指示
|
/// 状态指示
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Indicate { get; } = indicate;
|
public string Indicate { get; } = indicate;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 脉动
|
||||||
|
/// </summary>
|
||||||
|
public bool Pulse { get; } = pulse;
|
||||||
}
|
}
|
@ -25,7 +25,7 @@ public abstract record ImmutableEntity<T> : LiteImmutableEntity<T>, IFieldCreate
|
|||||||
[Column(CanUpdate = false, Position = -1)]
|
[Column(CanUpdate = false, Position = -1)]
|
||||||
[CsvIgnore]
|
[CsvIgnore]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public long? CreatedUserId { get; init; }
|
public virtual long? CreatedUserId { get; init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建者用户名
|
/// 创建者用户名
|
||||||
|
@ -40,7 +40,7 @@ public record QueryReq<T> : DataAbstraction
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 所需字段
|
/// 所需字段
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string[] RequiredFields { get; set; }
|
public string[] RequiredFields { get; init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 列表表达式
|
/// 列表表达式
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Api;
|
namespace NetAdmin.Domain.Dto.Sys.Api;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace NetAdmin.Domain.Dto.Sys.Api;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 请求:编辑接口
|
||||||
|
/// </summary>
|
||||||
|
public sealed record EditApiReq : Sys_Api;
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Api;
|
namespace NetAdmin.Domain.Dto.Sys.Api;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Api;
|
namespace NetAdmin.Domain.Dto.Sys.Api;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Config;
|
namespace NetAdmin.Domain.Dto.Sys.Config;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.Dept;
|
using NetAdmin.Domain.Dto.Sys.Dept;
|
||||||
using NetAdmin.Domain.Dto.Sys.Role;
|
using NetAdmin.Domain.Dto.Sys.Role;
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Config;
|
namespace NetAdmin.Domain.Dto.Sys.Config;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.Dept;
|
using NetAdmin.Domain.Dto.Sys.Dept;
|
||||||
using NetAdmin.Domain.Dto.Sys.Role;
|
using NetAdmin.Domain.Dto.Sys.Role;
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Config;
|
namespace NetAdmin.Domain.Dto.Sys.Config;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dept;
|
namespace NetAdmin.Domain.Dto.Sys.Dept;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dept;
|
namespace NetAdmin.Domain.Dto.Sys.Dept;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dept;
|
namespace NetAdmin.Domain.Dto.Sys.Dept;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dept;
|
namespace NetAdmin.Domain.Dto.Sys.Dept;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dic.Catalog;
|
namespace NetAdmin.Domain.Dto.Sys.Dic.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dic.Catalog;
|
namespace NetAdmin.Domain.Dto.Sys.Dic.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dic.Catalog;
|
namespace NetAdmin.Domain.Dto.Sys.Dic.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dic.Content;
|
namespace NetAdmin.Domain.Dto.Sys.Dic.Content;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dic.Content;
|
namespace NetAdmin.Domain.Dto.Sys.Dic.Content;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dic.Content;
|
namespace NetAdmin.Domain.Dto.Sys.Dic.Content;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dic.Content;
|
namespace NetAdmin.Domain.Dto.Sys.Dic.Content;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Dic.Content;
|
namespace NetAdmin.Domain.Dto.Sys.Dic.Content;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Doc.Catalog;
|
namespace NetAdmin.Domain.Dto.Sys.Doc.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Doc.Catalog;
|
namespace NetAdmin.Domain.Dto.Sys.Doc.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Doc.Catalog;
|
namespace NetAdmin.Domain.Dto.Sys.Doc.Catalog;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Enums.Sys;
|
using NetAdmin.Domain.Enums.Sys;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Doc.Content;
|
namespace NetAdmin.Domain.Dto.Sys.Doc.Content;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Doc.Content;
|
namespace NetAdmin.Domain.Dto.Sys.Doc.Content;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Enums.Sys;
|
using NetAdmin.Domain.Enums.Sys;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Doc.Content;
|
namespace NetAdmin.Domain.Dto.Sys.Doc.Content;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Doc.Content;
|
namespace NetAdmin.Domain.Dto.Sys.Doc.Content;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Enums.Sys;
|
using NetAdmin.Domain.Enums.Sys;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Job;
|
namespace NetAdmin.Domain.Dto.Sys.Job;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Job;
|
namespace NetAdmin.Domain.Dto.Sys.Job;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Job;
|
namespace NetAdmin.Domain.Dto.Sys.Job;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using CronExpressionDescriptor;
|
using CronExpressionDescriptor;
|
||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.User;
|
using NetAdmin.Domain.Dto.Sys.User;
|
||||||
using NetAdmin.Domain.Enums.Sys;
|
using NetAdmin.Domain.Enums.Sys;
|
||||||
using Options = CronExpressionDescriptor.Options;
|
using Options = CronExpressionDescriptor.Options;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Job;
|
namespace NetAdmin.Domain.Dto.Sys.Job;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.JobRecord;
|
namespace NetAdmin.Domain.Dto.Sys.JobRecord;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 请求:创建计划作业执行记录
|
/// 请求:创建计划作业执行记录
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed record CreateJobRecordReq : Sys_JobRecord;
|
public record CreateJobRecordReq : Sys_JobRecord;
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace NetAdmin.Domain.Dto.Sys.JobRecord;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 请求:编辑计划作业执行记录
|
||||||
|
/// </summary>
|
||||||
|
public sealed record EditJobRecordReq : CreateJobRecordReq;
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.Job;
|
using NetAdmin.Domain.Dto.Sys.Job;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.JobRecord;
|
namespace NetAdmin.Domain.Dto.Sys.JobRecord;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.JobRecord;
|
namespace NetAdmin.Domain.Dto.Sys.JobRecord;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.Job;
|
using NetAdmin.Domain.Dto.Sys.Job;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.JobRecord;
|
namespace NetAdmin.Domain.Dto.Sys.JobRecord;
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using NetAdmin.Domain.Contexts;
|
using NetAdmin.Domain.Contexts;
|
||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.RequestLog;
|
using NetAdmin.Domain.Dto.Sys.RequestLog;
|
||||||
using NetAdmin.Domain.Dto.Sys.User;
|
using NetAdmin.Domain.Dto.Sys.User;
|
||||||
|
|
||||||
@ -8,7 +7,7 @@ namespace NetAdmin.Domain.Dto.Sys.LoginLog;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 请求:创建登录日志
|
/// 请求:创建登录日志
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed record CreateLoginLogReq : Sys_LoginLog, IRegister
|
public record CreateLoginLogReq : Sys_LoginLog, IRegister
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public void Register(TypeAdapterConfig config)
|
public void Register(TypeAdapterConfig config)
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace NetAdmin.Domain.Dto.Sys.LoginLog;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 请求:编辑登录日志
|
||||||
|
/// </summary>
|
||||||
|
public sealed record EditLoginLogReq : CreateLoginLogReq;
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.LoginLog;
|
namespace NetAdmin.Domain.Dto.Sys.LoginLog;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.User;
|
using NetAdmin.Domain.Dto.Sys.User;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.LoginLog;
|
namespace NetAdmin.Domain.Dto.Sys.LoginLog;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Enums.Sys;
|
using NetAdmin.Domain.Enums.Sys;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Menu;
|
namespace NetAdmin.Domain.Dto.Sys.Menu;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Menu;
|
namespace NetAdmin.Domain.Dto.Sys.Menu;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Menu;
|
namespace NetAdmin.Domain.Dto.Sys.Menu;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
using NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.RequestLog;
|
namespace NetAdmin.Domain.Dto.Sys.RequestLog;
|
||||||
@ -6,7 +5,7 @@ namespace NetAdmin.Domain.Dto.Sys.RequestLog;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 请求:创建请求日志
|
/// 请求:创建请求日志
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed record CreateRequestLogReq : Sys_RequestLog
|
public record CreateRequestLogReq : Sys_RequestLog
|
||||||
{
|
{
|
||||||
/// <inheritdoc cref="Sys_RequestLog.Detail" />
|
/// <inheritdoc cref="Sys_RequestLog.Detail" />
|
||||||
public new CreateRequestLogDetailReq Detail { get; init; }
|
public new CreateRequestLogDetailReq Detail { get; init; }
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace NetAdmin.Domain.Dto.Sys.RequestLog;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 请求:编辑请求日志
|
||||||
|
/// </summary>
|
||||||
|
public sealed record EditRequestLogReq : CreateRequestLogReq;
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.RequestLog;
|
namespace NetAdmin.Domain.Dto.Sys.RequestLog;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.Api;
|
using NetAdmin.Domain.Dto.Sys.Api;
|
||||||
using NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
using NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
||||||
using NetAdmin.Domain.Dto.Sys.User;
|
using NetAdmin.Domain.Dto.Sys.User;
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
namespace NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 请求:创建请求日志明细
|
/// 请求:创建请求日志明细
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed record CreateRequestLogDetailReq : Sys_RequestLogDetail;
|
public record CreateRequestLogDetailReq : Sys_RequestLogDetail;
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 请求:编辑请求日志明细
|
||||||
|
/// </summary>
|
||||||
|
public sealed record EditRequestLogDetailReq : CreateRequestLogDetailReq;
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
namespace NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.User;
|
using NetAdmin.Domain.Dto.Sys.User;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
namespace NetAdmin.Domain.Dto.Sys.RequestLogDetail;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Enums.Sys;
|
using NetAdmin.Domain.Enums.Sys;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Role;
|
namespace NetAdmin.Domain.Dto.Sys.Role;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Role;
|
namespace NetAdmin.Domain.Dto.Sys.Role;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Role;
|
namespace NetAdmin.Domain.Dto.Sys.Role;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Enums.Sys;
|
using NetAdmin.Domain.Enums.Sys;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Role;
|
namespace NetAdmin.Domain.Dto.Sys.Role;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Role;
|
namespace NetAdmin.Domain.Dto.Sys.Role;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Role;
|
namespace NetAdmin.Domain.Dto.Sys.Role;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.Role;
|
namespace NetAdmin.Domain.Dto.Sys.Role;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Enums.Sys;
|
using NetAdmin.Domain.Enums.Sys;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsg;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsg;
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsg;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsg;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.Dept;
|
using NetAdmin.Domain.Dto.Sys.Dept;
|
||||||
using NetAdmin.Domain.Dto.Sys.Role;
|
using NetAdmin.Domain.Dto.Sys.Role;
|
||||||
using NetAdmin.Domain.Dto.Sys.SiteMsgFlag;
|
using NetAdmin.Domain.Dto.Sys.SiteMsgFlag;
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgDept;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgDept;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 请求:创建站内信-部门映射
|
/// 请求:创建站内信-部门映射
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed record CreateSiteMsgDeptReq : Sys_SiteMsgDept;
|
public record CreateSiteMsgDeptReq : Sys_SiteMsgDept;
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgDept;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 请求:编辑站内信-部门映射
|
||||||
|
/// </summary>
|
||||||
|
public sealed record EditSiteMsgDeptReq : CreateSiteMsgDeptReq;
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgDept;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgDept;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgDept;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgDept;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Enums.Sys;
|
using NetAdmin.Domain.Enums.Sys;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgFlag;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgFlag;
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgFlag;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 请求:编辑站内信标记
|
||||||
|
/// </summary>
|
||||||
|
public record EditSiteMsgFlagReq : CreateSiteMsgFlagReq;
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgFlag;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgFlag;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Enums.Sys;
|
using NetAdmin.Domain.Enums.Sys;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgFlag;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgFlag;
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgRole;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgRole;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 请求:创建站内信-角色映射
|
/// 请求:创建站内信-角色映射
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed record CreateSiteMsgRoleReq : Sys_SiteMsgRole;
|
public record CreateSiteMsgRoleReq : Sys_SiteMsgRole;
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgRole;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 请求:编辑站内信-角色映射
|
||||||
|
/// </summary>
|
||||||
|
public sealed record EditSiteMsgRoleReq : CreateSiteMsgRoleReq;
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgRole;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgRole;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgRole;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgRole;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgUser;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgUser;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 请求:创建站内信-用户映射
|
/// 请求:创建站内信-用户映射
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed record CreateSiteMsgUserReq : Sys_SiteMsgUser;
|
public record CreateSiteMsgUserReq : Sys_SiteMsgUser;
|
@ -0,0 +1,6 @@
|
|||||||
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgUser;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 请求:编辑站内信-用户映射
|
||||||
|
/// </summary>
|
||||||
|
public sealed record EditSiteMsgUserReq : CreateSiteMsgUserReq;
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgUser;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgUser;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.SiteMsgUser;
|
namespace NetAdmin.Domain.Dto.Sys.SiteMsgUser;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.User;
|
namespace NetAdmin.Domain.Dto.Sys.User;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.User;
|
namespace NetAdmin.Domain.Dto.Sys.User;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.User;
|
namespace NetAdmin.Domain.Dto.Sys.User;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.UserProfile;
|
using NetAdmin.Domain.Dto.Sys.UserProfile;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.User;
|
namespace NetAdmin.Domain.Dto.Sys.User;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.UserProfile;
|
using NetAdmin.Domain.Dto.Sys.UserProfile;
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.User;
|
namespace NetAdmin.Domain.Dto.Sys.User;
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
using NetAdmin.Domain.Dto.Sys.Dept;
|
using NetAdmin.Domain.Dto.Sys.Dept;
|
||||||
using NetAdmin.Domain.Dto.Sys.Role;
|
using NetAdmin.Domain.Dto.Sys.Role;
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
using NetAdmin.Domain.DbMaps.Sys;
|
|
||||||
|
|
||||||
namespace NetAdmin.Domain.Dto.Sys.User;
|
namespace NetAdmin.Domain.Dto.Sys.User;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user