@aldiokta/protocgen 1.0.32 → 1.0.34

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.
Files changed (73) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/core/auth/auth_grpc_pb.js +311 -0
  3. package/prisca/v1/core/auth/auth_pb.js +3236 -0
  4. package/prisca/v1/core/company/company_grpc_pb.js +177 -0
  5. package/prisca/v1/core/company/company_pb.js +2875 -0
  6. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  7. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  8. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  9. package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
  10. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  11. package/prisca/v1/core/job_position/job_position_pb.js +3732 -0
  12. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  13. package/prisca/v1/core/job_title/job_title_pb.js +2928 -0
  14. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  15. package/prisca/v1/core/location/location_pb.js +10879 -0
  16. package/prisca/v1/core/material/material_grpc_pb.js +181 -0
  17. package/prisca/v1/core/material/material_pb.js +4076 -0
  18. package/prisca/v1/core/material_group/material_group_grpc_pb.js +177 -0
  19. package/prisca/v1/core/material_group/material_group_pb.js +2582 -0
  20. package/prisca/v1/core/material_type/material_type_grpc_pb.js +147 -0
  21. package/prisca/v1/core/material_type/material_type_pb.js +2399 -0
  22. package/prisca/v1/core/number_range/number_range_grpc_pb.js +177 -0
  23. package/prisca/v1/core/number_range/number_range_pb.js +2672 -0
  24. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  25. package/prisca/v1/core/organization/organization_pb.js +3002 -0
  26. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +177 -0
  27. package/prisca/v1/core/organization_level/organization_level_pb.js +2432 -0
  28. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  29. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  30. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +266 -0
  31. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +4429 -0
  32. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  34. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  35. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  36. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +421 -0
  37. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +9138 -0
  38. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  40. package/prisca/v1/core/users/users_grpc_pb.js +1 -0
  41. package/prisca/v1/core/users/users_pb.js +626 -0
  42. package/prisca/v1/core/users_role/users_role_grpc_pb.js +177 -0
  43. package/prisca/v1/core/users_role/users_role_pb.js +2372 -0
  44. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  45. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  46. package/prisca/v1/core/workflow/workflow_grpc_pb.js +179 -0
  47. package/prisca/v1/core/workflow/workflow_pb.js +6426 -0
  48. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  49. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  50. package/prisca/v1/core/auth/auth.proto +0 -114
  51. package/prisca/v1/core/company/company.proto +0 -86
  52. package/prisca/v1/core/department_material/department_material.proto +0 -69
  53. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  54. package/prisca/v1/core/job_position/job_position.proto +0 -112
  55. package/prisca/v1/core/job_title/job_title.proto +0 -88
  56. package/prisca/v1/core/location/location.proto +0 -289
  57. package/prisca/v1/core/material/material.proto +0 -128
  58. package/prisca/v1/core/material_group/material_group.proto +0 -79
  59. package/prisca/v1/core/material_type/material_type.proto +0 -77
  60. package/prisca/v1/core/number_range/number_range.proto +0 -81
  61. package/prisca/v1/core/organization/organization.proto +0 -93
  62. package/prisca/v1/core/organization_level/organization_level.proto +0 -73
  63. package/prisca/v1/core/procurement/procurement.proto +0 -54
  64. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
  65. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  66. package/prisca/v1/core/tax_code/tax_code.proto +0 -79
  67. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -265
  68. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  69. package/prisca/v1/core/users/users.proto +0 -22
  70. package/prisca/v1/core/users_role/users_role.proto +0 -72
  71. package/prisca/v1/core/work_location/work_location.proto +0 -122
  72. package/prisca/v1/core/workflow/workflow.proto +0 -193
  73. package/prisca/v1/global/meta/meta.proto +0 -57
@@ -1,88 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/unit_of_measurement";
4
-
5
- import "prisca/v1/global/meta/meta.proto";
6
-
7
- //package prisca.v1.unit_of_measurement;
8
-
9
- // Unit of Measurement Service
10
- service UnitOfMeasurementService {
11
- rpc CreateUnitOfMeasurement(CreateUnitOfMeasureRequest) returns (CreateUnitOfMeasureResponse);
12
- rpc GetUnitOfMeasurementById(GetUnitOfMeasureByIdRequest) returns (GetUnitOfMeasureByIdResponse);
13
- rpc GetListUnitOfMeasurements(GetListUnitOfMeasureRequest) returns (GetListUnitOfMeasureResponse);
14
- rpc UpdateUnitOfMeasurement(UpdateUnitOfMeasureRequest) returns (UpdateUnitOfMeasureResponse);
15
- rpc DeleteUnitOfMeasurement(DeleteUnitOfMeasureRequest) returns (DeleteUnitOfMeasureResponse);
16
- }
17
-
18
- // Base Model
19
- message UnitOfMeasure {
20
- int64 id = 1;
21
- string unit = 2;
22
- string commercial = 3;
23
- string technical = 4;
24
- string commercial_description = 5;
25
- string technical_description = 6;
26
- bool is_active = 7;
27
- string references_id = 8;
28
- string created_at = 9; // Use ISO 8601 format for date strings
29
- string updated_at = 10; // Optional, nullable
30
- }
31
-
32
- // Request Messages
33
- message BaseUnitOfMeasureRequest {
34
- string unit = 1;
35
- string commercial = 2;
36
- string technical = 3;
37
- optional string commercial_description= 4;
38
- optional string technical_description= 5;
39
- bool is_active = 6;
40
- }
41
-
42
- message CreateUnitOfMeasureRequest {
43
- BaseUnitOfMeasureRequest base_unit_of_measure = 1;
44
- }
45
-
46
- message UpdateUnitOfMeasureRequest {
47
- string references_id =1;
48
- BaseUnitOfMeasureRequest base_unit_of_measure = 2;
49
- }
50
-
51
- message GetListUnitOfMeasureRequest {
52
- prisca.v1.global.meta.PaginationRequest pagination = 1;
53
- prisca.v1.global.meta.FilterRequest query = 2;
54
- }
55
-
56
- message GetUnitOfMeasureByIdRequest {
57
- string references_id =1;
58
- }
59
-
60
- message DeleteUnitOfMeasureRequest {
61
- string references_id =1;
62
- }
63
-
64
- // Response Messages
65
- message CreateUnitOfMeasureResponse {
66
- UnitOfMeasure unit_of_measure = 1;
67
- prisca.v1.global.meta.Meta meta =2;
68
- }
69
-
70
- message UpdateUnitOfMeasureResponse {
71
- UnitOfMeasure unit_of_measure = 1;
72
- prisca.v1.global.meta.Meta meta =2;
73
- }
74
-
75
- message GetListUnitOfMeasureResponse {
76
- repeated UnitOfMeasure unit_of_measures = 1;
77
- prisca.v1.global.meta.Meta meta =2;
78
- }
79
-
80
- message GetUnitOfMeasureByIdResponse {
81
- UnitOfMeasure unit_of_measure = 1;
82
- prisca.v1.global.meta.Meta meta =2;
83
- }
84
-
85
- message DeleteUnitOfMeasureResponse {
86
- string references_id =1;
87
- prisca.v1.global.meta.Meta meta =2;
88
- }
@@ -1,22 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/users";
4
-
5
- message Users {
6
- int32 id = 1;
7
- string references_id = 2;
8
- string name = 3;
9
- string gender_ref_id = 4;
10
- string phone_number = 5;
11
- string email = 6;
12
- string role_ref_id = 7;
13
- string credential = 8;
14
- string last_login = 9;
15
- string last_credential_renewal = 10;
16
- string device_mobile_id = 11;
17
- string device_dekstop_id = 12;
18
- string created_by = 13;
19
- string updated_by = 14;
20
- string created_at = 15;
21
- string updated_at = 16;
22
- }
@@ -1,72 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/users_role";
4
-
5
- // Importing necessary dependencies
6
- import "prisca/v1/global/meta/meta.proto";
7
-
8
- service RoleService {
9
- rpc CreateUsersRole(CreateUsersRoleRequest) returns (CreateUsersRoleResponse);
10
- rpc GetUsersRoleById(UsersRoleGetByIdRequest) returns (UsersRoleGetByIdResponse);
11
- rpc UpdateUsersRole(UpdateUsersRoleRequest) returns (UpdateUsersRoleResponse);
12
- rpc DeleteUsersRole(DeleteUsersRoleRequest) returns (DeleteUsersRoleResponse);
13
- rpc GetListUsersRole(GetListUsersRoleRequest) returns (GetListUsersRoleResponse);
14
- }
15
-
16
- message UsersRole {
17
- string name = 1;
18
- }
19
-
20
- message BaseUsersRole {
21
- string references_id = 1;
22
- string name = 2;
23
- }
24
-
25
-
26
- message UsersRoleGetByIdRequest {
27
- string references_id = 1;
28
- }
29
-
30
- message CreateUsersRoleRequest {
31
- UsersRole users_role = 1;
32
- }
33
-
34
- message UpdateUsersRoleRequest {
35
- string references_id = 1;
36
- UsersRole users_role = 2;
37
- }
38
-
39
- message DeleteUsersRoleRequest {
40
- string references_id = 1;
41
- }
42
-
43
- message DeleteUsersRoleResponse {
44
- string references_id = 1;
45
- prisca.v1.global.meta.Meta meta = 2;
46
- }
47
-
48
- message GetListUsersRoleRequest {
49
- prisca.v1.global.meta.PaginationRequest pagination = 1;
50
- prisca.v1.global.meta.FilterRequest query = 2;
51
- }
52
-
53
- // Response Messages
54
- message CreateUsersRoleResponse {
55
- UsersRole users_role = 1;
56
- prisca.v1.global.meta.Meta meta = 2;
57
- }
58
-
59
- message GetListUsersRoleResponse {
60
- repeated UsersRole users_role = 1;
61
- prisca.v1.global.meta.Meta meta = 2;
62
- }
63
-
64
- message UpdateUsersRoleResponse {
65
- UsersRole users_role = 1;
66
- prisca.v1.global.meta.Meta meta = 2;
67
- }
68
-
69
- message UsersRoleGetByIdResponse {
70
- UsersRole users_role = 1;
71
- prisca.v1.global.meta.Meta meta = 2;
72
- }
@@ -1,122 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/work_location";
4
-
5
- // Importing necessary dependencies
6
- import "prisca/v1/global/meta/meta.proto";
7
- import "prisca/v1/core/location/location.proto";
8
- import "prisca/v1/core/company/company.proto";
9
-
10
- service WorkLocationService {
11
- rpc CreateWorkLocation(CreateWorkLocationRequest) returns (CreateWorkLocationResponse);
12
- rpc UpdateWorkLocation(UpdateWorkLocationRequest) returns (UpdateWorkLocationResponse);
13
- rpc DeleteWorkLocation(DeleteWorkLocationRequest) returns (DeleteWorkLocationResponse);
14
- rpc GetWorkLocationById(WorkLocationGetByIdRequest) returns (WorkLocationGetByIdResponse);
15
- rpc GetListWorkLocation(GetListWorkLocationRequest) returns (GetListWorkLocationResponse);
16
- }
17
-
18
- message WorkLocation {
19
- string companies_references_id = 1;
20
- string code = 2;
21
- string location_name = 3;
22
- string alias = 4;
23
- string address = 5;
24
- string letter_address_line1 = 6;
25
- string letter_address_line2 = 7;
26
- string letter_address_line3 = 8;
27
- string phone_number = 9;
28
- string email = 10;
29
- string npwp = 11;
30
- string npwp_address = 12;
31
- double latitude = 13;
32
- double longitude = 14;
33
- int64 radius = 15;
34
- string country_references_id = 16;
35
- string village_references_id = 17;
36
- string city_references_id = 18;
37
- string district_references_id = 19;
38
- string province_references_id = 20;
39
- string area_references_id = 21;
40
- string tax_office_location = 22;
41
- string references_id = 23;
42
- }
43
-
44
- message BaseWorkLocation {
45
- string code = 1;
46
- string location_name = 2;
47
- string alias = 3;
48
- string address = 4;
49
- string letter_address_line1 = 5;
50
- string letter_address_line2 = 6;
51
- string letter_address_line3 = 7;
52
- string phone_number = 8;
53
- string email = 9;
54
- string npwp = 10;
55
- string npwp_address = 11;
56
- double latitude = 12;
57
- double longitude = 13;
58
- int64 radius = 14;
59
- string country_references_id = 15;
60
- Country country = 16;
61
- string village_references_id = 17;
62
- Village village = 18;
63
- string city_references_id = 19;
64
- City city = 20;
65
- string district_references_id = 21;
66
- District district = 22;
67
- string province_references_id = 23;
68
- Province province = 24;
69
- string area_references_id = 25;
70
- string tax_office_location = 26;
71
- string references_id = 27;
72
- string companies_references_id = 28;
73
- BaseCompanyParent companies = 29;
74
- }
75
-
76
- message WorkLocationGetByIdRequest {
77
- string references_id =1;
78
- }
79
-
80
- message CreateWorkLocationRequest {
81
- WorkLocation work_location = 1;
82
- }
83
-
84
- message UpdateWorkLocationRequest {
85
- string references_id =1;
86
- WorkLocation work_location = 2;
87
- }
88
-
89
- message DeleteWorkLocationRequest {
90
- string references_id =1;
91
- }
92
-
93
- message DeleteWorkLocationResponse {
94
- string references_id =1;
95
- prisca.v1.global.meta.Meta meta = 2;
96
- }
97
-
98
- message GetListWorkLocationRequest {
99
- prisca.v1.global.meta.PaginationRequest pagination = 1;
100
- prisca.v1.global.meta.FilterRequest query = 2;
101
- }
102
-
103
- // Response Messages
104
- message CreateWorkLocationResponse {
105
- WorkLocation work_location = 1;
106
- prisca.v1.global.meta.Meta meta = 2;
107
- }
108
-
109
- message GetListWorkLocationResponse {
110
- repeated BaseWorkLocation work_location = 1;
111
- prisca.v1.global.meta.Meta meta = 2;
112
- }
113
-
114
- message UpdateWorkLocationResponse {
115
- WorkLocation work_location = 1;
116
- prisca.v1.global.meta.Meta meta = 2;
117
- }
118
-
119
- message WorkLocationGetByIdResponse {
120
- BaseWorkLocation work_location = 1;
121
- prisca.v1.global.meta.Meta meta = 2;
122
- }
@@ -1,193 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/workflow";
4
-
5
- import "prisca/v1/global/meta/meta.proto";
6
- import "prisca/v1/core/users/users.proto";
7
- import "prisca/v1/core/recipient_roles/recipient_roles.proto";
8
-
9
- service WorkflowService {
10
- rpc CreateWorkflow(CreateWorkflowRequest) returns (CreateWorkflowResponse);
11
- rpc UpdateWorkflow(UpdateWorkflowRequest) returns (UpdateWorkflowResponse);
12
- rpc DeleteWorkflow(DeleteWorkflowRequest) returns (DeleteWorkflowResponse);
13
- rpc GetWorkflowById(GetWorkflowByIdRequest) returns (GetWorkflowByIdResponse);
14
- rpc GetListWorkflows(GetListWorkflowRequest) returns (GetListWorkflowResponse);
15
- }
16
-
17
- message Workflow {
18
- int64 id = 1;
19
- string name = 2;
20
- string references_id = 3;
21
- string description = 4;
22
- string valid_from = 5; // ISO 8601 format
23
- string valid_to = 6; // ISO 8601 format
24
- string created_by = 7;
25
- string updated_by = 8;
26
- string created_at = 9; // ISO 8601 format
27
- string updated_at = 10; // Nullable, ISO 8601 format
28
- repeated WorkflowCondition workflow_condition = 11;
29
- bool is_active = 12;
30
- repeated WorkflowSteps workflow_steps = 13;
31
- }
32
-
33
- message WorkflowCondition {
34
- int64 id = 1;
35
- string references_id = 2;
36
- optional string workflow_ref_id = 3;
37
- optional string workflow_steps_ref_id = 4;
38
- string created_at = 5; // ISO 8601 format
39
- string updated_at = 6; // Nullable, ISO 8601 format
40
- repeated WorkflowCriteria workflow_criteria = 7;
41
- }
42
-
43
- message WorkflowCriteria {
44
- int64 id = 1;
45
- string references_id = 2;
46
- string value = 3;
47
- string workflow_condition_ref_id = 4;
48
- string properties = 5;
49
- string key = 6;
50
- string operator = 7;
51
- string created_at = 8; // ISO 8601 format
52
- string updated_at = 9; // Nullable, ISO 8601 format
53
- }
54
-
55
- message WorkflowSteps {
56
- int32 id = 1;
57
- string references_id = 2;
58
- string name = 3;
59
- string step_type = 4;
60
- string priority = 5;
61
- bool is_optional_step = 6;
62
- string exclude_restricted_agents = 7;
63
- string action_result = 8;
64
- string required_action = 9;
65
- string redefine_task_title = 10;
66
- string workflow_ref_id = 11;
67
- string is_completed_by = 12;
68
- repeated WorkflowDeadline deadlines = 13;
69
- string created_at = 14;
70
- string updated_at = 15;
71
- repeated WorkflowCondition workflow_condition = 16;
72
- repeated WorkflowStepsRecipients workflow_steps_recipients = 17;
73
- }
74
-
75
- message WorkflowDeadline {
76
- string deadline_context = 13;
77
- string deadline_unit = 14;
78
- int64 deadline_unit_counter = 15;
79
- string deadline_effect = 16;
80
- }
81
-
82
- message WorkflowStepsRecipients {
83
- int32 id = 1;
84
- string references_id = 2;
85
- string workflow_steps_ref_id = 3;
86
- optional int32 roles_ref_id = 4;
87
- optional string users_ref_id = 5;
88
- string created_at = 6;
89
- string updated_at = 7;
90
- RecipientRoles roles = 8;
91
- Users users = 9;
92
- }
93
- // Request Messages
94
- message BaseWorkflowRequest {
95
- string name = 1;
96
- string description = 2;
97
- string valid_from = 3; // ISO 8601 format
98
- string valid_to = 4; // ISO 8601 format
99
- string created_by = 5; // ISO 8601 format
100
- string updated_by = 6; // ISO 8601 format
101
- repeated BaseWorkflowConditionRequest workflow_condition = 7;
102
- repeated BaseWorkflowStepsRequest workflow_steps = 8;
103
- bool is_active = 9;
104
- }
105
- //WorkflowCondition
106
- // Request Messages
107
- message BaseWorkflowConditionRequest {
108
- repeated BaseWorkflowCriteriaRequest workflow_criteria = 1;
109
- }
110
-
111
- //WorkflowCriteria
112
- // Request Messages
113
- message BaseWorkflowCriteriaRequest {
114
- string value = 1;
115
- string properties = 2;
116
- string key = 3;
117
- string operator = 4;
118
- }
119
-
120
-
121
- //WorkflowSteps
122
- // Request Messages
123
- message BaseWorkflowStepsRequest {
124
- string name = 1;
125
- string step_type = 2;
126
- string priority = 3;
127
- bool is_optional_step = 4;
128
- string exclude_restricted_agents = 5;
129
- string action_result = 6;
130
- string required_action = 7;
131
- string redefine_task_title = 8;
132
- string is_completed_by = 9;
133
- repeated WorkflowDeadline deadlines = 10;
134
- repeated BaseWorkflowConditionRequest workflow_condition = 14;
135
- repeated BaseWorkflowStepsRecipientRequest workflow_steps_recipients = 15;
136
- }
137
-
138
- //WorkflowStepsRecipients
139
- // Request Messages
140
- message BaseWorkflowStepsRecipientRequest {
141
- int64 roles_ref_id = 1;
142
- string users_ref_id = 2;
143
- }
144
-
145
- message CreateWorkflowRequest {
146
- BaseWorkflowRequest base_workflow = 1;
147
- }
148
-
149
- message UpdateWorkflowRequest {
150
- string references_id =1;
151
- BaseWorkflowRequest base_workflow = 2;
152
- }
153
-
154
- message DeleteWorkflowRequest {
155
- string references_id =1;
156
- }
157
-
158
- message GetWorkflowByIdRequest {
159
- string references_id =1;
160
- }
161
-
162
- message GetListWorkflowRequest {
163
- prisca.v1.global.meta.PaginationRequest pagination = 1;
164
- prisca.v1.global.meta.FilterRequest query = 2;
165
- }
166
-
167
- // Response Messages
168
- message CreateWorkflowResponse {
169
- Workflow workflow = 1;
170
- prisca.v1.global.meta.Meta meta = 2;
171
- }
172
-
173
- message UpdateWorkflowResponse {
174
- Workflow workflow = 1;
175
- prisca.v1.global.meta.Meta meta = 2;
176
- }
177
-
178
- message DeleteWorkflowResponse {
179
- string references_id =1;
180
- prisca.v1.global.meta.Meta meta = 2;
181
- }
182
-
183
- message GetWorkflowByIdResponse {
184
- Workflow workflow = 1;
185
- prisca.v1.global.meta.Meta meta = 2;
186
- }
187
-
188
- message GetListWorkflowResponse {
189
- repeated Workflow workflows = 1;
190
- prisca.v1.global.meta.Meta meta = 2;
191
- }
192
-
193
-
@@ -1,57 +0,0 @@
1
-
2
- syntax="proto3";
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/global/meta";
4
- package prisca.v1.global.meta;
5
- import "google/protobuf/any.proto";
6
-
7
-
8
- message PaginationRequest {
9
- int32 offset = 1;
10
- int32 limit = 2;
11
- }
12
-
13
- message FilterRequest{
14
- string filter = 1;
15
- string order = 2;
16
- string keyword = 3;
17
- }
18
-
19
- message PaginationResponse {
20
- int32 offset = 1;
21
- int32 limit = 2;
22
- int64 total_pages = 3;
23
- int64 total_rows = 4;
24
- int64 total_row_per_page = 5;
25
- }
26
-
27
- message Meta {
28
- int64 status_code = 1;
29
- string message_code = 2;
30
- string message = 3;
31
- optional PaginationResponse pagination = 4;
32
- }
33
-
34
- message ResponseJson {
35
- Meta meta = 1;
36
- optional google.protobuf.Any data = 2;
37
- }
38
-
39
-
40
- // type Meta struct {
41
- // StatusCode int `json:"status_code"`
42
- // MessageCode string `json:"message_code"`
43
- // Message string `json:"message"`
44
- // Pagination *Pagination `json:"pagination"`
45
- // }
46
-
47
- // type Pagination struct {
48
- // Total int `json:"total"`
49
- // Offset int `json:"offset"`
50
- // Limit int `json:"Limit"`
51
- // }
52
-
53
- // type ResponseJson struct {
54
- // Data interface{} `json:"data"`
55
- // Meta Meta `json:"meta"`
56
- // }
57
-