import {
  GetIndustryListPagesType,
  GetListAPPCompanyInspectionPageType,
  ListInspectionPriceUnit,
} from '@/api/interface/service';
import request from '@/api/request';

export class ServiceAPI {
  // 一级行业列表
  static getIndustryListPages: GetIndustryListPagesType = (params) =>
    request.post('/pms/industry/listPages', params);

  // 单位服务列表-小程序展示
  static getListAPPCompanyInspectionPage: GetListAPPCompanyInspectionPageType =
    (params) =>
      request.post(
        '/pms/company-inspection/listAPPCompanyInspectionPage',
        params,
      );

  // 价格单位列表
  static listInspectionPriceUnit: ListInspectionPriceUnit = (params) =>
    request.get('/pms/company-inspection/listInspectionPriceUnit', params);
}
