This commit is contained in:
2026-04-14 16:27:47 +08:00
commit 4b38a4c952
134 changed files with 7478 additions and 0 deletions

View 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>

View File

@@ -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
) {
}

View File

@@ -0,0 +1,10 @@
package com.k12study.api.auth.dto;
public record LoginRequest(
String username,
String password,
String provinceCode,
String areaCode,
String tenantId
) {
}

View File

@@ -0,0 +1,9 @@
package com.k12study.api.auth.dto;
public record TokenResponse(
String accessToken,
String refreshToken,
String tokenType,
long expiresIn
) {
}