public ActionResult <object> AddDict([FromForm] CrmDictEntity dict) { var isok = _repository.AddDict(dict); if (isok) { _cache.Remove(_allDictKey); } else { return(false.ResponseDataError("添加的所属分类+key值已经存在")); } return(true.ResponseSuccessFailure()); }