public async Task Add(PostRecord record) { if (await _routeService.ExistByPath(record.Route.Path)) { throw new ValidationException($"路由路径 '{record.Route.Path}' 已经存在!"); } _repository.Value.Create(record); }