using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; using DW5S.DTO; namespace DW5S.ViewModel { /// /// 服务状态信息 /// public class SvrViewModel { public SvrViewModel(EnumSvrType svr, string v1, string v2, string v3, DateTimeOffset now) { this.SvrType = svr; this.SvrID = v1; this.BaseHttpAddr = v2; this.SwaggerAddr = v3; this.ReportTime = now; } /// /// 服务类型 /// [Display(Name = "服务类型")] public EnumSvrType SvrType { get; set; } /// /// 服务ID /// [Display(Name = "服务ID")] public string SvrID { get; set; } /// /// 服务Http基地址 /// [Display(Name = "服务Http地址",AutoGenerateField =false)] public string BaseHttpAddr { get; set; } /// ///接口地址 /// [Display(Name = "接口地址")] public string SwaggerAddr { get; set; } /// /// 状态上报时间 /// [Display(Name = "状态上报时间")] public DateTimeOffset ReportTime { get; set; } } }