mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 14:47:13 -04:00
27 lines
632 B
Rust
27 lines
632 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,
|
|
}
|