|
|
@ -93,6 +93,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables |
|
|
|
/// 按ID获取唯一实体
|
|
|
|
/// </summary>
|
|
|
|
[HttpPost] |
|
|
|
[Route("{id}")] |
|
|
|
virtual public async Task<CodeSettingDto> GetAsync(Guid id) |
|
|
|
{ |
|
|
|
var result = await _repository.GetAsync(id); |
|
|
@ -193,6 +194,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables |
|
|
|
/// <param name="input">修改实体DTO</param>
|
|
|
|
/// <returns>实体DTO</returns>
|
|
|
|
[HttpPost] |
|
|
|
[Route("{id}")] |
|
|
|
virtual public async Task<CodeSettingDto> UpdateAsync(Guid id, CodeSettingUpdateDto input) |
|
|
|
{ |
|
|
|
var _first = _repository.Where(p => p.Project == input.Project && p.Value == input.Value).FirstOrDefault(); |
|
|
@ -216,6 +218,7 @@ namespace Win.Sfs.SettleAccount.Entities.CodeSettingTables |
|
|
|
/// <param name="id">ID</param>
|
|
|
|
/// <returns>无</returns>
|
|
|
|
[HttpPost] |
|
|
|
[Route("{id}")] |
|
|
|
virtual public async Task DeleteAsync(Guid id) |
|
|
|
{ |
|
|
|
var entity = await GetFromCacheAsync(id); |
|
|
|