@@ -26,20 +26,20 @@ type {{classname}} interface {
26
26
27
27
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{ {#pathParams} }
28
28
@param { {paramName} }{ {#description} } { {{.} }}{ {/description} }{ {/pathParams} }
29
- @return { {#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request
29
+ @return { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { {operationId} }Request
30
30
{ {#isDeprecated} }
31
31
32
32
Deprecated
33
33
{ {/isDeprecated} }
34
34
*/
35
- { {{nickname} }}(ctx context.Context{ {#pathParams} }, { {paramName} } { {{dataType} }}{ {/pathParams} }) { {#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request
35
+ { {{nickname} }}(ctx context.Context{ {#pathParams} }, { {paramName} } { {{dataType} }}{ {/pathParams} }) { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { {operationId} }Request
36
36
37
37
// { {nickname} }Execute executes the request{ {#returnType} }
38
38
// @return { {{.} }}{ {/returnType} }
39
39
{ {#isDeprecated} }
40
40
// Deprecated
41
41
{ {/isDeprecated} }
42
- { {nickname} }Execute(r { {#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request) ({ {#returnType} }{ {^isArray} }{ {^returnTypeIsPrimitive} }*{ {/returnTypeIsPrimitive} }{ {/isArray} }{ {{.} }}, { {/returnType} }*http.Response, error)
42
+ { {nickname} }Execute(r { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { {operationId} }Request) ({ {#returnType} }{ {^isArray} }{ {^returnTypeIsPrimitive} }*{ {/returnTypeIsPrimitive} }{ {/isArray} }{ {{.} }}, { {/returnType} }*http.Response, error)
43
43
{ {/operation} }
44
44
}
45
45
{ {/generateInterfaces} }
@@ -48,7 +48,7 @@ type {{classname}} interface {
48
48
type { {classname} }Service service
49
49
{ {#operation} }
50
50
51
- type { {#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request struct {
51
+ type { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { {operationId} }Request struct {
52
52
ctx context.Context{{#generateInterfaces} }
53
53
ApiService { {classname} }
54
54
{ {/generateInterfaces} }{ {^generateInterfaces} }
@@ -67,14 +67,14 @@ type {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request s
67
67
{ {#isDeprecated} }
68
68
// Deprecated
69
69
{ {/isDeprecated} }
70
- func (r { {#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request) { {vendorExtensions.x-export-param-name} }({ {paramName} } { {{dataType} }}) { {#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request {
70
+ func (r { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { { operationId} }Request) { {vendorExtensions.x-export-param-name} }({ {paramName} } { {{dataType} }}) { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { {operationId} }Request {
71
71
r.{{paramName} } = & { {paramName} }
72
72
return r
73
73
}
74
74
75
75
{ {/isPathParam} }
76
76
{ {/allParams} }
77
- func (r { {#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request) Execute() ({ {#returnType} }{ {^isArray} }{ {^returnTypeIsPrimitive} }*{ {/returnTypeIsPrimitive} }{ {/isArray} }{ {{.} }}, { {/returnType} }*http.Response, error) {
77
+ func (r { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { {operationId} }Request) Execute() ({ {#returnType} }{ {^isArray} }{ {^returnTypeIsPrimitive} }*{ {/returnTypeIsPrimitive} }{ {/isArray} }{ {{.} }}, { {/returnType} }*http.Response, error) {
78
78
return r.ApiService.{{nickname} }Execute(r)
79
79
}
80
80
@@ -87,14 +87,14 @@ func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Reques
87
87
88
88
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{ {#pathParams} }
89
89
@param { {paramName} }{ {#description} } { {{.} }}{ {/description} }{ {/pathParams} }
90
- @return { {#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request
90
+ @return { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { {operationId} }Request
91
91
{ {#isDeprecated} }
92
92
93
93
Deprecated
94
94
{ {/isDeprecated} }
95
95
*/
96
- func (a *{ {{classname} }}Service) { {{nickname} }}(ctx context.Context{ {#pathParams} }, { {paramName} } { {{dataType} }}{ {/pathParams} }) { {#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request {
97
- return {{#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request{
96
+ func (a *{ {{classname} }}Service) { {{nickname} }}(ctx context.Context{ {#pathParams} }, { {paramName} } { {{dataType} }}{ {/pathParams} }) { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { {operationId} }Request {
97
+ return {{#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { {operationId} }Request{
98
98
ApiService: a,
99
99
ctx: ctx,
100
100
{{#pathParams} }
@@ -108,7 +108,7 @@ func (a *{{{classname}}}Service) {{{nickname}}}(ctx context.Context{{#pathParams
108
108
{ {#isDeprecated} }
109
109
// Deprecated
110
110
{ {/isDeprecated} }
111
- func (a *{ {{classname} }}Service) { {nickname} }Execute(r { {#structPrefix} }{ {&classname} }{ {/structPrefix} }Api{ {operationId} }Request) ({ {#returnType} }{ {^isArray} }{ {^returnTypeIsPrimitive} }*{ {/returnTypeIsPrimitive} }{ {/isArray} }{ {{.} }}, { {/returnType} }*http.Response, error) {
111
+ func (a *{ {{classname} }}Service) { {nickname} }Execute(r { {#structPrefix} }{ {&classname} }{ {/structPrefix} }{ {^structPrefix } } Api{ {/structPrefix } } { {operationId} }Request) ({ {#returnType} }{ {^isArray} }{ {^returnTypeIsPrimitive} }*{ {/returnTypeIsPrimitive} }{ {/isArray} }{ {{.} }}, { {/returnType} }*http.Response, error) {
112
112
var (
113
113
localVarHTTPMethod = http.Method{{httpMethod} }
114
114
localVarPostBody interface{ }
0 commit comments