chore: update documentation

This commit is contained in:
nathan
2022-12-01 10:59:22 +08:00
parent 96c427e869
commit bf36ef7fd9
13 changed files with 74 additions and 55 deletions

View File

@ -1,7 +1,7 @@
use crate::FlowySDKTest;
use flowy_user::{entities::UserProfilePB, errors::FlowyError};
use lib_dispatch::prelude::{
AFPluginDispatcher, AFPluginFromBytes, AFPluginRequest, EventResponse, StatusCode, ToBytes, *,
AFPluginDispatcher, AFPluginEventResponse, AFPluginFromBytes, AFPluginRequest, StatusCode, ToBytes, *,
};
use std::{
convert::TryFrom,
@ -124,7 +124,7 @@ where
self.context.sdk.dispatcher()
}
fn get_response(&self) -> EventResponse {
fn get_response(&self) -> AFPluginEventResponse {
self.context
.response
.as_ref()
@ -141,7 +141,7 @@ where
pub struct TestContext {
pub sdk: FlowySDKTest,
request: Option<AFPluginRequest>,
response: Option<EventResponse>,
response: Option<AFPluginEventResponse>,
}
impl TestContext {