/// <summary> /// 更新数据 /// </summary> public async Task <DataTypeDto> Update(DataTypeInputDto input) { try { DataTypeEntity entity = new DataTypeEntity { Id = input.Id, TypeName = input.TypeName, TypeDesc = input.TypeDesc, DictCodeID = input.DictCodeID, ParentID = input.ParentID }; var query = await _IDataTypeRepository.UpdateAsync(entity); var result = entity.MapTo <DataTypeDto>(); return(result); } catch (Exception ex) { throw new Exception(ex.Message); } }