using Tiger.Model;
|
using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using Tiger.IBusiness;
|
using System.Threading.Tasks;
|
using Rhea.Common;
|
using System.Net;
|
using System.Linq;
|
using Newtonsoft.Json;
|
|
namespace Tiger.Business
|
{
|
public partial class Biz
|
{
|
/// <summary>
|
/// 获取参数
|
/// </summary>
|
/// <param name="group"></param>
|
/// <param name="code"></param>
|
/// <returns></returns>
|
public async Task<ApiAction<List<SYS_PARAM>>> getSysParam( string group, string code)
|
{
|
var action = new ApiAction<List<SYS_PARAM>>();
|
try
|
{
|
action.Data = code.IsNullOrEmpty()? Cache.SysParam.Params.Where(x=>x.PRMG_CODE == group).ToList(): new List<SYS_PARAM>() { Cache.SysParam[code, group] } ;
|
action.Message = $"获取参数成功。";
|
}
|
catch (Exception ex)
|
{
|
action.CatchExceptionWithLog(ex, $"获取参数异常");
|
}
|
return action;
|
}
|
}
|
}
|