@@ -142,8 +142,8 @@ pub struct BookmarkResponse {
142142 pub description : Option < String > ,
143143 pub category_id : Option < u64 > ,
144144 pub is_favorite : bool ,
145- pub created_at : DateTime < Utc > ,
146- pub updated_at : DateTime < Utc > ,
145+ pub created_at : String ,
146+ pub updated_at : String ,
147147}
148148
149149impl From < & Bookmark > for BookmarkResponse {
@@ -155,14 +155,14 @@ impl From<&Bookmark> for BookmarkResponse {
155155 description : b. description . clone ( ) ,
156156 category_id : b. category_id ,
157157 is_favorite : b. is_favorite ,
158- created_at : b. created_at ,
159- updated_at : b. updated_at ,
158+ created_at : b. created_at . to_rfc3339 ( ) ,
159+ updated_at : b. updated_at . to_rfc3339 ( ) ,
160160 }
161161 }
162162}
163163
164164/// Query parameters for listing bookmarks
165- #[ derive( Debug , Deserialize , Default , IntoParams ) ]
165+ #[ derive( Debug , Deserialize , Default , Schema ) ]
166166pub struct BookmarkListParams {
167167 pub page : Option < u32 > ,
168168 pub limit : Option < u32 > ,
@@ -173,7 +173,7 @@ pub struct BookmarkListParams {
173173
174174/// Paginated response wrapper
175175#[ derive( Debug , Serialize , Schema ) ]
176- pub struct PaginatedResponse < T > {
176+ pub struct PaginatedResponse < T : rustapi_openapi :: schema :: RustApiSchema > {
177177 pub items : Vec < T > ,
178178 pub total : usize ,
179179 pub page : u32 ,
@@ -215,7 +215,7 @@ pub struct CategoryResponse {
215215 pub id : u64 ,
216216 pub name : String ,
217217 pub color : Option < String > ,
218- pub created_at : DateTime < Utc > ,
218+ pub created_at : String ,
219219}
220220
221221impl From < & Category > for CategoryResponse {
@@ -224,7 +224,7 @@ impl From<&Category> for CategoryResponse {
224224 id : c. id ,
225225 name : c. name . clone ( ) ,
226226 color : c. color . clone ( ) ,
227- created_at : c. created_at ,
227+ created_at : c. created_at . to_rfc3339 ( ) ,
228228 }
229229 }
230230}
0 commit comments