Skip to content

Commit d626601

Browse files
feat: common
1 parent c2c1d4e commit d626601

File tree

124 files changed

+462
-11422
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+462
-11422
lines changed

ui/src/api/chat-user/chat-user.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Ref } from 'vue'
22
import { Result } from '@/request/Result'
33
import { get, put } from '@/request/index'
4-
import type { ChatUserGroupItem, ChatUserGroupUserItem, ChatUserResourceParams, putUserGroupUserParams } from '@/api/type/workspaceChatUser'
4+
import type { ChatUserGroupItem, ChatUserGroupUserItem, putUserGroupUserParams } from '@/api/type/workspaceChatUser'
55
import type { pageRequest, PageList } from '@/api/type/common'
66

77
import useStore from '@/stores'
@@ -15,22 +15,22 @@ Object.defineProperty(prefix, 'value', {
1515
/**
1616
* 获取用户组列表
1717
*/
18-
const getUserGroupList: (resource: ChatUserResourceParams, loading?: Ref<boolean>) => Promise<Result<ChatUserGroupItem[]>> = (resource, loading) => {
18+
const getUserGroupList: (resource: any, loading?: Ref<boolean>) => Promise<Result<ChatUserGroupItem[]>> = (resource, loading) => {
1919
return get(`${prefix.value}/${resource.resource_type}/${resource.resource_id}/user_group`, undefined, loading)
2020
}
2121

2222
/**
2323
* 修改用户组列表授权
2424
*/
25-
const editUserGroupList: (resource: ChatUserResourceParams, data: { user_group_id: string, is_auth: boolean }[], loading?: Ref<boolean>) => Promise<Result<any>> = (resource, data, loading) => {
25+
const editUserGroupList: (resource: any, data: { user_group_id: string, is_auth: boolean }[], loading?: Ref<boolean>) => Promise<Result<any>> = (resource, data, loading) => {
2626
return put(`${prefix.value}/${resource.resource_type}/${resource.resource_id}/user_group`, data, undefined, loading)
2727
}
2828

2929
/**
3030
* 获取用户组的用户列表
3131
*/
3232
const getUserGroupUserList: (
33-
resource: ChatUserResourceParams,
33+
resource: any,
3434
user_group_id: string,
3535
page: pageRequest,
3636
username_or_nickname: string,
@@ -47,7 +47,7 @@ const getUserGroupUserList: (
4747
* 更新用户组的用户列表
4848
*/
4949
const putUserGroupUser: (
50-
resource: ChatUserResourceParams,
50+
resource: any,
5151
user_group_id: string,
5252
data: putUserGroupUserParams[],
5353
loading?: Ref<boolean>,

ui/src/api/resource-management/authorization.ts

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)