mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: merge with dev
This commit is contained in:
parent
b678ac86e8
commit
3430cfdb3a
34 changed files with 3515 additions and 2600 deletions
|
|
@ -48,6 +48,19 @@ export async function unLinkUserToUserGroup(
|
|||
return res
|
||||
}
|
||||
|
||||
export async function updateUserGroup(
|
||||
usergroup_id: number,
|
||||
access_token: string,
|
||||
data: any
|
||||
) {
|
||||
const result: any = await fetch(
|
||||
`${getAPIUrl()}usergroups/${usergroup_id}`,
|
||||
RequestBodyWithAuthHeader('PUT', data, null, access_token)
|
||||
)
|
||||
const res = await getResponseMetadata(result)
|
||||
return res
|
||||
}
|
||||
|
||||
export async function deleteUserGroup(
|
||||
usergroup_id: number,
|
||||
access_token: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue