x_query_assemble_surface.dart 769 B

1234567891011121314151617181920212223242526
  1. import 'package:get/get.dart';
  2. import '../models/index.dart';
  3. import '../utils/index.dart';
  4. /// 查询服务
  5. class QueryAssembleSurfaceService extends GetxService {
  6. static QueryAssembleSurfaceService get to => Get.find();
  7. String baseUrl() {
  8. return O2ApiManager.instance.getModuleBaseUrl(
  9. O2DistributeModuleEnum.x_query_assemble_surface) ?? '';
  10. }
  11. /// 全文搜索接口
  12. Future<O2SearchV2PageModel?> searchV2(O2SearchV2Form form) async {
  13. try {
  14. ApiResponse response = await O2HttpClient.instance.post('${baseUrl()}jaxrs/search', form.toJson());
  15. return O2SearchV2PageModel.fromJson(response.data);
  16. } catch (err, stackTrace) {
  17. OLogger.e('全文搜索接口查询失败', err, stackTrace);
  18. }
  19. return null;
  20. }
  21. }