feat: add SetIsSent endpoint to update contract send status
This commit is contained in:
@@ -148,7 +148,7 @@ public interface IInstitutionContractApplication
|
|||||||
/// <param name="id">شناسه قرارداد</param>
|
/// <param name="id">شناسه قرارداد</param>
|
||||||
/// <returns>نتیجه عملیات</returns>
|
/// <returns>نتیجه عملیات</returns>
|
||||||
OperationResult UnSign(long id);
|
OperationResult UnSign(long id);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ایجاد حساب کاربری برای طرف قرارداد
|
/// ایجاد حساب کاربری برای طرف قرارداد
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -898,6 +898,7 @@ public class InstitutionContractApplication : IInstitutionContractApplication
|
|||||||
return opration.Succcedded();
|
return opration.Succcedded();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void CreateContractingPartyAccount(long contractingPartyid, long accountId)
|
public void CreateContractingPartyAccount(long contractingPartyid, long accountId)
|
||||||
{
|
{
|
||||||
_institutionContractRepository.CreateContractingPartyAccount(contractingPartyid, accountId);
|
_institutionContractRepository.CreateContractingPartyAccount(contractingPartyid, accountId);
|
||||||
|
|||||||
@@ -916,6 +916,17 @@ public class institutionContractController : AdminBaseController
|
|||||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||||
$"قرارداد های مالی.xlsx");
|
$"قرارداد های مالی.xlsx");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// تنظیم وضعیت ارسال قرارداد
|
||||||
|
/// </summary>
|
||||||
|
[HttpPost("set-is-sent")]
|
||||||
|
public async Task<ActionResult<OperationResult>> SetIsSent([FromBody] SetInstitutionContractSendFlagRequest request)
|
||||||
|
{
|
||||||
|
var result = await _institutionContractApplication.SetContractSendFlag(request);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class InstitutionContractCreationGetRepresentativeIdResponse
|
public class InstitutionContractCreationGetRepresentativeIdResponse
|
||||||
@@ -969,4 +980,4 @@ public class VerifyCodeRequest
|
|||||||
{
|
{
|
||||||
public long ContractingPartyId { get; set; }
|
public long ContractingPartyId { get; set; }
|
||||||
public string verifyCode { get; set; }
|
public string verifyCode { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user