2026-03-18 01:30:27 +08:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using SqlSugar;
|
2026-03-18 00:05:53 +08:00
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Application.Region.Dtos
|
|
|
|
|
|
{
|
2026-03-18 01:30:27 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 区域分页查询输入
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class RegionPageInput : Pagination
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 区域名称(模糊查询)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 区域编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string? Code { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-03-18 00:05:53 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 行政区域数据传输对象
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class RegionDto
|
|
|
|
|
|
{
|
2026-03-18 01:30:27 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 主键ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
2026-03-18 00:05:53 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 区域编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 区域名称
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Name { get; set; }
|
2026-03-18 01:30:27 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 父级编码 (省份为大区Code,城市为省份Code,区县为城市Code)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ParentCode { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 新增/更新行政区域输入
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class RegionInput
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 主键ID (更新时必填)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 区域编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required(ErrorMessage = "区域编码不能为空")]
|
|
|
|
|
|
[MaxLength(50, ErrorMessage = "区域编码最大长度为50")]
|
|
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 区域名称
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Required(ErrorMessage = "区域名称不能为空")]
|
|
|
|
|
|
[MaxLength(50, ErrorMessage = "区域名称最大长度为50")]
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 父级编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[MaxLength(50, ErrorMessage = "父级编码最大长度为50")]
|
|
|
|
|
|
public string ParentCode { get; set; }
|
2026-03-18 00:05:53 +08:00
|
|
|
|
}
|
2026-03-18 01:30:27 +08:00
|
|
|
|
}
|