Add ImagePath column to ManualPayments table in CMS schema
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 1m52s

This commit is contained in:
masoodafar-web
2026-01-02 02:13:57 +03:30
parent 1cf501711f
commit bea43a0569
8 changed files with 3992 additions and 1 deletions
@@ -37,4 +37,9 @@ public class CreateManualPaymentCommand : IRequest<long>
/// مسیر تصویر فیش واریزی (اختیاری) /// مسیر تصویر فیش واریزی (اختیاری)
/// </summary> /// </summary>
public string? ImagePath { get; set; } public string? ImagePath { get; set; }
/// <summary>
/// شناسه سند در FMS (اختیاری)
/// </summary>
public long? ImageDocumentId { get; set; }
} }
@@ -98,6 +98,7 @@ public class CreateManualPaymentCommandHandler : IRequestHandler<CreateManualPay
Description = request.Description, Description = request.Description,
ReferenceNumber = request.ReferenceNumber, ReferenceNumber = request.ReferenceNumber,
ImagePath = request.ImagePath, ImagePath = request.ImagePath,
ImageDocumentId = request.ImageDocumentId,
Status = ManualPaymentStatus.Approved, Status = ManualPaymentStatus.Approved,
RequestedBy = adminUserId, RequestedBy = adminUserId,
ApprovedBy = adminUserId, ApprovedBy = adminUserId,
@@ -43,6 +43,11 @@ public class ManualPayment : BaseAuditableEntity
/// </summary> /// </summary>
public string? ImagePath { get; set; } public string? ImagePath { get; set; }
/// <summary>
/// شناسه سند در FMS (اختیاری)
/// </summary>
public long? ImageDocumentId { get; set; }
/// <summary> /// <summary>
/// وضعیت تایید /// وضعیت تایید
/// </summary> /// </summary>
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,30 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace CMSMicroservice.Infrastructure.Persistence.Migrations
{
/// <inheritdoc />
public partial class u19 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ImagePath",
schema: "CMS",
table: "ManualPayments",
type: "nvarchar(max)",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ImagePath",
schema: "CMS",
table: "ManualPayments");
}
}
}
@@ -1879,6 +1879,9 @@ namespace CMSMicroservice.Infrastructure.Persistence.Migrations
.HasMaxLength(1000) .HasMaxLength(1000)
.HasColumnType("nvarchar(1000)"); .HasColumnType("nvarchar(1000)");
b.Property<string>("ImagePath")
.HasColumnType("nvarchar(max)");
b.Property<bool>("IsDeleted") b.Property<bool>("IsDeleted")
.HasColumnType("bit"); .HasColumnType("bit");
@@ -3,7 +3,7 @@
<TargetFramework>net9.0</TargetFramework> <TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<Version>0.0.165</Version> <Version>0.0.167</Version>
<DebugType>None</DebugType> <DebugType>None</DebugType>
<DebugSymbols>False</DebugSymbols> <DebugSymbols>False</DebugSymbols>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild> <GeneratePackageOnBuild>False</GeneratePackageOnBuild>
@@ -77,6 +77,7 @@ message CreateManualPaymentRequest
string description = 4; string description = 4;
google.protobuf.StringValue reference_number = 5; google.protobuf.StringValue reference_number = 5;
google.protobuf.StringValue image_path = 6; google.protobuf.StringValue image_path = 6;
google.protobuf.Int64Value image_document_id = 7;
} }
message CreateManualPaymentResponse message CreateManualPaymentResponse
@@ -135,6 +136,7 @@ message ManualPaymentModel
google.protobuf.Int64Value transaction_id = 18; google.protobuf.Int64Value transaction_id = 18;
google.protobuf.Timestamp created = 19; google.protobuf.Timestamp created = 19;
google.protobuf.StringValue image_path = 20; google.protobuf.StringValue image_path = 20;
google.protobuf.Int64Value image_document_id = 21;
} }
message ProcessManualMembershipPaymentRequest message ProcessManualMembershipPaymentRequest