using APT.BaseData.Domain.Entities.FM; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace APT.BaseData.Domain.ApiModel { /// /// 外部连接配置参数 /// public class ExtConnParamModel { private Guid? _orgId; private Dictionary _params = new Dictionary(); public Dictionary Params { get { return _params; } } /// /// 参数 /// /// /// public string this[string key] { get { return GetParam(key); } } public Guid? OrgId { get { return _orgId; } set { _orgId = value; } } public T_FM_BASE_CONFIG BaseConfig { get; set; } /// /// 设置参数 /// /// /// public void AddParam(string key,string value) { _params[key] = value; } /// /// 获取参数 /// /// /// public string GetParam(string key) { string v = string.Empty; foreach (var p in _params) { if (string.Compare(p.Key, key, true) == 0) { v = p.Value; break; } } return v; } } }