更新+mock部分
This commit is contained in:
@@ -4,9 +4,9 @@ import java.util.List;
|
||||
|
||||
public record AreaNodeDto(
|
||||
String areaCode,
|
||||
String parentCode,
|
||||
String areaName,
|
||||
String areaLevel,
|
||||
String provinceCode,
|
||||
List<AreaNodeDto> children
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -6,8 +6,11 @@ public record CurrentRouteUserDto(
|
||||
String userId,
|
||||
String username,
|
||||
String displayName,
|
||||
String adcode,
|
||||
String tenantId,
|
||||
String tenantPath,
|
||||
String deptId,
|
||||
String deptPath,
|
||||
List<String> permissionCodes
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -4,9 +4,12 @@ import java.util.List;
|
||||
|
||||
public record DeptNodeDto(
|
||||
String deptId,
|
||||
String parentDeptId,
|
||||
String deptName,
|
||||
String deptType,
|
||||
String tenantId,
|
||||
String adcode,
|
||||
String tenantPath,
|
||||
String deptPath,
|
||||
List<DeptNodeDto> children
|
||||
) {
|
||||
|
||||
@@ -4,10 +4,10 @@ import java.util.List;
|
||||
|
||||
public record TenantNodeDto(
|
||||
String tenantId,
|
||||
String parentTenantId,
|
||||
String tenantName,
|
||||
String tenantType,
|
||||
String provinceCode,
|
||||
String areaCode,
|
||||
String adcode,
|
||||
String tenantPath,
|
||||
List<TenantNodeDto> children
|
||||
) {
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.k12study.api.upms.remote;
|
||||
|
||||
public final class UpmsApiPaths {
|
||||
private UpmsApiPaths() {
|
||||
}
|
||||
|
||||
public static final String BASE = "/upms";
|
||||
public static final String ROUTES = BASE + "/routes";
|
||||
public static final String USERS_CURRENT = BASE + "/users/current";
|
||||
public static final String AREAS = BASE + "/areas";
|
||||
public static final String TENANTS = BASE + "/tenants";
|
||||
public static final String DEPARTMENTS = BASE + "/departments";
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.k12study.api.upms.remote;
|
||||
|
||||
import com.k12study.api.upms.dto.AreaNodeDto;
|
||||
import com.k12study.api.upms.dto.CurrentRouteUserDto;
|
||||
import com.k12study.api.upms.dto.DeptNodeDto;
|
||||
import com.k12study.api.upms.dto.RouteNodeDto;
|
||||
import com.k12study.api.upms.dto.TenantNodeDto;
|
||||
import com.k12study.common.api.response.ApiResponse;
|
||||
import java.util.List;
|
||||
|
||||
public interface UpmsRemoteApi {
|
||||
ApiResponse<List<RouteNodeDto>> routes();
|
||||
|
||||
ApiResponse<CurrentRouteUserDto> currentUser();
|
||||
|
||||
ApiResponse<List<AreaNodeDto>> areas();
|
||||
|
||||
ApiResponse<List<TenantNodeDto>> tenants();
|
||||
|
||||
ApiResponse<List<DeptNodeDto>> departments();
|
||||
}
|
||||
Reference in New Issue
Block a user