-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Eval dev merge #5842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sxf-xiongtao
wants to merge
259
commits into
labring:eval-dev
Choose a base branch
from
aipaas:eval-dev-merge
base: eval-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+75,885
−6,337
Open
Eval dev merge #5842
Changes from all commits
Commits
Show all changes
259 commits
Select commit
Hold shift + click to select a range
5be6425
feat: Add teamId and tmbId to evaluation dataset handlers
ctlaltlaltc a79f6e9
feat: Add evaluation dataset synthesis and smart generation functiona…
ctlaltlaltc 4054cf9
feat: Add APIs for managing evaluation dataset tasks and statuses
ctlaltlaltc ab8cb72
feat: Add batch quality assessment API endpoint
ctlaltlaltc bed1c73
feat: Introduce EvalDatasetDataKeyEnum to improve data processing
ctlaltlaltc 7022a6f
feat: Add support for evaluation files and permissions
ctlaltlaltc feb81a3
feat: Add evaluation task, dataset and dimension management features
8469356
[feat] updated some English translations
e65c778
feat: Add evaluation dimension management functionality, optimize sel…
e003d29
[feat]add evaluation plugin: diting
83f7d48
feat: Add evaluation dataset file import and intelligent generation f…
fd91507
feat: implement comprehensive backend evaluation system
chanzhi82020 0a9c207
feat(evaluation): add evaluation result editing and status management…
a893891
feat: refactor evaluation module frontend and API services
lavine77 ccaf394
[feat] add evaluation metric management
SuXiangcheng 3def5e1
[feat]add model timeout and diting project documentation
a247308
feat: Add auditlog and enhance error handling for evaluation dataset
ctlaltlaltc 3d3d560
feat(evaluation): Add basic structure and context for the evaluation …
1348697900a dc9f0cd
feat: optimize i18n configuration and add manual data entry functiona…
lavine77 4087e9b
feat: add icon showcase page
lavine77 3a28137
feat(dataset): Add enterprise database dataset support
1348697900a 68c9180
feat: add eval summary
hellostronger ba0dd2e
feat: add evaluation authentication
chanzhi82020 a5d0377
[update] add evaluator model validation logic
SuXiangcheng 26f0928
[feat] updated some English translations
ea792a7
feat: Add evaluation errorcode handling
ctlaltlaltc cf8f49c
refactor: Update evaluation item request types and cleanup logic
ctlaltlaltc 1b3c642
feat: Add synthesizer functionality for data synthesis
ctlaltlaltc 0ee4e8c
refactor: Update error handling and improve i18n support
ctlaltlaltc 3b2ccfa
feat(dataset): Enhance database knowledge base functionalities and in…
1348697900a 1cd32ec
feat(evaluation): Optimize the functionality and interaction of the e…
1348697900a b68bf18
[add] add detail error message
SuXiangcheng 68f1cd6
feat:add auditlog for eval-task
chanzhi82020 c367e10
feat(evaluation): Optimize evaluation exception handling and database…
1348697900a dcb46fd
feat: add error code for eval task
chanzhi82020 fbb6281
feat: Add team limits and usage tracking for evaluation system
ctlaltlaltc c8642cf
feat: Add evaluation metric limits and fix naming consistency
ctlaltlaltc 5fbc40a
feat: Add license-based evaluation limits and data item counts
ctlaltlaltc 705e79e
[feat]add auditlog and error codes
SuXiangcheng df96849
feat: format code and add bill and add audit log and add eval task de…
hellostronger 72fb310
feat: Add team-level authentication for evaluation file uploads
ctlaltlaltc 953eb80
refactor: Clean up evaluation dataset code and enhance audit logging
ctlaltlaltc ec993c7
feat: Enhance evaluation dataset system with improved model handling
ctlaltlaltc ce9c42e
feat: integrate evaluation dimension features
lavine77 6079244
feat: Add status filtering to evaluation dataset data list API
ctlaltlaltc 24cdc00
refactor: Improve evaluation dataset API and data generation
ctlaltlaltc 2a6db65
[update] Optimize code
SuXiangcheng c0bd60f
feat: add task.dataItem layer API, and optimise the code standards fo…
chanzhi82020 4e48e27
feat: add summary error code and test case
hellostronger 153fd54
refactor: complete data quality status
ctlaltlaltc d2a8be7
feat: Add evaluation dataset data detail and enhance dataset listing
ctlaltlaltc c626cce
feat: refactor expected answer annotation modal
lavine77 f897337
feat(evaluation): Implement complete functionality for evaluation dat…
1348697900a 741eba3
refactor: optimization param validation of eval-task
chanzhi82020 f40c244
feat: add summary error code and test case
hellostronger 4c12ded
refactor: evaluation error handling and validation system
ctlaltlaltc 37d47cd
feat: enhance task creation and management
lavine77 224e75a
feat: add evaluation model configuration options
lavine77 734d172
feat: adjust test run result score display to full score of 100 format
lavine77 0bcabcc
feat(evaluation): Enhance the dataset file import feature
1348697900a a14b6e5
feat: add collection detail API and refactor shared utilities
ctlaltlaltc 24d571e
fix: fix the eval task list and detail api for frontend
chanzhi82020 f5d13c5
feat: enhance evaluation dataset error handling and failed task
ctlaltlaltc d901e8e
feat: enhance task creation modal functionality and optimize task lis…
lavine77 07a8f23
feat(evaluation): enhance error handling and dataset management**
1348697900a e25b9c1
feat: update icon display page
lavine77 021a3e9
[update]update evaluation metric api permission
SuXiangcheng b18a31e
[feat]:new dataset type database in order to compatitable with Text2sql
lfkg a6dab3b
feat(evaluation): Optimize the interface and interaction details of t…
1348697900a 5ab6c2b
feat: optimize task creation flow and UI interactions
lavine77 8ec2054
feat: change summary schema and add score scalling and fix summary bug
hellostronger 5a7d0b4
fix: add list evaluation param for frontend
ChanZany 975b7fd
feat(evaluation): Optimize the interface and interaction details of t…
1348697900a 738360a
[update] load builtin evaluation metrics from config file
SuXiangcheng 0842e44
refactor: rename datasetId to evalDatasetCollectionId for clarity
ctlaltlaltc 4abffcb
refactor: remove evalDatasetSmartGenerate and optimize smart generation
ctlaltlaltc 987fa35
feat: enhance smart generation to support collection creation
ctlaltlaltc 3d55df5
refactor: evaluation dataset import API to support multiple files
ctlaltlaltc 5c0d9f6
refactor: restructure evaluation dataset quality metadata schema
ctlaltlaltc 90d92b6
fix: fix eval item processor logic
ChanZany 38f022b
feat: optimize evaluation dimension management UI and i18n support
lavine77 79e8924
feat(evaluation): Optimize dataset file import and manual addition fe…
1348697900a 17e4f15
feat: updated some English translations
sxf-xiongtao aabc825
feat: enhance evaluation dataset quality result filtering and UI
ctlaltlaltc 55fd3c4
feat: add admin i18n namespace
sxf-xiongtao 8769e78
feat(evaluation/dataset): Optimize evaluation dataset editing and ret…
1348697900a 89cab4c
fix: prevent overriding active quality assessment jobs
ctlaltlaltc a7b49c7
fix: fix the bug due to the datasetId rename by evalDatasetCollectionId
chanzhi82020 bfc47c7
feat: fix chatlog record in targetoutput and score not calculate real
hellostronger b744dd1
feat(chat): Add evaluation dataset selector and optimize annotation a…
1348697900a a07a1c7
[ADD] Pdf parse timeout and concurrency
1363920
feat: data level score
hellostronger d0d561d
fix: enhance evaluation dataset quality job management
ctlaltlaltc 7bef986
update admin translations
sxf-xiongtao c8c1c26
optimize the evalt task resource manager
chanzhi82020 b66e9ec
feat: add detailed task view components with i18n support
lavine77 a22199c
feat: optimize evaluation task creation and dimension management
lavine77 63f220b
feat(file): add auto file size filtering in file selector
1348697900a 68066cf
[ADD] Pdf parse timeout and concurrency
2b4244c
feat: add lightweight evaluation dataset collection list API v2
ctlaltlaltc b6976f3
feat(chat): Optimize the logic of the evaluation dataset selector and…
1348697900a b72af98
feat: remove scalling and fix summary bug and fix taskitem list
hellostronger da301c0
[ADD] PDF parse timeout and concurrency
wwenqi-cn d674576
feat(evaluation/dataset): Optimize dataset list UI and interactions
1348697900a 20b37a5
feat: add eval_item status search and task list add summary info
hellostronger 4bea99f
feat(dataset): Enhance database import and configuration
1348697900a d5b89f2
fix: eval task item should support review after task created
ChanZany c5e1f14
feat: task item list api return evaluators
hellostronger 5960aee
feat: add weight in evaluator
hellostronger c9f1c90
feat: add failed(no-pass) count in stats API return
ChanZany e3ca28a
feat(dataset): Enhance database configuration and refresh functionality
1348697900a 60df6ea
feat: enhance evaluation task detail components and summary logic
lavine77 a5c1ddf
feat(dataset): Add database retrieval testing functionality and inter…
1348697900a 6699fc4
feat: improve CSV evaluation dataset import
ctlaltlaltc 00a819d
update:i18nT and errcode fix,extend: mysql introspect table abilitity
lfkg d6e0634
fix: repaire the compatibility problem for mongo4.x
chanzhi82020 772ce3a
[update]remove Sangfor internal proxy source
SuXiangcheng 5f0b8fd
[update]improve diting metrics templates
SuXiangcheng 1f25502
feat(dataset): Add support for database retrieval model configuration
1348697900a 0c509ba
fix: add database_client i18n ns
sxf-xiongtao adec37a
撤销 "合并分支: fix: add database_client i18n ns ('eval-dev-fix-database_cl…
e5d7ba3
撤销 "合并分支: update:i18nT and errcode fix,extend: mysql introspect table…
6a8c6e4
feat: use bullmq as summary generate async tool
hellostronger ccbfc26
feat: enhance internationalization and UI improvements
lavine77 626ddae
feat: optimize evaluation task creation and dimension management
lavine77 11977df
feat(dataset): Optimize database configuration and synchronization fe…
1348697900a 034253f
update:i18nT and errcode fix,extend: mysql introspect table abilitity
lfkg 9383d29
feat:add session while change summary config
hellostronger 4b88f01
fix(dataset): Fix database configuration form submission logic and op…
1348697900a 9a4da51
feat: optimize evaluation task detail page interaction and data polling
lavine77 1cc79c7
feat(dataset): Optimize database connection form validation and inter…
1348697900a 76de29d
fix:applyChanges detectChanges app's save bug
lfkg fa8c5db
feat: fix update two metric calculate no recalculate summaryScore
hellostronger 120bc87
update the reviewed translation terms
sxf-xiongtao d5ecf01
fix: special deal display abnormal icons
lavine77 e9874cd
feat: optimize evaluation summary card interaction
lavine77 b12780e
feat: fix repush same job error
hellostronger 99cc624
feat(dataset): Optimize database connection detection and change noti…
1348697900a 34cc9f1
feat: add check i18n completeness script
lavine77 b101920
feat: enhance evaluation dataset import with validation and fixes
ctlaltlaltc caac748
fix app save state
lfkg 7f159ea
fix generateSQL bug and training bug
lfkg cd3c030
feat(dataset): improve database connection and empty state handling
1348697900a eb38e45
feat(dataset): Optimize column synchronization logic in database conf…
1348697900a 5cce8e9
fix: generate sql bug
lfkg ef3823b
refactor: refactor task manager by real-time status calculate
chanzhi82020 8468509
feat:summary temperature and point calculate fix
hellostronger adaad83
feat: change score calculate-in-real-time
hellostronger cc940e8
Fix(dataset): Address the issue where deleted tables are still being …
1348697900a 6a16793
feat: add summaryGenerate task need to init summary status
hellostronger 9a48a61
update: Experience Optimization
lfkg bda9735
fix: list evaluationItem args belowThreshold
chanzhi82020 26b4b25
refactor: opt evaluation config vairable name
chanzhi82020 3358624
feat: evalitemlist fix
hellostronger 19131ee
feat: Optimize interaction and performance of evaluation task detail …
lavine77 15d88aa
fix(2025092000079): enhance summary card and score bar interaction
lavine77 938a0aa
feat(i18n): remove unused database connection related translations
1348697900a 484d9c5
fix: optimize evaluation dataset queue and worker configurations
ctlaltlaltc e61fe34
feat: Optimize search input interaction with debounce handling
lavine77 168884b
update some calibration translations
sxf-xiongtao d70a403
feat(dataset): Optimize database retrieval-related functionality and …
1348697900a f91bb91
feat(dataset): remove unused courseUrl from enterprise database config
1348697900a 4145feb
feat(evaluation): optimize error modal UI and model list reference
1348697900a 9a2c39b
feat(evaluation): Optimize dataset selection modal functionality and …
1348697900a 74bcd5f
feat: Optimize evaluation dimension form interaction and validation l…
lavine77 f35739f
feat:add stalled summary status change,remove data while delete task
hellostronger bef990f
update some calibration translations
sxf-xiongtao c5bbcbb
refactor: opt the bullmq setting for eval-related task
chanzhi82020 1b34321
refactor: remove old evaluation tasks and creation pages, unify using…
lavine77 162f12b
fix: Change evaluationLLM field name to evaluation in default model c…
lavine77 919cc7c
Refactor(i18n): Remove unused max length placeholder translations and…
1348697900a 1076b73
update: generate-sql algorithm optimize
lfkg 7ac3273
[add] add text2sql plugin: dative
a0c377e
feat: optimize interaction and validation logic for evaluation task c…
lavine77 463bdbc
feat: remove auto uppercase conversion for table cell text
lavine77 0ec811e
fix: Fix language switching issues
lavine77 d62de03
fix: Fix internationalization display issue for test run feedback
lavine77 09d772d
feat(dataset): Optimize the layout of the dataset details page header…
1348697900a 5763e52
feat: remove unused code fix test code
hellostronger 532ba5e
update dative error info
sxf-xiongtao 6342e79
fix: fix loadding default llm as generate sql model error
lfkg 2f41abb
refactor: opt the bullmq task cleans and errorMessage format for eval…
chanzhi82020 d1fb8c9
fix(dataset): Unify the validation styles of the database connection …
1348697900a b30ae51
fix(dataset): Remove prompt information when no data changes occur
1348697900a 277bfd0
feat: Dynamically display evaluation feature navigation menu based on…
lavine77 0827685
feat: Add app name link and polling for evaluation details
lavine77 3021ce3
fix: optimize permission control and style adjustments for evaluation…
lavine77 a7c8f77
fix: Improve dataset selection logic to differentiate disable reasons
1348697900a 8248c75
refactor: Change score to percentage logic to round to nearest integer
lavine77 e1ce5d9
update: update sql quote list
lfkg 74d1f58
update some calibration translations
sxf-xiongtao 65bc627
feat(dataset): Optimize the interface display logic and prompt inform…
1348697900a 4fafa42
fix: unify evaluation related text translation and optimize component…
lavine77 bb0b329
fix: resolve initialization issue of generateSqlModel in EditForm
1348697900a d4841e3
fix: optimize dataset selection logic and interface display style
1348697900a 3b20d0e
feat(chat): Optimize display logic for quoted content and add databas…
1348697900a 9bb7cac
fix: optimize file import template hints and add example table display
lavine77 59fbd31
feat(evaluation): Add a prompt feature for re-evaluating when data ch…
1348697900a 993a923
[fix] correct incorrect usage of error codes
SuXiangcheng f1efb8f
fix(dataset): Fix the missing dependencies and array structure issues…
1348697900a 9d130a6
fix: fix extra spaces and formatting issues in file import component
lavine77 6efcaa3
fix(chat, dataset): Fix the styling issue of the reference list and o…
1348697900a 0cfa61d
fix(,workflow): Fix the display logic when no knowledge base is selec…
1348697900a 94c1505
bugfix quality assessment batch reset metadata
ctlaltlaltc 26f5679
update: fix applyChanges Bug And Introduce searchLimit Algorithm
lfkg 20a187c
fix: standardize punctuation and spacing in Chinese/English text
lavine77 cc04d2f
Fix: Optimize multilingual support and interface display details
1348697900a 5b26b59
fix(workflow): Fix layout misalignment in multilingual environments
1348697900a 2d8089b
feat(evaluation): Optimize dataset evaluation processing with
ctlaltlaltc 6499aa0
fix: fix multilingual text format and component display issues
lavine77 40c1abe
fix: unify bracket format in admin i18n text and add unit descriptions
lavine77 138f8f5
fix: unify punctuation format and fix bracket and unit display issues…
lavine77 d138b22
refactor:optimize eval task manager by review comments
chanzhi82020 aa22116
fix(dataset): Optimize table display and multilingual adaptation for …
1348697900a 3752f6a
fix: optimize text wrapping style and fix multilingual text display e…
lavine77 ca4ab7b
update admin i18n
sxf-xiongtao 3f0dd47
[update]update built-in dimension loading mechanism
SuXiangcheng bdce5a8
update remaining i18n
sxf-xiongtao dba0881
fix:optimized code format
lfkg 1c27c1c
feat: code format and add multilanguage summary prompt and summary mo…
hellostronger 0c0a2fe
refactor: remove eval task queue based on the KISS Principle
chanzhi82020 513fa2a
fix: Standardize multilingual text format
1348697900a 1472bb3
feat: code format log remove time and function change to object input
hellostronger 11f0d29
feat: change interface to type for summary Declaration
hellostronger 4ad8ca9
Fix: Unify the multilingual display of application type labels
1348697900a 81a4f65
[update] update diting
SuXiangcheng b67c972
update: database dataset support to oceanbase vector-store
lfkg 0c608db
fix: fix function name standard
lfkg 5a47d48
fix: pg index name formated
lfkg 01ce166
feat(i18n): Add English support for the template system
1348697900a 2e59b3b
feat: support multilingual array parsing and update plugin template f…
lavine77 5f3456d
fix: eval target execute result empty
chanzhi82020 afaf8e4
fix: foreign key store error caused by same-called index name
lfkg ebe5975
feat: support multilingual field parsing for system plugin templates
lavine77 53eece6
feat: fix array parsing empty and optimize system plugin input config
lavine77 38f9c55
update app template translations
sxf-xiongtao 8051066
feat(i18n): Optimize template data refresh mechanism to support dynam…
1348697900a f97f75e
feat: improve multilingual support and optimize text descriptions
lavine77 f1e00b2
update index_prefix_title_tips
sxf-xiongtao 657f474
feat: update some translation and fix plugins cache
lavine77 b31bf8d
feat: update apps page title
lavine77 ba83bb0
feat: update some translation text
sxf-xiongtao 9e88410
feat: support raw HTML parsing in Markdown
lavine77 5f761b1
feat: update some translations
lavine77 d514f9f
合并分支: feat: add clear translation and replace datetime input with dat…
95711b9
合并分支: feat: support multi-language dynamic image switching and optimi…
c5a8c1f
合并分支: add english prompts ('develop-1.0.4-add-en-prompt' 到 'develop-1…
d476cff
fix: result limit bug in workflow-nl2sql
lfkg 8f034ee
merge eval-dev-i18n
9b5559d
delete dative and diting
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,4 +37,5 @@ files/helm/fastgpt/charts/*.tgz | |
|
|
||
| tmp/ | ||
| coverage | ||
| document/.source | ||
| document/.source | ||
| AGENTS.md | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,139 @@ | ||
| import { i18nT } from '../../../../web/i18n/utils'; | ||
| import { type ErrType } from '../errorCode'; | ||
|
|
||
| /* database: 509000 */ | ||
| export enum DatabaseErrEnum { | ||
| // 知识库相关 | ||
| datasetParamsError = 'datasetParamsError', | ||
| // 客户端创建和管理错误 | ||
| clientCreateError = 'databaseClientCreateError', | ||
| clientUpdateError = 'databaseClientUpdateError', | ||
| clientDestroyError = 'databaseClientDestroyError', | ||
| clientAlreadyExists = 'databaseClientAlreadyExists', | ||
| clientNotFound = 'databaseClientNotFound', | ||
|
|
||
| // 连接相关错误 | ||
| authError = 'databaseAuthError', | ||
| databaseNameError = 'databaseNameError', | ||
| databasePortError = 'databasePortError', | ||
| hostError = 'databaseHostError', | ||
| checkError = 'databaseCheckError', | ||
| econnRefused = 'connectionRefused', | ||
| connectionFailed = 'databaseConnectionFailed', | ||
| connectionTimeout = 'databaseConnectionTimeout', | ||
| connectionLost = 'databaseConnectionLost', | ||
|
|
||
| // 数据库类型和支持错误 | ||
| notSupportType = 'databaseNotSupportType', | ||
| notImplemented = 'databaseNotImplemented', | ||
|
|
||
| // API 请求和验证错误 | ||
| requestValidationError = 'databaseRequestValidationError', | ||
| invalidTableName = 'databaseInvalidTableName', | ||
| fetchInfoError = 'databaseFetchInfoError', | ||
| dbConfigNotFound = 'databaseConfigNotFound', | ||
| opUnknownDatabaseError = 'opUnknownDatabaseError', | ||
| dativeServiceError = 'dativeServiceError' | ||
| } | ||
|
|
||
| const databaseErr = [ | ||
| // 客户端管理错误 | ||
| { | ||
| statusText: DatabaseErrEnum.clientCreateError, | ||
| message: 'core.database.error.client_create_failed' | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 都用 i18nT |
||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.clientUpdateError, | ||
| message: 'core.database.error.client_update_failed' | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.clientDestroyError, | ||
| message: i18nT('database_client:client_destory_error') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.clientNotFound, | ||
| message: i18nT('database_client:client_not_found') | ||
| }, | ||
|
|
||
| // 连接错误 | ||
| { | ||
| statusText: DatabaseErrEnum.authError, | ||
| message: i18nT('database_client:authentication_failed') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.databaseNameError, | ||
| message: i18nT('database_client:database_not_exist') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.databasePortError, | ||
| message: i18nT('database_client:database_port_error') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.hostError, | ||
| message: i18nT('database_client:host_error') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.econnRefused, | ||
| message: i18nT('database_client:connection_refused') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.checkError, | ||
| message: i18nT('database_client:connection_check_error') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.connectionLost, | ||
| message: i18nT('database_client:connection_lost') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.connectionFailed, | ||
| message: i18nT('database_client:connection_failed') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.connectionTimeout, | ||
| message: i18nT('database_client:connection_timeout') | ||
| }, | ||
|
|
||
| // 类型支持错误 | ||
| { | ||
| statusText: DatabaseErrEnum.notSupportType, | ||
| message: i18nT('database_client:not_support_databaseType') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.notImplemented, | ||
| message: i18nT('database_client:not_implemented_databaseType') | ||
| }, | ||
|
|
||
| // 请求验证错误 | ||
| { | ||
| statusText: DatabaseErrEnum.invalidTableName, | ||
| message: i18nT('database_client:invalid_table_name') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.fetchInfoError, | ||
| message: i18nT('database_client:fetch_info_error') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.dbConfigNotFound, | ||
| message: i18nT('database_client:database_config_not_found') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.opUnknownDatabaseError, | ||
| message: i18nT('database_client:op_unknown_database_error') | ||
| }, | ||
| { | ||
| statusText: DatabaseErrEnum.dativeServiceError, | ||
| message: i18nT('database_client:dative_service_error') | ||
| } | ||
| ]; | ||
|
|
||
| export default databaseErr.reduce((acc, cur, index) => { | ||
| return { | ||
| ...acc, | ||
| [cur.statusText]: { | ||
| code: 509000 + index, | ||
| statusText: cur.statusText, | ||
| message: cur.message, | ||
| data: null | ||
| } | ||
| }; | ||
| }, {} as ErrType<`${DatabaseErrEnum}`>); | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是啥