Skip to content
This repository was archived by the owner on Oct 2, 2021. It is now read-only.

Commit 0ffa0b5

Browse files
committed
Add Promote Room and Room priority
1 parent 338b70d commit 0ffa0b5

File tree

7 files changed

+57
-0
lines changed

7 files changed

+57
-0
lines changed
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
syntax = "proto3";
2+
package proto;
3+
import "Request.proto";
4+
import "Response.proto";
5+
6+
option java_package = "net.iGap.proto";
7+
option java_outer_classname = "ProtoClientGetPromote";
8+
9+
message ClientGetPromote {
10+
Request request = 1;
11+
}
12+
13+
message ClientGetPromoteResponse {
14+
Response response = 1;
15+
16+
message Promote {
17+
enum Type {
18+
USER = 0;
19+
PUBLIC_ROOM = 1;
20+
}
21+
Type type = 1;
22+
23+
uint64 id = 2;
24+
}
25+
26+
repeated Promote promote = 2;
27+
}

app/assets/proto/Global.proto

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ message Room {
273273
RoomMute room_mute = 15;
274274
uint64 pin_id = 16;
275275
RoomMessage pinned_message = 17;
276+
uint32 priority = 18;
276277

277278
ChatRoom chat_room_extra = 11;
278279
GroupRoom group_room_extra = 12;

docs/guide/v1/error/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -3695,6 +3695,19 @@ Internal server error for request [#617](../proto/README.md#action_617)
36953695
|------------ |-------- |---------- |
36963696
| * | * | * |
36973697

3698+
### Error 663 - CLIENT_GET_PROMOTE_BAD_PAYLOAD
3699+
Bad payload for request [#618](../proto/README.md#action_618)
3700+
3701+
| Minor Code | Detail | Reaction |
3702+
|------------ |-------- |---------- |
3703+
| * | * | * |
3704+
3705+
### Error 664 - CLIENT_GET_PROMOTE_INTERNAL_SERVER_ERROR
3706+
You are forbidden to do the action for request [#618](../proto/README.md#action_618)
3707+
3708+
| Minor Code | Detail | Reaction |
3709+
|------------ |-------- |---------- |
3710+
| * | * | * |
36983711

36993712
# File Errors(7xx)
37003713

docs/guide/v1/error/reference.md

+5
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,11 @@
880880
* 661 - [CLIENT_REGISTER_DEVICE_INTERNAL_SERVER_ERROR](README.md#error-661-client_register_device_internal_server_error)
881881
* 662 - [CLIENT_REGISTER_DEVICE_FORBIDDEN](README.md#error-662-client_register_device_forbidden)
882882

883+
---
884+
885+
* 663 - [CLIENT_GET_PROMOTE_BAD_PAYLOAD](README.md#error-663-client_get_promote_bad_payload)
886+
* 664 - [CLIENT_GET_PROMOTE_INTERNAL_SERVER_ERROR](README.md#error-664-client_get_promote_internal_server_error)
887+
883888
# File errors 7xx
884889

885890
* 700 - [FILE_UPLOAD_OPTION_BAD_PAYLOAD](README.md#error-700-file_upload_option_bad_payload)

docs/guide/v1/proto/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@
321321
| <a name="action_30616">30616</a> | [Details](ClientRoomReportResponse.md) | [ClientRoomReportResponse](../../../../app/assets/proto/ClientRoomReport.proto) |
322322
| <a name="action_617">617</a> | [Details](ClientRegisterDevice.md) | [ClientRegisterDevice](../../../../app/assets/proto/ClientRegisterDevice.proto) |
323323
| <a name="action_30617">30617</a> | [Details](ClientRegisterDeviceResponse.md) | [ClientRegisterDeviceResponse](../../../../app/assets/proto/ClientRegisterDevice.proto) |
324+
| <a name="action_618">618</a> | [Details](ClientGetPromote.md) | [ClientGetPromote](../../../../app/assets/proto/ClientGetPromote.proto) |
325+
| <a name="action_30618">30618</a> | [Details](ClientGetPromoteResponse.md) | [ClientGetPromoteResponse](../../../../app/assets/proto/ClientGetPromote.proto) |
324326

325327
# File 7xx , 307xx
326328

docs/guide/v1/request/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
* :o: [PinRoom](client/PinRoom.md)
162162
* [RoomReport](client/RoomReport.md)
163163
* [RegisterDevice](client/RegisterDevice.md)
164+
* [GetPromote](client/GetPromote.md)
164165

165166
# File
166167
* [Upload](file/Upload.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Get promotes
2+
3+
# Request
4+
message [#618](../../proto/README.md#action_618)
5+
6+
# Response
7+
message [#30618](../../proto/README.md#action_30618)
8+

0 commit comments

Comments
 (0)