syntax = "proto3";

package ccim.protocol;

message CreateChannelRequest {
    string name = 1;
    string tag = 2;
    bool open = 3;
    repeated int64 user_ids = 4;
}

message CreateChannelResponse {
    int64 channel_id = 1;
}

message JoinChannelRequest {
    int64 channel_id = 1;
}

message JoinChannelResponse {
}

message RemoveMemberRequest {
    int64 channel_id = 1;
    int64 user_id = 2;
}

message RemoveMemberResponse {}

message ExitChannelRequest {
    int64 channel_id = 1;
}

message ExitChannelResponse {
}

message ChannelBlockUserRequest {
  int64 channel_id = 1;
  int64 blocked_user_id = 2;
  int64 expired_at_millis = 3;   // 频道拉黑到期时间，毫秒
}

message ChannelBlockUserResponse {
}