-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: dataset controllers feat: dataset schema fix: add missing type to dataset schema Signed-off-by: FinleyGe <[email protected]> * feat: dataset list api Signed-off-by: FinleyGe <[email protected]> * chore: all dataset api Signed-off-by: FinleyGe <[email protected]> * feat: new auth dataset method Signed-off-by: FinleyGe <[email protected]> * chore: use new auth method in detail, paths. feat: add new param defaultPermission to create api Signed-off-by: FinleyGe <[email protected]> * chore: app auth params Signed-off-by: FinleyGe <[email protected]> * chore: use new auth method Signed-off-by: FinleyGe <[email protected]> * feat: new auth collection and file method Signed-off-by: FinleyGe <[email protected]> * chore: dataset collection api new auth Signed-off-by: FinleyGe <[email protected]> * chore: create/*.ts auth Signed-off-by: FinleyGe <[email protected]> * chore: dataset auth Signed-off-by: FinleyGe <[email protected]> * fix: import paths Signed-off-by: FinleyGe <[email protected]> * feat: dataset collaborator Signed-off-by: FinleyGe <[email protected]> * chore: dataset frontend feat: dataset list frontend feat: dataset detail Signed-off-by: FinleyGe <[email protected]> * feat: finish the dataset permission fix: ts errors Signed-off-by: FinleyGe <[email protected]> * fix: empty response of collection api Signed-off-by: FinleyGe <[email protected]> * chore: adjust the code * chore: adjust the code * chore: i18n * fix: ts error * fix: fe CollectionCard permission --------- Signed-off-by: FinleyGe <[email protected]>
- Loading branch information
Showing
71 changed files
with
12,343 additions
and
9,925 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,11 @@ | ||
import { UpdateClbPermissionProps } from '../../support/permission/collaborator'; | ||
import { PermissionValueType } from '../../support/permission/type'; | ||
|
||
export type UpdateDatasetCollaboratorBody = UpdateClbPermissionProps & { | ||
datasetId: string; | ||
}; | ||
|
||
export type DatasetCollaboratorDeleteParams = { | ||
datasetId: string; | ||
tmbId: string; | ||
}; |
This file contains 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 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,20 @@ | ||
import { NullPermission, PermissionKeyEnum, PermissionList } from '../constant'; | ||
|
||
export enum DatasetPermissionKeyEnum {} | ||
|
||
export const DatasetPermissionList = { | ||
[PermissionKeyEnum.read]: { | ||
...PermissionList[PermissionKeyEnum.read], | ||
description: '可查看知识库内容' | ||
}, | ||
[PermissionKeyEnum.write]: { | ||
...PermissionList[PermissionKeyEnum.write], | ||
description: '可增加和变更知识库内容' | ||
}, | ||
[PermissionKeyEnum.manage]: { | ||
...PermissionList[PermissionKeyEnum.manage], | ||
description: '可管理整个知识库数据和信息' | ||
} | ||
}; | ||
|
||
export const DatasetDefaultPermission = NullPermission; |
This file contains 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,14 @@ | ||
import { NullPermission } from '../constant'; | ||
import { PerConstructPros, Permission } from '../controller'; | ||
export class DatasetPermission extends Permission { | ||
constructor(props?: PerConstructPros) { | ||
if (!props) { | ||
props = { | ||
per: NullPermission | ||
}; | ||
} else if (!props?.per) { | ||
props.per = NullPermission; | ||
} | ||
super(props); | ||
} | ||
} |
This file contains 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 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 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 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
Oops, something went wrong.