import { Provide } from "@midwayjs/core";
import { InjectEntityModel } from "@midwayjs/typeorm";
import { Repository } from "typeorm";
import { Message } from "../../entity/system/message.entity";
import { BaseServiceV2 } from "../../frame/BaseServiceV2";

@Provide()
export class MessageService extends BaseServiceV2 {
  @InjectEntityModel(Message)
  model: Repository<Message>;
  getQueryColumnsOpera() {
    return { 'to.user': this.Opera.JsonArrayObject };
  }
}
