新功能(#25): 用户中心拆分提现/退款 tab 并适配新接口

This commit is contained in:
2026-06-11 21:25:40 -07:00
parent 1834b97fe2
commit bef8a12064
7 changed files with 394 additions and 119 deletions
+26
View File
@@ -170,6 +170,17 @@ declare namespace API {
timestamp: number;
};
type CommissionReturnLog = {
id: number;
user_id: number;
amount: number;
event_type: number;
order_no?: string;
content?: string;
created_at: number;
updated_at: number;
};
type CommissionWithdrawRequest = {
amount: number;
method: number;
@@ -821,6 +832,21 @@ declare namespace API {
size: number;
};
type QueryCommissionReturnLogListRequest = {
page: number;
size: number;
};
type QueryCommissionReturnLogListResponse = {
list: CommissionReturnLog[];
total: number;
};
type QueryCommissionReturnLogParams = {
page: number;
size: number;
};
type QueryUserSubscribeListResponse = {
list: UserSubscribe[];
total: number;
+19 -1
View File
@@ -1,4 +1,3 @@
// @ts-expect-error
/* eslint-disable */
import request from "@workspace/ui/lib/request";
@@ -471,6 +470,25 @@ export async function queryWithdrawalLog(
);
}
/** Query Commission Return Log GET /v1/public/user/commission_return_log */
export async function queryCommissionReturnLog(
params: API.QueryCommissionReturnLogParams,
options?: { [key: string]: any }
) {
return request<
API.Response & { data?: API.QueryCommissionReturnLogListResponse }
>(
`${import.meta.env.VITE_API_PREFIX || ""}/v1/public/user/commission_return_log`,
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Cancel Withdrawal POST /v1/public/user/withdrawal_cancel */
export async function withdrawalCancel(
body: API.WithdrawalCancelRequest,