Skip to main content

pickcat_api_collection/dto/
tag.rs

1//! 分区标签 DTO。
2
3use serde::{Deserialize, Serialize};
4
5/// 分区标签项。
6#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct TagDTO {
8    pub id: String,
9    pub slug: String,
10    pub name: String,
11    pub description: Option<String>,
12}
13
14#[derive(Debug, Clone, Serialize, Deserialize)]
15pub struct TagsDTO {
16    pub items: Vec<TagDTO>,
17}
18
19#[derive(Debug, Clone, Serialize, Deserialize)]
20pub struct TagSidebarLinksDTO {
21    pub source: TagDTO,
22    pub items: Vec<TagDTO>,
23}