refactor: import profile

This commit is contained in:
GyDi
2021-12-14 22:33:42 +08:00
parent b5bb39ef3d
commit eb3daf7b3e
4 changed files with 85 additions and 70 deletions

View File

@@ -39,3 +39,12 @@ pub struct ProfileExtra {
pub total: u64,
pub expire: u64,
}
#[derive(Default, Debug, Clone, Deserialize, Serialize)]
/// the result from url
pub struct ProfileResponse {
pub name: String,
pub file: String,
pub data: String,
pub extra: ProfileExtra,
}