This commit is contained in:
2026-03-02 01:36:28 +01:00
parent e982ea372f
commit 74f4effd49
17 changed files with 909 additions and 166 deletions

View File

@@ -2,9 +2,10 @@ use crate::models::channel;
use crate::models::channel::ChannelType;
use sea_orm::Set;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
use uuid::Uuid;
#[derive(Debug, Serialize)]
#[derive(Debug, Serialize, ToSchema)]
pub struct ChannelResponse {
pub id: Uuid,
pub server_id: Option<Uuid>,
@@ -27,7 +28,7 @@ impl From<channel::Model> for ChannelResponse {
}
}
#[derive(Debug, Deserialize)]
#[derive(Debug, Deserialize, ToSchema)]
pub struct CreateChannelRequest {
pub server_id: Option<Uuid>,
pub category_id: Option<Uuid>,