通用模块开发

This commit is contained in:
haoxin963
2021-06-23 20:58:11 +08:00
parent bc185f2fe9
commit df06ebb8f6
48 changed files with 1205 additions and 826 deletions

View File

@@ -0,0 +1,42 @@
package com.xtoon.cloud.sys.dto;
import lombok.Data;
import java.io.Serializable;
import java.util.Set;
/**
* 认证信息DTO
*
* @author haoxin
* @date 2021-06-23
**/
@Data
public class AuthenticationDTO implements Serializable {
/**
* 用户ID
*/
private String userId;
/**
* 用户名
*/
private String userName;
/**
* password
*/
private String password;
/**
* status
*/
private String status;
/**
* 权限编码
*/
private Set<String> permissionCodes;
}

View File

@@ -0,0 +1,28 @@
package com.xtoon.cloud.sys.service;
import com.xtoon.cloud.sys.dto.AuthenticationDTO;
/**
* 认证服务接口
*
* @author haoxin
* @date 2021-06-23
**/
public interface AuthenticationService {
/**
* 验证验证码
*
* @param uuid
* @return
*/
boolean validateCaptcha(String uuid, String captchaCode);
/**
* 认证
*
* @param userName 用户名
* @return
*/
AuthenticationDTO loginByUserName(String userName);
}