diff --git a/app/assets/proto/ClientGetPromote.proto b/app/assets/proto/ClientGetPromote.proto new file mode 100644 index 0000000..6ea6270 --- /dev/null +++ b/app/assets/proto/ClientGetPromote.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; +package proto; +import "Request.proto"; +import "Response.proto"; + +option java_package = "net.iGap.proto"; +option java_outer_classname = "ProtoClientGetPromote"; + +message ClientGetPromote { + Request request = 1; +} + +message ClientGetPromoteResponse { + Response response = 1; + + message Promote { + enum Type { + USER = 0; + PUBLIC_ROOM = 1; + } + Type type = 1; + + uint64 id = 2; + } + + repeated Promote promote = 2; +} \ No newline at end of file diff --git a/app/assets/proto/Global.proto b/app/assets/proto/Global.proto index 0a3ad0c..f7125e1 100644 --- a/app/assets/proto/Global.proto +++ b/app/assets/proto/Global.proto @@ -273,6 +273,7 @@ message Room { RoomMute room_mute = 15; uint64 pin_id = 16; RoomMessage pinned_message = 17; + uint32 priority = 18; ChatRoom chat_room_extra = 11; GroupRoom group_room_extra = 12; diff --git a/docs/guide/v1/error/README.md b/docs/guide/v1/error/README.md index 46d3fde..19e78fd 100644 --- a/docs/guide/v1/error/README.md +++ b/docs/guide/v1/error/README.md @@ -3695,6 +3695,19 @@ Internal server error for request [#617](../proto/README.md#action_617) |------------ |-------- |---------- | | * | * | * | +### Error 663 - CLIENT_GET_PROMOTE_BAD_PAYLOAD +Bad payload for request [#618](../proto/README.md#action_618) + +| Minor Code | Detail | Reaction | +|------------ |-------- |---------- | +| * | * | * | + +### Error 664 - CLIENT_GET_PROMOTE_INTERNAL_SERVER_ERROR +You are forbidden to do the action for request [#618](../proto/README.md#action_618) + +| Minor Code | Detail | Reaction | +|------------ |-------- |---------- | +| * | * | * | # File Errors(7xx) diff --git a/docs/guide/v1/error/reference.md b/docs/guide/v1/error/reference.md index 1e9dc50..fe508d8 100644 --- a/docs/guide/v1/error/reference.md +++ b/docs/guide/v1/error/reference.md @@ -880,6 +880,11 @@ * 661 - [CLIENT_REGISTER_DEVICE_INTERNAL_SERVER_ERROR](README.md#error-661-client_register_device_internal_server_error) * 662 - [CLIENT_REGISTER_DEVICE_FORBIDDEN](README.md#error-662-client_register_device_forbidden) +--- + +* 663 - [CLIENT_GET_PROMOTE_BAD_PAYLOAD](README.md#error-663-client_get_promote_bad_payload) +* 664 - [CLIENT_GET_PROMOTE_INTERNAL_SERVER_ERROR](README.md#error-664-client_get_promote_internal_server_error) + # File errors 7xx * 700 - [FILE_UPLOAD_OPTION_BAD_PAYLOAD](README.md#error-700-file_upload_option_bad_payload) diff --git a/docs/guide/v1/proto/README.md b/docs/guide/v1/proto/README.md index aeeee77..14c63ac 100644 --- a/docs/guide/v1/proto/README.md +++ b/docs/guide/v1/proto/README.md @@ -321,6 +321,8 @@ | 30616 | [Details](ClientRoomReportResponse.md) | [ClientRoomReportResponse](../../../../app/assets/proto/ClientRoomReport.proto) | | 617 | [Details](ClientRegisterDevice.md) | [ClientRegisterDevice](../../../../app/assets/proto/ClientRegisterDevice.proto) | | 30617 | [Details](ClientRegisterDeviceResponse.md) | [ClientRegisterDeviceResponse](../../../../app/assets/proto/ClientRegisterDevice.proto) | +| 618 | [Details](ClientGetPromote.md) | [ClientGetPromote](../../../../app/assets/proto/ClientGetPromote.proto) | +| 30618 | [Details](ClientGetPromoteResponse.md) | [ClientGetPromoteResponse](../../../../app/assets/proto/ClientGetPromote.proto) | # File 7xx , 307xx diff --git a/docs/guide/v1/request/README.md b/docs/guide/v1/request/README.md index 192626a..602f849 100644 --- a/docs/guide/v1/request/README.md +++ b/docs/guide/v1/request/README.md @@ -161,6 +161,7 @@ * :o: [PinRoom](client/PinRoom.md) * [RoomReport](client/RoomReport.md) * [RegisterDevice](client/RegisterDevice.md) +* [GetPromote](client/GetPromote.md) # File * [Upload](file/Upload.md) diff --git a/docs/guide/v1/request/client/GetPromote.md b/docs/guide/v1/request/client/GetPromote.md new file mode 100644 index 0000000..5c88287 --- /dev/null +++ b/docs/guide/v1/request/client/GetPromote.md @@ -0,0 +1,8 @@ +Get promotes + +# Request +message [#618](../../proto/README.md#action_618) + +# Response +message [#30618](../../proto/README.md#action_30618) +