-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinputs.rs
More file actions
57 lines (49 loc) · 1.21 KB
/
inputs.rs
File metadata and controls
57 lines (49 loc) · 1.21 KB
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
use async_graphql::InputObject;
#[derive(Debug, Clone, InputObject)]
pub struct CreateGroupChatInput {
pub name: String,
pub executor_id: String,
}
#[derive(Debug, Clone, InputObject)]
pub struct DeleteGroupChatInput {
pub group_chat_id: String,
pub executor_id: String,
}
#[derive(Debug, Clone, InputObject)]
pub struct RenameGroupChatInput {
pub group_chat_id: String,
pub name: String,
pub executor_id: String,
}
#[derive(Debug, Clone, InputObject)]
pub struct AddMemberInput {
pub group_chat_id: String,
pub user_account_id: String,
pub role: String,
pub executor_id: String,
}
#[derive(Debug, Clone, InputObject)]
pub struct RemoveMemberInput {
pub group_chat_id: String,
pub user_account_id: String,
pub executor_id: String,
}
#[derive(Debug, Clone, InputObject)]
pub struct PostMessageInput {
pub group_chat_id: String,
pub content: String,
pub executor_id: String,
}
#[derive(Debug, Clone, InputObject)]
pub struct EditMessageInput {
pub group_chat_id: String,
pub message_id: String,
pub content: String,
pub executor_id: String,
}
#[derive(Debug, Clone, InputObject)]
pub struct DeleteMessageInput {
pub group_chat_id: String,
pub message_id: String,
pub executor_id: String,
}