-
Notifications
You must be signed in to change notification settings - Fork 1
/
list_tool.pb.go
318 lines (287 loc) · 11.5 KB
/
list_tool.pb.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: list_tool.proto
package basic
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "github.com/mwitkow/go-proto-validators"
tool "github.com/easyopsapis/easyops-api-go/protorepo-models/easyops/model/tool"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
//
//ListTool请求
type ListToolRequest struct {
//
//是否显示具体信息
Detail bool `protobuf:"varint,1,opt,name=detail,proto3" json:"detail" form:"detail"`
//
//是否显示插件
Plugin bool `protobuf:"varint,2,opt,name=plugin,proto3" json:"plugin" form:"plugin"`
//
//工具的分类
Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category" form:"category"`
//
//用户对工具具有的权限; 用","分割(read=查看, update=更新, delete=删除, execute=执行, execResult=执行结果查看, rootExec=Root执行)
Permissions string `protobuf:"bytes,4,opt,name=permissions,proto3" json:"permissions" form:"permissions"`
//
//仅选择有生产版本的工具 true | false. 默认是false
OnlyProduction bool `protobuf:"varint,5,opt,name=onlyProduction,proto3" json:"onlyProduction" form:"onlyProduction"`
//
//显示listVisible=false的工具; true=显示 | false=不显示. 默认是false
ShowInvisible bool `protobuf:"varint,6,opt,name=showInvisible,proto3" json:"showInvisible" form:"showInvisible"`
//
//标签,用","分隔,标签只支持字符串
Tags string `protobuf:"bytes,7,opt,name=tags,proto3" json:"tags" form:"tags"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListToolRequest) Reset() { *m = ListToolRequest{} }
func (m *ListToolRequest) String() string { return proto.CompactTextString(m) }
func (*ListToolRequest) ProtoMessage() {}
func (*ListToolRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5a700652ad1db5a3, []int{0}
}
func (m *ListToolRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListToolRequest.Unmarshal(m, b)
}
func (m *ListToolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListToolRequest.Marshal(b, m, deterministic)
}
func (m *ListToolRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListToolRequest.Merge(m, src)
}
func (m *ListToolRequest) XXX_Size() int {
return xxx_messageInfo_ListToolRequest.Size(m)
}
func (m *ListToolRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListToolRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListToolRequest proto.InternalMessageInfo
func (m *ListToolRequest) GetDetail() bool {
if m != nil {
return m.Detail
}
return false
}
func (m *ListToolRequest) GetPlugin() bool {
if m != nil {
return m.Plugin
}
return false
}
func (m *ListToolRequest) GetCategory() string {
if m != nil {
return m.Category
}
return ""
}
func (m *ListToolRequest) GetPermissions() string {
if m != nil {
return m.Permissions
}
return ""
}
func (m *ListToolRequest) GetOnlyProduction() bool {
if m != nil {
return m.OnlyProduction
}
return false
}
func (m *ListToolRequest) GetShowInvisible() bool {
if m != nil {
return m.ShowInvisible
}
return false
}
func (m *ListToolRequest) GetTags() string {
if m != nil {
return m.Tags
}
return ""
}
//
//ListTool返回
type ListToolResponse struct {
//
//页数
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page"`
//
//页大小
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"`
//
//总数
Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total" form:"total"`
//
//数据列表
List []*tool.Tool `protobuf:"bytes,4,rep,name=list,proto3" json:"list" form:"list"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListToolResponse) Reset() { *m = ListToolResponse{} }
func (m *ListToolResponse) String() string { return proto.CompactTextString(m) }
func (*ListToolResponse) ProtoMessage() {}
func (*ListToolResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5a700652ad1db5a3, []int{1}
}
func (m *ListToolResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListToolResponse.Unmarshal(m, b)
}
func (m *ListToolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListToolResponse.Marshal(b, m, deterministic)
}
func (m *ListToolResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListToolResponse.Merge(m, src)
}
func (m *ListToolResponse) XXX_Size() int {
return xxx_messageInfo_ListToolResponse.Size(m)
}
func (m *ListToolResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ListToolResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ListToolResponse proto.InternalMessageInfo
func (m *ListToolResponse) GetPage() int32 {
if m != nil {
return m.Page
}
return 0
}
func (m *ListToolResponse) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListToolResponse) GetTotal() int32 {
if m != nil {
return m.Total
}
return 0
}
func (m *ListToolResponse) GetList() []*tool.Tool {
if m != nil {
return m.List
}
return nil
}
//
//ListToolApi返回
type ListToolResponseWrapper struct {
//
//返回码
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
//
//返回码解释
CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
//
//错误详情
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
//
//返回数据
Data *ListToolResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListToolResponseWrapper) Reset() { *m = ListToolResponseWrapper{} }
func (m *ListToolResponseWrapper) String() string { return proto.CompactTextString(m) }
func (*ListToolResponseWrapper) ProtoMessage() {}
func (*ListToolResponseWrapper) Descriptor() ([]byte, []int) {
return fileDescriptor_5a700652ad1db5a3, []int{2}
}
func (m *ListToolResponseWrapper) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ListToolResponseWrapper.Unmarshal(m, b)
}
func (m *ListToolResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ListToolResponseWrapper.Marshal(b, m, deterministic)
}
func (m *ListToolResponseWrapper) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListToolResponseWrapper.Merge(m, src)
}
func (m *ListToolResponseWrapper) XXX_Size() int {
return xxx_messageInfo_ListToolResponseWrapper.Size(m)
}
func (m *ListToolResponseWrapper) XXX_DiscardUnknown() {
xxx_messageInfo_ListToolResponseWrapper.DiscardUnknown(m)
}
var xxx_messageInfo_ListToolResponseWrapper proto.InternalMessageInfo
func (m *ListToolResponseWrapper) GetCode() int32 {
if m != nil {
return m.Code
}
return 0
}
func (m *ListToolResponseWrapper) GetCodeExplain() string {
if m != nil {
return m.CodeExplain
}
return ""
}
func (m *ListToolResponseWrapper) GetError() string {
if m != nil {
return m.Error
}
return ""
}
func (m *ListToolResponseWrapper) GetData() *ListToolResponse {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*ListToolRequest)(nil), "basic.ListToolRequest")
proto.RegisterType((*ListToolResponse)(nil), "basic.ListToolResponse")
proto.RegisterType((*ListToolResponseWrapper)(nil), "basic.ListToolResponseWrapper")
}
func init() { proto.RegisterFile("list_tool.proto", fileDescriptor_5a700652ad1db5a3) }
var fileDescriptor_5a700652ad1db5a3 = []byte{
// 563 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x93, 0xc1, 0x6e, 0xd4, 0x3c,
0x10, 0xc7, 0xbf, 0x6d, 0x93, 0x7e, 0xad, 0x97, 0xb2, 0x8b, 0xa1, 0x34, 0xec, 0x25, 0x95, 0x91,
0x50, 0x7b, 0xd8, 0x44, 0x2a, 0x12, 0x20, 0x84, 0x90, 0x58, 0x89, 0x43, 0x25, 0x0e, 0xc8, 0x20,
0x71, 0xac, 0xbc, 0x89, 0x9b, 0x5a, 0x78, 0x33, 0xc1, 0xf6, 0xb6, 0xb4, 0x2f, 0xc9, 0x1b, 0x04,
0x89, 0x47, 0xc8, 0x91, 0x13, 0xf2, 0x24, 0xed, 0x66, 0xf7, 0x94, 0x78, 0xfe, 0xbf, 0xbf, 0x3d,
0xe3, 0x19, 0x93, 0x91, 0x56, 0xd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