♻️ 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:
@@ -8,7 +8,7 @@ export async function querySubscribeList(
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.QuerySubscribeListResponse }>(
|
||||
"/v1/public/subscribe/list",
|
||||
"/api/v1/public/subscribe/list",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
@@ -25,7 +25,7 @@ export async function queryUserSubscribeNodeList(options?: {
|
||||
}) {
|
||||
return request<
|
||||
API.Response & { data?: API.QueryUserSubscribeNodeListResponse }
|
||||
>("/v1/public/subscribe/node/list", {
|
||||
>("/api/v1/public/subscribe/node/list", {
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user