🎉 feat: initialization
This commit is contained in:
@@ -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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -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,
|
||||
};
|
||||
@@ -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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -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 || {}),
|
||||
});
|
||||
}
|
||||
@@ -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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -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 || {}),
|
||||
});
|
||||
}
|
||||
@@ -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 || {}),
|
||||
});
|
||||
}
|
||||
@@ -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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
+2550
File diff suppressed because it is too large
Load Diff
@@ -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 || {}),
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Check user is exist GET /v1/auth/check */
|
||||
export async function checkUser(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.CheckUserParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.CheckUserResponse }>(
|
||||
"/v1/auth/check",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Check user telephone is exist GET /v1/auth/check/telephone */
|
||||
export async function checkUserTelephone(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.CheckUserTelephoneParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.TelephoneCheckUserResponse }>(
|
||||
"/v1/auth/check/telephone",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** User login POST /v1/auth/login */
|
||||
export async function userLogin(
|
||||
body: API.UserLoginRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.LoginResponse }>(
|
||||
"/v1/auth/login",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Device Login POST /v1/auth/login/device */
|
||||
export async function deviceLogin(
|
||||
body: API.DeviceLoginRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.LoginResponse }>(
|
||||
"/v1/auth/login/device",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** User Telephone login POST /v1/auth/login/telephone */
|
||||
export async function telephoneLogin(
|
||||
body: API.TelephoneLoginRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.LoginResponse }>(
|
||||
"/v1/auth/login/telephone",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** User register POST /v1/auth/register */
|
||||
export async function userRegister(
|
||||
body: API.UserRegisterRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.LoginResponse }>(
|
||||
"/v1/auth/register",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** User Telephone register POST /v1/auth/register/telephone */
|
||||
export async function telephoneUserRegister(
|
||||
body: API.TelephoneRegisterRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.LoginResponse }>(
|
||||
"/v1/auth/register/telephone",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Reset password POST /v1/auth/reset */
|
||||
export async function resetPassword(
|
||||
body: API.ResetPasswordRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.LoginResponse }>(
|
||||
"/v1/auth/reset",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Reset password POST /v1/auth/reset/telephone */
|
||||
export async function telephoneResetPassword(
|
||||
body: API.TelephoneResetPasswordRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.LoginResponse }>(
|
||||
"/v1/auth/reset/telephone",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Get Ads GET /v1/common/ads */
|
||||
export async function getAds(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.GetAdsParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.GetAdsResponse }>(
|
||||
"/v1/common/ads",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Check verification code POST /v1/common/check_verification_code */
|
||||
export async function checkVerificationCode(
|
||||
body: API.CheckVerificationCodeRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.CheckVerificationCodeRespone }>(
|
||||
"/v1/common/check_verification_code",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get Client GET /v1/common/client */
|
||||
export async function getClient(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.GetSubscribeClientResponse }>(
|
||||
"/v1/common/client",
|
||||
{
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 此处后端没有提供注释 GET /v1/common/heartbeat */
|
||||
export async function heartbeat(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.HeartbeatResponse }>(
|
||||
"/v1/common/heartbeat",
|
||||
{
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get verification code POST /v1/common/send_code */
|
||||
export async function sendEmailCode(
|
||||
body: API.SendCodeRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.SendCodeResponse }>(
|
||||
"/v1/common/send_code",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get sms verification code POST /v1/common/send_sms_code */
|
||||
export async function sendSmsCode(
|
||||
body: API.SendSmsCodeRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.SendCodeResponse }>(
|
||||
"/v1/common/send_sms_code",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get global config GET /v1/common/site/config */
|
||||
export async function getGlobalConfig(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.GetGlobalConfigResponse }>(
|
||||
"/v1/common/site/config",
|
||||
{
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get Privacy Policy GET /v1/common/site/privacy */
|
||||
export async function getPrivacyPolicy(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.PrivacyPolicyConfig }>(
|
||||
"/v1/common/site/privacy",
|
||||
{
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get stat GET /v1/common/site/stat */
|
||||
export async function getStat(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.GetStatResponse }>(
|
||||
"/v1/common/site/stat",
|
||||
{
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get Tos Content GET /v1/common/site/tos */
|
||||
export async function getTos(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.GetTosResponse }>(
|
||||
"/v1/common/site/tos",
|
||||
{
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/* eslint-disable */
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as auth from "./auth";
|
||||
import * as common from "./common";
|
||||
import * as oauth from "./oauth";
|
||||
export default {
|
||||
auth,
|
||||
oauth,
|
||||
common,
|
||||
};
|
||||
@@ -0,0 +1,79 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Apple Login Callback POST /v1/auth/oauth/callback/apple */
|
||||
export async function appleLoginCallback(
|
||||
body: {
|
||||
id_token: string;
|
||||
state: string;
|
||||
},
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
const formData = new FormData();
|
||||
|
||||
Object.keys(body).forEach((ele) => {
|
||||
const item = (body as any)[ele];
|
||||
|
||||
if (item !== undefined && item !== null) {
|
||||
if (typeof item === "object" && !(item instanceof File)) {
|
||||
if (Array.isArray(item)) {
|
||||
for (const f of item) {
|
||||
formData.append(ele, f || "");
|
||||
}
|
||||
} else {
|
||||
formData.append(
|
||||
ele,
|
||||
new Blob([JSON.stringify(item)], { type: "application/json" })
|
||||
);
|
||||
}
|
||||
} else {
|
||||
formData.append(ele, item);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return request<API.Response & { data?: any }>(
|
||||
"/v1/auth/oauth/callback/apple",
|
||||
{
|
||||
method: "POST",
|
||||
data: formData,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** OAuth login POST /v1/auth/oauth/login */
|
||||
export async function oAuthLogin(
|
||||
body: API.OAthLoginRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.OAuthLoginResponse }>(
|
||||
"/v1/auth/oauth/login",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** OAuth login get token POST /v1/auth/oauth/login/token */
|
||||
export async function oAuthLoginGetToken(
|
||||
body: API.OAuthLoginGetTokenRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.LoginResponse }>(
|
||||
"/v1/auth/oauth/login/token",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
+1144
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,20 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Query announcement GET /v1/public/announcement/list */
|
||||
export async function queryAnnouncement(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.QueryAnnouncementParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.QueryAnnouncementResponse }>(
|
||||
"/v1/public/announcement/list",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Get document detail GET /v1/public/document/detail */
|
||||
export async function queryDocumentDetail(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.QueryDocumentDetailParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.Document }>(
|
||||
"/v1/public/document/detail",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get document list GET /v1/public/document/list */
|
||||
export async function queryDocumentList(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.QueryDocumentListResponse }>(
|
||||
"/v1/public/document/list",
|
||||
{
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/* eslint-disable */
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as announcement from "./announcement";
|
||||
import * as document from "./document";
|
||||
import * as order from "./order";
|
||||
import * as payment from "./payment";
|
||||
import * as portal from "./portal";
|
||||
import * as subscribe from "./subscribe";
|
||||
import * as ticket from "./ticket";
|
||||
import * as user from "./user";
|
||||
export default {
|
||||
announcement,
|
||||
document,
|
||||
order,
|
||||
payment,
|
||||
portal,
|
||||
subscribe,
|
||||
ticket,
|
||||
user,
|
||||
};
|
||||
@@ -0,0 +1,143 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Close order POST /v1/public/order/close */
|
||||
export async function closeOrder(
|
||||
body: API.CloseOrderRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>("/v1/public/order/close", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get order GET /v1/public/order/detail */
|
||||
export async function queryOrderDetail(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.QueryOrderDetailParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.OrderDetail }>(
|
||||
"/v1/public/order/detail",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get order list GET /v1/public/order/list */
|
||||
export async function queryOrderList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.QueryOrderListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.QueryOrderListResponse }>(
|
||||
"/v1/public/order/list",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Pre create order POST /v1/public/order/pre */
|
||||
export async function preCreateOrder(
|
||||
body: API.PurchaseOrderRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.PreOrderResponse }>(
|
||||
"/v1/public/order/pre",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** purchase Subscription POST /v1/public/order/purchase */
|
||||
export async function purchase(
|
||||
body: API.PurchaseOrderRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.PurchaseOrderResponse }>(
|
||||
"/v1/public/order/purchase",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 此处后端没有提供注释 POST /v1/public/order/recharge */
|
||||
export async function recharge(
|
||||
body: API.RechargeOrderRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.RechargeOrderResponse }>(
|
||||
"/v1/public/order/recharge",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Renewal Subscription POST /v1/public/order/renewal */
|
||||
export async function renewal(
|
||||
body: API.RenewalOrderRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.RenewalOrderResponse }>(
|
||||
"/v1/public/order/renewal",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Reset traffic POST /v1/public/order/reset */
|
||||
export async function resetTraffic(
|
||||
body: API.ResetTrafficOrderRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.ResetTrafficOrderResponse }>(
|
||||
"/v1/public/order/reset",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Get available payment methods GET /v1/public/payment/methods */
|
||||
export async function getAvailablePaymentMethods(options?: {
|
||||
[key: string]: any;
|
||||
}) {
|
||||
return request<
|
||||
API.Response & { data?: API.GetAvailablePaymentMethodsResponse }
|
||||
>("/v1/public/payment/methods", {
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Purchase Checkout POST /v1/public/portal/order/checkout */
|
||||
export async function purchaseCheckout(
|
||||
body: API.CheckoutOrderRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.CheckoutOrderResponse }>(
|
||||
"/v1/public/portal/order/checkout",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Query Purchase Order GET /v1/public/portal/order/status */
|
||||
export async function queryPurchaseOrder(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.QueryPurchaseOrderParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.QueryPurchaseOrderResponse }>(
|
||||
"/v1/public/portal/order/status",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get available payment methods GET /v1/public/portal/payment-method */
|
||||
export async function getAvailablePaymentMethods(options?: {
|
||||
[key: string]: any;
|
||||
}) {
|
||||
return request<
|
||||
API.Response & { data?: API.GetAvailablePaymentMethodsResponse }
|
||||
>("/v1/public/portal/payment-method", {
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Pre Purchase Order POST /v1/public/portal/pre */
|
||||
export async function prePurchaseOrder(
|
||||
body: API.PrePurchaseOrderRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.PrePurchaseOrderResponse }>(
|
||||
"/v1/public/portal/pre",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Purchase subscription POST /v1/public/portal/purchase */
|
||||
export async function purchase(
|
||||
body: API.PortalPurchaseRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.PortalPurchaseResponse }>(
|
||||
"/v1/public/portal/purchase",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get Subscription GET /v1/public/portal/subscribe */
|
||||
export async function getSubscription(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.GetSubscriptionParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.GetSubscriptionResponse }>(
|
||||
"/v1/public/portal/subscribe",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Get subscribe list GET /v1/public/subscribe/list */
|
||||
export async function querySubscribeList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.QuerySubscribeListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.QuerySubscribeListResponse }>(
|
||||
"/v1/public/subscribe/list",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get user subscribe node info GET /v1/public/subscribe/node/list */
|
||||
export async function queryUserSubscribeNodeList(options?: {
|
||||
[key: string]: any;
|
||||
}) {
|
||||
return request<
|
||||
API.Response & { data?: API.QueryUserSubscribeNodeListResponse }
|
||||
>("/v1/public/subscribe/node/list", {
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Update ticket status PUT /v1/public/ticket/ */
|
||||
export async function updateUserTicketStatus(
|
||||
body: API.UpdateUserTicketStatusRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>("/v1/public/ticket/", {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Create ticket POST /v1/public/ticket/ */
|
||||
export async function createUserTicket(
|
||||
body: API.CreateUserTicketRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>("/v1/public/ticket/", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get ticket detail GET /v1/public/ticket/detail */
|
||||
export async function getUserTicketDetails(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.GetUserTicketDetailsParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.Ticket }>(
|
||||
"/v1/public/ticket/detail",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Create ticket follow POST /v1/public/ticket/follow */
|
||||
export async function createUserTicketFollow(
|
||||
body: API.CreateUserTicketFollowRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>("/v1/public/ticket/follow", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get ticket list GET /v1/public/ticket/list */
|
||||
export async function getUserTicketList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.GetUserTicketListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.GetUserTicketListResponse }>(
|
||||
"/v1/public/ticket/list",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
+1258
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,377 @@
|
||||
/* eslint-disable */
|
||||
import request from "@workspace/ui/lib/request";
|
||||
|
||||
/** Query User Affiliate Count GET /v1/public/user/affiliate/count */
|
||||
export async function queryUserAffiliate(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.QueryUserAffiliateCountResponse }>(
|
||||
"/v1/public/user/affiliate/count",
|
||||
{
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Query User Affiliate List GET /v1/public/user/affiliate/list */
|
||||
export async function queryUserAffiliateList(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.QueryUserAffiliateListParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.QueryUserAffiliateListResponse }>(
|
||||
"/v1/public/user/affiliate/list",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Update Bind Email PUT /v1/public/user/bind_email */
|
||||
export async function updateBindEmail(
|
||||
body: API.UpdateBindEmailRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>("/v1/public/user/bind_email", {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Update Bind Mobile PUT /v1/public/user/bind_mobile */
|
||||
export async function updateBindMobile(
|
||||
body: API.UpdateBindMobileRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>("/v1/public/user/bind_mobile", {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Bind OAuth POST /v1/public/user/bind_oauth */
|
||||
export async function bindOAuth(
|
||||
body: API.BindOAuthRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.BindOAuthResponse }>(
|
||||
"/v1/public/user/bind_oauth",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Bind OAuth Callback POST /v1/public/user/bind_oauth/callback */
|
||||
export async function bindOAuthCallback(
|
||||
body: API.BindOAuthCallbackRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>(
|
||||
"/v1/public/user/bind_oauth/callback",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Bind Telegram GET /v1/public/user/bind_telegram */
|
||||
export async function bindTelegram(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.BindTelegramResponse }>(
|
||||
"/v1/public/user/bind_telegram",
|
||||
{
|
||||
method: "GET",
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 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 || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get Device List GET /v1/public/user/devices */
|
||||
export async function getDeviceList(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.GetDeviceListResponse }>(
|
||||
"/v1/public/user/devices",
|
||||
{
|
||||
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 || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get Login Log GET /v1/public/user/login_log */
|
||||
export async function getLoginLog(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.GetLoginLogParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.GetLoginLogResponse }>(
|
||||
"/v1/public/user/login_log",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(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 || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get OAuth Methods GET /v1/public/user/oauth_methods */
|
||||
export async function getOAuthMethods(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.GetOAuthMethodsResponse }>(
|
||||
"/v1/public/user/oauth_methods",
|
||||
{
|
||||
method: "GET",
|
||||
...(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 || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Get Subscribe Log GET /v1/public/user/subscribe_log */
|
||||
export async function getSubscribeLog(
|
||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||
params: API.GetSubscribeLogParams,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.GetSubscribeLogResponse }>(
|
||||
"/v1/public/user/subscribe_log",
|
||||
{
|
||||
method: "GET",
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Update User Subscribe Note PUT /v1/public/user/subscribe_note */
|
||||
export async function updateUserSubscribeNote(
|
||||
body: API.UpdateUserSubscribeNoteRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>(
|
||||
"/v1/public/user/subscribe_note",
|
||||
{
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Reset User Subscribe Token PUT /v1/public/user/subscribe_token */
|
||||
export async function resetUserSubscribeToken(
|
||||
body: API.ResetUserSubscribeTokenRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>(
|
||||
"/v1/public/user/subscribe_token",
|
||||
{
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Unbind Device PUT /v1/public/user/unbind_device */
|
||||
export async function unbindDevice(
|
||||
body: API.UnbindDeviceRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>(
|
||||
"/v1/public/user/unbind_device",
|
||||
{
|
||||
method: "PUT",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Unbind OAuth POST /v1/public/user/unbind_oauth */
|
||||
export async function unbindOAuth(
|
||||
body: API.UnbindOAuthRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>(
|
||||
"/v1/public/user/unbind_oauth",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Unbind Telegram POST /v1/public/user/unbind_telegram */
|
||||
export async function unbindTelegram(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: any }>(
|
||||
"/v1/public/user/unbind_telegram",
|
||||
{
|
||||
method: "POST",
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 此处后端没有提供注释 POST /v1/public/user/unsubscribe */
|
||||
export async function unsubscribe(
|
||||
body: API.UnsubscribeRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>("/v1/public/user/unsubscribe", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Pre Unsubscribe POST /v1/public/user/unsubscribe/pre */
|
||||
export async function preUnsubscribe(
|
||||
body: API.PreUnsubscribeRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: API.PreUnsubscribeResponse }>(
|
||||
"/v1/public/user/unsubscribe/pre",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** Verify Email POST /v1/public/user/verify_email */
|
||||
export async function verifyEmail(
|
||||
body: API.VerifyEmailRequest,
|
||||
options?: { [key: string]: any }
|
||||
) {
|
||||
return request<API.Response & { data?: any }>(
|
||||
"/v1/public/user/verify_email",
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user