姜旭之
1 year ago
8 changed files with 79 additions and 2 deletions
@ -0,0 +1,32 @@ |
|||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using Microsoft.Extensions.Logging; |
||||
|
using WTA.Application.Identity.Entities.SystemManagement; |
||||
|
using WTA.Shared.Application; |
||||
|
using WTA.Shared.Controllers; |
||||
|
using WTA.Shared.Data; |
||||
|
|
||||
|
namespace WTA.Application.Identity.Controllers; |
||||
|
|
||||
|
public class CodeSettingController : GenericController<CodeSetting, CodeSetting, CodeSetting, CodeSetting, CodeSetting, CodeSetting> |
||||
|
{ |
||||
|
public CodeSettingController(ILogger<CodeSetting> logger, IRepository<CodeSetting> repository) : base(logger, repository) |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
[Display(Name = "导出Excel")] |
||||
|
public override IActionResult Export([FromBody] PaginationModel<CodeSetting, CodeSetting> model, bool includeAll = false, bool includeDeleted = false) |
||||
|
{ |
||||
|
return base.Export(model, includeAll, includeDeleted); |
||||
|
} |
||||
|
[Display(Name = "搜索")] |
||||
|
public override IActionResult Index([FromBody] PaginationModel<CodeSetting, CodeSetting> model) |
||||
|
{ |
||||
|
return base.Index(model); |
||||
|
} |
||||
|
[Display(Name = "新增")] |
||||
|
public override IActionResult Create([FromBody] CodeSetting model) |
||||
|
{ |
||||
|
return base.Create(model); |
||||
|
} |
||||
|
} |
@ -0,0 +1,29 @@ |
|||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
using WTA.Shared.Attributes; |
||||
|
using WTA.Shared.Domain; |
||||
|
|
||||
|
namespace WTA.Application.Identity.Entities.SystemManagement; |
||||
|
|
||||
|
[SystemManagement] |
||||
|
[Order(4)] |
||||
|
[Display(Name = "通用代码")] |
||||
|
public class CodeSetting : BaseEntity |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 项目
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "项目")] |
||||
|
public string Project { set; get; } = null!; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 值
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "值")] |
||||
|
public string Value { set; get; } = null!; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 描述
|
||||
|
/// </summary>
|
||||
|
[Display(Name = "描述")] |
||||
|
public string Description { set; get; } = null!; |
||||
|
} |
Loading…
Reference in new issue