♻️ 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:
@@ -6,7 +6,7 @@ export async function createOrder(
|
||||
body: API.CreateOrderRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>("/v1/admin/order/", {
|
||||
return request<API.Response & { data?: any }>("/api/v1/admin/order/", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
@@ -23,7 +23,7 @@ export async function getOrderList(
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.GetOrderListResponse }>(
|
||||
"/v1/admin/order/list",
|
||||
"/api/v1/admin/order/list",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
@@ -39,7 +39,7 @@ export async function updateOrderStatus(
|
||||
body: API.UpdateOrderStatusRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>("/v1/admin/order/status", {
|
||||
return request<API.Response & { data?: any }>("/api/v1/admin/order/status", {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
Reference in New Issue
Block a user