Exemple #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="model">占位模型</param>
 private AppResp(BaseModel <T> model)
 {
     model.Isdata = IsData(model);
     this.data    = model;
 }
Exemple #2
0
 /// <summary>
 /// AppResp初始化
 /// </summary>
 /// <param name="baseModel"></param>
 /// <returns></returns>
 public static AppResp <T> InitiAppResp(BaseModel <T> baseModel)
 {
     return(new AppResp <T>(baseModel));
 }
Exemple #3
0
 /// <summary>
 /// AppResp初始化
 /// </summary>
 /// <param name="baseModel"></param>
 /// <param name="respCode"></param>
 /// <param name="respMsg"></param>
 /// <param name="errorMsg"></param>
 /// <returns></returns>
 public static AppResp <T> InitiAppResp(BaseModel <T> baseModel, string respCode, string respMsg, string errorMsg)
 {
     return(new AppResp <T>(baseModel, respCode, respMsg, errorMsg));
 }