mirror of
https://gitee.com/xtoon/xtoon-cloud.git
synced 2026-05-17 12:47:54 +00:00
通用模块开发
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user