feat: 添加登录注册条款确认
This commit is contained in:
@@ -4,7 +4,12 @@
|
||||
*/
|
||||
|
||||
import { apiClient } from "../client";
|
||||
import type { CustomMenuItem, CustomEndpoint, NotifyEmailEntry } from "@/types";
|
||||
import type {
|
||||
CustomEndpoint,
|
||||
CustomMenuItem,
|
||||
LoginAgreementDocument,
|
||||
NotifyEmailEntry,
|
||||
} from "@/types";
|
||||
|
||||
export interface DefaultSubscriptionSetting {
|
||||
group_id: number;
|
||||
@@ -314,6 +319,10 @@ export interface SystemSettings {
|
||||
invitation_code_enabled: boolean;
|
||||
totp_enabled: boolean; // TOTP 双因素认证
|
||||
totp_encryption_key_configured: boolean; // TOTP 加密密钥是否已配置
|
||||
login_agreement_enabled: boolean;
|
||||
login_agreement_mode: "modal" | "checkbox" | string;
|
||||
login_agreement_updated_at: string;
|
||||
login_agreement_documents: LoginAgreementDocument[];
|
||||
// Default settings
|
||||
default_balance: number;
|
||||
affiliate_rebate_rate: number;
|
||||
@@ -528,6 +537,10 @@ export interface UpdateSettingsRequest {
|
||||
frontend_url?: string;
|
||||
invitation_code_enabled?: boolean;
|
||||
totp_enabled?: boolean; // TOTP 双因素认证
|
||||
login_agreement_enabled?: boolean;
|
||||
login_agreement_mode?: "modal" | "checkbox" | string;
|
||||
login_agreement_updated_at?: string;
|
||||
login_agreement_documents?: LoginAgreementDocument[];
|
||||
default_balance?: number;
|
||||
affiliate_rebate_rate?: number;
|
||||
affiliate_rebate_freeze_hours?: number;
|
||||
|
||||
Reference in New Issue
Block a user