test.client.ts 349 B

1234567891011
  1. import httpClient from "@/services/httpClient";
  2. import type { Response } from "@/types/response.types";
  3. import * as urlHelper from "@/libs/url.lib"
  4. const _url = urlHelper.withPrefix("/gw/user/test")
  5. export async function test1(text: string) {
  6. const resp = await httpClient.post<Response<string>>(_url("1"), { text });
  7. return resp.data.data;
  8. }