Commit 3c26092b authored by xuwencheng's avatar xuwencheng

upgarade

parent daa2768a
......@@ -85,4 +85,14 @@ pub struct AccountInfo {
pub device_id: Option<String>,
pub name: Option<String>,
pub username: String,
pub roles: Vec<Role>,
}
#[derive(Debug, Clone, Deserialize, Serialize, Default)]
#[serde(rename_all = "camelCase")]
pub struct Role {
#[serde(rename = "id", alias = "roleId")]
pub id: i64,
#[serde(rename = "name", alias = "roleName")]
pub name: String,
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment