/
rpc.go
163 lines (139 loc) · 2.74 KB
/
rpc.go
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
package model
import "go-common/app/interface/main/dm2/model/oplog"
// ArgOids arguments passed by rpc client
type ArgOids struct {
Type int32
Plat int8
Oids []int64
RealIP string
}
// ArgEditDMState arguments passed by rpc client
type ArgEditDMState struct {
Type int32
Oid int64
Mid int64
State int32
Dmids []int64
Source oplog.Source
OperatorType oplog.OperatorType
}
// ArgEditDMPool arguments passed by rpc client
type ArgEditDMPool struct {
Type int32
Oid int64
Mid int64
Pool int32
Dmids []int64
Source oplog.Source
OperatorType oplog.OperatorType
}
// ArgEditDMAttr edit dm attr,bit: AttrXXX defined in model,value:AttrYes/AttrNo
type ArgEditDMAttr struct {
Type int32
Oid int64
Mid int64
Bit uint
Value int32
Dmids []int64
Source oplog.Source
OperatorType oplog.OperatorType
}
// ArgAdvance arguments passed by rpc client
type ArgAdvance struct {
Mid int64
Cid int64
Mode string
}
// ArgMid arguments passed by rpc client
type ArgMid struct {
Mid int64
}
// ArgUpAdvance arguments passed by rpc client
type ArgUpAdvance struct {
Mid int64
ID int64
}
// ArgAddUserFilters add user filters
type ArgAddUserFilters struct {
Type int8
Mid int64
Filters []string
Comment string
}
// ArgDelUserFilters delete user filter
type ArgDelUserFilters struct {
Mid int64
IDs []int64
}
// ArgAddUpFilters add up filters
type ArgAddUpFilters struct {
Type int8
Mid int64
Filters []string
}
// ArgUpFilters up filters
type ArgUpFilters struct {
Mid int64
}
// ArgEditUpFilters edit up filter
type ArgEditUpFilters struct {
Type int8
Mid int64
Active int8
Filters []string
}
// ArgAddGlobalFilter add global filter
type ArgAddGlobalFilter struct {
Type int8
Filter string
}
// ArgGlobalFilters get global filter
type ArgGlobalFilters struct {
}
// ArgDelGlobalFilters delete global filters
type ArgDelGlobalFilters struct {
IDs []int64
}
// ArgBanUsers ban users
type ArgBanUsers struct {
Mid int64
Oid int64
DMIDs []int64
}
// ArgCancelBanUsers cancel banned users
type ArgCancelBanUsers struct {
Mid int64
Aid int64
Filters []string
}
// ArgCid arg cid
type ArgCid struct {
Cid int64
}
// ArgSubtitleGet .
type ArgSubtitleGet struct {
Aid int64
Oid int64
Type int32
}
// ArgSubtitleAllowSubmit .
type ArgSubtitleAllowSubmit struct {
Aid int64
AllowSubmit bool
Lan string
}
// SubtitleSubjectReply .
type SubtitleSubjectReply struct {
AllowSubmit bool
Lan string
LanDoc string
}
// ArgArchiveID .
type ArgArchiveID struct {
Aid int64
}
// ArgMask .
type ArgMask struct {
Cid int64
Plat int8
}