Files
2020-05-23 00:08:01 +08:00

22 lines
737 B
C#

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; }
}
}