import { Provide } from '@midwayjs/core';
import { InjectEntityModel } from '@midwayjs/typeorm';
import { Repository } from 'typeorm';
import { Incubator } from '../../entity/users/incubator.entity';
import { BaseServiceV2 } from '../../frame/BaseServiceV2';
@Provide()
export class IncubatorService extends BaseServiceV2 {
  @InjectEntityModel(Incubator)
  model: Repository<Incubator>;
  getQueryColumnsOpera() {
    const obj = {
      name: this.Opera.Like,
      industry: this.Opera.In,
      tags: this.Opera.Json,
      area: this.Opera.Json,
    };
    return obj;
  }
}
