mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
20 lines
506 B
Rust
20 lines
506 B
Rust
use strum_macros::Display;
|
|
|
|
use flowy_derive::{Flowy_Event, ProtoBuf_Enum};
|
|
use lib_dispatch::prelude::AFPlugin;
|
|
|
|
use crate::event_handler::query_date_handler;
|
|
|
|
pub fn init() -> AFPlugin {
|
|
AFPlugin::new()
|
|
.name(env!("CARGO_PKG_NAME"))
|
|
.event(DateEvent::QueryDate, query_date_handler)
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Hash, Display, ProtoBuf_Enum, Flowy_Event)]
|
|
#[event_err = "FlowyError"]
|
|
pub enum DateEvent {
|
|
#[event(input = "DateQueryPB", output = "DateResultPB")]
|
|
QueryDate = 0,
|
|
}
|