12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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
- {
- /// <summary>
- /// 服务状态信息
- /// </summary>
- 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;
- }
- /// <summary>
- /// 服务类型
- /// </summary>
- [Display(Name = "服务类型")]
- public EnumSvrType SvrType { get; set; }
- /// <summary>
- /// 服务ID
- /// </summary>
- [Display(Name = "服务ID")]
- public string SvrID { get; set; }
- /// <summary>
- /// 服务Http基地址
- /// </summary>
- [Display(Name = "服务Http地址",AutoGenerateField =false)]
- public string BaseHttpAddr { get; set; }
- /// <summary>
- ///接口地址
- /// </summary>
- [Display(Name = "接口地址")]
- public string SwaggerAddr { get; set; }
- /// <summary>
- /// 状态上报时间
- /// </summary>
- [Display(Name = "状态上报时间")]
- public DateTimeOffset ReportTime { get; set; }
- }
- }
|