feat: added created at field for UserWorkspacePB

This commit is contained in:
Zack Fu Zi Xiang
2024-02-28 13:05:23 +08:00
parent 6f8834c776
commit 5472eff9f7

View File

@ -225,6 +225,9 @@ pub struct UserWorkspacePB {
#[pb(index = 2)]
pub name: String,
#[pb(index = 3)]
pub created_at_timestamp: i64,
}
impl From<UserWorkspace> for UserWorkspacePB {
@ -232,6 +235,7 @@ impl From<UserWorkspace> for UserWorkspacePB {
Self {
workspace_id: value.id,
name: value.name,
created_at_timestamp: value.created_at.timestamp(),
}
}
}