|
@@ -6,14 +6,25 @@ export enum Relationship {
|
|
|
IRRELEVANT = 'irrelevant',
|
|
IRRELEVANT = 'irrelevant',
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+export enum MemberRole {
|
|
|
|
|
+ ADMIN = 'admin',
|
|
|
|
|
+ STAFF = 'staff',
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export enum MemberStatus {
|
|
|
|
|
+ NORMAL = 'normal',
|
|
|
|
|
+ DISABLED = 'disabled',
|
|
|
|
|
+ UNCONFIRMED = 'unconfirmed',
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
export interface IMember {
|
|
export interface IMember {
|
|
|
- ID: string;
|
|
|
|
|
|
|
+ userID: string;
|
|
|
memberName: string;
|
|
memberName: string;
|
|
|
position: string;
|
|
position: string;
|
|
|
- role: 'admin' | 'staff';
|
|
|
|
|
- status: 'normal' | 'disabled' | 'unconfirmed';
|
|
|
|
|
|
|
+ role: MemberRole;
|
|
|
|
|
+ status: MemberStatus;
|
|
|
cptList: string[];
|
|
cptList: string[];
|
|
|
- createProject: 'yes' | 'no';
|
|
|
|
|
|
|
+ createProject: boolean;
|
|
|
projectView: 'self' | 'all';
|
|
projectView: 'self' | 'all';
|
|
|
editProject: 'self' | 'all';
|
|
editProject: 'self' | 'all';
|
|
|
exportProject: 'disabled' | 'self' | 'all';
|
|
exportProject: 'disabled' | 'self' | 'all';
|
|
@@ -28,11 +39,13 @@ export interface IEnterprise {
|
|
|
licenceNum: number;
|
|
licenceNum: number;
|
|
|
proCptList: IProCptItem[];
|
|
proCptList: IProCptItem[];
|
|
|
usedCptList: string[];
|
|
usedCptList: string[];
|
|
|
- enterpriseName: string;
|
|
|
|
|
|
|
+ // 公司名称
|
|
|
|
|
+ name: string;
|
|
|
logo: string;
|
|
logo: string;
|
|
|
- enterpriseLocation: string[];
|
|
|
|
|
- enterpriseType: string;
|
|
|
|
|
- enterpriseScale: string;
|
|
|
|
|
|
|
+ location: string[];
|
|
|
|
|
+ // 公司类型
|
|
|
|
|
+ type: string;
|
|
|
|
|
+ scale: string;
|
|
|
createTime: number;
|
|
createTime: number;
|
|
|
passwordCheck: 'no' | 'weak' | 'normal' | 'strong' | 'super';
|
|
passwordCheck: 'no' | 'weak' | 'normal' | 'strong' | 'super';
|
|
|
subdomain: string;
|
|
subdomain: string;
|