chore: refactored lib.rs to move commands into separate folder
This commit is contained in:
9
src-tauri/src/commands/interaction.rs
Normal file
9
src-tauri/src/commands/interaction.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
use crate::{
|
||||
models::interaction::SendInteractionDto,
|
||||
services::interaction::send_interaction,
|
||||
};
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn send_interaction_cmd(dto: SendInteractionDto) -> Result<(), String> {
|
||||
send_interaction(dto).await
|
||||
}
|
||||
Reference in New Issue
Block a user