/**
 * rest api interface
 * 项目标准接口
 *
 * The version of the OpenAPI document: 0.0.1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */ import { Inject , Injectable , Optional } from '@angular/core' ; import { HttpClient , HttpHeaders , HttpParams , HttpResponse , HttpEvent , HttpParameterCodec } from '@angular/common/http' ; import { CustomHttpParameterCodec } from '../encoder' ; import { Observable } from 'rxjs' ; import { BASE_PATH , COLLECTION_FORMATS } from '../variables' ; import { Configuration } from '../configuration' ; @ Injectable ( { providedIn : 'root' } ) export class MockService { protected basePath = 'http://localhost' ; public defaultHeaders = new HttpHeaders ( ) ; public configuration = new Configuration ( ) ; public encoder : HttpParameterCodec ; constructor ( protected httpClient , @ Optional ( ) @ Inject ( BASE_PATH ) basePath , @ Optional ( ) configuration ) { if ( configuration ) { this . configuration = configuration ; } if ( typeof this . configuration . basePath !== 'string' ) { if ( typeof basePath !== 'string' ) { basePath = this . basePath ; } this . configuration . basePath = basePath ; } this . encoder = this . configuration . encoder || new CustomHttpParameterCodec ( ) ; } param observe param reportProgress public mockInitData ( observe ? , reportProgress ? ) ; public mockInitData ( observe ? , reportProgress ? ) ; public mockInitData ( observe ? , reportProgress ? ) ; public mockInitData ( observe = 'body' , reportProgress = false ) { let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'text/html' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < boolean > ( `${ this . configuration . basePath }/mock/init` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } param observe param reportProgress public mockReset ( observe ? , reportProgress ? ) ; public mockReset ( observe ? , reportProgress ? ) ; public mockReset ( observe ? , reportProgress ? ) ; public mockReset ( observe = 'body' , reportProgress = false ) { let headers = this . defaultHeaders ; const httpHeaderAccepts = [ 'text/html' ] ; const httpHeaderAcceptSelected = this . configuration . selectHeaderAccept ( httpHeaderAccepts ) ; if ( httpHeaderAcceptSelected !== undefined ) { headers = headers . set ( 'Accept' , httpHeaderAcceptSelected ) ; } return this . httpClient . get < boolean > ( `${ this . configuration . basePath }/mock/reset` , { withCredentials : this . configuration . withCredentials , headers : headers , observe : observe , reportProgress : reportProgress } ) ; } }