feat: add status service module to services
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -3,12 +3,9 @@ use axum::{
|
|||||||
http::StatusCode,
|
http::StatusCode,
|
||||||
response::Json,
|
response::Json,
|
||||||
};
|
};
|
||||||
use strum::IntoEnumIterator;
|
|
||||||
|
|
||||||
use crate::modes::server::common::{AppState, ApiResponse, StatusInfoResponse};
|
use crate::modes::server::common::{AppState, ApiResponse};
|
||||||
use crate::common::status::{generate_status_info, StatusInfo};
|
use crate::common::status::StatusInfo;
|
||||||
use crate::meta_plugin::MetaPluginType;
|
|
||||||
use crate::compression_engine::CompressionType;
|
|
||||||
|
|
||||||
#[utoipa::path(
|
#[utoipa::path(
|
||||||
get,
|
get,
|
||||||
|
|||||||
@@ -14,8 +14,7 @@ use prettytable::{Attr, Cell, Row, Table};
|
|||||||
use prettytable::format::consts::{FORMAT_BOX_CHARS, FORMAT_NO_BORDER_LINE_SEPARATOR};
|
use prettytable::format::consts::{FORMAT_BOX_CHARS, FORMAT_NO_BORDER_LINE_SEPARATOR};
|
||||||
|
|
||||||
use crate::meta_plugin::{MetaPluginType, get_meta_plugin};
|
use crate::meta_plugin::{MetaPluginType, get_meta_plugin};
|
||||||
use crate::common::status::{generate_status_info, PathInfo, CompressionInfo, MetaPluginInfo};
|
use crate::common::status::{PathInfo, CompressionInfo, MetaPluginInfo};
|
||||||
use crate::compression_engine::CompressionType;
|
|
||||||
|
|
||||||
fn build_path_table(path_info: &PathInfo) -> Table {
|
fn build_path_table(path_info: &PathInfo) -> Table {
|
||||||
let mut path_table = Table::new();
|
let mut path_table = Table::new();
|
||||||
|
|||||||
@@ -3,4 +3,5 @@ pub mod compression_service;
|
|||||||
pub mod error;
|
pub mod error;
|
||||||
pub mod item_service;
|
pub mod item_service;
|
||||||
pub mod meta_service;
|
pub mod meta_service;
|
||||||
|
pub mod status_service;
|
||||||
pub mod types;
|
pub mod types;
|
||||||
|
|||||||
Reference in New Issue
Block a user