♻️ 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:
+36
@@ -170,6 +170,11 @@ declare namespace API {
|
||||
timestamp: number;
|
||||
};
|
||||
|
||||
type CommissionWithdrawRequest = {
|
||||
amount: number;
|
||||
content: string;
|
||||
};
|
||||
|
||||
type Coupon = {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -816,6 +821,21 @@ declare namespace API {
|
||||
list: UserSubscribeInfo[];
|
||||
};
|
||||
|
||||
type QueryWithdrawalLogListRequest = {
|
||||
page: number;
|
||||
size: number;
|
||||
};
|
||||
|
||||
type QueryWithdrawalLogListResponse = {
|
||||
list: WithdrawalLog[];
|
||||
total: number;
|
||||
};
|
||||
|
||||
type QueryWithdrawalLogParams = {
|
||||
page: number;
|
||||
size: number;
|
||||
};
|
||||
|
||||
type RechargeOrderRequest = {
|
||||
amount: number;
|
||||
payment: number;
|
||||
@@ -1089,6 +1109,10 @@ declare namespace API {
|
||||
password: string;
|
||||
};
|
||||
|
||||
type UpdateUserRulesRequest = {
|
||||
rules: string[];
|
||||
};
|
||||
|
||||
type UpdateUserSubscribeNoteRequest = {
|
||||
user_subscribe_id: number;
|
||||
note: string;
|
||||
@@ -1118,6 +1142,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;
|
||||
@@ -1255,4 +1280,15 @@ declare namespace API {
|
||||
security: string;
|
||||
security_config: SecurityConfig;
|
||||
};
|
||||
|
||||
type WithdrawalLog = {
|
||||
id: number;
|
||||
user_id: number;
|
||||
amount: number;
|
||||
content: string;
|
||||
status: number;
|
||||
reason?: string;
|
||||
created_at: number;
|
||||
updated_at: number;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user