mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00

Co-authored-by: Archer <545436317@qq.com> Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
16 lines
394 B
TypeScript
16 lines
394 B
TypeScript
import { PerConstructPros, Permission } from '../controller';
|
|
import { TeamDefaultPermissionVal } from './constant';
|
|
|
|
export class TeamPermission extends Permission {
|
|
constructor(props?: PerConstructPros) {
|
|
if (!props) {
|
|
props = {
|
|
per: TeamDefaultPermissionVal
|
|
};
|
|
} else if (!props?.per) {
|
|
props.per = TeamDefaultPermissionVal;
|
|
}
|
|
super(props);
|
|
}
|
|
}
|