using System.ComponentModel.DataAnnotations; namespace Dlhis.Canteen.MealSupplementRecord.Request; public class MealSupplementInitImportRequest { [Required(ErrorMessage = "工号不能为空")] public string Code { get; set; } /// /// 余额 /// [Range(1, int.MaxValue, ErrorMessage = "余额有误")] public decimal Balance { get; set; } }