From 915d80766dd8e0157e9b9510b3634ed758eb5c5a Mon Sep 17 00:00:00 2001 From: Codex Assistant <codex@example.com> Date: 星期日, 05 十月 2025 14:45:58 +0800 Subject: [PATCH] feat: 新增员工审核入口与审核页面 --- backend/src/main/resources/graphql/employee.graphqls | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/backend/src/main/resources/graphql/employee.graphqls b/backend/src/main/resources/graphql/employee.graphqls index 78727ab..621d614 100644 --- a/backend/src/main/resources/graphql/employee.graphqls +++ b/backend/src/main/resources/graphql/employee.graphqls @@ -26,6 +26,32 @@ # Spring Data鐨凱age瀵硅薄浼氳嚜鍔ㄦ槧灏勫埌GraphQL # 鎵╁睍鏌ヨ绫诲瀷 + + +type EmployeeReviewApplication { + id: Long! + playerName: String + projectName: String + activityName: String + state: Int + stateText: String + stateType: String + applyTime: String +} + +type EmployeeReviewPage { + content: [EmployeeReviewApplication!]! + totalElements: Int! + page: Int! + size: Int! +} + +type EmployeeReviewStats { + pendingCount: Int! + approvedCount: Int! + rejectedCount: Int! +} + extend type Query { # 鑾峰彇鎵�鏈夊憳宸ュ垪琛� employees: [EmployeeResponse!]! @@ -35,6 +61,12 @@ # 鏍规嵁ID鑾峰彇鍛樺伐璇︽儏 employee(id: Long!): EmployeeResponse + + # 鍛樺伐瀹℃牳缁熻 + employeeReviewStats(keyword: String): EmployeeReviewStats! + + # 鍛樺伐瀹℃牳鍒楄〃 + employeeReviewApplications(keyword: String, state: Int, page: Int, size: Int): EmployeeReviewPage! } # 鎵╁睍鍙樻洿绫诲瀷 -- Gitblit v1.8.0