mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-02-23 06:30:46 +08:00
登录接口功能rsa加密实现
This commit is contained in:
29
src/main/java/cn/xf/basedemo/common/model/LoginInfo.java
Normal file
29
src/main/java/cn/xf/basedemo/common/model/LoginInfo.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package cn.xf.basedemo.common.model;
|
||||
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
/**
|
||||
* @program: xf-boot-base
|
||||
* @ClassName LoginInfo
|
||||
* @description:
|
||||
* @author: xiongfeng
|
||||
* @create: 2022-07-04 14:26
|
||||
**/
|
||||
@Data
|
||||
public class LoginInfo {
|
||||
|
||||
private String account;
|
||||
|
||||
private String pwd;
|
||||
|
||||
public String check(){
|
||||
if(StringUtils.isEmpty(account)){
|
||||
return "账号不能为空";
|
||||
}
|
||||
if(StringUtils.isEmpty(pwd)){
|
||||
return "密码不能为空";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user