♻️ 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:
+15
@@ -1648,6 +1648,20 @@ declare namespace API {
|
||||
list: Document[];
|
||||
};
|
||||
|
||||
type QueryIPLocationParams = {
|
||||
ip: string;
|
||||
};
|
||||
|
||||
type QueryIPLocationRequest = {
|
||||
ip: string;
|
||||
};
|
||||
|
||||
type QueryIPLocationResponse = {
|
||||
country: string;
|
||||
region?: string;
|
||||
city: string;
|
||||
};
|
||||
|
||||
type QueryNodeTagResponse = {
|
||||
tags: string[];
|
||||
};
|
||||
@@ -2388,6 +2402,7 @@ declare namespace API {
|
||||
enable_trade_notify: boolean;
|
||||
auth_methods: UserAuthMethod[];
|
||||
user_devices: UserDevice[];
|
||||
rules: string[];
|
||||
created_at: number;
|
||||
updated_at: number;
|
||||
deleted_at?: number;
|
||||
|
||||
Reference in New Issue
Block a user