Add route /family/list
This commit is contained in:
@ -94,3 +94,15 @@ pub struct NewMembership {
|
||||
pub time_create: i64,
|
||||
pub is_admin: bool,
|
||||
}
|
||||
|
||||
#[derive(Queryable, Debug, serde::Serialize)]
|
||||
pub struct FamilyMembership {
|
||||
user_id: i32,
|
||||
family_id: i32,
|
||||
name: String,
|
||||
time_create: i64,
|
||||
is_admin: bool,
|
||||
invitation_code: String,
|
||||
count_members: i64,
|
||||
count_admins: i64,
|
||||
}
|
||||
|
Reference in New Issue
Block a user