admin/src/Oms.Application/Dtos/Recharge/SubmitRechargeFormInput.cs
zzh b0fd3a30e1
All checks were successful
Build and Deploy / deploy (push) Successful in 1m29s
feat: 微信在线支付入账加固(CAS 防重、禁人工审未付单、下单失败清理)
回调/查单/补偿走事务内原子占单再入账;关单同步驳回充值;创建先落单失败即 Failed;列表标记在线支付态。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-12-01 12:25:45 +08:00

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