mirror of
https://github.com/fluencelabs/fluid
synced 2025-04-26 07:12:18 +00:00
26 lines
584 B
Rust
26 lines
584 B
Rust
|
use crate::api::AppResult;
|
||
|
use log;
|
||
|
|
||
|
pub fn create_scheme() -> AppResult<()> {
|
||
|
Ok(log::info!("creating scheme"))
|
||
|
}
|
||
|
|
||
|
pub fn add_post(msg: String, handle: String) -> AppResult<()> {
|
||
|
Ok(log::info!("add post {} {}", msg, handle))
|
||
|
}
|
||
|
|
||
|
pub fn get_all_posts() -> AppResult<String> {
|
||
|
log::info!("get all posts");
|
||
|
Ok("[]".to_string())
|
||
|
}
|
||
|
|
||
|
pub fn get_posts_by_handle(handle: String) -> AppResult<String> {
|
||
|
log::info!("get all posts by handle {}", handle);
|
||
|
Ok("[]".to_string())
|
||
|
}
|
||
|
|
||
|
pub fn get_posts_count() -> AppResult<i32> {
|
||
|
log::info!("get posts count");
|
||
|
Ok(0)
|
||
|
}
|