2502cbbda2
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 8m44s
Payment Gateway: - Add PYMSPaymentService: IPaymentGatewayService via gRPC to PYMS microservice - Add ZarinPalPaymentService: direct ZarinPal integration (backup) - Register 'pyms' payment provider in DI ConfigureServices - Add PYMS proto files (pyms_transaction.proto, pyms_public_messages.proto) - Fix VerifyDiscountWalletCharge: pass 'OK' as status instead of Authority - Update appsettings: PaymentProvider=pyms, sandbox mode, merchant ID Blog System: - Add BlogCategory, BlogPost, BlogPostImage entities and CQRS - Add proto files and gRPC services for blog management - Add Mapster profiles for blog responses Content Management: - Add SitePage entity and CQRS for static pages - Add proto and gRPC service for site pages Image/File Management: - Add LocalFileManager with disk storage + base64 serving + FMS fallback - Add ImagePathResolverInterceptor for gRPC responses - Add ImageResolverService for explicit image resolution - Add UploadsController for public file serving with FMS fallback - Add PaymentCallbackController for discount order payment callbacks Database: - Add blog and content entity migrations - Remove ImagePath MaxLength constraints - Remove old FileManagementService (replaced by LocalFileManager)
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using CMSMicroservice.Domain.Enums;
|
|
|
|
namespace CMSMicroservice.Application.BlogPostCQ.Queries.GetBlogPost;
|
|
|
|
public class BlogPostDto
|
|
{
|
|
public long Id { get; set; }
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Slug { get; set; } = string.Empty;
|
|
public string? Summary { get; set; }
|
|
public string HtmlContent { get; set; } = string.Empty;
|
|
public string? FeaturedImagePath { get; set; }
|
|
public string? FeaturedImageThumbnailPath { get; set; }
|
|
public BlogPostStatus Status { get; set; }
|
|
public string StatusName { get; set; } = string.Empty;
|
|
public DateTime? PublishedAt { get; set; }
|
|
public int ViewCount { get; set; }
|
|
public long AuthorUserId { get; set; }
|
|
public bool IsFeatured { get; set; }
|
|
public int SortOrder { get; set; }
|
|
public DateTime Created { get; set; }
|
|
public DateTime? LastModified { get; set; }
|
|
public List<BlogPostCategoryDto> Categories { get; set; } = new();
|
|
public List<BlogPostTagDto> Tags { get; set; } = new();
|
|
}
|
|
|
|
public class BlogPostCategoryDto
|
|
{
|
|
public long Id { get; set; }
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Slug { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class BlogPostTagDto
|
|
{
|
|
public long Id { get; set; }
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Name { get; set; } = string.Empty;
|
|
}
|