Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit18420ce

Browse files
committed
修改
1 parent2f85193 commit18420ce

File tree

13 files changed

+243
-137
lines changed

13 files changed

+243
-137
lines changed

‎src/Destiny.Core.Flow.API/Controllers/DocumentTypeController.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public DocumentTypeController(IDocumentTypeService documentTypeService)
3434
/// <param name="dto">创建或更新的文档类型DTO</param>
3535
[HttpPost]
3636
[Description("异步创建或更新文档类型")]
37-
publicasyncTask<AjaxResult>CreateOrUpdateAsync([FromBody]DocumentTypeInputDtodto)
37+
publicasyncTask<AjaxResult>CreateOrUpdateAsync([FromBody]AssetInputDtodto)
3838
{
3939

4040
return(await_documentTypeService.CreateOrUpdateAsync(dto)).ToAjaxResult();
@@ -65,7 +65,7 @@ public async Task<AjaxResult> DeleteAsync(Guid id)
6565
/// <param name="request">分页请求数据</param>
6666
[HttpPost]
6767
[Description("异步得到文档类型分页数据")]
68-
publicasyncTask<PageList<DocumentTypePageListDto>>GetPageAsync(PageRequestrequest)
68+
publicasyncTask<PageList<AssetPageListDto>>GetPageAsync(PageRequestrequest)
6969
{
7070
return(await_documentTypeService.GetPageAsync(request)).ToPageList();
7171
}

‎src/Destiny.Core.Flow.API/Startups/FunctionModule.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
usingSystem.IO;
1212
usingMicrosoft.Extensions.Options;
1313
usingSystem;
14+
usingDestiny.Core.Flow.IServices.Abstractions;
15+
usingDestiny.Core.Flow.Services.Application;
1416

1517
namespaceDestiny.Core.Flow.API.Startups
1618
{
@@ -24,6 +26,7 @@ public class DestinyCoreConfigModule : AppModule
2426
{
2527
publicoverridevoidConfigureServices(ConfigureServicesContextcontext)
2628
{
29+
2730
context.Services.AddFileProvider();
2831
varconfiguration=context.Services.GetConfiguration();
2932

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
3+
4+
usingSystem;
5+
usingSystem.Collections.Generic;
6+
usingSystem.ComponentModel;
7+
usingDestinyCore.Entity;
8+
usingDestinyCore.Mapping;
9+
usingDestiny.Core.Flow.Entities;
10+
usingDestiny.Core.Flow.Model.Entities;
11+
12+
namespaceDestiny.Core.Flow.Dtos
13+
{
14+
15+
/// <summary>
16+
/// 资源
17+
/// </summary>
18+
[AutoMapping(typeof(Asset))]
19+
publicpartialclassAssetInputDto:InputDto<Guid>
20+
{
21+
22+
23+
}
24+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
usingSystem;
2+
usingSystem.Collections.Generic;
3+
usingSystem.ComponentModel;
4+
usingDestinyCore.Entity;
5+
usingDestiny.Core.Flow.Entities;
6+
usingDestinyCore.Mapping;
7+
usingDestiny.Core.Flow.Model.Entities;
8+
9+
namespaceDestiny.Core.Flow.Dtos
10+
{
11+
12+
[AutoMapping(typeof(Asset))]
13+
publicpartialclassAssetOutputDto:OutputDto<Guid>
14+
{
15+
16+
17+
}
18+
19+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
usingSystem;
3+
usingSystem.Collections.Generic;
4+
usingSystem.ComponentModel;
5+
usingDestinyCore.Entity;
6+
usingDestinyCore.Mapping;
7+
usingDestiny.Core.Flow.Entities;
8+
usingDestiny.Core.Flow.Model.Entities;
9+
10+
namespaceDestiny.Core.Flow.Dtos
11+
{
12+
13+
14+
[AutoMapping(typeof(Asset))]
15+
publicpartialclassAssetPageListDto:OutputDto<Guid>
16+
{
17+
18+
19+
}
20+
21+
}
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
2-
3-
4-
usingSystem;
5-
usingSystem.Collections.Generic;
6-
usingSystem.ComponentModel;
7-
usingDestinyCore.Entity;
8-
usingDestinyCore.Mapping;
9-
usingDestiny.Core.Flow.Entities;
10-
11-
namespaceDestiny.Core.Flow.Dtos
12-
{
13-
14-
/// <summary>
15-
/// 文档类型
16-
/// </summary>
17-
[AutoMapping(typeof(DocumentType))]
18-
publicpartialclassDocumentTypeInputDto:InputDto<Guid>
19-
{
20-
/// <summary>
21-
/// 获取或设置 名称
22-
/// </summary>
23-
publicstringName{get;set;}
24-
/// <summary>
25-
/// 获取或设置 排序
26-
/// </summary>
27-
publicintSort{get;set;}
28-
/// <summary>
29-
/// 获取或设置 父级
30-
/// </summary>
31-
publicGuid?ParentId{get;set;}
32-
/// <summary>
33-
/// 获取或设置 描述
34-
/// </summary>
35-
publicstringDescription{get;set;}
36-
37-
}
38-
}
1+
2+
3+
4+
usingSystem;
5+
usingSystem.Collections.Generic;
6+
usingSystem.ComponentModel;
7+
usingDestinyCore.Entity;
8+
usingDestinyCore.Mapping;
9+
usingDestiny.Core.Flow.Entities;
10+
11+
namespaceDestiny.Core.Flow.Dtos
12+
{
13+
14+
/// <summary>
15+
/// 文档类型
16+
/// </summary>
17+
[AutoMapping(typeof(DocumentType))]
18+
publicpartialclassDocumentTypeInputDto:InputDto<Guid>
19+
{
20+
/// <summary>
21+
/// 获取或设置 名称
22+
/// </summary>
23+
publicstringName{get;set;}
24+
/// <summary>
25+
/// 获取或设置 排序
26+
/// </summary>
27+
publicintSort{get;set;}
28+
/// <summary>
29+
/// 获取或设置 父级
30+
/// </summary>
31+
publicGuid?ParentId{get;set;}
32+
/// <summary>
33+
/// 获取或设置 描述
34+
/// </summary>
35+
publicstringDescription{get;set;}
36+
37+
}
38+
}
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
usingSystem;
2-
usingSystem.Collections.Generic;
3-
usingSystem.ComponentModel;
4-
usingDestinyCore.Entity;
5-
usingDestiny.Core.Flow.Entities;
6-
usingDestinyCore.Mapping;
7-
namespaceDestiny.Core.Flow.Dtos
8-
{
9-
/// <summary>
10-
/// 文档类型
11-
/// </summary>
12-
[AutoMapping(typeof(DocumentType))]
13-
publicpartialclassDocumentTypeOutputDto:OutputDto<Guid>
14-
{
15-
/// <summary>
16-
/// 获取或设置 名称
17-
/// </summary>
18-
publicstringName{get;set;}
19-
/// <summary>
20-
/// 获取或设置 排序
21-
/// </summary>
22-
publicintSort{get;set;}
23-
/// <summary>
24-
/// 获取或设置 父级
25-
/// </summary>
26-
publicGuid?ParentId{get;set;}
27-
/// <summary>
28-
/// 获取或设置 描述
29-
/// </summary>
30-
publicstringDescription{get;set;}
31-
32-
}
33-
34-
}
1+
usingSystem;
2+
usingSystem.Collections.Generic;
3+
usingSystem.ComponentModel;
4+
usingDestinyCore.Entity;
5+
usingDestiny.Core.Flow.Entities;
6+
usingDestinyCore.Mapping;
7+
namespaceDestiny.Core.Flow.Dtos
8+
{
9+
/// <summary>
10+
/// 文档类型
11+
/// </summary>
12+
[AutoMapping(typeof(DocumentType))]
13+
publicpartialclassDocumentTypeOutputDto:OutputDto<Guid>
14+
{
15+
/// <summary>
16+
/// 获取或设置 名称
17+
/// </summary>
18+
publicstringName{get;set;}
19+
/// <summary>
20+
/// 获取或设置 排序
21+
/// </summary>
22+
publicintSort{get;set;}
23+
/// <summary>
24+
/// 获取或设置 父级
25+
/// </summary>
26+
publicGuid?ParentId{get;set;}
27+
/// <summary>
28+
/// 获取或设置 描述
29+
/// </summary>
30+
publicstringDescription{get;set;}
31+
32+
}
33+
34+
}
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
2-
usingSystem;
3-
usingSystem.Collections.Generic;
4-
usingSystem.ComponentModel;
5-
usingDestinyCore.Entity;
6-
usingDestinyCore.Mapping;
7-
usingDestiny.Core.Flow.Entities;
8-
namespaceDestiny.Core.Flow.Dtos
9-
{
10-
11-
/// <summary>
12-
/// 文档类型
13-
/// </summary>
14-
[AutoMapping(typeof(DocumentType))]
15-
publicpartialclassDocumentTypePageListDto:OutputDto<Guid>
16-
{
17-
/// <summary>
18-
/// 获取或设置 名称
19-
/// </summary>
20-
publicstringName{get;set;}
21-
/// <summary>
22-
/// 获取或设置 排序
23-
/// </summary>
24-
publicintSort{get;set;}
25-
/// <summary>
26-
/// 获取或设置 父级
27-
/// </summary>
28-
publicGuid?ParentId{get;set;}
29-
/// <summary>
30-
/// 获取或设置 描述
31-
/// </summary>
32-
publicstringDescription{get;set;}
33-
34-
}
35-
36-
}
1+
2+
usingSystem;
3+
usingSystem.Collections.Generic;
4+
usingSystem.ComponentModel;
5+
usingDestinyCore.Entity;
6+
usingDestinyCore.Mapping;
7+
usingDestiny.Core.Flow.Entities;
8+
namespaceDestiny.Core.Flow.Dtos
9+
{
10+
11+
/// <summary>
12+
/// 文档类型
13+
/// </summary>
14+
[AutoMapping(typeof(DocumentType))]
15+
publicpartialclassDocumentTypePageListDto:OutputDto<Guid>
16+
{
17+
/// <summary>
18+
/// 获取或设置 名称
19+
/// </summary>
20+
publicstringName{get;set;}
21+
/// <summary>
22+
/// 获取或设置 排序
23+
/// </summary>
24+
publicintSort{get;set;}
25+
/// <summary>
26+
/// 获取或设置 父级
27+
/// </summary>
28+
publicGuid?ParentId{get;set;}
29+
/// <summary>
30+
/// 获取或设置 描述
31+
/// </summary>
32+
publicstringDescription{get;set;}
33+
34+
}
35+
36+
}

‎src/Destiny.Core.Flow.IServices/Abstractions/ICrudServiceAsync.cs‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
usingDestinyCore.Entity;
1+
usingDestinyCore.Dependency;
2+
usingDestinyCore.Entity;
23
usingDestinyCore.Filter;
34
usingDestinyCore.Filter.Abstract;
45
usingDestinyCore.Ui;
@@ -7,8 +8,9 @@
78

89
namespaceDestiny.Core.Flow.IServices.Abstractions
910
{
10-
publicinterfaceICrudServiceAsync<TPrimaryKey,TEntity,IInputDto,IPagedListDto>
11-
whereTEntity:IEntity<TPrimaryKey>,IEquatable<TPrimaryKey>
11+
publicinterfaceICrudServiceAsync<TPrimaryKey,TEntity,IInputDto,IPagedListDto>:IScopedDependency
12+
whereTEntity:class,IEntity<TPrimaryKey>
13+
whereTPrimaryKey:IEquatable<TPrimaryKey>
1214
whereIInputDto:IInputDto<TPrimaryKey>
1315
whereIPagedListDto:IOutputDto<TPrimaryKey>
1416
{

‎src/Destiny.Core.Flow.IServices/DocumentTypes/IDocumentTypeService.cs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ public interface IDocumentTypeService : IScopedDependency
2323
/// 异步创建文档类型
2424
/// </summary>
2525
/// <param name="dto">添加的文档类型DTO</param>
26-
Task<OperationResponse>CreateAsync(DocumentTypeInputDtodto);
26+
Task<OperationResponse>CreateAsync(AssetInputDtodto);
2727

2828

2929
/// <summary>
3030
/// 异步更新文档类型
3131
/// </summary>
3232
/// <param name="dto">更新的文档类型DTO</param>
33-
Task<OperationResponse>UpdateAsync(DocumentTypeInputDtodto);
33+
Task<OperationResponse>UpdateAsync(AssetInputDtodto);
3434

3535
/// <summary>
3636
/// 异步加载表单文档类型
3737
/// </summary>
3838
/// <param name="id">要加载的文档类型主键</param>
39-
Task<OperationResponse<DocumentTypeOutputDto>>LoadFormAsync(Guidid);
39+
Task<OperationResponse<AssetOutputDto>>LoadFormAsync(Guidid);
4040

4141
/// <summary>
4242
/// 异步删除文档类型
@@ -48,14 +48,14 @@ public interface IDocumentTypeService : IScopedDependency
4848
/// 异步得到文档类型分页数据
4949
/// </summary>
5050
/// <param name="request">分页请求数据</param>
51-
Task<IPagedResult<DocumentTypePageListDto>>GetPageAsync(PageRequestrequest);
51+
Task<IPagedResult<AssetPageListDto>>GetPageAsync(PageRequestrequest);
5252

5353
/// <summary>
5454
/// 异步创建或者更新
5555
/// </summary>
5656
/// <param name="dto"></param>
5757
/// <returns></returns>
58-
Task<OperationResponse>CreateOrUpdateAsync(DocumentTypeInputDtodto);
58+
Task<OperationResponse>CreateOrUpdateAsync(AssetInputDtodto);
5959

6060
/// <summary>
6161
/// 异步得到树数据

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp