using System.ComponentModel.DataAnnotations; namespace CampusErrand.Models.Dtos; /// /// 服务入口更新请求 /// public class ServiceEntryUpdateRequest { /// 图标图片地址 [Required(ErrorMessage = "图标图片地址不能为空")] [MaxLength(512)] public string IconUrl { get; set; } = string.Empty; /// 排序权重 public int SortOrder { get; set; } /// 是否启用 public bool IsEnabled { get; set; } = true; } /// /// 服务入口响应 /// public class ServiceEntryResponse { public int Id { get; set; } public string Name { get; set; } = string.Empty; public string IconUrl { get; set; } = string.Empty; public string PagePath { get; set; } = string.Empty; public int SortOrder { get; set; } public bool IsEnabled { get; set; } }