( inviteCode: string )
| 80 | * 获取缓存的邀请码信息 |
| 81 | */ |
| 82 | export async function getCachedGroupInviteInfo( |
| 83 | inviteCode: string |
| 84 | ): Promise<GroupInvite | null> { |
| 85 | const data = await queryClient.fetchQuery( |
| 86 | [CacheKey.groupInvite, inviteCode], |
| 87 | () => findGroupInviteByCode(inviteCode) |
| 88 | ); |
| 89 | |
| 90 | return data; |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * 获取缓存的用户信息 |
no test coverage detected