using Newtonsoft.Json; using OfficeOpenXml.Attributes; using SqlSugar; using System; using ARW.Model.Models.Business.Custom.Regions; using System.Collections.Generic; namespace ARW.Model.Vo.Api.Custom.Regions { /// /// 省市区数据表展示对象Api /// /// @author admin /// @date 2023-06-09 /// public class RegionVoApi { /// /// 描述 :区划信息ID /// [SugarColumn(IsTreeKey = true)] public int RegionId { get; set; } /// /// 描述 :区划名称 /// public string Label { get; set; } /// /// 描述 :父级ID /// public int RegionPid { get; set; } /// /// 描述 :区划编码 /// public string Value { get; set; } /// /// 子级 /// [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] public List Children { get; set; } } /// /// 省市区数据表详情展示对象Api /// public class RegionApiDetailsVo { [EpplusIgnore] public int RegionId { get; set; } [EpplusTableColumn(Header = "区划名称")] public string RegionName { get; set; } [EpplusTableColumn(Header = "父级ID")] public int RegionPid { get; set; } [EpplusTableColumn(Header = "区划编码")] public string RegionCode { get; set; } [EpplusTableColumn(Header = "层级(1省级 2市级 3区/县级)")] public int RegionLevel { get; set; } public string ParentName { get; set; } [JsonProperty(NullValueHandling = NullValueHandling.Ignore)] [SugarColumn(IsIgnore = true)] public List Children { get; set; } } }