ql_apimanager_backend/Apimanager_backend/Dtos/PaymentDto.cs

23 lines
557 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Apimanager_backend.Models;
using System.ComponentModel.DataAnnotations;
namespace Apimanager_backend.Dtos
{
public class PaymentDto
{
public int Id { get; set; }
/// <summary>支付方式(如 Alipay、WeChat、Stripe...</summary>
[Required]
public PaymentType Method { get; set; } // varchar(50)
/// <summary>是否启用此配置</summary>
public bool IsEnabled { get; set; } = true;
/// <summary>备注</summary>
public string? Description { get; set; }
}
}