/** 菜单权限-应该移到指定目录下的，但现在懒的动了 */
export interface IResource {
    ancestorResCode: string;
    code: string;
    createTime: string;
    createUser: null | number;
    deletedTime: null | number;
    id: number;
    isDeleted: number;
    remark: string;
    resourceComponent: string;
    resourceLevel: number;
    resourceMetaIcon: string;
    resourceMetaIsaffix: number;
    resourceMetaIshide: number;
    resourceMetaIskeepalive: number;
    resourceMetaIslframe: number;
    resourceMetaIslink: string;
    resourceMetaTitle: string;
    resourceName: string;
    resourcePath: string;
    resourceRedirect: string;
    resourceSortOrder: number;
    resourceText: string;
    updateTime: string | string;
    updateUser: number | null;
}


export interface IRoleVsResource {
    code: string;
    createTime: string;
    createUser: null | number;
    deletedTime: null | string;
    grantPrivilege: string;
    id: number;
    isDeleted: number;
    remark: string;
    resourceCode: string;
    resourceName: string;
    roleCode: string;
    updateTime: string | null;
    updateUser: null | number;
}

/** 角色-类型 */
export interface IRole {
	code: string;
	createTime: string;
	createUser: number;
	deletedTime: null | string;
	id: number;
	isDeleted: number;
	remark: string;
	resourceInfos: IResource[];
	roleName: string;
	rolePermission: string;
	roleText: string;
	roleVsResourceList: IRoleVsResource[];
	updateTime: string;
	updateUser: number | null;
}
