31 lines
731 B
C#
31 lines
731 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace CampusErrand.Models;
|
|
|
|
/// <summary>
|
|
/// 服务入口表
|
|
/// </summary>
|
|
public class ServiceEntry
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>服务名称</summary>
|
|
[MaxLength(32)]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
/// <summary>图标图片地址</summary>
|
|
[MaxLength(512)]
|
|
public string IconUrl { get; set; } = string.Empty;
|
|
|
|
/// <summary>跳转页面路径</summary>
|
|
[MaxLength(256)]
|
|
public string PagePath { get; set; } = string.Empty;
|
|
|
|
/// <summary>排序权重</summary>
|
|
public int SortOrder { get; set; }
|
|
|
|
/// <summary>是否启用</summary>
|
|
public bool IsEnabled { get; set; } = true;
|
|
}
|