support.service.ts 573 B

1234567891011121314151617181920
  1. import { Provide } from '@midwayjs/core';
  2. import { InjectEntityModel } from '@midwayjs/typeorm';
  3. import { Repository } from 'typeorm';
  4. import { Support } from '../../entity/platform/support.entity';
  5. import { BaseServiceV2 } from '../../frame/BaseServiceV2';
  6. @Provide()
  7. export class SupportService extends BaseServiceV2 {
  8. @InjectEntityModel(Support)
  9. model: Repository<Support>;
  10. getQueryColumnsOpera() {
  11. const obj = {
  12. name: this.Opera.Like,
  13. industry: this.Opera.In,
  14. field: this.Opera.In,
  15. area: this.Opera.Json,
  16. };
  17. return obj;
  18. }
  19. }