init
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use crate::domain::dto::category::CategoryResponse;
|
||||
use crate::domain::dto::channel::ChannelResponse;
|
||||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use utoipa::ToSchema;
|
||||
@@ -50,3 +52,14 @@ pub struct ServerRolePermissionResponse {
|
||||
pub role_id: Uuid,
|
||||
pub permissions: u64,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, ToSchema)]
|
||||
pub enum ServerExplorerItemResponse {
|
||||
Category(CategoryResponse, Vec<ChannelResponse>),
|
||||
Channel(ChannelResponse),
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, ToSchema)]
|
||||
pub struct ServerTreeResponse {
|
||||
pub items: Vec<ServerExplorerItemResponse>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user