adjust frontend to new backend
This commit is contained in:
35
templates/services/ObjectParamAPI.mustache
Normal file
35
templates/services/ObjectParamAPI.mustache
Normal file
@@ -0,0 +1,35 @@
|
||||
import type { HttpFile } from '../http/http';
|
||||
import type { Configuration } from '../configuration'
|
||||
import type * as req from "../types/ObjectParamAPI";
|
||||
{{#useRxJS}}
|
||||
import type { Observable } from 'rxjs';
|
||||
{{/useRxJS}}
|
||||
|
||||
{{#models}}
|
||||
{{#model}}
|
||||
import type { {{{ classname }}} } from '{{{ importPath }}}';
|
||||
{{/model}}
|
||||
{{/models}}
|
||||
{{#apiInfo}}
|
||||
{{#apis}}
|
||||
{{#operations}}
|
||||
|
||||
|
||||
export abstract class AbstractObject{{classname}} {
|
||||
{{#operation}}
|
||||
/**
|
||||
{{#notes}}
|
||||
* {{¬es}}
|
||||
{{/notes}}
|
||||
{{#summary}}
|
||||
* {{&summary}}
|
||||
{{/summary}}
|
||||
* @param param the request object
|
||||
*/
|
||||
public abstract {{nickname}}(param: req.{{classname}}{{operationIdCamelCase}}Request, options?: Configuration): {{#useRxJS}}Observable{{/useRxJS}}{{^useRxJS}}Promise{{/useRxJS}}<{{{returnType}}}{{^returnType}}void{{/returnType}}>;
|
||||
|
||||
{{/operation}}
|
||||
}
|
||||
{{/operations}}
|
||||
{{/apis}}
|
||||
{{/apiInfo}}
|
||||
Reference in New Issue
Block a user