init
This commit is contained in:
25
backend/apis/api-upms/pom.xml
Normal file
25
backend/apis/api-upms/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-upms</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,12 @@
|
||||
package com.k12study.api.upms.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record AreaNodeDto(
|
||||
String areaCode,
|
||||
String areaName,
|
||||
String areaLevel,
|
||||
String provinceCode,
|
||||
List<AreaNodeDto> children
|
||||
) {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.k12study.api.upms.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record CurrentRouteUserDto(
|
||||
String userId,
|
||||
String username,
|
||||
String displayName,
|
||||
String tenantId,
|
||||
String deptId,
|
||||
List<String> permissionCodes
|
||||
) {
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.k12study.api.upms.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record DeptNodeDto(
|
||||
String deptId,
|
||||
String deptName,
|
||||
String deptType,
|
||||
String tenantId,
|
||||
String deptPath,
|
||||
List<DeptNodeDto> children
|
||||
) {
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package com.k12study.api.upms.dto;
|
||||
|
||||
public enum LayoutType {
|
||||
DEFAULT,
|
||||
SIDEBAR
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.k12study.api.upms.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record RouteMetaDto(
|
||||
String title,
|
||||
String icon,
|
||||
List<String> permissionCodes,
|
||||
boolean hidden
|
||||
) {
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.k12study.api.upms.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record RouteNodeDto(
|
||||
String id,
|
||||
String path,
|
||||
String name,
|
||||
String component,
|
||||
LayoutType layout,
|
||||
RouteMetaDto meta,
|
||||
List<RouteNodeDto> children
|
||||
) {
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.k12study.api.upms.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record TenantNodeDto(
|
||||
String tenantId,
|
||||
String tenantName,
|
||||
String tenantType,
|
||||
String provinceCode,
|
||||
String areaCode,
|
||||
String tenantPath,
|
||||
List<TenantNodeDto> children
|
||||
) {
|
||||
}
|
||||
Reference in New Issue
Block a user