lrj
2 天以前 c61d4fe27c97d2ecc907756aa571a4ef14a7b9b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
extend type Query {
    "获取所有评委列表"
    judges: [JudgeResponse]
    
    "根据名称搜索评委"
    judgesByName(name: String): [JudgeResponse]
    
    "根据ID获取评委详情"
    judge(id: ID): JudgeResponse
    
    "获取腾讯云COS临时上传凭证"
    getUploadCredentials: CosCredentials
}
 
extend type Mutation {
    "保存评委信息(新增或修改)"
    saveJudge(input: JudgeInput): JudgeResponse
    
    "删除评委"
    deleteJudge(id: ID): Boolean
}
 
"评委输入类型"
input JudgeInput {
    id: ID
    name: String
    title: String
    company: String
    phone: String
    gender: Int
    description: String
    introduction: String
    avatarUrl: String
    avatarMediaId: ID
    majorIds: [ID]
    tagNames: [String]
}
 
"评委响应类型"
type JudgeResponse {
    id: ID
    name: String
    title: String
    company: String
    phone: String
    gender: Int
    description: String
    introduction: String
    avatarUrl: String
    specialties: [TagResponse]
    tags: [TagResponse]
}
 
"标签响应类型"
type TagResponse {
    id: ID
    name: String
    code: String
}
 
"腾讯云COS临时凭证类型"
type CosCredentials {
    bucket: String
    region: String
    key: String
    presignedUrl: String
    expiration: String
}