using Utils.Jwt;

namespace Utils
{
    /// <summary>
    /// api接口统一返回数据
    /// </summary>
    public class ApiResponse
    {
        public ApiResponse()
        {
            Code = 200;
            IsSuccess = false;
            ErrMsg = "";
            Msg = "";
            OpenId = "";
        }
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrMsg { get; set; }
        /// <summary>
        /// 返回码
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Msg { get; set; }
        /// <summary>
        /// openid
        /// </summary>
        public string OpenId { get; set; }
        /// <summary>
        /// 返回查询接口的数据
        /// </summary>
        public object Data { get; set; }
        /// <summary>
        /// Token信息
        /// </summary>
        public TnToken TnToken { get; set; }
    }
}
