Optimize two-factor api. Add remove two-factor api.

This commit is contained in:
2024-03-01 15:35:32 +08:00
parent b52ce7f5e8
commit 570f5a8ac6
20 changed files with 109 additions and 21 deletions

View File

@@ -42,6 +42,6 @@ data class LoginParam(
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
*/
@Schema(description = "二步验证码")
@Schema(description = "双因素验证码")
val twoFactorCode: String?
) : CaptchaCodeParam()

View File

@@ -0,0 +1,23 @@
package top.fatweb.oxygen.api.param.permission
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
/**
* Remove two-factor parameters
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
*/
@Schema(description = "移除双因素请求参数")
data class TwoFactorRemoveParam(
/**
* Code
*
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
*/
@Schema(description = "验证码")
@field:NotBlank(message = "Code can not be blank")
val code: String?
)

View File

@@ -9,7 +9,7 @@ import jakarta.validation.constraints.NotBlank
* @author FatttSnake, fatttsnake@gmail.com
* @since 1.0.0
*/
@Schema(description = "验证二步验证请求参数")
@Schema(description = "验证双因素请求参数")
data class TwoFactorValidateParam(
/**
* Code

View File

@@ -12,7 +12,7 @@ import top.fatweb.oxygen.api.annotation.Trim
* @since 1.0.0
*/
@Trim
@Schema(description = "二步验证设置请求参数")
@Schema(description = "双因素设置请求参数")
data class TwoFactorSettingsParam(
/**
* Issuer