import { Injectable } from '@angular/core' ; import { NzNotificationService } from 'ng-zorro-antd' ; @ Injectable ( ) export class NotifyService { constructor ( private notifySrv ) { } info ( message , title = "信息提示" , options ? ) { this . notifySrv . info ( title , message , options ) ; } success ( message , title = "成功提示" , options ? ) { this . notifySrv . success ( title , message , options ) ; } warn ( message , title = "警告提示" , options ? ) { this . notifySrv . warning ( title , message , options ) ; } error ( message , title = "失败提示" , options ? ) { this . notifySrv . error ( title , message , options ) ; } }