mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00

* Milvus (#1644) * feat: support regx * 4.8.3 test and fix (#1648) * perf: version tip * feat: sandbox support log * fix: debug component render * fix: share page header * fix: input guide auth * fix: iso viewport * remove file * fix: route url * feat: add debug timout * perf: reference select support trigger * perf: session code * perf: theme * perf: load milvus
24 lines
579 B
TypeScript
24 lines
579 B
TypeScript
import { ErrType } from '../errorCode';
|
|
|
|
/* dataset: 509000 */
|
|
export enum SystemErrEnum {
|
|
communityVersionNumLimit = 'communityVersionNumLimit'
|
|
}
|
|
const systemErr = [
|
|
{
|
|
statusText: SystemErrEnum.communityVersionNumLimit,
|
|
message: '超出开源版数量限制,请升级商业版: https://fastgpt.in'
|
|
}
|
|
];
|
|
export default systemErr.reduce((acc, cur, index) => {
|
|
return {
|
|
...acc,
|
|
[cur.statusText]: {
|
|
code: 509000 + index,
|
|
statusText: cur.statusText,
|
|
message: cur.message,
|
|
data: null
|
|
}
|
|
};
|
|
}, {} as ErrType<`${SystemErrEnum}`>);
|