/// <summary>
 /// 新增、修改外部注册接口授权列表
 /// </summary>
 /// <param name="param"></param>
 /// <returns></returns>
 public bool EditInterfaceAuth(InterfaceAuth param)
 {
     try
     {
         using (var db = new DbContext())
         {
             if (string.IsNullOrEmpty(param.id))
             {
                 return(db.Insert(param).Execute() > 0);
             }
             return(db.Update(param).Execute() > 0);
         }
     }
     catch (Exception ex)
     {
         Logger.Instance.Error("编辑外部接口授权时发生异常:", ex);
         return(false);
     }
 }
 /// <summary>
 /// 新增、修改外部注册接口授权列表
 /// </summary>
 /// <param name="param"></param>
 /// <returns></returns>
 public Task <ResponseModel> EditInterfaceAuth(InterfaceAuth param)
 {
     return(Logic.EditInterfaceAuth(param) ?
            Task.FromResult(new ResponseModel(ResponseCode.Success, "操作成功"))
         : Task.FromResult(new ResponseModel(ResponseCode.Error, "操作失败")));
 }