34 lines
908 B
C#
34 lines
908 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace CampusErrand.Models.Dtos;
|
|
|
|
/// <summary>
|
|
/// 服务入口更新请求
|
|
/// </summary>
|
|
public class ServiceEntryUpdateRequest
|
|
{
|
|
/// <summary>图标图片地址</summary>
|
|
[Required(ErrorMessage = "图标图片地址不能为空")]
|
|
[MaxLength(512)]
|
|
public string IconUrl { get; set; } = string.Empty;
|
|
|
|
/// <summary>排序权重</summary>
|
|
public int SortOrder { get; set; }
|
|
|
|
/// <summary>是否启用</summary>
|
|
public bool IsEnabled { get; set; } = true;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 服务入口响应
|
|
/// </summary>
|
|
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; }
|
|
}
|