/** * @author songxiwen * @date 2020/09/16 14:21 */ import { Injectable } from '@nestjs/common'; import { Model } from 'mongoose'; import { InjectModel } from '@nestjs/mongoose'; import { AdminAPIAuth } from '../model/admin.api.auth'; import { BaseService } from '../../../base/base.service'; import { MongoDBCollection } from '../../../constant'; @Injectable() export class AdminAPIAuthService extends BaseService { constructor( @InjectModel(MongoDBCollection.AdminAPIAuth) protected readonly model: Model ) { super(model); } }