You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
903 B

using System.ComponentModel.DataAnnotations;
namespace Entity.Api.Req;
public partial class ElecPriceModelVersionDetailReq
{
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
/// <summary>
/// 版本
/// </summary>
public int Version {get;set;}
private double _price;
/// <summary>
/// Desc:价格;以分为单位存储
/// Default:
/// Nullable:True
/// </summary>
// [SugarColumn(ColumnName="price")]
public double Price
{
get => _price;
set
{
if (value < 0)
{
throw new ArgumentException("电价不能为负数");
}
_price = Math.Round(value, 4);
}
}
/// <summary>
/// Desc:尖峰平谷类型;1-尖2-峰3-平4-谷
/// </summary>
public int? Type {get;set;}
}