committed by
GitHub
51 changed files with 179 additions and 90 deletions
@ -0,0 +1 @@ |
|||||
|
VITE_ADMIN_VERSION="v0.0.0-dev" |
||||
@ -0,0 +1 @@ |
|||||
|
placeholder |
||||
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,22 @@ |
|||||
|
import { AxiosResponse } from 'axios' |
||||
|
import request from '/@/utils/request' |
||||
|
|
||||
|
export interface IListAllTransactionsReq { |
||||
|
limit: number |
||||
|
position?: number |
||||
|
} |
||||
|
|
||||
|
export function listAllTransactions<T>(payload: IListAllTransactionsReq): Promise<AxiosResponse<T>> { |
||||
|
return request({ |
||||
|
url: '/api/dtmsvr/all', |
||||
|
method: 'get', |
||||
|
params: payload |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function getDtmVersion(): Promise<AxiosResponse<any>> { |
||||
|
return request({ |
||||
|
url: '/api/dtmsvr/version', |
||||
|
method: 'get', |
||||
|
}) |
||||
|
} |
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
@ -1,7 +1,6 @@ |
|||||
import axios from 'axios' |
import axios from 'axios' |
||||
|
|
||||
const request = axios.create({ |
const request = axios.create({ |
||||
baseURL: import.meta.env.VITE_APP_API_BASE_URL as string | undefined, |
|
||||
timeout: 60000 |
timeout: 60000 |
||||
}) |
}) |
||||
|
|
||||
@ -1,3 +0,0 @@ |
|||||
VITE_APP_API_BASE_URL="/api" |
|
||||
VITE_PROXY=[["/api", "http://localhost:36789"]] |
|
||||
VITE_DASHBOARD_VERSION="v0.0.0-dev" |
|
||||
@ -1,15 +0,0 @@ |
|||||
import { AxiosResponse } from 'axios' |
|
||||
import request from '/@/utils/request' |
|
||||
|
|
||||
export interface IListAllTransactionsReq { |
|
||||
limit: number |
|
||||
position?: number |
|
||||
} |
|
||||
|
|
||||
export function listAllTransactions<T>(payload:IListAllTransactionsReq):Promise<AxiosResponse<T>> { |
|
||||
return request({ |
|
||||
url: '/dtmsvr/all', |
|
||||
method: 'get', |
|
||||
params: payload |
|
||||
}) |
|
||||
} |
|
||||
Loading…
Reference in new issue