/// <summary> /// 返回成功 /// </summary> /// <param name="obj"></param> /// <param name="ignoreNames"></param> /// <param name="usePassword"></param> /// <returns></returns> protected IActionResult Success(object obj, IEnumerable <string> ignoreNames, bool usePassword = false) { return(ActionResultUtil.Success(obj, ignoreNames, usePassword)); }
/// <summary> /// 返回成功 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="objs"></param> /// <param name="usePassword"></param> /// <returns></returns> protected IActionResult Success <T>(List <T> objs, bool usePassword = false) { return(ActionResultUtil.Success(objs, usePassword)); }
/// <summary> /// 返回成功 /// </summary> /// <param name="msg"></param> /// <param name="usePassword"></param> /// <returns></returns> protected IActionResult Success(string msg = "SUCCESS", bool usePassword = false) { return(ActionResultUtil.Success(msg, usePassword)); }
/// <summary> /// 返回成功 /// </summary> /// <param name="obj"></param> /// <param name="usePassword"></param> /// <returns></returns> protected IActionResult Success(object obj, bool usePassword = false) { return(ActionResultUtil.Success(obj, usePassword)); }
/// <summary> /// 返回成功 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="page"></param> /// <param name="usePassword"></param> /// <returns></returns> protected IActionResult Success <T>(Page <T> page, bool usePassword = false) { return(ActionResultUtil.Success(page, usePassword)); }
/// <summary> /// 返回成功 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="page"></param> /// <param name="ignoreNames"></param> /// <param name="usePassword"></param> /// <returns></returns> protected IActionResult Success <T>(Page <T> page, IEnumerable <string> ignoreNames, bool usePassword = false) { return(ActionResultUtil.Success(page, ignoreNames, usePassword)); }
/// <summary> /// 返回成功 /// </summary> /// <param name="msg"></param> /// <param name="usePassword"></param> /// <returns></returns> protected IActionResult Success(string msg = "SUCCESS") { return(ActionResultUtil.Success(msg)); }
/// <summary> /// 返回成功 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="page"></param> /// <param name="usePassword"></param> /// <returns></returns> protected IActionResult Success <T>(Page <T> page) { return(ActionResultUtil.Success(page)); }
/// <summary> /// 返回成功 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="objs"></param> /// <param name="usePassword"></param> /// <returns></returns> protected IActionResult Success <T>(List <T> objs) { return(ActionResultUtil.Success(objs)); }
/// <summary> /// 返回成功 /// </summary> /// <param name="obj"></param> /// <param name="usePassword"></param> /// <returns></returns> protected IActionResult Success(object obj) { return(ActionResultUtil.Success(obj)); }
/// <summary> /// 返回成功,Code为 1 /// </summary> /// <param name="obj"></param> /// <param name="password"></param> /// <returns></returns> protected IActionResult Success(object obj, string password) { return(ActionResultUtil.Success(obj, password)); }