Beispiel #1
0
 /// <summary>
 /// RespCode赋值
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="appResp"></param>
 /// <param name="respCode"></param>
 /// <returns></returns>
 public static AppResp <T> SetRespCode <T>(this AppResp <T> appResp, string respCode) where T : class
 {
     appResp.RespCode = respCode;
     return(appResp);
 }
Beispiel #2
0
 /// <summary>
 /// AppResp初始化
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="baseModel"></param>
 /// <param name="respCode"></param>
 /// <param name="respMsg"></param>
 /// <param name="errorMsg"></param>
 /// <returns></returns>
 public static AppResp <T> InitiAppResp <T>(this BaseModel <T> baseModel, string respCode, string respMsg, string errorMsg) where T : class
 {
     return(AppResp <T> .InitiAppResp(baseModel, respCode, respMsg, errorMsg));
 }
Beispiel #3
0
 /// <summary>
 /// ErrorMsg赋值
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="appResp"></param>
 /// <param name="errorMsg"></param>
 /// <returns></returns>
 public static AppResp <T> SetErrorMsg <T>(this AppResp <T> appResp, string errorMsg) where T : class
 {
     appResp.ErrorMsg = errorMsg;
     return(appResp);
 }
Beispiel #4
0
 /// <summary>
 /// AppResp初始化
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="baseModel"></param>
 /// <returns></returns>
 public static AppResp <T> InitiAppResp <T>(this BaseModel <T> baseModel) where T : class
 {
     return(AppResp <T> .InitiAppResp(baseModel));
 }
Beispiel #5
0
 /// <summary>
 /// RespMsg赋值
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="appResp"></param>
 /// <param name="respMsg"></param>
 /// <returns></returns>
 public static AppResp <T> SetRespMsg <T>(this AppResp <T> appResp, string respMsg) where T : class
 {
     appResp.RespMsg = respMsg;
     return(appResp);
 }