customer v1.0.0
This commit is contained in:
parent
7ffdf5dda3
commit
fa26515652
@ -30,7 +30,7 @@ export type Account = {
|
||||
wallet: Wallet;
|
||||
};
|
||||
|
||||
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer`;
|
||||
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`;
|
||||
|
||||
export const getAccountInfo = async (id: string): Promise<[Account | null, string?]> => {
|
||||
try {
|
||||
|
@ -23,7 +23,7 @@ type HistoryResponse = {
|
||||
totalPages: number;
|
||||
};
|
||||
|
||||
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer`;
|
||||
const API_URL = `${process.env.REACT_APP_DOMAIN}/customer/v1.0.0`;
|
||||
|
||||
const getUserHistory = async (accountId: string, page: number): Promise<[HistoryResponse | null, string?]> => {
|
||||
try {
|
||||
|
@ -40,7 +40,7 @@ export const getStatisticSchild = async (from: number, to: number): Promise<[Qui
|
||||
try {
|
||||
const statisticResponse = await makeRequest<GetStatisticSchildBody, QuizStatisticsItem[]>({
|
||||
method: "POST",
|
||||
url: `${API_URL}/customer/quizlogo/stat`,
|
||||
url: `${API_URL}/customer/v1.0.0/quizlogo/stat`,
|
||||
body: { to, from, page: 0, limit: 100 },
|
||||
useToken: true,
|
||||
});
|
||||
@ -74,7 +74,7 @@ export const getStatisticsPromocode = async (
|
||||
try {
|
||||
const statisticsPromocode = await makeRequest<GetPromocodeStatisticsBody, Record<string, AllPromocodeStatistics>>({
|
||||
method: "POST",
|
||||
url: `${API_URL}/customer/promocode/ltv`,
|
||||
url: `${API_URL}/customer/v1.0.0/promocode/ltv`,
|
||||
body: { to, from },
|
||||
useToken: true,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user