Codex Assistant
20 小时以前 915d80766dd8e0157e9b9510b3634ed758eb5c5a
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
extend type Query {
    activity(id: ID!): Activity
    activities(page: Int!, size: Int!, name: String): PageResponse
    allActivities: [Activity]
    allActivityStages: [Activity]
    activityStages(activityId: ID!): [Activity]
    ongoingActivities: [Activity]
    # 微信端获取活动列表
    getActivities: [Activity]
    # 获取主办方统计数据
    organizerStats: OrganizerStatsResponse
}
 
extend type Mutation {
    saveActivity(input: ActivityInput!): Activity
    deleteActivity(id: ID!): Boolean
}
 
type Activity {
    id: ID
    pid: ID
    path: String
    name: String
    description: String
    signupDeadline: String
    matchTime: String
    address: String
    ratingSchemeId: ID
    ratingScheme: RatingSchemeResponse
    playerCount: Int
    playerMax: Int
    sortOrder: Int
    state: Int
    stateName: String
    createTime: String
    updateTime: String
    coverImage: MediaResponse
    images: [MediaResponse]
    videos: [MediaResponse]
    stages: [Activity]
    parent: Activity
    judges: [ActivityJudgeResponse]
}
 
type PageResponse {
    content: [Activity]
    page: Int
    size: Int
    total: Int
    totalPages: Int
    totalElements: Int
    number: Int
    first: Boolean
    last: Boolean
}
 
input ActivityInput {
    id: ID
    pid: ID
    name: String!
    description: String
    signupDeadline: String
    matchTime: String
    address: String
    ratingSchemeId: ID
    playerMax: Int
    sortOrder: Int
    state: Int
    stages: [ActivityStageInput]
    judges: [ActivityJudgeInput]
}
 
input ActivityStageInput {
    id: ID
    name: String!
    description: String
    matchTime: String
    address: String
    ratingSchemeId: ID
    playerMax: Int
    sortOrder: Int
    state: Int
}
 
input ActivityJudgeInput {
    judgeId: ID!
    judgeName: String
    stageIds: [ID]
}
 
type ActivityJudgeResponse {
    id: ID
    name: String
    phone: String
    description: String
    stageIds: [ID]
}
 
# 活动详情和状态响应类型(微信端使用)
type ActivityDetailAndStatusResponse {
    activity: Activity
    registrationStatus: String
    canRegister: Boolean
    playerRegistration: ActivityPlayer
}
 
# 主办方统计响应类型
type OrganizerStatsResponse {
    activeActivities: Int!
    totalParticipants: Int!
    totalActivities: Int!
}