mirror of
https://github.com/labring/FastGPT.git
synced 2026-02-28 01:02:28 +08:00
4.14.4 features (#6090)
* perf: zod with app log (#6083) * perf: safe decode * perf: zod with app log * fix: text * remove log * rename field * refactor: improve like/dislike interaction (#6080) * refactor: improve like/dislike interaction * button style & merge status * perf * fix * i18n * feedback ui * format * api optimize * openapi * read status --------- Co-authored-by: archer <545436317@qq.com> * perf: remove empty chat * perf: delete resource tip * fix: confirm * feedback filter * fix: ts * perf: linker scroll * perf: feedback ui * fix: plugin file input store * fix: max tokens * update comment * fix: condition value type * fix feedback (#6095) * fix feedback * text * list * fix: versionid --------- Co-authored-by: archer <545436317@qq.com> * fix: chat setting render;export logs filter * add test * perf: log list api * perf: redirect check * perf: log list * create ui * create ui --------- Co-authored-by: heheer <heheer@sealos.io>
This commit is contained in:
2
packages/global/support/user/team/type.d.ts
vendored
2
packages/global/support/user/team/type.d.ts
vendored
@@ -45,7 +45,7 @@ export type TeamMemberSchema = {
|
||||
updateTime?: Date;
|
||||
name: string;
|
||||
role: `${TeamMemberRoleEnum}`;
|
||||
status: `${TeamMemberStatusEnum}`;
|
||||
status: TeamMemberStatusEnum;
|
||||
avatar: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import type { LangEnum } from '../common/i18n/type';
|
||||
import type { LangEnum } from '../../common/i18n/type';
|
||||
import type { TeamPermission } from '../permission/user/controller';
|
||||
import type { UserStatusEnum } from './constant';
|
||||
import type { TeamMemberStatusEnum } from './team/constant';
|
||||
import { TeamMemberStatusEnum } from './team/constant';
|
||||
import type { TeamTmbItemType } from './team/type';
|
||||
import z from 'zod';
|
||||
|
||||
export type UserModelSchema = {
|
||||
_id: string;
|
||||
@@ -35,8 +36,13 @@ export type UserType = {
|
||||
contact?: string;
|
||||
};
|
||||
|
||||
export type SourceMemberType = {
|
||||
name: string;
|
||||
avatar: string;
|
||||
status: `${TeamMemberStatusEnum}`;
|
||||
};
|
||||
export const SourceMemberSchema = z.object({
|
||||
name: z.string().meta({ example: '张三', description: '成员名称' }),
|
||||
avatar: z
|
||||
.string()
|
||||
.meta({ example: 'https://cloud.fastgpt.cn/avatar.png', description: '成员头像' }),
|
||||
status: z
|
||||
.enum(TeamMemberStatusEnum)
|
||||
.meta({ example: TeamMemberStatusEnum.active, description: '成员状态' })
|
||||
});
|
||||
export type SourceMemberType = z.infer<typeof SourceMemberSchema>;
|
||||
Reference in New Issue
Block a user