Skip to content

Commit 7bfbc10

Browse files
committed
feat: Add avatar field to RepositoryListAuthor struct
1 parent d5b2c36 commit 7bfbc10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/jz-module/src/repo/list.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub struct RepositoryListResult {
2626
#[derive(Deserialize,Serialize)]
2727
pub struct RepositoryListAuthor {
2828
pub name: Option<String>,
29+
#[serde(rename = "image")]
2930
pub avatar: Option<String>,
3031
pub address: Option<String>
3132
}
@@ -35,7 +36,7 @@ pub struct RepositoryModelInfo {
3536
pub name: String,
3637
pub version: Option<String>,
3738
pub description: Option<String>,
38-
#[serde(rename = "displayImage")]
39+
#[serde(rename = "image")]
3940
pub display_image: Option<String>,
4041
pub size: Option<String>,
4142
pub category: Option<String>,

0 commit comments

Comments
 (0)