refactor: add typescript support to project

This commit is contained in:
HD
2022-06-20 17:49:36 +08:00
19 changed files with 382 additions and 156 deletions
+4 -2
View File
@@ -72,12 +72,14 @@ export const channelApi = createApi({
}
}),
createInviteLink: builder.query({
query: (gid) => ({
query: (gid = "") => ({
headers: {
"content-type": "text/plain",
accept: "text/plain"
},
url: `/group/${gid}/create_invite_link`,
url: gid
? `/group/create_reg_magic_link?expired_in=3600&max_times=1&gid=${gid}`
: `/group/create_reg_magic_link?expired_in=3600&max_times=1`,
responseHandler: (response) => response.text()
}),
transformResponse: (link) => {