Function
createGroupInviteCode
(
groupId: string,
inviteType: 'normal' | 'permanent'
)
Source from the content-addressed store, hash-verified
| 205 | * @param groupId 群组id |
| 206 | */ |
| 207 | export async function createGroupInviteCode( |
| 208 | groupId: string, |
| 209 | inviteType: 'normal' | 'permanent' |
| 210 | ): Promise<GroupInvite> { |
| 211 | const { data } = await request.post('/api/group/invite/createGroupInvite', { |
| 212 | groupId, |
| 213 | inviteType, |
| 214 | }); |
| 215 | |
| 216 | return data; |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * 编辑群组邀请链接 |
Tested by
no test coverage detected