43 lines
1.0 KiB
Handlebars
43 lines
1.0 KiB
Handlebars
import { Injectable } from '@nestjs/common';
|
|
import { BaseDetailManager } from 'src/core/modules/domain/usecase/managers/base-detail.manager';
|
|
import { {{pascalCase name}}Entity } from '../../entities/{{dashCase name}}.entity';
|
|
import { RelationParam } from 'src/core/modules/domain/entities/base-filter.entity';
|
|
|
|
@Injectable()
|
|
export class Detail{{pascalCase name}}Manager extends BaseDetailManager<{{pascalCase name}}Entity> {
|
|
async prepareData(): Promise<void> {
|
|
return;
|
|
}
|
|
|
|
async beforeProcess(): Promise<void> {
|
|
return;
|
|
}
|
|
|
|
async afterProcess(): Promise<void> {
|
|
return;
|
|
}
|
|
|
|
get relations(): RelationParam {
|
|
return {
|
|
// relation only join (for query purpose)
|
|
joinRelations: [],
|
|
|
|
// relation join and select (relasi yang ingin ditampilkan),
|
|
selectRelations: [],
|
|
|
|
// relation yang hanya ingin dihitung (akan return number)
|
|
countRelations: [],
|
|
};
|
|
}
|
|
|
|
get selects(): string[] {
|
|
return [];
|
|
}
|
|
|
|
get setFindProperties(): any {
|
|
return {
|
|
id: this.dataId,
|
|
};
|
|
}
|
|
}
|