mirror of
https://github.com/fluencelabs/fluid
synced 2025-06-20 16:46:30 +00:00
32 lines
736 B
Rust
32 lines
736 B
Rust
use log;
|
|
|
|
use crate::errors::AppResult;
|
|
|
|
pub fn create_scheme() -> AppResult<()> {
|
|
Ok(log::info!("creating scheme"))
|
|
}
|
|
|
|
pub fn add_post(message: String, username: String) -> AppResult<()> {
|
|
Ok(log::info!("add post {} {}", message, username))
|
|
}
|
|
|
|
pub fn get_all_posts(offset: u32, count: u32) -> AppResult<String> {
|
|
log::info!("get all posts {} {}", offset, count);
|
|
Ok("[]".to_string())
|
|
}
|
|
|
|
pub fn get_posts_by_username(username: String, offset: u32, count: u32) -> AppResult<String> {
|
|
log::info!(
|
|
"get all posts by username {} {} {}",
|
|
username,
|
|
offset,
|
|
count
|
|
);
|
|
Ok("[]".to_string())
|
|
}
|
|
|
|
pub fn get_posts_count() -> AppResult<i32> {
|
|
log::info!("get posts count");
|
|
Ok(0)
|
|
}
|