using System; using FreeSql.DataAnnotations; using System.ComponentModel.DataAnnotations; namespace Admin.Core.Model.Admin { /// /// 接口管理 /// [Table(Name = "ad_api")] [Index("uk_api_path", "Path", true)] public class ApiEntity : EntityBase { /// /// 所属模块 /// public long? ParentId { get; set; } /// /// 接口命名 /// [MaxLength(50)] public string Name { get; set; } /// /// 接口名称 /// [MaxLength(500)] public string Label { get; set; } /// /// 接口地址 /// [MaxLength(500)] public string Path { get; set; } /// /// 接口提交方法 /// [MaxLength(50)] public string HttpMethods { get; set; } /// /// 说明 /// [MaxLength(500)] public string Description { get; set; } /// /// 排序 /// public int Sort { get; set; } /// /// 启用 /// public bool Enabled { get; set; } = true; } }