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.
nhet_cn_back_main/Entity/Api/Req/ElecPriceModelVersionDetail...

40 lines
903 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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;}
}