cloud-ide-lms-model
Version:
Package for Model management of Cloud IDEsys LMS
32 lines (31 loc) • 847 B
TypeScript
import { controllerResponse } from "../../utilities";
type IMenuErrorLogger = {
[key in keyof MMenu]: string;
};
declare class MMenu {
syme_id?: string;
syme_title?: string;
syme_type?: string;
sort?: 'asc' | 'desc';
constructor(init: MMenu);
Validate?(): Partial<IMenuErrorLogger>;
}
interface menuControllerResponse extends controllerResponse {
data?: menuResponseData[];
}
interface menuResponseData {
_id: string;
syme_title: string;
syme_desc: string;
syme_path: string;
syme_icon: string;
syme_type: string;
syme_link: boolean;
syme_ping: boolean;
syme_ping_count: number;
children: menuResponseData[];
}
export { IMenuErrorLogger, //interface
MMenu, // model
menuControllerResponse, // above coresponding to payload abd this corespons to rresponse
menuResponseData };