feat: 新增验证码配置开关

This commit is contained in:
Gyq灬明
2024-12-05 07:54:05 +00:00
committed by Charles7c
parent 3f871e102a
commit 4cd892e288
7 changed files with 204 additions and 20 deletions

View File

@@ -45,6 +45,7 @@ export interface RouteItem {
export interface AccountLoginReq {
username: string
password: string
unCaptcha: boolean
captcha: string
uuid: string
}

View File

@@ -5,6 +5,11 @@ export type * from './type'
const BASE_URL = '/captcha'
/** @desc 获取图片验证码 */
export function getCaptchaConfig() {
return http.get<boolean>(`${BASE_URL}/config`)
}
/** @desc 获取图片验证码 */
export function getImageCaptcha() {
return http.get<T.ImageCaptchaResp>(`${BASE_URL}/image`)

View File

@@ -316,6 +316,11 @@ export interface SecurityConfig {
PASSWORD_REQUIRE_SYMBOLS: OptionResp
}
/** 安全配置类型 */
export interface CaptchaSetting {
NEED_CAPTCHA: OptionResp
}
/** 绑定三方账号信息 */
export interface BindSocialAccountRes {
source: string