Browse Source

id的url参数恢复成path路径

master
wanggang 1 year ago
parent
commit
226aba1ec5
  1. 3
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs

3
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/CodeSettingTables/CodeSettingAppService.cs

@ -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);

Loading…
Cancel
Save