17 lines
466 B
C#
17 lines
466 B
C#
namespace ZR.ServiceCore.Model;
|
|
|
|
[SugarTable("ip_rate_limit_policy")]
|
|
[Tenant("0")]
|
|
public class IpRateLimitPolicy
|
|
{
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
[JsonConverter(typeof(ValueToStringConverter))]
|
|
public long Id { get; set; }
|
|
|
|
public string Ip { get; set; }
|
|
|
|
[Navigate(NavigateType.OneToMany, nameof(RateLimitRule.IpRateLimitPolicyId))]
|
|
public List<RateLimitRule> Rules { get; set; }
|
|
|
|
public char Flag { get; set; } = '0';
|
|
} |