/* Options: Date: 2026-02-04 10:25:08 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://etc-api.vsmlab.vn //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateOrUpdateTemplateRequest.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export class DocumentElement { public id: number; public templateId: number; // @Required() public elementKey: string; // @Required() public tag: string; public parentId?: number; // @Required() public title: string; public description?: string; // @Required() public dataType: string; public templateType?: string; public orderIndex: number; public isRequired?: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class DocumentElementDto extends DocumentElement { public children: DocumentElementDto[]; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export interface IResponseRequest { code: number; message: string; } export class CreateDocumentTemplateResponse implements IResponseRequest { public insertedId: number; public code: number; public message?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/document-template", "POST") export class CreateOrUpdateTemplateRequest implements IReturn { public id?: number; public documentIds: number[]; public title?: string; public description?: string; public isActive: boolean; public elements?: DocumentElementDto[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CreateOrUpdateTemplateRequest'; } public getMethod() { return 'POST'; } public createResponse() { return new CreateDocumentTemplateResponse(); } }