- 补充 RefObject import(local-captcha、slider-captcha、node-group-form) - 删除 slider-captcha 中无用的 _scaleX/_scaleY 变量 - user_subscribe_id 类型转换 number → string - 移除 services 文件中失效的 @ts-expect-error 指令
407 lines
11 KiB
TypeScript
407 lines
11 KiB
TypeScript
/* 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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${
|
|
import.meta.env.VITE_API_PREFIX || ""
|
|
}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${
|
|
import.meta.env.VITE_API_PREFIX || ""
|
|
}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${
|
|
import.meta.env.VITE_API_PREFIX || ""
|
|
}/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 }>(
|
|
`${
|
|
import.meta.env.VITE_API_PREFIX || ""
|
|
}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${
|
|
import.meta.env.VITE_API_PREFIX || ""
|
|
}/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 }>(
|
|
`${
|
|
import.meta.env.VITE_API_PREFIX || ""
|
|
}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/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 }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/system/verify_config`,
|
|
{
|
|
method: "PUT",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
}
|
|
);
|
|
}
|
|
|
|
/**
|
|
* 获取签名配置
|
|
* GET /v1/admin/system/signature_config
|
|
* @param options - 可选的请求配置
|
|
* @returns 签名配置
|
|
*/
|
|
export async function getSignatureConfig(options?: { [key: string]: any }) {
|
|
return request<API.Response & { data?: API.SignatureConfig }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/system/signature_config`,
|
|
{
|
|
method: "GET",
|
|
...(options || {}),
|
|
}
|
|
);
|
|
}
|
|
|
|
/**
|
|
* 更新签名配置
|
|
* PUT /v1/admin/system/signature_config
|
|
* @param body - 签名配置参数
|
|
* @param options - 可选的请求配置
|
|
* @returns 更新结果
|
|
*/
|
|
export async function updateSignatureConfig(
|
|
body: API.SignatureConfig,
|
|
options?: { [key: string]: any }
|
|
) {
|
|
return request<API.Response & { data?: any }>(
|
|
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/system/signature_config`,
|
|
{
|
|
method: "PUT",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
}
|
|
);
|
|
}
|