jr-common-micro 1.0.4 → 1.0.5
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 +5 -4
- package/proto/micro/v1/coin/analytics_messages.proto +373 -0
- package/proto/micro/v1/coin/coin_messages.proto +126 -0
- package/proto/micro/v1/coin/coin_websocket_messages.proto +86 -0
- package/proto/micro/v1/coin/data_general_messages.proto +72 -0
- package/proto/micro/v1/coin/data_microservice_messages.proto +53 -0
- package/proto/micro/v1/coin/etf_messages.proto +125 -0
- package/proto/micro/v1/coin/long_short_ratio_messages.proto +56 -0
- package/proto/micro/v1/coin/rsi_messages.proto +45 -0
- package/proto/micro/v1/coin/services.proto +109 -0
- package/proto/micro/v1/coin/token_unlocks_messages.proto +51 -0
- package/proto/micro/v1/data/daily_market_data_messages.proto +23 -0
- package/proto/micro/v1/data/dominance_messages.proto +42 -0
- package/proto/micro/v1/data/exchanges_messages.proto +158 -0
- package/proto/micro/v1/data/funding_rate_messages.proto +33 -0
- package/proto/micro/v1/data/global_stats_messages.proto +19 -0
- package/proto/micro/v1/data/homepage_messages.proto +44 -0
- package/proto/micro/v1/data/inflow_outflow_messages.proto +84 -0
- package/proto/micro/v1/data/liquidation_heat_map_m2_messages.proto +52 -0
- package/proto/micro/v1/data/liquidation_v1_messages.proto +40 -0
- package/proto/micro/v1/data/mvrvz_score_messages.proto +13 -0
- package/proto/micro/v1/data/puell_multiple_messages.proto +18 -0
- package/proto/micro/v1/data/puppeteer_messages.proto +29 -0
- package/proto/micro/v1/data/rainbow_messages.proto +14 -0
- package/proto/micro/v1/data/rsi_list_messages.proto +27 -0
- package/proto/micro/v1/data/scrape_assets_messages.proto +25 -0
- package/proto/micro/v1/data/scrape_treasuries_messages.proto +44 -0
- package/proto/micro/v1/data/services.proto +115 -0
- package/proto/micro/v1/data/token_unlocks.proto +65 -0
- package/proto/micro/v1/data/two_hundred_week_moving_average_messages.proto +18 -0
- package/proto/micro/v1/data/two_year_ma_multipler_messages.proto +20 -0
- package/proto/micro/v1/education/education_messages.proto +294 -0
- package/proto/micro/v1/education/services.proto +94 -0
- package/proto/micro/v1/general.proto +114 -0
- package/proto/micro/v1/media/media_messages.proto +108 -0
- package/proto/micro/v1/media/services.proto +22 -0
- package/proto/micro/v1/news/app_version_message.proto +35 -0
- package/proto/micro/v1/news/blog_messages.proto +110 -0
- package/proto/micro/v1/news/calendar_messages.proto +46 -0
- package/proto/micro/v1/news/economic_calendar_messages.proto +28 -0
- package/proto/micro/v1/news/jr_blog_messages.proto +216 -0
- package/proto/micro/v1/news/news_messages.proto +193 -0
- package/proto/micro/v1/news/services.proto +148 -0
- package/proto/micro/v1/news/sundown_messages.proto +61 -0
- package/proto/micro/v1/notification/mail_messages.proto +40 -0
- package/proto/micro/v1/notification/notification_messages.proto +198 -0
- package/proto/micro/v1/notification/services.proto +35 -0
- package/proto/micro/v1/portfolio/portfolio_coin_messages.proto +22 -0
- package/proto/micro/v1/portfolio/portfolio_coin_trasaction_messages.proto +43 -0
- package/proto/micro/v1/portfolio/portfolio_messages.proto +187 -0
- package/proto/micro/v1/portfolio/services.proto +37 -0
- package/proto/micro/v1/puppeteer/puppeteer_messages.proto +0 -0
- package/proto/micro/v1/puppeteer/services.proto +27 -0
- package/proto/micro/v1/user/auth_messages.proto +91 -0
- package/proto/micro/v1/user/authorization_messages.proto +58 -0
- package/proto/micro/v1/user/services.proto +86 -0
- package/proto/micro/v1/user/site_settings_messages.proto +19 -0
- package/proto/micro/v1/user/user_messages.proto +228 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.education;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message EducationDto {
|
|
8
|
+
string id = 1;
|
|
9
|
+
map<string, string> title = 2;
|
|
10
|
+
map<string, string> description = 3;
|
|
11
|
+
optional string image = 4;
|
|
12
|
+
optional string intro_video_url = 5;
|
|
13
|
+
optional int32 total_duration = 6;
|
|
14
|
+
optional int32 total_topics = 7;
|
|
15
|
+
optional int32 total_sub_topics = 8;
|
|
16
|
+
optional string language = 9;
|
|
17
|
+
string instructor_id = 10;
|
|
18
|
+
string status = 11;
|
|
19
|
+
string created_at = 12;
|
|
20
|
+
optional string updated_at = 13;
|
|
21
|
+
string publishedAt = 14;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message CourseDto {
|
|
25
|
+
string id = 1;
|
|
26
|
+
string education_id = 2;
|
|
27
|
+
optional string parent_id = 3;
|
|
28
|
+
map<string, string> title = 4;
|
|
29
|
+
map<string, string> description = 5;
|
|
30
|
+
optional int32 duration = 6;
|
|
31
|
+
optional string video_url = 7;
|
|
32
|
+
optional string pdf_url = 8;
|
|
33
|
+
int32 sort_order = 9;
|
|
34
|
+
string status = 10;
|
|
35
|
+
string created_at = 11;
|
|
36
|
+
optional string updated_at = 12;
|
|
37
|
+
repeated CourseDto children = 14;
|
|
38
|
+
repeated LessonDto lessons = 15;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
message LessonDto {
|
|
42
|
+
string id = 1;
|
|
43
|
+
string course_id = 2;
|
|
44
|
+
map<string, string> title = 3;
|
|
45
|
+
map<string, string> description = 4;
|
|
46
|
+
optional int32 duration = 5;
|
|
47
|
+
bool has_video = 6;
|
|
48
|
+
bool has_pdf = 7;
|
|
49
|
+
int32 sort_order = 8;
|
|
50
|
+
string status = 9;
|
|
51
|
+
string created_at = 10;
|
|
52
|
+
optional string updated_at = 11;
|
|
53
|
+
repeated ContentDto contents = 13;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message EducationCreateRequest {
|
|
57
|
+
map<string, string> title = 1;
|
|
58
|
+
map<string, string> description = 2;
|
|
59
|
+
optional string image = 3;
|
|
60
|
+
optional string intro_video_url = 4;
|
|
61
|
+
optional string language = 5;
|
|
62
|
+
optional string instructor_id = 6;
|
|
63
|
+
optional string status = 7;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message EducationUpdateRequest {
|
|
67
|
+
string id = 1;
|
|
68
|
+
map<string, string> title = 2;
|
|
69
|
+
map<string, string> description = 3;
|
|
70
|
+
optional string image = 4;
|
|
71
|
+
optional string intro_video_url = 5;
|
|
72
|
+
optional string language = 6;
|
|
73
|
+
optional string status = 7;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message EducationListRequest {
|
|
77
|
+
optional int32 page = 1;
|
|
78
|
+
optional int32 per_page = 2;
|
|
79
|
+
optional string instructor_id = 3;
|
|
80
|
+
optional string status = 4;
|
|
81
|
+
optional string language = 5;
|
|
82
|
+
optional string search = 7;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message EducationSingleResponse {
|
|
86
|
+
ResponseStatus status = 1;
|
|
87
|
+
EducationDto data = 2;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
message EducationListResponse {
|
|
91
|
+
ResponseStatus status = 1;
|
|
92
|
+
PaginationMetaResult pagination = 2;
|
|
93
|
+
repeated EducationDto data = 3;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message EducationPublishRequest {
|
|
97
|
+
string id = 1;
|
|
98
|
+
string status = 2;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message EducationArchiveRequest {
|
|
102
|
+
string id = 1;
|
|
103
|
+
bool is_archived = 2;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
message CourseCreateRequest {
|
|
107
|
+
string education_id = 1;
|
|
108
|
+
map<string, string> title = 2;
|
|
109
|
+
map<string, string> description = 3;
|
|
110
|
+
optional int32 duration = 4;
|
|
111
|
+
optional int32 sort_order = 5;
|
|
112
|
+
optional string status = 6;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message CourseUpdateRequest {
|
|
116
|
+
string id = 1;
|
|
117
|
+
map<string, string> title = 2;
|
|
118
|
+
map<string, string> description = 3;
|
|
119
|
+
optional int32 duration = 4;
|
|
120
|
+
optional int32 sort_order = 5;
|
|
121
|
+
optional string status = 6;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message CourseListRequest {
|
|
125
|
+
string education_id = 1;
|
|
126
|
+
optional int32 page = 2;
|
|
127
|
+
optional int32 per_page = 3;
|
|
128
|
+
optional string status = 4;
|
|
129
|
+
optional string search = 5;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message CourseTreeRequest {
|
|
133
|
+
string education_id = 1;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
message CourseSingleResponse {
|
|
137
|
+
ResponseStatus status = 1;
|
|
138
|
+
CourseDto data = 2;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
message CourseListResponse {
|
|
142
|
+
ResponseStatus status = 1;
|
|
143
|
+
PaginationMetaResult pagination = 2;
|
|
144
|
+
repeated CourseDto data = 3;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
message CourseTreeResponse {
|
|
148
|
+
ResponseStatus status = 1;
|
|
149
|
+
repeated CourseDto data = 2;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
message BulkUpdateCourseOrderRequest {
|
|
153
|
+
string education_id = 1;
|
|
154
|
+
repeated CourseOrderUpdate updates = 2;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
message CourseOrderUpdate {
|
|
158
|
+
string id = 1;
|
|
159
|
+
int32 sort_order = 2;
|
|
160
|
+
optional string parent_id = 3;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
message LessonCreateRequest {
|
|
164
|
+
string course_id = 1;
|
|
165
|
+
map<string, string> title = 2;
|
|
166
|
+
map<string, string> description = 3;
|
|
167
|
+
optional int32 duration = 4;
|
|
168
|
+
optional int32 sort_order = 5;
|
|
169
|
+
optional string status = 6;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
message LessonUpdateRequest {
|
|
173
|
+
string id = 1;
|
|
174
|
+
map<string, string> title = 2;
|
|
175
|
+
map<string, string> description = 3;
|
|
176
|
+
optional int32 duration = 4;
|
|
177
|
+
optional int32 sort_order = 5;
|
|
178
|
+
optional string status = 6;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message LessonListRequest {
|
|
182
|
+
string course_id = 1;
|
|
183
|
+
optional int32 page = 2;
|
|
184
|
+
optional int32 per_page = 3;
|
|
185
|
+
optional string status = 4;
|
|
186
|
+
optional string search = 5;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
message LessonSingleResponse {
|
|
190
|
+
ResponseStatus status = 1;
|
|
191
|
+
LessonDto data = 2;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
message LessonListResponse {
|
|
195
|
+
ResponseStatus status = 1;
|
|
196
|
+
PaginationMetaResult pagination = 2;
|
|
197
|
+
repeated LessonDto data = 3;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
message BulkUpdateLessonOrderRequest {
|
|
201
|
+
string course_id = 1;
|
|
202
|
+
repeated LessonOrderUpdate updates = 2;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
message LessonOrderUpdate {
|
|
206
|
+
string id = 1;
|
|
207
|
+
int32 sort_order = 2;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
message ContentDto {
|
|
211
|
+
string id = 1;
|
|
212
|
+
string lesson_id = 2;
|
|
213
|
+
string content_type = 3;
|
|
214
|
+
optional string file_uuid = 4;
|
|
215
|
+
optional string file_url = 5;
|
|
216
|
+
optional int32 duration = 6;
|
|
217
|
+
int32 sort_order = 7;
|
|
218
|
+
string created_at = 8;
|
|
219
|
+
optional string updated_at = 9;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
message ContentCreateRequest {
|
|
223
|
+
string lesson_id = 1;
|
|
224
|
+
string content_type = 2;
|
|
225
|
+
optional string file_uuid = 3;
|
|
226
|
+
optional string file_url = 4;
|
|
227
|
+
optional int32 duration = 5;
|
|
228
|
+
optional int32 sort_order = 6;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
message ContentUpdateRequest {
|
|
232
|
+
string id = 1;
|
|
233
|
+
optional string content_type = 2;
|
|
234
|
+
optional string file_uuid = 3;
|
|
235
|
+
optional string file_url = 4;
|
|
236
|
+
optional int32 duration = 5;
|
|
237
|
+
optional int32 sort_order = 6;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
message ContentListRequest {
|
|
241
|
+
string lesson_id = 1;
|
|
242
|
+
optional int32 page = 2;
|
|
243
|
+
optional int32 per_page = 3;
|
|
244
|
+
optional string content_type = 4;
|
|
245
|
+
optional string status = 5;
|
|
246
|
+
optional string search = 6;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
message ContentSingleResponse {
|
|
250
|
+
ResponseStatus status = 1;
|
|
251
|
+
ContentDto data = 2;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
message ContentListResponse {
|
|
255
|
+
ResponseStatus status = 1;
|
|
256
|
+
PaginationMetaResult pagination = 2;
|
|
257
|
+
repeated ContentDto data = 3;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
message BulkUpdateContentOrderRequest {
|
|
261
|
+
string lesson_id = 1;
|
|
262
|
+
repeated ContentOrderUpdate updates = 2;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
message ContentOrderUpdate {
|
|
266
|
+
string id = 1;
|
|
267
|
+
int32 sort_order = 2;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
message ReferralUidRequest {
|
|
271
|
+
string user_id = 1;
|
|
272
|
+
string exchange_name = 2;
|
|
273
|
+
string uid = 3;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
message ReferralUidResponse {
|
|
277
|
+
ResponseStatus status = 1;
|
|
278
|
+
string message = 2;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
message ReferralDetailsResponse {
|
|
282
|
+
ResponseStatus status = 1;
|
|
283
|
+
ReferralDetailsDto data = 2;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
message ReferralDetailsDto {
|
|
287
|
+
ReferralDetails mexc = 1;
|
|
288
|
+
ReferralDetails bybit = 2;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
message ReferralDetails {
|
|
292
|
+
string uid = 1;
|
|
293
|
+
string status = 2;
|
|
294
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.education;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
import "micro/v1/education/education_messages.proto";
|
|
7
|
+
|
|
8
|
+
service PEducationService {
|
|
9
|
+
rpc list(EducationListRequest) returns (EducationListResponse);
|
|
10
|
+
rpc read(ByIdRequest) returns (EducationSingleResponse);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
service PCourseService {
|
|
14
|
+
rpc list(CourseListRequest) returns (CourseListResponse);
|
|
15
|
+
rpc read(ByIdRequest) returns (CourseSingleResponse);
|
|
16
|
+
rpc getTree(CourseTreeRequest) returns (CourseTreeResponse);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
service PEducationAdminService {
|
|
20
|
+
rpc list(EducationListRequest) returns (EducationListResponse);
|
|
21
|
+
rpc read(ByIdRequest) returns (EducationSingleResponse);
|
|
22
|
+
rpc create(EducationCreateRequest) returns (EducationSingleResponse);
|
|
23
|
+
rpc update(EducationUpdateRequest) returns (EducationSingleResponse);
|
|
24
|
+
rpc remove(ByIdRequest) returns (EmptyResponse);
|
|
25
|
+
rpc publish(EducationPublishRequest) returns (EducationSingleResponse);
|
|
26
|
+
rpc archive(EducationArchiveRequest) returns (EducationSingleResponse);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
service PCourseAdminService {
|
|
30
|
+
rpc list(CourseListRequest) returns (CourseListResponse);
|
|
31
|
+
rpc read(ByIdRequest) returns (CourseSingleResponse);
|
|
32
|
+
rpc create(CourseCreateRequest) returns (CourseSingleResponse);
|
|
33
|
+
rpc update(CourseUpdateRequest) returns (CourseSingleResponse);
|
|
34
|
+
rpc remove(ByIdRequest) returns (EmptyResponse);
|
|
35
|
+
rpc getTree(CourseTreeRequest) returns (CourseTreeResponse);
|
|
36
|
+
rpc bulkUpdateOrder(BulkUpdateCourseOrderRequest) returns (EmptyResponse);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
service PLessonAdminService {
|
|
40
|
+
rpc list(LessonListRequest) returns (LessonListResponse);
|
|
41
|
+
rpc read(ByIdRequest) returns (LessonSingleResponse);
|
|
42
|
+
rpc create(LessonCreateRequest) returns (LessonSingleResponse);
|
|
43
|
+
rpc update(LessonUpdateRequest) returns (LessonSingleResponse);
|
|
44
|
+
rpc remove(ByIdRequest) returns (EmptyResponse);
|
|
45
|
+
rpc bulkUpdateOrder(BulkUpdateLessonOrderRequest) returns (EmptyResponse);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
service PEducationInstructorService {
|
|
49
|
+
rpc list(EducationListRequest) returns (EducationListResponse);
|
|
50
|
+
rpc read(ByIdRequest) returns (EducationSingleResponse);
|
|
51
|
+
rpc create(EducationCreateRequest) returns (EducationSingleResponse);
|
|
52
|
+
rpc update(EducationUpdateRequest) returns (EducationSingleResponse);
|
|
53
|
+
rpc remove(ByIdRequest) returns (EmptyResponse);
|
|
54
|
+
rpc publish(EducationPublishRequest) returns (EducationSingleResponse);
|
|
55
|
+
rpc archive(EducationArchiveRequest) returns (EducationSingleResponse);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
service PCourseInstructorService {
|
|
59
|
+
rpc list(CourseListRequest) returns (CourseListResponse);
|
|
60
|
+
rpc read(ByIdRequest) returns (CourseSingleResponse);
|
|
61
|
+
rpc create(CourseCreateRequest) returns (CourseSingleResponse);
|
|
62
|
+
rpc update(CourseUpdateRequest) returns (CourseSingleResponse);
|
|
63
|
+
rpc remove(ByIdRequest) returns (EmptyResponse);
|
|
64
|
+
rpc getTree(CourseTreeRequest) returns (CourseTreeResponse);
|
|
65
|
+
rpc bulkUpdateOrder(BulkUpdateCourseOrderRequest) returns (EmptyResponse);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
service PLessonService {
|
|
69
|
+
rpc list(LessonListRequest) returns (LessonListResponse);
|
|
70
|
+
rpc read(ByIdRequest) returns (LessonSingleResponse);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
service PContentService {
|
|
74
|
+
rpc list(ContentListRequest) returns (ContentListResponse);
|
|
75
|
+
rpc read(ByIdRequest) returns (ContentSingleResponse);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
service PContentAdminService {
|
|
79
|
+
rpc list(ContentListRequest) returns (ContentListResponse);
|
|
80
|
+
rpc read(ByIdRequest) returns (ContentSingleResponse);
|
|
81
|
+
rpc create(ContentCreateRequest) returns (ContentSingleResponse);
|
|
82
|
+
rpc update(ContentUpdateRequest) returns (ContentSingleResponse);
|
|
83
|
+
rpc remove(ByIdRequest) returns (EmptyResponse);
|
|
84
|
+
rpc bulkUpdateOrder(BulkUpdateContentOrderRequest) returns (EmptyResponse);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
service PReferralUidService {
|
|
88
|
+
rpc getReferralUid(ReferralUidRequest) returns (ReferralUidResponse);
|
|
89
|
+
rpc getReferralDetails(EmptyRequest) returns (ReferralDetailsResponse);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
service PMediaEducationService {
|
|
93
|
+
rpc storeExcelToDb(EmptyRequest) returns(stream EmptyResponse) {}
|
|
94
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1;
|
|
4
|
+
|
|
5
|
+
message Error {
|
|
6
|
+
repeated string errors = 1;
|
|
7
|
+
map<string, string> inputs = 2;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message ResponseStatus {
|
|
11
|
+
int32 code = 1;
|
|
12
|
+
optional Error error = 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message EmptyResponse { ResponseStatus status = 1; }
|
|
16
|
+
|
|
17
|
+
message ByIdRequest { string id = 1; }
|
|
18
|
+
|
|
19
|
+
message EmptyRequest {}
|
|
20
|
+
|
|
21
|
+
message PaginateRequest {
|
|
22
|
+
int32 page = 1;
|
|
23
|
+
int32 per_page = 2;
|
|
24
|
+
optional int32 draw = 3;
|
|
25
|
+
repeated Filter filters = 4;
|
|
26
|
+
repeated Sort sort = 5;
|
|
27
|
+
repeated string columns = 6;
|
|
28
|
+
optional string fulltextSearch = 7;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message PaginateFromRequest {
|
|
32
|
+
string id = 1;
|
|
33
|
+
int32 per_page = 2;
|
|
34
|
+
optional int32 draw = 3;
|
|
35
|
+
repeated Filter filters = 4;
|
|
36
|
+
repeated Sort sort = 5;
|
|
37
|
+
repeated string columns = 6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message PaginationMetaResult {
|
|
41
|
+
int32 records_total = 1;
|
|
42
|
+
int32 records_filtered = 2;
|
|
43
|
+
int32 draw = 3;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message Filter {
|
|
47
|
+
string name = 1;
|
|
48
|
+
FilterOperator operator= 2;
|
|
49
|
+
|
|
50
|
+
optional string value = 3;
|
|
51
|
+
optional int64 value_int = 4;
|
|
52
|
+
optional float value_float = 5;
|
|
53
|
+
optional bool value_bool = 6;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message Sort {
|
|
57
|
+
string name = 1;
|
|
58
|
+
SortDirection direction = 2;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
enum FilterOperator {
|
|
62
|
+
equals = 0; //
|
|
63
|
+
startsWith = 1; //
|
|
64
|
+
endsWith = 2; //
|
|
65
|
+
contains = 3; //
|
|
66
|
+
gt = 4; //
|
|
67
|
+
gte = 5; //
|
|
68
|
+
lt = 6; //
|
|
69
|
+
lte = 7; //
|
|
70
|
+
not = 8; //
|
|
71
|
+
in = 9; //
|
|
72
|
+
notIn = 10; //
|
|
73
|
+
isNull = 11; //
|
|
74
|
+
isNotNull = 12; //
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
enum SortDirection {
|
|
78
|
+
asc = 0; //
|
|
79
|
+
desc = 1; //
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
enum ActivePassiveEnum {
|
|
83
|
+
active = 0; //
|
|
84
|
+
passive = 1; //
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
enum IntervalEnum {
|
|
88
|
+
m1 = 0; //
|
|
89
|
+
m3 = 1; //
|
|
90
|
+
m5 = 2; //
|
|
91
|
+
m15 = 3; //
|
|
92
|
+
m30 = 4; //
|
|
93
|
+
h1 = 5; //
|
|
94
|
+
h4 = 6; //
|
|
95
|
+
h6 = 7; //
|
|
96
|
+
h8 = 8; //
|
|
97
|
+
h12 = 9; //
|
|
98
|
+
h24 = 10; //
|
|
99
|
+
d1 = 11; //
|
|
100
|
+
w1 = 12; //
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
message CoinData {
|
|
104
|
+
string id = 1;
|
|
105
|
+
string symbol = 2;
|
|
106
|
+
string name = 3;
|
|
107
|
+
ActivePassiveEnum status = 4;
|
|
108
|
+
int32 sequence_no = 5;
|
|
109
|
+
string created_at = 6;
|
|
110
|
+
string updated_at = 7;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
message ScrapeGeneralResponse {string data = 1;}
|
|
114
|
+
message ScrapeStringRequest {string data = 1;}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.media;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
enum WatermarkLocation {
|
|
8
|
+
TOP_LEFT = 0;
|
|
9
|
+
TOP_RIGHT = 1;
|
|
10
|
+
BOTTOM_LEFT = 2;
|
|
11
|
+
BOTTOM_RIGHT = 3;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
enum FileStatus {
|
|
15
|
+
PENDING = 0;
|
|
16
|
+
PROCESSING = 1;
|
|
17
|
+
COMPLETED = 2;
|
|
18
|
+
FAILED = 3;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message FileStoreRequest {
|
|
22
|
+
string uuid = 1;
|
|
23
|
+
string user_id = 2;
|
|
24
|
+
string original_name = 3;
|
|
25
|
+
string mimetype = 4;
|
|
26
|
+
int32 file_size = 5;
|
|
27
|
+
string file_type = 6;
|
|
28
|
+
string platform = 7;
|
|
29
|
+
optional WatermarkDto watermark = 8;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message WatermarkDto {
|
|
33
|
+
string file_name = 1;
|
|
34
|
+
WatermarkLocation watermark_location = 2;
|
|
35
|
+
int32 width = 3;
|
|
36
|
+
int32 height = 4;
|
|
37
|
+
int32 x = 5;
|
|
38
|
+
int32 y = 6;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
message GetFileStatusResponse {
|
|
43
|
+
ResponseStatus status = 1;
|
|
44
|
+
FileStatus file_status = 2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message MediaPaginationDto {
|
|
48
|
+
string id = 1;
|
|
49
|
+
string uuid = 2;
|
|
50
|
+
string original_name = 3;
|
|
51
|
+
string original_ext = 4;
|
|
52
|
+
string mimetype = 5;
|
|
53
|
+
FileStatus file_status = 6;
|
|
54
|
+
int32 duration = 7;
|
|
55
|
+
WatermarkDto watermark = 8;
|
|
56
|
+
string created_at = 9;
|
|
57
|
+
string updated_at = 10;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message MediaAdminPaginationResponse {
|
|
61
|
+
ResponseStatus status = 1;
|
|
62
|
+
PaginationMetaResult pagination = 2;
|
|
63
|
+
repeated MediaPaginationDto data = 3;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message GetMediaUrlResponse {
|
|
67
|
+
ResponseStatus status = 1;
|
|
68
|
+
string message = 2;
|
|
69
|
+
string url = 3;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
message GetMediaUrlRequest {
|
|
73
|
+
string file_uuid = 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
message LogoUrl {
|
|
77
|
+
string name = 1;
|
|
78
|
+
string url = 2;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message GetAllLogoUrlsResponse {
|
|
82
|
+
ResponseStatus status = 1;
|
|
83
|
+
repeated LogoUrl data = 2;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
message StoreVideoLastTimeRequest {
|
|
87
|
+
string file_uuid = 1;
|
|
88
|
+
int32 user_id = 2;
|
|
89
|
+
int32 last_time = 3;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
message GetVideoLastTimeRequest {
|
|
93
|
+
string file_uuid = 1;
|
|
94
|
+
int32 user_id = 2;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
message GetVideoLastTimeResponse {
|
|
98
|
+
ResponseStatus status = 1;
|
|
99
|
+
int32 last_time = 2;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
message FileStatusRequest {
|
|
103
|
+
string file_uuid = 1;
|
|
104
|
+
}
|
|
105
|
+
message FileStatusResponse {
|
|
106
|
+
FileStatus file_status = 1;
|
|
107
|
+
string message = 2;
|
|
108
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.media;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
import "micro/v1/media/media_messages.proto";
|
|
7
|
+
|
|
8
|
+
service PMediaAdminService {
|
|
9
|
+
rpc Paginate(PaginateRequest) returns(stream MediaAdminPaginationResponse) {}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
service PMediaService {
|
|
13
|
+
rpc Store(FileStoreRequest) returns(stream EmptyResponse) {}
|
|
14
|
+
rpc GetMediaUrl(GetMediaUrlRequest) returns(stream GetMediaUrlResponse) {}
|
|
15
|
+
rpc GetAllLogoUrls(EmptyRequest) returns(stream GetAllLogoUrlsResponse) {}
|
|
16
|
+
rpc GetVideoLastTime(GetVideoLastTimeRequest) returns(stream GetVideoLastTimeResponse) {}
|
|
17
|
+
rpc StoreVideoLastTime(StoreVideoLastTimeRequest) returns(stream EmptyResponse) {}
|
|
18
|
+
rpc GetFileStatus(FileStatusRequest) returns(stream FileStatusResponse) {}
|
|
19
|
+
//rpc GetFileStatus(ByIdRequest) returns(stream GetFileStatusResponse) {}
|
|
20
|
+
//rpc GetFileUrl(ByIdRequest) returns(stream GetFileUrlResponse) {}
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package micro.v1.news;
|
|
4
|
+
|
|
5
|
+
import "micro/v1/general.proto";
|
|
6
|
+
|
|
7
|
+
message AppVersionDto {
|
|
8
|
+
string id = 1;
|
|
9
|
+
string date = 2;
|
|
10
|
+
int32 android_version = 3;
|
|
11
|
+
int32 ios_version = 4;
|
|
12
|
+
map<string, string> description = 5;
|
|
13
|
+
bool mandatory = 6;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message AppVersionResponse {
|
|
17
|
+
ResponseStatus status = 1;
|
|
18
|
+
AppVersionDto data = 2;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message AddAppVersionRequest {
|
|
22
|
+
int32 android_version = 1;
|
|
23
|
+
int32 ios_version = 2;
|
|
24
|
+
map<string, string> description = 3;
|
|
25
|
+
bool mandatory = 4;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message RemoveAppVersionRequest {
|
|
29
|
+
string id = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message AppVersionListResponse {
|
|
33
|
+
repeated AppVersionDto data = 1;
|
|
34
|
+
ResponseStatus status = 2;
|
|
35
|
+
}
|