public WebResponseContent Set(ResponseType responseType, string msg, bool?status)
 {
     if (status != null)
     {
         this.Status = (bool)status;
     }
     this.Code = ((int)responseType).ToString();
     if (!string.IsNullOrEmpty(msg))
     {
         Message = msg;
         return(this);
     }
     Message = responseType.GetMsg();
     return(this);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="responseData"></param>
 /// <param name="responseType">返回消息类型</param>
 /// <param name="msg">返回消息,若msg为null,则取responseType的描述信息</param>
 /// <param name="status">返回状态,目前只有0、失败,1、成功,2、token过期</param>
 public ApiResponseContent Set(ResponseType responseType, string msg, ApiStatutsCode?status = null)
 {
     if (status != null)
     {
         this.Status = (int)status;
     }
     if (!string.IsNullOrEmpty(msg))
     {
         this.Message = msg;
         return(this);
     }
     if (!string.IsNullOrEmpty(this.Message))
     {
         return(this);
     }
     this.Message = responseType.GetMsg();
     return(this);
 }