async getMatchSite()

in src/libs/apiService.ts [219:262]


  async getMatchSite(
    requestParams: GetMatchSiteReq
  ): Promise<GetMatchSiteRes | null> {
    try {
      let params = {
        action: 'GetMatchSite',
        version: '2024-09-10',
        protocol: 'https',
        method: 'GET',
        authType: 'AK',
        bodyType: 'json',
        reqBodyType: 'json',
        style: 'RPC',
        pathname: '/',
        toMap: function () {
          return this;
        }
      };
      let request = new $OpenApi.OpenApiRequest({
        query: {
          RecordName: requestParams.RecordName
        }
      });
      let runtime = {
        toMap: function () {
          return this;
        }
      };
      const res = await this.client.callApi(params, request, runtime);
      if (res.statusCode === 200 && res.body) {
        const ret: GetMatchSiteRes = {
          code: res.statusCode,
          data: {
            SiteId: res.body.SiteId,
            SiteName: res.body.SiteName
          }
        };
        return ret;
      }
    } catch (error) {
      console.log(error);
    }
    return null;
  }