Browse Source

小程序

master
wxd 11 months ago
parent
commit
f87e0c189a
  1. 11
      src/Shentun.Peis.Application.Contracts/QueueRegisters/SmallProgramResultDto.cs
  2. 14
      src/Shentun.Peis.Application/QueueRegisters/QueueRegisterAppService.cs

11
src/Shentun.Peis.Application.Contracts/QueueRegisters/SmallProgramResultDto.cs

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Shentun.Peis.QueueRegisters
{
public class SmallProgramResultDto
{
public bool IsSuccess { get; set; }
}
}

14
src/Shentun.Peis.Application/QueueRegisters/QueueRegisterAppService.cs

@ -665,7 +665,7 @@ namespace Shentun.Peis.QueueRegisters
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("api/app/QueueRegister/CreateGiveUpAsbitem")]
public async Task CreateGiveUpAsbitemAsync(CreateGiveUpAsbitemInputDto input)
public async Task<SmallProgramResultDto> CreateGiveUpAsbitemAsync(CreateGiveUpAsbitemInputDto input)
{
var registerCheckEnt = await _registerCheckRepository.FirstOrDefaultAsync(f => f.Id == input.RegisterCheckId);
if (registerCheckEnt == null)
@ -688,6 +688,11 @@ namespace Shentun.Peis.QueueRegisters
registerCheckEnt.CompleteFlag = RegisterCheckCompleteFlag.UnChecked;
await _registerCheckRepository.UpdateAsync(registerCheckEnt);
}
return new SmallProgramResultDto
{
IsSuccess = true
};
}
@ -697,7 +702,7 @@ namespace Shentun.Peis.QueueRegisters
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("api/app/QueueRegister/CreateNewAsbitemTriage")]
public async Task CreateNewAsbitemTriageAsync(CreateNewAsbitemTriageInputDto input)
public async Task<SmallProgramResultDto> CreateNewAsbitemTriageAsync(CreateNewAsbitemTriageInputDto input)
{
//登记的组合项目ID
@ -739,6 +744,11 @@ namespace Shentun.Peis.QueueRegisters
await _queueRegisterRepository.InsertAsync(entity, true);
return new SmallProgramResultDto
{
IsSuccess = true
};
}
#endregion
}

Loading…
Cancel
Save