first commit
This commit is contained in:
21
qiaoba-apis/qiaoba-api-auth/pom.xml
Normal file
21
qiaoba-apis/qiaoba-api-auth/pom.xml
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>qiaoba-apis</artifactId>
|
||||
<groupId>com.qiaoba</groupId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>qiaoba-api-auth</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<!-- Spring Security -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-security</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
@ -0,0 +1,29 @@
|
||||
package com.qiaoba.api.auth.service;
|
||||
|
||||
import org.springframework.security.core.userdetails.UserDetails;
|
||||
|
||||
/**
|
||||
* SysUserDetails 暴露接口
|
||||
*
|
||||
* @author ailanyin
|
||||
* @version 1.0
|
||||
* @since 2023/5/19 17:17
|
||||
*/
|
||||
public interface SysUserDetailsApiService {
|
||||
|
||||
/**
|
||||
* 查询UserDetails 并缓存到Redis中
|
||||
*
|
||||
* @param username username
|
||||
* @return UserDetails
|
||||
*/
|
||||
UserDetails toCache(String username, String deviceSn);
|
||||
|
||||
/**
|
||||
* 从缓存中删除
|
||||
*
|
||||
* @param username username
|
||||
* @param deviceSn deviceSn
|
||||
*/
|
||||
void deleteCache(String username, String deviceSn);
|
||||
}
|
Reference in New Issue
Block a user