ResponseModel.cs 675 Bytes
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HHECS.Application.ApiModel
{
    /// <summary>
    /// 接口返回值类型
    /// </summary>
    public class ResponseModel
    {
        [JsonProperty("code")]
        public string Code { get; set; }
        [JsonProperty("msg")]
        public string Msg { get; set; }

    }

    /// <summary>
    /// 接口返回值类型
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ResponseModel<T> : ResponseModel
    {
        [JsonProperty("data")]
        public T Data { get; set; }
    }
}