mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
28 lines
670 B
Rust
28 lines
670 B
Rust
use flowy_derive::{Flowy_Event, ProtoBuf_Enum};
|
|
use strum_macros::Display;
|
|
|
|
#[derive(Clone, Copy, PartialEq, Eq, Debug, Display, Hash, ProtoBuf_Enum, Flowy_Event)]
|
|
#[event_err = "FlowyError"]
|
|
pub enum UserEvent {
|
|
#[event()]
|
|
InitUser = 0,
|
|
|
|
#[event(input = "SignInRequest", output = "UserProfile")]
|
|
SignIn = 1,
|
|
|
|
#[event(input = "SignUpRequest", output = "UserProfile")]
|
|
SignUp = 2,
|
|
|
|
#[event(passthrough)]
|
|
SignOut = 3,
|
|
|
|
#[event(input = "UpdateUserRequest")]
|
|
UpdateUser = 4,
|
|
|
|
#[event(output = "UserProfile")]
|
|
GetUserProfile = 5,
|
|
|
|
#[event(output = "UserProfile")]
|
|
CheckUser = 6,
|
|
}
|