init
This commit is contained in:
25
backend/apis/api-auth/pom.xml
Normal file
25
backend/apis/api-auth/pom.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.k12study</groupId>
|
||||
<artifactId>k12study-backend</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>api-auth</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.k12study</groupId>
|
||||
<artifactId>common-api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.k12study.api.auth.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record CurrentUserResponse(
|
||||
String userId,
|
||||
String username,
|
||||
String displayName,
|
||||
String provinceCode,
|
||||
String areaCode,
|
||||
String tenantId,
|
||||
String deptId,
|
||||
List<String> roles
|
||||
) {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.k12study.api.auth.dto;
|
||||
|
||||
public record LoginRequest(
|
||||
String username,
|
||||
String password,
|
||||
String provinceCode,
|
||||
String areaCode,
|
||||
String tenantId
|
||||
) {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.k12study.api.auth.dto;
|
||||
|
||||
public record TokenResponse(
|
||||
String accessToken,
|
||||
String refreshToken,
|
||||
String tokenType,
|
||||
long expiresIn
|
||||
) {
|
||||
}
|
||||
Reference in New Issue
Block a user