using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Http; using Oms.Domain.RechargeAggregate.Enums; namespace Oms.Application.Dtos.Recharge; /// /// 充值提交入参(multipart/form-data,截图字段名为 rechargeScreenshot)。 /// public class SubmitRechargeFormInput { /// /// 客户主键(t_customer.Id)。 /// public int? CustomerId { get; set; } /// /// 充值金额。 /// [Range(typeof(decimal), "0.01", "999999999999")] public decimal RechargeAmount { get; set; } /// /// 支付方式:1=微信,2=支付宝,3=银行转账。 /// [Required] public PayType PayType { get; set; } /// /// 备注。 /// [StringLength(512)] public string? Remark { get; set; } /// /// 充值截图文件(可选;未上传时存 "0")。 /// public IFormFile? RechargeScreenshot { get; set; } }