Finish authentication
This commit is contained in:
17
src/main/kotlin/top/fatweb/api/param/LoginParam.kt
Normal file
17
src/main/kotlin/top/fatweb/api/param/LoginParam.kt
Normal file
@@ -0,0 +1,17 @@
|
||||
package top.fatweb.api.param
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
import jakarta.validation.constraints.NotBlank
|
||||
import java.io.Serializable
|
||||
|
||||
@Schema(description = "登录请求参数")
|
||||
class LoginParam : Serializable {
|
||||
|
||||
@Schema(description = "用户名", example = "test", required = true)
|
||||
@NotBlank(message = "Username can not be blank")
|
||||
val username: String? = null
|
||||
|
||||
@Schema(description = "密码", example = "test123456", required = true)
|
||||
@NotBlank(message = "Password can not be blank")
|
||||
val password: String? = null
|
||||
}
|
||||
Reference in New Issue
Block a user