1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| # 消息相关的GraphQL Schema
|
| # 消息类型
| type Message {
| id: Long!
| userId: Long!
| content: String!
| templateContent: String
| wxMsgSuccess: Boolean!
| wxMsgErrCount: Int!
| wxMsgLastErr: String
| state: String!
| createTime: String!
| updateTime: String!
| }
|
| # 扩展查询类型
| extend type Query {
| # 根据用户ID获取消息列表,按时间倒序
| getMessagesByUserId(userId: Long!): [Message!]!
| }
|
|