/* * @author gs * @date 2020/07/21 13:23 */ import { Injectable } from '@nestjs/common'; import { Model } from 'mongoose'; import { InjectModel } from '@nestjs/mongoose'; import { BaseService } from '../../../base/base.service'; import { UserProfile } from '../model/user.profile'; import { MongoDBCollection } from '../../../constant'; @Injectable() export class UserProfileService extends BaseService { constructor( @InjectModel(MongoDBCollection.UserProfile) protected readonly model: Model ) { super(model); } }