✨ feat: Update Auth Control
This commit is contained in:
Vendored
+40
@@ -46,6 +46,14 @@ declare namespace API {
|
||||
orderNo: string;
|
||||
};
|
||||
|
||||
type CommissionLog = {
|
||||
id: number;
|
||||
user_id: number;
|
||||
order_no: string;
|
||||
amount: number;
|
||||
created_at: number;
|
||||
};
|
||||
|
||||
type Coupon = {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -360,6 +368,21 @@ declare namespace API {
|
||||
total: number;
|
||||
};
|
||||
|
||||
type QueryUserCommissionLogListRequest = {
|
||||
page: number;
|
||||
size: number;
|
||||
};
|
||||
|
||||
type QueryUserCommissionLogListResponse = {
|
||||
list: CommissionLog[];
|
||||
total: number;
|
||||
};
|
||||
|
||||
type QueryUserCommissionLogParams = {
|
||||
page: number;
|
||||
size: number;
|
||||
};
|
||||
|
||||
type QueryUserSubscribeListResponse = {
|
||||
list: UserSubscribe[];
|
||||
total: number;
|
||||
@@ -427,6 +450,7 @@ declare namespace API {
|
||||
|
||||
type Server = {
|
||||
id: number;
|
||||
tags: string[];
|
||||
name: string;
|
||||
server_addr: string;
|
||||
relay_mode: string;
|
||||
@@ -471,6 +495,22 @@ declare namespace API {
|
||||
site_logo: string;
|
||||
};
|
||||
|
||||
type SmsConfig = {
|
||||
sms_enabled: boolean;
|
||||
sms_api_url: string;
|
||||
sms_api_foreign_url: string;
|
||||
sms_key: string;
|
||||
sms_secret: string;
|
||||
sms_region: string;
|
||||
sms_template: string;
|
||||
sms_template_code: string;
|
||||
sms_template_param: string;
|
||||
sms_platform: string;
|
||||
sms_limit: number;
|
||||
sms_interval: number;
|
||||
sms_expire_time: number;
|
||||
};
|
||||
|
||||
type SortItem = {
|
||||
id: number;
|
||||
sort: number;
|
||||
|
||||
@@ -53,6 +53,24 @@ export async function bindTelegram(options?: { [key: string]: any }) {
|
||||
);
|
||||
}
|
||||
|
||||
/** Query User Commission Log GET /v1/public/user/commission_log */
|
||||
export async function queryUserCommissionLog(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.QueryUserCommissionLogParams,
|
||||
options?: { [key: string]: any },
|
||||
) {
|
||||
return request<API.Response & { data?: API.QueryUserCommissionLogListResponse }>(
|
||||
'/v1/public/user/commission_log',
|
||||
{
|
||||
method: 'GET',
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(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', {
|
||||
|
||||
Reference in New Issue
Block a user