Files

33 lines
1.0 KiB
C#

using AgileConfig.Server.Data.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace AgileConfig.Server.Apisite.Models
{
public class AppVM
{
[Required(ErrorMessage ="应用Id不能为空")]
[MaxLength(36, ErrorMessage = "应用Id长度不能超过36位")]
public string Id { get; set; }
[Required(ErrorMessage = "应用名称不能为空")]
[MaxLength(50, ErrorMessage = "应用名称长度不能超过50位")]
public string Name { get; set; }
[MaxLength(36, ErrorMessage = "密钥长度不能超过36位")]
public string Secret { get; set; }
public bool Enabled { get; set; }
public bool Inheritanced { get; set; }
public List<App> inheritancedApps { get; set; }
}
public class AppListVM : AppVM
{
public DateTime CreateTime { get; set; }
public DateTime? UpdateTime { get; set; }
}
}