♻️ refactor(api): update endpoints to include '/api' prefix and add new types for IP location and withdrawal logs
- Updated all user and common service endpoints to include '/api' prefix for consistency. - Added new API types for querying IP location and withdrawal logs. - Introduced commission withdrawal functionality in user service. - Enhanced user service typings to include rules and withdrawal log structures.
This commit is contained in:
@@ -8,7 +8,7 @@ export async function queryDocumentDetail(
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.Document }>(
|
||||
"/v1/public/document/detail",
|
||||
"/api/v1/public/document/detail",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
@@ -22,7 +22,7 @@ export async function queryDocumentDetail(
|
||||
/** Get document list GET /v1/public/document/list */
|
||||
export async function queryDocumentList(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.QueryDocumentListResponse }>(
|
||||
"/v1/public/document/list",
|
||||
"/api/v1/public/document/list",
|
||||
{
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
|
||||
Reference in New Issue
Block a user