feat(家庭健康): 优化家庭组加入流程,移除自动创建家庭组逻辑

This commit is contained in:
richarjiang
2025-12-04 19:10:05 +08:00
parent a254af92c7
commit f3d4264b53
5 changed files with 193 additions and 62 deletions

View File

@@ -172,14 +172,6 @@ export async function getFamilyGroup(): Promise<FamilyGroup | null> {
}
}
/**
* 创建家庭组
* @param name 家庭组名称
*/
export async function createFamilyGroup(name: string): Promise<FamilyGroup> {
return api.post<FamilyGroup>('/api/health-profiles/family/group', { name });
}
/**
* 生成家庭组邀请码
* @param expiresInHours 过期时间小时默认24小时