新功能(#25): 用户中心拆分提现/退款 tab 并适配新接口
This commit is contained in:
+26
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user