mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-06 11:40:28 -05:00
90 lines
2.4 KiB
TypeScript
90 lines
2.4 KiB
TypeScript
// @ts-ignore
|
|
/* eslint-disable */
|
|
import request from '@/utils/request';
|
|
|
|
/** Query User Affiliate GET /v1/public/user/affiliate */
|
|
export async function queryUserAffiliate(options?: { [key: string]: any }) {
|
|
return request<API.Response & { data?: API.QueryUserAffiliateResponse }>(
|
|
'/v1/public/user/affiliate',
|
|
{
|
|
method: 'GET',
|
|
...(options || {}),
|
|
},
|
|
);
|
|
}
|
|
|
|
/** Query User Balance Log GET /v1/public/user/balance_log */
|
|
export async function queryUserBalanceLog(options?: { [key: string]: any }) {
|
|
return request<API.Response & { data?: API.QueryUserBalanceLogListResponse }>(
|
|
'/v1/public/user/balance_log',
|
|
{
|
|
method: 'GET',
|
|
...(options || {}),
|
|
},
|
|
);
|
|
}
|
|
|
|
/** Query User Info GET /v1/public/user/info */
|
|
export async function queryUserInfo(options?: { [key: string]: any }) {
|
|
return request<API.Response & { data?: API.User }>('/v1/public/user/info', {
|
|
method: 'GET',
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** Update User Notify PUT /v1/public/user/notify */
|
|
export async function updateUserNotify(
|
|
body: API.UpdateUserNotifyRequest,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.Response & { data?: any }>('/v1/public/user/notify', {
|
|
method: 'PUT',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** Update User Notify Setting PUT /v1/public/user/notify_setting */
|
|
export async function updateUserNotifySetting(
|
|
body: API.UpdateUserNotifySettingRequet,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.Response & { data?: any }>('/v1/public/user/notify_setting', {
|
|
method: 'PUT',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** Update User Password PUT /v1/public/user/password */
|
|
export async function updateUserPassword(
|
|
body: API.UpdateUserPasswordRequest,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.Response & { data?: any }>('/v1/public/user/password', {
|
|
method: 'PUT',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** Query User Subscribe GET /v1/public/user/subscribe */
|
|
export async function queryUserSubscribe(options?: { [key: string]: any }) {
|
|
return request<API.Response & { data?: API.QueryUserSubscribeListResponse }>(
|
|
'/v1/public/user/subscribe',
|
|
{
|
|
method: 'GET',
|
|
...(options || {}),
|
|
},
|
|
);
|
|
}
|