chore: team, orgs, search and so on (#3807)
* feat: clb search support username, memberName, contacts * feat: popup org names * feat: update team member table * feat: restore the member * feat: search user in team member table * feat: bind contact * feat: export members * feat: org tab could delete member * feat: org table search * feat: team notification account bind * feat: permission tab search * fix: wecom sso * chore(init): copy notificationAccount to user.contact * chore: adjust * fix: ts error * fix: useConfirm iconColor customization * pref: fe * fix: style * fix: fix team member manage * pref: enlarge team member pagesize * pref: initv4822 * fix: pageSize * pref: initscritpt
This commit is contained in:
@@ -7,7 +7,8 @@ import { UserType } from '@fastgpt/global/support/user/type.d';
|
||||
import type {
|
||||
FastLoginProps,
|
||||
OauthLoginProps,
|
||||
PostLoginProps
|
||||
PostLoginProps,
|
||||
SearchResult
|
||||
} from '@fastgpt/global/support/user/api.d';
|
||||
import {
|
||||
AccountRegisterBody,
|
||||
@@ -70,6 +71,10 @@ export const updatePasswordByOld = ({ oldPsw, newPsw }: { oldPsw: string; newPsw
|
||||
export const updateNotificationAccount = (data: { account: string; verifyCode: string }) =>
|
||||
PUT('/proApi/support/user/team/updateNotificationAccount', data);
|
||||
|
||||
export const updateContact = (data: { contact: string; verifyCode: string }) => {
|
||||
return PUT('/proApi/support/user/account/updateContact', data);
|
||||
};
|
||||
|
||||
export const postLogin = ({ password, ...props }: PostLoginProps) =>
|
||||
POST<ResLogin>('/support/user/account/loginByPassword', {
|
||||
...props,
|
||||
@@ -92,3 +97,14 @@ export const getCaptchaPic = (username: string) =>
|
||||
}>('/proApi/support/user/account/captcha/getImgCaptcha', { username });
|
||||
|
||||
export const postSyncMembers = () => POST('/proApi/support/user/team/org/sync');
|
||||
|
||||
export const GetSearchUserGroupOrg = (
|
||||
searchKey: string,
|
||||
options?: {
|
||||
members?: boolean;
|
||||
orgs?: boolean;
|
||||
groups?: boolean;
|
||||
}
|
||||
) => GET<SearchResult>('/proApi/support/user/search', { searchKey, ...options });
|
||||
|
||||
export const ExportMembers = () => GET<{ csv: string }>('/proApi/support/user/team/member/export');
|
||||
|
||||
Reference in New Issue
Block a user