async getRoutineUserInfo()

in src/libs/apiService.ts [299:333]


  async getRoutineUserInfo(): Promise<GetRoutineUserInfoRes | null> {
    try {
      let params = {
        action: 'GetRoutineUserInfo',
        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();
      let runtime = {
        toMap: function () {
          return this;
        }
      };
      const res = await this.client.callApi(params, request, runtime);
      if (res.statusCode === 200 && res.body) {
        const ret: GetRoutineUserInfoRes = {
          Subdomains: res.body.RoutineName,
          Routines: res.body.Routines
        };
        return ret;
      }
    } catch (error) {
      console.log(error);
    }
    return null;
  }