feat(我的绩效): 开发我的绩效功能。

This commit is contained in:
dk
2026-06-21 18:20:58 +08:00
parent 117dd91afd
commit d2224e0cfc
49 changed files with 2510 additions and 2 deletions

View File

@@ -16,6 +16,15 @@ public class DeptRespDTO {
@Schema(description = "父部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Long parentId;
@Schema(description = "组织节点类型", example = "direction")
private String orgType;
@Schema(description = "组织编码", example = "rd")
private String code;
@Schema(description = "组织物化路径", example = "/100/101")
private String path;
@Schema(description = "部门状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Integer status;

View File

@@ -21,4 +21,14 @@ public interface FileApi {
@Parameter(name = "url", description = "文件 URL", required = true)
CommonResult<FileRespDTO> getFileByUrl(@RequestParam("url") String url);
@GetMapping(PREFIX + "/get")
@Operation(summary = "通过文件 ID 查询文件")
@Parameter(name = "id", description = "文件 ID", required = true)
CommonResult<FileRespDTO> getFile(@RequestParam("id") Long id);
@GetMapping(PREFIX + "/content")
@Operation(summary = "通过文件 ID 读取文件内容")
@Parameter(name = "id", description = "文件 ID", required = true)
CommonResult<byte[]> getFileContent(@RequestParam("id") Long id);
}

View File

@@ -10,6 +10,11 @@ public class FileRespDTO {
*/
private Long id;
/**
* 文件配置编号。
*/
private Long configId;
/**
* 文件名称。
*/

View File

@@ -10,6 +10,7 @@ public enum DeptOrgTypeEnum {
COMPANY("company"),
DEPT("dept"),
DIRECTION("direction"),
FUNCTION("function"),
TEAM("team");
private final String type;