Codex Assistant
18 小时以前 915d80766dd8e0157e9b9510b3634ed758eb5c5a
backend/src/main/resources/graphql/employee.graphqls
@@ -26,6 +26,32 @@
# Spring Data的Page对象会自动映射到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!
}
# 扩展变更类型