enumValues) {
19 | this.description = description;
20 | this.defaultValue = defaultValue;
21 | this.enumValues = enumValues;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/StringUtil.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client;
15 |
16 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-01T20:54:45.948+08:00[Asia/Shanghai]")
17 | public class StringUtil {
18 | /**
19 | * Check if the given array contains the given value (with case-insensitive comparison).
20 | *
21 | * @param array The array
22 | * @param value The value to search
23 | * @return true if the array contains the value
24 | */
25 | public static boolean containsIgnoreCase(String[] array, String value) {
26 | for (String str : array) {
27 | if (value == null && str == null) {
28 | return true;
29 | }
30 | if (value != null && value.equalsIgnoreCase(str)) {
31 | return true;
32 | }
33 | }
34 | return false;
35 | }
36 |
37 | /**
38 | * Join an array of strings with the given separator.
39 | *
40 | * Note: This might be replaced by utility method from commons-lang or guava someday
41 | * if one of those libraries is added as dependency.
42 | *
43 | *
44 | * @param array The array of strings
45 | * @param separator The separator
46 | * @return the resulting string
47 | */
48 | public static String join(String[] array, String separator) {
49 | int len = array.length;
50 | if (len == 0) {
51 | return "";
52 | }
53 |
54 | StringBuilder out = new StringBuilder();
55 | out.append(array[0]);
56 | for (int i = 1; i < len; i++) {
57 | out.append(separator).append(array[i]);
58 | }
59 | return out.toString();
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/api/DefaultApi.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.api;
15 |
16 | import org.openapitools.client.ApiCallback;
17 | import org.openapitools.client.ApiClient;
18 | import org.openapitools.client.ApiException;
19 | import org.openapitools.client.ApiResponse;
20 | import org.openapitools.client.Configuration;
21 | import org.openapitools.client.Pair;
22 | import org.openapitools.client.ProgressRequestBody;
23 | import org.openapitools.client.ProgressResponseBody;
24 |
25 | import com.google.gson.reflect.TypeToken;
26 |
27 | import java.io.IOException;
28 |
29 |
30 | import org.openapitools.client.model.InlineObject;
31 | import org.openapitools.client.model.InlineObject1;
32 | import org.openapitools.client.model.InlineObject2;
33 | import org.openapitools.client.model.InlineResponse200;
34 | import org.openapitools.client.model.InlineResponse2001;
35 |
36 | import java.lang.reflect.Type;
37 | import java.util.ArrayList;
38 | import java.util.HashMap;
39 | import java.util.List;
40 | import java.util.Map;
41 |
42 | public class DefaultApi {
43 | private ApiClient localVarApiClient;
44 |
45 | public DefaultApi() {
46 | this(Configuration.getDefaultApiClient());
47 | }
48 |
49 | public DefaultApi(ApiClient apiClient) {
50 | this.localVarApiClient = apiClient;
51 | }
52 |
53 | public ApiClient getApiClient() {
54 | return localVarApiClient;
55 | }
56 |
57 | public void setApiClient(ApiClient apiClient) {
58 | this.localVarApiClient = apiClient;
59 | }
60 |
61 | /**
62 | * Build call for isPhoneRegPost
63 | * @param inlineObject (optional)
64 | * @param _callback Callback for upload/download progress
65 | * @return Call to execute
66 | * @throws ApiException If fail to serialize the request body object
67 | * @http.response.details
68 |
69 | Status Code | Description | Response Headers |
70 | 200 | 成功 | - |
71 |
72 | */
73 | public okhttp3.Call isPhoneRegPostCall(InlineObject inlineObject, final ApiCallback _callback) throws ApiException {
74 | Object localVarPostBody = inlineObject;
75 |
76 | // create path and map variables
77 | String localVarPath = "/IsPhoneReg";
78 |
79 | List localVarQueryParams = new ArrayList();
80 | List localVarCollectionQueryParams = new ArrayList();
81 | Map localVarHeaderParams = new HashMap();
82 | Map localVarCookieParams = new HashMap();
83 | Map localVarFormParams = new HashMap();
84 | final String[] localVarAccepts = {
85 | "*/*"
86 | };
87 | final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
88 | if (localVarAccept != null) {
89 | localVarHeaderParams.put("Accept", localVarAccept);
90 | }
91 |
92 | final String[] localVarContentTypes = {
93 | "application/json"
94 | };
95 | final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
96 | localVarHeaderParams.put("Content-Type", localVarContentType);
97 |
98 | String[] localVarAuthNames = new String[] { };
99 | return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
100 | }
101 |
102 | @SuppressWarnings("rawtypes")
103 | private okhttp3.Call isPhoneRegPostValidateBeforeCall(InlineObject inlineObject, final ApiCallback _callback) throws ApiException {
104 |
105 |
106 | okhttp3.Call localVarCall = isPhoneRegPostCall(inlineObject, _callback);
107 | return localVarCall;
108 |
109 | }
110 |
111 | /**
112 | * 检查手机号是否注册
113 | * 检查手机号是否注册,返回“true”和“false”字符串
114 | * @param inlineObject (optional)
115 | * @return InlineResponse200
116 | * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
117 | * @http.response.details
118 |
119 | Status Code | Description | Response Headers |
120 | 200 | 成功 | - |
121 |
122 | */
123 | public InlineResponse200 isPhoneRegPost(InlineObject inlineObject) throws ApiException {
124 | ApiResponse localVarResp = isPhoneRegPostWithHttpInfo(inlineObject);
125 | return localVarResp.getData();
126 | }
127 |
128 | /**
129 | * 检查手机号是否注册
130 | * 检查手机号是否注册,返回“true”和“false”字符串
131 | * @param inlineObject (optional)
132 | * @return ApiResponse<InlineResponse200>
133 | * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
134 | * @http.response.details
135 |
136 | Status Code | Description | Response Headers |
137 | 200 | 成功 | - |
138 |
139 | */
140 | public ApiResponse isPhoneRegPostWithHttpInfo(InlineObject inlineObject) throws ApiException {
141 | okhttp3.Call localVarCall = isPhoneRegPostValidateBeforeCall(inlineObject, null);
142 | Type localVarReturnType = new TypeToken(){}.getType();
143 | return localVarApiClient.execute(localVarCall, localVarReturnType);
144 | }
145 |
146 | /**
147 | * 检查手机号是否注册 (asynchronously)
148 | * 检查手机号是否注册,返回“true”和“false”字符串
149 | * @param inlineObject (optional)
150 | * @param _callback The callback to be executed when the API call finishes
151 | * @return The request call
152 | * @throws ApiException If fail to process the API call, e.g. serializing the request body object
153 | * @http.response.details
154 |
155 | Status Code | Description | Response Headers |
156 | 200 | 成功 | - |
157 |
158 | */
159 | public okhttp3.Call isPhoneRegPostAsync(InlineObject inlineObject, final ApiCallback _callback) throws ApiException {
160 |
161 | okhttp3.Call localVarCall = isPhoneRegPostValidateBeforeCall(inlineObject, _callback);
162 | Type localVarReturnType = new TypeToken(){}.getType();
163 | localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
164 | return localVarCall;
165 | }
166 | /**
167 | * Build call for juguguLoginCodeandReturnInfoPost
168 | * @param inlineObject2 (optional)
169 | * @param _callback Callback for upload/download progress
170 | * @return Call to execute
171 | * @throws ApiException If fail to serialize the request body object
172 | * @http.response.details
173 |
174 | Status Code | Description | Response Headers |
175 | 200 | 成功 | - |
176 |
177 | */
178 | public okhttp3.Call juguguLoginCodeandReturnInfoPostCall(InlineObject2 inlineObject2, final ApiCallback _callback) throws ApiException {
179 | Object localVarPostBody = inlineObject2;
180 |
181 | // create path and map variables
182 | String localVarPath = "/Jugugu_LoginCodeandReturnInfo";
183 |
184 | List localVarQueryParams = new ArrayList();
185 | List localVarCollectionQueryParams = new ArrayList();
186 | Map localVarHeaderParams = new HashMap();
187 | Map localVarCookieParams = new HashMap();
188 | Map localVarFormParams = new HashMap();
189 | final String[] localVarAccepts = {
190 | "application/json"
191 | };
192 | final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
193 | if (localVarAccept != null) {
194 | localVarHeaderParams.put("Accept", localVarAccept);
195 | }
196 |
197 | final String[] localVarContentTypes = {
198 | "application/json"
199 | };
200 | final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
201 | localVarHeaderParams.put("Content-Type", localVarContentType);
202 |
203 | String[] localVarAuthNames = new String[] { };
204 | return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
205 | }
206 |
207 | @SuppressWarnings("rawtypes")
208 | private okhttp3.Call juguguLoginCodeandReturnInfoPostValidateBeforeCall(InlineObject2 inlineObject2, final ApiCallback _callback) throws ApiException {
209 |
210 |
211 | okhttp3.Call localVarCall = juguguLoginCodeandReturnInfoPostCall(inlineObject2, _callback);
212 | return localVarCall;
213 |
214 | }
215 |
216 | /**
217 | * ①获取验证码图片
218 | * 获取用于防御机器人的验证码图片,phone的传参必须为空字符串
219 | * @param inlineObject2 (optional)
220 | * @return InlineResponse2001
221 | * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
222 | * @http.response.details
223 |
224 | Status Code | Description | Response Headers |
225 | 200 | 成功 | - |
226 |
227 | */
228 | public InlineResponse2001 juguguLoginCodeandReturnInfoPost(InlineObject2 inlineObject2) throws ApiException {
229 | ApiResponse localVarResp = juguguLoginCodeandReturnInfoPostWithHttpInfo(inlineObject2);
230 | return localVarResp.getData();
231 | }
232 |
233 | /**
234 | * ①获取验证码图片
235 | * 获取用于防御机器人的验证码图片,phone的传参必须为空字符串
236 | * @param inlineObject2 (optional)
237 | * @return ApiResponse<InlineResponse2001>
238 | * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
239 | * @http.response.details
240 |
241 | Status Code | Description | Response Headers |
242 | 200 | 成功 | - |
243 |
244 | */
245 | public ApiResponse juguguLoginCodeandReturnInfoPostWithHttpInfo(InlineObject2 inlineObject2) throws ApiException {
246 | okhttp3.Call localVarCall = juguguLoginCodeandReturnInfoPostValidateBeforeCall(inlineObject2, null);
247 | Type localVarReturnType = new TypeToken(){}.getType();
248 | return localVarApiClient.execute(localVarCall, localVarReturnType);
249 | }
250 |
251 | /**
252 | * ①获取验证码图片 (asynchronously)
253 | * 获取用于防御机器人的验证码图片,phone的传参必须为空字符串
254 | * @param inlineObject2 (optional)
255 | * @param _callback The callback to be executed when the API call finishes
256 | * @return The request call
257 | * @throws ApiException If fail to process the API call, e.g. serializing the request body object
258 | * @http.response.details
259 |
260 | Status Code | Description | Response Headers |
261 | 200 | 成功 | - |
262 |
263 | */
264 | public okhttp3.Call juguguLoginCodeandReturnInfoPostAsync(InlineObject2 inlineObject2, final ApiCallback _callback) throws ApiException {
265 |
266 | okhttp3.Call localVarCall = juguguLoginCodeandReturnInfoPostValidateBeforeCall(inlineObject2, _callback);
267 | Type localVarReturnType = new TypeToken(){}.getType();
268 | localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
269 | return localVarCall;
270 | }
271 | /**
272 | * Build call for jugugugRegAndVerifyandReturnInfoPost
273 | * @param inlineObject1 (optional)
274 | * @param _callback Callback for upload/download progress
275 | * @return Call to execute
276 | * @throws ApiException If fail to serialize the request body object
277 | * @http.response.details
278 |
279 | Status Code | Description | Response Headers |
280 | 200 | 成功 | - |
281 |
282 | */
283 | public okhttp3.Call jugugugRegAndVerifyandReturnInfoPostCall(InlineObject1 inlineObject1, final ApiCallback _callback) throws ApiException {
284 | Object localVarPostBody = inlineObject1;
285 |
286 | // create path and map variables
287 | String localVarPath = "/Jugugug_RegAndVerifyandReturnInfo";
288 |
289 | List localVarQueryParams = new ArrayList();
290 | List localVarCollectionQueryParams = new ArrayList();
291 | Map localVarHeaderParams = new HashMap();
292 | Map localVarCookieParams = new HashMap();
293 | Map localVarFormParams = new HashMap();
294 | final String[] localVarAccepts = {
295 | "application/json"
296 | };
297 | final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
298 | if (localVarAccept != null) {
299 | localVarHeaderParams.put("Accept", localVarAccept);
300 | }
301 |
302 | final String[] localVarContentTypes = {
303 | "application/json"
304 | };
305 | final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
306 | localVarHeaderParams.put("Content-Type", localVarContentType);
307 |
308 | String[] localVarAuthNames = new String[] { };
309 | return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
310 | }
311 |
312 | @SuppressWarnings("rawtypes")
313 | private okhttp3.Call jugugugRegAndVerifyandReturnInfoPostValidateBeforeCall(InlineObject1 inlineObject1, final ApiCallback _callback) throws ApiException {
314 |
315 |
316 | okhttp3.Call localVarCall = jugugugRegAndVerifyandReturnInfoPostCall(inlineObject1, _callback);
317 | return localVarCall;
318 |
319 | }
320 |
321 | /**
322 | * ③注册Jugugu
323 | * 注册jugugu,注意三点 1.phone的传参必须为11位的国内手机号。 2.robotcodeid和robotcode是通过【①】获得 3.code短信验证码通过【②】 4.paymentpassword区块链短密钥,该密钥为用户进行链上交互使用,密钥设置长度>9位,且包含0-1 A-B a-b 已经特殊字符[~!@#$%^&*?_+;',./\\|·!¥(){}:“《》?、,。;’”\"《》…-]+
324 | * @param inlineObject1 (optional)
325 | * @return InlineResponse2001
326 | * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
327 | * @http.response.details
328 |
329 | Status Code | Description | Response Headers |
330 | 200 | 成功 | - |
331 |
332 | */
333 | public InlineResponse2001 jugugugRegAndVerifyandReturnInfoPost(InlineObject1 inlineObject1) throws ApiException {
334 | ApiResponse localVarResp = jugugugRegAndVerifyandReturnInfoPostWithHttpInfo(inlineObject1);
335 | return localVarResp.getData();
336 | }
337 |
338 | /**
339 | * ③注册Jugugu
340 | * 注册jugugu,注意三点 1.phone的传参必须为11位的国内手机号。 2.robotcodeid和robotcode是通过【①】获得 3.code短信验证码通过【②】 4.paymentpassword区块链短密钥,该密钥为用户进行链上交互使用,密钥设置长度>9位,且包含0-1 A-B a-b 已经特殊字符[~!@#$%^&*?_+;',./\\|·!¥(){}:“《》?、,。;’”\"《》…-]+
341 | * @param inlineObject1 (optional)
342 | * @return ApiResponse<InlineResponse2001>
343 | * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
344 | * @http.response.details
345 |
346 | Status Code | Description | Response Headers |
347 | 200 | 成功 | - |
348 |
349 | */
350 | public ApiResponse jugugugRegAndVerifyandReturnInfoPostWithHttpInfo(InlineObject1 inlineObject1) throws ApiException {
351 | okhttp3.Call localVarCall = jugugugRegAndVerifyandReturnInfoPostValidateBeforeCall(inlineObject1, null);
352 | Type localVarReturnType = new TypeToken(){}.getType();
353 | return localVarApiClient.execute(localVarCall, localVarReturnType);
354 | }
355 |
356 | /**
357 | * ③注册Jugugu (asynchronously)
358 | * 注册jugugu,注意三点 1.phone的传参必须为11位的国内手机号。 2.robotcodeid和robotcode是通过【①】获得 3.code短信验证码通过【②】 4.paymentpassword区块链短密钥,该密钥为用户进行链上交互使用,密钥设置长度>9位,且包含0-1 A-B a-b 已经特殊字符[~!@#$%^&*?_+;',./\\|·!¥(){}:“《》?、,。;’”\"《》…-]+
359 | * @param inlineObject1 (optional)
360 | * @param _callback The callback to be executed when the API call finishes
361 | * @return The request call
362 | * @throws ApiException If fail to process the API call, e.g. serializing the request body object
363 | * @http.response.details
364 |
365 | Status Code | Description | Response Headers |
366 | 200 | 成功 | - |
367 |
368 | */
369 | public okhttp3.Call jugugugRegAndVerifyandReturnInfoPostAsync(InlineObject1 inlineObject1, final ApiCallback _callback) throws ApiException {
370 |
371 | okhttp3.Call localVarCall = jugugugRegAndVerifyandReturnInfoPostValidateBeforeCall(inlineObject1, _callback);
372 | Type localVarReturnType = new TypeToken(){}.getType();
373 | localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
374 | return localVarCall;
375 | }
376 | }
377 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.auth;
15 |
16 | import org.openapitools.client.Pair;
17 |
18 | import java.util.Map;
19 | import java.util.List;
20 |
21 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-01T20:54:45.948+08:00[Asia/Shanghai]")
22 | public class ApiKeyAuth implements Authentication {
23 | private final String location;
24 | private final String paramName;
25 |
26 | private String apiKey;
27 | private String apiKeyPrefix;
28 |
29 | public ApiKeyAuth(String location, String paramName) {
30 | this.location = location;
31 | this.paramName = paramName;
32 | }
33 |
34 | public String getLocation() {
35 | return location;
36 | }
37 |
38 | public String getParamName() {
39 | return paramName;
40 | }
41 |
42 | public String getApiKey() {
43 | return apiKey;
44 | }
45 |
46 | public void setApiKey(String apiKey) {
47 | this.apiKey = apiKey;
48 | }
49 |
50 | public String getApiKeyPrefix() {
51 | return apiKeyPrefix;
52 | }
53 |
54 | public void setApiKeyPrefix(String apiKeyPrefix) {
55 | this.apiKeyPrefix = apiKeyPrefix;
56 | }
57 |
58 | @Override
59 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams) {
60 | if (apiKey == null) {
61 | return;
62 | }
63 | String value;
64 | if (apiKeyPrefix != null) {
65 | value = apiKeyPrefix + " " + apiKey;
66 | } else {
67 | value = apiKey;
68 | }
69 | if ("query".equals(location)) {
70 | queryParams.add(new Pair(paramName, value));
71 | } else if ("header".equals(location)) {
72 | headerParams.put(paramName, value);
73 | } else if ("cookie".equals(location)) {
74 | cookieParams.put(paramName, value);
75 | }
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/auth/Authentication.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.auth;
15 |
16 | import org.openapitools.client.Pair;
17 |
18 | import java.util.Map;
19 | import java.util.List;
20 |
21 | public interface Authentication {
22 | /**
23 | * Apply authentication settings to header and query params.
24 | *
25 | * @param queryParams List of query parameters
26 | * @param headerParams Map of header parameters
27 | * @param cookieParams Map of cookie parameters
28 | */
29 | void applyToParams(List queryParams, Map headerParams, Map cookieParams);
30 | }
31 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/auth/HttpBasicAuth.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.auth;
15 |
16 | import org.openapitools.client.Pair;
17 |
18 | import okhttp3.Credentials;
19 |
20 | import java.util.Map;
21 | import java.util.List;
22 |
23 | import java.io.UnsupportedEncodingException;
24 |
25 | public class HttpBasicAuth implements Authentication {
26 | private String username;
27 | private String password;
28 |
29 | public String getUsername() {
30 | return username;
31 | }
32 |
33 | public void setUsername(String username) {
34 | this.username = username;
35 | }
36 |
37 | public String getPassword() {
38 | return password;
39 | }
40 |
41 | public void setPassword(String password) {
42 | this.password = password;
43 | }
44 |
45 | @Override
46 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams) {
47 | if (username == null && password == null) {
48 | return;
49 | }
50 | headerParams.put("Authorization", Credentials.basic(
51 | username == null ? "" : username,
52 | password == null ? "" : password));
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.auth;
15 |
16 | import org.openapitools.client.Pair;
17 |
18 | import java.util.Map;
19 | import java.util.List;
20 |
21 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-01T20:54:45.948+08:00[Asia/Shanghai]")
22 | public class HttpBearerAuth implements Authentication {
23 | private final String scheme;
24 | private String bearerToken;
25 |
26 | public HttpBearerAuth(String scheme) {
27 | this.scheme = scheme;
28 | }
29 |
30 | /**
31 | * Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
32 | *
33 | * @return The bearer token
34 | */
35 | public String getBearerToken() {
36 | return bearerToken;
37 | }
38 |
39 | /**
40 | * Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
41 | *
42 | * @param bearerToken The bearer token to send in the Authorization header
43 | */
44 | public void setBearerToken(String bearerToken) {
45 | this.bearerToken = bearerToken;
46 | }
47 |
48 | @Override
49 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams) {
50 | if(bearerToken == null) {
51 | return;
52 | }
53 |
54 | headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken);
55 | }
56 |
57 | private static String upperCaseBearer(String scheme) {
58 | return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme;
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/model/InlineObject.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Arrays;
18 | import com.google.gson.TypeAdapter;
19 | import com.google.gson.annotations.JsonAdapter;
20 | import com.google.gson.annotations.SerializedName;
21 | import com.google.gson.stream.JsonReader;
22 | import com.google.gson.stream.JsonWriter;
23 | import io.swagger.annotations.ApiModel;
24 | import io.swagger.annotations.ApiModelProperty;
25 | import java.io.IOException;
26 |
27 | /**
28 | * InlineObject
29 | */
30 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-01T20:54:45.948+08:00[Asia/Shanghai]")
31 | public class InlineObject {
32 | public static final String SERIALIZED_NAME_PHONE = "phone";
33 | @SerializedName(SERIALIZED_NAME_PHONE)
34 | private String phone;
35 |
36 |
37 | public InlineObject phone(String phone) {
38 |
39 | this.phone = phone;
40 | return this;
41 | }
42 |
43 | /**
44 | * 此处传参为空字符串
45 | * @return phone
46 | **/
47 | @ApiModelProperty(required = true, value = "此处传参为空字符串")
48 |
49 | public String getPhone() {
50 | return phone;
51 | }
52 |
53 |
54 | public void setPhone(String phone) {
55 | this.phone = phone;
56 | }
57 |
58 |
59 | @Override
60 | public boolean equals(java.lang.Object o) {
61 | if (this == o) {
62 | return true;
63 | }
64 | if (o == null || getClass() != o.getClass()) {
65 | return false;
66 | }
67 | InlineObject inlineObject = (InlineObject) o;
68 | return Objects.equals(this.phone, inlineObject.phone);
69 | }
70 |
71 | @Override
72 | public int hashCode() {
73 | return Objects.hash(phone);
74 | }
75 |
76 |
77 | @Override
78 | public String toString() {
79 | StringBuilder sb = new StringBuilder();
80 | sb.append("class InlineObject {\n");
81 | sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
82 | sb.append("}");
83 | return sb.toString();
84 | }
85 |
86 | /**
87 | * Convert the given object to string with each line indented by 4 spaces
88 | * (except the first line).
89 | */
90 | private String toIndentedString(java.lang.Object o) {
91 | if (o == null) {
92 | return "null";
93 | }
94 | return o.toString().replace("\n", "\n ");
95 | }
96 |
97 | }
98 |
99 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/model/InlineObject1.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Arrays;
18 | import com.google.gson.TypeAdapter;
19 | import com.google.gson.annotations.JsonAdapter;
20 | import com.google.gson.annotations.SerializedName;
21 | import com.google.gson.stream.JsonReader;
22 | import com.google.gson.stream.JsonWriter;
23 | import io.swagger.annotations.ApiModel;
24 | import io.swagger.annotations.ApiModelProperty;
25 | import java.io.IOException;
26 |
27 | /**
28 | * InlineObject1
29 | */
30 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-01T20:54:45.948+08:00[Asia/Shanghai]")
31 | public class InlineObject1 {
32 | public static final String SERIALIZED_NAME_PHONE = "phone";
33 | @SerializedName(SERIALIZED_NAME_PHONE)
34 | private String phone;
35 |
36 | public static final String SERIALIZED_NAME_ROBOTCODEID = "robotcodeid";
37 | @SerializedName(SERIALIZED_NAME_ROBOTCODEID)
38 | private String robotcodeid;
39 |
40 | public static final String SERIALIZED_NAME_ROBOTCODE = "robotcode";
41 | @SerializedName(SERIALIZED_NAME_ROBOTCODE)
42 | private String robotcode;
43 |
44 | public static final String SERIALIZED_NAME_CODE = "code";
45 | @SerializedName(SERIALIZED_NAME_CODE)
46 | private String code;
47 |
48 | public static final String SERIALIZED_NAME_PAYMENTPASSWORD = "paymentpassword";
49 | @SerializedName(SERIALIZED_NAME_PAYMENTPASSWORD)
50 | private String paymentpassword;
51 |
52 |
53 | public InlineObject1 phone(String phone) {
54 |
55 | this.phone = phone;
56 | return this;
57 | }
58 |
59 | /**
60 | * 此处传参为空字符串
61 | * @return phone
62 | **/
63 | @ApiModelProperty(required = true, value = "此处传参为空字符串")
64 |
65 | public String getPhone() {
66 | return phone;
67 | }
68 |
69 |
70 | public void setPhone(String phone) {
71 | this.phone = phone;
72 | }
73 |
74 |
75 | public InlineObject1 robotcodeid(String robotcodeid) {
76 |
77 | this.robotcodeid = robotcodeid;
78 | return this;
79 | }
80 |
81 | /**
82 | * Get robotcodeid
83 | * @return robotcodeid
84 | **/
85 | @ApiModelProperty(required = true, value = "")
86 |
87 | public String getRobotcodeid() {
88 | return robotcodeid;
89 | }
90 |
91 |
92 | public void setRobotcodeid(String robotcodeid) {
93 | this.robotcodeid = robotcodeid;
94 | }
95 |
96 |
97 | public InlineObject1 robotcode(String robotcode) {
98 |
99 | this.robotcode = robotcode;
100 | return this;
101 | }
102 |
103 | /**
104 | * Get robotcode
105 | * @return robotcode
106 | **/
107 | @ApiModelProperty(required = true, value = "")
108 |
109 | public String getRobotcode() {
110 | return robotcode;
111 | }
112 |
113 |
114 | public void setRobotcode(String robotcode) {
115 | this.robotcode = robotcode;
116 | }
117 |
118 |
119 | public InlineObject1 code(String code) {
120 |
121 | this.code = code;
122 | return this;
123 | }
124 |
125 | /**
126 | * Get code
127 | * @return code
128 | **/
129 | @ApiModelProperty(required = true, value = "")
130 |
131 | public String getCode() {
132 | return code;
133 | }
134 |
135 |
136 | public void setCode(String code) {
137 | this.code = code;
138 | }
139 |
140 |
141 | public InlineObject1 paymentpassword(String paymentpassword) {
142 |
143 | this.paymentpassword = paymentpassword;
144 | return this;
145 | }
146 |
147 | /**
148 | * 该密钥为用户进行链上交互使用,密钥设置长度>9位,且包含0-1 A-B a-b 已经特殊字符[~!@#$%^&*?_+;',./\\|·!¥(){}:“《》?、,。;’”\"《》…-]+
149 | * @return paymentpassword
150 | **/
151 | @ApiModelProperty(required = true, value = "该密钥为用户进行链上交互使用,密钥设置长度>9位,且包含0-1 A-B a-b 已经特殊字符[~!@#$%^&*?_+;',./\\|·!¥(){}:“《》?、,。;’”\"《》…-]+")
152 |
153 | public String getPaymentpassword() {
154 | return paymentpassword;
155 | }
156 |
157 |
158 | public void setPaymentpassword(String paymentpassword) {
159 | this.paymentpassword = paymentpassword;
160 | }
161 |
162 |
163 | @Override
164 | public boolean equals(java.lang.Object o) {
165 | if (this == o) {
166 | return true;
167 | }
168 | if (o == null || getClass() != o.getClass()) {
169 | return false;
170 | }
171 | InlineObject1 inlineObject1 = (InlineObject1) o;
172 | return Objects.equals(this.phone, inlineObject1.phone) &&
173 | Objects.equals(this.robotcodeid, inlineObject1.robotcodeid) &&
174 | Objects.equals(this.robotcode, inlineObject1.robotcode) &&
175 | Objects.equals(this.code, inlineObject1.code) &&
176 | Objects.equals(this.paymentpassword, inlineObject1.paymentpassword);
177 | }
178 |
179 | @Override
180 | public int hashCode() {
181 | return Objects.hash(phone, robotcodeid, robotcode, code, paymentpassword);
182 | }
183 |
184 |
185 | @Override
186 | public String toString() {
187 | StringBuilder sb = new StringBuilder();
188 | sb.append("class InlineObject1 {\n");
189 | sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
190 | sb.append(" robotcodeid: ").append(toIndentedString(robotcodeid)).append("\n");
191 | sb.append(" robotcode: ").append(toIndentedString(robotcode)).append("\n");
192 | sb.append(" code: ").append(toIndentedString(code)).append("\n");
193 | sb.append(" paymentpassword: ").append(toIndentedString(paymentpassword)).append("\n");
194 | sb.append("}");
195 | return sb.toString();
196 | }
197 |
198 | /**
199 | * Convert the given object to string with each line indented by 4 spaces
200 | * (except the first line).
201 | */
202 | private String toIndentedString(java.lang.Object o) {
203 | if (o == null) {
204 | return "null";
205 | }
206 | return o.toString().replace("\n", "\n ");
207 | }
208 |
209 | }
210 |
211 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/model/InlineObject2.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Arrays;
18 | import com.google.gson.TypeAdapter;
19 | import com.google.gson.annotations.JsonAdapter;
20 | import com.google.gson.annotations.SerializedName;
21 | import com.google.gson.stream.JsonReader;
22 | import com.google.gson.stream.JsonWriter;
23 | import io.swagger.annotations.ApiModel;
24 | import io.swagger.annotations.ApiModelProperty;
25 | import java.io.IOException;
26 |
27 | /**
28 | * InlineObject2
29 | */
30 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-01T20:54:45.948+08:00[Asia/Shanghai]")
31 | public class InlineObject2 {
32 | public static final String SERIALIZED_NAME_PHONE = "phone";
33 | @SerializedName(SERIALIZED_NAME_PHONE)
34 | private String phone;
35 |
36 |
37 | public InlineObject2 phone(String phone) {
38 |
39 | this.phone = phone;
40 | return this;
41 | }
42 |
43 | /**
44 | * 此处传参为空字符串
45 | * @return phone
46 | **/
47 | @ApiModelProperty(required = true, value = "此处传参为空字符串")
48 |
49 | public String getPhone() {
50 | return phone;
51 | }
52 |
53 |
54 | public void setPhone(String phone) {
55 | this.phone = phone;
56 | }
57 |
58 |
59 | @Override
60 | public boolean equals(java.lang.Object o) {
61 | if (this == o) {
62 | return true;
63 | }
64 | if (o == null || getClass() != o.getClass()) {
65 | return false;
66 | }
67 | InlineObject2 inlineObject2 = (InlineObject2) o;
68 | return Objects.equals(this.phone, inlineObject2.phone);
69 | }
70 |
71 | @Override
72 | public int hashCode() {
73 | return Objects.hash(phone);
74 | }
75 |
76 |
77 | @Override
78 | public String toString() {
79 | StringBuilder sb = new StringBuilder();
80 | sb.append("class InlineObject2 {\n");
81 | sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
82 | sb.append("}");
83 | return sb.toString();
84 | }
85 |
86 | /**
87 | * Convert the given object to string with each line indented by 4 spaces
88 | * (except the first line).
89 | */
90 | private String toIndentedString(java.lang.Object o) {
91 | if (o == null) {
92 | return "null";
93 | }
94 | return o.toString().replace("\n", "\n ");
95 | }
96 |
97 | }
98 |
99 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/model/InlineResponse200.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Arrays;
18 | import com.google.gson.TypeAdapter;
19 | import com.google.gson.annotations.JsonAdapter;
20 | import com.google.gson.annotations.SerializedName;
21 | import com.google.gson.stream.JsonReader;
22 | import com.google.gson.stream.JsonWriter;
23 | import io.swagger.annotations.ApiModel;
24 | import io.swagger.annotations.ApiModelProperty;
25 | import java.io.IOException;
26 |
27 | /**
28 | * InlineResponse200
29 | */
30 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-01T20:54:45.948+08:00[Asia/Shanghai]")
31 | public class InlineResponse200 {
32 | public static final String SERIALIZED_NAME_TOKEN = "token";
33 | @SerializedName(SERIALIZED_NAME_TOKEN)
34 | private String token;
35 |
36 |
37 | public InlineResponse200 token(String token) {
38 |
39 | this.token = token;
40 | return this;
41 | }
42 |
43 | /**
44 | * 用户登录识别令牌,用于后续多个函数的交互,作为输入参数
45 | * @return token
46 | **/
47 | @ApiModelProperty(required = true, value = "用户登录识别令牌,用于后续多个函数的交互,作为输入参数")
48 |
49 | public String getToken() {
50 | return token;
51 | }
52 |
53 |
54 | public void setToken(String token) {
55 | this.token = token;
56 | }
57 |
58 |
59 | @Override
60 | public boolean equals(java.lang.Object o) {
61 | if (this == o) {
62 | return true;
63 | }
64 | if (o == null || getClass() != o.getClass()) {
65 | return false;
66 | }
67 | InlineResponse200 inlineResponse200 = (InlineResponse200) o;
68 | return Objects.equals(this.token, inlineResponse200.token);
69 | }
70 |
71 | @Override
72 | public int hashCode() {
73 | return Objects.hash(token);
74 | }
75 |
76 |
77 | @Override
78 | public String toString() {
79 | StringBuilder sb = new StringBuilder();
80 | sb.append("class InlineResponse200 {\n");
81 | sb.append(" token: ").append(toIndentedString(token)).append("\n");
82 | sb.append("}");
83 | return sb.toString();
84 | }
85 |
86 | /**
87 | * Convert the given object to string with each line indented by 4 spaces
88 | * (except the first line).
89 | */
90 | private String toIndentedString(java.lang.Object o) {
91 | if (o == null) {
92 | return "null";
93 | }
94 | return o.toString().replace("\n", "\n ");
95 | }
96 |
97 | }
98 |
99 |
--------------------------------------------------------------------------------
/src/main/java/org/openapitools/client/model/InlineResponse2001.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Arrays;
18 | import com.google.gson.TypeAdapter;
19 | import com.google.gson.annotations.JsonAdapter;
20 | import com.google.gson.annotations.SerializedName;
21 | import com.google.gson.stream.JsonReader;
22 | import com.google.gson.stream.JsonWriter;
23 | import io.swagger.annotations.ApiModel;
24 | import io.swagger.annotations.ApiModelProperty;
25 | import java.io.IOException;
26 |
27 | /**
28 | * InlineResponse2001
29 | */
30 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-01T20:54:45.948+08:00[Asia/Shanghai]")
31 | public class InlineResponse2001 {
32 | public static final String SERIALIZED_NAME_STATE = "state";
33 | @SerializedName(SERIALIZED_NAME_STATE)
34 | private String state;
35 |
36 | public static final String SERIALIZED_NAME_MSG = "msg";
37 | @SerializedName(SERIALIZED_NAME_MSG)
38 | private String msg;
39 |
40 | public static final String SERIALIZED_NAME_PHONE = "phone";
41 | @SerializedName(SERIALIZED_NAME_PHONE)
42 | private String phone;
43 |
44 | public static final String SERIALIZED_NAME_VIRIFYCODEID = "virifycodeid";
45 | @SerializedName(SERIALIZED_NAME_VIRIFYCODEID)
46 | private String virifycodeid;
47 |
48 | public static final String SERIALIZED_NAME_VIRIFYIMAGE = "virifyimage";
49 | @SerializedName(SERIALIZED_NAME_VIRIFYIMAGE)
50 | private String virifyimage;
51 |
52 | public static final String SERIALIZED_NAME_CONFLUXADDRESS = "confluxaddress";
53 | @SerializedName(SERIALIZED_NAME_CONFLUXADDRESS)
54 | private String confluxaddress;
55 |
56 | public static final String SERIALIZED_NAME_ETHADDRESS = "ethaddress";
57 | @SerializedName(SERIALIZED_NAME_ETHADDRESS)
58 | private String ethaddress;
59 |
60 | public static final String SERIALIZED_NAME_TOKEN = "token";
61 | @SerializedName(SERIALIZED_NAME_TOKEN)
62 | private String token;
63 |
64 |
65 | public InlineResponse2001 state(String state) {
66 |
67 | this.state = state;
68 | return this;
69 | }
70 |
71 | /**
72 | * 响应状态分为:-1,0,1 分别代表响应错误、响应提示、响应成功
73 | * @return state
74 | **/
75 | @ApiModelProperty(required = true, value = "响应状态分为:-1,0,1 分别代表响应错误、响应提示、响应成功")
76 |
77 | public String getState() {
78 | return state;
79 | }
80 |
81 |
82 | public void setState(String state) {
83 | this.state = state;
84 | }
85 |
86 |
87 | public InlineResponse2001 msg(String msg) {
88 |
89 | this.msg = msg;
90 | return this;
91 | }
92 |
93 | /**
94 | * 响应状态为-1时该值为错误信息。响应状态为0时,该值为响应提示信息。响应状态为1时该值为空字符串
95 | * @return msg
96 | **/
97 | @ApiModelProperty(required = true, value = "响应状态为-1时该值为错误信息。响应状态为0时,该值为响应提示信息。响应状态为1时该值为空字符串")
98 |
99 | public String getMsg() {
100 | return msg;
101 | }
102 |
103 |
104 | public void setMsg(String msg) {
105 | this.msg = msg;
106 | }
107 |
108 |
109 | public InlineResponse2001 phone(String phone) {
110 |
111 | this.phone = phone;
112 | return this;
113 | }
114 |
115 | /**
116 | * Get phone
117 | * @return phone
118 | **/
119 | @ApiModelProperty(required = true, value = "")
120 |
121 | public String getPhone() {
122 | return phone;
123 | }
124 |
125 |
126 | public void setPhone(String phone) {
127 | this.phone = phone;
128 | }
129 |
130 |
131 | public InlineResponse2001 virifycodeid(String virifycodeid) {
132 |
133 | this.virifycodeid = virifycodeid;
134 | return this;
135 | }
136 |
137 | /**
138 | * 验证码图片的ID值
139 | * @return virifycodeid
140 | **/
141 | @ApiModelProperty(required = true, value = "验证码图片的ID值")
142 |
143 | public String getVirifycodeid() {
144 | return virifycodeid;
145 | }
146 |
147 |
148 | public void setVirifycodeid(String virifycodeid) {
149 | this.virifycodeid = virifycodeid;
150 | }
151 |
152 |
153 | public InlineResponse2001 virifyimage(String virifyimage) {
154 |
155 | this.virifyimage = virifyimage;
156 | return this;
157 | }
158 |
159 | /**
160 | * data:image/png;base64
161 | * @return virifyimage
162 | **/
163 | @ApiModelProperty(required = true, value = "data:image/png;base64")
164 |
165 | public String getVirifyimage() {
166 | return virifyimage;
167 | }
168 |
169 |
170 | public void setVirifyimage(String virifyimage) {
171 | this.virifyimage = virifyimage;
172 | }
173 |
174 |
175 | public InlineResponse2001 confluxaddress(String confluxaddress) {
176 |
177 | this.confluxaddress = confluxaddress;
178 | return this;
179 | }
180 |
181 | /**
182 | * 树图区块链地址
183 | * @return confluxaddress
184 | **/
185 | @ApiModelProperty(required = true, value = "树图区块链地址")
186 |
187 | public String getConfluxaddress() {
188 | return confluxaddress;
189 | }
190 |
191 |
192 | public void setConfluxaddress(String confluxaddress) {
193 | this.confluxaddress = confluxaddress;
194 | }
195 |
196 |
197 | public InlineResponse2001 ethaddress(String ethaddress) {
198 |
199 | this.ethaddress = ethaddress;
200 | return this;
201 | }
202 |
203 | /**
204 | * 以太坊、Arbitrum、polygon、BSC等EVM链地址
205 | * @return ethaddress
206 | **/
207 | @ApiModelProperty(required = true, value = "以太坊、Arbitrum、polygon、BSC等EVM链地址")
208 |
209 | public String getEthaddress() {
210 | return ethaddress;
211 | }
212 |
213 |
214 | public void setEthaddress(String ethaddress) {
215 | this.ethaddress = ethaddress;
216 | }
217 |
218 |
219 | public InlineResponse2001 token(String token) {
220 |
221 | this.token = token;
222 | return this;
223 | }
224 |
225 | /**
226 | * 用户登录识别令牌,用于后续多个函数的交互,作为输入参数
227 | * @return token
228 | **/
229 | @ApiModelProperty(required = true, value = "用户登录识别令牌,用于后续多个函数的交互,作为输入参数")
230 |
231 | public String getToken() {
232 | return token;
233 | }
234 |
235 |
236 | public void setToken(String token) {
237 | this.token = token;
238 | }
239 |
240 |
241 | @Override
242 | public boolean equals(java.lang.Object o) {
243 | if (this == o) {
244 | return true;
245 | }
246 | if (o == null || getClass() != o.getClass()) {
247 | return false;
248 | }
249 | InlineResponse2001 inlineResponse2001 = (InlineResponse2001) o;
250 | return Objects.equals(this.state, inlineResponse2001.state) &&
251 | Objects.equals(this.msg, inlineResponse2001.msg) &&
252 | Objects.equals(this.phone, inlineResponse2001.phone) &&
253 | Objects.equals(this.virifycodeid, inlineResponse2001.virifycodeid) &&
254 | Objects.equals(this.virifyimage, inlineResponse2001.virifyimage) &&
255 | Objects.equals(this.confluxaddress, inlineResponse2001.confluxaddress) &&
256 | Objects.equals(this.ethaddress, inlineResponse2001.ethaddress) &&
257 | Objects.equals(this.token, inlineResponse2001.token);
258 | }
259 |
260 | @Override
261 | public int hashCode() {
262 | return Objects.hash(state, msg, phone, virifycodeid, virifyimage, confluxaddress, ethaddress, token);
263 | }
264 |
265 |
266 | @Override
267 | public String toString() {
268 | StringBuilder sb = new StringBuilder();
269 | sb.append("class InlineResponse2001 {\n");
270 | sb.append(" state: ").append(toIndentedString(state)).append("\n");
271 | sb.append(" msg: ").append(toIndentedString(msg)).append("\n");
272 | sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
273 | sb.append(" virifycodeid: ").append(toIndentedString(virifycodeid)).append("\n");
274 | sb.append(" virifyimage: ").append(toIndentedString(virifyimage)).append("\n");
275 | sb.append(" confluxaddress: ").append(toIndentedString(confluxaddress)).append("\n");
276 | sb.append(" ethaddress: ").append(toIndentedString(ethaddress)).append("\n");
277 | sb.append(" token: ").append(toIndentedString(token)).append("\n");
278 | sb.append("}");
279 | return sb.toString();
280 | }
281 |
282 | /**
283 | * Convert the given object to string with each line indented by 4 spaces
284 | * (except the first line).
285 | */
286 | private String toIndentedString(java.lang.Object o) {
287 | if (o == null) {
288 | return "null";
289 | }
290 | return o.toString().replace("\n", "\n ");
291 | }
292 |
293 | }
294 |
295 |
--------------------------------------------------------------------------------
/src/test/java/org/openapitools/client/api/DefaultApiTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.api;
15 |
16 | import org.openapitools.client.ApiException;
17 | import org.openapitools.client.model.InlineObject;
18 | import org.openapitools.client.model.InlineObject1;
19 | import org.openapitools.client.model.InlineObject2;
20 | import org.openapitools.client.model.InlineResponse200;
21 | import org.openapitools.client.model.InlineResponse2001;
22 | import org.junit.Test;
23 | import org.junit.Ignore;
24 |
25 | import java.util.ArrayList;
26 | import java.util.HashMap;
27 | import java.util.List;
28 | import java.util.Map;
29 |
30 | /**
31 | * API tests for DefaultApi
32 | */
33 | @Ignore
34 | public class DefaultApiTest {
35 |
36 | private final DefaultApi api = new DefaultApi();
37 |
38 |
39 | /**
40 | * 检查手机号是否注册
41 | *
42 | * 检查手机号是否注册,返回“true”和“false”字符串
43 | *
44 | * @throws ApiException
45 | * if the Api call fails
46 | */
47 | @Test
48 | public void isPhoneRegPostTest() throws ApiException {
49 | InlineObject inlineObject = null;
50 | InlineResponse200 response = api.isPhoneRegPost(inlineObject);
51 |
52 | // TODO: test validations
53 | }
54 |
55 | /**
56 | * ①获取验证码图片
57 | *
58 | * 获取用于防御机器人的验证码图片,phone的传参必须为空字符串
59 | *
60 | * @throws ApiException
61 | * if the Api call fails
62 | */
63 | @Test
64 | public void juguguLoginCodeandReturnInfoPostTest() throws ApiException {
65 | InlineObject2 inlineObject2 = null;
66 | InlineResponse2001 response = api.juguguLoginCodeandReturnInfoPost(inlineObject2);
67 |
68 | // TODO: test validations
69 | }
70 |
71 | /**
72 | * ③注册Jugugu
73 | *
74 | * 注册jugugu,注意三点 1.phone的传参必须为11位的国内手机号。 2.robotcodeid和robotcode是通过【①】获得 3.code短信验证码通过【②】 4.paymentpassword区块链短密钥,该密钥为用户进行链上交互使用,密钥设置长度>9位,且包含0-1 A-B a-b 已经特殊字符[~!@#$%^&*?_+;',./\\|·!¥(){}:“《》?、,。;’”\"《》…-]+
75 | *
76 | * @throws ApiException
77 | * if the Api call fails
78 | */
79 | @Test
80 | public void jugugugRegAndVerifyandReturnInfoPostTest() throws ApiException {
81 | InlineObject1 inlineObject1 = null;
82 | InlineResponse2001 response = api.jugugugRegAndVerifyandReturnInfoPost(inlineObject1);
83 |
84 | // TODO: test validations
85 | }
86 |
87 | }
88 |
--------------------------------------------------------------------------------
/src/test/java/org/openapitools/client/model/InlineObject1Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.model;
15 |
16 | import com.google.gson.TypeAdapter;
17 | import com.google.gson.annotations.JsonAdapter;
18 | import com.google.gson.annotations.SerializedName;
19 | import com.google.gson.stream.JsonReader;
20 | import com.google.gson.stream.JsonWriter;
21 | import io.swagger.annotations.ApiModel;
22 | import io.swagger.annotations.ApiModelProperty;
23 | import java.io.IOException;
24 | import org.junit.Assert;
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 |
29 | /**
30 | * Model tests for InlineObject1
31 | */
32 | public class InlineObject1Test {
33 | private final InlineObject1 model = new InlineObject1();
34 |
35 | /**
36 | * Model tests for InlineObject1
37 | */
38 | @Test
39 | public void testInlineObject1() {
40 | // TODO: test InlineObject1
41 | }
42 |
43 | /**
44 | * Test the property 'phone'
45 | */
46 | @Test
47 | public void phoneTest() {
48 | // TODO: test phone
49 | }
50 |
51 | /**
52 | * Test the property 'robotcodeid'
53 | */
54 | @Test
55 | public void robotcodeidTest() {
56 | // TODO: test robotcodeid
57 | }
58 |
59 | /**
60 | * Test the property 'robotcode'
61 | */
62 | @Test
63 | public void robotcodeTest() {
64 | // TODO: test robotcode
65 | }
66 |
67 | /**
68 | * Test the property 'code'
69 | */
70 | @Test
71 | public void codeTest() {
72 | // TODO: test code
73 | }
74 |
75 | /**
76 | * Test the property 'paymentpassword'
77 | */
78 | @Test
79 | public void paymentpasswordTest() {
80 | // TODO: test paymentpassword
81 | }
82 |
83 | }
84 |
--------------------------------------------------------------------------------
/src/test/java/org/openapitools/client/model/InlineObject2Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.model;
15 |
16 | import com.google.gson.TypeAdapter;
17 | import com.google.gson.annotations.JsonAdapter;
18 | import com.google.gson.annotations.SerializedName;
19 | import com.google.gson.stream.JsonReader;
20 | import com.google.gson.stream.JsonWriter;
21 | import io.swagger.annotations.ApiModel;
22 | import io.swagger.annotations.ApiModelProperty;
23 | import java.io.IOException;
24 | import org.junit.Assert;
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 |
29 | /**
30 | * Model tests for InlineObject2
31 | */
32 | public class InlineObject2Test {
33 | private final InlineObject2 model = new InlineObject2();
34 |
35 | /**
36 | * Model tests for InlineObject2
37 | */
38 | @Test
39 | public void testInlineObject2() {
40 | // TODO: test InlineObject2
41 | }
42 |
43 | /**
44 | * Test the property 'phone'
45 | */
46 | @Test
47 | public void phoneTest() {
48 | // TODO: test phone
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/src/test/java/org/openapitools/client/model/InlineObjectTest.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.model;
15 |
16 | import com.google.gson.TypeAdapter;
17 | import com.google.gson.annotations.JsonAdapter;
18 | import com.google.gson.annotations.SerializedName;
19 | import com.google.gson.stream.JsonReader;
20 | import com.google.gson.stream.JsonWriter;
21 | import io.swagger.annotations.ApiModel;
22 | import io.swagger.annotations.ApiModelProperty;
23 | import java.io.IOException;
24 | import org.junit.Assert;
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 |
29 | /**
30 | * Model tests for InlineObject
31 | */
32 | public class InlineObjectTest {
33 | private final InlineObject model = new InlineObject();
34 |
35 | /**
36 | * Model tests for InlineObject
37 | */
38 | @Test
39 | public void testInlineObject() {
40 | // TODO: test InlineObject
41 | }
42 |
43 | /**
44 | * Test the property 'phone'
45 | */
46 | @Test
47 | public void phoneTest() {
48 | // TODO: test phone
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/src/test/java/org/openapitools/client/model/InlineResponse2001Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.model;
15 |
16 | import com.google.gson.TypeAdapter;
17 | import com.google.gson.annotations.JsonAdapter;
18 | import com.google.gson.annotations.SerializedName;
19 | import com.google.gson.stream.JsonReader;
20 | import com.google.gson.stream.JsonWriter;
21 | import io.swagger.annotations.ApiModel;
22 | import io.swagger.annotations.ApiModelProperty;
23 | import java.io.IOException;
24 | import org.junit.Assert;
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 |
29 | /**
30 | * Model tests for InlineResponse2001
31 | */
32 | public class InlineResponse2001Test {
33 | private final InlineResponse2001 model = new InlineResponse2001();
34 |
35 | /**
36 | * Model tests for InlineResponse2001
37 | */
38 | @Test
39 | public void testInlineResponse2001() {
40 | // TODO: test InlineResponse2001
41 | }
42 |
43 | /**
44 | * Test the property 'state'
45 | */
46 | @Test
47 | public void stateTest() {
48 | // TODO: test state
49 | }
50 |
51 | /**
52 | * Test the property 'msg'
53 | */
54 | @Test
55 | public void msgTest() {
56 | // TODO: test msg
57 | }
58 |
59 | /**
60 | * Test the property 'phone'
61 | */
62 | @Test
63 | public void phoneTest() {
64 | // TODO: test phone
65 | }
66 |
67 | /**
68 | * Test the property 'virifycodeid'
69 | */
70 | @Test
71 | public void virifycodeidTest() {
72 | // TODO: test virifycodeid
73 | }
74 |
75 | /**
76 | * Test the property 'virifyimage'
77 | */
78 | @Test
79 | public void virifyimageTest() {
80 | // TODO: test virifyimage
81 | }
82 |
83 | /**
84 | * Test the property 'confluxaddress'
85 | */
86 | @Test
87 | public void confluxaddressTest() {
88 | // TODO: test confluxaddress
89 | }
90 |
91 | /**
92 | * Test the property 'ethaddress'
93 | */
94 | @Test
95 | public void ethaddressTest() {
96 | // TODO: test ethaddress
97 | }
98 |
99 | /**
100 | * Test the property 'token'
101 | */
102 | @Test
103 | public void tokenTest() {
104 | // TODO: test token
105 | }
106 |
107 | }
108 |
--------------------------------------------------------------------------------
/src/test/java/org/openapitools/client/model/InlineResponse200Test.java:
--------------------------------------------------------------------------------
1 | /*
2 | * 直接模式
3 | * 接入jugugu区块链全包的全部接口,访问IP需要连续管理员,添加业务服务器IP
4 | *
5 | * The version of the OpenAPI document: 1.0.0
6 | *
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package org.openapitools.client.model;
15 |
16 | import com.google.gson.TypeAdapter;
17 | import com.google.gson.annotations.JsonAdapter;
18 | import com.google.gson.annotations.SerializedName;
19 | import com.google.gson.stream.JsonReader;
20 | import com.google.gson.stream.JsonWriter;
21 | import io.swagger.annotations.ApiModel;
22 | import io.swagger.annotations.ApiModelProperty;
23 | import java.io.IOException;
24 | import org.junit.Assert;
25 | import org.junit.Ignore;
26 | import org.junit.Test;
27 |
28 |
29 | /**
30 | * Model tests for InlineResponse200
31 | */
32 | public class InlineResponse200Test {
33 | private final InlineResponse200 model = new InlineResponse200();
34 |
35 | /**
36 | * Model tests for InlineResponse200
37 | */
38 | @Test
39 | public void testInlineResponse200() {
40 | // TODO: test InlineResponse200
41 | }
42 |
43 | /**
44 | * Test the property 'token'
45 | */
46 | @Test
47 | public void tokenTest() {
48 | // TODO: test token
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------