mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-19 21:56:26 +08:00
25 lines
826 B
C#
25 lines
826 B
C#
using Util.Samples.Service.Abstractions.Systems;
|
|
using Util.Samples.Service.Dtos.Systems;
|
|
using Util.Samples.Service.Queries.Systems;
|
|
using Util.Webs.Controllers;
|
|
|
|
namespace Util.Samples.Apis.Systems {
|
|
/// <summary>
|
|
/// 应用程序控制器
|
|
/// </summary>
|
|
public class ApplicationController : CrudControllerBase<ApplicationDto, ApplicationQuery> {
|
|
/// <summary>
|
|
/// 初始化应用程序控制器
|
|
/// </summary>
|
|
/// <param name="service">应用程序服务</param>
|
|
public ApplicationController( IApplicationService service ) : base( service ) {
|
|
}
|
|
|
|
/// <summary>
|
|
/// 将Dto转换为列表项
|
|
/// </summary>
|
|
protected override Item ToItem( ApplicationDto dto ) {
|
|
return new Item( dto.Name,dto.Id );
|
|
}
|
|
}
|
|
} |