🐛 fix(api): Purge
This commit is contained in:
@@ -9,7 +9,6 @@ import * as payment from './payment';
|
||||
import * as subscribe from './subscribe';
|
||||
import * as ticket from './ticket';
|
||||
import * as user from './user';
|
||||
|
||||
export default {
|
||||
announcement,
|
||||
document,
|
||||
|
||||
Vendored
+13
@@ -211,6 +211,11 @@ declare namespace API {
|
||||
total: number;
|
||||
};
|
||||
|
||||
type QueryUserAffiliateResponse = {
|
||||
list: UserAffiliate[];
|
||||
total: number;
|
||||
};
|
||||
|
||||
type QueryUserBalanceLogListResponse = {
|
||||
list: UserBalanceLog[];
|
||||
total: number;
|
||||
@@ -345,6 +350,14 @@ declare namespace API {
|
||||
status: number;
|
||||
};
|
||||
|
||||
type UserAffiliate = {
|
||||
email: string;
|
||||
avatar: string;
|
||||
telegram: number;
|
||||
registered_at: number;
|
||||
enable: boolean;
|
||||
};
|
||||
|
||||
type UserBalanceLog = {
|
||||
id: number;
|
||||
user_id: number;
|
||||
|
||||
@@ -2,6 +2,17 @@
|
||||
/* 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 }>(
|
||||
|
||||
Reference in New Issue
Block a user