mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-23 08:57:10 +08:00
chore: 优化部分代码
This commit is contained in:
@@ -19,11 +19,11 @@ export function getEmailCaptcha(query: { email: string }) {
|
||||
}
|
||||
|
||||
/** @desc 获取行为验证码 */
|
||||
export function getBehaviorCaptcha(params: any) {
|
||||
return http.get<Common.BehaviorCaptchaRes>(`${BASE_URL}/behavior`, {params});
|
||||
export function getBehaviorCaptcha(req: any) {
|
||||
return http.get<Common.BehaviorCaptchaResp>(`${BASE_URL}/behavior`, req)
|
||||
}
|
||||
|
||||
/** @desc 校验行为验证码 */
|
||||
export function checkBehaviorCaptcha(params: any) {
|
||||
return http.post<Common.CheckBehaviorCaptchaRes>(`${BASE_URL}/behavior`, params);
|
||||
export function checkBehaviorCaptcha(req: any) {
|
||||
return http.post<Common.CheckBehaviorCaptchaResp>(`${BASE_URL}/behavior`, req)
|
||||
}
|
||||
|
@@ -20,13 +20,7 @@ export interface DashboardNoticeResp {
|
||||
}
|
||||
|
||||
/* 行为验证码类型 */
|
||||
export interface BehaviorCaptchaReq {
|
||||
captchaType?: string
|
||||
captchaVerification?: string
|
||||
clientUid?: string
|
||||
}
|
||||
|
||||
export interface BehaviorCaptchaRes {
|
||||
export interface BehaviorCaptchaResp {
|
||||
originalImageBase64: string
|
||||
point: {
|
||||
x: number
|
||||
@@ -38,7 +32,7 @@ export interface BehaviorCaptchaRes {
|
||||
wordList: string[]
|
||||
}
|
||||
|
||||
export interface CheckBehaviorCaptchaRes {
|
||||
export interface CheckBehaviorCaptchaResp {
|
||||
repCode: string
|
||||
repMsg: string
|
||||
}
|
||||
|
Reference in New Issue
Block a user