lrj
3 天以前 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
extend type Query {
  activityPlayerApplications(name: String, page: Int, size: Int): [ActivityPlayerApplicationResponse!]!
  activityPlayerDetail(id: ID!): ActivityPlayerDetailResponse
}
 
extend type Mutation {
  saveActivityPlayerRating(input: ActivityPlayerRatingInput!): Boolean!
}
 
type ActivityPlayerApplicationResponse {
  id: ID
  playerName: String!
  activityName: String!
  phone: String
  applyTime: String!
  state: Int
}
 
# 比赛报名详情响应(用于评分页面)
type ActivityPlayerDetailResponse {
  id: ID!
  playerInfo: PlayerInfoResponse!
  activityName: String!
  description: String
  submissionFiles: [SubmissionMediaResponse!]!
  ratingForm: RatingFormResponse
}
 
# 学员信息响应
type PlayerInfoResponse {
  id: ID!
  name: String!
  phone: String
  description: String
  avatarUrl: String
}
 
# 提交资料响应
type SubmissionMediaResponse {
  id: ID!
  name: String!
  url: String!
  fileExt: String
  fileSize: Int
  mediaType: Int
}
 
# 评分表单响应
type RatingFormResponse {
  schemeId: ID!
  schemeName: String!
  items: [RatingItemResponse!]!
  totalMaxScore: Int!
}
 
# 评分提交输入类型
input ActivityPlayerRatingInput {
  activityPlayerId: ID!
  ratings: [ActivityPlayerRatingItemInput!]!
  comment: String
}
 
# 评分项目输入类型
input ActivityPlayerRatingItemInput {
  itemId: ID!
  score: Int!
}