🎉 feat: initialization

This commit is contained in:
web
2025-11-26 19:56:16 -08:00
commit a801849fb2
553 changed files with 213088 additions and 0 deletions
+80
View File
@@ -0,0 +1,80 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Update Ads PUT /v1/admin/ads/ */
export async function updateAds(
body: API.UpdateAdsRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/ads/", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Create Ads POST /v1/admin/ads/ */
export async function createAds(
body: API.CreateAdsRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/ads/", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete Ads DELETE /v1/admin/ads/ */
export async function deleteAds(
body: API.DeleteAdsRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/ads/", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get Ads Detail GET /v1/admin/ads/detail */
export async function getAdsDetail(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetAdsDetailParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.Ads }>("/v1/admin/ads/detail", {
method: "GET",
params: {
...params,
},
...(options || {}),
});
}
/** Get Ads List GET /v1/admin/ads/list */
export async function getAdsList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetAdsListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetAdsListResponse }>(
"/v1/admin/ads/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
@@ -0,0 +1,83 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Update announcement PUT /v1/admin/announcement/ */
export async function updateAnnouncement(
body: API.UpdateAnnouncementRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/announcement/", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Create announcement POST /v1/admin/announcement/ */
export async function createAnnouncement(
body: API.CreateAnnouncementRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/announcement/", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete announcement DELETE /v1/admin/announcement/ */
export async function deleteAnnouncement(
body: API.DeleteAnnouncementRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/announcement/", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get announcement GET /v1/admin/announcement/detail */
export async function getAnnouncement(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetAnnouncementParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.Announcement }>(
"/v1/admin/announcement/detail",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Get announcement list GET /v1/admin/announcement/list */
export async function getAnnouncementList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetAnnouncementListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetAnnouncementListResponse }>(
"/v1/admin/announcement/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
@@ -0,0 +1,90 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Create subscribe application POST /v1/admin/application/ */
export async function createSubscribeApplication(
body: API.CreateSubscribeApplicationRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.SubscribeApplication }>(
"/v1/admin/application/",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Preview Template GET /v1/admin/application/preview */
export async function previewSubscribeTemplate(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.PreviewSubscribeTemplateParams,
options?: { [key: string]: any }
) {
return request<
API.Response & { data?: API.PreviewSubscribeTemplateResponse }
>("/v1/admin/application/preview", {
method: "GET",
params: {
...params,
},
...(options || {}),
});
}
/** Update subscribe application PUT /v1/admin/application/subscribe_application */
export async function updateSubscribeApplication(
body: API.UpdateSubscribeApplicationRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.SubscribeApplication }>(
"/v1/admin/application/subscribe_application",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Delete subscribe application DELETE /v1/admin/application/subscribe_application */
export async function deleteSubscribeApplication(
body: API.DeleteSubscribeApplicationRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/application/subscribe_application",
{
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get subscribe application list GET /v1/admin/application/subscribe_application_list */
export async function getSubscribeApplicationList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetSubscribeApplicationListParams,
options?: { [key: string]: any }
) {
return request<
API.Response & { data?: API.GetSubscribeApplicationListResponse }
>("/v1/admin/application/subscribe_application_list", {
method: "GET",
params: {
...params,
},
...(options || {}),
});
}
@@ -0,0 +1,107 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Get auth method config GET /v1/admin/auth-method/config */
export async function getAuthMethodConfig(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetAuthMethodConfigParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.AuthMethodConfig }>(
"/v1/admin/auth-method/config",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Update auth method config PUT /v1/admin/auth-method/config */
export async function updateAuthMethodConfig(
body: API.UpdateAuthMethodConfigRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.AuthMethodConfig }>(
"/v1/admin/auth-method/config",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get email support platform GET /v1/admin/auth-method/email_platform */
export async function getEmailPlatform(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PlatformResponse }>(
"/v1/admin/auth-method/email_platform",
{
method: "GET",
...(options || {}),
}
);
}
/** Get auth method list GET /v1/admin/auth-method/list */
export async function getAuthMethodList(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.GetAuthMethodListResponse }>(
"/v1/admin/auth-method/list",
{
method: "GET",
...(options || {}),
}
);
}
/** Get sms support platform GET /v1/admin/auth-method/sms_platform */
export async function getSmsPlatform(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PlatformResponse }>(
"/v1/admin/auth-method/sms_platform",
{
method: "GET",
...(options || {}),
}
);
}
/** Test email send POST /v1/admin/auth-method/test_email_send */
export async function testEmailSend(
body: API.TestEmailSendRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/auth-method/test_email_send",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Test sms send POST /v1/admin/auth-method/test_sms_send */
export async function testSmsSend(
body: API.TestSmsSendRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/auth-method/test_sms_send",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
+46
View File
@@ -0,0 +1,46 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Query revenue statistics GET /v1/admin/console/revenue */
export async function queryRevenueStatistics(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.RevenueStatisticsResponse }>(
"/v1/admin/console/revenue",
{
method: "GET",
...(options || {}),
}
);
}
/** Query server total data GET /v1/admin/console/server */
export async function queryServerTotalData(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.ServerTotalDataResponse }>(
"/v1/admin/console/server",
{
method: "GET",
...(options || {}),
}
);
}
/** Query ticket wait reply GET /v1/admin/console/ticket */
export async function queryTicketWaitReply(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.TicketWaitRelpyResponse }>(
"/v1/admin/console/ticket",
{
method: "GET",
...(options || {}),
}
);
}
/** Query user statistics GET /v1/admin/console/user */
export async function queryUserStatistics(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.UserStatisticsResponse }>(
"/v1/admin/console/user",
{
method: "GET",
...(options || {}),
}
);
}
+80
View File
@@ -0,0 +1,80 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Update coupon PUT /v1/admin/coupon/ */
export async function updateCoupon(
body: API.UpdateCouponRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/coupon/", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Create coupon POST /v1/admin/coupon/ */
export async function createCoupon(
body: API.CreateCouponRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/coupon/", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete coupon DELETE /v1/admin/coupon/ */
export async function deleteCoupon(
body: API.DeleteCouponRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/coupon/", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Batch delete coupon DELETE /v1/admin/coupon/batch */
export async function batchDeleteCoupon(
body: API.BatchDeleteCouponRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/coupon/batch", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get coupon list GET /v1/admin/coupon/list */
export async function getCouponList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetCouponListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetCouponListResponse }>(
"/v1/admin/coupon/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
@@ -0,0 +1,91 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Update document PUT /v1/admin/document/ */
export async function updateDocument(
body: API.UpdateDocumentRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/document/", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Create document POST /v1/admin/document/ */
export async function createDocument(
body: API.CreateDocumentRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/document/", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete document DELETE /v1/admin/document/ */
export async function deleteDocument(
body: API.DeleteDocumentRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/document/", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Batch delete document DELETE /v1/admin/document/batch */
export async function batchDeleteDocument(
body: API.BatchDeleteDocumentRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/document/batch", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get document detail GET /v1/admin/document/detail */
export async function getDocumentDetail(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.Document }>(
"/v1/admin/document/detail",
{
method: "GET",
...(options || {}),
}
);
}
/** Get document list GET /v1/admin/document/list */
export async function getDocumentList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetDocumentListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetDocumentListResponse }>(
"/v1/admin/document/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
+39
View File
@@ -0,0 +1,39 @@
/* eslint-disable */
// API 更新时间:
// API 唯一标识:
import * as ads from "./ads";
import * as announcement from "./announcement";
import * as application from "./application";
import * as authMethod from "./authMethod";
import * as console from "./console";
import * as coupon from "./coupon";
import * as document from "./document";
import * as log from "./log";
import * as marketing from "./marketing";
import * as order from "./order";
import * as payment from "./payment";
import * as server from "./server";
import * as subscribe from "./subscribe";
import * as system from "./system";
import * as ticket from "./ticket";
import * as tool from "./tool";
import * as user from "./user";
export default {
ads,
announcement,
application,
authMethod,
console,
coupon,
document,
log,
marketing,
order,
payment,
server,
subscribe,
system,
ticket,
tool,
user,
};
+262
View File
@@ -0,0 +1,262 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Filter balance log GET /v1/admin/log/balance/list */
export async function filterBalanceLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterBalanceLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterBalanceLogResponse }>(
"/v1/admin/log/balance/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Filter commission log GET /v1/admin/log/commission/list */
export async function filterCommissionLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterCommissionLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterCommissionLogResponse }>(
"/v1/admin/log/commission/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Filter email log GET /v1/admin/log/email/list */
export async function filterEmailLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterEmailLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterEmailLogResponse }>(
"/v1/admin/log/email/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Filter gift log GET /v1/admin/log/gift/list */
export async function filterGiftLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterGiftLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterGiftLogResponse }>(
"/v1/admin/log/gift/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Filter login log GET /v1/admin/log/login/list */
export async function filterLoginLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterLoginLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterLoginLogResponse }>(
"/v1/admin/log/login/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Get message log list GET /v1/admin/log/message/list */
export async function getMessageLogList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetMessageLogListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetMessageLogListResponse }>(
"/v1/admin/log/message/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Filter mobile log GET /v1/admin/log/mobile/list */
export async function filterMobileLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterMobileLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterMobileLogResponse }>(
"/v1/admin/log/mobile/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Filter register log GET /v1/admin/log/register/list */
export async function filterRegisterLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterRegisterLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterRegisterLogResponse }>(
"/v1/admin/log/register/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Filter server traffic log GET /v1/admin/log/server/traffic/list */
export async function filterServerTrafficLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterServerTrafficLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterServerTrafficLogResponse }>(
"/v1/admin/log/server/traffic/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Get log setting GET /v1/admin/log/setting */
export async function getLogSetting(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.LogSetting }>(
"/v1/admin/log/setting",
{
method: "GET",
...(options || {}),
}
);
}
/** Update log setting POST /v1/admin/log/setting */
export async function updateLogSetting(
body: API.LogSetting,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/log/setting", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Filter subscribe log GET /v1/admin/log/subscribe/list */
export async function filterSubscribeLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterSubscribeLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterSubscribeLogResponse }>(
"/v1/admin/log/subscribe/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Filter reset subscribe log GET /v1/admin/log/subscribe/reset/list */
export async function filterResetSubscribeLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterResetSubscribeLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterResetSubscribeLogResponse }>(
"/v1/admin/log/subscribe/reset/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Filter user subscribe traffic log GET /v1/admin/log/subscribe/traffic/list */
export async function filterUserSubscribeTrafficLog(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterUserSubscribeTrafficLogParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterSubscribeTrafficResponse }>(
"/v1/admin/log/subscribe/traffic/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Filter traffic log details GET /v1/admin/log/traffic/details */
export async function filterTrafficLogDetails(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterTrafficLogDetailsParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterTrafficLogDetailsResponse }>(
"/v1/admin/log/traffic/details",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
+144
View File
@@ -0,0 +1,144 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Get batch send email task list GET /v1/admin/marketing/email/batch/list */
export async function getBatchSendEmailTaskList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetBatchSendEmailTaskListParams,
options?: { [key: string]: any }
) {
return request<
API.Response & { data?: API.GetBatchSendEmailTaskListResponse }
>("/v1/admin/marketing/email/batch/list", {
method: "GET",
params: {
...params,
},
...(options || {}),
});
}
/** Get pre-send email count POST /v1/admin/marketing/email/batch/pre-send-count */
export async function getPreSendEmailCount(
body: API.GetPreSendEmailCountRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetPreSendEmailCountResponse }>(
"/v1/admin/marketing/email/batch/pre-send-count",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Create a batch send email task POST /v1/admin/marketing/email/batch/send */
export async function createBatchSendEmailTask(
body: API.CreateBatchSendEmailTaskRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/marketing/email/batch/send",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get batch send email task status POST /v1/admin/marketing/email/batch/status */
export async function getBatchSendEmailTaskStatus(
body: API.GetBatchSendEmailTaskStatusRequest,
options?: { [key: string]: any }
) {
return request<
API.Response & { data?: API.GetBatchSendEmailTaskStatusResponse }
>("/v1/admin/marketing/email/batch/status", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Stop a batch send email task POST /v1/admin/marketing/email/batch/stop */
export async function stopBatchSendEmailTask(
body: API.StopBatchSendEmailTaskRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/marketing/email/batch/stop",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Create a quota task POST /v1/admin/marketing/quota/create */
export async function createQuotaTask(
body: API.CreateQuotaTaskRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/marketing/quota/create",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Query quota task list GET /v1/admin/marketing/quota/list */
export async function queryQuotaTaskList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.QueryQuotaTaskListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.QueryQuotaTaskListResponse }>(
"/v1/admin/marketing/quota/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Query quota task pre-count POST /v1/admin/marketing/quota/pre-count */
export async function queryQuotaTaskPreCount(
body: API.QueryQuotaTaskPreCountRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.QueryQuotaTaskPreCountResponse }>(
"/v1/admin/marketing/quota/pre-count",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
+50
View File
@@ -0,0 +1,50 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Create order POST /v1/admin/order/ */
export async function createOrder(
body: API.CreateOrderRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/order/", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get order list GET /v1/admin/order/list */
export async function getOrderList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetOrderListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetOrderListResponse }>(
"/v1/admin/order/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Update order status PUT /v1/admin/order/status */
export async function updateOrderStatus(
body: API.UpdateOrderStatusRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/order/status", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
+82
View File
@@ -0,0 +1,82 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Update Payment Method PUT /v1/admin/payment/ */
export async function updatePaymentMethod(
body: API.UpdatePaymentMethodRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.PaymentConfig }>(
"/v1/admin/payment/",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Create Payment Method POST /v1/admin/payment/ */
export async function createPaymentMethod(
body: API.CreatePaymentMethodRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.PaymentConfig }>(
"/v1/admin/payment/",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Delete Payment Method DELETE /v1/admin/payment/ */
export async function deletePaymentMethod(
body: API.DeletePaymentMethodRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/payment/", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get Payment Method List GET /v1/admin/payment/list */
export async function getPaymentMethodList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetPaymentMethodListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetPaymentMethodListResponse }>(
"/v1/admin/payment/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Get supported payment platform GET /v1/admin/payment/platform */
export async function getPaymentPlatform(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PlatformResponse }>(
"/v1/admin/payment/platform",
{
method: "GET",
...(options || {}),
}
);
}
+239
View File
@@ -0,0 +1,239 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Create Server POST /v1/admin/server/create */
export async function createServer(
body: API.CreateServerRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/server/create", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete Server POST /v1/admin/server/delete */
export async function deleteServer(
body: API.DeleteServerRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/server/delete", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Filter Server List GET /v1/admin/server/list */
export async function filterServerList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterServerListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterServerListResponse }>(
"/v1/admin/server/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Check if there is any server or node to migrate GET /v1/admin/server/migrate/has */
export async function hasMigrateSeverNode(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.HasMigrateSeverNodeResponse }>(
"/v1/admin/server/migrate/has",
{
method: "GET",
...(options || {}),
}
);
}
/** Migrate server and node data to new database POST /v1/admin/server/migrate/run */
export async function migrateServerNode(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.MigrateServerNodeResponse }>(
"/v1/admin/server/migrate/run",
{
method: "POST",
...(options || {}),
}
);
}
/** Create Node POST /v1/admin/server/node/create */
export async function createNode(
body: API.CreateNodeRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/server/node/create",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Delete Node POST /v1/admin/server/node/delete */
export async function deleteNode(
body: API.DeleteNodeRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/server/node/delete",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Filter Node List GET /v1/admin/server/node/list */
export async function filterNodeList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.FilterNodeListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.FilterNodeListResponse }>(
"/v1/admin/server/node/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Reset node sort POST /v1/admin/server/node/sort */
export async function resetSortWithNode(
body: API.ResetSortRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/server/node/sort", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Toggle Node Status POST /v1/admin/server/node/status/toggle */
export async function toggleNodeStatus(
body: API.ToggleNodeStatusRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/server/node/status/toggle",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Query all node tags GET /v1/admin/server/node/tags */
export async function queryNodeTag(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.QueryNodeTagResponse }>(
"/v1/admin/server/node/tags",
{
method: "GET",
...(options || {}),
}
);
}
/** Update Node POST /v1/admin/server/node/update */
export async function updateNode(
body: API.UpdateNodeRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/server/node/update",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get Server Protocols GET /v1/admin/server/protocols */
export async function getServerProtocols(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetServerProtocolsParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetServerProtocolsResponse }>(
"/v1/admin/server/protocols",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Reset server sort POST /v1/admin/server/server/sort */
export async function resetSortWithServer(
body: API.ResetSortRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/server/server/sort",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Update Server POST /v1/admin/server/update */
export async function updateServer(
body: API.UpdateServerRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/server/update", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
+198
View File
@@ -0,0 +1,198 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Update subscribe PUT /v1/admin/subscribe/ */
export async function updateSubscribe(
body: API.UpdateSubscribeRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/subscribe/", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Create subscribe POST /v1/admin/subscribe/ */
export async function createSubscribe(
body: API.CreateSubscribeRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/subscribe/", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete subscribe DELETE /v1/admin/subscribe/ */
export async function deleteSubscribe(
body: API.DeleteSubscribeRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/subscribe/", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Batch delete subscribe DELETE /v1/admin/subscribe/batch */
export async function batchDeleteSubscribe(
body: API.BatchDeleteSubscribeRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/subscribe/batch", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get subscribe details GET /v1/admin/subscribe/details */
export async function getSubscribeDetails(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetSubscribeDetailsParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.Subscribe }>(
"/v1/admin/subscribe/details",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Update subscribe group PUT /v1/admin/subscribe/group */
export async function updateSubscribeGroup(
body: API.UpdateSubscribeGroupRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/subscribe/group", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Create subscribe group POST /v1/admin/subscribe/group */
export async function createSubscribeGroup(
body: API.CreateSubscribeGroupRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/subscribe/group", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete subscribe group DELETE /v1/admin/subscribe/group */
export async function deleteSubscribeGroup(
body: API.DeleteSubscribeGroupRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/subscribe/group", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Batch delete subscribe group DELETE /v1/admin/subscribe/group/batch */
export async function batchDeleteSubscribeGroup(
body: API.BatchDeleteSubscribeGroupRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/subscribe/group/batch",
{
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get subscribe group list GET /v1/admin/subscribe/group/list */
export async function getSubscribeGroupList(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.GetSubscribeGroupListResponse }>(
"/v1/admin/subscribe/group/list",
{
method: "GET",
...(options || {}),
}
);
}
/** Get subscribe list GET /v1/admin/subscribe/list */
export async function getSubscribeList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetSubscribeListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetSubscribeListResponse }>(
"/v1/admin/subscribe/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Reset all subscribe tokens POST /v1/admin/subscribe/reset_all_token */
export async function resetAllSubscribeToken(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.ResetAllSubscribeTokenResponse }>(
"/v1/admin/subscribe/reset_all_token",
{
method: "POST",
...(options || {}),
}
);
}
/** Subscribe sort POST /v1/admin/subscribe/sort */
export async function subscribeSort(
body: API.SubscribeSortRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/subscribe/sort", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
+348
View File
@@ -0,0 +1,348 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Get Currency Config GET /v1/admin/system/currency_config */
export async function getCurrencyConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.CurrencyConfig }>(
"/v1/admin/system/currency_config",
{
method: "GET",
...(options || {}),
}
);
}
/** Update Currency Config PUT /v1/admin/system/currency_config */
export async function updateCurrencyConfig(
body: API.CurrencyConfig,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/system/currency_config",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get Node Multiplier GET /v1/admin/system/get_node_multiplier */
export async function getNodeMultiplier(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.GetNodeMultiplierResponse }>(
"/v1/admin/system/get_node_multiplier",
{
method: "GET",
...(options || {}),
}
);
}
/** Get invite config GET /v1/admin/system/invite_config */
export async function getInviteConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.InviteConfig }>(
"/v1/admin/system/invite_config",
{
method: "GET",
...(options || {}),
}
);
}
/** Update invite config PUT /v1/admin/system/invite_config */
export async function updateInviteConfig(
body: API.InviteConfig,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/system/invite_config",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get Module Config GET /v1/admin/system/module */
export async function getModuleConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.ModuleConfig }>(
"/v1/admin/system/module",
{
method: "GET",
...(options || {}),
}
);
}
/** Get node config GET /v1/admin/system/node_config */
export async function getNodeConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.NodeConfig }>(
"/v1/admin/system/node_config",
{
method: "GET",
...(options || {}),
}
);
}
/** Update node config PUT /v1/admin/system/node_config */
export async function updateNodeConfig(
body: API.NodeConfig,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/system/node_config",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** PreView Node Multiplier GET /v1/admin/system/node_multiplier/preview */
export async function preViewNodeMultiplier(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PreViewNodeMultiplierResponse }>(
"/v1/admin/system/node_multiplier/preview",
{
method: "GET",
...(options || {}),
}
);
}
/** get Privacy Policy Config GET /v1/admin/system/privacy */
export async function getPrivacyPolicyConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PrivacyPolicyConfig }>(
"/v1/admin/system/privacy",
{
method: "GET",
...(options || {}),
}
);
}
/** Update Privacy Policy Config PUT /v1/admin/system/privacy */
export async function updatePrivacyPolicyConfig(
body: API.PrivacyPolicyConfig,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/system/privacy", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get register config GET /v1/admin/system/register_config */
export async function getRegisterConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.RegisterConfig }>(
"/v1/admin/system/register_config",
{
method: "GET",
...(options || {}),
}
);
}
/** Update register config PUT /v1/admin/system/register_config */
export async function updateRegisterConfig(
body: API.RegisterConfig,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/system/register_config",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Set Node Multiplier POST /v1/admin/system/set_node_multiplier */
export async function setNodeMultiplier(
body: API.SetNodeMultiplierRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/system/set_node_multiplier",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** setting telegram bot POST /v1/admin/system/setting_telegram_bot */
export async function settingTelegramBot(options?: { [key: string]: any }) {
return request<API.Response & { data?: any }>(
"/v1/admin/system/setting_telegram_bot",
{
method: "POST",
...(options || {}),
}
);
}
/** Get site config GET /v1/admin/system/site_config */
export async function getSiteConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.SiteConfig }>(
"/v1/admin/system/site_config",
{
method: "GET",
...(options || {}),
}
);
}
/** Update site config PUT /v1/admin/system/site_config */
export async function updateSiteConfig(
body: API.SiteConfig,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/system/site_config",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get subscribe config GET /v1/admin/system/subscribe_config */
export async function getSubscribeConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.SubscribeConfig }>(
"/v1/admin/system/subscribe_config",
{
method: "GET",
...(options || {}),
}
);
}
/** Update subscribe config PUT /v1/admin/system/subscribe_config */
export async function updateSubscribeConfig(
body: API.SubscribeConfig,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/system/subscribe_config",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get Team of Service Config GET /v1/admin/system/tos_config */
export async function getTosConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.TosConfig }>(
"/v1/admin/system/tos_config",
{
method: "GET",
...(options || {}),
}
);
}
/** Update Team of Service Config PUT /v1/admin/system/tos_config */
export async function updateTosConfig(
body: API.TosConfig,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/system/tos_config", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get Verify Code Config GET /v1/admin/system/verify_code_config */
export async function getVerifyCodeConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.VerifyCodeConfig }>(
"/v1/admin/system/verify_code_config",
{
method: "GET",
...(options || {}),
}
);
}
/** Update Verify Code Config PUT /v1/admin/system/verify_code_config */
export async function updateVerifyCodeConfig(
body: API.VerifyCodeConfig,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/system/verify_code_config",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get verify config GET /v1/admin/system/verify_config */
export async function getVerifyConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.VerifyConfig }>(
"/v1/admin/system/verify_config",
{
method: "GET",
...(options || {}),
}
);
}
/** Update verify config PUT /v1/admin/system/verify_config */
export async function updateVerifyConfig(
body: API.VerifyConfig,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/system/verify_config",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
+68
View File
@@ -0,0 +1,68 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Update ticket status PUT /v1/admin/ticket/ */
export async function updateTicketStatus(
body: API.UpdateTicketStatusRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/ticket/", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get ticket detail GET /v1/admin/ticket/detail */
export async function getTicket(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetTicketParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.Ticket }>(
"/v1/admin/ticket/detail",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Create ticket follow POST /v1/admin/ticket/follow */
export async function createTicketFollow(
body: API.CreateTicketFollowRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/ticket/follow", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get ticket list GET /v1/admin/ticket/list */
export async function getTicketList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetTicketListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetTicketListResponse }>(
"/v1/admin/ticket/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
+32
View File
@@ -0,0 +1,32 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Get System Log GET /v1/admin/tool/log */
export async function getSystemLog(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.LogResponse }>(
"/v1/admin/tool/log",
{
method: "GET",
...(options || {}),
}
);
}
/** Restart System GET /v1/admin/tool/restart */
export async function restartSystem(options?: { [key: string]: any }) {
return request<API.Response & { data?: any }>("/v1/admin/tool/restart", {
method: "GET",
...(options || {}),
});
}
/** Get Version GET /v1/admin/tool/version */
export async function getVersion(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.VersionResponse }>(
"/v1/admin/tool/version",
{
method: "GET",
...(options || {}),
}
);
}
File diff suppressed because it is too large Load Diff
+391
View File
@@ -0,0 +1,391 @@
/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Create user POST /v1/admin/user/ */
export async function createUser(
body: API.CreateUserRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete user DELETE /v1/admin/user/ */
export async function deleteUser(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.DeleteUserParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/", {
method: "DELETE",
params: {
...params,
},
...(options || {}),
});
}
/** Get user auth method GET /v1/admin/user/auth_method */
export async function getUserAuthMethod(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.GetUserAuthMethodResponse }>(
"/v1/admin/user/auth_method",
{
method: "GET",
...(options || {}),
}
);
}
/** Update user auth method PUT /v1/admin/user/auth_method */
export async function updateUserAuthMethod(
body: API.UpdateUserAuthMethodRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/auth_method", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Create user auth method POST /v1/admin/user/auth_method */
export async function createUserAuthMethod(
body: API.CreateUserAuthMethodRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/auth_method", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete user auth method DELETE /v1/admin/user/auth_method */
export async function deleteUserAuthMethod(
body: API.DeleteUserAuthMethodRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/auth_method", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Update user basic info PUT /v1/admin/user/basic */
export async function updateUserBasicInfo(
body: API.UpdateUserBasiceInfoRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/basic", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Batch delete user DELETE /v1/admin/user/batch */
export async function batchDeleteUser(
body: API.BatchDeleteUserRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/batch", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Current user GET /v1/admin/user/current */
export async function currentUser(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.User }>("/v1/admin/user/current", {
method: "GET",
...(options || {}),
});
}
/** Get user detail GET /v1/admin/user/detail */
export async function getUserDetail(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetUserDetailParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.User }>("/v1/admin/user/detail", {
method: "GET",
params: {
...params,
},
...(options || {}),
});
}
/** User device PUT /v1/admin/user/device */
export async function updateUserDevice(
body: API.UserDevice,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/device", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete user device DELETE /v1/admin/user/device */
export async function deleteUserDevice(
body: API.DeleteUserDeivceRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/device", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** kick offline user device PUT /v1/admin/user/device/kick_offline */
export async function kickOfflineByUserDevice(
body: API.KickOfflineRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>(
"/v1/admin/user/device/kick_offline",
{
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
}
);
}
/** Get user list GET /v1/admin/user/list */
export async function getUserList(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetUserListParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetUserListResponse }>(
"/v1/admin/user/list",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Get user login logs GET /v1/admin/user/login/logs */
export async function getUserLoginLogs(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetUserLoginLogsParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetUserLoginLogsResponse }>(
"/v1/admin/user/login/logs",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Update user notify setting PUT /v1/admin/user/notify */
export async function updateUserNotifySetting(
body: API.UpdateUserNotifySettingRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/notify", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get user subcribe GET /v1/admin/user/subscribe */
export async function getUserSubscribe(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetUserSubscribeParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetUserSubscribeListResponse }>(
"/v1/admin/user/subscribe",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Update user subcribe PUT /v1/admin/user/subscribe */
export async function updateUserSubscribe(
body: API.UpdateUserSubscribeRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/subscribe", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Create user subcribe POST /v1/admin/user/subscribe */
export async function createUserSubscribe(
body: API.CreateUserSubscribeRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/subscribe", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Delete user subcribe DELETE /v1/admin/user/subscribe */
export async function deleteUserSubscribe(
body: API.DeleteUserSubscribeRequest,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: any }>("/v1/admin/user/subscribe", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
},
data: body,
...(options || {}),
});
}
/** Get user subcribe by id GET /v1/admin/user/subscribe/detail */
export async function getUserSubscribeById(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetUserSubscribeByIdParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.UserSubscribeDetail }>(
"/v1/admin/user/subscribe/detail",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Get user subcribe devices GET /v1/admin/user/subscribe/device */
export async function getUserSubscribeDevices(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetUserSubscribeDevicesParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetUserSubscribeDevicesResponse }>(
"/v1/admin/user/subscribe/device",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Get user subcribe logs GET /v1/admin/user/subscribe/logs */
export async function getUserSubscribeLogs(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetUserSubscribeLogsParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.GetUserSubscribeLogsResponse }>(
"/v1/admin/user/subscribe/logs",
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Get user subcribe reset traffic logs GET /v1/admin/user/subscribe/reset/logs */
export async function getUserSubscribeResetTrafficLogs(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetUserSubscribeResetTrafficLogsParams,
options?: { [key: string]: any }
) {
return request<
API.Response & { data?: API.GetUserSubscribeResetTrafficLogsResponse }
>("/v1/admin/user/subscribe/reset/logs", {
method: "GET",
params: {
...params,
},
...(options || {}),
});
}
/** Get user subcribe traffic logs GET /v1/admin/user/subscribe/traffic_logs */
export async function getUserSubscribeTrafficLogs(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.GetUserSubscribeTrafficLogsParams,
options?: { [key: string]: any }
) {
return request<
API.Response & { data?: API.GetUserSubscribeTrafficLogsResponse }
>("/v1/admin/user/subscribe/traffic_logs", {
method: "GET",
params: {
...params,
},
...(options || {}),
});
}