@aldiokta/protocgen 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisca/v1/core/auth/auth.pb.go +998 -0
- package/prisca/v1/core/auth/auth_grpc.pb.go +427 -0
- package/prisca/v1/core/company/company.pb.go +965 -0
- package/prisca/v1/core/company/company_grpc.pb.go +273 -0
- package/prisca/v1/core/department_material/department_material.pb.go +776 -0
- package/prisca/v1/core/department_material/department_material_grpc.pb.go +236 -0
- package/prisca/v1/core/job_grade/job_grade.pb.go +887 -0
- package/prisca/v1/core/job_grade/job_grade_grpc.pb.go +273 -0
- package/prisca/v1/core/job_position/job_position.pb.go +1196 -0
- package/prisca/v1/core/job_position/job_position_grpc.pb.go +273 -0
- package/prisca/v1/core/job_title/job_title.pb.go +986 -0
- package/prisca/v1/core/job_title/job_title_grpc.pb.go +273 -0
- package/prisca/v1/core/line_of_approval/line_of_approval.pb.go +913 -0
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc.pb.go +273 -0
- package/prisca/v1/core/location/location.pb.go +1397 -0
- package/prisca/v1/core/location/location_grpc.pb.go +387 -0
- package/prisca/v1/core/material/material.pb.go +1366 -0
- package/prisca/v1/core/material/material_grpc.pb.go +273 -0
- package/prisca/v1/core/material_group/material_group.pb.go +911 -0
- package/prisca/v1/core/material_group/material_group_grpc.pb.go +273 -0
- package/prisca/v1/core/material_type/material_type.pb.go +827 -0
- package/prisca/v1/core/material_type/material_type_grpc.pb.go +239 -0
- package/prisca/v1/core/number_range/number_range.pb.go +916 -0
- package/prisca/v1/core/number_range/number_range_grpc.pb.go +273 -0
- package/prisca/v1/core/organization/organization.pb.go +1039 -0
- package/prisca/v1/core/organization/organization_grpc.pb.go +273 -0
- package/prisca/v1/core/organization_level/organization_level.pb.go +853 -0
- package/prisca/v1/core/organization_level/organization_level_grpc.pb.go +274 -0
- package/prisca/v1/core/procurement/procurement.pb.go +622 -0
- package/prisca/v1/core/procurement/procurement_grpc.pb.go +275 -0
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.pb.go +1550 -0
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc.pb.go +388 -0
- package/prisca/v1/core/recipient_roles/recipient_roles.pb.go +141 -0
- package/prisca/v1/core/role/role.pb.go +797 -0
- package/prisca/v1/core/role/role_grpc.pb.go +273 -0
- package/prisca/v1/core/transaction_builder/transaction_builder.pb.go +3217 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc.pb.go +656 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.pb.go +973 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc.pb.go +278 -0
- package/prisca/v1/core/users/users.pb.go +281 -0
- package/prisca/v1/core/users_role/users_role.pb.go +813 -0
- package/prisca/v1/core/users_role/users_role_grpc.pb.go +273 -0
- package/prisca/v1/core/work_location/work_location.pb.go +995 -0
- package/prisca/v1/core/work_location/work_location_grpc.pb.go +273 -0
- package/prisca/v1/core/work_locations/work_locations.pb.go +184 -0
- package/prisca/v1/core/work_locations/work_locations_grpc.pb.go +76 -0
- package/prisca/v1/core/workflow/workflow.pb.go +2057 -0
- package/prisca/v1/core/workflow/workflow_grpc.pb.go +273 -0
- package/prisca/v1/global/meta/meta.pb.go +446 -0
- package/prisca/v1/core/auth/auth.proto +0 -100
- package/prisca/v1/core/company/company.proto +0 -86
- package/prisca/v1/core/department_material/department_material.proto +0 -69
- package/prisca/v1/core/job_grade/job_grade.proto +0 -79
- package/prisca/v1/core/job_position/job_position.proto +0 -107
- package/prisca/v1/core/job_title/job_title.proto +0 -88
- package/prisca/v1/core/location/location.proto +0 -124
- package/prisca/v1/core/material/material.proto +0 -127
- package/prisca/v1/core/material_group/material_group.proto +0 -79
- package/prisca/v1/core/material_type/material_type.proto +0 -77
- package/prisca/v1/core/number_range/number_range.proto +0 -81
- package/prisca/v1/core/organization/organization.proto +0 -93
- package/prisca/v1/core/organization_level/organization_level.proto +0 -73
- package/prisca/v1/core/procurement/procurement.proto +0 -54
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -278
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
- package/prisca/v1/core/users/users.proto +0 -22
- package/prisca/v1/core/users_role/users_role.proto +0 -72
- package/prisca/v1/core/work_location/work_location.proto +0 -88
- package/prisca/v1/core/workflow/workflow.proto +0 -191
- package/prisca/v1/global/meta/meta.proto +0 -57
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-go v1.36.1
|
|
4
|
+
// protoc (unknown)
|
|
5
|
+
// source: prisca/v1/global/meta/meta.proto
|
|
6
|
+
|
|
7
|
+
package meta
|
|
8
|
+
|
|
9
|
+
import (
|
|
10
|
+
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
11
|
+
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
12
|
+
anypb "google.golang.org/protobuf/types/known/anypb"
|
|
13
|
+
reflect "reflect"
|
|
14
|
+
sync "sync"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
const (
|
|
18
|
+
// Verify that this generated code is sufficiently up-to-date.
|
|
19
|
+
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
20
|
+
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
21
|
+
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
type PaginationRequest struct {
|
|
25
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
26
|
+
Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
27
|
+
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
28
|
+
unknownFields protoimpl.UnknownFields
|
|
29
|
+
sizeCache protoimpl.SizeCache
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
func (x *PaginationRequest) Reset() {
|
|
33
|
+
*x = PaginationRequest{}
|
|
34
|
+
mi := &file_prisca_v1_global_meta_meta_proto_msgTypes[0]
|
|
35
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
36
|
+
ms.StoreMessageInfo(mi)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
func (x *PaginationRequest) String() string {
|
|
40
|
+
return protoimpl.X.MessageStringOf(x)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
func (*PaginationRequest) ProtoMessage() {}
|
|
44
|
+
|
|
45
|
+
func (x *PaginationRequest) ProtoReflect() protoreflect.Message {
|
|
46
|
+
mi := &file_prisca_v1_global_meta_meta_proto_msgTypes[0]
|
|
47
|
+
if x != nil {
|
|
48
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
49
|
+
if ms.LoadMessageInfo() == nil {
|
|
50
|
+
ms.StoreMessageInfo(mi)
|
|
51
|
+
}
|
|
52
|
+
return ms
|
|
53
|
+
}
|
|
54
|
+
return mi.MessageOf(x)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Deprecated: Use PaginationRequest.ProtoReflect.Descriptor instead.
|
|
58
|
+
func (*PaginationRequest) Descriptor() ([]byte, []int) {
|
|
59
|
+
return file_prisca_v1_global_meta_meta_proto_rawDescGZIP(), []int{0}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
func (x *PaginationRequest) GetOffset() int32 {
|
|
63
|
+
if x != nil {
|
|
64
|
+
return x.Offset
|
|
65
|
+
}
|
|
66
|
+
return 0
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
func (x *PaginationRequest) GetLimit() int32 {
|
|
70
|
+
if x != nil {
|
|
71
|
+
return x.Limit
|
|
72
|
+
}
|
|
73
|
+
return 0
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
type FilterRequest struct {
|
|
77
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
78
|
+
Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
|
|
79
|
+
Order string `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
|
|
80
|
+
Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"`
|
|
81
|
+
unknownFields protoimpl.UnknownFields
|
|
82
|
+
sizeCache protoimpl.SizeCache
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
func (x *FilterRequest) Reset() {
|
|
86
|
+
*x = FilterRequest{}
|
|
87
|
+
mi := &file_prisca_v1_global_meta_meta_proto_msgTypes[1]
|
|
88
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
89
|
+
ms.StoreMessageInfo(mi)
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
func (x *FilterRequest) String() string {
|
|
93
|
+
return protoimpl.X.MessageStringOf(x)
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
func (*FilterRequest) ProtoMessage() {}
|
|
97
|
+
|
|
98
|
+
func (x *FilterRequest) ProtoReflect() protoreflect.Message {
|
|
99
|
+
mi := &file_prisca_v1_global_meta_meta_proto_msgTypes[1]
|
|
100
|
+
if x != nil {
|
|
101
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
102
|
+
if ms.LoadMessageInfo() == nil {
|
|
103
|
+
ms.StoreMessageInfo(mi)
|
|
104
|
+
}
|
|
105
|
+
return ms
|
|
106
|
+
}
|
|
107
|
+
return mi.MessageOf(x)
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Deprecated: Use FilterRequest.ProtoReflect.Descriptor instead.
|
|
111
|
+
func (*FilterRequest) Descriptor() ([]byte, []int) {
|
|
112
|
+
return file_prisca_v1_global_meta_meta_proto_rawDescGZIP(), []int{1}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
func (x *FilterRequest) GetFilter() string {
|
|
116
|
+
if x != nil {
|
|
117
|
+
return x.Filter
|
|
118
|
+
}
|
|
119
|
+
return ""
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
func (x *FilterRequest) GetOrder() string {
|
|
123
|
+
if x != nil {
|
|
124
|
+
return x.Order
|
|
125
|
+
}
|
|
126
|
+
return ""
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
func (x *FilterRequest) GetKeyword() string {
|
|
130
|
+
if x != nil {
|
|
131
|
+
return x.Keyword
|
|
132
|
+
}
|
|
133
|
+
return ""
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
type PaginationResponse struct {
|
|
137
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
138
|
+
Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
139
|
+
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
140
|
+
TotalPages int64 `protobuf:"varint,3,opt,name=total_pages,json=totalPages,proto3" json:"total_pages,omitempty"`
|
|
141
|
+
TotalRows int64 `protobuf:"varint,4,opt,name=total_rows,json=totalRows,proto3" json:"total_rows,omitempty"`
|
|
142
|
+
TotalRowPerPage int64 `protobuf:"varint,5,opt,name=total_row_per_page,json=totalRowPerPage,proto3" json:"total_row_per_page,omitempty"`
|
|
143
|
+
unknownFields protoimpl.UnknownFields
|
|
144
|
+
sizeCache protoimpl.SizeCache
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
func (x *PaginationResponse) Reset() {
|
|
148
|
+
*x = PaginationResponse{}
|
|
149
|
+
mi := &file_prisca_v1_global_meta_meta_proto_msgTypes[2]
|
|
150
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
151
|
+
ms.StoreMessageInfo(mi)
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
func (x *PaginationResponse) String() string {
|
|
155
|
+
return protoimpl.X.MessageStringOf(x)
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
func (*PaginationResponse) ProtoMessage() {}
|
|
159
|
+
|
|
160
|
+
func (x *PaginationResponse) ProtoReflect() protoreflect.Message {
|
|
161
|
+
mi := &file_prisca_v1_global_meta_meta_proto_msgTypes[2]
|
|
162
|
+
if x != nil {
|
|
163
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
164
|
+
if ms.LoadMessageInfo() == nil {
|
|
165
|
+
ms.StoreMessageInfo(mi)
|
|
166
|
+
}
|
|
167
|
+
return ms
|
|
168
|
+
}
|
|
169
|
+
return mi.MessageOf(x)
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Deprecated: Use PaginationResponse.ProtoReflect.Descriptor instead.
|
|
173
|
+
func (*PaginationResponse) Descriptor() ([]byte, []int) {
|
|
174
|
+
return file_prisca_v1_global_meta_meta_proto_rawDescGZIP(), []int{2}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
func (x *PaginationResponse) GetOffset() int32 {
|
|
178
|
+
if x != nil {
|
|
179
|
+
return x.Offset
|
|
180
|
+
}
|
|
181
|
+
return 0
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
func (x *PaginationResponse) GetLimit() int32 {
|
|
185
|
+
if x != nil {
|
|
186
|
+
return x.Limit
|
|
187
|
+
}
|
|
188
|
+
return 0
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
func (x *PaginationResponse) GetTotalPages() int64 {
|
|
192
|
+
if x != nil {
|
|
193
|
+
return x.TotalPages
|
|
194
|
+
}
|
|
195
|
+
return 0
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
func (x *PaginationResponse) GetTotalRows() int64 {
|
|
199
|
+
if x != nil {
|
|
200
|
+
return x.TotalRows
|
|
201
|
+
}
|
|
202
|
+
return 0
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
func (x *PaginationResponse) GetTotalRowPerPage() int64 {
|
|
206
|
+
if x != nil {
|
|
207
|
+
return x.TotalRowPerPage
|
|
208
|
+
}
|
|
209
|
+
return 0
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
type Meta struct {
|
|
213
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
214
|
+
StatusCode int64 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
|
215
|
+
MessageCode string `protobuf:"bytes,2,opt,name=message_code,json=messageCode,proto3" json:"message_code,omitempty"`
|
|
216
|
+
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
217
|
+
Pagination *PaginationResponse `protobuf:"bytes,4,opt,name=pagination,proto3,oneof" json:"pagination,omitempty"`
|
|
218
|
+
unknownFields protoimpl.UnknownFields
|
|
219
|
+
sizeCache protoimpl.SizeCache
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
func (x *Meta) Reset() {
|
|
223
|
+
*x = Meta{}
|
|
224
|
+
mi := &file_prisca_v1_global_meta_meta_proto_msgTypes[3]
|
|
225
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
226
|
+
ms.StoreMessageInfo(mi)
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
func (x *Meta) String() string {
|
|
230
|
+
return protoimpl.X.MessageStringOf(x)
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
func (*Meta) ProtoMessage() {}
|
|
234
|
+
|
|
235
|
+
func (x *Meta) ProtoReflect() protoreflect.Message {
|
|
236
|
+
mi := &file_prisca_v1_global_meta_meta_proto_msgTypes[3]
|
|
237
|
+
if x != nil {
|
|
238
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
239
|
+
if ms.LoadMessageInfo() == nil {
|
|
240
|
+
ms.StoreMessageInfo(mi)
|
|
241
|
+
}
|
|
242
|
+
return ms
|
|
243
|
+
}
|
|
244
|
+
return mi.MessageOf(x)
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// Deprecated: Use Meta.ProtoReflect.Descriptor instead.
|
|
248
|
+
func (*Meta) Descriptor() ([]byte, []int) {
|
|
249
|
+
return file_prisca_v1_global_meta_meta_proto_rawDescGZIP(), []int{3}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
func (x *Meta) GetStatusCode() int64 {
|
|
253
|
+
if x != nil {
|
|
254
|
+
return x.StatusCode
|
|
255
|
+
}
|
|
256
|
+
return 0
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
func (x *Meta) GetMessageCode() string {
|
|
260
|
+
if x != nil {
|
|
261
|
+
return x.MessageCode
|
|
262
|
+
}
|
|
263
|
+
return ""
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
func (x *Meta) GetMessage() string {
|
|
267
|
+
if x != nil {
|
|
268
|
+
return x.Message
|
|
269
|
+
}
|
|
270
|
+
return ""
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
func (x *Meta) GetPagination() *PaginationResponse {
|
|
274
|
+
if x != nil {
|
|
275
|
+
return x.Pagination
|
|
276
|
+
}
|
|
277
|
+
return nil
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
type ResponseJson struct {
|
|
281
|
+
state protoimpl.MessageState `protogen:"open.v1"`
|
|
282
|
+
Meta *Meta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
|
|
283
|
+
Data *anypb.Any `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"`
|
|
284
|
+
unknownFields protoimpl.UnknownFields
|
|
285
|
+
sizeCache protoimpl.SizeCache
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
func (x *ResponseJson) Reset() {
|
|
289
|
+
*x = ResponseJson{}
|
|
290
|
+
mi := &file_prisca_v1_global_meta_meta_proto_msgTypes[4]
|
|
291
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
292
|
+
ms.StoreMessageInfo(mi)
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
func (x *ResponseJson) String() string {
|
|
296
|
+
return protoimpl.X.MessageStringOf(x)
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
func (*ResponseJson) ProtoMessage() {}
|
|
300
|
+
|
|
301
|
+
func (x *ResponseJson) ProtoReflect() protoreflect.Message {
|
|
302
|
+
mi := &file_prisca_v1_global_meta_meta_proto_msgTypes[4]
|
|
303
|
+
if x != nil {
|
|
304
|
+
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
305
|
+
if ms.LoadMessageInfo() == nil {
|
|
306
|
+
ms.StoreMessageInfo(mi)
|
|
307
|
+
}
|
|
308
|
+
return ms
|
|
309
|
+
}
|
|
310
|
+
return mi.MessageOf(x)
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// Deprecated: Use ResponseJson.ProtoReflect.Descriptor instead.
|
|
314
|
+
func (*ResponseJson) Descriptor() ([]byte, []int) {
|
|
315
|
+
return file_prisca_v1_global_meta_meta_proto_rawDescGZIP(), []int{4}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
func (x *ResponseJson) GetMeta() *Meta {
|
|
319
|
+
if x != nil {
|
|
320
|
+
return x.Meta
|
|
321
|
+
}
|
|
322
|
+
return nil
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
func (x *ResponseJson) GetData() *anypb.Any {
|
|
326
|
+
if x != nil {
|
|
327
|
+
return x.Data
|
|
328
|
+
}
|
|
329
|
+
return nil
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
var File_prisca_v1_global_meta_meta_proto protoreflect.FileDescriptor
|
|
333
|
+
|
|
334
|
+
var file_prisca_v1_global_meta_meta_proto_rawDesc = []byte{
|
|
335
|
+
0x0a, 0x20, 0x70, 0x72, 0x69, 0x73, 0x63, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x6c, 0x6f, 0x62,
|
|
336
|
+
0x61, 0x6c, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f,
|
|
337
|
+
0x74, 0x6f, 0x12, 0x15, 0x70, 0x72, 0x69, 0x73, 0x63, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x67, 0x6c,
|
|
338
|
+
0x6f, 0x62, 0x61, 0x6c, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
|
339
|
+
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70,
|
|
340
|
+
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x11, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
|
|
341
|
+
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66,
|
|
342
|
+
0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65,
|
|
343
|
+
0x74, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
|
344
|
+
0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x57, 0x0a, 0x0d, 0x46, 0x69, 0x6c, 0x74, 0x65,
|
|
345
|
+
0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74,
|
|
346
|
+
0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72,
|
|
347
|
+
0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
348
|
+
0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72,
|
|
349
|
+
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64,
|
|
350
|
+
0x22, 0xaf, 0x01, 0x0a, 0x12, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
|
|
351
|
+
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65,
|
|
352
|
+
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12,
|
|
353
|
+
0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
|
|
354
|
+
0x6c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x70,
|
|
355
|
+
0x61, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61,
|
|
356
|
+
0x6c, 0x50, 0x61, 0x67, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f,
|
|
357
|
+
0x72, 0x6f, 0x77, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x6f, 0x74, 0x61,
|
|
358
|
+
0x6c, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x2b, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72,
|
|
359
|
+
0x6f, 0x77, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
360
|
+
0x03, 0x52, 0x0f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x6f, 0x77, 0x50, 0x65, 0x72, 0x50, 0x61,
|
|
361
|
+
0x67, 0x65, 0x22, 0xc3, 0x01, 0x0a, 0x04, 0x4d, 0x65, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x73,
|
|
362
|
+
0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
|
|
363
|
+
0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x0c,
|
|
364
|
+
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
365
|
+
0x28, 0x09, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12,
|
|
366
|
+
0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
|
|
367
|
+
0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x4e, 0x0a, 0x0a, 0x70, 0x61, 0x67,
|
|
368
|
+
0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e,
|
|
369
|
+
0x70, 0x72, 0x69, 0x73, 0x63, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c,
|
|
370
|
+
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
|
371
|
+
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69,
|
|
372
|
+
0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61,
|
|
373
|
+
0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x77, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x70,
|
|
374
|
+
0x6f, 0x6e, 0x73, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61,
|
|
375
|
+
0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x72, 0x69, 0x73, 0x63, 0x61, 0x2e,
|
|
376
|
+
0x76, 0x31, 0x2e, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d,
|
|
377
|
+
0x65, 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
|
378
|
+
0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
|
379
|
+
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x48, 0x00, 0x52,
|
|
380
|
+
0x04, 0x64, 0x61, 0x74, 0x61, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x64, 0x61, 0x74,
|
|
381
|
+
0x61, 0x42, 0x4e, 0x5a, 0x4c, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
|
382
|
+
0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x5f, 0x73, 0x6d, 0x2f, 0x70, 0x72, 0x69, 0x73, 0x63,
|
|
383
|
+
0x61, 0x2d, 0x76, 0x32, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
|
|
384
|
+
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x69, 0x73,
|
|
385
|
+
0x63, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x2f, 0x6d, 0x65, 0x74,
|
|
386
|
+
0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
var (
|
|
390
|
+
file_prisca_v1_global_meta_meta_proto_rawDescOnce sync.Once
|
|
391
|
+
file_prisca_v1_global_meta_meta_proto_rawDescData = file_prisca_v1_global_meta_meta_proto_rawDesc
|
|
392
|
+
)
|
|
393
|
+
|
|
394
|
+
func file_prisca_v1_global_meta_meta_proto_rawDescGZIP() []byte {
|
|
395
|
+
file_prisca_v1_global_meta_meta_proto_rawDescOnce.Do(func() {
|
|
396
|
+
file_prisca_v1_global_meta_meta_proto_rawDescData = protoimpl.X.CompressGZIP(file_prisca_v1_global_meta_meta_proto_rawDescData)
|
|
397
|
+
})
|
|
398
|
+
return file_prisca_v1_global_meta_meta_proto_rawDescData
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
var file_prisca_v1_global_meta_meta_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
402
|
+
var file_prisca_v1_global_meta_meta_proto_goTypes = []any{
|
|
403
|
+
(*PaginationRequest)(nil), // 0: prisca.v1.global.meta.PaginationRequest
|
|
404
|
+
(*FilterRequest)(nil), // 1: prisca.v1.global.meta.FilterRequest
|
|
405
|
+
(*PaginationResponse)(nil), // 2: prisca.v1.global.meta.PaginationResponse
|
|
406
|
+
(*Meta)(nil), // 3: prisca.v1.global.meta.Meta
|
|
407
|
+
(*ResponseJson)(nil), // 4: prisca.v1.global.meta.ResponseJson
|
|
408
|
+
(*anypb.Any)(nil), // 5: google.protobuf.Any
|
|
409
|
+
}
|
|
410
|
+
var file_prisca_v1_global_meta_meta_proto_depIdxs = []int32{
|
|
411
|
+
2, // 0: prisca.v1.global.meta.Meta.pagination:type_name -> prisca.v1.global.meta.PaginationResponse
|
|
412
|
+
3, // 1: prisca.v1.global.meta.ResponseJson.meta:type_name -> prisca.v1.global.meta.Meta
|
|
413
|
+
5, // 2: prisca.v1.global.meta.ResponseJson.data:type_name -> google.protobuf.Any
|
|
414
|
+
3, // [3:3] is the sub-list for method output_type
|
|
415
|
+
3, // [3:3] is the sub-list for method input_type
|
|
416
|
+
3, // [3:3] is the sub-list for extension type_name
|
|
417
|
+
3, // [3:3] is the sub-list for extension extendee
|
|
418
|
+
0, // [0:3] is the sub-list for field type_name
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
func init() { file_prisca_v1_global_meta_meta_proto_init() }
|
|
422
|
+
func file_prisca_v1_global_meta_meta_proto_init() {
|
|
423
|
+
if File_prisca_v1_global_meta_meta_proto != nil {
|
|
424
|
+
return
|
|
425
|
+
}
|
|
426
|
+
file_prisca_v1_global_meta_meta_proto_msgTypes[3].OneofWrappers = []any{}
|
|
427
|
+
file_prisca_v1_global_meta_meta_proto_msgTypes[4].OneofWrappers = []any{}
|
|
428
|
+
type x struct{}
|
|
429
|
+
out := protoimpl.TypeBuilder{
|
|
430
|
+
File: protoimpl.DescBuilder{
|
|
431
|
+
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
432
|
+
RawDescriptor: file_prisca_v1_global_meta_meta_proto_rawDesc,
|
|
433
|
+
NumEnums: 0,
|
|
434
|
+
NumMessages: 5,
|
|
435
|
+
NumExtensions: 0,
|
|
436
|
+
NumServices: 0,
|
|
437
|
+
},
|
|
438
|
+
GoTypes: file_prisca_v1_global_meta_meta_proto_goTypes,
|
|
439
|
+
DependencyIndexes: file_prisca_v1_global_meta_meta_proto_depIdxs,
|
|
440
|
+
MessageInfos: file_prisca_v1_global_meta_meta_proto_msgTypes,
|
|
441
|
+
}.Build()
|
|
442
|
+
File_prisca_v1_global_meta_meta_proto = out.File
|
|
443
|
+
file_prisca_v1_global_meta_meta_proto_rawDesc = nil
|
|
444
|
+
file_prisca_v1_global_meta_meta_proto_goTypes = nil
|
|
445
|
+
file_prisca_v1_global_meta_meta_proto_depIdxs = nil
|
|
446
|
+
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
// protoc --go_out=. --go-grpc_out=. proto/prisca/auth/v1/private/*.proto
|
|
2
|
-
|
|
3
|
-
syntax = "proto3";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/auth";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
service AuthService {
|
|
11
|
-
rpc VerifyToken(AuthVerifyToken) returns (UserResponse);
|
|
12
|
-
rpc LoginUser(LoginRequest) returns (UserResponse);
|
|
13
|
-
rpc CreateUser (CreateUserPayload) returns (UserResponse);
|
|
14
|
-
rpc UpdateUser (UpdateUserPayload) returns (UserResponse);
|
|
15
|
-
rpc VerifyAuthorization(AccessApiCredential) returns (AccessApiManagersResponse);
|
|
16
|
-
rpc CreateAuthorization(AccessCreateRequest) returns (AccessResponse);
|
|
17
|
-
rpc GetListAccess(GetListAccessRequest) returns (ListAccessResponse);
|
|
18
|
-
rpc UpdateAccess(UpdateAccessPayload) returns (AccessResponse);
|
|
19
|
-
rpc GetAccessById(GetAccessByIdPayload) returns (AccessResponse);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// request
|
|
23
|
-
message LoginRequest {
|
|
24
|
-
string email = 1;
|
|
25
|
-
string password = 2;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
message GetListAccessRequest {
|
|
29
|
-
int64 limit = 1;
|
|
30
|
-
int64 offset = 2;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
message AccessApiCredential {
|
|
34
|
-
string apiSecretId = 1;
|
|
35
|
-
string apiSecretKey = 2;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
message AccessCreateRequest {
|
|
39
|
-
string name = 1;
|
|
40
|
-
int64 userId = 2;
|
|
41
|
-
string scopes =3;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message AuthVerifyToken {
|
|
45
|
-
string token = 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
message UpdateAccessPayload {
|
|
49
|
-
AccessCreateRequest access = 1;
|
|
50
|
-
int64 id = 2;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
message GetAccessByIdPayload {
|
|
54
|
-
int64 id = 1;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message CreateUserPayload {
|
|
58
|
-
string name = 1;
|
|
59
|
-
string email = 2;
|
|
60
|
-
string password = 3;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
message UpdateUserPayload {
|
|
64
|
-
string id = 1;
|
|
65
|
-
string name = 2;
|
|
66
|
-
string email = 3;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
//response
|
|
71
|
-
message UserResponse {
|
|
72
|
-
int64 id =1;
|
|
73
|
-
string name=2;
|
|
74
|
-
string email=3;
|
|
75
|
-
string password=4;
|
|
76
|
-
string role=5;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
message AccessResponse {
|
|
80
|
-
string name = 1;
|
|
81
|
-
int64 userId = 2;
|
|
82
|
-
string scopes =3;
|
|
83
|
-
string status=4;
|
|
84
|
-
string keyPrefix = 5;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
message AccessApiManagersResponse {
|
|
88
|
-
string name = 1;
|
|
89
|
-
int64 userId = 2;
|
|
90
|
-
string scopes =3;
|
|
91
|
-
bool status=4;
|
|
92
|
-
string keyPrefix = 5;
|
|
93
|
-
string val = 6;
|
|
94
|
-
string createdAt= 7;
|
|
95
|
-
string updatedAt = 8;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
message ListAccessResponse {
|
|
99
|
-
repeated AccessResponse data = 1;
|
|
100
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/company";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
|
|
8
|
-
service CompanyService {
|
|
9
|
-
rpc CreateCompany(CreateCompanyRequest) returns (CreateCompanyResponse);
|
|
10
|
-
rpc GetCompanyById(CompanyGetByIdRequest) returns (CompanyGetByIdResponse);
|
|
11
|
-
rpc UpdateCompany(UpdateCompanyRequest) returns (UpdateCompanyResponse);
|
|
12
|
-
rpc DeleteCompany(DeleteCompanyRequest) returns (DeleteCompanyResponse);
|
|
13
|
-
rpc GetListCompany(GetListCompanyRequest) returns (GetListCompanyResponse);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
message Company {
|
|
17
|
-
string code = 1;
|
|
18
|
-
string name = 2;
|
|
19
|
-
string currency_code = 3;
|
|
20
|
-
string description = 4;
|
|
21
|
-
string parent_references_id = 5;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
message BaseCompanyParent {
|
|
25
|
-
string code = 1;
|
|
26
|
-
string name = 2;
|
|
27
|
-
string references_id = 3;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
message BaseCompany {
|
|
31
|
-
string code = 1;
|
|
32
|
-
string name = 2;
|
|
33
|
-
string currency_code = 3;
|
|
34
|
-
string description = 4;
|
|
35
|
-
string references_id = 5;
|
|
36
|
-
string parent_references_id = 6;
|
|
37
|
-
BaseCompanyParent parent = 7;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
message CompanyGetByIdRequest {
|
|
41
|
-
string references_id =1;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message CompanyGetByIdResponse {
|
|
45
|
-
BaseCompany company = 1;
|
|
46
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
message UpdateCompanyRequest {
|
|
50
|
-
string references_id =1;
|
|
51
|
-
Company company = 2;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
message UpdateCompanyResponse {
|
|
55
|
-
Company company = 1;
|
|
56
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
message CreateCompanyRequest {
|
|
60
|
-
Company company = 1;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
message CreateCompanyResponse {
|
|
64
|
-
Company company = 1;
|
|
65
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
message DeleteCompanyRequest {
|
|
69
|
-
string references_id = 1;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
message DeleteCompanyResponse {
|
|
74
|
-
int64 id = 1;
|
|
75
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
message GetListCompanyRequest {
|
|
79
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
80
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
message GetListCompanyResponse {
|
|
84
|
-
repeated BaseCompany company = 1;
|
|
85
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
86
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/department_material";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
service DepartmentMaterialService {
|
|
10
|
-
rpc CreateDepartmentMaterial (CreateDepartmentMaterialRequest) returns (CreateDepartmentMaterialResponse);
|
|
11
|
-
rpc UpdateDepartmentMaterial (UpdateDepartmentMaterialRequest) returns (UpdateDepartmentMaterialResponse);
|
|
12
|
-
rpc GetDepartmentMaterialById (GetDepartmentMaterialByIdRequest) returns (GetDepartmentMaterialByIdResponse);
|
|
13
|
-
rpc GetListDepartmentMaterials (GetListDepartmentMaterialRequest) returns (GetListDepartmentMaterialResponse);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
message DepartmentMaterial {
|
|
17
|
-
int64 id = 1;
|
|
18
|
-
string department_name = 2;
|
|
19
|
-
int64 transcation_config_id= 3;
|
|
20
|
-
string references_id = 4;
|
|
21
|
-
string created_at = 5; // ISO 8601
|
|
22
|
-
string updated_at = 6; // Nullable
|
|
23
|
-
}
|
|
24
|
-
// req
|
|
25
|
-
|
|
26
|
-
message BaseDepartmentMaterial {
|
|
27
|
-
string department_name = 1;
|
|
28
|
-
int32 transcation_config_id= 2;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
message CreateDepartmentMaterialRequest {
|
|
32
|
-
BaseDepartmentMaterial base_department_material = 1;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
message UpdateDepartmentMaterialRequest {
|
|
36
|
-
int64 id = 1;
|
|
37
|
-
BaseDepartmentMaterial base_department_material = 2;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
message GetDepartmentMaterialByIdRequest {
|
|
41
|
-
int64 id = 1;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message GetListDepartmentMaterialRequest {
|
|
45
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
46
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// res
|
|
50
|
-
|
|
51
|
-
message CreateDepartmentMaterialResponse {
|
|
52
|
-
DepartmentMaterial base_department_material = 1;
|
|
53
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
message UpdateDepartmentMaterialResponse {
|
|
57
|
-
DepartmentMaterial base_department_material = 1;
|
|
58
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message GetDepartmentMaterialByIdResponse {
|
|
62
|
-
DepartmentMaterial base_department_material = 1;
|
|
63
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message GetListDepartmentMaterialResponse {
|
|
67
|
-
repeated DepartmentMaterial base_department_material = 1;
|
|
68
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
69
|
-
}
|