ss-member-identity is added
This commit is contained in:
parent
89522014a0
commit
8616b0b9b1
|
@ -1,24 +1,22 @@
|
||||||
use crate::protobuf::rpc;
|
use crate::protobuf::rpc;
|
||||||
|
|
||||||
|
|
||||||
const SUBJECT: &str = "bet.beteran.c2se.frontend.identity";
|
const SUBJECT: &str = "bet.beteran.c2se.frontend.identity";
|
||||||
|
|
||||||
pub const SUBJECT_SIGNIN: &str =
|
pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin");
|
||||||
const_format::concatcp!(SUBJECT, ".Signin");
|
|
||||||
/// subject = bet.beteran.c2se.frontend.identity.Signin
|
/// subject = bet.beteran.c2se.frontend.identity.Signin
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct SigninRequest {
|
pub struct SigninRequest {
|
||||||
#[prost(string, tag="1")]
|
#[prost(string, tag = "1")]
|
||||||
pub username: ::prost::alloc::string::String,
|
pub username: ::prost::alloc::string::String,
|
||||||
#[prost(string, tag="2")]
|
#[prost(string, tag = "2")]
|
||||||
pub password: ::prost::alloc::string::String,
|
pub password: ::prost::alloc::string::String,
|
||||||
#[prost(string, tag="3")]
|
#[prost(string, tag = "3")]
|
||||||
pub security_code: ::prost::alloc::string::String,
|
pub security_code: ::prost::alloc::string::String,
|
||||||
}
|
}
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct SigninResponse {
|
pub struct SigninResponse {
|
||||||
#[prost(message, optional, tag="1")]
|
#[prost(message, optional, tag = "1")]
|
||||||
pub error: ::core::option::Option<rpc::Error>,
|
pub error: ::core::option::Option<rpc::Error>,
|
||||||
#[prost(string, optional, tag="2")]
|
#[prost(string, optional, tag = "2")]
|
||||||
pub token: ::core::option::Option<::prost::alloc::string::String>,
|
pub token: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,11 +5,8 @@
|
||||||
#![deny(missing_debug_implementations)]
|
#![deny(missing_debug_implementations)]
|
||||||
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
|
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
|
||||||
|
|
||||||
|
pub mod c2se;
|
||||||
pub mod models;
|
pub mod models;
|
||||||
pub mod protobuf;
|
pub mod protobuf;
|
||||||
pub mod c2se;
|
|
||||||
pub mod se2c;
|
pub mod se2c;
|
||||||
pub mod ss;
|
pub mod ss;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
use bemily_commons_protobuf_rust::protobuf::bemily::protobuf as bcprpbp;
|
|
||||||
|
|
||||||
pub const SUBJECT: &str = "bemily.messenger.chat.messages.ss.event.messages";
|
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct MessageAttachFile {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "2")]
|
|
||||||
pub room_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "3")]
|
|
||||||
pub message_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "4")]
|
|
||||||
pub file_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(enumeration = "MessageAttachFileType", tag = "5")]
|
|
||||||
pub attach_file_type: i32,
|
|
||||||
#[prost(uint64, tag = "6")]
|
|
||||||
pub created_at: u64,
|
|
||||||
#[prost(uint64, tag = "7")]
|
|
||||||
pub updated_at: u64,
|
|
||||||
#[prost(uint64, optional, tag = "8")]
|
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
|
||||||
#[prost(enumeration = "bcprpbp::event::change::ChangeEventType", tag = "9")]
|
|
||||||
pub change_type: i32,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_CHANGE: &str = const_format::concatcp!(SUBJECT, ".Change");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.event.message_attach_files.Change;
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct ChangeEvent {
|
|
||||||
#[prost(string, repeated, tag = "1")]
|
|
||||||
pub identity_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
|
||||||
#[prost(string, tag = "2")]
|
|
||||||
pub room_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "3")]
|
|
||||||
pub message_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(message, repeated, tag = "4")]
|
|
||||||
pub message_attach_files: ::prost::alloc::vec::Vec<MessageAttachFile>,
|
|
||||||
}
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
|
||||||
#[repr(i32)]
|
|
||||||
pub enum MessageAttachFileType {
|
|
||||||
None = 0,
|
|
||||||
Image = 1,
|
|
||||||
Video = 2,
|
|
||||||
Sound = 3,
|
|
||||||
File = 4,
|
|
||||||
}
|
|
|
@ -1,65 +0,0 @@
|
||||||
use bemily_commons_protobuf_rust::protobuf::bemily::protobuf as bcprpbp;
|
|
||||||
|
|
||||||
pub const SUBJECT: &str = "bemily.messenger.chat.messages.ss.event.messages";
|
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct Message {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "2")]
|
|
||||||
pub room_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, optional, tag = "3")]
|
|
||||||
pub sender_id: ::core::option::Option<::prost::alloc::string::String>,
|
|
||||||
#[prost(enumeration = "MessageType", tag = "4")]
|
|
||||||
pub message_type: i32,
|
|
||||||
#[prost(string, tag = "5")]
|
|
||||||
pub message: ::prost::alloc::string::String,
|
|
||||||
#[prost(uint64, tag = "6")]
|
|
||||||
pub seq: u64,
|
|
||||||
#[prost(uint64, tag = "7")]
|
|
||||||
pub created_at: u64,
|
|
||||||
#[prost(uint64, tag = "8")]
|
|
||||||
pub updated_at: u64,
|
|
||||||
#[prost(uint64, optional, tag = "9")]
|
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
|
||||||
#[prost(enumeration = "bcprpbp::event::change::ChangeEventType", tag = "10")]
|
|
||||||
pub change_type: i32,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_CHANGE: &str = const_format::concatcp!(SUBJECT, ".Change");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.event.messages.Change;
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct ChangeEvent {
|
|
||||||
#[prost(string, repeated, tag = "1")]
|
|
||||||
pub identity_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
|
||||||
#[prost(message, optional, tag = "2")]
|
|
||||||
pub message: ::core::option::Option<Message>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_CHANGE_MESSAGE: &str = const_format::concatcp!(SUBJECT, ".ChangeMessage");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.event.messages.ChangeMessage;
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct ChangeMessageEvent {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub room_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "2")]
|
|
||||||
pub message_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "3")]
|
|
||||||
pub message: ::prost::alloc::string::String,
|
|
||||||
}
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
|
||||||
#[repr(i32)]
|
|
||||||
pub enum MessageType {
|
|
||||||
None = 0,
|
|
||||||
Normal = 1,
|
|
||||||
Mass = 2,
|
|
||||||
Image = 3,
|
|
||||||
Video = 4,
|
|
||||||
Sound = 5,
|
|
||||||
File = 6,
|
|
||||||
Emoticon = 7,
|
|
||||||
Smileme = 8,
|
|
||||||
Plan = 9,
|
|
||||||
Combination = 10,
|
|
||||||
Information = 11,
|
|
||||||
}
|
|
22
src/ss/member/identity.rs
Normal file
22
src/ss/member/identity.rs
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
use crate::protobuf::rpc;
|
||||||
|
|
||||||
|
const SUBJECT: &str = "bet.beteran.ss.member.identity";
|
||||||
|
|
||||||
|
pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin");
|
||||||
|
/// subject = bet.beteran.ss.member.identity.Signin
|
||||||
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
|
pub struct SigninRequest {
|
||||||
|
#[prost(string, tag = "1")]
|
||||||
|
pub username: ::prost::alloc::string::String,
|
||||||
|
#[prost(string, tag = "2")]
|
||||||
|
pub password: ::prost::alloc::string::String,
|
||||||
|
#[prost(string, tag = "3")]
|
||||||
|
pub security_code: ::prost::alloc::string::String,
|
||||||
|
}
|
||||||
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
|
pub struct SigninResponse {
|
||||||
|
#[prost(message, optional, tag = "1")]
|
||||||
|
pub error: ::core::option::Option<rpc::Error>,
|
||||||
|
#[prost(string, optional, tag = "2")]
|
||||||
|
pub token: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
|
}
|
1
src/ss/member/mod.rs
Normal file
1
src/ss/member/mod.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pub mod identity;
|
|
@ -1,79 +0,0 @@
|
||||||
use bemily_commons_protobuf_rust::protobuf::bemily::protobuf as bcprpbp;
|
|
||||||
|
|
||||||
pub const SUBJECT: &str = "bemily.messenger.chat.messages.ss.message_attach_files";
|
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct MessageAttachFile {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "2")]
|
|
||||||
pub room_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "3")]
|
|
||||||
pub message_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "4")]
|
|
||||||
pub file_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(enumeration = "MessageAttachFileType", tag = "5")]
|
|
||||||
pub attach_file_type: i32,
|
|
||||||
#[prost(uint64, tag = "6")]
|
|
||||||
pub created_at: u64,
|
|
||||||
#[prost(uint64, tag = "7")]
|
|
||||||
pub updated_at: u64,
|
|
||||||
#[prost(uint64, optional, tag = "8")]
|
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_LIST_BY_MESSAGE_ID: &str = const_format::concatcp!(SUBJECT, ".ListByMessageId");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.message_attach_files.ListByMessageId
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct ListByMessageIdRequest {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub message_id: ::prost::alloc::string::String,
|
|
||||||
}
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct ListByMessageIdResponse {
|
|
||||||
#[prost(message, optional, tag = "1")]
|
|
||||||
pub error: ::core::option::Option<bcprpbp::rpc::error::Error>,
|
|
||||||
#[prost(message, repeated, tag = "2")]
|
|
||||||
pub message_attach_files: ::prost::alloc::vec::Vec<MessageAttachFile>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_DELETE: &str = const_format::concatcp!(SUBJECT, ".Delete");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.message_attach_files.Delete
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct DeleteRequest {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub id: ::prost::alloc::string::String,
|
|
||||||
}
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct DeleteResponse {
|
|
||||||
#[prost(message, optional, tag = "1")]
|
|
||||||
pub error: ::core::option::Option<bcprpbp::rpc::error::Error>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_SYNCHRONIZE: &str = const_format::concatcp!(SUBJECT, ".Synchronize");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.message_attach_files.Synchronize
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct SynchronizeRequest {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub identity_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(uint64, optional, tag = "2")]
|
|
||||||
pub synchronized_at: ::core::option::Option<u64>,
|
|
||||||
}
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct SynchronizeResponse {
|
|
||||||
#[prost(message, optional, tag = "1")]
|
|
||||||
pub error: ::core::option::Option<bcprpbp::rpc::error::Error>,
|
|
||||||
#[prost(uint64, optional, tag = "2")]
|
|
||||||
pub synchronized_at: ::core::option::Option<u64>,
|
|
||||||
#[prost(message, repeated, tag = "3")]
|
|
||||||
pub message_attach_files: ::prost::alloc::vec::Vec<MessageAttachFile>,
|
|
||||||
}
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
|
||||||
#[repr(i32)]
|
|
||||||
pub enum MessageAttachFileType {
|
|
||||||
None = 0,
|
|
||||||
Image = 1,
|
|
||||||
Video = 2,
|
|
||||||
Sound = 3,
|
|
||||||
File = 4,
|
|
||||||
}
|
|
|
@ -1,140 +0,0 @@
|
||||||
use bemily_commons_protobuf_rust::protobuf::bemily::protobuf as bcprpbp;
|
|
||||||
|
|
||||||
pub const SUBJECT: &str = "bemily.messenger.chat.messages.ss.messages";
|
|
||||||
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct Message {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "2")]
|
|
||||||
pub room_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, optional, tag = "3")]
|
|
||||||
pub sender_id: ::core::option::Option<::prost::alloc::string::String>,
|
|
||||||
#[prost(enumeration = "MessageType", tag = "4")]
|
|
||||||
pub message_type: i32,
|
|
||||||
#[prost(string, tag = "5")]
|
|
||||||
pub message: ::prost::alloc::string::String,
|
|
||||||
#[prost(uint64, tag = "6")]
|
|
||||||
pub seq: u64,
|
|
||||||
#[prost(uint64, tag = "7")]
|
|
||||||
pub created_at: u64,
|
|
||||||
#[prost(uint64, tag = "8")]
|
|
||||||
pub updated_at: u64,
|
|
||||||
#[prost(uint64, optional, tag = "9")]
|
|
||||||
pub deleted_at: ::core::option::Option<u64>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_GET: &str = const_format::concatcp!(SUBJECT, ".Get");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.messages.Get
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct GetRequest {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub id: ::prost::alloc::string::String,
|
|
||||||
}
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct GetResponse {
|
|
||||||
#[prost(message, optional, tag = "1")]
|
|
||||||
pub error: ::core::option::Option<bcprpbp::rpc::error::Error>,
|
|
||||||
#[prost(message, optional, tag = "2")]
|
|
||||||
pub message: ::core::option::Option<Message>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_LIST_BY_IDS: &str = const_format::concatcp!(SUBJECT, ".ListByIds");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.messages.ListByIds
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct ListByIdsRequest {
|
|
||||||
#[prost(string, repeated, tag = "1")]
|
|
||||||
pub ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
|
||||||
}
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct ListByIdsResponse {
|
|
||||||
#[prost(message, optional, tag = "1")]
|
|
||||||
pub error: ::core::option::Option<bcprpbp::rpc::error::Error>,
|
|
||||||
#[prost(message, repeated, tag = "2")]
|
|
||||||
pub messages: ::prost::alloc::vec::Vec<Message>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_CREATE: &str = const_format::concatcp!(SUBJECT, ".Create");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.messages.Create
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct CreateRequest {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub room_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, optional, tag = "2")]
|
|
||||||
pub sender_id: ::core::option::Option<::prost::alloc::string::String>,
|
|
||||||
#[prost(enumeration = "MessageType", tag = "3")]
|
|
||||||
pub message_type: i32,
|
|
||||||
#[prost(string, tag = "4")]
|
|
||||||
pub message: ::prost::alloc::string::String,
|
|
||||||
}
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct CreateResponse {
|
|
||||||
#[prost(message, optional, tag = "1")]
|
|
||||||
pub error: ::core::option::Option<bcprpbp::rpc::error::Error>,
|
|
||||||
#[prost(message, optional, tag = "2")]
|
|
||||||
pub message: ::core::option::Option<Message>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_CHANGE_MESSAGE: &str = const_format::concatcp!(SUBJECT, ".ChangeMessage");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.messages.ChangeMessage
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct ChangeMessageRequest {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub id: ::prost::alloc::string::String,
|
|
||||||
#[prost(string, tag = "2")]
|
|
||||||
pub message: ::prost::alloc::string::String,
|
|
||||||
}
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct ChangeMessageResponse {
|
|
||||||
#[prost(message, optional, tag = "1")]
|
|
||||||
pub error: ::core::option::Option<bcprpbp::rpc::error::Error>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_DELETE: &str = const_format::concatcp!(SUBJECT, ".Delete");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.messages.Delete
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct DeleteRequest {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub id: ::prost::alloc::string::String,
|
|
||||||
}
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct DeleteResponse {
|
|
||||||
#[prost(message, optional, tag = "1")]
|
|
||||||
pub error: ::core::option::Option<bcprpbp::rpc::error::Error>,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub const SUBJECT_SYNCHRONIZE: &str = const_format::concatcp!(SUBJECT, ".Synchronize");
|
|
||||||
/// subject = bemily.messenger.chat.messages.ss.messages.Synchronize
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct SynchronizeRequest {
|
|
||||||
#[prost(string, tag = "1")]
|
|
||||||
pub identity_id: ::prost::alloc::string::String,
|
|
||||||
#[prost(uint64, optional, tag = "2")]
|
|
||||||
pub synchronized_at: ::core::option::Option<u64>,
|
|
||||||
}
|
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
||||||
pub struct SynchronizeResponse {
|
|
||||||
#[prost(message, optional, tag = "1")]
|
|
||||||
pub error: ::core::option::Option<bcprpbp::rpc::error::Error>,
|
|
||||||
#[prost(uint64, optional, tag = "2")]
|
|
||||||
pub synchronized_at: ::core::option::Option<u64>,
|
|
||||||
#[prost(message, repeated, tag = "3")]
|
|
||||||
pub messages: ::prost::alloc::vec::Vec<Message>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
|
|
||||||
#[repr(i32)]
|
|
||||||
pub enum MessageType {
|
|
||||||
None = 0,
|
|
||||||
Normal = 1,
|
|
||||||
Mass = 2,
|
|
||||||
Image = 3,
|
|
||||||
Video = 4,
|
|
||||||
Sound = 5,
|
|
||||||
File = 6,
|
|
||||||
Emoticon = 7,
|
|
||||||
Smileme = 8,
|
|
||||||
Plan = 9,
|
|
||||||
Combination = 10,
|
|
||||||
Information = 11,
|
|
||||||
}
|
|
|
@ -3,20 +3,4 @@
|
||||||
|
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
#[cfg(feature = "ss_messages")]
|
pub mod member;
|
||||||
pub mod messages;
|
|
||||||
|
|
||||||
///
|
|
||||||
///
|
|
||||||
#[cfg(feature = "ss_message_attach_files")]
|
|
||||||
pub mod message_attach_files;
|
|
||||||
|
|
||||||
///
|
|
||||||
///
|
|
||||||
#[cfg(feature = "ss_event_messages")]
|
|
||||||
pub mod event_messages;
|
|
||||||
|
|
||||||
///
|
|
||||||
///
|
|
||||||
#[cfg(feature = "ss_event_message_attach_files")]
|
|
||||||
pub mod event_message_attach_files;
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user