@@ -9,7 +9,7 @@ class UserApi {
9
9
String versionPath = " "
10
10
ApiUtils apiUtils = new ApiUtils ();
11
11
12
- def createUser ( User body , Closure onSuccess , Closure onFailure ) {
12
+ def createUser ( User user , Closure onSuccess , Closure onFailure ) {
13
13
String resourcePath = " /user"
14
14
15
15
// params
@@ -19,14 +19,14 @@ class UserApi {
19
19
def contentType
20
20
21
21
// verify required params are set
22
- if (body == null ) {
23
- throw new RuntimeException (" missing required params body " )
22
+ if (user == null ) {
23
+ throw new RuntimeException (" missing required params user " )
24
24
}
25
25
26
26
27
27
28
28
contentType = ' application/json' ;
29
- bodyParams = body
29
+ bodyParams = user
30
30
31
31
32
32
apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
@@ -35,7 +35,7 @@ class UserApi {
35
35
36
36
}
37
37
38
- def createUsersWithArrayInput ( List<User > body , Closure onSuccess , Closure onFailure ) {
38
+ def createUsersWithArrayInput ( List<User > user , Closure onSuccess , Closure onFailure ) {
39
39
String resourcePath = " /user/createWithArray"
40
40
41
41
// params
@@ -45,14 +45,14 @@ class UserApi {
45
45
def contentType
46
46
47
47
// verify required params are set
48
- if (body == null ) {
49
- throw new RuntimeException (" missing required params body " )
48
+ if (user == null ) {
49
+ throw new RuntimeException (" missing required params user " )
50
50
}
51
51
52
52
53
53
54
54
contentType = ' application/json' ;
55
- bodyParams = body
55
+ bodyParams = user
56
56
57
57
58
58
apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
@@ -61,7 +61,7 @@ class UserApi {
61
61
62
62
}
63
63
64
- def createUsersWithListInput ( List<User > body , Closure onSuccess , Closure onFailure ) {
64
+ def createUsersWithListInput ( List<User > user , Closure onSuccess , Closure onFailure ) {
65
65
String resourcePath = " /user/createWithList"
66
66
67
67
// params
@@ -71,14 +71,14 @@ class UserApi {
71
71
def contentType
72
72
73
73
// verify required params are set
74
- if (body == null ) {
75
- throw new RuntimeException (" missing required params body " )
74
+ if (user == null ) {
75
+ throw new RuntimeException (" missing required params user " )
76
76
}
77
77
78
78
79
79
80
80
contentType = ' application/json' ;
81
- bodyParams = body
81
+ bodyParams = user
82
82
83
83
84
84
apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
@@ -189,7 +189,7 @@ class UserApi {
189
189
190
190
}
191
191
192
- def updateUser ( String username , User body , Closure onSuccess , Closure onFailure ) {
192
+ def updateUser ( String username , User user , Closure onSuccess , Closure onFailure ) {
193
193
String resourcePath = " /user/${ username} "
194
194
195
195
// params
@@ -203,14 +203,14 @@ class UserApi {
203
203
throw new RuntimeException (" missing required params username" )
204
204
}
205
205
// verify required params are set
206
- if (body == null ) {
207
- throw new RuntimeException (" missing required params body " )
206
+ if (user == null ) {
207
+ throw new RuntimeException (" missing required params user " )
208
208
}
209
209
210
210
211
211
212
212
contentType = ' application/json' ;
213
- bodyParams = body
213
+ bodyParams = user
214
214
215
215
216
216
apiUtils. invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams, bodyParams, contentType,
0 commit comments