feat(api) add refresh.rs

This commit is contained in:
lumither committed 2024-05-03 02:17:11 +08:00
1 parent dce7a28b89
commit 2d42e933c8
10 files changed
+127 -9

No files matched your search

+6 -4
View File
@@ -3,10 +3,12 @@ use serde::{Deserialize, Serialize};
use sqlx::FromRow;
use uuid::Uuid;
pub mod post;
#[derive(Debug, Serialize, Deserialize, FromRow)]
pub struct Post {
post_id: Uuid,
title: String,
content: String,
last_update: NaiveDateTime,
pub post_id: Uuid,
pub title: String,
pub content: String,
pub last_update: NaiveDateTime,
}