Skip to main content

yggdrasil/models/
friend_link.rs

1//! 友链模型。
2
3use chrono::{DateTime, Utc};
4use serde::{Deserialize, Serialize};
5
6/// 友链:前台 /friends 卡片页与后台 /admin/friends 管理共用的 serde DTO。
7#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
8pub struct FriendLink {
9    pub id: i32,
10    pub name: String,
11    pub url: String,
12    pub avatar_url: Option<String>,
13    pub description: String,
14    pub sort_order: i32,
15    pub is_active: bool,
16    pub created_at: DateTime<Utc>,
17    pub updated_at: DateTime<Utc>,
18}