From d72897f0802ac17a87255e37fc990d03d872d4a2 Mon Sep 17 00:00:00 2001 From: fghwett <1058178245@qq.com> Date: Tue, 26 Sep 2023 16:20:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 - .idea/.gitignore | 8 + .idea/answer-openapi.iml | 9 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .openapi-generator/FILES | 151 +- .openapi-generator/VERSION | 2 +- README.md | 362 +-- api/openapi.yaml | 2607 ++++------------- api_activity.go | 46 +- api_admin.go | 451 +-- api_admin_plugin.go | 38 +- api_api_answer.go | 60 +- api_collection.go | 22 +- api_comment.go | 70 +- api_installation.go | 46 +- api_lang.go | 38 +- api_notification.go | 46 +- api_permission.go | 14 +- api_personal.go | 22 +- api_plugin_connector.go | 38 +- api_question.go | 122 +- api_rank.go | 14 +- api_reason.go | 22 +- api_report.go | 14 +- api_revision.go | 38 +- api_search.go | 113 +- api_site.go | 38 +- api_tag.go | 86 +- api_upload.go | 22 +- api_user.go | 519 ++-- client.go | 98 +- configuration.go | 2 +- docs/{ActivityApi.md => ActivityAPI.md} | 52 +- docs/{AdminApi.md => AdminAPI.md} | 469 +-- docs/{AdminPluginApi.md => AdminPluginAPI.md} | 42 +- ...nswerAdminApiPluginConfigGet200Response.md | 78 +- docs/AnswerAdminApiPluginsGet200Response.md | 78 +- docs/AnswerAdminApiRolesGet200Response.md | 78 +- ...AdminApiSettingPrivilegesGet200Response.md | 78 +- ...AnswerAdminApiSettingSmtpGet200Response.md | 78 +- ...rAdminApiSiteinfoBrandingGet200Response.md | 78 +- ...nApiSiteinfoCustomCssHtmlGet200Response.md | 78 +- ...erAdminApiSiteinfoGeneralGet200Response.md | 78 +- ...AdminApiSiteinfoInterfaceGet200Response.md | 78 +- ...swerAdminApiSiteinfoLegalGet200Response.md | 78 +- ...swerAdminApiSiteinfoLoginGet200Response.md | 78 +- ...AnswerAdminApiSiteinfoSeoGet200Response.md | 78 +- ...swerAdminApiSiteinfoThemeGet200Response.md | 78 +- ...swerAdminApiSiteinfoUsersGet200Response.md | 78 +- ...swerAdminApiSiteinfoWriteGet200Response.md | 78 +- ...werAdminApiUserActivationGet200Response.md | 78 +- docs/AnswerAdminApiUsersPageGet200Response.md | 86 +- ...minApiUsersPageGet200ResponseAllOfData.md} | 38 +- ...dminApiUsersPageGet200ResponseDataAllOf.md | 56 - ...swerApiV1ActivityTimelineGet200Response.md | 78 +- ...werApiV1CollectionSwitchPost200Response.md | 78 +- docs/AnswerApiV1CommentGet200Response.md | 86 +- ...werApiV1CommentGet200ResponseAllOfData.md} | 30 +- ...swerApiV1CommentGet200ResponseDataAllOf.md | 56 - docs/AnswerApiV1CommentPost200Response.md | 78 +- ...iV1ConnectorBindingEmailPost200Response.md | 78 +- .../AnswerApiV1ConnectorInfoGet200Response.md | 78 +- ...werApiV1ConnectorUserInfoGet200Response.md | 78 +- docs/AnswerApiV1FilePost200Response.md | 78 +- docs/AnswerApiV1FollowPost200Response.md | 78 +- docs/AnswerApiV1PermissionGet200Response.md | 78 +- ...rApiV1PersonalCommentPageGet200Response.md | 86 +- ...onalCommentPageGet200ResponseAllOfData.md} | 30 +- ...sonalCommentPageGet200ResponseDataAllOf.md | 56 - ...swerApiV1PersonalRankPageGet200Response.md | 86 +- ...ersonalRankPageGet200ResponseAllOfData.md} | 30 +- ...PersonalRankPageGet200ResponseDataAllOf.md | 56 - ...swerApiV1PersonalUserInfoGet200Response.md | 78 +- ...swerApiV1PersonalVotePageGet200Response.md | 86 +- ...ersonalVotePageGet200ResponseAllOfData.md} | 30 +- ...PersonalVotePageGet200ResponseDataAllOf.md | 56 - docs/AnswerApiV1QuestionPageGet200Response.md | 86 +- ...iV1QuestionPageGet200ResponseAllOfData.md} | 30 +- ...piV1QuestionPageGet200ResponseDataAllOf.md | 56 - docs/AnswerApiV1QuestionTagsGet200Response.md | 78 +- ...AnswerApiV1ReportTypeListGet200Response.md | 82 - docs/AnswerApiV1RevisionsGet200Response.md | 78 +- ...rApiV1RevisionsUnreviewedGet200Response.md | 86 +- ...sionsUnreviewedGet200ResponseAllOfData.md} | 30 +- ...isionsUnreviewedGet200ResponseDataAllOf.md | 56 - docs/AnswerApiV1SearchGet200Response.md | 86 +- docs/AnswerApiV1SiteinfoGet200Response.md | 78 +- .../AnswerApiV1SiteinfoLegalGet200Response.md | 78 +- docs/AnswerApiV1TagGet200Response.md | 78 +- docs/AnswerApiV1TagSynonymsGet200Response.md | 78 +- .../AnswerApiV1TagsFollowingGet200Response.md | 78 +- docs/AnswerApiV1TagsPageGet200Response.md | 86 +- ...erApiV1TagsPageGet200ResponseAllOfData.md} | 30 +- ...werApiV1TagsPageGet200ResponseDataAllOf.md | 56 - ...swerApiV1UserActionRecordGet200Response.md | 78 +- ...iV1UserEmailVerificationPost200Response.md | 78 +- docs/AnswerApiV1UserInfoGet200Response.md | 78 +- ...AnswerApiV1UserNoticeSetPost200Response.md | 82 - ...V1UserNotificationConfigPost200Response.md | 134 + docs/AnswerApiV1UserRankingGet200Response.md | 78 +- docs/AnswerApiV1VoteDownPost200Response.md | 78 +- docs/{ApiAnswerApi.md => ApiAnswerAPI.md} | 66 +- docs/{CollectionApi.md => CollectionAPI.md} | 22 +- docs/{CommentApi.md => CommentAPI.md} | 82 +- docs/ConstantNotificationChannelKey.md | 11 + docs/InstallInitBaseInfoReq.md | 26 + ...{InstallationApi.md => InstallationAPI.md} | 50 +- ...tallationConfigFileCheckPost200Response.md | 78 +- ...stallationLanguageOptionsGet200Response.md | 78 +- docs/{LangApi.md => LangAPI.md} | 42 +- ...{NotificationApi.md => NotificationAPI.md} | 52 +- docs/{PermissionApi.md => PermissionAPI.md} | 12 +- docs/{PersonalApi.md => PersonalAPI.md} | 22 +- ...nConnectorApi.md => PluginConnectorAPI.md} | 42 +- docs/{QuestionApi.md => QuestionAPI.md} | 144 +- docs/{RankApi.md => RankAPI.md} | 12 +- docs/{ReasonApi.md => ReasonAPI.md} | 22 +- docs/{ReportApi.md => ReportAPI.md} | 12 +- docs/{RevisionApi.md => RevisionAPI.md} | 42 +- ...cceptedReq.md => SchemaAcceptAnswerReq.md} | 35 +- docs/SchemaAddUsersReq.md | 56 + docs/SchemaAnswerAddReq.md | 2 +- docs/SchemaAnswerUpdateReq.md | 2 +- docs/SchemaGetCurrentLoginUserInfoResp.md | 2 +- docs/SchemaGetRankPersonalWithPageResp.md | 290 -- docs/SchemaGetReportTypeResp.md | 186 -- docs/SchemaGetUserNotificationConfigResp.md | 108 + docs/SchemaGetUserResp.md | 654 ----- docs/SchemaGetUserToSetShowResp.md | 654 ----- docs/SchemaNotificationChannelConfig.md | 82 + docs/SchemaQuestionPageReq.md | 160 - docs/SchemaRemoveAnswerReq.md | 4 +- docs/SchemaSearchListResp.md | 108 - docs/SchemaSearchObject.md | 8 +- docs/SchemaSearchObjectUser.md | 160 + docs/SchemaSearchObjectUserInfo.md | 264 -- docs/SchemaSearchResp.md | 52 +- docs/SchemaSearchRespObject.md | 316 -- docs/SchemaSearchResult.md | 82 + docs/SchemaUpdateCommentReq.md | 2 +- docs/SchemaUpdateInfoRequest.md | 8 +- docs/SchemaUpdateInfoRequestAvatar.md | 108 - docs/SchemaUpdateUserNotificationConfigReq.md | 108 + docs/SchemaUserBasicInfo.md | 18 +- ...ailLogin.md => SchemaUserEmailLoginReq.md} | 50 +- docs/SchemaUserModifyPassWordRequest.md | 82 - docs/SchemaUserNoticeSetRequest.md | 56 - docs/SchemaUserNoticeSetResp.md | 56 - docs/SchemaUserRePassWordRequest.md | 4 +- docs/SchemaUserRegisterReq.md | 10 +- docs/SchemaUserRetrievePassWordRequest.md | 6 +- docs/SchemaUserUnsubscribeNotificationReq.md | 51 + docs/SearchAPI.md | 139 + docs/SearchApi.md | 77 - docs/{SiteApi.md => SiteAPI.md} | 42 +- docs/{TagApi.md => TagAPI.md} | 102 +- docs/{UploadApi.md => UploadAPI.md} | 22 +- docs/{UserApi.md => UserAPI.md} | 403 +-- git_push.sh | 6 +- go.mod | 2 +- go.sum | 21 +- ...dmin_api_plugin_config_get_200_response.go | 113 +- ...swer_admin_api_plugins_get_200_response.go | 113 +- ...answer_admin_api_roles_get_200_response.go | 113 +- ...api_setting_privileges_get_200_response.go | 113 +- ...admin_api_setting_smtp_get_200_response.go | 113 +- ..._api_siteinfo_branding_get_200_response.go | 113 +- ...teinfo_custom_css_html_get_200_response.go | 113 +- ...n_api_siteinfo_general_get_200_response.go | 113 +- ...api_siteinfo_interface_get_200_response.go | 113 +- ...min_api_siteinfo_legal_get_200_response.go | 113 +- ...min_api_siteinfo_login_get_200_response.go | 113 +- ...admin_api_siteinfo_seo_get_200_response.go | 113 +- ...min_api_siteinfo_theme_get_200_response.go | 113 +- ...min_api_siteinfo_users_get_200_response.go | 113 +- ...min_api_siteinfo_write_get_200_response.go | 113 +- ...in_api_user_activation_get_200_response.go | 113 +- ...r_admin_api_users_page_get_200_response.go | 125 +- ...users_page_get_200_response_all_of_data.go | 70 +- ...users_page_get_200_response_data_all_of.go | 124 - ...i_v1_activity_timeline_get_200_response.go | 113 +- ..._v1_collection_switch_post_200_response.go | 113 +- ..._answer_api_v1_comment_get_200_response.go | 125 +- ...v1_comment_get_200_response_all_of_data.go | 160 + ...er_api_v1_comment_get_200_response_data.go | 160 - ...v1_comment_get_200_response_data_all_of.go | 124 - ...answer_api_v1_comment_post_200_response.go | 113 +- ...nnector_binding_email_post_200_response.go | 113 +- ..._api_v1_connector_info_get_200_response.go | 113 +- ...v1_connector_user_info_get_200_response.go | 113 +- ...l__answer_api_v1_file_post_200_response.go | 113 +- ..._answer_api_v1_follow_post_200_response.go | 113 +- ...swer_api_v1_permission_get_200_response.go | 113 +- ..._personal_comment_page_get_200_response.go | 125 +- ...mment_page_get_200_response_all_of_data.go | 160 + ...onal_comment_page_get_200_response_data.go | 160 - ...mment_page_get_200_response_data_all_of.go | 124 - ..._v1_personal_rank_page_get_200_response.go | 125 +- ..._rank_page_get_200_response_all_of_data.go | 160 + ...ersonal_rank_page_get_200_response_data.go | 160 - ..._rank_page_get_200_response_data_all_of.go | 124 - ..._v1_personal_user_info_get_200_response.go | 113 +- ..._v1_personal_vote_page_get_200_response.go | 125 +- ..._vote_page_get_200_response_all_of_data.go | 160 + ...ersonal_vote_page_get_200_response_data.go | 160 - ..._vote_page_get_200_response_data_all_of.go | 124 - ...r_api_v1_question_page_get_200_response.go | 125 +- ...stion_page_get_200_response_all_of_data.go | 160 + ..._v1_question_page_get_200_response_data.go | 160 - ...stion_page_get_200_response_data_all_of.go | 124 - ...r_api_v1_question_tags_get_200_response.go | 113 +- ...pi_v1_report_type_list_get_200_response.go | 162 - ...nswer_api_v1_revisions_get_200_response.go | 113 +- ...1_revisions_unreviewed_get_200_response.go | 125 +- ...unreviewed_get_200_response_all_of_data.go | 160 + ...isions_unreviewed_get_200_response_data.go | 160 - ...unreviewed_get_200_response_data_all_of.go | 124 - ...__answer_api_v1_search_get_200_response.go | 125 +- ...answer_api_v1_siteinfo_get_200_response.go | 113 +- ..._api_v1_siteinfo_legal_get_200_response.go | 113 +- model__answer_api_v1_tag_get_200_response.go | 113 +- ...er_api_v1_tag_synonyms_get_200_response.go | 113 +- ..._api_v1_tags_following_get_200_response.go | 113 +- ...nswer_api_v1_tags_page_get_200_response.go | 125 +- ..._tags_page_get_200_response_all_of_data.go | 160 + ..._api_v1_tags_page_get_200_response_data.go | 160 - ..._tags_page_get_200_response_data_all_of.go | 124 - ..._v1_user_action_record_get_200_response.go | 113 +- ...er_email_verification_post_200_response.go | 113 +- ...nswer_api_v1_user_info_get_200_response.go | 113 +- ...pi_v1_user_notice_set_post_200_response.go | 160 - ...r_notification_config_post_200_response.go | 235 ++ ...er_api_v1_user_ranking_get_200_response.go | 113 +- ...swer_api_v1_vote_down_post_200_response.go | 113 +- ...ion_config_file_check_post_200_response.go | 113 +- ...ation_language_options_get_200_response.go | 113 +- model_constant_notification_channel_key.go | 107 + model_constant_privilege.go | 2 +- model_handler_resp_body.go | 2 +- model_install_check_config_file_resp.go | 2 +- model_install_check_database_req.go | 2 +- model_install_init_base_info_req.go | 38 +- model_pager_page_model.go | 2 +- model_schema_accept_answer_req.go | 151 + model_schema_act_object_info.go | 2 +- model_schema_act_object_timeline.go | 2 +- model_schema_action_record_resp.go | 2 +- model_schema_add_comment_req.go | 2 +- model_schema_add_report_req.go | 2 +- model_schema_add_tag_req.go | 2 +- model_schema_add_user_req.go | 2 +- model_schema_add_users_req.go | 125 + ..._schema_admin_set_answer_status_request.go | 2 +- ...chema_admin_set_question_status_request.go | 2 +- model_schema_answer_accepted_req.go | 160 - model_schema_answer_add_req.go | 3 +- model_schema_answer_update_req.go | 3 +- model_schema_avatar_info.go | 2 +- model_schema_close_question_req.go | 2 +- model_schema_collection_switch_req.go | 2 +- model_schema_collection_switch_resp.go | 2 +- model_schema_config_field.go | 2 +- model_schema_config_field_option.go | 2 +- model_schema_config_field_ui_options.go | 2 +- model_schema_connector_info_resp.go | 2 +- model_schema_connector_user_info_resp.go | 2 +- ...ernal_login_binding_user_send_email_req.go | 2 +- ...rnal_login_binding_user_send_email_resp.go | 2 +- model_schema_external_login_unbinding_req.go | 2 +- model_schema_follow_req.go | 2 +- model_schema_follow_resp.go | 2 +- ...ema_get_comment_personal_with_page_resp.go | 2 +- model_schema_get_comment_resp.go | 2 +- ...schema_get_current_login_user_info_resp.go | 3 +- model_schema_get_following_tags_resp.go | 2 +- model_schema_get_object_timeline_resp.go | 2 +- ...ma_get_other_user_info_by_username_resp.go | 2 +- model_schema_get_other_user_info_resp.go | 2 +- model_schema_get_plugin_config_resp.go | 2 +- model_schema_get_plugin_list_resp.go | 2 +- model_schema_get_privileges_config_resp.go | 2 +- model_schema_get_rank_personal_page_resp.go | 2 +- ...schema_get_rank_personal_with_page_resp.go | 460 --- model_schema_get_report_type_resp.go | 312 -- model_schema_get_revision_resp.go | 2 +- model_schema_get_role_resp.go | 2 +- model_schema_get_site_legal_info_resp.go | 2 +- model_schema_get_smtp_config_resp.go | 2 +- model_schema_get_tag_page_resp.go | 2 +- model_schema_get_tag_resp.go | 2 +- model_schema_get_tag_synonyms_resp.go | 2 +- model_schema_get_unreviewed_revision_resp.go | 2 +- model_schema_get_user_activation_resp.go | 2 +- ...chema_get_user_notification_config_resp.go | 196 ++ model_schema_get_user_page_resp.go | 2 +- model_schema_get_user_resp.go | 978 ------- model_schema_get_user_to_set_show_resp.go | 977 ------ model_schema_get_vote_with_page_resp.go | 2 +- model_schema_loading_action.go | 2 +- model_schema_notification_channel_config.go | 160 + model_schema_notification_clear_id_request.go | 2 +- model_schema_notification_clear_request.go | 2 +- model_schema_on_complete_action.go | 2 +- model_schema_operation_question_req.go | 2 +- model_schema_permission_member_action.go | 2 +- model_schema_post_render_req.go | 2 +- model_schema_privilege_level.go | 2 +- model_schema_privilege_option.go | 2 +- model_schema_question_add.go | 2 +- model_schema_question_add_by_answer.go | 2 +- model_schema_question_page_req.go | 270 -- model_schema_question_page_resp.go | 2 +- model_schema_question_page_resp_operator.go | 2 +- model_schema_question_update.go | 2 +- model_schema_question_update_invite_user.go | 2 +- model_schema_remove_answer_req.go | 4 +- model_schema_remove_comment_req.go | 2 +- model_schema_remove_question_req.go | 2 +- model_schema_remove_tag_req.go | 2 +- model_schema_reopen_question_req.go | 2 +- model_schema_report_handle_req.go | 2 +- model_schema_revision_audit_req.go | 2 +- model_schema_search_list_resp.go | 198 -- model_schema_search_object.go | 14 +- model_schema_search_object_user.go | 268 ++ model_schema_search_object_user_info.go | 421 --- model_schema_search_resp.go | 76 +- model_schema_search_resp_object.go | 486 --- model_schema_search_result.go | 161 + model_schema_send_user_activation_req.go | 2 +- model_schema_site_branding_req.go | 2 +- model_schema_site_branding_resp.go | 2 +- model_schema_site_custom_css_html_req.go | 2 +- model_schema_site_custom_css_html_resp.go | 2 +- model_schema_site_general_req.go | 2 +- model_schema_site_general_resp.go | 2 +- model_schema_site_info_resp.go | 2 +- model_schema_site_interface_req.go | 2 +- model_schema_site_interface_resp.go | 2 +- model_schema_site_legal_req.go | 2 +- model_schema_site_legal_resp.go | 2 +- model_schema_site_login_req.go | 2 +- model_schema_site_login_resp.go | 2 +- model_schema_site_seo_req.go | 2 +- model_schema_site_seo_resp.go | 2 +- model_schema_site_theme_req.go | 2 +- model_schema_site_theme_resp.go | 2 +- model_schema_site_users_req.go | 2 +- model_schema_site_users_resp.go | 2 +- model_schema_site_write_req.go | 2 +- model_schema_site_write_resp.go | 2 +- model_schema_tag_item.go | 2 +- model_schema_tag_resp.go | 2 +- model_schema_tag_synonym.go | 2 +- model_schema_theme_option.go | 2 +- model_schema_ui_option_action.go | 2 +- model_schema_unreviewed_revision_info_info.go | 2 +- model_schema_update_comment_req.go | 4 +- model_schema_update_follow_tags_req.go | 2 +- model_schema_update_info_request.go | 14 +- model_schema_update_info_request_avatar.go | 196 -- model_schema_update_plugin_config_req.go | 2 +- model_schema_update_plugin_status_req.go | 2 +- model_schema_update_privileges_config_req.go | 2 +- model_schema_update_smtp_config_req.go | 2 +- model_schema_update_tag_req.go | 2 +- model_schema_update_tag_synonym_req.go | 2 +- model_schema_update_user_interface_request.go | 2 +- ...ema_update_user_notification_config_req.go | 196 ++ model_schema_update_user_password_req.go | 2 +- model_schema_update_user_role_req.go | 2 +- model_schema_update_user_status_req.go | 2 +- model_schema_user_basic_info.go | 11 +- ..._schema_user_change_email_send_code_req.go | 2 +- model_schema_user_change_email_verify_req.go | 2 +- ...go => model_schema_user_email_login_req.go | 78 +- model_schema_user_login_resp.go | 2 +- model_schema_user_modify_pass_word_request.go | 164 -- model_schema_user_modify_password_req.go | 2 +- model_schema_user_notice_set_request.go | 124 - model_schema_user_notice_set_resp.go | 124 - model_schema_user_ranking_resp.go | 2 +- model_schema_user_ranking_simple_info.go | 2 +- model_schema_user_re_pass_word_request.go | 4 +- model_schema_user_register_req.go | 7 +- ..._schema_user_retrieve_pass_word_request.go | 5 +- ...chema_user_unsubscribe_notification_req.go | 115 + model_schema_vote_req.go | 2 +- model_schema_vote_resp.go | 2 +- model_translator_lang_option.go | 2 +- response.go | 2 +- test/api_activity_test.go | 39 +- test/api_admin_plugin_test.go | 24 +- test/api_admin_test.go | 297 +- test/api_api_answer_test.go | 57 +- test/api_collection_test.go | 21 +- test/api_comment_test.go | 57 +- test/api_installation_test.go | 39 +- test/api_lang_test.go | 33 +- test/api_notification_test.go | 39 +- test/api_permission_test.go | 12 +- test/api_personal_test.go | 16 +- test/api_plugin_connector_test.go | 24 +- test/api_question_test.go | 93 +- test/api_rank_test.go | 15 +- test/api_reason_test.go | 21 +- test/api_report_test.go | 27 +- test/api_revision_test.go | 33 +- test/api_search_test.go | 27 +- test/api_site_test.go | 33 +- test/api_tag_test.go | 69 +- test/api_upload_test.go | 21 +- test/api_user_test.go | 147 +- utils.go | 2 +- 415 files changed, 15785 insertions(+), 17558 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/answer-openapi.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml rename docs/{ActivityApi.md => ActivityAPI.md} (83%) rename docs/{AdminApi.md => AdminAPI.md} (81%) rename docs/{AdminPluginApi.md => AdminPluginAPI.md} (85%) rename docs/{AnswerAdminApiUsersPageGet200ResponseData.md => AnswerAdminApiUsersPageGet200ResponseAllOfData.md} (53%) delete mode 100644 docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md rename docs/{AnswerApiV1CommentGet200ResponseData.md => AnswerApiV1CommentGet200ResponseAllOfData.md} (55%) delete mode 100644 docs/AnswerApiV1CommentGet200ResponseDataAllOf.md rename docs/{AnswerApiV1PersonalCommentPageGet200ResponseData.md => AnswerApiV1PersonalCommentPageGet200ResponseAllOfData.md} (50%) delete mode 100644 docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md rename docs/{AnswerApiV1PersonalRankPageGet200ResponseData.md => AnswerApiV1PersonalRankPageGet200ResponseAllOfData.md} (51%) delete mode 100644 docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md rename docs/{AnswerApiV1PersonalVotePageGet200ResponseData.md => AnswerApiV1PersonalVotePageGet200ResponseAllOfData.md} (51%) delete mode 100644 docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md rename docs/{AnswerApiV1QuestionPageGet200ResponseData.md => AnswerApiV1QuestionPageGet200ResponseAllOfData.md} (53%) delete mode 100644 docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md delete mode 100644 docs/AnswerApiV1ReportTypeListGet200Response.md rename docs/{AnswerApiV1RevisionsUnreviewedGet200ResponseData.md => AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData.md} (50%) delete mode 100644 docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md rename docs/{AnswerApiV1TagsPageGet200ResponseData.md => AnswerApiV1TagsPageGet200ResponseAllOfData.md} (54%) delete mode 100644 docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md delete mode 100644 docs/AnswerApiV1UserNoticeSetPost200Response.md create mode 100644 docs/AnswerApiV1UserNotificationConfigPost200Response.md rename docs/{ApiAnswerApi.md => ApiAnswerAPI.md} (80%) rename docs/{CollectionApi.md => CollectionAPI.md} (82%) rename docs/{CommentApi.md => CommentAPI.md} (84%) create mode 100644 docs/ConstantNotificationChannelKey.md rename docs/{InstallationApi.md => InstallationAPI.md} (84%) rename docs/{LangApi.md => LangAPI.md} (81%) rename docs/{NotificationApi.md => NotificationAPI.md} (84%) rename docs/{PermissionApi.md => PermissionAPI.md} (82%) rename docs/{PersonalApi.md => PersonalAPI.md} (86%) rename docs/{PluginConnectorApi.md => PluginConnectorAPI.md} (84%) rename docs/{QuestionApi.md => QuestionAPI.md} (82%) rename docs/{RankApi.md => RankAPI.md} (85%) rename docs/{ReasonApi.md => ReasonAPI.md} (83%) rename docs/{ReportApi.md => ReportAPI.md} (82%) rename docs/{RevisionApi.md => RevisionAPI.md} (83%) rename docs/{SchemaAnswerAcceptedReq.md => SchemaAcceptAnswerReq.md} (58%) create mode 100644 docs/SchemaAddUsersReq.md delete mode 100644 docs/SchemaGetRankPersonalWithPageResp.md delete mode 100644 docs/SchemaGetReportTypeResp.md create mode 100644 docs/SchemaGetUserNotificationConfigResp.md delete mode 100644 docs/SchemaGetUserResp.md delete mode 100644 docs/SchemaGetUserToSetShowResp.md create mode 100644 docs/SchemaNotificationChannelConfig.md delete mode 100644 docs/SchemaQuestionPageReq.md delete mode 100644 docs/SchemaSearchListResp.md create mode 100644 docs/SchemaSearchObjectUser.md delete mode 100644 docs/SchemaSearchObjectUserInfo.md delete mode 100644 docs/SchemaSearchRespObject.md create mode 100644 docs/SchemaSearchResult.md delete mode 100644 docs/SchemaUpdateInfoRequestAvatar.md create mode 100644 docs/SchemaUpdateUserNotificationConfigReq.md rename docs/{SchemaUserEmailLogin.md => SchemaUserEmailLoginReq.md} (59%) delete mode 100644 docs/SchemaUserModifyPassWordRequest.md delete mode 100644 docs/SchemaUserNoticeSetRequest.md delete mode 100644 docs/SchemaUserNoticeSetResp.md create mode 100644 docs/SchemaUserUnsubscribeNotificationReq.md create mode 100644 docs/SearchAPI.md delete mode 100644 docs/SearchApi.md rename docs/{SiteApi.md => SiteAPI.md} (80%) rename docs/{TagApi.md => TagAPI.md} (82%) rename docs/{UploadApi.md => UploadAPI.md} (83%) rename docs/{UserApi.md => UserAPI.md} (74%) rename model__answer_admin_api_users_page_get_200_response_data.go => model__answer_admin_api_users_page_get_200_response_all_of_data.go (50%) delete mode 100644 model__answer_admin_api_users_page_get_200_response_data_all_of.go create mode 100644 model__answer_api_v1_comment_get_200_response_all_of_data.go delete mode 100644 model__answer_api_v1_comment_get_200_response_data.go delete mode 100644 model__answer_api_v1_comment_get_200_response_data_all_of.go create mode 100644 model__answer_api_v1_personal_comment_page_get_200_response_all_of_data.go delete mode 100644 model__answer_api_v1_personal_comment_page_get_200_response_data.go delete mode 100644 model__answer_api_v1_personal_comment_page_get_200_response_data_all_of.go create mode 100644 model__answer_api_v1_personal_rank_page_get_200_response_all_of_data.go delete mode 100644 model__answer_api_v1_personal_rank_page_get_200_response_data.go delete mode 100644 model__answer_api_v1_personal_rank_page_get_200_response_data_all_of.go create mode 100644 model__answer_api_v1_personal_vote_page_get_200_response_all_of_data.go delete mode 100644 model__answer_api_v1_personal_vote_page_get_200_response_data.go delete mode 100644 model__answer_api_v1_personal_vote_page_get_200_response_data_all_of.go create mode 100644 model__answer_api_v1_question_page_get_200_response_all_of_data.go delete mode 100644 model__answer_api_v1_question_page_get_200_response_data.go delete mode 100644 model__answer_api_v1_question_page_get_200_response_data_all_of.go delete mode 100644 model__answer_api_v1_report_type_list_get_200_response.go create mode 100644 model__answer_api_v1_revisions_unreviewed_get_200_response_all_of_data.go delete mode 100644 model__answer_api_v1_revisions_unreviewed_get_200_response_data.go delete mode 100644 model__answer_api_v1_revisions_unreviewed_get_200_response_data_all_of.go create mode 100644 model__answer_api_v1_tags_page_get_200_response_all_of_data.go delete mode 100644 model__answer_api_v1_tags_page_get_200_response_data.go delete mode 100644 model__answer_api_v1_tags_page_get_200_response_data_all_of.go delete mode 100644 model__answer_api_v1_user_notice_set_post_200_response.go create mode 100644 model__answer_api_v1_user_notification_config_post_200_response.go create mode 100644 model_constant_notification_channel_key.go create mode 100644 model_schema_accept_answer_req.go create mode 100644 model_schema_add_users_req.go delete mode 100644 model_schema_answer_accepted_req.go delete mode 100644 model_schema_get_rank_personal_with_page_resp.go delete mode 100644 model_schema_get_report_type_resp.go create mode 100644 model_schema_get_user_notification_config_resp.go delete mode 100644 model_schema_get_user_resp.go delete mode 100644 model_schema_get_user_to_set_show_resp.go create mode 100644 model_schema_notification_channel_config.go delete mode 100644 model_schema_question_page_req.go delete mode 100644 model_schema_search_list_resp.go create mode 100644 model_schema_search_object_user.go delete mode 100644 model_schema_search_object_user_info.go delete mode 100644 model_schema_search_resp_object.go create mode 100644 model_schema_search_result.go delete mode 100644 model_schema_update_info_request_avatar.go create mode 100644 model_schema_update_user_notification_config_req.go rename model_schema_user_email_login.go => model_schema_user_email_login_req.go (59%) delete mode 100644 model_schema_user_modify_pass_word_request.go delete mode 100644 model_schema_user_notice_set_request.go delete mode 100644 model_schema_user_notice_set_resp.go create mode 100644 model_schema_user_unsubscribe_notification_req.go diff --git a/.gitignore b/.gitignore index 59610b5..daf913b 100644 --- a/.gitignore +++ b/.gitignore @@ -22,5 +22,3 @@ _testmain.go *.exe *.test *.prof - -.idea \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/answer-openapi.iml b/.idea/answer-openapi.iml new file mode 100644 index 0000000..5e764c4 --- /dev/null +++ b/.idea/answer-openapi.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..67f54a2 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 3d54773..b48bf18 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,4 +1,5 @@ .gitignore +.openapi-generator-ignore .travis.yml README.md api/openapi.yaml @@ -26,9 +27,9 @@ api_upload.go api_user.go client.go configuration.go -docs/ActivityApi.md -docs/AdminApi.md -docs/AdminPluginApi.md +docs/ActivityAPI.md +docs/AdminAPI.md +docs/AdminPluginAPI.md docs/AnswerAdminApiPluginConfigGet200Response.md docs/AnswerAdminApiPluginsGet200Response.md docs/AnswerAdminApiRolesGet200Response.md @@ -46,13 +47,11 @@ docs/AnswerAdminApiSiteinfoUsersGet200Response.md docs/AnswerAdminApiSiteinfoWriteGet200Response.md docs/AnswerAdminApiUserActivationGet200Response.md docs/AnswerAdminApiUsersPageGet200Response.md -docs/AnswerAdminApiUsersPageGet200ResponseData.md -docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md +docs/AnswerAdminApiUsersPageGet200ResponseAllOfData.md docs/AnswerApiV1ActivityTimelineGet200Response.md docs/AnswerApiV1CollectionSwitchPost200Response.md docs/AnswerApiV1CommentGet200Response.md -docs/AnswerApiV1CommentGet200ResponseData.md -docs/AnswerApiV1CommentGet200ResponseDataAllOf.md +docs/AnswerApiV1CommentGet200ResponseAllOfData.md docs/AnswerApiV1CommentPost200Response.md docs/AnswerApiV1ConnectorBindingEmailPost200Response.md docs/AnswerApiV1ConnectorInfoGet200Response.md @@ -61,23 +60,18 @@ docs/AnswerApiV1FilePost200Response.md docs/AnswerApiV1FollowPost200Response.md docs/AnswerApiV1PermissionGet200Response.md docs/AnswerApiV1PersonalCommentPageGet200Response.md -docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md -docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md +docs/AnswerApiV1PersonalCommentPageGet200ResponseAllOfData.md docs/AnswerApiV1PersonalRankPageGet200Response.md -docs/AnswerApiV1PersonalRankPageGet200ResponseData.md -docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md +docs/AnswerApiV1PersonalRankPageGet200ResponseAllOfData.md docs/AnswerApiV1PersonalUserInfoGet200Response.md docs/AnswerApiV1PersonalVotePageGet200Response.md -docs/AnswerApiV1PersonalVotePageGet200ResponseData.md -docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md +docs/AnswerApiV1PersonalVotePageGet200ResponseAllOfData.md docs/AnswerApiV1QuestionPageGet200Response.md -docs/AnswerApiV1QuestionPageGet200ResponseData.md -docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md +docs/AnswerApiV1QuestionPageGet200ResponseAllOfData.md docs/AnswerApiV1QuestionTagsGet200Response.md docs/AnswerApiV1RevisionsGet200Response.md docs/AnswerApiV1RevisionsUnreviewedGet200Response.md -docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md -docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md +docs/AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData.md docs/AnswerApiV1SearchGet200Response.md docs/AnswerApiV1SiteinfoGet200Response.md docs/AnswerApiV1SiteinfoLegalGet200Response.md @@ -85,36 +79,37 @@ docs/AnswerApiV1TagGet200Response.md docs/AnswerApiV1TagSynonymsGet200Response.md docs/AnswerApiV1TagsFollowingGet200Response.md docs/AnswerApiV1TagsPageGet200Response.md -docs/AnswerApiV1TagsPageGet200ResponseData.md -docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md +docs/AnswerApiV1TagsPageGet200ResponseAllOfData.md docs/AnswerApiV1UserActionRecordGet200Response.md docs/AnswerApiV1UserEmailVerificationPost200Response.md docs/AnswerApiV1UserInfoGet200Response.md -docs/AnswerApiV1UserNoticeSetPost200Response.md +docs/AnswerApiV1UserNotificationConfigPost200Response.md docs/AnswerApiV1UserRankingGet200Response.md docs/AnswerApiV1VoteDownPost200Response.md -docs/ApiAnswerApi.md -docs/CollectionApi.md -docs/CommentApi.md +docs/ApiAnswerAPI.md +docs/CollectionAPI.md +docs/CommentAPI.md +docs/ConstantNotificationChannelKey.md docs/ConstantPrivilege.md docs/HandlerRespBody.md docs/InstallCheckConfigFileResp.md docs/InstallCheckDatabaseReq.md docs/InstallInitBaseInfoReq.md -docs/InstallationApi.md +docs/InstallationAPI.md docs/InstallationConfigFileCheckPost200Response.md docs/InstallationLanguageOptionsGet200Response.md -docs/LangApi.md -docs/NotificationApi.md +docs/LangAPI.md +docs/NotificationAPI.md docs/PagerPageModel.md -docs/PermissionApi.md -docs/PersonalApi.md -docs/PluginConnectorApi.md -docs/QuestionApi.md -docs/RankApi.md -docs/ReasonApi.md -docs/ReportApi.md -docs/RevisionApi.md +docs/PermissionAPI.md +docs/PersonalAPI.md +docs/PluginConnectorAPI.md +docs/QuestionAPI.md +docs/RankAPI.md +docs/ReasonAPI.md +docs/ReportAPI.md +docs/RevisionAPI.md +docs/SchemaAcceptAnswerReq.md docs/SchemaActObjectInfo.md docs/SchemaActObjectTimeline.md docs/SchemaActionRecordResp.md @@ -122,9 +117,9 @@ docs/SchemaAddCommentReq.md docs/SchemaAddReportReq.md docs/SchemaAddTagReq.md docs/SchemaAddUserReq.md +docs/SchemaAddUsersReq.md docs/SchemaAdminSetAnswerStatusRequest.md docs/SchemaAdminSetQuestionStatusRequest.md -docs/SchemaAnswerAcceptedReq.md docs/SchemaAnswerAddReq.md docs/SchemaAnswerUpdateReq.md docs/SchemaAvatarInfo.md @@ -161,9 +156,11 @@ docs/SchemaGetTagResp.md docs/SchemaGetTagSynonymsResp.md docs/SchemaGetUnreviewedRevisionResp.md docs/SchemaGetUserActivationResp.md +docs/SchemaGetUserNotificationConfigResp.md docs/SchemaGetUserPageResp.md docs/SchemaGetVoteWithPageResp.md docs/SchemaLoadingAction.md +docs/SchemaNotificationChannelConfig.md docs/SchemaNotificationClearIDRequest.md docs/SchemaNotificationClearRequest.md docs/SchemaOnCompleteAction.md @@ -185,11 +182,10 @@ docs/SchemaRemoveTagReq.md docs/SchemaReopenQuestionReq.md docs/SchemaReportHandleReq.md docs/SchemaRevisionAuditReq.md -docs/SchemaSearchListResp.md docs/SchemaSearchObject.md -docs/SchemaSearchObjectUserInfo.md +docs/SchemaSearchObjectUser.md docs/SchemaSearchResp.md -docs/SchemaSearchRespObject.md +docs/SchemaSearchResult.md docs/SchemaSendUserActivationReq.md docs/SchemaSiteBrandingReq.md docs/SchemaSiteBrandingResp.md @@ -221,7 +217,6 @@ docs/SchemaUnreviewedRevisionInfoInfo.md docs/SchemaUpdateCommentReq.md docs/SchemaUpdateFollowTagsReq.md docs/SchemaUpdateInfoRequest.md -docs/SchemaUpdateInfoRequestAvatar.md docs/SchemaUpdatePluginConfigReq.md docs/SchemaUpdatePluginStatusReq.md docs/SchemaUpdatePrivilegesConfigReq.md @@ -229,30 +224,30 @@ docs/SchemaUpdateSMTPConfigReq.md docs/SchemaUpdateTagReq.md docs/SchemaUpdateTagSynonymReq.md docs/SchemaUpdateUserInterfaceRequest.md +docs/SchemaUpdateUserNotificationConfigReq.md docs/SchemaUpdateUserPasswordReq.md docs/SchemaUpdateUserRoleReq.md docs/SchemaUpdateUserStatusReq.md docs/SchemaUserBasicInfo.md docs/SchemaUserChangeEmailSendCodeReq.md docs/SchemaUserChangeEmailVerifyReq.md -docs/SchemaUserEmailLogin.md +docs/SchemaUserEmailLoginReq.md docs/SchemaUserLoginResp.md docs/SchemaUserModifyPasswordReq.md -docs/SchemaUserNoticeSetRequest.md -docs/SchemaUserNoticeSetResp.md docs/SchemaUserRankingResp.md docs/SchemaUserRankingSimpleInfo.md docs/SchemaUserRePassWordRequest.md docs/SchemaUserRegisterReq.md docs/SchemaUserRetrievePassWordRequest.md +docs/SchemaUserUnsubscribeNotificationReq.md docs/SchemaVoteReq.md docs/SchemaVoteResp.md -docs/SearchApi.md -docs/SiteApi.md -docs/TagApi.md +docs/SearchAPI.md +docs/SiteAPI.md +docs/TagAPI.md docs/TranslatorLangOption.md -docs/UploadApi.md -docs/UserApi.md +docs/UploadAPI.md +docs/UserAPI.md git_push.sh go.mod go.sum @@ -273,13 +268,11 @@ model__answer_admin_api_siteinfo_users_get_200_response.go model__answer_admin_api_siteinfo_write_get_200_response.go model__answer_admin_api_user_activation_get_200_response.go model__answer_admin_api_users_page_get_200_response.go -model__answer_admin_api_users_page_get_200_response_data.go -model__answer_admin_api_users_page_get_200_response_data_all_of.go +model__answer_admin_api_users_page_get_200_response_all_of_data.go model__answer_api_v1_activity_timeline_get_200_response.go model__answer_api_v1_collection_switch_post_200_response.go model__answer_api_v1_comment_get_200_response.go -model__answer_api_v1_comment_get_200_response_data.go -model__answer_api_v1_comment_get_200_response_data_all_of.go +model__answer_api_v1_comment_get_200_response_all_of_data.go model__answer_api_v1_comment_post_200_response.go model__answer_api_v1_connector_binding_email_post_200_response.go model__answer_api_v1_connector_info_get_200_response.go @@ -288,23 +281,18 @@ model__answer_api_v1_file_post_200_response.go model__answer_api_v1_follow_post_200_response.go model__answer_api_v1_permission_get_200_response.go model__answer_api_v1_personal_comment_page_get_200_response.go -model__answer_api_v1_personal_comment_page_get_200_response_data.go -model__answer_api_v1_personal_comment_page_get_200_response_data_all_of.go +model__answer_api_v1_personal_comment_page_get_200_response_all_of_data.go model__answer_api_v1_personal_rank_page_get_200_response.go -model__answer_api_v1_personal_rank_page_get_200_response_data.go -model__answer_api_v1_personal_rank_page_get_200_response_data_all_of.go +model__answer_api_v1_personal_rank_page_get_200_response_all_of_data.go model__answer_api_v1_personal_user_info_get_200_response.go model__answer_api_v1_personal_vote_page_get_200_response.go -model__answer_api_v1_personal_vote_page_get_200_response_data.go -model__answer_api_v1_personal_vote_page_get_200_response_data_all_of.go +model__answer_api_v1_personal_vote_page_get_200_response_all_of_data.go model__answer_api_v1_question_page_get_200_response.go -model__answer_api_v1_question_page_get_200_response_data.go -model__answer_api_v1_question_page_get_200_response_data_all_of.go +model__answer_api_v1_question_page_get_200_response_all_of_data.go model__answer_api_v1_question_tags_get_200_response.go model__answer_api_v1_revisions_get_200_response.go model__answer_api_v1_revisions_unreviewed_get_200_response.go -model__answer_api_v1_revisions_unreviewed_get_200_response_data.go -model__answer_api_v1_revisions_unreviewed_get_200_response_data_all_of.go +model__answer_api_v1_revisions_unreviewed_get_200_response_all_of_data.go model__answer_api_v1_search_get_200_response.go model__answer_api_v1_siteinfo_get_200_response.go model__answer_api_v1_siteinfo_legal_get_200_response.go @@ -312,22 +300,23 @@ model__answer_api_v1_tag_get_200_response.go model__answer_api_v1_tag_synonyms_get_200_response.go model__answer_api_v1_tags_following_get_200_response.go model__answer_api_v1_tags_page_get_200_response.go -model__answer_api_v1_tags_page_get_200_response_data.go -model__answer_api_v1_tags_page_get_200_response_data_all_of.go +model__answer_api_v1_tags_page_get_200_response_all_of_data.go model__answer_api_v1_user_action_record_get_200_response.go model__answer_api_v1_user_email_verification_post_200_response.go model__answer_api_v1_user_info_get_200_response.go -model__answer_api_v1_user_notice_set_post_200_response.go +model__answer_api_v1_user_notification_config_post_200_response.go model__answer_api_v1_user_ranking_get_200_response.go model__answer_api_v1_vote_down_post_200_response.go model__installation_config_file_check_post_200_response.go model__installation_language_options_get_200_response.go +model_constant_notification_channel_key.go model_constant_privilege.go model_handler_resp_body.go model_install_check_config_file_resp.go model_install_check_database_req.go model_install_init_base_info_req.go model_pager_page_model.go +model_schema_accept_answer_req.go model_schema_act_object_info.go model_schema_act_object_timeline.go model_schema_action_record_resp.go @@ -335,9 +324,9 @@ model_schema_add_comment_req.go model_schema_add_report_req.go model_schema_add_tag_req.go model_schema_add_user_req.go +model_schema_add_users_req.go model_schema_admin_set_answer_status_request.go model_schema_admin_set_question_status_request.go -model_schema_answer_accepted_req.go model_schema_answer_add_req.go model_schema_answer_update_req.go model_schema_avatar_info.go @@ -374,9 +363,11 @@ model_schema_get_tag_resp.go model_schema_get_tag_synonyms_resp.go model_schema_get_unreviewed_revision_resp.go model_schema_get_user_activation_resp.go +model_schema_get_user_notification_config_resp.go model_schema_get_user_page_resp.go model_schema_get_vote_with_page_resp.go model_schema_loading_action.go +model_schema_notification_channel_config.go model_schema_notification_clear_id_request.go model_schema_notification_clear_request.go model_schema_on_complete_action.go @@ -398,11 +389,10 @@ model_schema_remove_tag_req.go model_schema_reopen_question_req.go model_schema_report_handle_req.go model_schema_revision_audit_req.go -model_schema_search_list_resp.go model_schema_search_object.go -model_schema_search_object_user_info.go +model_schema_search_object_user.go model_schema_search_resp.go -model_schema_search_resp_object.go +model_schema_search_result.go model_schema_send_user_activation_req.go model_schema_site_branding_req.go model_schema_site_branding_resp.go @@ -434,7 +424,6 @@ model_schema_unreviewed_revision_info_info.go model_schema_update_comment_req.go model_schema_update_follow_tags_req.go model_schema_update_info_request.go -model_schema_update_info_request_avatar.go model_schema_update_plugin_config_req.go model_schema_update_plugin_status_req.go model_schema_update_privileges_config_req.go @@ -442,28 +431,46 @@ model_schema_update_smtp_config_req.go model_schema_update_tag_req.go model_schema_update_tag_synonym_req.go model_schema_update_user_interface_request.go +model_schema_update_user_notification_config_req.go model_schema_update_user_password_req.go model_schema_update_user_role_req.go model_schema_update_user_status_req.go model_schema_user_basic_info.go model_schema_user_change_email_send_code_req.go model_schema_user_change_email_verify_req.go -model_schema_user_email_login.go +model_schema_user_email_login_req.go model_schema_user_login_resp.go model_schema_user_modify_password_req.go -model_schema_user_notice_set_request.go -model_schema_user_notice_set_resp.go model_schema_user_ranking_resp.go model_schema_user_ranking_simple_info.go model_schema_user_re_pass_word_request.go model_schema_user_register_req.go model_schema_user_retrieve_pass_word_request.go +model_schema_user_unsubscribe_notification_req.go model_schema_vote_req.go model_schema_vote_resp.go model_translator_lang_option.go response.go +test/api_activity_test.go test/api_admin_plugin_test.go +test/api_admin_test.go +test/api_api_answer_test.go +test/api_collection_test.go +test/api_comment_test.go +test/api_installation_test.go +test/api_lang_test.go +test/api_notification_test.go test/api_permission_test.go test/api_personal_test.go test/api_plugin_connector_test.go +test/api_question_test.go +test/api_rank_test.go +test/api_reason_test.go +test/api_report_test.go +test/api_revision_test.go +test/api_search_test.go +test/api_site_test.go +test/api_tag_test.go +test/api_upload_test.go +test/api_user_test.go utils.go diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index cd802a1..73a86b1 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.6.0 \ No newline at end of file +7.0.1 \ No newline at end of file diff --git a/README.md b/README.md index b4bbf86..e0c4475 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Go API client for openapi +# Go API client for answer_sdk No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) @@ -21,7 +21,7 @@ go get golang.org/x/net/context Put the package under your project folder and add the following in import: ```golang -import openapi "github.com/GIT_USER_ID/GIT_REPO_ID" +import answer_sdk "git.ncc.cx/package/openapi-go-answer" ``` To use a proxy, set the environment variable `HTTP_PROXY`: @@ -39,7 +39,7 @@ Default configuration comes with `Servers` field that contains server objects as For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. ```golang -ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1) +ctx := context.WithValue(context.Background(), answer_sdk.ContextServerIndex, 1) ``` ### Templated Server URL @@ -47,7 +47,7 @@ ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1) Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. ```golang -ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{ +ctx := context.WithValue(context.Background(), answer_sdk.ContextServerVariables, map[string]string{ "basePath": "v2", }) ``` @@ -61,10 +61,10 @@ An operation is uniquely identified by `"{classname}Service.{nickname}"` string. Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. ```golang -ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{ +ctx := context.WithValue(context.Background(), answer_sdk.ContextOperationServerIndices, map[string]int{ "{classname}Service.{nickname}": 2, }) -ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{ +ctx = context.WithValue(context.Background(), answer_sdk.ContextOperationServerVariables, map[string]map[string]string{ "{classname}Service.{nickname}": { "port": "8443", }, @@ -77,151 +77,154 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*ActivityApi* | [**AnswerApiV1FollowPost**](docs/ActivityApi.md#answerapiv1followpost) | **Post** /answer/api/v1/follow | follow object or cancel follow operation -*ActivityApi* | [**AnswerApiV1FollowTagsPut**](docs/ActivityApi.md#answerapiv1followtagsput) | **Put** /answer/api/v1/follow/tags | update user follow tags -*ActivityApi* | [**AnswerApiV1PersonalVotePageGet**](docs/ActivityApi.md#answerapiv1personalvotepageget) | **Get** /answer/api/v1/personal/vote/page | get user personal votes -*ActivityApi* | [**AnswerApiV1VoteDownPost**](docs/ActivityApi.md#answerapiv1votedownpost) | **Post** /answer/api/v1/vote/down | vote down -*ActivityApi* | [**AnswerApiV1VoteUpPost**](docs/ActivityApi.md#answerapiv1voteuppost) | **Post** /answer/api/v1/vote/up | vote up -*AdminApi* | [**AnswerAdminApiAnswerPageGet**](docs/AdminApi.md#answeradminapianswerpageget) | **Get** /answer/admin/api/answer/page | AdminAnswerPage admin answer page -*AdminApi* | [**AnswerAdminApiAnswerStatusPut**](docs/AdminApi.md#answeradminapianswerstatusput) | **Put** /answer/admin/api/answer/status | AdminSetAnswerStatus -*AdminApi* | [**AnswerAdminApiDashboardGet**](docs/AdminApi.md#answeradminapidashboardget) | **Get** /answer/admin/api/dashboard | DashboardInfo -*AdminApi* | [**AnswerAdminApiQuestionPageGet**](docs/AdminApi.md#answeradminapiquestionpageget) | **Get** /answer/admin/api/question/page | AdminQuestionPage admin question page -*AdminApi* | [**AnswerAdminApiQuestionStatusPut**](docs/AdminApi.md#answeradminapiquestionstatusput) | **Put** /answer/admin/api/question/status | AdminSetQuestionStatus -*AdminApi* | [**AnswerAdminApiReportPut**](docs/AdminApi.md#answeradminapireportput) | **Put** /answer/admin/api/report/ | handle flag -*AdminApi* | [**AnswerAdminApiReportsPageGet**](docs/AdminApi.md#answeradminapireportspageget) | **Get** /answer/admin/api/reports/page | list report page -*AdminApi* | [**AnswerAdminApiRolesGet**](docs/AdminApi.md#answeradminapirolesget) | **Get** /answer/admin/api/roles | get role list -*AdminApi* | [**AnswerAdminApiSettingPrivilegesGet**](docs/AdminApi.md#answeradminapisettingprivilegesget) | **Get** /answer/admin/api/setting/privileges | GetPrivilegesConfig get privileges config -*AdminApi* | [**AnswerAdminApiSettingPrivilegesPut**](docs/AdminApi.md#answeradminapisettingprivilegesput) | **Put** /answer/admin/api/setting/privileges | update privileges config -*AdminApi* | [**AnswerAdminApiSettingSmtpGet**](docs/AdminApi.md#answeradminapisettingsmtpget) | **Get** /answer/admin/api/setting/smtp | GetSMTPConfig get smtp config -*AdminApi* | [**AnswerAdminApiSettingSmtpPut**](docs/AdminApi.md#answeradminapisettingsmtpput) | **Put** /answer/admin/api/setting/smtp | update smtp config -*AdminApi* | [**AnswerAdminApiSiteinfoBrandingGet**](docs/AdminApi.md#answeradminapisiteinfobrandingget) | **Get** /answer/admin/api/siteinfo/branding | get site interface -*AdminApi* | [**AnswerAdminApiSiteinfoBrandingPut**](docs/AdminApi.md#answeradminapisiteinfobrandingput) | **Put** /answer/admin/api/siteinfo/branding | update site info branding -*AdminApi* | [**AnswerAdminApiSiteinfoCustomCssHtmlGet**](docs/AdminApi.md#answeradminapisiteinfocustomcsshtmlget) | **Get** /answer/admin/api/siteinfo/custom-css-html | get site info custom html css config -*AdminApi* | [**AnswerAdminApiSiteinfoCustomCssHtmlPut**](docs/AdminApi.md#answeradminapisiteinfocustomcsshtmlput) | **Put** /answer/admin/api/siteinfo/custom-css-html | update site custom css html config -*AdminApi* | [**AnswerAdminApiSiteinfoGeneralGet**](docs/AdminApi.md#answeradminapisiteinfogeneralget) | **Get** /answer/admin/api/siteinfo/general | get site general information -*AdminApi* | [**AnswerAdminApiSiteinfoGeneralPut**](docs/AdminApi.md#answeradminapisiteinfogeneralput) | **Put** /answer/admin/api/siteinfo/general | update site general information -*AdminApi* | [**AnswerAdminApiSiteinfoInterfaceGet**](docs/AdminApi.md#answeradminapisiteinfointerfaceget) | **Get** /answer/admin/api/siteinfo/interface | get site interface -*AdminApi* | [**AnswerAdminApiSiteinfoInterfacePut**](docs/AdminApi.md#answeradminapisiteinfointerfaceput) | **Put** /answer/admin/api/siteinfo/interface | update site info interface -*AdminApi* | [**AnswerAdminApiSiteinfoLegalGet**](docs/AdminApi.md#answeradminapisiteinfolegalget) | **Get** /answer/admin/api/siteinfo/legal | Set the legal information for the site -*AdminApi* | [**AnswerAdminApiSiteinfoLegalPut**](docs/AdminApi.md#answeradminapisiteinfolegalput) | **Put** /answer/admin/api/siteinfo/legal | update site legal info -*AdminApi* | [**AnswerAdminApiSiteinfoLoginGet**](docs/AdminApi.md#answeradminapisiteinfologinget) | **Get** /answer/admin/api/siteinfo/login | get site info login config -*AdminApi* | [**AnswerAdminApiSiteinfoLoginPut**](docs/AdminApi.md#answeradminapisiteinfologinput) | **Put** /answer/admin/api/siteinfo/login | update site login -*AdminApi* | [**AnswerAdminApiSiteinfoSeoGet**](docs/AdminApi.md#answeradminapisiteinfoseoget) | **Get** /answer/admin/api/siteinfo/seo | get site seo information -*AdminApi* | [**AnswerAdminApiSiteinfoSeoPut**](docs/AdminApi.md#answeradminapisiteinfoseoput) | **Put** /answer/admin/api/siteinfo/seo | update site seo information -*AdminApi* | [**AnswerAdminApiSiteinfoThemeGet**](docs/AdminApi.md#answeradminapisiteinfothemeget) | **Get** /answer/admin/api/siteinfo/theme | get site info theme config -*AdminApi* | [**AnswerAdminApiSiteinfoThemePut**](docs/AdminApi.md#answeradminapisiteinfothemeput) | **Put** /answer/admin/api/siteinfo/theme | update site custom css html config -*AdminApi* | [**AnswerAdminApiSiteinfoUsersGet**](docs/AdminApi.md#answeradminapisiteinfousersget) | **Get** /answer/admin/api/siteinfo/users | get site user config -*AdminApi* | [**AnswerAdminApiSiteinfoUsersPut**](docs/AdminApi.md#answeradminapisiteinfousersput) | **Put** /answer/admin/api/siteinfo/users | update site info config about users -*AdminApi* | [**AnswerAdminApiSiteinfoWriteGet**](docs/AdminApi.md#answeradminapisiteinfowriteget) | **Get** /answer/admin/api/siteinfo/write | get site interface -*AdminApi* | [**AnswerAdminApiSiteinfoWritePut**](docs/AdminApi.md#answeradminapisiteinfowriteput) | **Put** /answer/admin/api/siteinfo/write | update site write info -*AdminApi* | [**AnswerAdminApiThemeOptionsGet**](docs/AdminApi.md#answeradminapithemeoptionsget) | **Get** /answer/admin/api/theme/options | Get theme options -*AdminApi* | [**AnswerAdminApiUserActivationGet**](docs/AdminApi.md#answeradminapiuseractivationget) | **Get** /answer/admin/api/user/activation | get user activation -*AdminApi* | [**AnswerAdminApiUserPasswordPut**](docs/AdminApi.md#answeradminapiuserpasswordput) | **Put** /answer/admin/api/user/password | update user password -*AdminApi* | [**AnswerAdminApiUserPost**](docs/AdminApi.md#answeradminapiuserpost) | **Post** /answer/admin/api/user | add user -*AdminApi* | [**AnswerAdminApiUserRolePut**](docs/AdminApi.md#answeradminapiuserroleput) | **Put** /answer/admin/api/user/role | update user role -*AdminApi* | [**AnswerAdminApiUserStatusPut**](docs/AdminApi.md#answeradminapiuserstatusput) | **Put** /answer/admin/api/user/status | update user -*AdminApi* | [**AnswerAdminApiUsersActivationPost**](docs/AdminApi.md#answeradminapiusersactivationpost) | **Post** /answer/admin/api/users/activation | send user activation -*AdminApi* | [**AnswerAdminApiUsersPageGet**](docs/AdminApi.md#answeradminapiuserspageget) | **Get** /answer/admin/api/users/page | get user page -*AdminPluginApi* | [**AnswerAdminApiPluginConfigGet**](docs/AdminPluginApi.md#answeradminapipluginconfigget) | **Get** /answer/admin/api/plugin/config | get plugin config -*AdminPluginApi* | [**AnswerAdminApiPluginConfigPut**](docs/AdminPluginApi.md#answeradminapipluginconfigput) | **Put** /answer/admin/api/plugin/config | update plugin config -*AdminPluginApi* | [**AnswerAdminApiPluginStatusPut**](docs/AdminPluginApi.md#answeradminapipluginstatusput) | **Put** /answer/admin/api/plugin/status | update plugin status -*AdminPluginApi* | [**AnswerAdminApiPluginsGet**](docs/AdminPluginApi.md#answeradminapipluginsget) | **Get** /answer/admin/api/plugins | get plugin list -*ApiAnswerApi* | [**AnswerApiV1AnswerAcceptancePost**](docs/ApiAnswerApi.md#answerapiv1answeracceptancepost) | **Post** /answer/api/v1/answer/acceptance | Accepted -*ApiAnswerApi* | [**AnswerApiV1AnswerDelete**](docs/ApiAnswerApi.md#answerapiv1answerdelete) | **Delete** /answer/api/v1/answer | delete answer -*ApiAnswerApi* | [**AnswerApiV1AnswerInfoGet**](docs/ApiAnswerApi.md#answerapiv1answerinfoget) | **Get** /answer/api/v1/answer/info | Get Answer -*ApiAnswerApi* | [**AnswerApiV1AnswerPageGet**](docs/ApiAnswerApi.md#answerapiv1answerpageget) | **Get** /answer/api/v1/answer/page | AnswerList -*ApiAnswerApi* | [**AnswerApiV1AnswerPost**](docs/ApiAnswerApi.md#answerapiv1answerpost) | **Post** /answer/api/v1/answer | Insert Answer -*ApiAnswerApi* | [**AnswerApiV1AnswerPut**](docs/ApiAnswerApi.md#answerapiv1answerput) | **Put** /answer/api/v1/answer | Update Answer -*CollectionApi* | [**AnswerApiV1CollectionSwitchPost**](docs/CollectionApi.md#answerapiv1collectionswitchpost) | **Post** /answer/api/v1/collection/switch | add collection -*CollectionApi* | [**AnswerApiV1PersonalCollectionPageGet**](docs/CollectionApi.md#answerapiv1personalcollectionpageget) | **Get** /answer/api/v1/personal/collection/page | list personal collections -*CommentApi* | [**AnswerApiV1ActivityTimelineDetailGet**](docs/CommentApi.md#answerapiv1activitytimelinedetailget) | **Get** /answer/api/v1/activity/timeline/detail | get object timeline detail -*CommentApi* | [**AnswerApiV1ActivityTimelineGet**](docs/CommentApi.md#answerapiv1activitytimelineget) | **Get** /answer/api/v1/activity/timeline | get object timeline -*CommentApi* | [**AnswerApiV1CommentDelete**](docs/CommentApi.md#answerapiv1commentdelete) | **Delete** /answer/api/v1/comment | remove comment -*CommentApi* | [**AnswerApiV1CommentGet**](docs/CommentApi.md#answerapiv1commentget) | **Get** /answer/api/v1/comment | get comment by id -*CommentApi* | [**AnswerApiV1CommentPageGet**](docs/CommentApi.md#answerapiv1commentpageget) | **Get** /answer/api/v1/comment/page | get comment page -*CommentApi* | [**AnswerApiV1CommentPost**](docs/CommentApi.md#answerapiv1commentpost) | **Post** /answer/api/v1/comment | add comment -*CommentApi* | [**AnswerApiV1CommentPut**](docs/CommentApi.md#answerapiv1commentput) | **Put** /answer/api/v1/comment | update comment -*CommentApi* | [**AnswerApiV1PersonalCommentPageGet**](docs/CommentApi.md#answerapiv1personalcommentpageget) | **Get** /answer/api/v1/personal/comment/page | user personal comment list -*InstallationApi* | [**InstallationBaseInfoPost**](docs/InstallationApi.md#installationbaseinfopost) | **Post** /installation/base-info | init base info -*InstallationApi* | [**InstallationConfigFileCheckPost**](docs/InstallationApi.md#installationconfigfilecheckpost) | **Post** /installation/config-file/check | check config file if exist when installation -*InstallationApi* | [**InstallationDbCheckPost**](docs/InstallationApi.md#installationdbcheckpost) | **Post** /installation/db/check | check database if exist when installation -*InstallationApi* | [**InstallationInitPost**](docs/InstallationApi.md#installationinitpost) | **Post** /installation/init | init environment -*InstallationApi* | [**RootGet**](docs/InstallationApi.md#rootget) | **Get** / | if config file not exist try to redirect to install page -*LangApi* | [**AnswerAdminApiLanguageOptionsGet**](docs/LangApi.md#answeradminapilanguageoptionsget) | **Get** /answer/admin/api/language/options | Get language options -*LangApi* | [**AnswerApiV1LanguageConfigGet**](docs/LangApi.md#answerapiv1languageconfigget) | **Get** /answer/api/v1/language/config | get language config mapping -*LangApi* | [**AnswerApiV1LanguageOptionsGet**](docs/LangApi.md#answerapiv1languageoptionsget) | **Get** /answer/api/v1/language/options | Get language options -*LangApi* | [**InstallationLanguageOptionsGet**](docs/LangApi.md#installationlanguageoptionsget) | **Get** /installation/language/options | get installation language options -*NotificationApi* | [**AnswerApiV1NotificationPageGet**](docs/NotificationApi.md#answerapiv1notificationpageget) | **Get** /answer/api/v1/notification/page | get notification list -*NotificationApi* | [**AnswerApiV1NotificationReadStateAllPut**](docs/NotificationApi.md#answerapiv1notificationreadstateallput) | **Put** /answer/api/v1/notification/read/state/all | ClearUnRead -*NotificationApi* | [**AnswerApiV1NotificationReadStatePut**](docs/NotificationApi.md#answerapiv1notificationreadstateput) | **Put** /answer/api/v1/notification/read/state | ClearUnRead -*NotificationApi* | [**AnswerApiV1NotificationStatusGet**](docs/NotificationApi.md#answerapiv1notificationstatusget) | **Get** /answer/api/v1/notification/status | GetRedDot -*NotificationApi* | [**AnswerApiV1NotificationStatusPut**](docs/NotificationApi.md#answerapiv1notificationstatusput) | **Put** /answer/api/v1/notification/status | DelRedDot -*PermissionApi* | [**AnswerApiV1PermissionGet**](docs/PermissionApi.md#answerapiv1permissionget) | **Get** /answer/api/v1/permission | check user permission -*PersonalApi* | [**AnswerApiV1PersonalAnswerPageGet**](docs/PersonalApi.md#answerapiv1personalanswerpageget) | **Get** /answer/api/v1/personal/answer/page | list personal answers -*PersonalApi* | [**PersonalQuestionPageGet**](docs/PersonalApi.md#personalquestionpageget) | **Get** /personal/question/page | list personal questions -*PluginConnectorApi* | [**AnswerApiV1ConnectorBindingEmailPost**](docs/PluginConnectorApi.md#answerapiv1connectorbindingemailpost) | **Post** /answer/api/v1/connector/binding/email | external login binding user send email -*PluginConnectorApi* | [**AnswerApiV1ConnectorInfoGet**](docs/PluginConnectorApi.md#answerapiv1connectorinfoget) | **Get** /answer/api/v1/connector/info | get all enabled connectors -*PluginConnectorApi* | [**AnswerApiV1ConnectorUserInfoGet**](docs/PluginConnectorApi.md#answerapiv1connectoruserinfoget) | **Get** /answer/api/v1/connector/user/info | get all connectors info about user -*PluginConnectorApi* | [**AnswerApiV1ConnectorUserUnbindingDelete**](docs/PluginConnectorApi.md#answerapiv1connectoruserunbindingdelete) | **Delete** /answer/api/v1/connector/user/unbinding | unbind external user login -*QuestionApi* | [**AnswerApiV1PersonalQaTopGet**](docs/QuestionApi.md#answerapiv1personalqatopget) | **Get** /answer/api/v1/personal/qa/top | UserTop -*QuestionApi* | [**AnswerApiV1QuestionAnswerPost**](docs/QuestionApi.md#answerapiv1questionanswerpost) | **Post** /answer/api/v1/question/answer | add question and answer -*QuestionApi* | [**AnswerApiV1QuestionDelete**](docs/QuestionApi.md#answerapiv1questiondelete) | **Delete** /answer/api/v1/question | delete question -*QuestionApi* | [**AnswerApiV1QuestionInfoGet**](docs/QuestionApi.md#answerapiv1questioninfoget) | **Get** /answer/api/v1/question/info | get question details -*QuestionApi* | [**AnswerApiV1QuestionInviteGet**](docs/QuestionApi.md#answerapiv1questioninviteget) | **Get** /answer/api/v1/question/invite | get question invite user info -*QuestionApi* | [**AnswerApiV1QuestionInvitePut**](docs/QuestionApi.md#answerapiv1questioninviteput) | **Put** /answer/api/v1/question/invite | update question invite user -*QuestionApi* | [**AnswerApiV1QuestionOperationPut**](docs/QuestionApi.md#answerapiv1questionoperationput) | **Put** /answer/api/v1/question/operation | Operation question -*QuestionApi* | [**AnswerApiV1QuestionPageGet**](docs/QuestionApi.md#answerapiv1questionpageget) | **Get** /answer/api/v1/question/page | get questions by page -*QuestionApi* | [**AnswerApiV1QuestionPost**](docs/QuestionApi.md#answerapiv1questionpost) | **Post** /answer/api/v1/question | add question -*QuestionApi* | [**AnswerApiV1QuestionPut**](docs/QuestionApi.md#answerapiv1questionput) | **Put** /answer/api/v1/question | update question -*QuestionApi* | [**AnswerApiV1QuestionReopenPut**](docs/QuestionApi.md#answerapiv1questionreopenput) | **Put** /answer/api/v1/question/reopen | reopen question -*QuestionApi* | [**AnswerApiV1QuestionSimilarGet**](docs/QuestionApi.md#answerapiv1questionsimilarget) | **Get** /answer/api/v1/question/similar | add question title like -*QuestionApi* | [**AnswerApiV1QuestionSimilarTagGet**](docs/QuestionApi.md#answerapiv1questionsimilartagget) | **Get** /answer/api/v1/question/similar/tag | Search Similar Question -*QuestionApi* | [**AnswerApiV1QuestionStatusPut**](docs/QuestionApi.md#answerapiv1questionstatusput) | **Put** /answer/api/v1/question/status | Close question -*RankApi* | [**AnswerApiV1PersonalRankPageGet**](docs/RankApi.md#answerapiv1personalrankpageget) | **Get** /answer/api/v1/personal/rank/page | user personal rank list -*ReasonApi* | [**AnswerAdminApiReasonsGet**](docs/ReasonApi.md#answeradminapireasonsget) | **Get** /answer/admin/api/reasons | get reasons by object type and action -*ReasonApi* | [**AnswerApiV1ReasonsGet**](docs/ReasonApi.md#answerapiv1reasonsget) | **Get** /answer/api/v1/reasons | get reasons by object type and action -*ReportApi* | [**AnswerApiV1ReportPost**](docs/ReportApi.md#answerapiv1reportpost) | **Post** /answer/api/v1/report | add report -*RevisionApi* | [**AnswerApiV1RevisionsAuditPut**](docs/RevisionApi.md#answerapiv1revisionsauditput) | **Put** /answer/api/v1/revisions/audit | revision audit -*RevisionApi* | [**AnswerApiV1RevisionsEditCheckGet**](docs/RevisionApi.md#answerapiv1revisionseditcheckget) | **Get** /answer/api/v1/revisions/edit/check | check can update revision -*RevisionApi* | [**AnswerApiV1RevisionsGet**](docs/RevisionApi.md#answerapiv1revisionsget) | **Get** /answer/api/v1/revisions | get revision list -*RevisionApi* | [**AnswerApiV1RevisionsUnreviewedGet**](docs/RevisionApi.md#answerapiv1revisionsunreviewedget) | **Get** /answer/api/v1/revisions/unreviewed | get unreviewed revision list -*SearchApi* | [**AnswerApiV1SearchGet**](docs/SearchApi.md#answerapiv1searchget) | **Get** /answer/api/v1/search | search object -*SiteApi* | [**AnswerApiV1SiteinfoGet**](docs/SiteApi.md#answerapiv1siteinfoget) | **Get** /answer/api/v1/siteinfo | get site info -*SiteApi* | [**AnswerApiV1SiteinfoLegalGet**](docs/SiteApi.md#answerapiv1siteinfolegalget) | **Get** /answer/api/v1/siteinfo/legal | get site legal info -*SiteApi* | [**CustomCssGet**](docs/SiteApi.md#customcssget) | **Get** /custom.css | get site robots information -*SiteApi* | [**RobotsTxtGet**](docs/SiteApi.md#robotstxtget) | **Get** /robots.txt | get site robots information -*TagApi* | [**AnswerApiV1QuestionTagsGet**](docs/TagApi.md#answerapiv1questiontagsget) | **Get** /answer/api/v1/question/tags | get tag list -*TagApi* | [**AnswerApiV1TagDelete**](docs/TagApi.md#answerapiv1tagdelete) | **Delete** /answer/api/v1/tag | delete tag -*TagApi* | [**AnswerApiV1TagGet**](docs/TagApi.md#answerapiv1tagget) | **Get** /answer/api/v1/tag | get tag one -*TagApi* | [**AnswerApiV1TagPost**](docs/TagApi.md#answerapiv1tagpost) | **Post** /answer/api/v1/tag | add tag -*TagApi* | [**AnswerApiV1TagPut**](docs/TagApi.md#answerapiv1tagput) | **Put** /answer/api/v1/tag | update tag -*TagApi* | [**AnswerApiV1TagSynonymPut**](docs/TagApi.md#answerapiv1tagsynonymput) | **Put** /answer/api/v1/tag/synonym | update tag -*TagApi* | [**AnswerApiV1TagSynonymsGet**](docs/TagApi.md#answerapiv1tagsynonymsget) | **Get** /answer/api/v1/tag/synonyms | get tag synonyms -*TagApi* | [**AnswerApiV1TagsFollowingGet**](docs/TagApi.md#answerapiv1tagsfollowingget) | **Get** /answer/api/v1/tags/following | get following tag list -*TagApi* | [**AnswerApiV1TagsGet**](docs/TagApi.md#answerapiv1tagsget) | **Get** /answer/api/v1/tags | get tags list -*TagApi* | [**AnswerApiV1TagsPageGet**](docs/TagApi.md#answerapiv1tagspageget) | **Get** /answer/api/v1/tags/page | get tag page -*UploadApi* | [**AnswerApiV1FilePost**](docs/UploadApi.md#answerapiv1filepost) | **Post** /answer/api/v1/file | upload file -*UploadApi* | [**AnswerApiV1PostRenderPost**](docs/UploadApi.md#answerapiv1postrenderpost) | **Post** /answer/api/v1/post/render | render post content -*UserApi* | [**AnswerApiV1PersonalUserInfoGet**](docs/UserApi.md#answerapiv1personaluserinfoget) | **Get** /answer/api/v1/personal/user/info | GetOtherUserInfoByUsername -*UserApi* | [**AnswerApiV1UserActionRecordGet**](docs/UserApi.md#answerapiv1useractionrecordget) | **Get** /answer/api/v1/user/action/record | ActionRecord -*UserApi* | [**AnswerApiV1UserEmailChangeCodePost**](docs/UserApi.md#answerapiv1useremailchangecodepost) | **Post** /answer/api/v1/user/email/change/code | send email to the user email then change their email -*UserApi* | [**AnswerApiV1UserEmailNotificationPut**](docs/UserApi.md#answerapiv1useremailnotificationput) | **Put** /answer/api/v1/user/email/notification | unsubscribe email notification -*UserApi* | [**AnswerApiV1UserEmailPut**](docs/UserApi.md#answerapiv1useremailput) | **Put** /answer/api/v1/user/email | user change email verification -*UserApi* | [**AnswerApiV1UserEmailVerificationPost**](docs/UserApi.md#answerapiv1useremailverificationpost) | **Post** /answer/api/v1/user/email/verification | UserVerifyEmail -*UserApi* | [**AnswerApiV1UserEmailVerificationSendPost**](docs/UserApi.md#answerapiv1useremailverificationsendpost) | **Post** /answer/api/v1/user/email/verification/send | UserVerifyEmailSend -*UserApi* | [**AnswerApiV1UserInfoGet**](docs/UserApi.md#answerapiv1userinfoget) | **Get** /answer/api/v1/user/info | GetUserInfoByUserID -*UserApi* | [**AnswerApiV1UserInfoPut**](docs/UserApi.md#answerapiv1userinfoput) | **Put** /answer/api/v1/user/info | UserUpdateInfo update user info -*UserApi* | [**AnswerApiV1UserInfoSearchGet**](docs/UserApi.md#answerapiv1userinfosearchget) | **Get** /answer/api/v1/user/info/search | SearchUserListByName -*UserApi* | [**AnswerApiV1UserInterfacePut**](docs/UserApi.md#answerapiv1userinterfaceput) | **Put** /answer/api/v1/user/interface | UserUpdateInterface update user interface config -*UserApi* | [**AnswerApiV1UserLoginEmailPost**](docs/UserApi.md#answerapiv1userloginemailpost) | **Post** /answer/api/v1/user/login/email | UserEmailLogin -*UserApi* | [**AnswerApiV1UserLogoutGet**](docs/UserApi.md#answerapiv1userlogoutget) | **Get** /answer/api/v1/user/logout | user logout -*UserApi* | [**AnswerApiV1UserNoticeSetPost**](docs/UserApi.md#answerapiv1usernoticesetpost) | **Post** /answer/api/v1/user/notice/set | UserNoticeSet -*UserApi* | [**AnswerApiV1UserPasswordPut**](docs/UserApi.md#answerapiv1userpasswordput) | **Put** /answer/api/v1/user/password | UserModifyPassWord -*UserApi* | [**AnswerApiV1UserPasswordReplacementPost**](docs/UserApi.md#answerapiv1userpasswordreplacementpost) | **Post** /answer/api/v1/user/password/replacement | UseRePassWord -*UserApi* | [**AnswerApiV1UserPasswordResetPost**](docs/UserApi.md#answerapiv1userpasswordresetpost) | **Post** /answer/api/v1/user/password/reset | RetrievePassWord -*UserApi* | [**AnswerApiV1UserRankingGet**](docs/UserApi.md#answerapiv1userrankingget) | **Get** /answer/api/v1/user/ranking | get user ranking -*UserApi* | [**AnswerApiV1UserRegisterCaptchaGet**](docs/UserApi.md#answerapiv1userregistercaptchaget) | **Get** /answer/api/v1/user/register/captcha | UserRegisterCaptcha -*UserApi* | [**AnswerApiV1UserRegisterEmailPost**](docs/UserApi.md#answerapiv1userregisteremailpost) | **Post** /answer/api/v1/user/register/email | UserRegisterByEmail +*ActivityAPI* | [**AnswerApiV1FollowPost**](docs/ActivityAPI.md#answerapiv1followpost) | **Post** /answer/api/v1/follow | follow object or cancel follow operation +*ActivityAPI* | [**AnswerApiV1FollowTagsPut**](docs/ActivityAPI.md#answerapiv1followtagsput) | **Put** /answer/api/v1/follow/tags | update user follow tags +*ActivityAPI* | [**AnswerApiV1PersonalVotePageGet**](docs/ActivityAPI.md#answerapiv1personalvotepageget) | **Get** /answer/api/v1/personal/vote/page | get user personal votes +*ActivityAPI* | [**AnswerApiV1VoteDownPost**](docs/ActivityAPI.md#answerapiv1votedownpost) | **Post** /answer/api/v1/vote/down | vote down +*ActivityAPI* | [**AnswerApiV1VoteUpPost**](docs/ActivityAPI.md#answerapiv1voteuppost) | **Post** /answer/api/v1/vote/up | vote up +*AdminAPI* | [**AnswerAdminApiAnswerPageGet**](docs/AdminAPI.md#answeradminapianswerpageget) | **Get** /answer/admin/api/answer/page | AdminAnswerPage admin answer page +*AdminAPI* | [**AnswerAdminApiAnswerStatusPut**](docs/AdminAPI.md#answeradminapianswerstatusput) | **Put** /answer/admin/api/answer/status | AdminSetAnswerStatus +*AdminAPI* | [**AnswerAdminApiDashboardGet**](docs/AdminAPI.md#answeradminapidashboardget) | **Get** /answer/admin/api/dashboard | DashboardInfo +*AdminAPI* | [**AnswerAdminApiQuestionPageGet**](docs/AdminAPI.md#answeradminapiquestionpageget) | **Get** /answer/admin/api/question/page | AdminQuestionPage admin question page +*AdminAPI* | [**AnswerAdminApiQuestionStatusPut**](docs/AdminAPI.md#answeradminapiquestionstatusput) | **Put** /answer/admin/api/question/status | AdminSetQuestionStatus +*AdminAPI* | [**AnswerAdminApiReportPut**](docs/AdminAPI.md#answeradminapireportput) | **Put** /answer/admin/api/report/ | handle flag +*AdminAPI* | [**AnswerAdminApiReportsPageGet**](docs/AdminAPI.md#answeradminapireportspageget) | **Get** /answer/admin/api/reports/page | list report page +*AdminAPI* | [**AnswerAdminApiRolesGet**](docs/AdminAPI.md#answeradminapirolesget) | **Get** /answer/admin/api/roles | get role list +*AdminAPI* | [**AnswerAdminApiSettingPrivilegesGet**](docs/AdminAPI.md#answeradminapisettingprivilegesget) | **Get** /answer/admin/api/setting/privileges | GetPrivilegesConfig get privileges config +*AdminAPI* | [**AnswerAdminApiSettingPrivilegesPut**](docs/AdminAPI.md#answeradminapisettingprivilegesput) | **Put** /answer/admin/api/setting/privileges | update privileges config +*AdminAPI* | [**AnswerAdminApiSettingSmtpGet**](docs/AdminAPI.md#answeradminapisettingsmtpget) | **Get** /answer/admin/api/setting/smtp | GetSMTPConfig get smtp config +*AdminAPI* | [**AnswerAdminApiSettingSmtpPut**](docs/AdminAPI.md#answeradminapisettingsmtpput) | **Put** /answer/admin/api/setting/smtp | update smtp config +*AdminAPI* | [**AnswerAdminApiSiteinfoBrandingGet**](docs/AdminAPI.md#answeradminapisiteinfobrandingget) | **Get** /answer/admin/api/siteinfo/branding | get site interface +*AdminAPI* | [**AnswerAdminApiSiteinfoBrandingPut**](docs/AdminAPI.md#answeradminapisiteinfobrandingput) | **Put** /answer/admin/api/siteinfo/branding | update site info branding +*AdminAPI* | [**AnswerAdminApiSiteinfoCustomCssHtmlGet**](docs/AdminAPI.md#answeradminapisiteinfocustomcsshtmlget) | **Get** /answer/admin/api/siteinfo/custom-css-html | get site info custom html css config +*AdminAPI* | [**AnswerAdminApiSiteinfoCustomCssHtmlPut**](docs/AdminAPI.md#answeradminapisiteinfocustomcsshtmlput) | **Put** /answer/admin/api/siteinfo/custom-css-html | update site custom css html config +*AdminAPI* | [**AnswerAdminApiSiteinfoGeneralGet**](docs/AdminAPI.md#answeradminapisiteinfogeneralget) | **Get** /answer/admin/api/siteinfo/general | get site general information +*AdminAPI* | [**AnswerAdminApiSiteinfoGeneralPut**](docs/AdminAPI.md#answeradminapisiteinfogeneralput) | **Put** /answer/admin/api/siteinfo/general | update site general information +*AdminAPI* | [**AnswerAdminApiSiteinfoInterfaceGet**](docs/AdminAPI.md#answeradminapisiteinfointerfaceget) | **Get** /answer/admin/api/siteinfo/interface | get site interface +*AdminAPI* | [**AnswerAdminApiSiteinfoInterfacePut**](docs/AdminAPI.md#answeradminapisiteinfointerfaceput) | **Put** /answer/admin/api/siteinfo/interface | update site info interface +*AdminAPI* | [**AnswerAdminApiSiteinfoLegalGet**](docs/AdminAPI.md#answeradminapisiteinfolegalget) | **Get** /answer/admin/api/siteinfo/legal | Set the legal information for the site +*AdminAPI* | [**AnswerAdminApiSiteinfoLegalPut**](docs/AdminAPI.md#answeradminapisiteinfolegalput) | **Put** /answer/admin/api/siteinfo/legal | update site legal info +*AdminAPI* | [**AnswerAdminApiSiteinfoLoginGet**](docs/AdminAPI.md#answeradminapisiteinfologinget) | **Get** /answer/admin/api/siteinfo/login | get site info login config +*AdminAPI* | [**AnswerAdminApiSiteinfoLoginPut**](docs/AdminAPI.md#answeradminapisiteinfologinput) | **Put** /answer/admin/api/siteinfo/login | update site login +*AdminAPI* | [**AnswerAdminApiSiteinfoSeoGet**](docs/AdminAPI.md#answeradminapisiteinfoseoget) | **Get** /answer/admin/api/siteinfo/seo | get site seo information +*AdminAPI* | [**AnswerAdminApiSiteinfoSeoPut**](docs/AdminAPI.md#answeradminapisiteinfoseoput) | **Put** /answer/admin/api/siteinfo/seo | update site seo information +*AdminAPI* | [**AnswerAdminApiSiteinfoThemeGet**](docs/AdminAPI.md#answeradminapisiteinfothemeget) | **Get** /answer/admin/api/siteinfo/theme | get site info theme config +*AdminAPI* | [**AnswerAdminApiSiteinfoThemePut**](docs/AdminAPI.md#answeradminapisiteinfothemeput) | **Put** /answer/admin/api/siteinfo/theme | update site custom css html config +*AdminAPI* | [**AnswerAdminApiSiteinfoUsersGet**](docs/AdminAPI.md#answeradminapisiteinfousersget) | **Get** /answer/admin/api/siteinfo/users | get site user config +*AdminAPI* | [**AnswerAdminApiSiteinfoUsersPut**](docs/AdminAPI.md#answeradminapisiteinfousersput) | **Put** /answer/admin/api/siteinfo/users | update site info config about users +*AdminAPI* | [**AnswerAdminApiSiteinfoWriteGet**](docs/AdminAPI.md#answeradminapisiteinfowriteget) | **Get** /answer/admin/api/siteinfo/write | get site interface +*AdminAPI* | [**AnswerAdminApiSiteinfoWritePut**](docs/AdminAPI.md#answeradminapisiteinfowriteput) | **Put** /answer/admin/api/siteinfo/write | update site write info +*AdminAPI* | [**AnswerAdminApiThemeOptionsGet**](docs/AdminAPI.md#answeradminapithemeoptionsget) | **Get** /answer/admin/api/theme/options | Get theme options +*AdminAPI* | [**AnswerAdminApiUserActivationGet**](docs/AdminAPI.md#answeradminapiuseractivationget) | **Get** /answer/admin/api/user/activation | get user activation +*AdminAPI* | [**AnswerAdminApiUserPasswordPut**](docs/AdminAPI.md#answeradminapiuserpasswordput) | **Put** /answer/admin/api/user/password | update user password +*AdminAPI* | [**AnswerAdminApiUserPost**](docs/AdminAPI.md#answeradminapiuserpost) | **Post** /answer/admin/api/user | add user +*AdminAPI* | [**AnswerAdminApiUserRolePut**](docs/AdminAPI.md#answeradminapiuserroleput) | **Put** /answer/admin/api/user/role | update user role +*AdminAPI* | [**AnswerAdminApiUserStatusPut**](docs/AdminAPI.md#answeradminapiuserstatusput) | **Put** /answer/admin/api/user/status | update user +*AdminAPI* | [**AnswerAdminApiUsersActivationPost**](docs/AdminAPI.md#answeradminapiusersactivationpost) | **Post** /answer/admin/api/users/activation | send user activation +*AdminAPI* | [**AnswerAdminApiUsersPageGet**](docs/AdminAPI.md#answeradminapiuserspageget) | **Get** /answer/admin/api/users/page | get user page +*AdminAPI* | [**AnswerAdminApiUsersPost**](docs/AdminAPI.md#answeradminapiuserspost) | **Post** /answer/admin/api/users | add users +*AdminPluginAPI* | [**AnswerAdminApiPluginConfigGet**](docs/AdminPluginAPI.md#answeradminapipluginconfigget) | **Get** /answer/admin/api/plugin/config | get plugin config +*AdminPluginAPI* | [**AnswerAdminApiPluginConfigPut**](docs/AdminPluginAPI.md#answeradminapipluginconfigput) | **Put** /answer/admin/api/plugin/config | update plugin config +*AdminPluginAPI* | [**AnswerAdminApiPluginStatusPut**](docs/AdminPluginAPI.md#answeradminapipluginstatusput) | **Put** /answer/admin/api/plugin/status | update plugin status +*AdminPluginAPI* | [**AnswerAdminApiPluginsGet**](docs/AdminPluginAPI.md#answeradminapipluginsget) | **Get** /answer/admin/api/plugins | get plugin list +*ApiAnswerAPI* | [**AnswerApiV1AnswerAcceptancePost**](docs/ApiAnswerAPI.md#answerapiv1answeracceptancepost) | **Post** /answer/api/v1/answer/acceptance | Accepted +*ApiAnswerAPI* | [**AnswerApiV1AnswerDelete**](docs/ApiAnswerAPI.md#answerapiv1answerdelete) | **Delete** /answer/api/v1/answer | delete answer +*ApiAnswerAPI* | [**AnswerApiV1AnswerInfoGet**](docs/ApiAnswerAPI.md#answerapiv1answerinfoget) | **Get** /answer/api/v1/answer/info | Get Answer +*ApiAnswerAPI* | [**AnswerApiV1AnswerPageGet**](docs/ApiAnswerAPI.md#answerapiv1answerpageget) | **Get** /answer/api/v1/answer/page | AnswerList +*ApiAnswerAPI* | [**AnswerApiV1AnswerPost**](docs/ApiAnswerAPI.md#answerapiv1answerpost) | **Post** /answer/api/v1/answer | Insert Answer +*ApiAnswerAPI* | [**AnswerApiV1AnswerPut**](docs/ApiAnswerAPI.md#answerapiv1answerput) | **Put** /answer/api/v1/answer | Update Answer +*CollectionAPI* | [**AnswerApiV1CollectionSwitchPost**](docs/CollectionAPI.md#answerapiv1collectionswitchpost) | **Post** /answer/api/v1/collection/switch | add collection +*CollectionAPI* | [**AnswerApiV1PersonalCollectionPageGet**](docs/CollectionAPI.md#answerapiv1personalcollectionpageget) | **Get** /answer/api/v1/personal/collection/page | list personal collections +*CommentAPI* | [**AnswerApiV1ActivityTimelineDetailGet**](docs/CommentAPI.md#answerapiv1activitytimelinedetailget) | **Get** /answer/api/v1/activity/timeline/detail | get object timeline detail +*CommentAPI* | [**AnswerApiV1ActivityTimelineGet**](docs/CommentAPI.md#answerapiv1activitytimelineget) | **Get** /answer/api/v1/activity/timeline | get object timeline +*CommentAPI* | [**AnswerApiV1CommentDelete**](docs/CommentAPI.md#answerapiv1commentdelete) | **Delete** /answer/api/v1/comment | remove comment +*CommentAPI* | [**AnswerApiV1CommentGet**](docs/CommentAPI.md#answerapiv1commentget) | **Get** /answer/api/v1/comment | get comment by id +*CommentAPI* | [**AnswerApiV1CommentPageGet**](docs/CommentAPI.md#answerapiv1commentpageget) | **Get** /answer/api/v1/comment/page | get comment page +*CommentAPI* | [**AnswerApiV1CommentPost**](docs/CommentAPI.md#answerapiv1commentpost) | **Post** /answer/api/v1/comment | add comment +*CommentAPI* | [**AnswerApiV1CommentPut**](docs/CommentAPI.md#answerapiv1commentput) | **Put** /answer/api/v1/comment | update comment +*CommentAPI* | [**AnswerApiV1PersonalCommentPageGet**](docs/CommentAPI.md#answerapiv1personalcommentpageget) | **Get** /answer/api/v1/personal/comment/page | user personal comment list +*InstallationAPI* | [**InstallationBaseInfoPost**](docs/InstallationAPI.md#installationbaseinfopost) | **Post** /installation/base-info | init base info +*InstallationAPI* | [**InstallationConfigFileCheckPost**](docs/InstallationAPI.md#installationconfigfilecheckpost) | **Post** /installation/config-file/check | check config file if exist when installation +*InstallationAPI* | [**InstallationDbCheckPost**](docs/InstallationAPI.md#installationdbcheckpost) | **Post** /installation/db/check | check database if exist when installation +*InstallationAPI* | [**InstallationInitPost**](docs/InstallationAPI.md#installationinitpost) | **Post** /installation/init | init environment +*InstallationAPI* | [**RootGet**](docs/InstallationAPI.md#rootget) | **Get** / | if config file not exist try to redirect to install page +*LangAPI* | [**AnswerAdminApiLanguageOptionsGet**](docs/LangAPI.md#answeradminapilanguageoptionsget) | **Get** /answer/admin/api/language/options | Get language options +*LangAPI* | [**AnswerApiV1LanguageConfigGet**](docs/LangAPI.md#answerapiv1languageconfigget) | **Get** /answer/api/v1/language/config | get language config mapping +*LangAPI* | [**AnswerApiV1LanguageOptionsGet**](docs/LangAPI.md#answerapiv1languageoptionsget) | **Get** /answer/api/v1/language/options | Get language options +*LangAPI* | [**InstallationLanguageOptionsGet**](docs/LangAPI.md#installationlanguageoptionsget) | **Get** /installation/language/options | get installation language options +*NotificationAPI* | [**AnswerApiV1NotificationPageGet**](docs/NotificationAPI.md#answerapiv1notificationpageget) | **Get** /answer/api/v1/notification/page | get notification list +*NotificationAPI* | [**AnswerApiV1NotificationReadStateAllPut**](docs/NotificationAPI.md#answerapiv1notificationreadstateallput) | **Put** /answer/api/v1/notification/read/state/all | ClearUnRead +*NotificationAPI* | [**AnswerApiV1NotificationReadStatePut**](docs/NotificationAPI.md#answerapiv1notificationreadstateput) | **Put** /answer/api/v1/notification/read/state | ClearUnRead +*NotificationAPI* | [**AnswerApiV1NotificationStatusGet**](docs/NotificationAPI.md#answerapiv1notificationstatusget) | **Get** /answer/api/v1/notification/status | GetRedDot +*NotificationAPI* | [**AnswerApiV1NotificationStatusPut**](docs/NotificationAPI.md#answerapiv1notificationstatusput) | **Put** /answer/api/v1/notification/status | DelRedDot +*PermissionAPI* | [**AnswerApiV1PermissionGet**](docs/PermissionAPI.md#answerapiv1permissionget) | **Get** /answer/api/v1/permission | check user permission +*PersonalAPI* | [**AnswerApiV1PersonalAnswerPageGet**](docs/PersonalAPI.md#answerapiv1personalanswerpageget) | **Get** /answer/api/v1/personal/answer/page | list personal answers +*PersonalAPI* | [**PersonalQuestionPageGet**](docs/PersonalAPI.md#personalquestionpageget) | **Get** /personal/question/page | list personal questions +*PluginConnectorAPI* | [**AnswerApiV1ConnectorBindingEmailPost**](docs/PluginConnectorAPI.md#answerapiv1connectorbindingemailpost) | **Post** /answer/api/v1/connector/binding/email | external login binding user send email +*PluginConnectorAPI* | [**AnswerApiV1ConnectorInfoGet**](docs/PluginConnectorAPI.md#answerapiv1connectorinfoget) | **Get** /answer/api/v1/connector/info | get all enabled connectors +*PluginConnectorAPI* | [**AnswerApiV1ConnectorUserInfoGet**](docs/PluginConnectorAPI.md#answerapiv1connectoruserinfoget) | **Get** /answer/api/v1/connector/user/info | get all connectors info about user +*PluginConnectorAPI* | [**AnswerApiV1ConnectorUserUnbindingDelete**](docs/PluginConnectorAPI.md#answerapiv1connectoruserunbindingdelete) | **Delete** /answer/api/v1/connector/user/unbinding | unbind external user login +*QuestionAPI* | [**AnswerApiV1PersonalQaTopGet**](docs/QuestionAPI.md#answerapiv1personalqatopget) | **Get** /answer/api/v1/personal/qa/top | UserTop +*QuestionAPI* | [**AnswerApiV1QuestionAnswerPost**](docs/QuestionAPI.md#answerapiv1questionanswerpost) | **Post** /answer/api/v1/question/answer | add question and answer +*QuestionAPI* | [**AnswerApiV1QuestionDelete**](docs/QuestionAPI.md#answerapiv1questiondelete) | **Delete** /answer/api/v1/question | delete question +*QuestionAPI* | [**AnswerApiV1QuestionInfoGet**](docs/QuestionAPI.md#answerapiv1questioninfoget) | **Get** /answer/api/v1/question/info | get question details +*QuestionAPI* | [**AnswerApiV1QuestionInviteGet**](docs/QuestionAPI.md#answerapiv1questioninviteget) | **Get** /answer/api/v1/question/invite | get question invite user info +*QuestionAPI* | [**AnswerApiV1QuestionInvitePut**](docs/QuestionAPI.md#answerapiv1questioninviteput) | **Put** /answer/api/v1/question/invite | update question invite user +*QuestionAPI* | [**AnswerApiV1QuestionOperationPut**](docs/QuestionAPI.md#answerapiv1questionoperationput) | **Put** /answer/api/v1/question/operation | Operation question +*QuestionAPI* | [**AnswerApiV1QuestionPageGet**](docs/QuestionAPI.md#answerapiv1questionpageget) | **Get** /answer/api/v1/question/page | get questions by page +*QuestionAPI* | [**AnswerApiV1QuestionPost**](docs/QuestionAPI.md#answerapiv1questionpost) | **Post** /answer/api/v1/question | add question +*QuestionAPI* | [**AnswerApiV1QuestionPut**](docs/QuestionAPI.md#answerapiv1questionput) | **Put** /answer/api/v1/question | update question +*QuestionAPI* | [**AnswerApiV1QuestionReopenPut**](docs/QuestionAPI.md#answerapiv1questionreopenput) | **Put** /answer/api/v1/question/reopen | reopen question +*QuestionAPI* | [**AnswerApiV1QuestionSimilarGet**](docs/QuestionAPI.md#answerapiv1questionsimilarget) | **Get** /answer/api/v1/question/similar | fuzzy query similar questions based on title +*QuestionAPI* | [**AnswerApiV1QuestionSimilarTagGet**](docs/QuestionAPI.md#answerapiv1questionsimilartagget) | **Get** /answer/api/v1/question/similar/tag | Search Similar Question +*QuestionAPI* | [**AnswerApiV1QuestionStatusPut**](docs/QuestionAPI.md#answerapiv1questionstatusput) | **Put** /answer/api/v1/question/status | Close question +*RankAPI* | [**AnswerApiV1PersonalRankPageGet**](docs/RankAPI.md#answerapiv1personalrankpageget) | **Get** /answer/api/v1/personal/rank/page | user personal rank list +*ReasonAPI* | [**AnswerAdminApiReasonsGet**](docs/ReasonAPI.md#answeradminapireasonsget) | **Get** /answer/admin/api/reasons | get reasons by object type and action +*ReasonAPI* | [**AnswerApiV1ReasonsGet**](docs/ReasonAPI.md#answerapiv1reasonsget) | **Get** /answer/api/v1/reasons | get reasons by object type and action +*ReportAPI* | [**AnswerApiV1ReportPost**](docs/ReportAPI.md#answerapiv1reportpost) | **Post** /answer/api/v1/report | add report +*RevisionAPI* | [**AnswerApiV1RevisionsAuditPut**](docs/RevisionAPI.md#answerapiv1revisionsauditput) | **Put** /answer/api/v1/revisions/audit | revision audit +*RevisionAPI* | [**AnswerApiV1RevisionsEditCheckGet**](docs/RevisionAPI.md#answerapiv1revisionseditcheckget) | **Get** /answer/api/v1/revisions/edit/check | check can update revision +*RevisionAPI* | [**AnswerApiV1RevisionsGet**](docs/RevisionAPI.md#answerapiv1revisionsget) | **Get** /answer/api/v1/revisions | get revision list +*RevisionAPI* | [**AnswerApiV1RevisionsUnreviewedGet**](docs/RevisionAPI.md#answerapiv1revisionsunreviewedget) | **Get** /answer/api/v1/revisions/unreviewed | get unreviewed revision list +*SearchAPI* | [**AnswerApiV1SearchDescGet**](docs/SearchAPI.md#answerapiv1searchdescget) | **Get** /answer/api/v1/search/desc | get search description +*SearchAPI* | [**AnswerApiV1SearchGet**](docs/SearchAPI.md#answerapiv1searchget) | **Get** /answer/api/v1/search | search object +*SiteAPI* | [**AnswerApiV1SiteinfoGet**](docs/SiteAPI.md#answerapiv1siteinfoget) | **Get** /answer/api/v1/siteinfo | get site info +*SiteAPI* | [**AnswerApiV1SiteinfoLegalGet**](docs/SiteAPI.md#answerapiv1siteinfolegalget) | **Get** /answer/api/v1/siteinfo/legal | get site legal info +*SiteAPI* | [**CustomCssGet**](docs/SiteAPI.md#customcssget) | **Get** /custom.css | get site robots information +*SiteAPI* | [**RobotsTxtGet**](docs/SiteAPI.md#robotstxtget) | **Get** /robots.txt | get site robots information +*TagAPI* | [**AnswerApiV1QuestionTagsGet**](docs/TagAPI.md#answerapiv1questiontagsget) | **Get** /answer/api/v1/question/tags | get tag list +*TagAPI* | [**AnswerApiV1TagDelete**](docs/TagAPI.md#answerapiv1tagdelete) | **Delete** /answer/api/v1/tag | delete tag +*TagAPI* | [**AnswerApiV1TagGet**](docs/TagAPI.md#answerapiv1tagget) | **Get** /answer/api/v1/tag | get tag one +*TagAPI* | [**AnswerApiV1TagPost**](docs/TagAPI.md#answerapiv1tagpost) | **Post** /answer/api/v1/tag | add tag +*TagAPI* | [**AnswerApiV1TagPut**](docs/TagAPI.md#answerapiv1tagput) | **Put** /answer/api/v1/tag | update tag +*TagAPI* | [**AnswerApiV1TagSynonymPut**](docs/TagAPI.md#answerapiv1tagsynonymput) | **Put** /answer/api/v1/tag/synonym | update tag +*TagAPI* | [**AnswerApiV1TagSynonymsGet**](docs/TagAPI.md#answerapiv1tagsynonymsget) | **Get** /answer/api/v1/tag/synonyms | get tag synonyms +*TagAPI* | [**AnswerApiV1TagsFollowingGet**](docs/TagAPI.md#answerapiv1tagsfollowingget) | **Get** /answer/api/v1/tags/following | get following tag list +*TagAPI* | [**AnswerApiV1TagsGet**](docs/TagAPI.md#answerapiv1tagsget) | **Get** /answer/api/v1/tags | get tags list +*TagAPI* | [**AnswerApiV1TagsPageGet**](docs/TagAPI.md#answerapiv1tagspageget) | **Get** /answer/api/v1/tags/page | get tag page +*UploadAPI* | [**AnswerApiV1FilePost**](docs/UploadAPI.md#answerapiv1filepost) | **Post** /answer/api/v1/file | upload file +*UploadAPI* | [**AnswerApiV1PostRenderPost**](docs/UploadAPI.md#answerapiv1postrenderpost) | **Post** /answer/api/v1/post/render | render post content +*UserAPI* | [**AnswerApiV1PersonalUserInfoGet**](docs/UserAPI.md#answerapiv1personaluserinfoget) | **Get** /answer/api/v1/personal/user/info | GetOtherUserInfoByUsername +*UserAPI* | [**AnswerApiV1UserActionRecordGet**](docs/UserAPI.md#answerapiv1useractionrecordget) | **Get** /answer/api/v1/user/action/record | ActionRecord +*UserAPI* | [**AnswerApiV1UserEmailChangeCodePost**](docs/UserAPI.md#answerapiv1useremailchangecodepost) | **Post** /answer/api/v1/user/email/change/code | send email to the user email then change their email +*UserAPI* | [**AnswerApiV1UserEmailPut**](docs/UserAPI.md#answerapiv1useremailput) | **Put** /answer/api/v1/user/email | user change email verification +*UserAPI* | [**AnswerApiV1UserEmailVerificationPost**](docs/UserAPI.md#answerapiv1useremailverificationpost) | **Post** /answer/api/v1/user/email/verification | UserVerifyEmail +*UserAPI* | [**AnswerApiV1UserEmailVerificationSendPost**](docs/UserAPI.md#answerapiv1useremailverificationsendpost) | **Post** /answer/api/v1/user/email/verification/send | UserVerifyEmailSend +*UserAPI* | [**AnswerApiV1UserInfoGet**](docs/UserAPI.md#answerapiv1userinfoget) | **Get** /answer/api/v1/user/info | GetUserInfoByUserID +*UserAPI* | [**AnswerApiV1UserInfoPut**](docs/UserAPI.md#answerapiv1userinfoput) | **Put** /answer/api/v1/user/info | UserUpdateInfo update user info +*UserAPI* | [**AnswerApiV1UserInfoSearchGet**](docs/UserAPI.md#answerapiv1userinfosearchget) | **Get** /answer/api/v1/user/info/search | SearchUserListByName +*UserAPI* | [**AnswerApiV1UserInterfacePut**](docs/UserAPI.md#answerapiv1userinterfaceput) | **Put** /answer/api/v1/user/interface | UserUpdateInterface update user interface config +*UserAPI* | [**AnswerApiV1UserLoginEmailPost**](docs/UserAPI.md#answerapiv1userloginemailpost) | **Post** /answer/api/v1/user/login/email | UserEmailLogin +*UserAPI* | [**AnswerApiV1UserLogoutGet**](docs/UserAPI.md#answerapiv1userlogoutget) | **Get** /answer/api/v1/user/logout | user logout +*UserAPI* | [**AnswerApiV1UserNotificationConfigPost**](docs/UserAPI.md#answerapiv1usernotificationconfigpost) | **Post** /answer/api/v1/user/notification/config | get user's notification config +*UserAPI* | [**AnswerApiV1UserNotificationConfigPut**](docs/UserAPI.md#answerapiv1usernotificationconfigput) | **Put** /answer/api/v1/user/notification/config | update user's notification config +*UserAPI* | [**AnswerApiV1UserNotificationUnsubscribePut**](docs/UserAPI.md#answerapiv1usernotificationunsubscribeput) | **Put** /answer/api/v1/user/notification/unsubscribe | unsubscribe notification +*UserAPI* | [**AnswerApiV1UserPasswordPut**](docs/UserAPI.md#answerapiv1userpasswordput) | **Put** /answer/api/v1/user/password | UserModifyPassWord +*UserAPI* | [**AnswerApiV1UserPasswordReplacementPost**](docs/UserAPI.md#answerapiv1userpasswordreplacementpost) | **Post** /answer/api/v1/user/password/replacement | UseRePassWord +*UserAPI* | [**AnswerApiV1UserPasswordResetPost**](docs/UserAPI.md#answerapiv1userpasswordresetpost) | **Post** /answer/api/v1/user/password/reset | RetrievePassWord +*UserAPI* | [**AnswerApiV1UserRankingGet**](docs/UserAPI.md#answerapiv1userrankingget) | **Get** /answer/api/v1/user/ranking | get user ranking +*UserAPI* | [**AnswerApiV1UserRegisterCaptchaGet**](docs/UserAPI.md#answerapiv1userregistercaptchaget) | **Get** /answer/api/v1/user/register/captcha | UserRegisterCaptcha +*UserAPI* | [**AnswerApiV1UserRegisterEmailPost**](docs/UserAPI.md#answerapiv1userregisteremailpost) | **Post** /answer/api/v1/user/register/email | UserRegisterByEmail ## Documentation For Models @@ -243,13 +246,11 @@ Class | Method | HTTP request | Description - [AnswerAdminApiSiteinfoWriteGet200Response](docs/AnswerAdminApiSiteinfoWriteGet200Response.md) - [AnswerAdminApiUserActivationGet200Response](docs/AnswerAdminApiUserActivationGet200Response.md) - [AnswerAdminApiUsersPageGet200Response](docs/AnswerAdminApiUsersPageGet200Response.md) - - [AnswerAdminApiUsersPageGet200ResponseData](docs/AnswerAdminApiUsersPageGet200ResponseData.md) - - [AnswerAdminApiUsersPageGet200ResponseDataAllOf](docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md) + - [AnswerAdminApiUsersPageGet200ResponseAllOfData](docs/AnswerAdminApiUsersPageGet200ResponseAllOfData.md) - [AnswerApiV1ActivityTimelineGet200Response](docs/AnswerApiV1ActivityTimelineGet200Response.md) - [AnswerApiV1CollectionSwitchPost200Response](docs/AnswerApiV1CollectionSwitchPost200Response.md) - [AnswerApiV1CommentGet200Response](docs/AnswerApiV1CommentGet200Response.md) - - [AnswerApiV1CommentGet200ResponseData](docs/AnswerApiV1CommentGet200ResponseData.md) - - [AnswerApiV1CommentGet200ResponseDataAllOf](docs/AnswerApiV1CommentGet200ResponseDataAllOf.md) + - [AnswerApiV1CommentGet200ResponseAllOfData](docs/AnswerApiV1CommentGet200ResponseAllOfData.md) - [AnswerApiV1CommentPost200Response](docs/AnswerApiV1CommentPost200Response.md) - [AnswerApiV1ConnectorBindingEmailPost200Response](docs/AnswerApiV1ConnectorBindingEmailPost200Response.md) - [AnswerApiV1ConnectorInfoGet200Response](docs/AnswerApiV1ConnectorInfoGet200Response.md) @@ -258,23 +259,18 @@ Class | Method | HTTP request | Description - [AnswerApiV1FollowPost200Response](docs/AnswerApiV1FollowPost200Response.md) - [AnswerApiV1PermissionGet200Response](docs/AnswerApiV1PermissionGet200Response.md) - [AnswerApiV1PersonalCommentPageGet200Response](docs/AnswerApiV1PersonalCommentPageGet200Response.md) - - [AnswerApiV1PersonalCommentPageGet200ResponseData](docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md) - - [AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf](docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md) + - [AnswerApiV1PersonalCommentPageGet200ResponseAllOfData](docs/AnswerApiV1PersonalCommentPageGet200ResponseAllOfData.md) - [AnswerApiV1PersonalRankPageGet200Response](docs/AnswerApiV1PersonalRankPageGet200Response.md) - - [AnswerApiV1PersonalRankPageGet200ResponseData](docs/AnswerApiV1PersonalRankPageGet200ResponseData.md) - - [AnswerApiV1PersonalRankPageGet200ResponseDataAllOf](docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md) + - [AnswerApiV1PersonalRankPageGet200ResponseAllOfData](docs/AnswerApiV1PersonalRankPageGet200ResponseAllOfData.md) - [AnswerApiV1PersonalUserInfoGet200Response](docs/AnswerApiV1PersonalUserInfoGet200Response.md) - [AnswerApiV1PersonalVotePageGet200Response](docs/AnswerApiV1PersonalVotePageGet200Response.md) - - [AnswerApiV1PersonalVotePageGet200ResponseData](docs/AnswerApiV1PersonalVotePageGet200ResponseData.md) - - [AnswerApiV1PersonalVotePageGet200ResponseDataAllOf](docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md) + - [AnswerApiV1PersonalVotePageGet200ResponseAllOfData](docs/AnswerApiV1PersonalVotePageGet200ResponseAllOfData.md) - [AnswerApiV1QuestionPageGet200Response](docs/AnswerApiV1QuestionPageGet200Response.md) - - [AnswerApiV1QuestionPageGet200ResponseData](docs/AnswerApiV1QuestionPageGet200ResponseData.md) - - [AnswerApiV1QuestionPageGet200ResponseDataAllOf](docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md) + - [AnswerApiV1QuestionPageGet200ResponseAllOfData](docs/AnswerApiV1QuestionPageGet200ResponseAllOfData.md) - [AnswerApiV1QuestionTagsGet200Response](docs/AnswerApiV1QuestionTagsGet200Response.md) - [AnswerApiV1RevisionsGet200Response](docs/AnswerApiV1RevisionsGet200Response.md) - [AnswerApiV1RevisionsUnreviewedGet200Response](docs/AnswerApiV1RevisionsUnreviewedGet200Response.md) - - [AnswerApiV1RevisionsUnreviewedGet200ResponseData](docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md) - - [AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf](docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md) + - [AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData](docs/AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData.md) - [AnswerApiV1SearchGet200Response](docs/AnswerApiV1SearchGet200Response.md) - [AnswerApiV1SiteinfoGet200Response](docs/AnswerApiV1SiteinfoGet200Response.md) - [AnswerApiV1SiteinfoLegalGet200Response](docs/AnswerApiV1SiteinfoLegalGet200Response.md) @@ -282,14 +278,14 @@ Class | Method | HTTP request | Description - [AnswerApiV1TagSynonymsGet200Response](docs/AnswerApiV1TagSynonymsGet200Response.md) - [AnswerApiV1TagsFollowingGet200Response](docs/AnswerApiV1TagsFollowingGet200Response.md) - [AnswerApiV1TagsPageGet200Response](docs/AnswerApiV1TagsPageGet200Response.md) - - [AnswerApiV1TagsPageGet200ResponseData](docs/AnswerApiV1TagsPageGet200ResponseData.md) - - [AnswerApiV1TagsPageGet200ResponseDataAllOf](docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md) + - [AnswerApiV1TagsPageGet200ResponseAllOfData](docs/AnswerApiV1TagsPageGet200ResponseAllOfData.md) - [AnswerApiV1UserActionRecordGet200Response](docs/AnswerApiV1UserActionRecordGet200Response.md) - [AnswerApiV1UserEmailVerificationPost200Response](docs/AnswerApiV1UserEmailVerificationPost200Response.md) - [AnswerApiV1UserInfoGet200Response](docs/AnswerApiV1UserInfoGet200Response.md) - - [AnswerApiV1UserNoticeSetPost200Response](docs/AnswerApiV1UserNoticeSetPost200Response.md) + - [AnswerApiV1UserNotificationConfigPost200Response](docs/AnswerApiV1UserNotificationConfigPost200Response.md) - [AnswerApiV1UserRankingGet200Response](docs/AnswerApiV1UserRankingGet200Response.md) - [AnswerApiV1VoteDownPost200Response](docs/AnswerApiV1VoteDownPost200Response.md) + - [ConstantNotificationChannelKey](docs/ConstantNotificationChannelKey.md) - [ConstantPrivilege](docs/ConstantPrivilege.md) - [HandlerRespBody](docs/HandlerRespBody.md) - [InstallCheckConfigFileResp](docs/InstallCheckConfigFileResp.md) @@ -298,6 +294,7 @@ Class | Method | HTTP request | Description - [InstallationConfigFileCheckPost200Response](docs/InstallationConfigFileCheckPost200Response.md) - [InstallationLanguageOptionsGet200Response](docs/InstallationLanguageOptionsGet200Response.md) - [PagerPageModel](docs/PagerPageModel.md) + - [SchemaAcceptAnswerReq](docs/SchemaAcceptAnswerReq.md) - [SchemaActObjectInfo](docs/SchemaActObjectInfo.md) - [SchemaActObjectTimeline](docs/SchemaActObjectTimeline.md) - [SchemaActionRecordResp](docs/SchemaActionRecordResp.md) @@ -305,9 +302,9 @@ Class | Method | HTTP request | Description - [SchemaAddReportReq](docs/SchemaAddReportReq.md) - [SchemaAddTagReq](docs/SchemaAddTagReq.md) - [SchemaAddUserReq](docs/SchemaAddUserReq.md) + - [SchemaAddUsersReq](docs/SchemaAddUsersReq.md) - [SchemaAdminSetAnswerStatusRequest](docs/SchemaAdminSetAnswerStatusRequest.md) - [SchemaAdminSetQuestionStatusRequest](docs/SchemaAdminSetQuestionStatusRequest.md) - - [SchemaAnswerAcceptedReq](docs/SchemaAnswerAcceptedReq.md) - [SchemaAnswerAddReq](docs/SchemaAnswerAddReq.md) - [SchemaAnswerUpdateReq](docs/SchemaAnswerUpdateReq.md) - [SchemaAvatarInfo](docs/SchemaAvatarInfo.md) @@ -344,9 +341,11 @@ Class | Method | HTTP request | Description - [SchemaGetTagSynonymsResp](docs/SchemaGetTagSynonymsResp.md) - [SchemaGetUnreviewedRevisionResp](docs/SchemaGetUnreviewedRevisionResp.md) - [SchemaGetUserActivationResp](docs/SchemaGetUserActivationResp.md) + - [SchemaGetUserNotificationConfigResp](docs/SchemaGetUserNotificationConfigResp.md) - [SchemaGetUserPageResp](docs/SchemaGetUserPageResp.md) - [SchemaGetVoteWithPageResp](docs/SchemaGetVoteWithPageResp.md) - [SchemaLoadingAction](docs/SchemaLoadingAction.md) + - [SchemaNotificationChannelConfig](docs/SchemaNotificationChannelConfig.md) - [SchemaNotificationClearIDRequest](docs/SchemaNotificationClearIDRequest.md) - [SchemaNotificationClearRequest](docs/SchemaNotificationClearRequest.md) - [SchemaOnCompleteAction](docs/SchemaOnCompleteAction.md) @@ -368,11 +367,10 @@ Class | Method | HTTP request | Description - [SchemaReopenQuestionReq](docs/SchemaReopenQuestionReq.md) - [SchemaReportHandleReq](docs/SchemaReportHandleReq.md) - [SchemaRevisionAuditReq](docs/SchemaRevisionAuditReq.md) - - [SchemaSearchListResp](docs/SchemaSearchListResp.md) - [SchemaSearchObject](docs/SchemaSearchObject.md) - - [SchemaSearchObjectUserInfo](docs/SchemaSearchObjectUserInfo.md) + - [SchemaSearchObjectUser](docs/SchemaSearchObjectUser.md) - [SchemaSearchResp](docs/SchemaSearchResp.md) - - [SchemaSearchRespObject](docs/SchemaSearchRespObject.md) + - [SchemaSearchResult](docs/SchemaSearchResult.md) - [SchemaSendUserActivationReq](docs/SchemaSendUserActivationReq.md) - [SchemaSiteBrandingReq](docs/SchemaSiteBrandingReq.md) - [SchemaSiteBrandingResp](docs/SchemaSiteBrandingResp.md) @@ -404,7 +402,6 @@ Class | Method | HTTP request | Description - [SchemaUpdateCommentReq](docs/SchemaUpdateCommentReq.md) - [SchemaUpdateFollowTagsReq](docs/SchemaUpdateFollowTagsReq.md) - [SchemaUpdateInfoRequest](docs/SchemaUpdateInfoRequest.md) - - [SchemaUpdateInfoRequestAvatar](docs/SchemaUpdateInfoRequestAvatar.md) - [SchemaUpdatePluginConfigReq](docs/SchemaUpdatePluginConfigReq.md) - [SchemaUpdatePluginStatusReq](docs/SchemaUpdatePluginStatusReq.md) - [SchemaUpdatePrivilegesConfigReq](docs/SchemaUpdatePrivilegesConfigReq.md) @@ -412,22 +409,22 @@ Class | Method | HTTP request | Description - [SchemaUpdateTagReq](docs/SchemaUpdateTagReq.md) - [SchemaUpdateTagSynonymReq](docs/SchemaUpdateTagSynonymReq.md) - [SchemaUpdateUserInterfaceRequest](docs/SchemaUpdateUserInterfaceRequest.md) + - [SchemaUpdateUserNotificationConfigReq](docs/SchemaUpdateUserNotificationConfigReq.md) - [SchemaUpdateUserPasswordReq](docs/SchemaUpdateUserPasswordReq.md) - [SchemaUpdateUserRoleReq](docs/SchemaUpdateUserRoleReq.md) - [SchemaUpdateUserStatusReq](docs/SchemaUpdateUserStatusReq.md) - [SchemaUserBasicInfo](docs/SchemaUserBasicInfo.md) - [SchemaUserChangeEmailSendCodeReq](docs/SchemaUserChangeEmailSendCodeReq.md) - [SchemaUserChangeEmailVerifyReq](docs/SchemaUserChangeEmailVerifyReq.md) - - [SchemaUserEmailLogin](docs/SchemaUserEmailLogin.md) + - [SchemaUserEmailLoginReq](docs/SchemaUserEmailLoginReq.md) - [SchemaUserLoginResp](docs/SchemaUserLoginResp.md) - [SchemaUserModifyPasswordReq](docs/SchemaUserModifyPasswordReq.md) - - [SchemaUserNoticeSetRequest](docs/SchemaUserNoticeSetRequest.md) - - [SchemaUserNoticeSetResp](docs/SchemaUserNoticeSetResp.md) - [SchemaUserRankingResp](docs/SchemaUserRankingResp.md) - [SchemaUserRankingSimpleInfo](docs/SchemaUserRankingSimpleInfo.md) - [SchemaUserRePassWordRequest](docs/SchemaUserRePassWordRequest.md) - [SchemaUserRegisterReq](docs/SchemaUserRegisterReq.md) - [SchemaUserRetrievePassWordRequest](docs/SchemaUserRetrievePassWordRequest.md) + - [SchemaUserUnsubscribeNotificationReq](docs/SchemaUserUnsubscribeNotificationReq.md) - [SchemaVoteReq](docs/SchemaVoteReq.md) - [SchemaVoteResp](docs/SchemaVoteResp.md) - [TranslatorLangOption](docs/TranslatorLangOption.md) @@ -445,6 +442,19 @@ Authentication schemes defined for the API: Note, each API key must be added to a map of `map[string]APIKey` where the key is: Authorization and passed in as the auth context for each request. +Example + +```golang +auth := context.WithValue( + context.Background(), + sw.ContextAPIKeys, + map[string]sw.APIKey{ + "Authorization": {Key: "API_KEY_STRING"}, + }, + ) +r, err := client.Service.Operation(auth, args) +``` + ## Documentation for Utility Methods diff --git a/api/openapi.yaml b/api/openapi.yaml index 6f17939..eb1aece 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -956,6 +956,29 @@ paths: tags: - admin x-codegen-request-body-name: data + /answer/admin/api/users: + post: + description: add users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.AddUsersReq' + description: user + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: add users + tags: + - admin + x-codegen-request-body-name: data /answer/admin/api/users/activation: post: description: send user activation @@ -1156,8 +1179,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/schema.AnswerAcceptedReq' - description: AnswerAcceptedReq + $ref: '#/components/schemas/schema.AcceptAnswerReq' + description: AcceptAnswerReq required: true responses: "200": @@ -2233,7 +2256,7 @@ paths: x-codegen-request-body-name: data /answer/api/v1/question/similar: get: - description: add question title like + description: fuzzy query similar questions based on title parameters: - description: title in: query @@ -2251,7 +2274,7 @@ paths: description: OK security: - ApiKeyAuth: [] - summary: add question title like + summary: fuzzy query similar questions based on title tags: - Question /answer/api/v1/question/similar/tag: @@ -2501,6 +2524,19 @@ paths: summary: search object tags: - Search + /answer/api/v1/search/desc: + get: + description: get search description + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_search_get_200_response' + description: OK + summary: get search description + tags: + - Search /answer/api/v1/siteinfo: get: description: get site info @@ -2810,19 +2846,6 @@ paths: tags: - User x-codegen-request-body-name: data - /answer/api/v1/user/email/notification: - put: - description: unsubscribe email notification - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/handler.RespBody' - description: OK - summary: unsubscribe email notification - tags: - - User /answer/api/v1/user/email/verification: post: description: UserVerifyEmail @@ -2973,7 +2996,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/schema.UserEmailLogin' + $ref: '#/components/schemas/schema.UserEmailLoginReq' description: UserEmailLogin required: true responses: @@ -3000,26 +3023,61 @@ paths: summary: user logout tags: - User - /answer/api/v1/user/notice/set: + /answer/api/v1/user/notification/config: post: - description: UserNoticeSet + description: get user's notification config + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_user_notification_config_post_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get user's notification config + tags: + - User + put: + description: update user's notification config requestBody: content: application/json: schema: - $ref: '#/components/schemas/schema.UserNoticeSetRequest' - description: UserNoticeSetRequest + $ref: '#/components/schemas/schema.UpdateUserNotificationConfigReq' + description: UpdateUserNotificationConfigReq required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_answer_api_v1_user_notice_set_post_200_response' + $ref: '#/components/schemas/handler.RespBody' description: OK security: - ApiKeyAuth: [] - summary: UserNoticeSet + summary: update user's notification config + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/user/notification/unsubscribe: + put: + description: unsubscribe notification + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UserUnsubscribeNotificationReq' + description: UserUnsubscribeNotificationReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: unsubscribe notification tags: - User x-codegen-request-body-name: data @@ -3346,11 +3404,13 @@ paths: - site components: schemas: + constant.NotificationChannelKey: + enum: + - email + type: string + x-enum-varnames: + - EmailChannel constant.Privilege: - example: - label: label - value: 0 - key: key properties: key: type: string @@ -3380,10 +3440,6 @@ components: type: string type: object install.CheckConfigFileResp: - example: - db_connection_success: true - db_table_exist: true - config_file_exist: true properties: config_file_exist: type: boolean @@ -3424,6 +3480,8 @@ components: lang: maxLength: 30 type: string + login_required: + type: boolean name: maxLength: 30 type: string @@ -3453,15 +3511,17 @@ components: list: type: object type: object + schema.AcceptAnswerReq: + properties: + answer_id: + type: string + question_id: + maxLength: 30 + type: string + required: + - question_id + type: object schema.ActObjectInfo: - example: - object_type: object_type - main_tag_slug_name: main_tag_slug_name - display_name: display_name - title: title - answer_id: answer_id - question_id: question_id - username: username properties: answer_id: type: string @@ -3479,19 +3539,6 @@ components: type: string type: object schema.ActObjectTimeline: - example: - cancelled_at: 0 - object_type: object_type - activity_type: activity_type - activity_id: activity_id - cancelled: true - created_at: 6 - comment: comment - id: id - object_id: object_id - user_display_name: user_display_name - revision_id: revision_id - username: username properties: activity_id: type: string @@ -3519,10 +3566,6 @@ components: type: string type: object schema.ActionRecordResp: - example: - captcha_id: captcha_id - verify: true - captcha_img: captcha_img properties: captcha_id: type: string @@ -3617,6 +3660,12 @@ components: - email - password type: object + schema.AddUsersReq: + properties: + users: + description: users info line by line + type: string + type: object schema.AdminSetAnswerStatusRequest: properties: answer_id: @@ -3631,19 +3680,11 @@ components: status: type: string type: object - schema.AnswerAcceptedReq: - properties: - answer_id: - type: string - question_id: - type: string - type: object schema.AnswerAddReq: properties: captcha_code: type: string captcha_id: - description: captcha_id type: string content: maxLength: 65535 @@ -3659,7 +3700,6 @@ components: captcha_code: type: string captcha_id: - description: captcha_id type: string content: maxLength: 65535 @@ -3677,10 +3717,6 @@ components: - content type: object schema.AvatarInfo: - example: - gravatar: gravatar - custom: custom - type: type properties: custom: maxLength: 200 @@ -3718,10 +3754,6 @@ components: - object_id type: object schema.CollectionSwitchResp: - example: - object_id: object_id - object_collection_count: object_collection_count - switch: true properties: object_collection_count: type: string @@ -3731,34 +3763,6 @@ components: type: boolean type: object schema.ConfigField: - example: - name: name - options: - - label: label - value: value - - label: label - value: value - description: description - ui_options: - input_type: input_type - variant: variant - action: - method: method - on_complete: - toast_return_message: true - refresh_form_config: true - loading: - state: state - text: text - url: url - label: label - placeholder: placeholder - text: text - rows: rows - title: title - type: type - value: "{}" - required: true properties: description: type: string @@ -3780,9 +3784,6 @@ components: type: object type: object schema.ConfigFieldOption: - example: - label: label - value: value properties: label: type: string @@ -3790,22 +3791,6 @@ components: type: string type: object schema.ConfigFieldUIOptions: - example: - input_type: input_type - variant: variant - action: - method: method - on_complete: - toast_return_message: true - refresh_form_config: true - loading: - state: state - text: text - url: url - label: label - placeholder: placeholder - text: text - rows: rows properties: action: $ref: '#/components/schemas/schema.UIOptionAction' @@ -3823,10 +3808,6 @@ components: type: string type: object schema.ConnectorInfoResp: - example: - icon: icon - link: link - name: name properties: icon: type: string @@ -3836,12 +3817,6 @@ components: type: string type: object schema.ConnectorUserInfoResp: - example: - icon: icon - link: link - name: name - binding: true - external_id: external_id properties: binding: type: boolean @@ -3872,9 +3847,6 @@ components: - email type: object schema.ExternalLoginBindingUserSendEmailResp: - example: - access_token: access_token - email_exist_and_must_be_confirmed: true properties: access_token: type: string @@ -3901,9 +3873,6 @@ components: - object_id type: object schema.FollowResp: - example: - follows: 0 - is_followed: true properties: follows: description: the followers of object @@ -3948,31 +3917,6 @@ components: type: string type: object schema.GetCommentResp: - example: - user_avatar: user_avatar - user_status: user_status - is_vote: true - reply_username: reply_username - reply_user_id: reply_user_id - created_at: 0 - member_actions: - - name: name - action: action - type: type - - name: name - action: action - type: type - original_text: original_text - comment_id: comment_id - object_id: object_id - reply_user_display_name: reply_user_display_name - reply_comment_id: reply_comment_id - reply_user_status: reply_user_status - user_id: user_id - parsed_text: parsed_text - user_display_name: user_display_name - vote_count: 6 - username: username properties: comment_id: description: comment id @@ -4032,35 +3976,6 @@ components: type: integer type: object schema.GetCurrentLoginUserInfoResp: - example: - bio: bio - created_at: 1 - language: language - answer_count: 0 - have_password: true - authority_group: 6 - role_id: 2 - e_mail: e_mail - rank: 3 - id: id - website: website - notice_status: 7 - mobile: mobile - avatar: - gravatar: gravatar - custom: custom - type: type - display_name: display_name - last_login_date: 5 - access_token: access_token - question_count: 9 - bio_html: bio_html - follow_count: 5 - mail_status: 2 - location: location - ip_info: ip_info - status: status - username: username properties: access_token: description: access token @@ -4092,6 +4007,7 @@ components: description: follow count type: integer have_password: + description: user have password type: boolean id: description: user id @@ -4137,13 +4053,6 @@ components: type: string type: object schema.GetFollowingTagsResp: - example: - reserved: true - slug_name: slug_name - tag_id: tag_id - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name properties: display_name: description: display name @@ -4164,40 +4073,6 @@ components: type: string type: object schema.GetObjectTimelineResp: - example: - object_info: - object_type: object_type - main_tag_slug_name: main_tag_slug_name - display_name: display_name - title: title - answer_id: answer_id - question_id: question_id - username: username - timeline: - - cancelled_at: 0 - object_type: object_type - activity_type: activity_type - activity_id: activity_id - cancelled: true - created_at: 6 - comment: comment - id: id - object_id: object_id - user_display_name: user_display_name - revision_id: revision_id - username: username - - cancelled_at: 0 - object_type: object_type - activity_type: activity_type - activity_id: activity_id - cancelled: true - created_at: 6 - comment: comment - id: id - object_id: object_id - user_display_name: user_display_name - revision_id: revision_id - username: username properties: object_info: $ref: '#/components/schemas/schema.ActObjectInfo' @@ -4207,24 +4082,6 @@ components: type: array type: object schema.GetOtherUserInfoByUsernameResp: - example: - website: website - mobile: mobile - bio: bio - created_at: 6 - avatar: avatar - answer_count: 0 - display_name: display_name - last_login_date: 5 - question_count: 5 - bio_html: bio_html - follow_count: 1 - rank: 2 - status_msg: status_msg - location: location - id: id - status: status - username: username properties: answer_count: description: answer count @@ -4279,90 +4136,11 @@ components: type: string type: object schema.GetOtherUserInfoResp: - example: - info: - website: website - mobile: mobile - bio: bio - created_at: 6 - avatar: avatar - answer_count: 0 - display_name: display_name - last_login_date: 5 - question_count: 5 - bio_html: bio_html - follow_count: 1 - rank: 2 - status_msg: status_msg - location: location - id: id - status: status - username: username properties: info: $ref: '#/components/schemas/schema.GetOtherUserInfoByUsernameResp' type: object schema.GetPluginConfigResp: - example: - name: name - slug_name: slug_name - description: description - config_fields: - - name: name - options: - - label: label - value: value - - label: label - value: value - description: description - ui_options: - input_type: input_type - variant: variant - action: - method: method - on_complete: - toast_return_message: true - refresh_form_config: true - loading: - state: state - text: text - url: url - label: label - placeholder: placeholder - text: text - rows: rows - title: title - type: type - value: "{}" - required: true - - name: name - options: - - label: label - value: value - - label: label - value: value - description: description - ui_options: - input_type: input_type - variant: variant - action: - method: method - on_complete: - toast_return_message: true - refresh_form_config: true - loading: - state: state - text: text - url: url - label: label - placeholder: placeholder - text: text - rows: rows - title: title - type: type - value: "{}" - required: true - version: version properties: config_fields: items: @@ -4378,14 +4156,6 @@ components: type: string type: object schema.GetPluginListResp: - example: - have_config: true - link: link - name: name - slug_name: slug_name - description: description - version: version - enabled: true properties: description: type: string @@ -4403,27 +4173,6 @@ components: type: string type: object schema.GetPrivilegesConfigResp: - example: - options: - - privileges: - - label: label - value: 0 - key: key - - label: label - value: 0 - key: key - level: null - level_desc: level_desc - - privileges: - - label: label - value: 0 - key: key - - label: label - value: 0 - key: key - level: null - level_desc: level_desc - selected_level: null properties: options: items: @@ -4471,25 +4220,6 @@ components: type: string type: object schema.GetRevisionResp: - example: - reason: reason - user_info: - website: website - rank: 1 - location: location - avatar: avatar - id: id - display_name: display_name - ip_info: ip_info - status: status - username: username - use_id: use_id - id: id - create_at: 0 - title: title - object_id: object_id - content: "{}" - status: 6 properties: content: description: content parsed @@ -4517,10 +4247,6 @@ components: $ref: '#/components/schemas/schema.UserBasicInfo' type: object schema.GetRoleResp: - example: - name: name - description: description - id: 0 properties: description: type: string @@ -4530,15 +4256,6 @@ components: type: string type: object schema.GetSMTPConfigResp: - example: - from_email: from_email - encryption: encryption - smtp_authentication: true - smtp_password: smtp_password - smtp_port: 0 - smtp_host: smtp_host - from_name: from_name - smtp_username: smtp_username properties: encryption: description: '"" SSL' @@ -4559,11 +4276,6 @@ components: type: string type: object schema.GetSiteLegalInfoResp: - example: - privacy_policy_parsed_text: privacy_policy_parsed_text - privacy_policy_original_text: privacy_policy_original_text - terms_of_service_original_text: terms_of_service_original_text - terms_of_service_parsed_text: terms_of_service_parsed_text properties: privacy_policy_original_text: type: string @@ -4618,29 +4330,6 @@ components: type: integer type: object schema.GetTagResp: - example: - created_at: 0 - description: description - main_tag_slug_name: main_tag_slug_name - recommend: true - member_actions: - - name: name - action: action - type: type - - name: name - action: action - type: type - original_text: original_text - display_name: display_name - question_count: 1 - updated_at: 5 - reserved: true - follow_count: 6 - parsed_text: parsed_text - slug_name: slug_name - tag_id: tag_id - excerpt: excerpt - is_follower: true properties: created_at: description: created time @@ -4693,23 +4382,6 @@ components: type: integer type: object schema.GetTagSynonymsResp: - example: - synonyms: - - slug_name: slug_name - tag_id: tag_id - main_tag_slug_name: main_tag_slug_name - display_name: display_name - - slug_name: slug_name - tag_id: tag_id - main_tag_slug_name: main_tag_slug_name - display_name: display_name - member_actions: - - name: name - action: action - type: type - - name: name - action: action - type: type properties: member_actions: description: MemberActions @@ -4732,12 +4404,25 @@ components: $ref: '#/components/schemas/schema.GetRevisionResp' type: object schema.GetUserActivationResp: - example: - activation_url: activation_url properties: activation_url: type: string type: object + schema.GetUserNotificationConfigResp: + properties: + all_new_question: + items: + $ref: '#/components/schemas/schema.NotificationChannelConfig' + type: array + all_new_question_for_following_tags: + items: + $ref: '#/components/schemas/schema.NotificationChannelConfig' + type: array + inbox: + items: + $ref: '#/components/schemas/schema.NotificationChannelConfig' + type: array + type: object schema.GetUserPageResp: properties: avatar: @@ -4813,15 +4498,19 @@ components: type: string type: object schema.LoadingAction: - example: - state: state - text: text properties: state: type: string text: type: string type: object + schema.NotificationChannelConfig: + properties: + enable: + type: boolean + key: + $ref: '#/components/schemas/constant.NotificationChannelKey' + type: object schema.NotificationClearIDRequest: properties: id: @@ -4834,9 +4523,6 @@ components: type: string type: object schema.OnCompleteAction: - example: - toast_return_message: true - refresh_form_config: true properties: refresh_form_config: type: boolean @@ -4854,10 +4540,6 @@ components: - id type: object schema.PermissionMemberAction: - example: - name: name - action: action - type: type properties: action: type: string @@ -4882,16 +4564,6 @@ components: - PrivilegeLevel2 - PrivilegeLevel3 schema.PrivilegeOption: - example: - privileges: - - label: label - value: 0 - key: key - - label: label - value: 0 - key: key - level: null - level_desc: level_desc properties: level: $ref: '#/components/schemas/schema.PrivilegeLevel' @@ -5085,10 +4757,8 @@ components: captcha_code: type: string captcha_id: - description: captcha_id type: string id: - description: answer id type: string required: - id @@ -5156,27 +4826,6 @@ components: - id - operation type: object - schema.SearchListResp: - example: - extra: "{}" - count: 0 - list: - - object_type: object_type - object: null - - object_type: object_type - object: null - properties: - count: - type: integer - extra: - description: extra fields - type: object - list: - description: search response - items: - $ref: '#/components/schemas/schema.SearchResp' - type: array - type: object schema.SearchObject: properties: accepted: @@ -5202,17 +4851,43 @@ components: title: type: string user_info: - $ref: '#/components/schemas/schema_SearchObject_user_info' + allOf: + - $ref: '#/components/schemas/schema.SearchObjectUser' + description: user info + type: object vote_count: type: integer type: object + schema.SearchObjectUser: + properties: + display_name: + type: string + id: + type: string + rank: + type: integer + status: + type: string + username: + type: string + type: object schema.SearchResp: - example: - object_type: object_type - object: null + properties: + count: + type: integer + list: + description: search response + items: + $ref: '#/components/schemas/schema.SearchResult' + type: array + type: object + schema.SearchResult: properties: object: - $ref: '#/components/schemas/schema_SearchResp_object' + allOf: + - $ref: '#/components/schemas/schema.SearchObject' + description: this object + type: object object_type: description: object_type type: string @@ -5240,11 +4915,6 @@ components: type: string type: object schema.SiteBrandingResp: - example: - square_icon: square_icon - favicon: favicon - mobile_logo: mobile_logo - logo: logo properties: favicon: maxLength: 512 @@ -5278,12 +4948,6 @@ components: type: string type: object schema.SiteCustomCssHTMLResp: - example: - custom_footer: custom_footer - custom_sidebar: custom_sidebar - custom_head: custom_head - custom_css: custom_css - custom_header: custom_header properties: custom_css: maxLength: 65536 @@ -5324,12 +4988,6 @@ components: - site_url type: object schema.SiteGeneralResp: - example: - short_description: short_description - site_url: site_url - name: name - description: description - contact_email: contact_email properties: contact_email: maxLength: 512 @@ -5352,56 +5010,6 @@ components: - site_url type: object schema.SiteInfoResp: - example: - general: - short_description: short_description - site_url: site_url - name: name - description: description - contact_email: contact_email - site_seo: - robots: robots - permalink: 0 - branding: - square_icon: square_icon - favicon: favicon - mobile_logo: mobile_logo - logo: logo - custom_css_html: - custom_footer: custom_footer - custom_sidebar: custom_sidebar - custom_head: custom_head - custom_css: custom_css - custom_header: custom_header - theme: - theme_config: "{}" - theme_options: - - label: label - value: value - - label: label - value: value - theme: theme - interface: - language: language - time_zone: time_zone - login: - allow_email_registrations: true - allow_email_domains: - - allow_email_domains - - allow_email_domains - login_required: true - allow_new_registrations: true - version: version - revision: revision - site_users: - allow_update_display_name: true - allow_update_bio: true - allow_update_avatar: true - allow_update_website: true - gravatar_base_url: gravatar_base_url - allow_update_location: true - default_avatar: system - allow_update_username: true properties: branding: $ref: '#/components/schemas/schema.SiteBrandingResp' @@ -5437,9 +5045,6 @@ components: - time_zone type: object schema.SiteInterfaceResp: - example: - language: language - time_zone: time_zone properties: language: maxLength: 128 @@ -5463,11 +5068,6 @@ components: type: string type: object schema.SiteLegalResp: - example: - privacy_policy_parsed_text: privacy_policy_parsed_text - privacy_policy_original_text: privacy_policy_original_text - terms_of_service_original_text: terms_of_service_original_text - terms_of_service_parsed_text: terms_of_service_parsed_text properties: privacy_policy_original_text: type: string @@ -5492,13 +5092,6 @@ components: type: boolean type: object schema.SiteLoginResp: - example: - allow_email_registrations: true - allow_email_domains: - - allow_email_domains - - allow_email_domains - login_required: true - allow_new_registrations: true properties: allow_email_domains: items: @@ -5524,9 +5117,6 @@ components: - robots type: object schema.SiteSeoResp: - example: - robots: robots - permalink: 0 properties: permalink: maximum: 4 @@ -5544,25 +5134,17 @@ components: maxLength: 255 type: string theme_config: - properties: {} + additionalProperties: true type: object required: - theme type: object schema.SiteThemeResp: - example: - theme_config: "{}" - theme_options: - - label: label - value: value - - label: label - value: value - theme: theme properties: theme: type: string theme_config: - properties: {} + additionalProperties: true type: object theme_options: items: @@ -5594,15 +5176,6 @@ components: - default_avatar type: object schema.SiteUsersResp: - example: - allow_update_display_name: true - allow_update_bio: true - allow_update_avatar: true - allow_update_website: true - gravatar_base_url: gravatar_base_url - allow_update_location: true - default_avatar: system - allow_update_username: true properties: allow_update_avatar: type: boolean @@ -5640,14 +5213,6 @@ components: type: array type: object schema.SiteWriteResp: - example: - reserved_tags: - - reserved_tags - - reserved_tags - required_tag: true - recommend_tags: - - recommend_tags - - recommend_tags properties: recommend_tags: items: @@ -5690,11 +5255,6 @@ components: type: string type: object schema.TagSynonym: - example: - slug_name: slug_name - tag_id: tag_id - main_tag_slug_name: main_tag_slug_name - display_name: display_name properties: display_name: description: display name @@ -5711,9 +5271,6 @@ components: type: string type: object schema.ThemeOption: - example: - label: label - value: value properties: label: type: string @@ -5721,15 +5278,6 @@ components: type: string type: object schema.UIOptionAction: - example: - method: method - on_complete: - toast_return_message: true - refresh_form_config: true - loading: - state: state - text: text - url: url properties: loading: $ref: '#/components/schemas/schema.LoadingAction' @@ -5760,7 +5308,7 @@ components: captcha_code: type: string captcha_id: - description: captcha_id + description: whether user can delete it type: string comment_id: description: comment id @@ -5785,7 +5333,10 @@ components: schema.UpdateInfoRequest: properties: avatar: - $ref: '#/components/schemas/schema_UpdateInfoRequest_avatar' + allOf: + - $ref: '#/components/schemas/schema.AvatarInfo' + description: avatar + type: object bio: description: bio maxLength: 4096 @@ -5914,6 +5465,21 @@ components: required: - language type: object + schema.UpdateUserNotificationConfigReq: + properties: + all_new_question: + items: + $ref: '#/components/schemas/schema.NotificationChannelConfig' + type: array + all_new_question_for_following_tags: + items: + $ref: '#/components/schemas/schema.NotificationChannelConfig' + type: array + inbox: + items: + $ref: '#/components/schemas/schema.NotificationChannelConfig' + type: array + type: object schema.UpdateUserPasswordReq: properties: password: @@ -5954,43 +5520,24 @@ components: - user_id type: object schema.UserBasicInfo: - example: - website: website - rank: 1 - location: location - avatar: avatar - id: id - display_name: display_name - ip_info: ip_info - status: status - username: username properties: avatar: - description: avatar type: string display_name: - description: display_name type: string id: - description: user_id type: string ip_info: - description: ip info type: string location: - description: location type: string rank: - description: rank type: integer status: - description: status type: string username: - description: name type: string website: - description: website type: string type: object schema.UserChangeEmailSendCodeReq: @@ -6019,20 +5566,16 @@ components: required: - code type: object - schema.UserEmailLogin: + schema.UserEmailLoginReq: properties: captcha_code: - description: captcha_code type: string captcha_id: - description: captcha_id type: string e_mail: - description: e_mail maxLength: 500 type: string pass: - description: password maxLength: 32 minLength: 8 type: string @@ -6041,32 +5584,6 @@ components: - pass type: object schema.UserLoginResp: - example: - bio: bio - created_at: 1 - language: language - answer_count: 0 - have_password: true - authority_group: 6 - role_id: 2 - e_mail: e_mail - rank: 3 - id: id - website: website - notice_status: 7 - mobile: mobile - avatar: avatar - display_name: display_name - last_login_date: 5 - access_token: access_token - question_count: 9 - bio_html: bio_html - follow_count: 5 - mail_status: 2 - location: location - ip_info: ip_info - status: status - username: username properties: access_token: description: access token @@ -6163,53 +5680,7 @@ components: required: - pass type: object - schema.UserNoticeSetRequest: - properties: - notice_switch: - type: boolean - type: object - schema.UserNoticeSetResp: - example: - notice_switch: true - properties: - notice_switch: - type: boolean - type: object schema.UserRankingResp: - example: - users_with_the_most_reputation: - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - users_with_the_most_vote: - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - staffs: - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username properties: staffs: items: @@ -6225,12 +5696,6 @@ components: type: array type: object schema.UserRankingSimpleInfo: - example: - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username properties: avatar: description: avatar @@ -6251,11 +5716,9 @@ components: schema.UserRePassWordRequest: properties: code: - description: code maxLength: 100 type: string pass: - description: Password maxLength: 32 type: string required: @@ -6265,21 +5728,16 @@ components: schema.UserRegisterReq: properties: captcha_code: - description: captcha_code type: string captcha_id: - description: captcha_id type: string e_mail: - description: email maxLength: 500 type: string name: - description: name maxLength: 30 type: string pass: - description: password maxLength: 32 minLength: 8 type: string @@ -6291,18 +5749,23 @@ components: schema.UserRetrievePassWordRequest: properties: captcha_code: - description: captcha_code type: string captcha_id: - description: captcha_id type: string e_mail: - description: e_mail maxLength: 500 type: string required: - e_mail type: object + schema.UserUnsubscribeNotificationReq: + properties: + code: + maxLength: 500 + type: string + required: + - code + type: object schema.VoteReq: properties: captcha_code: @@ -6320,11 +5783,6 @@ components: - object_id type: object schema.VoteResp: - example: - up_votes: 6 - down_votes: 0 - votes: 1 - vote_status: vote_status properties: down_votes: type: integer @@ -6336,10 +5794,6 @@ components: type: integer type: object translator.LangOption: - example: - progress: 0 - label: label - value: value properties: label: type: string @@ -6350,609 +5804,201 @@ components: type: string type: object _answer_admin_api_plugin_config_get_200_response: - example: - data: - name: name - slug_name: slug_name - description: description - config_fields: - - name: name - options: - - label: label - value: value - - label: label - value: value - description: description - ui_options: - input_type: input_type - variant: variant - action: - method: method - on_complete: - toast_return_message: true - refresh_form_config: true - loading: - state: state - text: text - url: url - label: label - placeholder: placeholder - text: text - rows: rows - title: title - type: type - value: "{}" - required: true - - name: name - options: - - label: label - value: value - - label: label - value: value - description: description - ui_options: - input_type: input_type - variant: variant - action: - method: method - on_complete: - toast_return_message: true - refresh_form_config: true - loading: - state: state - text: text - url: url - label: label - placeholder: placeholder - text: text - rows: rows - title: title - type: type - value: "{}" - required: true - version: version - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetPluginConfigResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetPluginConfigResp' + type: object _answer_admin_api_plugins_get_200_response: - example: - data: - - have_config: true - link: link - name: name - slug_name: slug_name - description: description - version: version - enabled: true - - have_config: true - link: link - name: name - slug_name: slug_name - description: description - version: version - enabled: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - items: - $ref: '#/components/schemas/schema.GetPluginListResp' - type: array - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + items: + $ref: '#/components/schemas/schema.GetPluginListResp' + type: array + type: object _answer_admin_api_roles_get_200_response: - example: - data: - - name: name - description: description - id: 0 - - name: name - description: description - id: 0 - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - items: - $ref: '#/components/schemas/schema.GetRoleResp' - type: array - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + items: + $ref: '#/components/schemas/schema.GetRoleResp' + type: array + type: object _answer_admin_api_setting_privileges_get_200_response: - example: - data: - options: - - privileges: - - label: label - value: 0 - key: key - - label: label - value: 0 - key: key - level: null - level_desc: level_desc - - privileges: - - label: label - value: 0 - key: key - - label: label - value: 0 - key: key - level: null - level_desc: level_desc - selected_level: null - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetPrivilegesConfigResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetPrivilegesConfigResp' + type: object _answer_admin_api_setting_smtp_get_200_response: - example: - data: - from_email: from_email - encryption: encryption - smtp_authentication: true - smtp_password: smtp_password - smtp_port: 0 - smtp_host: smtp_host - from_name: from_name - smtp_username: smtp_username - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetSMTPConfigResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetSMTPConfigResp' + type: object _answer_admin_api_siteinfo_branding_get_200_response: - example: - data: - square_icon: square_icon - favicon: favicon - mobile_logo: mobile_logo - logo: logo - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteBrandingResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteBrandingResp' + type: object _answer_admin_api_siteinfo_custom_css_html_get_200_response: - example: - data: - custom_footer: custom_footer - custom_sidebar: custom_sidebar - custom_head: custom_head - custom_css: custom_css - custom_header: custom_header - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteCustomCssHTMLResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteCustomCssHTMLResp' + type: object _answer_admin_api_siteinfo_general_get_200_response: - example: - data: - short_description: short_description - site_url: site_url - name: name - description: description - contact_email: contact_email - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteGeneralResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteGeneralResp' + type: object _answer_admin_api_siteinfo_interface_get_200_response: - example: - data: - language: language - time_zone: time_zone - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteInterfaceResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteInterfaceResp' + type: object _answer_admin_api_siteinfo_legal_get_200_response: - example: - data: - privacy_policy_parsed_text: privacy_policy_parsed_text - privacy_policy_original_text: privacy_policy_original_text - terms_of_service_original_text: terms_of_service_original_text - terms_of_service_parsed_text: terms_of_service_parsed_text - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteLegalResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteLegalResp' + type: object _answer_admin_api_siteinfo_login_get_200_response: - example: - data: - allow_email_registrations: true - allow_email_domains: - - allow_email_domains - - allow_email_domains - login_required: true - allow_new_registrations: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteLoginResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteLoginResp' + type: object _answer_admin_api_siteinfo_seo_get_200_response: - example: - data: - robots: robots - permalink: 0 - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteSeoResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteSeoResp' + type: object _answer_admin_api_siteinfo_theme_get_200_response: - example: - data: - theme_config: "{}" - theme_options: - - label: label - value: value - - label: label - value: value - theme: theme - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteThemeResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteThemeResp' + type: object _answer_admin_api_siteinfo_users_get_200_response: - example: - data: - allow_update_display_name: true - allow_update_bio: true - allow_update_avatar: true - allow_update_website: true - gravatar_base_url: gravatar_base_url - allow_update_location: true - default_avatar: system - allow_update_username: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteUsersResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteUsersResp' + type: object _answer_admin_api_siteinfo_write_get_200_response: - example: - data: - reserved_tags: - - reserved_tags - - reserved_tags - required_tag: true - recommend_tags: - - recommend_tags - - recommend_tags - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteWriteResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteWriteResp' + type: object _answer_admin_api_user_activation_get_200_response: - example: - data: - activation_url: activation_url - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetUserActivationResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object - _answer_admin_api_users_page_get_200_response_data_allOf: - properties: - records: - items: - $ref: '#/definitions/schema.GetUserPageResp' - type: array - type: object - _answer_admin_api_users_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetUserActivationResp' + type: object + _answer_admin_api_users_page_get_200_response_allOf_data: allOf: - $ref: '#/components/schemas/pager.PageModel' - - $ref: '#/components/schemas/_answer_admin_api_users_page_get_200_response_data_allOf' + - properties: + records: + items: + $ref: '#/definitions/schema.GetUserPageResp' + type: array + type: object type: object _answer_admin_api_users_page_get_200_response: - example: - data: null - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/_answer_admin_api_users_page_get_200_response_data' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/_answer_admin_api_users_page_get_200_response_allOf_data' + type: object _answer_api_v1_activity_timeline_get_200_response: - example: - data: - object_info: - object_type: object_type - main_tag_slug_name: main_tag_slug_name - display_name: display_name - title: title - answer_id: answer_id - question_id: question_id - username: username - timeline: - - cancelled_at: 0 - object_type: object_type - activity_type: activity_type - activity_id: activity_id - cancelled: true - created_at: 6 - comment: comment - id: id - object_id: object_id - user_display_name: user_display_name - revision_id: revision_id - username: username - - cancelled_at: 0 - object_type: object_type - activity_type: activity_type - activity_id: activity_id - cancelled: true - created_at: 6 - comment: comment - id: id - object_id: object_id - user_display_name: user_display_name - revision_id: revision_id - username: username - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetObjectTimelineResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetObjectTimelineResp' + type: object _answer_api_v1_collection_switch_post_200_response: - example: - data: - object_id: object_id - object_collection_count: object_collection_count - switch: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.CollectionSwitchResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object - _answer_api_v1_comment_get_200_response_data_allOf: - properties: - list: - items: - $ref: '#/definitions/schema.GetCommentResp' - type: array - type: object - _answer_api_v1_comment_get_200_response_data: + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.CollectionSwitchResp' + type: object + _answer_api_v1_comment_get_200_response_allOf_data: allOf: - $ref: '#/components/schemas/pager.PageModel' - - $ref: '#/components/schemas/_answer_api_v1_comment_get_200_response_data_allOf' + - properties: + list: + items: + $ref: '#/definitions/schema.GetCommentResp' + type: array + type: object type: object _answer_api_v1_comment_get_200_response: - example: - data: null - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/_answer_api_v1_comment_get_200_response_data' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/_answer_api_v1_comment_get_200_response_allOf_data' + type: object _answer_api_v1_comment_post_200_response: - example: - data: - user_avatar: user_avatar - user_status: user_status - is_vote: true - reply_username: reply_username - reply_user_id: reply_user_id - created_at: 0 - member_actions: - - name: name - action: action - type: type - - name: name - action: action - type: type - original_text: original_text - comment_id: comment_id - object_id: object_id - reply_user_display_name: reply_user_display_name - reply_comment_id: reply_comment_id - reply_user_status: reply_user_status - user_id: user_id - parsed_text: parsed_text - user_display_name: user_display_name - vote_count: 6 - username: username - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetCommentResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetCommentResp' + type: object _answer_api_v1_connector_binding_email_post_200_response: - example: - data: - access_token: access_token - email_exist_and_must_be_confirmed: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.ExternalLoginBindingUserSendEmailResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.ExternalLoginBindingUserSendEmailResp' + type: object _answer_api_v1_connector_info_get_200_response: - example: - data: - - icon: icon - link: link - name: name - - icon: icon - link: link - name: name - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - items: - $ref: '#/components/schemas/schema.ConnectorInfoResp' - type: array - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + items: + $ref: '#/components/schemas/schema.ConnectorInfoResp' + type: array + type: object _answer_api_v1_connector_user_info_get_200_response: - example: - data: - - icon: icon - link: link - name: name - binding: true - external_id: external_id - - icon: icon - link: link - name: name - binding: true - external_id: external_id - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - items: - $ref: '#/components/schemas/schema.ConnectorUserInfoResp' - type: array - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + items: + $ref: '#/components/schemas/schema.ConnectorUserInfoResp' + type: array + type: object _answer_api_v1_file_post_request: properties: source: @@ -6971,780 +6017,257 @@ components: - source type: object _answer_api_v1_file_post_200_response: - example: - data: data - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - type: string - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + type: string + type: object _answer_api_v1_follow_post_200_response: - example: - data: - follows: 0 - is_followed: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.FollowResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.FollowResp' + type: object _answer_api_v1_permission_get_200_response: - example: - data: - key: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - additionalProperties: - type: boolean - type: object - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object - _answer_api_v1_personal_comment_page_get_200_response_data_allOf: - properties: - list: - items: - $ref: '#/definitions/schema.GetCommentPersonalWithPageResp' - type: array - type: object - _answer_api_v1_personal_comment_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + additionalProperties: + type: boolean + type: object + type: object + _answer_api_v1_personal_comment_page_get_200_response_allOf_data: allOf: - $ref: '#/components/schemas/pager.PageModel' - - $ref: '#/components/schemas/_answer_api_v1_personal_comment_page_get_200_response_data_allOf' + - properties: + list: + items: + $ref: '#/definitions/schema.GetCommentPersonalWithPageResp' + type: array + type: object type: object _answer_api_v1_personal_comment_page_get_200_response: - example: - data: null - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/_answer_api_v1_personal_comment_page_get_200_response_data' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object - _answer_api_v1_personal_rank_page_get_200_response_data_allOf: - properties: - list: - items: - $ref: '#/definitions/schema.GetRankPersonalPageResp' - type: array - type: object - _answer_api_v1_personal_rank_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/_answer_api_v1_personal_comment_page_get_200_response_allOf_data' + type: object + _answer_api_v1_personal_rank_page_get_200_response_allOf_data: allOf: - $ref: '#/components/schemas/pager.PageModel' - - $ref: '#/components/schemas/_answer_api_v1_personal_rank_page_get_200_response_data_allOf' + - properties: + list: + items: + $ref: '#/definitions/schema.GetRankPersonalPageResp' + type: array + type: object type: object _answer_api_v1_personal_rank_page_get_200_response: - example: - data: null - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/_answer_api_v1_personal_rank_page_get_200_response_data' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/_answer_api_v1_personal_rank_page_get_200_response_allOf_data' + type: object _answer_api_v1_personal_user_info_get_200_response: - example: - data: - info: - website: website - mobile: mobile - bio: bio - created_at: 6 - avatar: avatar - answer_count: 0 - display_name: display_name - last_login_date: 5 - question_count: 5 - bio_html: bio_html - follow_count: 1 - rank: 2 - status_msg: status_msg - location: location - id: id - status: status - username: username - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetOtherUserInfoResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object - _answer_api_v1_personal_vote_page_get_200_response_data_allOf: - properties: - list: - items: - $ref: '#/definitions/schema.GetVoteWithPageResp' - type: array - type: object - _answer_api_v1_personal_vote_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetOtherUserInfoResp' + type: object + _answer_api_v1_personal_vote_page_get_200_response_allOf_data: allOf: - $ref: '#/components/schemas/pager.PageModel' - - $ref: '#/components/schemas/_answer_api_v1_personal_vote_page_get_200_response_data_allOf' + - properties: + list: + items: + $ref: '#/definitions/schema.GetVoteWithPageResp' + type: array + type: object type: object _answer_api_v1_personal_vote_page_get_200_response: - example: - data: null - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/_answer_api_v1_personal_vote_page_get_200_response_data' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object - _answer_api_v1_question_page_get_200_response_data_allOf: - properties: - list: - items: - $ref: '#/definitions/schema.QuestionPageResp' - type: array - type: object - _answer_api_v1_question_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/_answer_api_v1_personal_vote_page_get_200_response_allOf_data' + type: object + _answer_api_v1_question_page_get_200_response_allOf_data: allOf: - $ref: '#/components/schemas/pager.PageModel' - - $ref: '#/components/schemas/_answer_api_v1_question_page_get_200_response_data_allOf' + - properties: + list: + items: + $ref: '#/definitions/schema.QuestionPageResp' + type: array + type: object type: object _answer_api_v1_question_page_get_200_response: - example: - data: null - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/_answer_api_v1_question_page_get_200_response_data' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/_answer_api_v1_question_page_get_200_response_allOf_data' + type: object _answer_api_v1_question_tags_get_200_response: - example: - data: - - created_at: 0 - description: description - main_tag_slug_name: main_tag_slug_name - recommend: true - member_actions: - - name: name - action: action - type: type - - name: name - action: action - type: type - original_text: original_text - display_name: display_name - question_count: 1 - updated_at: 5 - reserved: true - follow_count: 6 - parsed_text: parsed_text - slug_name: slug_name - tag_id: tag_id - excerpt: excerpt - is_follower: true - - created_at: 0 - description: description - main_tag_slug_name: main_tag_slug_name - recommend: true - member_actions: - - name: name - action: action - type: type - - name: name - action: action - type: type - original_text: original_text - display_name: display_name - question_count: 1 - updated_at: 5 - reserved: true - follow_count: 6 - parsed_text: parsed_text - slug_name: slug_name - tag_id: tag_id - excerpt: excerpt - is_follower: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - items: - $ref: '#/components/schemas/schema.GetTagResp' - type: array - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + items: + $ref: '#/components/schemas/schema.GetTagResp' + type: array + type: object _answer_api_v1_revisions_get_200_response: - example: - data: - - reason: reason - user_info: - website: website - rank: 1 - location: location - avatar: avatar - id: id - display_name: display_name - ip_info: ip_info - status: status - username: username - use_id: use_id - id: id - create_at: 0 - title: title - object_id: object_id - content: "{}" - status: 6 - - reason: reason - user_info: - website: website - rank: 1 - location: location - avatar: avatar - id: id - display_name: display_name - ip_info: ip_info - status: status - username: username - use_id: use_id - id: id - create_at: 0 - title: title - object_id: object_id - content: "{}" - status: 6 - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - items: - $ref: '#/components/schemas/schema.GetRevisionResp' - type: array - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object - _answer_api_v1_revisions_unreviewed_get_200_response_data_allOf: - properties: - list: - items: - $ref: '#/definitions/schema.GetUnreviewedRevisionResp' - type: array - type: object - _answer_api_v1_revisions_unreviewed_get_200_response_data: + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + items: + $ref: '#/components/schemas/schema.GetRevisionResp' + type: array + type: object + _answer_api_v1_revisions_unreviewed_get_200_response_allOf_data: allOf: - $ref: '#/components/schemas/pager.PageModel' - - $ref: '#/components/schemas/_answer_api_v1_revisions_unreviewed_get_200_response_data_allOf' + - properties: + list: + items: + $ref: '#/definitions/schema.GetUnreviewedRevisionResp' + type: array + type: object type: object _answer_api_v1_revisions_unreviewed_get_200_response: - example: - data: null - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/_answer_api_v1_revisions_unreviewed_get_200_response_data' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/_answer_api_v1_revisions_unreviewed_get_200_response_allOf_data' + type: object _answer_api_v1_search_get_200_response: - example: - data: - extra: "{}" - count: 0 - list: - - object_type: object_type - object: null - - object_type: object_type - object: null - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SearchListResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SearchResp' + type: object _answer_api_v1_siteinfo_get_200_response: - example: - data: - general: - short_description: short_description - site_url: site_url - name: name - description: description - contact_email: contact_email - site_seo: - robots: robots - permalink: 0 - branding: - square_icon: square_icon - favicon: favicon - mobile_logo: mobile_logo - logo: logo - custom_css_html: - custom_footer: custom_footer - custom_sidebar: custom_sidebar - custom_head: custom_head - custom_css: custom_css - custom_header: custom_header - theme: - theme_config: "{}" - theme_options: - - label: label - value: value - - label: label - value: value - theme: theme - interface: - language: language - time_zone: time_zone - login: - allow_email_registrations: true - allow_email_domains: - - allow_email_domains - - allow_email_domains - login_required: true - allow_new_registrations: true - version: version - revision: revision - site_users: - allow_update_display_name: true - allow_update_bio: true - allow_update_avatar: true - allow_update_website: true - gravatar_base_url: gravatar_base_url - allow_update_location: true - default_avatar: system - allow_update_username: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.SiteInfoResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.SiteInfoResp' + type: object _answer_api_v1_siteinfo_legal_get_200_response: - example: - data: - privacy_policy_parsed_text: privacy_policy_parsed_text - privacy_policy_original_text: privacy_policy_original_text - terms_of_service_original_text: terms_of_service_original_text - terms_of_service_parsed_text: terms_of_service_parsed_text - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetSiteLegalInfoResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetSiteLegalInfoResp' + type: object _answer_api_v1_tag_get_200_response: - example: - data: - created_at: 0 - description: description - main_tag_slug_name: main_tag_slug_name - recommend: true - member_actions: - - name: name - action: action - type: type - - name: name - action: action - type: type - original_text: original_text - display_name: display_name - question_count: 1 - updated_at: 5 - reserved: true - follow_count: 6 - parsed_text: parsed_text - slug_name: slug_name - tag_id: tag_id - excerpt: excerpt - is_follower: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetTagResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetTagResp' + type: object _answer_api_v1_tag_synonyms_get_200_response: - example: - data: - synonyms: - - slug_name: slug_name - tag_id: tag_id - main_tag_slug_name: main_tag_slug_name - display_name: display_name - - slug_name: slug_name - tag_id: tag_id - main_tag_slug_name: main_tag_slug_name - display_name: display_name - member_actions: - - name: name - action: action - type: type - - name: name - action: action - type: type - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetTagSynonymsResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetTagSynonymsResp' + type: object _answer_api_v1_tags_following_get_200_response: - example: - data: - - reserved: true - slug_name: slug_name - tag_id: tag_id - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name - - reserved: true - slug_name: slug_name - tag_id: tag_id - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - items: - $ref: '#/components/schemas/schema.GetFollowingTagsResp' - type: array - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object - _answer_api_v1_tags_page_get_200_response_data_allOf: - properties: - list: - items: - $ref: '#/definitions/schema.GetTagPageResp' - type: array - type: object - _answer_api_v1_tags_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + items: + $ref: '#/components/schemas/schema.GetFollowingTagsResp' + type: array + type: object + _answer_api_v1_tags_page_get_200_response_allOf_data: allOf: - $ref: '#/components/schemas/pager.PageModel' - - $ref: '#/components/schemas/_answer_api_v1_tags_page_get_200_response_data_allOf' + - properties: + list: + items: + $ref: '#/definitions/schema.GetTagPageResp' + type: array + type: object type: object _answer_api_v1_tags_page_get_200_response: - example: - data: null - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/_answer_api_v1_tags_page_get_200_response_data' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/_answer_api_v1_tags_page_get_200_response_allOf_data' + type: object _answer_api_v1_user_action_record_get_200_response: - example: - data: - captcha_id: captcha_id - verify: true - captcha_img: captcha_img - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.ActionRecordResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.ActionRecordResp' + type: object _answer_api_v1_user_email_verification_post_200_response: - example: - data: - bio: bio - created_at: 1 - language: language - answer_count: 0 - have_password: true - authority_group: 6 - role_id: 2 - e_mail: e_mail - rank: 3 - id: id - website: website - notice_status: 7 - mobile: mobile - avatar: avatar - display_name: display_name - last_login_date: 5 - access_token: access_token - question_count: 9 - bio_html: bio_html - follow_count: 5 - mail_status: 2 - location: location - ip_info: ip_info - status: status - username: username - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.UserLoginResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.UserLoginResp' + type: object _answer_api_v1_user_info_get_200_response: - example: - data: - bio: bio - created_at: 1 - language: language - answer_count: 0 - have_password: true - authority_group: 6 - role_id: 2 - e_mail: e_mail - rank: 3 - id: id - website: website - notice_status: 7 - mobile: mobile - avatar: - gravatar: gravatar - custom: custom - type: type - display_name: display_name - last_login_date: 5 - access_token: access_token - question_count: 9 - bio_html: bio_html - follow_count: 5 - mail_status: 2 - location: location - ip_info: ip_info - status: status - username: username - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.GetCurrentLoginUserInfoResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object - _answer_api_v1_user_notice_set_post_200_response: - example: - data: - notice_switch: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.UserNoticeSetResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetCurrentLoginUserInfoResp' + type: object + _answer_api_v1_user_notification_config_post_200_response: + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.GetUserNotificationConfigResp' + type: object _answer_api_v1_user_ranking_get_200_response: - example: - data: - users_with_the_most_reputation: - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - users_with_the_most_vote: - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - staffs: - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - - rank: 0 - avatar: avatar - display_name: display_name - vote_count: 6 - username: username - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.UserRankingResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.UserRankingResp' + type: object _answer_api_v1_vote_down_post_200_response: - example: - data: - up_votes: 6 - down_votes: 0 - votes: 1 - vote_status: vote_status - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/schema.VoteResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/schema.VoteResp' + type: object _installation_config_file_check_post_200_response: - example: - data: - db_connection_success: true - db_table_exist: true - config_file_exist: true - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - $ref: '#/components/schemas/install.CheckConfigFileResp' - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object + allOf: + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + $ref: '#/components/schemas/install.CheckConfigFileResp' + type: object _installation_language_options_get_200_response: - example: - data: - - progress: 0 - label: label - value: value - - progress: 0 - label: label - value: value - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - items: - $ref: '#/components/schemas/translator.LangOption' - type: array - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object - schema_SearchObject_user_info: allOf: - - $ref: '#/components/schemas/schema.UserBasicInfo' - description: user info - type: object - schema_SearchResp_object: - allOf: - - $ref: '#/components/schemas/schema.SearchObject' - description: this object - type: object - schema_UpdateInfoRequest_avatar: - allOf: - - $ref: '#/components/schemas/schema.AvatarInfo' - description: avatar - type: object + - $ref: '#/components/schemas/handler.RespBody' + - properties: + data: + items: + $ref: '#/components/schemas/translator.LangOption' + type: array + type: object securitySchemes: ApiKeyAuth: in: header diff --git a/api_activity.go b/api_activity.go index dcfd632..5e4f7d7 100644 --- a/api_activity.go +++ b/api_activity.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// ActivityApiService ActivityApi service -type ActivityApiService service +// ActivityAPIService ActivityAPI service +type ActivityAPIService service type ApiAnswerApiV1FollowPostRequest struct { ctx context.Context - ApiService *ActivityApiService + ApiService *ActivityAPIService data *SchemaFollowReq } @@ -44,7 +44,7 @@ follow object or cancel follow operation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1FollowPostRequest */ -func (a *ActivityApiService) AnswerApiV1FollowPost(ctx context.Context) ApiAnswerApiV1FollowPostRequest { +func (a *ActivityAPIService) AnswerApiV1FollowPost(ctx context.Context) ApiAnswerApiV1FollowPostRequest { return ApiAnswerApiV1FollowPostRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *ActivityApiService) AnswerApiV1FollowPost(ctx context.Context) ApiAnswe // Execute executes the request // @return AnswerApiV1FollowPost200Response -func (a *ActivityApiService) AnswerApiV1FollowPostExecute(r ApiAnswerApiV1FollowPostRequest) (*AnswerApiV1FollowPost200Response, *http.Response, error) { +func (a *ActivityAPIService) AnswerApiV1FollowPostExecute(r ApiAnswerApiV1FollowPostRequest) (*AnswerApiV1FollowPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *ActivityApiService) AnswerApiV1FollowPostExecute(r ApiAnswerApiV1Follow localVarReturnValue *AnswerApiV1FollowPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1FollowPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.AnswerApiV1FollowPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -147,7 +147,7 @@ func (a *ActivityApiService) AnswerApiV1FollowPostExecute(r ApiAnswerApiV1Follow type ApiAnswerApiV1FollowTagsPutRequest struct { ctx context.Context - ApiService *ActivityApiService + ApiService *ActivityAPIService data *SchemaUpdateFollowTagsReq } @@ -169,7 +169,7 @@ update user follow tags @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1FollowTagsPutRequest */ -func (a *ActivityApiService) AnswerApiV1FollowTagsPut(ctx context.Context) ApiAnswerApiV1FollowTagsPutRequest { +func (a *ActivityAPIService) AnswerApiV1FollowTagsPut(ctx context.Context) ApiAnswerApiV1FollowTagsPutRequest { return ApiAnswerApiV1FollowTagsPutRequest{ ApiService: a, ctx: ctx, @@ -178,7 +178,7 @@ func (a *ActivityApiService) AnswerApiV1FollowTagsPut(ctx context.Context) ApiAn // Execute executes the request // @return HandlerRespBody -func (a *ActivityApiService) AnswerApiV1FollowTagsPutExecute(r ApiAnswerApiV1FollowTagsPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *ActivityAPIService) AnswerApiV1FollowTagsPutExecute(r ApiAnswerApiV1FollowTagsPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -186,7 +186,7 @@ func (a *ActivityApiService) AnswerApiV1FollowTagsPutExecute(r ApiAnswerApiV1Fol localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1FollowTagsPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.AnswerApiV1FollowTagsPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -272,7 +272,7 @@ func (a *ActivityApiService) AnswerApiV1FollowTagsPutExecute(r ApiAnswerApiV1Fol type ApiAnswerApiV1PersonalVotePageGetRequest struct { ctx context.Context - ApiService *ActivityApiService + ApiService *ActivityAPIService page *int32 pageSize *int32 } @@ -301,7 +301,7 @@ get user personal votes @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PersonalVotePageGetRequest */ -func (a *ActivityApiService) AnswerApiV1PersonalVotePageGet(ctx context.Context) ApiAnswerApiV1PersonalVotePageGetRequest { +func (a *ActivityAPIService) AnswerApiV1PersonalVotePageGet(ctx context.Context) ApiAnswerApiV1PersonalVotePageGetRequest { return ApiAnswerApiV1PersonalVotePageGetRequest{ ApiService: a, ctx: ctx, @@ -310,7 +310,7 @@ func (a *ActivityApiService) AnswerApiV1PersonalVotePageGet(ctx context.Context) // Execute executes the request // @return AnswerApiV1PersonalVotePageGet200Response -func (a *ActivityApiService) AnswerApiV1PersonalVotePageGetExecute(r ApiAnswerApiV1PersonalVotePageGetRequest) (*AnswerApiV1PersonalVotePageGet200Response, *http.Response, error) { +func (a *ActivityAPIService) AnswerApiV1PersonalVotePageGetExecute(r ApiAnswerApiV1PersonalVotePageGetRequest) (*AnswerApiV1PersonalVotePageGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -318,7 +318,7 @@ func (a *ActivityApiService) AnswerApiV1PersonalVotePageGetExecute(r ApiAnswerAp localVarReturnValue *AnswerApiV1PersonalVotePageGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1PersonalVotePageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.AnswerApiV1PersonalVotePageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -405,7 +405,7 @@ func (a *ActivityApiService) AnswerApiV1PersonalVotePageGetExecute(r ApiAnswerAp type ApiAnswerApiV1VoteDownPostRequest struct { ctx context.Context - ApiService *ActivityApiService + ApiService *ActivityAPIService data *SchemaVoteReq } @@ -427,7 +427,7 @@ add vote @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1VoteDownPostRequest */ -func (a *ActivityApiService) AnswerApiV1VoteDownPost(ctx context.Context) ApiAnswerApiV1VoteDownPostRequest { +func (a *ActivityAPIService) AnswerApiV1VoteDownPost(ctx context.Context) ApiAnswerApiV1VoteDownPostRequest { return ApiAnswerApiV1VoteDownPostRequest{ ApiService: a, ctx: ctx, @@ -436,7 +436,7 @@ func (a *ActivityApiService) AnswerApiV1VoteDownPost(ctx context.Context) ApiAns // Execute executes the request // @return AnswerApiV1VoteDownPost200Response -func (a *ActivityApiService) AnswerApiV1VoteDownPostExecute(r ApiAnswerApiV1VoteDownPostRequest) (*AnswerApiV1VoteDownPost200Response, *http.Response, error) { +func (a *ActivityAPIService) AnswerApiV1VoteDownPostExecute(r ApiAnswerApiV1VoteDownPostRequest) (*AnswerApiV1VoteDownPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -444,7 +444,7 @@ func (a *ActivityApiService) AnswerApiV1VoteDownPostExecute(r ApiAnswerApiV1Vote localVarReturnValue *AnswerApiV1VoteDownPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1VoteDownPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.AnswerApiV1VoteDownPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -530,7 +530,7 @@ func (a *ActivityApiService) AnswerApiV1VoteDownPostExecute(r ApiAnswerApiV1Vote type ApiAnswerApiV1VoteUpPostRequest struct { ctx context.Context - ApiService *ActivityApiService + ApiService *ActivityAPIService data *SchemaVoteReq } @@ -552,7 +552,7 @@ add vote @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1VoteUpPostRequest */ -func (a *ActivityApiService) AnswerApiV1VoteUpPost(ctx context.Context) ApiAnswerApiV1VoteUpPostRequest { +func (a *ActivityAPIService) AnswerApiV1VoteUpPost(ctx context.Context) ApiAnswerApiV1VoteUpPostRequest { return ApiAnswerApiV1VoteUpPostRequest{ ApiService: a, ctx: ctx, @@ -561,7 +561,7 @@ func (a *ActivityApiService) AnswerApiV1VoteUpPost(ctx context.Context) ApiAnswe // Execute executes the request // @return AnswerApiV1VoteDownPost200Response -func (a *ActivityApiService) AnswerApiV1VoteUpPostExecute(r ApiAnswerApiV1VoteUpPostRequest) (*AnswerApiV1VoteDownPost200Response, *http.Response, error) { +func (a *ActivityAPIService) AnswerApiV1VoteUpPostExecute(r ApiAnswerApiV1VoteUpPostRequest) (*AnswerApiV1VoteDownPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -569,7 +569,7 @@ func (a *ActivityApiService) AnswerApiV1VoteUpPostExecute(r ApiAnswerApiV1VoteUp localVarReturnValue *AnswerApiV1VoteDownPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1VoteUpPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.AnswerApiV1VoteUpPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_admin.go b/api_admin.go index 52e1d50..1424e63 100644 --- a/api_admin.go +++ b/api_admin.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// AdminApiService AdminApi service -type AdminApiService service +// AdminAPIService AdminAPI service +type AdminAPIService service type ApiAnswerAdminApiAnswerPageGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService page *int32 pageSize *int32 status *string @@ -72,7 +72,7 @@ Status:[available,deleted] @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiAnswerPageGetRequest */ -func (a *AdminApiService) AnswerAdminApiAnswerPageGet(ctx context.Context) ApiAnswerAdminApiAnswerPageGetRequest { +func (a *AdminAPIService) AnswerAdminApiAnswerPageGet(ctx context.Context) ApiAnswerAdminApiAnswerPageGetRequest { return ApiAnswerAdminApiAnswerPageGetRequest{ ApiService: a, ctx: ctx, @@ -81,7 +81,7 @@ func (a *AdminApiService) AnswerAdminApiAnswerPageGet(ctx context.Context) ApiAn // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiAnswerPageGetExecute(r ApiAnswerAdminApiAnswerPageGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiAnswerPageGetExecute(r ApiAnswerAdminApiAnswerPageGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -89,7 +89,7 @@ func (a *AdminApiService) AnswerAdminApiAnswerPageGetExecute(r ApiAnswerAdminApi localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiAnswerPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiAnswerPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -185,7 +185,7 @@ func (a *AdminApiService) AnswerAdminApiAnswerPageGetExecute(r ApiAnswerAdminApi type ApiAnswerAdminApiAnswerStatusPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaAdminSetAnswerStatusRequest } @@ -207,7 +207,7 @@ Status:[available,deleted] @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiAnswerStatusPutRequest */ -func (a *AdminApiService) AnswerAdminApiAnswerStatusPut(ctx context.Context) ApiAnswerAdminApiAnswerStatusPutRequest { +func (a *AdminAPIService) AnswerAdminApiAnswerStatusPut(ctx context.Context) ApiAnswerAdminApiAnswerStatusPutRequest { return ApiAnswerAdminApiAnswerStatusPutRequest{ ApiService: a, ctx: ctx, @@ -216,7 +216,7 @@ func (a *AdminApiService) AnswerAdminApiAnswerStatusPut(ctx context.Context) Api // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiAnswerStatusPutExecute(r ApiAnswerAdminApiAnswerStatusPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiAnswerStatusPutExecute(r ApiAnswerAdminApiAnswerStatusPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -224,7 +224,7 @@ func (a *AdminApiService) AnswerAdminApiAnswerStatusPutExecute(r ApiAnswerAdminA localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiAnswerStatusPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiAnswerStatusPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -310,7 +310,7 @@ func (a *AdminApiService) AnswerAdminApiAnswerStatusPutExecute(r ApiAnswerAdminA type ApiAnswerAdminApiDashboardGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiDashboardGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { @@ -325,7 +325,7 @@ DashboardInfo @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiDashboardGetRequest */ -func (a *AdminApiService) AnswerAdminApiDashboardGet(ctx context.Context) ApiAnswerAdminApiDashboardGetRequest { +func (a *AdminAPIService) AnswerAdminApiDashboardGet(ctx context.Context) ApiAnswerAdminApiDashboardGetRequest { return ApiAnswerAdminApiDashboardGetRequest{ ApiService: a, ctx: ctx, @@ -334,7 +334,7 @@ func (a *AdminApiService) AnswerAdminApiDashboardGet(ctx context.Context) ApiAns // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiDashboardGetExecute(r ApiAnswerAdminApiDashboardGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiDashboardGetExecute(r ApiAnswerAdminApiDashboardGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -342,7 +342,7 @@ func (a *AdminApiService) AnswerAdminApiDashboardGetExecute(r ApiAnswerAdminApiD localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiDashboardGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiDashboardGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -423,7 +423,7 @@ func (a *AdminApiService) AnswerAdminApiDashboardGetExecute(r ApiAnswerAdminApiD type ApiAnswerAdminApiQuestionPageGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService page *int32 pageSize *int32 status *string @@ -466,7 +466,7 @@ Status:[available,closed,deleted] @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiQuestionPageGetRequest */ -func (a *AdminApiService) AnswerAdminApiQuestionPageGet(ctx context.Context) ApiAnswerAdminApiQuestionPageGetRequest { +func (a *AdminAPIService) AnswerAdminApiQuestionPageGet(ctx context.Context) ApiAnswerAdminApiQuestionPageGetRequest { return ApiAnswerAdminApiQuestionPageGetRequest{ ApiService: a, ctx: ctx, @@ -475,7 +475,7 @@ func (a *AdminApiService) AnswerAdminApiQuestionPageGet(ctx context.Context) Api // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiQuestionPageGetExecute(r ApiAnswerAdminApiQuestionPageGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiQuestionPageGetExecute(r ApiAnswerAdminApiQuestionPageGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -483,7 +483,7 @@ func (a *AdminApiService) AnswerAdminApiQuestionPageGetExecute(r ApiAnswerAdminA localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiQuestionPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiQuestionPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -576,7 +576,7 @@ func (a *AdminApiService) AnswerAdminApiQuestionPageGetExecute(r ApiAnswerAdminA type ApiAnswerAdminApiQuestionStatusPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaAdminSetQuestionStatusRequest } @@ -598,7 +598,7 @@ Status:[available,closed,deleted] @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiQuestionStatusPutRequest */ -func (a *AdminApiService) AnswerAdminApiQuestionStatusPut(ctx context.Context) ApiAnswerAdminApiQuestionStatusPutRequest { +func (a *AdminAPIService) AnswerAdminApiQuestionStatusPut(ctx context.Context) ApiAnswerAdminApiQuestionStatusPutRequest { return ApiAnswerAdminApiQuestionStatusPutRequest{ ApiService: a, ctx: ctx, @@ -607,7 +607,7 @@ func (a *AdminApiService) AnswerAdminApiQuestionStatusPut(ctx context.Context) A // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiQuestionStatusPutExecute(r ApiAnswerAdminApiQuestionStatusPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiQuestionStatusPutExecute(r ApiAnswerAdminApiQuestionStatusPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -615,7 +615,7 @@ func (a *AdminApiService) AnswerAdminApiQuestionStatusPutExecute(r ApiAnswerAdmi localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiQuestionStatusPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiQuestionStatusPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -701,7 +701,7 @@ func (a *AdminApiService) AnswerAdminApiQuestionStatusPutExecute(r ApiAnswerAdmi type ApiAnswerAdminApiReportPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaReportHandleReq } @@ -723,7 +723,7 @@ handle flag @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiReportPutRequest */ -func (a *AdminApiService) AnswerAdminApiReportPut(ctx context.Context) ApiAnswerAdminApiReportPutRequest { +func (a *AdminAPIService) AnswerAdminApiReportPut(ctx context.Context) ApiAnswerAdminApiReportPutRequest { return ApiAnswerAdminApiReportPutRequest{ ApiService: a, ctx: ctx, @@ -732,7 +732,7 @@ func (a *AdminApiService) AnswerAdminApiReportPut(ctx context.Context) ApiAnswer // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiReportPutExecute(r ApiAnswerAdminApiReportPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiReportPutExecute(r ApiAnswerAdminApiReportPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -740,7 +740,7 @@ func (a *AdminApiService) AnswerAdminApiReportPutExecute(r ApiAnswerAdminApiRepo localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiReportPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiReportPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -826,7 +826,7 @@ func (a *AdminApiService) AnswerAdminApiReportPutExecute(r ApiAnswerAdminApiRepo type ApiAnswerAdminApiReportsPageGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService status *string objectType *string page *int32 @@ -869,7 +869,7 @@ list report records @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiReportsPageGetRequest */ -func (a *AdminApiService) AnswerAdminApiReportsPageGet(ctx context.Context) ApiAnswerAdminApiReportsPageGetRequest { +func (a *AdminAPIService) AnswerAdminApiReportsPageGet(ctx context.Context) ApiAnswerAdminApiReportsPageGetRequest { return ApiAnswerAdminApiReportsPageGetRequest{ ApiService: a, ctx: ctx, @@ -878,7 +878,7 @@ func (a *AdminApiService) AnswerAdminApiReportsPageGet(ctx context.Context) ApiA // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiReportsPageGetExecute(r ApiAnswerAdminApiReportsPageGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiReportsPageGetExecute(r ApiAnswerAdminApiReportsPageGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -886,7 +886,7 @@ func (a *AdminApiService) AnswerAdminApiReportsPageGetExecute(r ApiAnswerAdminAp localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiReportsPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiReportsPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -981,7 +981,7 @@ func (a *AdminApiService) AnswerAdminApiReportsPageGetExecute(r ApiAnswerAdminAp type ApiAnswerAdminApiRolesGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiRolesGetRequest) Execute() (*AnswerAdminApiRolesGet200Response, *http.Response, error) { @@ -996,7 +996,7 @@ get role list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiRolesGetRequest */ -func (a *AdminApiService) AnswerAdminApiRolesGet(ctx context.Context) ApiAnswerAdminApiRolesGetRequest { +func (a *AdminAPIService) AnswerAdminApiRolesGet(ctx context.Context) ApiAnswerAdminApiRolesGetRequest { return ApiAnswerAdminApiRolesGetRequest{ ApiService: a, ctx: ctx, @@ -1005,7 +1005,7 @@ func (a *AdminApiService) AnswerAdminApiRolesGet(ctx context.Context) ApiAnswerA // Execute executes the request // @return AnswerAdminApiRolesGet200Response -func (a *AdminApiService) AnswerAdminApiRolesGetExecute(r ApiAnswerAdminApiRolesGetRequest) (*AnswerAdminApiRolesGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiRolesGetExecute(r ApiAnswerAdminApiRolesGetRequest) (*AnswerAdminApiRolesGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1013,7 +1013,7 @@ func (a *AdminApiService) AnswerAdminApiRolesGetExecute(r ApiAnswerAdminApiRoles localVarReturnValue *AnswerAdminApiRolesGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiRolesGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiRolesGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1080,7 +1080,7 @@ func (a *AdminApiService) AnswerAdminApiRolesGetExecute(r ApiAnswerAdminApiRoles type ApiAnswerAdminApiSettingPrivilegesGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSettingPrivilegesGetRequest) Execute() (*AnswerAdminApiSettingPrivilegesGet200Response, *http.Response, error) { @@ -1095,7 +1095,7 @@ GetPrivilegesConfig get privileges config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSettingPrivilegesGetRequest */ -func (a *AdminApiService) AnswerAdminApiSettingPrivilegesGet(ctx context.Context) ApiAnswerAdminApiSettingPrivilegesGetRequest { +func (a *AdminAPIService) AnswerAdminApiSettingPrivilegesGet(ctx context.Context) ApiAnswerAdminApiSettingPrivilegesGetRequest { return ApiAnswerAdminApiSettingPrivilegesGetRequest{ ApiService: a, ctx: ctx, @@ -1104,7 +1104,7 @@ func (a *AdminApiService) AnswerAdminApiSettingPrivilegesGet(ctx context.Context // Execute executes the request // @return AnswerAdminApiSettingPrivilegesGet200Response -func (a *AdminApiService) AnswerAdminApiSettingPrivilegesGetExecute(r ApiAnswerAdminApiSettingPrivilegesGetRequest) (*AnswerAdminApiSettingPrivilegesGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSettingPrivilegesGetExecute(r ApiAnswerAdminApiSettingPrivilegesGetRequest) (*AnswerAdminApiSettingPrivilegesGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1112,7 +1112,7 @@ func (a *AdminApiService) AnswerAdminApiSettingPrivilegesGetExecute(r ApiAnswerA localVarReturnValue *AnswerAdminApiSettingPrivilegesGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSettingPrivilegesGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSettingPrivilegesGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1193,7 +1193,7 @@ func (a *AdminApiService) AnswerAdminApiSettingPrivilegesGetExecute(r ApiAnswerA type ApiAnswerAdminApiSettingPrivilegesPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaUpdatePrivilegesConfigReq } @@ -1215,7 +1215,7 @@ update privileges config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSettingPrivilegesPutRequest */ -func (a *AdminApiService) AnswerAdminApiSettingPrivilegesPut(ctx context.Context) ApiAnswerAdminApiSettingPrivilegesPutRequest { +func (a *AdminAPIService) AnswerAdminApiSettingPrivilegesPut(ctx context.Context) ApiAnswerAdminApiSettingPrivilegesPutRequest { return ApiAnswerAdminApiSettingPrivilegesPutRequest{ ApiService: a, ctx: ctx, @@ -1224,7 +1224,7 @@ func (a *AdminApiService) AnswerAdminApiSettingPrivilegesPut(ctx context.Context // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSettingPrivilegesPutExecute(r ApiAnswerAdminApiSettingPrivilegesPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSettingPrivilegesPutExecute(r ApiAnswerAdminApiSettingPrivilegesPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1232,7 +1232,7 @@ func (a *AdminApiService) AnswerAdminApiSettingPrivilegesPutExecute(r ApiAnswerA localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSettingPrivilegesPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSettingPrivilegesPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1318,7 +1318,7 @@ func (a *AdminApiService) AnswerAdminApiSettingPrivilegesPutExecute(r ApiAnswerA type ApiAnswerAdminApiSettingSmtpGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSettingSmtpGetRequest) Execute() (*AnswerAdminApiSettingSmtpGet200Response, *http.Response, error) { @@ -1333,7 +1333,7 @@ GetSMTPConfig get smtp config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSettingSmtpGetRequest */ -func (a *AdminApiService) AnswerAdminApiSettingSmtpGet(ctx context.Context) ApiAnswerAdminApiSettingSmtpGetRequest { +func (a *AdminAPIService) AnswerAdminApiSettingSmtpGet(ctx context.Context) ApiAnswerAdminApiSettingSmtpGetRequest { return ApiAnswerAdminApiSettingSmtpGetRequest{ ApiService: a, ctx: ctx, @@ -1342,7 +1342,7 @@ func (a *AdminApiService) AnswerAdminApiSettingSmtpGet(ctx context.Context) ApiA // Execute executes the request // @return AnswerAdminApiSettingSmtpGet200Response -func (a *AdminApiService) AnswerAdminApiSettingSmtpGetExecute(r ApiAnswerAdminApiSettingSmtpGetRequest) (*AnswerAdminApiSettingSmtpGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSettingSmtpGetExecute(r ApiAnswerAdminApiSettingSmtpGetRequest) (*AnswerAdminApiSettingSmtpGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1350,7 +1350,7 @@ func (a *AdminApiService) AnswerAdminApiSettingSmtpGetExecute(r ApiAnswerAdminAp localVarReturnValue *AnswerAdminApiSettingSmtpGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSettingSmtpGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSettingSmtpGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1431,7 +1431,7 @@ func (a *AdminApiService) AnswerAdminApiSettingSmtpGetExecute(r ApiAnswerAdminAp type ApiAnswerAdminApiSettingSmtpPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaUpdateSMTPConfigReq } @@ -1453,7 +1453,7 @@ update smtp config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSettingSmtpPutRequest */ -func (a *AdminApiService) AnswerAdminApiSettingSmtpPut(ctx context.Context) ApiAnswerAdminApiSettingSmtpPutRequest { +func (a *AdminAPIService) AnswerAdminApiSettingSmtpPut(ctx context.Context) ApiAnswerAdminApiSettingSmtpPutRequest { return ApiAnswerAdminApiSettingSmtpPutRequest{ ApiService: a, ctx: ctx, @@ -1462,7 +1462,7 @@ func (a *AdminApiService) AnswerAdminApiSettingSmtpPut(ctx context.Context) ApiA // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSettingSmtpPutExecute(r ApiAnswerAdminApiSettingSmtpPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSettingSmtpPutExecute(r ApiAnswerAdminApiSettingSmtpPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1470,7 +1470,7 @@ func (a *AdminApiService) AnswerAdminApiSettingSmtpPutExecute(r ApiAnswerAdminAp localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSettingSmtpPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSettingSmtpPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1556,7 +1556,7 @@ func (a *AdminApiService) AnswerAdminApiSettingSmtpPutExecute(r ApiAnswerAdminAp type ApiAnswerAdminApiSiteinfoBrandingGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSiteinfoBrandingGetRequest) Execute() (*AnswerAdminApiSiteinfoBrandingGet200Response, *http.Response, error) { @@ -1571,7 +1571,7 @@ get site interface @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoBrandingGetRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingGet(ctx context.Context) ApiAnswerAdminApiSiteinfoBrandingGetRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoBrandingGet(ctx context.Context) ApiAnswerAdminApiSiteinfoBrandingGetRequest { return ApiAnswerAdminApiSiteinfoBrandingGetRequest{ ApiService: a, ctx: ctx, @@ -1580,7 +1580,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingGet(ctx context.Context) // Execute executes the request // @return AnswerAdminApiSiteinfoBrandingGet200Response -func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingGetExecute(r ApiAnswerAdminApiSiteinfoBrandingGetRequest) (*AnswerAdminApiSiteinfoBrandingGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoBrandingGetExecute(r ApiAnswerAdminApiSiteinfoBrandingGetRequest) (*AnswerAdminApiSiteinfoBrandingGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1588,7 +1588,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingGetExecute(r ApiAnswerAd localVarReturnValue *AnswerAdminApiSiteinfoBrandingGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoBrandingGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoBrandingGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1669,7 +1669,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingGetExecute(r ApiAnswerAd type ApiAnswerAdminApiSiteinfoBrandingPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSiteBrandingReq } @@ -1691,7 +1691,7 @@ update site info branding @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoBrandingPutRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingPut(ctx context.Context) ApiAnswerAdminApiSiteinfoBrandingPutRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoBrandingPut(ctx context.Context) ApiAnswerAdminApiSiteinfoBrandingPutRequest { return ApiAnswerAdminApiSiteinfoBrandingPutRequest{ ApiService: a, ctx: ctx, @@ -1700,7 +1700,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingPut(ctx context.Context) // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingPutExecute(r ApiAnswerAdminApiSiteinfoBrandingPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoBrandingPutExecute(r ApiAnswerAdminApiSiteinfoBrandingPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1708,7 +1708,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingPutExecute(r ApiAnswerAd localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoBrandingPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoBrandingPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1794,7 +1794,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingPutExecute(r ApiAnswerAd type ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest) Execute() (*AnswerAdminApiSiteinfoCustomCssHtmlGet200Response, *http.Response, error) { @@ -1809,7 +1809,7 @@ get site info custom html css config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlGet(ctx context.Context) ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoCustomCssHtmlGet(ctx context.Context) ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest { return ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest{ ApiService: a, ctx: ctx, @@ -1818,7 +1818,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlGet(ctx context.Con // Execute executes the request // @return AnswerAdminApiSiteinfoCustomCssHtmlGet200Response -func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlGetExecute(r ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest) (*AnswerAdminApiSiteinfoCustomCssHtmlGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoCustomCssHtmlGetExecute(r ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest) (*AnswerAdminApiSiteinfoCustomCssHtmlGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1826,7 +1826,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlGetExecute(r ApiAns localVarReturnValue *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoCustomCssHtmlGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoCustomCssHtmlGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1907,7 +1907,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlGetExecute(r ApiAns type ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSiteCustomCssHTMLReq } @@ -1929,7 +1929,7 @@ update site custom css html config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlPut(ctx context.Context) ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoCustomCssHtmlPut(ctx context.Context) ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest { return ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest{ ApiService: a, ctx: ctx, @@ -1938,7 +1938,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlPut(ctx context.Con // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlPutExecute(r ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoCustomCssHtmlPutExecute(r ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1946,7 +1946,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlPutExecute(r ApiAns localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoCustomCssHtmlPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoCustomCssHtmlPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2032,7 +2032,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlPutExecute(r ApiAns type ApiAnswerAdminApiSiteinfoGeneralGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSiteinfoGeneralGetRequest) Execute() (*AnswerAdminApiSiteinfoGeneralGet200Response, *http.Response, error) { @@ -2047,7 +2047,7 @@ get site general information @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoGeneralGetRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralGet(ctx context.Context) ApiAnswerAdminApiSiteinfoGeneralGetRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoGeneralGet(ctx context.Context) ApiAnswerAdminApiSiteinfoGeneralGetRequest { return ApiAnswerAdminApiSiteinfoGeneralGetRequest{ ApiService: a, ctx: ctx, @@ -2056,7 +2056,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralGet(ctx context.Context) // Execute executes the request // @return AnswerAdminApiSiteinfoGeneralGet200Response -func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralGetExecute(r ApiAnswerAdminApiSiteinfoGeneralGetRequest) (*AnswerAdminApiSiteinfoGeneralGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoGeneralGetExecute(r ApiAnswerAdminApiSiteinfoGeneralGetRequest) (*AnswerAdminApiSiteinfoGeneralGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2064,7 +2064,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralGetExecute(r ApiAnswerAdm localVarReturnValue *AnswerAdminApiSiteinfoGeneralGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoGeneralGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoGeneralGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2145,7 +2145,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralGetExecute(r ApiAnswerAdm type ApiAnswerAdminApiSiteinfoGeneralPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSiteGeneralReq } @@ -2167,7 +2167,7 @@ update site general information @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoGeneralPutRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralPut(ctx context.Context) ApiAnswerAdminApiSiteinfoGeneralPutRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoGeneralPut(ctx context.Context) ApiAnswerAdminApiSiteinfoGeneralPutRequest { return ApiAnswerAdminApiSiteinfoGeneralPutRequest{ ApiService: a, ctx: ctx, @@ -2176,7 +2176,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralPut(ctx context.Context) // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralPutExecute(r ApiAnswerAdminApiSiteinfoGeneralPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoGeneralPutExecute(r ApiAnswerAdminApiSiteinfoGeneralPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -2184,7 +2184,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralPutExecute(r ApiAnswerAdm localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoGeneralPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoGeneralPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2270,7 +2270,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralPutExecute(r ApiAnswerAdm type ApiAnswerAdminApiSiteinfoInterfaceGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSiteinfoInterfaceGetRequest) Execute() (*AnswerAdminApiSiteinfoInterfaceGet200Response, *http.Response, error) { @@ -2285,7 +2285,7 @@ get site interface @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoInterfaceGetRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoInterfaceGet(ctx context.Context) ApiAnswerAdminApiSiteinfoInterfaceGetRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoInterfaceGet(ctx context.Context) ApiAnswerAdminApiSiteinfoInterfaceGetRequest { return ApiAnswerAdminApiSiteinfoInterfaceGetRequest{ ApiService: a, ctx: ctx, @@ -2294,7 +2294,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoInterfaceGet(ctx context.Context // Execute executes the request // @return AnswerAdminApiSiteinfoInterfaceGet200Response -func (a *AdminApiService) AnswerAdminApiSiteinfoInterfaceGetExecute(r ApiAnswerAdminApiSiteinfoInterfaceGetRequest) (*AnswerAdminApiSiteinfoInterfaceGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoInterfaceGetExecute(r ApiAnswerAdminApiSiteinfoInterfaceGetRequest) (*AnswerAdminApiSiteinfoInterfaceGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2302,7 +2302,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoInterfaceGetExecute(r ApiAnswerA localVarReturnValue *AnswerAdminApiSiteinfoInterfaceGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoInterfaceGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoInterfaceGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2383,7 +2383,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoInterfaceGetExecute(r ApiAnswerA type ApiAnswerAdminApiSiteinfoInterfacePutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSiteInterfaceReq } @@ -2405,7 +2405,7 @@ update site info interface @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoInterfacePutRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoInterfacePut(ctx context.Context) ApiAnswerAdminApiSiteinfoInterfacePutRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoInterfacePut(ctx context.Context) ApiAnswerAdminApiSiteinfoInterfacePutRequest { return ApiAnswerAdminApiSiteinfoInterfacePutRequest{ ApiService: a, ctx: ctx, @@ -2414,7 +2414,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoInterfacePut(ctx context.Context // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSiteinfoInterfacePutExecute(r ApiAnswerAdminApiSiteinfoInterfacePutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoInterfacePutExecute(r ApiAnswerAdminApiSiteinfoInterfacePutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -2422,7 +2422,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoInterfacePutExecute(r ApiAnswerA localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoInterfacePut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoInterfacePut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2508,7 +2508,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoInterfacePutExecute(r ApiAnswerA type ApiAnswerAdminApiSiteinfoLegalGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSiteinfoLegalGetRequest) Execute() (*AnswerAdminApiSiteinfoLegalGet200Response, *http.Response, error) { @@ -2523,7 +2523,7 @@ Set the legal information for the site @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoLegalGetRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoLegalGet(ctx context.Context) ApiAnswerAdminApiSiteinfoLegalGetRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoLegalGet(ctx context.Context) ApiAnswerAdminApiSiteinfoLegalGetRequest { return ApiAnswerAdminApiSiteinfoLegalGetRequest{ ApiService: a, ctx: ctx, @@ -2532,7 +2532,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLegalGet(ctx context.Context) Ap // Execute executes the request // @return AnswerAdminApiSiteinfoLegalGet200Response -func (a *AdminApiService) AnswerAdminApiSiteinfoLegalGetExecute(r ApiAnswerAdminApiSiteinfoLegalGetRequest) (*AnswerAdminApiSiteinfoLegalGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoLegalGetExecute(r ApiAnswerAdminApiSiteinfoLegalGetRequest) (*AnswerAdminApiSiteinfoLegalGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2540,7 +2540,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLegalGetExecute(r ApiAnswerAdmin localVarReturnValue *AnswerAdminApiSiteinfoLegalGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoLegalGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoLegalGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2621,7 +2621,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLegalGetExecute(r ApiAnswerAdmin type ApiAnswerAdminApiSiteinfoLegalPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSiteLegalReq } @@ -2643,7 +2643,7 @@ update site legal info @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoLegalPutRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoLegalPut(ctx context.Context) ApiAnswerAdminApiSiteinfoLegalPutRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoLegalPut(ctx context.Context) ApiAnswerAdminApiSiteinfoLegalPutRequest { return ApiAnswerAdminApiSiteinfoLegalPutRequest{ ApiService: a, ctx: ctx, @@ -2652,7 +2652,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLegalPut(ctx context.Context) Ap // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSiteinfoLegalPutExecute(r ApiAnswerAdminApiSiteinfoLegalPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoLegalPutExecute(r ApiAnswerAdminApiSiteinfoLegalPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -2660,7 +2660,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLegalPutExecute(r ApiAnswerAdmin localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoLegalPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoLegalPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2746,7 +2746,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLegalPutExecute(r ApiAnswerAdmin type ApiAnswerAdminApiSiteinfoLoginGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSiteinfoLoginGetRequest) Execute() (*AnswerAdminApiSiteinfoLoginGet200Response, *http.Response, error) { @@ -2761,7 +2761,7 @@ get site info login config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoLoginGetRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoLoginGet(ctx context.Context) ApiAnswerAdminApiSiteinfoLoginGetRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoLoginGet(ctx context.Context) ApiAnswerAdminApiSiteinfoLoginGetRequest { return ApiAnswerAdminApiSiteinfoLoginGetRequest{ ApiService: a, ctx: ctx, @@ -2770,7 +2770,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLoginGet(ctx context.Context) Ap // Execute executes the request // @return AnswerAdminApiSiteinfoLoginGet200Response -func (a *AdminApiService) AnswerAdminApiSiteinfoLoginGetExecute(r ApiAnswerAdminApiSiteinfoLoginGetRequest) (*AnswerAdminApiSiteinfoLoginGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoLoginGetExecute(r ApiAnswerAdminApiSiteinfoLoginGetRequest) (*AnswerAdminApiSiteinfoLoginGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2778,7 +2778,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLoginGetExecute(r ApiAnswerAdmin localVarReturnValue *AnswerAdminApiSiteinfoLoginGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoLoginGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoLoginGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2859,7 +2859,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLoginGetExecute(r ApiAnswerAdmin type ApiAnswerAdminApiSiteinfoLoginPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSiteLoginReq } @@ -2881,7 +2881,7 @@ update site login @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoLoginPutRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoLoginPut(ctx context.Context) ApiAnswerAdminApiSiteinfoLoginPutRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoLoginPut(ctx context.Context) ApiAnswerAdminApiSiteinfoLoginPutRequest { return ApiAnswerAdminApiSiteinfoLoginPutRequest{ ApiService: a, ctx: ctx, @@ -2890,7 +2890,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLoginPut(ctx context.Context) Ap // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSiteinfoLoginPutExecute(r ApiAnswerAdminApiSiteinfoLoginPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoLoginPutExecute(r ApiAnswerAdminApiSiteinfoLoginPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -2898,7 +2898,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLoginPutExecute(r ApiAnswerAdmin localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoLoginPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoLoginPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2984,7 +2984,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoLoginPutExecute(r ApiAnswerAdmin type ApiAnswerAdminApiSiteinfoSeoGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSiteinfoSeoGetRequest) Execute() (*AnswerAdminApiSiteinfoSeoGet200Response, *http.Response, error) { @@ -2999,7 +2999,7 @@ get site seo information @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoSeoGetRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoSeoGet(ctx context.Context) ApiAnswerAdminApiSiteinfoSeoGetRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoSeoGet(ctx context.Context) ApiAnswerAdminApiSiteinfoSeoGetRequest { return ApiAnswerAdminApiSiteinfoSeoGetRequest{ ApiService: a, ctx: ctx, @@ -3008,7 +3008,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoSeoGet(ctx context.Context) ApiA // Execute executes the request // @return AnswerAdminApiSiteinfoSeoGet200Response -func (a *AdminApiService) AnswerAdminApiSiteinfoSeoGetExecute(r ApiAnswerAdminApiSiteinfoSeoGetRequest) (*AnswerAdminApiSiteinfoSeoGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoSeoGetExecute(r ApiAnswerAdminApiSiteinfoSeoGetRequest) (*AnswerAdminApiSiteinfoSeoGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3016,7 +3016,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoSeoGetExecute(r ApiAnswerAdminAp localVarReturnValue *AnswerAdminApiSiteinfoSeoGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoSeoGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoSeoGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3097,7 +3097,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoSeoGetExecute(r ApiAnswerAdminAp type ApiAnswerAdminApiSiteinfoSeoPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSiteSeoReq } @@ -3119,7 +3119,7 @@ update site seo information @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoSeoPutRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoSeoPut(ctx context.Context) ApiAnswerAdminApiSiteinfoSeoPutRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoSeoPut(ctx context.Context) ApiAnswerAdminApiSiteinfoSeoPutRequest { return ApiAnswerAdminApiSiteinfoSeoPutRequest{ ApiService: a, ctx: ctx, @@ -3128,7 +3128,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoSeoPut(ctx context.Context) ApiA // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSiteinfoSeoPutExecute(r ApiAnswerAdminApiSiteinfoSeoPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoSeoPutExecute(r ApiAnswerAdminApiSiteinfoSeoPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -3136,7 +3136,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoSeoPutExecute(r ApiAnswerAdminAp localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoSeoPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoSeoPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3222,7 +3222,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoSeoPutExecute(r ApiAnswerAdminAp type ApiAnswerAdminApiSiteinfoThemeGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSiteinfoThemeGetRequest) Execute() (*AnswerAdminApiSiteinfoThemeGet200Response, *http.Response, error) { @@ -3237,7 +3237,7 @@ get site info theme config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoThemeGetRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoThemeGet(ctx context.Context) ApiAnswerAdminApiSiteinfoThemeGetRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoThemeGet(ctx context.Context) ApiAnswerAdminApiSiteinfoThemeGetRequest { return ApiAnswerAdminApiSiteinfoThemeGetRequest{ ApiService: a, ctx: ctx, @@ -3246,7 +3246,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoThemeGet(ctx context.Context) Ap // Execute executes the request // @return AnswerAdminApiSiteinfoThemeGet200Response -func (a *AdminApiService) AnswerAdminApiSiteinfoThemeGetExecute(r ApiAnswerAdminApiSiteinfoThemeGetRequest) (*AnswerAdminApiSiteinfoThemeGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoThemeGetExecute(r ApiAnswerAdminApiSiteinfoThemeGetRequest) (*AnswerAdminApiSiteinfoThemeGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3254,7 +3254,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoThemeGetExecute(r ApiAnswerAdmin localVarReturnValue *AnswerAdminApiSiteinfoThemeGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoThemeGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoThemeGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3335,7 +3335,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoThemeGetExecute(r ApiAnswerAdmin type ApiAnswerAdminApiSiteinfoThemePutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSiteThemeReq } @@ -3357,7 +3357,7 @@ update site custom css html config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoThemePutRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoThemePut(ctx context.Context) ApiAnswerAdminApiSiteinfoThemePutRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoThemePut(ctx context.Context) ApiAnswerAdminApiSiteinfoThemePutRequest { return ApiAnswerAdminApiSiteinfoThemePutRequest{ ApiService: a, ctx: ctx, @@ -3366,7 +3366,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoThemePut(ctx context.Context) Ap // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSiteinfoThemePutExecute(r ApiAnswerAdminApiSiteinfoThemePutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoThemePutExecute(r ApiAnswerAdminApiSiteinfoThemePutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -3374,7 +3374,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoThemePutExecute(r ApiAnswerAdmin localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoThemePut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoThemePut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3460,7 +3460,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoThemePutExecute(r ApiAnswerAdmin type ApiAnswerAdminApiSiteinfoUsersGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSiteinfoUsersGetRequest) Execute() (*AnswerAdminApiSiteinfoUsersGet200Response, *http.Response, error) { @@ -3475,7 +3475,7 @@ get site user config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoUsersGetRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoUsersGet(ctx context.Context) ApiAnswerAdminApiSiteinfoUsersGetRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoUsersGet(ctx context.Context) ApiAnswerAdminApiSiteinfoUsersGetRequest { return ApiAnswerAdminApiSiteinfoUsersGetRequest{ ApiService: a, ctx: ctx, @@ -3484,7 +3484,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoUsersGet(ctx context.Context) Ap // Execute executes the request // @return AnswerAdminApiSiteinfoUsersGet200Response -func (a *AdminApiService) AnswerAdminApiSiteinfoUsersGetExecute(r ApiAnswerAdminApiSiteinfoUsersGetRequest) (*AnswerAdminApiSiteinfoUsersGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoUsersGetExecute(r ApiAnswerAdminApiSiteinfoUsersGetRequest) (*AnswerAdminApiSiteinfoUsersGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3492,7 +3492,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoUsersGetExecute(r ApiAnswerAdmin localVarReturnValue *AnswerAdminApiSiteinfoUsersGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoUsersGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoUsersGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3573,7 +3573,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoUsersGetExecute(r ApiAnswerAdmin type ApiAnswerAdminApiSiteinfoUsersPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSiteUsersReq } @@ -3595,7 +3595,7 @@ update site info config about users @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoUsersPutRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoUsersPut(ctx context.Context) ApiAnswerAdminApiSiteinfoUsersPutRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoUsersPut(ctx context.Context) ApiAnswerAdminApiSiteinfoUsersPutRequest { return ApiAnswerAdminApiSiteinfoUsersPutRequest{ ApiService: a, ctx: ctx, @@ -3604,7 +3604,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoUsersPut(ctx context.Context) Ap // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSiteinfoUsersPutExecute(r ApiAnswerAdminApiSiteinfoUsersPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoUsersPutExecute(r ApiAnswerAdminApiSiteinfoUsersPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -3612,7 +3612,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoUsersPutExecute(r ApiAnswerAdmin localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoUsersPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoUsersPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3698,7 +3698,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoUsersPutExecute(r ApiAnswerAdmin type ApiAnswerAdminApiSiteinfoWriteGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiSiteinfoWriteGetRequest) Execute() (*AnswerAdminApiSiteinfoWriteGet200Response, *http.Response, error) { @@ -3713,7 +3713,7 @@ get site interface @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoWriteGetRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoWriteGet(ctx context.Context) ApiAnswerAdminApiSiteinfoWriteGetRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoWriteGet(ctx context.Context) ApiAnswerAdminApiSiteinfoWriteGetRequest { return ApiAnswerAdminApiSiteinfoWriteGetRequest{ ApiService: a, ctx: ctx, @@ -3722,7 +3722,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoWriteGet(ctx context.Context) Ap // Execute executes the request // @return AnswerAdminApiSiteinfoWriteGet200Response -func (a *AdminApiService) AnswerAdminApiSiteinfoWriteGetExecute(r ApiAnswerAdminApiSiteinfoWriteGetRequest) (*AnswerAdminApiSiteinfoWriteGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoWriteGetExecute(r ApiAnswerAdminApiSiteinfoWriteGetRequest) (*AnswerAdminApiSiteinfoWriteGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3730,7 +3730,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoWriteGetExecute(r ApiAnswerAdmin localVarReturnValue *AnswerAdminApiSiteinfoWriteGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoWriteGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoWriteGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3811,7 +3811,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoWriteGetExecute(r ApiAnswerAdmin type ApiAnswerAdminApiSiteinfoWritePutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSiteWriteReq } @@ -3833,7 +3833,7 @@ update site write info @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiSiteinfoWritePutRequest */ -func (a *AdminApiService) AnswerAdminApiSiteinfoWritePut(ctx context.Context) ApiAnswerAdminApiSiteinfoWritePutRequest { +func (a *AdminAPIService) AnswerAdminApiSiteinfoWritePut(ctx context.Context) ApiAnswerAdminApiSiteinfoWritePutRequest { return ApiAnswerAdminApiSiteinfoWritePutRequest{ ApiService: a, ctx: ctx, @@ -3842,7 +3842,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoWritePut(ctx context.Context) Ap // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiSiteinfoWritePutExecute(r ApiAnswerAdminApiSiteinfoWritePutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiSiteinfoWritePutExecute(r ApiAnswerAdminApiSiteinfoWritePutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -3850,7 +3850,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoWritePutExecute(r ApiAnswerAdmin localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoWritePut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiSiteinfoWritePut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3936,7 +3936,7 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoWritePutExecute(r ApiAnswerAdmin type ApiAnswerAdminApiThemeOptionsGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService } func (r ApiAnswerAdminApiThemeOptionsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { @@ -3951,7 +3951,7 @@ Get theme options @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiThemeOptionsGetRequest */ -func (a *AdminApiService) AnswerAdminApiThemeOptionsGet(ctx context.Context) ApiAnswerAdminApiThemeOptionsGetRequest { +func (a *AdminAPIService) AnswerAdminApiThemeOptionsGet(ctx context.Context) ApiAnswerAdminApiThemeOptionsGetRequest { return ApiAnswerAdminApiThemeOptionsGetRequest{ ApiService: a, ctx: ctx, @@ -3960,7 +3960,7 @@ func (a *AdminApiService) AnswerAdminApiThemeOptionsGet(ctx context.Context) Api // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiThemeOptionsGetExecute(r ApiAnswerAdminApiThemeOptionsGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiThemeOptionsGetExecute(r ApiAnswerAdminApiThemeOptionsGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -3968,7 +3968,7 @@ func (a *AdminApiService) AnswerAdminApiThemeOptionsGetExecute(r ApiAnswerAdminA localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiThemeOptionsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiThemeOptionsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4049,7 +4049,7 @@ func (a *AdminApiService) AnswerAdminApiThemeOptionsGetExecute(r ApiAnswerAdminA type ApiAnswerAdminApiUserActivationGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService userId *string } @@ -4071,7 +4071,7 @@ get user activation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiUserActivationGetRequest */ -func (a *AdminApiService) AnswerAdminApiUserActivationGet(ctx context.Context) ApiAnswerAdminApiUserActivationGetRequest { +func (a *AdminAPIService) AnswerAdminApiUserActivationGet(ctx context.Context) ApiAnswerAdminApiUserActivationGetRequest { return ApiAnswerAdminApiUserActivationGetRequest{ ApiService: a, ctx: ctx, @@ -4080,7 +4080,7 @@ func (a *AdminApiService) AnswerAdminApiUserActivationGet(ctx context.Context) A // Execute executes the request // @return AnswerAdminApiUserActivationGet200Response -func (a *AdminApiService) AnswerAdminApiUserActivationGetExecute(r ApiAnswerAdminApiUserActivationGetRequest) (*AnswerAdminApiUserActivationGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiUserActivationGetExecute(r ApiAnswerAdminApiUserActivationGetRequest) (*AnswerAdminApiUserActivationGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4088,7 +4088,7 @@ func (a *AdminApiService) AnswerAdminApiUserActivationGetExecute(r ApiAnswerAdmi localVarReturnValue *AnswerAdminApiUserActivationGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUserActivationGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiUserActivationGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4173,7 +4173,7 @@ func (a *AdminApiService) AnswerAdminApiUserActivationGetExecute(r ApiAnswerAdmi type ApiAnswerAdminApiUserPasswordPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaUpdateUserPasswordReq } @@ -4195,7 +4195,7 @@ update user password @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiUserPasswordPutRequest */ -func (a *AdminApiService) AnswerAdminApiUserPasswordPut(ctx context.Context) ApiAnswerAdminApiUserPasswordPutRequest { +func (a *AdminAPIService) AnswerAdminApiUserPasswordPut(ctx context.Context) ApiAnswerAdminApiUserPasswordPutRequest { return ApiAnswerAdminApiUserPasswordPutRequest{ ApiService: a, ctx: ctx, @@ -4204,7 +4204,7 @@ func (a *AdminApiService) AnswerAdminApiUserPasswordPut(ctx context.Context) Api // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiUserPasswordPutExecute(r ApiAnswerAdminApiUserPasswordPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiUserPasswordPutExecute(r ApiAnswerAdminApiUserPasswordPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -4212,7 +4212,7 @@ func (a *AdminApiService) AnswerAdminApiUserPasswordPutExecute(r ApiAnswerAdminA localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUserPasswordPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiUserPasswordPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4298,7 +4298,7 @@ func (a *AdminApiService) AnswerAdminApiUserPasswordPutExecute(r ApiAnswerAdminA type ApiAnswerAdminApiUserPostRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaAddUserReq } @@ -4320,7 +4320,7 @@ add user @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiUserPostRequest */ -func (a *AdminApiService) AnswerAdminApiUserPost(ctx context.Context) ApiAnswerAdminApiUserPostRequest { +func (a *AdminAPIService) AnswerAdminApiUserPost(ctx context.Context) ApiAnswerAdminApiUserPostRequest { return ApiAnswerAdminApiUserPostRequest{ ApiService: a, ctx: ctx, @@ -4329,7 +4329,7 @@ func (a *AdminApiService) AnswerAdminApiUserPost(ctx context.Context) ApiAnswerA // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiUserPostExecute(r ApiAnswerAdminApiUserPostRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiUserPostExecute(r ApiAnswerAdminApiUserPostRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -4337,7 +4337,7 @@ func (a *AdminApiService) AnswerAdminApiUserPostExecute(r ApiAnswerAdminApiUserP localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUserPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiUserPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4423,7 +4423,7 @@ func (a *AdminApiService) AnswerAdminApiUserPostExecute(r ApiAnswerAdminApiUserP type ApiAnswerAdminApiUserRolePutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaUpdateUserRoleReq } @@ -4445,7 +4445,7 @@ update user role @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiUserRolePutRequest */ -func (a *AdminApiService) AnswerAdminApiUserRolePut(ctx context.Context) ApiAnswerAdminApiUserRolePutRequest { +func (a *AdminAPIService) AnswerAdminApiUserRolePut(ctx context.Context) ApiAnswerAdminApiUserRolePutRequest { return ApiAnswerAdminApiUserRolePutRequest{ ApiService: a, ctx: ctx, @@ -4454,7 +4454,7 @@ func (a *AdminApiService) AnswerAdminApiUserRolePut(ctx context.Context) ApiAnsw // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiUserRolePutExecute(r ApiAnswerAdminApiUserRolePutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiUserRolePutExecute(r ApiAnswerAdminApiUserRolePutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -4462,7 +4462,7 @@ func (a *AdminApiService) AnswerAdminApiUserRolePutExecute(r ApiAnswerAdminApiUs localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUserRolePut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiUserRolePut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4548,7 +4548,7 @@ func (a *AdminApiService) AnswerAdminApiUserRolePutExecute(r ApiAnswerAdminApiUs type ApiAnswerAdminApiUserStatusPutRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaUpdateUserStatusReq } @@ -4570,7 +4570,7 @@ update user @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiUserStatusPutRequest */ -func (a *AdminApiService) AnswerAdminApiUserStatusPut(ctx context.Context) ApiAnswerAdminApiUserStatusPutRequest { +func (a *AdminAPIService) AnswerAdminApiUserStatusPut(ctx context.Context) ApiAnswerAdminApiUserStatusPutRequest { return ApiAnswerAdminApiUserStatusPutRequest{ ApiService: a, ctx: ctx, @@ -4579,7 +4579,7 @@ func (a *AdminApiService) AnswerAdminApiUserStatusPut(ctx context.Context) ApiAn // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiUserStatusPutExecute(r ApiAnswerAdminApiUserStatusPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiUserStatusPutExecute(r ApiAnswerAdminApiUserStatusPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -4587,7 +4587,7 @@ func (a *AdminApiService) AnswerAdminApiUserStatusPutExecute(r ApiAnswerAdminApi localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUserStatusPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiUserStatusPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4673,7 +4673,7 @@ func (a *AdminApiService) AnswerAdminApiUserStatusPutExecute(r ApiAnswerAdminApi type ApiAnswerAdminApiUsersActivationPostRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService data *SchemaSendUserActivationReq } @@ -4695,7 +4695,7 @@ send user activation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiUsersActivationPostRequest */ -func (a *AdminApiService) AnswerAdminApiUsersActivationPost(ctx context.Context) ApiAnswerAdminApiUsersActivationPostRequest { +func (a *AdminAPIService) AnswerAdminApiUsersActivationPost(ctx context.Context) ApiAnswerAdminApiUsersActivationPostRequest { return ApiAnswerAdminApiUsersActivationPostRequest{ ApiService: a, ctx: ctx, @@ -4704,7 +4704,7 @@ func (a *AdminApiService) AnswerAdminApiUsersActivationPost(ctx context.Context) // Execute executes the request // @return HandlerRespBody -func (a *AdminApiService) AnswerAdminApiUsersActivationPostExecute(r ApiAnswerAdminApiUsersActivationPostRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiUsersActivationPostExecute(r ApiAnswerAdminApiUsersActivationPostRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -4712,7 +4712,7 @@ func (a *AdminApiService) AnswerAdminApiUsersActivationPostExecute(r ApiAnswerAd localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUsersActivationPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiUsersActivationPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4798,7 +4798,7 @@ func (a *AdminApiService) AnswerAdminApiUsersActivationPostExecute(r ApiAnswerAd type ApiAnswerAdminApiUsersPageGetRequest struct { ctx context.Context - ApiService *AdminApiService + ApiService *AdminAPIService page *int32 pageSize *int32 query *string @@ -4848,7 +4848,7 @@ get user page @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiUsersPageGetRequest */ -func (a *AdminApiService) AnswerAdminApiUsersPageGet(ctx context.Context) ApiAnswerAdminApiUsersPageGetRequest { +func (a *AdminAPIService) AnswerAdminApiUsersPageGet(ctx context.Context) ApiAnswerAdminApiUsersPageGetRequest { return ApiAnswerAdminApiUsersPageGetRequest{ ApiService: a, ctx: ctx, @@ -4857,7 +4857,7 @@ func (a *AdminApiService) AnswerAdminApiUsersPageGet(ctx context.Context) ApiAns // Execute executes the request // @return AnswerAdminApiUsersPageGet200Response -func (a *AdminApiService) AnswerAdminApiUsersPageGetExecute(r ApiAnswerAdminApiUsersPageGetRequest) (*AnswerAdminApiUsersPageGet200Response, *http.Response, error) { +func (a *AdminAPIService) AnswerAdminApiUsersPageGetExecute(r ApiAnswerAdminApiUsersPageGetRequest) (*AnswerAdminApiUsersPageGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -4865,7 +4865,7 @@ func (a *AdminApiService) AnswerAdminApiUsersPageGetExecute(r ApiAnswerAdminApiU localVarReturnValue *AnswerAdminApiUsersPageGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUsersPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiUsersPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4958,3 +4958,128 @@ func (a *AdminApiService) AnswerAdminApiUsersPageGetExecute(r ApiAnswerAdminApiU return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiAnswerAdminApiUsersPostRequest struct { + ctx context.Context + ApiService *AdminAPIService + data *SchemaAddUsersReq +} + +// user +func (r ApiAnswerAdminApiUsersPostRequest) Data(data SchemaAddUsersReq) ApiAnswerAdminApiUsersPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiUsersPostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiUsersPostExecute(r) +} + +/* +AnswerAdminApiUsersPost add users + +add users + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiUsersPostRequest +*/ +func (a *AdminAPIService) AnswerAdminApiUsersPost(ctx context.Context) ApiAnswerAdminApiUsersPostRequest { + return ApiAnswerAdminApiUsersPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminAPIService) AnswerAdminApiUsersPostExecute(r ApiAnswerAdminApiUsersPostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminAPIService.AnswerAdminApiUsersPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.data == nil { + return localVarReturnValue, nil, reportError("data is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_admin_plugin.go b/api_admin_plugin.go index 84d4ecb..acc9a55 100644 --- a/api_admin_plugin.go +++ b/api_admin_plugin.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// AdminPluginApiService AdminPluginApi service -type AdminPluginApiService service +// AdminPluginAPIService AdminPluginAPI service +type AdminPluginAPIService service type ApiAnswerAdminApiPluginConfigGetRequest struct { ctx context.Context - ApiService *AdminPluginApiService + ApiService *AdminPluginAPIService pluginSlugName *string } @@ -44,7 +44,7 @@ get plugin config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiPluginConfigGetRequest */ -func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGet(ctx context.Context) ApiAnswerAdminApiPluginConfigGetRequest { +func (a *AdminPluginAPIService) AnswerAdminApiPluginConfigGet(ctx context.Context) ApiAnswerAdminApiPluginConfigGetRequest { return ApiAnswerAdminApiPluginConfigGetRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGet(ctx context.Contex // Execute executes the request // @return AnswerAdminApiPluginConfigGet200Response -func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGetExecute(r ApiAnswerAdminApiPluginConfigGetRequest) (*AnswerAdminApiPluginConfigGet200Response, *http.Response, error) { +func (a *AdminPluginAPIService) AnswerAdminApiPluginConfigGetExecute(r ApiAnswerAdminApiPluginConfigGetRequest) (*AnswerAdminApiPluginConfigGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGetExecute(r ApiAnswer localVarReturnValue *AnswerAdminApiPluginConfigGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginConfigGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginAPIService.AnswerAdminApiPluginConfigGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -146,7 +146,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGetExecute(r ApiAnswer type ApiAnswerAdminApiPluginConfigPutRequest struct { ctx context.Context - ApiService *AdminPluginApiService + ApiService *AdminPluginAPIService data *SchemaUpdatePluginConfigReq } @@ -168,7 +168,7 @@ update plugin config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiPluginConfigPutRequest */ -func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPut(ctx context.Context) ApiAnswerAdminApiPluginConfigPutRequest { +func (a *AdminPluginAPIService) AnswerAdminApiPluginConfigPut(ctx context.Context) ApiAnswerAdminApiPluginConfigPutRequest { return ApiAnswerAdminApiPluginConfigPutRequest{ ApiService: a, ctx: ctx, @@ -177,7 +177,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPut(ctx context.Contex // Execute executes the request // @return HandlerRespBody -func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPutExecute(r ApiAnswerAdminApiPluginConfigPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminPluginAPIService) AnswerAdminApiPluginConfigPutExecute(r ApiAnswerAdminApiPluginConfigPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -185,7 +185,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPutExecute(r ApiAnswer localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginConfigPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginAPIService.AnswerAdminApiPluginConfigPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -271,7 +271,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPutExecute(r ApiAnswer type ApiAnswerAdminApiPluginStatusPutRequest struct { ctx context.Context - ApiService *AdminPluginApiService + ApiService *AdminPluginAPIService data *SchemaUpdatePluginStatusReq } @@ -293,7 +293,7 @@ update plugin status @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiPluginStatusPutRequest */ -func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPut(ctx context.Context) ApiAnswerAdminApiPluginStatusPutRequest { +func (a *AdminPluginAPIService) AnswerAdminApiPluginStatusPut(ctx context.Context) ApiAnswerAdminApiPluginStatusPutRequest { return ApiAnswerAdminApiPluginStatusPutRequest{ ApiService: a, ctx: ctx, @@ -302,7 +302,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPut(ctx context.Contex // Execute executes the request // @return HandlerRespBody -func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPutExecute(r ApiAnswerAdminApiPluginStatusPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *AdminPluginAPIService) AnswerAdminApiPluginStatusPutExecute(r ApiAnswerAdminApiPluginStatusPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -310,7 +310,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPutExecute(r ApiAnswer localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginStatusPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginAPIService.AnswerAdminApiPluginStatusPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -396,7 +396,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPutExecute(r ApiAnswer type ApiAnswerAdminApiPluginsGetRequest struct { ctx context.Context - ApiService *AdminPluginApiService + ApiService *AdminPluginAPIService status *string haveConfig *bool } @@ -425,7 +425,7 @@ get plugin list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiPluginsGetRequest */ -func (a *AdminPluginApiService) AnswerAdminApiPluginsGet(ctx context.Context) ApiAnswerAdminApiPluginsGetRequest { +func (a *AdminPluginAPIService) AnswerAdminApiPluginsGet(ctx context.Context) ApiAnswerAdminApiPluginsGetRequest { return ApiAnswerAdminApiPluginsGetRequest{ ApiService: a, ctx: ctx, @@ -434,7 +434,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginsGet(ctx context.Context) Ap // Execute executes the request // @return AnswerAdminApiPluginsGet200Response -func (a *AdminPluginApiService) AnswerAdminApiPluginsGetExecute(r ApiAnswerAdminApiPluginsGetRequest) (*AnswerAdminApiPluginsGet200Response, *http.Response, error) { +func (a *AdminPluginAPIService) AnswerAdminApiPluginsGetExecute(r ApiAnswerAdminApiPluginsGetRequest) (*AnswerAdminApiPluginsGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -442,7 +442,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginsGetExecute(r ApiAnswerAdmin localVarReturnValue *AnswerAdminApiPluginsGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginAPIService.AnswerAdminApiPluginsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_api_answer.go b/api_api_answer.go index f3b5a93..66974af 100644 --- a/api_api_answer.go +++ b/api_api_answer.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,17 +17,17 @@ import ( ) -// ApiAnswerApiService ApiAnswerApi service -type ApiAnswerApiService service +// ApiAnswerAPIService ApiAnswerAPI service +type ApiAnswerAPIService service type ApiAnswerApiV1AnswerAcceptancePostRequest struct { ctx context.Context - ApiService *ApiAnswerApiService - data *SchemaAnswerAcceptedReq + ApiService *ApiAnswerAPIService + data *SchemaAcceptAnswerReq } -// AnswerAcceptedReq -func (r ApiAnswerApiV1AnswerAcceptancePostRequest) Data(data SchemaAnswerAcceptedReq) ApiAnswerApiV1AnswerAcceptancePostRequest { +// AcceptAnswerReq +func (r ApiAnswerApiV1AnswerAcceptancePostRequest) Data(data SchemaAcceptAnswerReq) ApiAnswerApiV1AnswerAcceptancePostRequest { r.data = &data return r } @@ -44,7 +44,7 @@ Accepted @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1AnswerAcceptancePostRequest */ -func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePost(ctx context.Context) ApiAnswerApiV1AnswerAcceptancePostRequest { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerAcceptancePost(ctx context.Context) ApiAnswerApiV1AnswerAcceptancePostRequest { return ApiAnswerApiV1AnswerAcceptancePostRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePost(ctx context.Contex // Execute executes the request // @return string -func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePostExecute(r ApiAnswerApiV1AnswerAcceptancePostRequest) (string, *http.Response, error) { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerAcceptancePostExecute(r ApiAnswerApiV1AnswerAcceptancePostRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePostExecute(r ApiAnswer localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerAcceptancePost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerAcceptancePost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -147,7 +147,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePostExecute(r ApiAnswer type ApiAnswerApiV1AnswerDeleteRequest struct { ctx context.Context - ApiService *ApiAnswerApiService + ApiService *ApiAnswerAPIService data *SchemaRemoveAnswerReq } @@ -169,7 +169,7 @@ delete answer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1AnswerDeleteRequest */ -func (a *ApiAnswerApiService) AnswerApiV1AnswerDelete(ctx context.Context) ApiAnswerApiV1AnswerDeleteRequest { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerDelete(ctx context.Context) ApiAnswerApiV1AnswerDeleteRequest { return ApiAnswerApiV1AnswerDeleteRequest{ ApiService: a, ctx: ctx, @@ -178,7 +178,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerDelete(ctx context.Context) ApiAn // Execute executes the request // @return HandlerRespBody -func (a *ApiAnswerApiService) AnswerApiV1AnswerDeleteExecute(r ApiAnswerApiV1AnswerDeleteRequest) (*HandlerRespBody, *http.Response, error) { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerDeleteExecute(r ApiAnswerApiV1AnswerDeleteRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -186,7 +186,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerDeleteExecute(r ApiAnswerApiV1Ans localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -272,7 +272,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerDeleteExecute(r ApiAnswerApiV1Ans type ApiAnswerApiV1AnswerInfoGetRequest struct { ctx context.Context - ApiService *ApiAnswerApiService + ApiService *ApiAnswerAPIService id *string } @@ -294,7 +294,7 @@ Get Answer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1AnswerInfoGetRequest */ -func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGet(ctx context.Context) ApiAnswerApiV1AnswerInfoGetRequest { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerInfoGet(ctx context.Context) ApiAnswerApiV1AnswerInfoGetRequest { return ApiAnswerApiV1AnswerInfoGetRequest{ ApiService: a, ctx: ctx, @@ -303,7 +303,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGet(ctx context.Context) ApiA // Execute executes the request // @return string -func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGetExecute(r ApiAnswerApiV1AnswerInfoGetRequest) (string, *http.Response, error) { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerInfoGetExecute(r ApiAnswerApiV1AnswerInfoGetRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -311,7 +311,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGetExecute(r ApiAnswerApiV1An localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerInfoGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerInfoGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -382,7 +382,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGetExecute(r ApiAnswerApiV1An type ApiAnswerApiV1AnswerPageGetRequest struct { ctx context.Context - ApiService *ApiAnswerApiService + ApiService *ApiAnswerAPIService questionId *string order *string page *string @@ -425,7 +425,7 @@ AnswerList
order (default or updated) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1AnswerPageGetRequest */ -func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGet(ctx context.Context) ApiAnswerApiV1AnswerPageGetRequest { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerPageGet(ctx context.Context) ApiAnswerApiV1AnswerPageGetRequest { return ApiAnswerApiV1AnswerPageGetRequest{ ApiService: a, ctx: ctx, @@ -434,7 +434,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGet(ctx context.Context) ApiA // Execute executes the request // @return string -func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGetExecute(r ApiAnswerApiV1AnswerPageGetRequest) (string, *http.Response, error) { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerPageGetExecute(r ApiAnswerApiV1AnswerPageGetRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -442,7 +442,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGetExecute(r ApiAnswerApiV1An localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -539,7 +539,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGetExecute(r ApiAnswerApiV1An type ApiAnswerApiV1AnswerPostRequest struct { ctx context.Context - ApiService *ApiAnswerApiService + ApiService *ApiAnswerAPIService data *SchemaAnswerAddReq } @@ -561,7 +561,7 @@ Insert Answer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1AnswerPostRequest */ -func (a *ApiAnswerApiService) AnswerApiV1AnswerPost(ctx context.Context) ApiAnswerApiV1AnswerPostRequest { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerPost(ctx context.Context) ApiAnswerApiV1AnswerPostRequest { return ApiAnswerApiV1AnswerPostRequest{ ApiService: a, ctx: ctx, @@ -570,7 +570,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPost(ctx context.Context) ApiAnsw // Execute executes the request // @return string -func (a *ApiAnswerApiService) AnswerApiV1AnswerPostExecute(r ApiAnswerApiV1AnswerPostRequest) (string, *http.Response, error) { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerPostExecute(r ApiAnswerApiV1AnswerPostRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -578,7 +578,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPostExecute(r ApiAnswerApiV1Answe localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -664,7 +664,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPostExecute(r ApiAnswerApiV1Answe type ApiAnswerApiV1AnswerPutRequest struct { ctx context.Context - ApiService *ApiAnswerApiService + ApiService *ApiAnswerAPIService data *SchemaAnswerUpdateReq } @@ -686,7 +686,7 @@ Update Answer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1AnswerPutRequest */ -func (a *ApiAnswerApiService) AnswerApiV1AnswerPut(ctx context.Context) ApiAnswerApiV1AnswerPutRequest { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerPut(ctx context.Context) ApiAnswerApiV1AnswerPutRequest { return ApiAnswerApiV1AnswerPutRequest{ ApiService: a, ctx: ctx, @@ -695,7 +695,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPut(ctx context.Context) ApiAnswe // Execute executes the request // @return string -func (a *ApiAnswerApiService) AnswerApiV1AnswerPutExecute(r ApiAnswerApiV1AnswerPutRequest) (string, *http.Response, error) { +func (a *ApiAnswerAPIService) AnswerApiV1AnswerPutExecute(r ApiAnswerApiV1AnswerPutRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -703,7 +703,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPutExecute(r ApiAnswerApiV1Answer localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_collection.go b/api_collection.go index 375f71b..44ff631 100644 --- a/api_collection.go +++ b/api_collection.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// CollectionApiService CollectionApi service -type CollectionApiService service +// CollectionAPIService CollectionAPI service +type CollectionAPIService service type ApiAnswerApiV1CollectionSwitchPostRequest struct { ctx context.Context - ApiService *CollectionApiService + ApiService *CollectionAPIService data *SchemaCollectionSwitchReq } @@ -44,7 +44,7 @@ add collection @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1CollectionSwitchPostRequest */ -func (a *CollectionApiService) AnswerApiV1CollectionSwitchPost(ctx context.Context) ApiAnswerApiV1CollectionSwitchPostRequest { +func (a *CollectionAPIService) AnswerApiV1CollectionSwitchPost(ctx context.Context) ApiAnswerApiV1CollectionSwitchPostRequest { return ApiAnswerApiV1CollectionSwitchPostRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *CollectionApiService) AnswerApiV1CollectionSwitchPost(ctx context.Conte // Execute executes the request // @return AnswerApiV1CollectionSwitchPost200Response -func (a *CollectionApiService) AnswerApiV1CollectionSwitchPostExecute(r ApiAnswerApiV1CollectionSwitchPostRequest) (*AnswerApiV1CollectionSwitchPost200Response, *http.Response, error) { +func (a *CollectionAPIService) AnswerApiV1CollectionSwitchPostExecute(r ApiAnswerApiV1CollectionSwitchPostRequest) (*AnswerApiV1CollectionSwitchPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *CollectionApiService) AnswerApiV1CollectionSwitchPostExecute(r ApiAnswe localVarReturnValue *AnswerApiV1CollectionSwitchPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CollectionApiService.AnswerApiV1CollectionSwitchPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CollectionAPIService.AnswerApiV1CollectionSwitchPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -147,7 +147,7 @@ func (a *CollectionApiService) AnswerApiV1CollectionSwitchPostExecute(r ApiAnswe type ApiAnswerApiV1PersonalCollectionPageGetRequest struct { ctx context.Context - ApiService *CollectionApiService + ApiService *CollectionAPIService page *string pageSize *string } @@ -176,7 +176,7 @@ list personal collections @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PersonalCollectionPageGetRequest */ -func (a *CollectionApiService) AnswerApiV1PersonalCollectionPageGet(ctx context.Context) ApiAnswerApiV1PersonalCollectionPageGetRequest { +func (a *CollectionAPIService) AnswerApiV1PersonalCollectionPageGet(ctx context.Context) ApiAnswerApiV1PersonalCollectionPageGetRequest { return ApiAnswerApiV1PersonalCollectionPageGetRequest{ ApiService: a, ctx: ctx, @@ -185,7 +185,7 @@ func (a *CollectionApiService) AnswerApiV1PersonalCollectionPageGet(ctx context. // Execute executes the request // @return HandlerRespBody -func (a *CollectionApiService) AnswerApiV1PersonalCollectionPageGetExecute(r ApiAnswerApiV1PersonalCollectionPageGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *CollectionAPIService) AnswerApiV1PersonalCollectionPageGetExecute(r ApiAnswerApiV1PersonalCollectionPageGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -193,7 +193,7 @@ func (a *CollectionApiService) AnswerApiV1PersonalCollectionPageGetExecute(r Api localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CollectionApiService.AnswerApiV1PersonalCollectionPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CollectionAPIService.AnswerApiV1PersonalCollectionPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_comment.go b/api_comment.go index ac86a80..dc78b07 100644 --- a/api_comment.go +++ b/api_comment.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// CommentApiService CommentApi service -type CommentApiService service +// CommentAPIService CommentAPI service +type CommentAPIService service type ApiAnswerApiV1ActivityTimelineDetailGetRequest struct { ctx context.Context - ApiService *CommentApiService + ApiService *CommentAPIService revisionId *string } @@ -44,7 +44,7 @@ get object timeline detail @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1ActivityTimelineDetailGetRequest */ -func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGet(ctx context.Context) ApiAnswerApiV1ActivityTimelineDetailGetRequest { +func (a *CommentAPIService) AnswerApiV1ActivityTimelineDetailGet(ctx context.Context) ApiAnswerApiV1ActivityTimelineDetailGetRequest { return ApiAnswerApiV1ActivityTimelineDetailGetRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGet(ctx context.Con // Execute executes the request // @return AnswerApiV1ActivityTimelineGet200Response -func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGetExecute(r ApiAnswerApiV1ActivityTimelineDetailGetRequest) (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) { +func (a *CommentAPIService) AnswerApiV1ActivityTimelineDetailGetExecute(r ApiAnswerApiV1ActivityTimelineDetailGetRequest) (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGetExecute(r ApiAns localVarReturnValue *AnswerApiV1ActivityTimelineGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1ActivityTimelineDetailGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1ActivityTimelineDetailGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -132,7 +132,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGetExecute(r ApiAns type ApiAnswerApiV1ActivityTimelineGetRequest struct { ctx context.Context - ApiService *CommentApiService + ApiService *CommentAPIService objectId *string tagSlugName *string objectType *string @@ -175,7 +175,7 @@ get object timeline @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1ActivityTimelineGetRequest */ -func (a *CommentApiService) AnswerApiV1ActivityTimelineGet(ctx context.Context) ApiAnswerApiV1ActivityTimelineGetRequest { +func (a *CommentAPIService) AnswerApiV1ActivityTimelineGet(ctx context.Context) ApiAnswerApiV1ActivityTimelineGetRequest { return ApiAnswerApiV1ActivityTimelineGetRequest{ ApiService: a, ctx: ctx, @@ -184,7 +184,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineGet(ctx context.Context) // Execute executes the request // @return AnswerApiV1ActivityTimelineGet200Response -func (a *CommentApiService) AnswerApiV1ActivityTimelineGetExecute(r ApiAnswerApiV1ActivityTimelineGetRequest) (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) { +func (a *CommentAPIService) AnswerApiV1ActivityTimelineGetExecute(r ApiAnswerApiV1ActivityTimelineGetRequest) (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -192,7 +192,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineGetExecute(r ApiAnswerApi localVarReturnValue *AnswerApiV1ActivityTimelineGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1ActivityTimelineGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1ActivityTimelineGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -271,7 +271,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineGetExecute(r ApiAnswerApi type ApiAnswerApiV1CommentDeleteRequest struct { ctx context.Context - ApiService *CommentApiService + ApiService *CommentAPIService data *SchemaRemoveCommentReq } @@ -293,7 +293,7 @@ remove comment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1CommentDeleteRequest */ -func (a *CommentApiService) AnswerApiV1CommentDelete(ctx context.Context) ApiAnswerApiV1CommentDeleteRequest { +func (a *CommentAPIService) AnswerApiV1CommentDelete(ctx context.Context) ApiAnswerApiV1CommentDeleteRequest { return ApiAnswerApiV1CommentDeleteRequest{ ApiService: a, ctx: ctx, @@ -302,7 +302,7 @@ func (a *CommentApiService) AnswerApiV1CommentDelete(ctx context.Context) ApiAns // Execute executes the request // @return HandlerRespBody -func (a *CommentApiService) AnswerApiV1CommentDeleteExecute(r ApiAnswerApiV1CommentDeleteRequest) (*HandlerRespBody, *http.Response, error) { +func (a *CommentAPIService) AnswerApiV1CommentDeleteExecute(r ApiAnswerApiV1CommentDeleteRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -310,7 +310,7 @@ func (a *CommentApiService) AnswerApiV1CommentDeleteExecute(r ApiAnswerApiV1Comm localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1CommentDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -396,7 +396,7 @@ func (a *CommentApiService) AnswerApiV1CommentDeleteExecute(r ApiAnswerApiV1Comm type ApiAnswerApiV1CommentGetRequest struct { ctx context.Context - ApiService *CommentApiService + ApiService *CommentAPIService id *string } @@ -418,7 +418,7 @@ get comment by id @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1CommentGetRequest */ -func (a *CommentApiService) AnswerApiV1CommentGet(ctx context.Context) ApiAnswerApiV1CommentGetRequest { +func (a *CommentAPIService) AnswerApiV1CommentGet(ctx context.Context) ApiAnswerApiV1CommentGetRequest { return ApiAnswerApiV1CommentGetRequest{ ApiService: a, ctx: ctx, @@ -427,7 +427,7 @@ func (a *CommentApiService) AnswerApiV1CommentGet(ctx context.Context) ApiAnswer // Execute executes the request // @return AnswerApiV1CommentGet200Response -func (a *CommentApiService) AnswerApiV1CommentGetExecute(r ApiAnswerApiV1CommentGetRequest) (*AnswerApiV1CommentGet200Response, *http.Response, error) { +func (a *CommentAPIService) AnswerApiV1CommentGetExecute(r ApiAnswerApiV1CommentGetRequest) (*AnswerApiV1CommentGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -435,7 +435,7 @@ func (a *CommentApiService) AnswerApiV1CommentGetExecute(r ApiAnswerApiV1Comment localVarReturnValue *AnswerApiV1CommentGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1CommentGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -506,7 +506,7 @@ func (a *CommentApiService) AnswerApiV1CommentGetExecute(r ApiAnswerApiV1Comment type ApiAnswerApiV1CommentPageGetRequest struct { ctx context.Context - ApiService *CommentApiService + ApiService *CommentAPIService objectId *string page *int32 pageSize *int32 @@ -549,7 +549,7 @@ get comment page @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1CommentPageGetRequest */ -func (a *CommentApiService) AnswerApiV1CommentPageGet(ctx context.Context) ApiAnswerApiV1CommentPageGetRequest { +func (a *CommentAPIService) AnswerApiV1CommentPageGet(ctx context.Context) ApiAnswerApiV1CommentPageGetRequest { return ApiAnswerApiV1CommentPageGetRequest{ ApiService: a, ctx: ctx, @@ -558,7 +558,7 @@ func (a *CommentApiService) AnswerApiV1CommentPageGet(ctx context.Context) ApiAn // Execute executes the request // @return AnswerApiV1CommentGet200Response -func (a *CommentApiService) AnswerApiV1CommentPageGetExecute(r ApiAnswerApiV1CommentPageGetRequest) (*AnswerApiV1CommentGet200Response, *http.Response, error) { +func (a *CommentAPIService) AnswerApiV1CommentPageGetExecute(r ApiAnswerApiV1CommentPageGetRequest) (*AnswerApiV1CommentGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -566,7 +566,7 @@ func (a *CommentApiService) AnswerApiV1CommentPageGetExecute(r ApiAnswerApiV1Com localVarReturnValue *AnswerApiV1CommentGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1CommentPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -646,7 +646,7 @@ func (a *CommentApiService) AnswerApiV1CommentPageGetExecute(r ApiAnswerApiV1Com type ApiAnswerApiV1CommentPostRequest struct { ctx context.Context - ApiService *CommentApiService + ApiService *CommentAPIService data *SchemaAddCommentReq } @@ -668,7 +668,7 @@ add comment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1CommentPostRequest */ -func (a *CommentApiService) AnswerApiV1CommentPost(ctx context.Context) ApiAnswerApiV1CommentPostRequest { +func (a *CommentAPIService) AnswerApiV1CommentPost(ctx context.Context) ApiAnswerApiV1CommentPostRequest { return ApiAnswerApiV1CommentPostRequest{ ApiService: a, ctx: ctx, @@ -677,7 +677,7 @@ func (a *CommentApiService) AnswerApiV1CommentPost(ctx context.Context) ApiAnswe // Execute executes the request // @return AnswerApiV1CommentPost200Response -func (a *CommentApiService) AnswerApiV1CommentPostExecute(r ApiAnswerApiV1CommentPostRequest) (*AnswerApiV1CommentPost200Response, *http.Response, error) { +func (a *CommentAPIService) AnswerApiV1CommentPostExecute(r ApiAnswerApiV1CommentPostRequest) (*AnswerApiV1CommentPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -685,7 +685,7 @@ func (a *CommentApiService) AnswerApiV1CommentPostExecute(r ApiAnswerApiV1Commen localVarReturnValue *AnswerApiV1CommentPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1CommentPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -771,7 +771,7 @@ func (a *CommentApiService) AnswerApiV1CommentPostExecute(r ApiAnswerApiV1Commen type ApiAnswerApiV1CommentPutRequest struct { ctx context.Context - ApiService *CommentApiService + ApiService *CommentAPIService data *SchemaUpdateCommentReq } @@ -793,7 +793,7 @@ update comment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1CommentPutRequest */ -func (a *CommentApiService) AnswerApiV1CommentPut(ctx context.Context) ApiAnswerApiV1CommentPutRequest { +func (a *CommentAPIService) AnswerApiV1CommentPut(ctx context.Context) ApiAnswerApiV1CommentPutRequest { return ApiAnswerApiV1CommentPutRequest{ ApiService: a, ctx: ctx, @@ -802,7 +802,7 @@ func (a *CommentApiService) AnswerApiV1CommentPut(ctx context.Context) ApiAnswer // Execute executes the request // @return HandlerRespBody -func (a *CommentApiService) AnswerApiV1CommentPutExecute(r ApiAnswerApiV1CommentPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *CommentAPIService) AnswerApiV1CommentPutExecute(r ApiAnswerApiV1CommentPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -810,7 +810,7 @@ func (a *CommentApiService) AnswerApiV1CommentPutExecute(r ApiAnswerApiV1Comment localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1CommentPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -896,7 +896,7 @@ func (a *CommentApiService) AnswerApiV1CommentPutExecute(r ApiAnswerApiV1Comment type ApiAnswerApiV1PersonalCommentPageGetRequest struct { ctx context.Context - ApiService *CommentApiService + ApiService *CommentAPIService page *int32 pageSize *int32 username *string @@ -932,7 +932,7 @@ user personal comment list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PersonalCommentPageGetRequest */ -func (a *CommentApiService) AnswerApiV1PersonalCommentPageGet(ctx context.Context) ApiAnswerApiV1PersonalCommentPageGetRequest { +func (a *CommentAPIService) AnswerApiV1PersonalCommentPageGet(ctx context.Context) ApiAnswerApiV1PersonalCommentPageGetRequest { return ApiAnswerApiV1PersonalCommentPageGetRequest{ ApiService: a, ctx: ctx, @@ -941,7 +941,7 @@ func (a *CommentApiService) AnswerApiV1PersonalCommentPageGet(ctx context.Contex // Execute executes the request // @return AnswerApiV1PersonalCommentPageGet200Response -func (a *CommentApiService) AnswerApiV1PersonalCommentPageGetExecute(r ApiAnswerApiV1PersonalCommentPageGetRequest) (*AnswerApiV1PersonalCommentPageGet200Response, *http.Response, error) { +func (a *CommentAPIService) AnswerApiV1PersonalCommentPageGetExecute(r ApiAnswerApiV1PersonalCommentPageGetRequest) (*AnswerApiV1PersonalCommentPageGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -949,7 +949,7 @@ func (a *CommentApiService) AnswerApiV1PersonalCommentPageGetExecute(r ApiAnswer localVarReturnValue *AnswerApiV1PersonalCommentPageGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1PersonalCommentPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1PersonalCommentPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_installation.go b/api_installation.go index 853ad27..c045d57 100644 --- a/api_installation.go +++ b/api_installation.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// InstallationApiService InstallationApi service -type InstallationApiService service +// InstallationAPIService InstallationAPI service +type InstallationAPIService service type ApiInstallationBaseInfoPostRequest struct { ctx context.Context - ApiService *InstallationApiService + ApiService *InstallationAPIService data *InstallInitBaseInfoReq } @@ -44,7 +44,7 @@ init base info @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiInstallationBaseInfoPostRequest */ -func (a *InstallationApiService) InstallationBaseInfoPost(ctx context.Context) ApiInstallationBaseInfoPostRequest { +func (a *InstallationAPIService) InstallationBaseInfoPost(ctx context.Context) ApiInstallationBaseInfoPostRequest { return ApiInstallationBaseInfoPostRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *InstallationApiService) InstallationBaseInfoPost(ctx context.Context) A // Execute executes the request // @return HandlerRespBody -func (a *InstallationApiService) InstallationBaseInfoPostExecute(r ApiInstallationBaseInfoPostRequest) (*HandlerRespBody, *http.Response, error) { +func (a *InstallationAPIService) InstallationBaseInfoPostExecute(r ApiInstallationBaseInfoPostRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *InstallationApiService) InstallationBaseInfoPostExecute(r ApiInstallati localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationBaseInfoPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationAPIService.InstallationBaseInfoPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -133,7 +133,7 @@ func (a *InstallationApiService) InstallationBaseInfoPostExecute(r ApiInstallati type ApiInstallationConfigFileCheckPostRequest struct { ctx context.Context - ApiService *InstallationApiService + ApiService *InstallationAPIService } func (r ApiInstallationConfigFileCheckPostRequest) Execute() (*InstallationConfigFileCheckPost200Response, *http.Response, error) { @@ -148,7 +148,7 @@ check config file if exist when installation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiInstallationConfigFileCheckPostRequest */ -func (a *InstallationApiService) InstallationConfigFileCheckPost(ctx context.Context) ApiInstallationConfigFileCheckPostRequest { +func (a *InstallationAPIService) InstallationConfigFileCheckPost(ctx context.Context) ApiInstallationConfigFileCheckPostRequest { return ApiInstallationConfigFileCheckPostRequest{ ApiService: a, ctx: ctx, @@ -157,7 +157,7 @@ func (a *InstallationApiService) InstallationConfigFileCheckPost(ctx context.Con // Execute executes the request // @return InstallationConfigFileCheckPost200Response -func (a *InstallationApiService) InstallationConfigFileCheckPostExecute(r ApiInstallationConfigFileCheckPostRequest) (*InstallationConfigFileCheckPost200Response, *http.Response, error) { +func (a *InstallationAPIService) InstallationConfigFileCheckPostExecute(r ApiInstallationConfigFileCheckPostRequest) (*InstallationConfigFileCheckPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -165,7 +165,7 @@ func (a *InstallationApiService) InstallationConfigFileCheckPostExecute(r ApiIns localVarReturnValue *InstallationConfigFileCheckPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationConfigFileCheckPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationAPIService.InstallationConfigFileCheckPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -232,7 +232,7 @@ func (a *InstallationApiService) InstallationConfigFileCheckPostExecute(r ApiIns type ApiInstallationDbCheckPostRequest struct { ctx context.Context - ApiService *InstallationApiService + ApiService *InstallationAPIService data *InstallCheckDatabaseReq } @@ -254,7 +254,7 @@ check database if exist when installation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiInstallationDbCheckPostRequest */ -func (a *InstallationApiService) InstallationDbCheckPost(ctx context.Context) ApiInstallationDbCheckPostRequest { +func (a *InstallationAPIService) InstallationDbCheckPost(ctx context.Context) ApiInstallationDbCheckPostRequest { return ApiInstallationDbCheckPostRequest{ ApiService: a, ctx: ctx, @@ -263,7 +263,7 @@ func (a *InstallationApiService) InstallationDbCheckPost(ctx context.Context) Ap // Execute executes the request // @return InstallationConfigFileCheckPost200Response -func (a *InstallationApiService) InstallationDbCheckPostExecute(r ApiInstallationDbCheckPostRequest) (*InstallationConfigFileCheckPost200Response, *http.Response, error) { +func (a *InstallationAPIService) InstallationDbCheckPostExecute(r ApiInstallationDbCheckPostRequest) (*InstallationConfigFileCheckPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -271,7 +271,7 @@ func (a *InstallationApiService) InstallationDbCheckPostExecute(r ApiInstallatio localVarReturnValue *InstallationConfigFileCheckPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationDbCheckPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationAPIService.InstallationDbCheckPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -343,7 +343,7 @@ func (a *InstallationApiService) InstallationDbCheckPostExecute(r ApiInstallatio type ApiInstallationInitPostRequest struct { ctx context.Context - ApiService *InstallationApiService + ApiService *InstallationAPIService data *InstallCheckDatabaseReq } @@ -365,7 +365,7 @@ init environment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiInstallationInitPostRequest */ -func (a *InstallationApiService) InstallationInitPost(ctx context.Context) ApiInstallationInitPostRequest { +func (a *InstallationAPIService) InstallationInitPost(ctx context.Context) ApiInstallationInitPostRequest { return ApiInstallationInitPostRequest{ ApiService: a, ctx: ctx, @@ -374,7 +374,7 @@ func (a *InstallationApiService) InstallationInitPost(ctx context.Context) ApiIn // Execute executes the request // @return HandlerRespBody -func (a *InstallationApiService) InstallationInitPostExecute(r ApiInstallationInitPostRequest) (*HandlerRespBody, *http.Response, error) { +func (a *InstallationAPIService) InstallationInitPostExecute(r ApiInstallationInitPostRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -382,7 +382,7 @@ func (a *InstallationApiService) InstallationInitPostExecute(r ApiInstallationIn localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationInitPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationAPIService.InstallationInitPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -454,7 +454,7 @@ func (a *InstallationApiService) InstallationInitPostExecute(r ApiInstallationIn type ApiRootGetRequest struct { ctx context.Context - ApiService *InstallationApiService + ApiService *InstallationAPIService } func (r ApiRootGetRequest) Execute() (*http.Response, error) { @@ -469,7 +469,7 @@ if config file not exist try to redirect to install page @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiRootGetRequest */ -func (a *InstallationApiService) RootGet(ctx context.Context) ApiRootGetRequest { +func (a *InstallationAPIService) RootGet(ctx context.Context) ApiRootGetRequest { return ApiRootGetRequest{ ApiService: a, ctx: ctx, @@ -477,14 +477,14 @@ func (a *InstallationApiService) RootGet(ctx context.Context) ApiRootGetRequest } // Execute executes the request -func (a *InstallationApiService) RootGetExecute(r ApiRootGetRequest) (*http.Response, error) { +func (a *InstallationAPIService) RootGetExecute(r ApiRootGetRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.RootGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationAPIService.RootGet") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_lang.go b/api_lang.go index 52eb01b..437c025 100644 --- a/api_lang.go +++ b/api_lang.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// LangApiService LangApi service -type LangApiService service +// LangAPIService LangAPI service +type LangAPIService service type ApiAnswerAdminApiLanguageOptionsGetRequest struct { ctx context.Context - ApiService *LangApiService + ApiService *LangAPIService } func (r ApiAnswerAdminApiLanguageOptionsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { @@ -37,7 +37,7 @@ Get language options @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiLanguageOptionsGetRequest */ -func (a *LangApiService) AnswerAdminApiLanguageOptionsGet(ctx context.Context) ApiAnswerAdminApiLanguageOptionsGetRequest { +func (a *LangAPIService) AnswerAdminApiLanguageOptionsGet(ctx context.Context) ApiAnswerAdminApiLanguageOptionsGetRequest { return ApiAnswerAdminApiLanguageOptionsGetRequest{ ApiService: a, ctx: ctx, @@ -46,7 +46,7 @@ func (a *LangApiService) AnswerAdminApiLanguageOptionsGet(ctx context.Context) A // Execute executes the request // @return HandlerRespBody -func (a *LangApiService) AnswerAdminApiLanguageOptionsGetExecute(r ApiAnswerAdminApiLanguageOptionsGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *LangAPIService) AnswerAdminApiLanguageOptionsGetExecute(r ApiAnswerAdminApiLanguageOptionsGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -54,7 +54,7 @@ func (a *LangApiService) AnswerAdminApiLanguageOptionsGetExecute(r ApiAnswerAdmi localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.AnswerAdminApiLanguageOptionsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangAPIService.AnswerAdminApiLanguageOptionsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -121,7 +121,7 @@ func (a *LangApiService) AnswerAdminApiLanguageOptionsGetExecute(r ApiAnswerAdmi type ApiAnswerApiV1LanguageConfigGetRequest struct { ctx context.Context - ApiService *LangApiService + ApiService *LangAPIService acceptLanguage *string } @@ -143,7 +143,7 @@ get language config mapping @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1LanguageConfigGetRequest */ -func (a *LangApiService) AnswerApiV1LanguageConfigGet(ctx context.Context) ApiAnswerApiV1LanguageConfigGetRequest { +func (a *LangAPIService) AnswerApiV1LanguageConfigGet(ctx context.Context) ApiAnswerApiV1LanguageConfigGetRequest { return ApiAnswerApiV1LanguageConfigGetRequest{ ApiService: a, ctx: ctx, @@ -152,7 +152,7 @@ func (a *LangApiService) AnswerApiV1LanguageConfigGet(ctx context.Context) ApiAn // Execute executes the request // @return HandlerRespBody -func (a *LangApiService) AnswerApiV1LanguageConfigGetExecute(r ApiAnswerApiV1LanguageConfigGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *LangAPIService) AnswerApiV1LanguageConfigGetExecute(r ApiAnswerApiV1LanguageConfigGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -160,7 +160,7 @@ func (a *LangApiService) AnswerApiV1LanguageConfigGetExecute(r ApiAnswerApiV1Lan localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.AnswerApiV1LanguageConfigGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangAPIService.AnswerApiV1LanguageConfigGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -231,7 +231,7 @@ func (a *LangApiService) AnswerApiV1LanguageConfigGetExecute(r ApiAnswerApiV1Lan type ApiAnswerApiV1LanguageOptionsGetRequest struct { ctx context.Context - ApiService *LangApiService + ApiService *LangAPIService } func (r ApiAnswerApiV1LanguageOptionsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { @@ -246,7 +246,7 @@ Get language options @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1LanguageOptionsGetRequest */ -func (a *LangApiService) AnswerApiV1LanguageOptionsGet(ctx context.Context) ApiAnswerApiV1LanguageOptionsGetRequest { +func (a *LangAPIService) AnswerApiV1LanguageOptionsGet(ctx context.Context) ApiAnswerApiV1LanguageOptionsGetRequest { return ApiAnswerApiV1LanguageOptionsGetRequest{ ApiService: a, ctx: ctx, @@ -255,7 +255,7 @@ func (a *LangApiService) AnswerApiV1LanguageOptionsGet(ctx context.Context) ApiA // Execute executes the request // @return HandlerRespBody -func (a *LangApiService) AnswerApiV1LanguageOptionsGetExecute(r ApiAnswerApiV1LanguageOptionsGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *LangAPIService) AnswerApiV1LanguageOptionsGetExecute(r ApiAnswerApiV1LanguageOptionsGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -263,7 +263,7 @@ func (a *LangApiService) AnswerApiV1LanguageOptionsGetExecute(r ApiAnswerApiV1La localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.AnswerApiV1LanguageOptionsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangAPIService.AnswerApiV1LanguageOptionsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -330,7 +330,7 @@ func (a *LangApiService) AnswerApiV1LanguageOptionsGetExecute(r ApiAnswerApiV1La type ApiInstallationLanguageOptionsGetRequest struct { ctx context.Context - ApiService *LangApiService + ApiService *LangAPIService } func (r ApiInstallationLanguageOptionsGetRequest) Execute() (*InstallationLanguageOptionsGet200Response, *http.Response, error) { @@ -345,7 +345,7 @@ get installation language options @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiInstallationLanguageOptionsGetRequest */ -func (a *LangApiService) InstallationLanguageOptionsGet(ctx context.Context) ApiInstallationLanguageOptionsGetRequest { +func (a *LangAPIService) InstallationLanguageOptionsGet(ctx context.Context) ApiInstallationLanguageOptionsGetRequest { return ApiInstallationLanguageOptionsGetRequest{ ApiService: a, ctx: ctx, @@ -354,7 +354,7 @@ func (a *LangApiService) InstallationLanguageOptionsGet(ctx context.Context) Api // Execute executes the request // @return InstallationLanguageOptionsGet200Response -func (a *LangApiService) InstallationLanguageOptionsGetExecute(r ApiInstallationLanguageOptionsGetRequest) (*InstallationLanguageOptionsGet200Response, *http.Response, error) { +func (a *LangAPIService) InstallationLanguageOptionsGetExecute(r ApiInstallationLanguageOptionsGetRequest) (*InstallationLanguageOptionsGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -362,7 +362,7 @@ func (a *LangApiService) InstallationLanguageOptionsGetExecute(r ApiInstallation localVarReturnValue *InstallationLanguageOptionsGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.InstallationLanguageOptionsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangAPIService.InstallationLanguageOptionsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_notification.go b/api_notification.go index 4865850..59431f5 100644 --- a/api_notification.go +++ b/api_notification.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// NotificationApiService NotificationApi service -type NotificationApiService service +// NotificationAPIService NotificationAPI service +type NotificationAPIService service type ApiAnswerApiV1NotificationPageGetRequest struct { ctx context.Context - ApiService *NotificationApiService + ApiService *NotificationAPIService type_ *string inboxType *string page *int32 @@ -65,7 +65,7 @@ get notification list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1NotificationPageGetRequest */ -func (a *NotificationApiService) AnswerApiV1NotificationPageGet(ctx context.Context) ApiAnswerApiV1NotificationPageGetRequest { +func (a *NotificationAPIService) AnswerApiV1NotificationPageGet(ctx context.Context) ApiAnswerApiV1NotificationPageGetRequest { return ApiAnswerApiV1NotificationPageGetRequest{ ApiService: a, ctx: ctx, @@ -74,7 +74,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationPageGet(ctx context.Cont // Execute executes the request // @return HandlerRespBody -func (a *NotificationApiService) AnswerApiV1NotificationPageGetExecute(r ApiAnswerApiV1NotificationPageGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *NotificationAPIService) AnswerApiV1NotificationPageGetExecute(r ApiAnswerApiV1NotificationPageGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -82,7 +82,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationPageGetExecute(r ApiAnsw localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationAPIService.AnswerApiV1NotificationPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -177,7 +177,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationPageGetExecute(r ApiAnsw type ApiAnswerApiV1NotificationReadStateAllPutRequest struct { ctx context.Context - ApiService *NotificationApiService + ApiService *NotificationAPIService data *SchemaNotificationClearRequest } @@ -199,7 +199,7 @@ ClearUnRead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1NotificationReadStateAllPutRequest */ -func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPut(ctx context.Context) ApiAnswerApiV1NotificationReadStateAllPutRequest { +func (a *NotificationAPIService) AnswerApiV1NotificationReadStateAllPut(ctx context.Context) ApiAnswerApiV1NotificationReadStateAllPutRequest { return ApiAnswerApiV1NotificationReadStateAllPutRequest{ ApiService: a, ctx: ctx, @@ -208,7 +208,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPut(ctx cont // Execute executes the request // @return HandlerRespBody -func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPutExecute(r ApiAnswerApiV1NotificationReadStateAllPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *NotificationAPIService) AnswerApiV1NotificationReadStateAllPutExecute(r ApiAnswerApiV1NotificationReadStateAllPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -216,7 +216,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPutExecute(r localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationReadStateAllPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationAPIService.AnswerApiV1NotificationReadStateAllPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -302,7 +302,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPutExecute(r type ApiAnswerApiV1NotificationReadStatePutRequest struct { ctx context.Context - ApiService *NotificationApiService + ApiService *NotificationAPIService data *SchemaNotificationClearIDRequest } @@ -324,7 +324,7 @@ ClearUnRead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1NotificationReadStatePutRequest */ -func (a *NotificationApiService) AnswerApiV1NotificationReadStatePut(ctx context.Context) ApiAnswerApiV1NotificationReadStatePutRequest { +func (a *NotificationAPIService) AnswerApiV1NotificationReadStatePut(ctx context.Context) ApiAnswerApiV1NotificationReadStatePutRequest { return ApiAnswerApiV1NotificationReadStatePutRequest{ ApiService: a, ctx: ctx, @@ -333,7 +333,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStatePut(ctx context // Execute executes the request // @return HandlerRespBody -func (a *NotificationApiService) AnswerApiV1NotificationReadStatePutExecute(r ApiAnswerApiV1NotificationReadStatePutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *NotificationAPIService) AnswerApiV1NotificationReadStatePutExecute(r ApiAnswerApiV1NotificationReadStatePutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -341,7 +341,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStatePutExecute(r Ap localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationReadStatePut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationAPIService.AnswerApiV1NotificationReadStatePut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -427,7 +427,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStatePutExecute(r Ap type ApiAnswerApiV1NotificationStatusGetRequest struct { ctx context.Context - ApiService *NotificationApiService + ApiService *NotificationAPIService } func (r ApiAnswerApiV1NotificationStatusGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { @@ -442,7 +442,7 @@ GetRedDot @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1NotificationStatusGetRequest */ -func (a *NotificationApiService) AnswerApiV1NotificationStatusGet(ctx context.Context) ApiAnswerApiV1NotificationStatusGetRequest { +func (a *NotificationAPIService) AnswerApiV1NotificationStatusGet(ctx context.Context) ApiAnswerApiV1NotificationStatusGetRequest { return ApiAnswerApiV1NotificationStatusGetRequest{ ApiService: a, ctx: ctx, @@ -451,7 +451,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationStatusGet(ctx context.Co // Execute executes the request // @return HandlerRespBody -func (a *NotificationApiService) AnswerApiV1NotificationStatusGetExecute(r ApiAnswerApiV1NotificationStatusGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *NotificationAPIService) AnswerApiV1NotificationStatusGetExecute(r ApiAnswerApiV1NotificationStatusGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -459,7 +459,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationStatusGetExecute(r ApiAn localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationStatusGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationAPIService.AnswerApiV1NotificationStatusGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -540,7 +540,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationStatusGetExecute(r ApiAn type ApiAnswerApiV1NotificationStatusPutRequest struct { ctx context.Context - ApiService *NotificationApiService + ApiService *NotificationAPIService data *SchemaNotificationClearRequest } @@ -562,7 +562,7 @@ DelRedDot @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1NotificationStatusPutRequest */ -func (a *NotificationApiService) AnswerApiV1NotificationStatusPut(ctx context.Context) ApiAnswerApiV1NotificationStatusPutRequest { +func (a *NotificationAPIService) AnswerApiV1NotificationStatusPut(ctx context.Context) ApiAnswerApiV1NotificationStatusPutRequest { return ApiAnswerApiV1NotificationStatusPutRequest{ ApiService: a, ctx: ctx, @@ -571,7 +571,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationStatusPut(ctx context.Co // Execute executes the request // @return HandlerRespBody -func (a *NotificationApiService) AnswerApiV1NotificationStatusPutExecute(r ApiAnswerApiV1NotificationStatusPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *NotificationAPIService) AnswerApiV1NotificationStatusPutExecute(r ApiAnswerApiV1NotificationStatusPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -579,7 +579,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationStatusPutExecute(r ApiAn localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationStatusPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationAPIService.AnswerApiV1NotificationStatusPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_permission.go b/api_permission.go index dcbbde4..6d2f876 100644 --- a/api_permission.go +++ b/api_permission.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// PermissionApiService PermissionApi service -type PermissionApiService service +// PermissionAPIService PermissionAPI service +type PermissionAPIService service type ApiAnswerApiV1PermissionGetRequest struct { ctx context.Context - ApiService *PermissionApiService + ApiService *PermissionAPIService authorization *string action *string } @@ -51,7 +51,7 @@ check user permission @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PermissionGetRequest */ -func (a *PermissionApiService) AnswerApiV1PermissionGet(ctx context.Context) ApiAnswerApiV1PermissionGetRequest { +func (a *PermissionAPIService) AnswerApiV1PermissionGet(ctx context.Context) ApiAnswerApiV1PermissionGetRequest { return ApiAnswerApiV1PermissionGetRequest{ ApiService: a, ctx: ctx, @@ -60,7 +60,7 @@ func (a *PermissionApiService) AnswerApiV1PermissionGet(ctx context.Context) Api // Execute executes the request // @return AnswerApiV1PermissionGet200Response -func (a *PermissionApiService) AnswerApiV1PermissionGetExecute(r ApiAnswerApiV1PermissionGetRequest) (*AnswerApiV1PermissionGet200Response, *http.Response, error) { +func (a *PermissionAPIService) AnswerApiV1PermissionGetExecute(r ApiAnswerApiV1PermissionGetRequest) (*AnswerApiV1PermissionGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -68,7 +68,7 @@ func (a *PermissionApiService) AnswerApiV1PermissionGetExecute(r ApiAnswerApiV1P localVarReturnValue *AnswerApiV1PermissionGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionApiService.AnswerApiV1PermissionGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionAPIService.AnswerApiV1PermissionGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_personal.go b/api_personal.go index 511721f..8991412 100644 --- a/api_personal.go +++ b/api_personal.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// PersonalApiService PersonalApi service -type PersonalApiService service +// PersonalAPIService PersonalAPI service +type PersonalAPIService service type ApiAnswerApiV1PersonalAnswerPageGetRequest struct { ctx context.Context - ApiService *PersonalApiService + ApiService *PersonalAPIService username *string order *string page *string @@ -65,7 +65,7 @@ list personal answers @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PersonalAnswerPageGetRequest */ -func (a *PersonalApiService) AnswerApiV1PersonalAnswerPageGet(ctx context.Context) ApiAnswerApiV1PersonalAnswerPageGetRequest { +func (a *PersonalAPIService) AnswerApiV1PersonalAnswerPageGet(ctx context.Context) ApiAnswerApiV1PersonalAnswerPageGetRequest { return ApiAnswerApiV1PersonalAnswerPageGetRequest{ ApiService: a, ctx: ctx, @@ -74,7 +74,7 @@ func (a *PersonalApiService) AnswerApiV1PersonalAnswerPageGet(ctx context.Contex // Execute executes the request // @return HandlerRespBody -func (a *PersonalApiService) AnswerApiV1PersonalAnswerPageGetExecute(r ApiAnswerApiV1PersonalAnswerPageGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *PersonalAPIService) AnswerApiV1PersonalAnswerPageGetExecute(r ApiAnswerApiV1PersonalAnswerPageGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -82,7 +82,7 @@ func (a *PersonalApiService) AnswerApiV1PersonalAnswerPageGetExecute(r ApiAnswer localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonalApiService.AnswerApiV1PersonalAnswerPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonalAPIService.AnswerApiV1PersonalAnswerPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -179,7 +179,7 @@ func (a *PersonalApiService) AnswerApiV1PersonalAnswerPageGetExecute(r ApiAnswer type ApiPersonalQuestionPageGetRequest struct { ctx context.Context - ApiService *PersonalApiService + ApiService *PersonalAPIService username *string order *string page *string @@ -222,7 +222,7 @@ list personal questions @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiPersonalQuestionPageGetRequest */ -func (a *PersonalApiService) PersonalQuestionPageGet(ctx context.Context) ApiPersonalQuestionPageGetRequest { +func (a *PersonalAPIService) PersonalQuestionPageGet(ctx context.Context) ApiPersonalQuestionPageGetRequest { return ApiPersonalQuestionPageGetRequest{ ApiService: a, ctx: ctx, @@ -231,7 +231,7 @@ func (a *PersonalApiService) PersonalQuestionPageGet(ctx context.Context) ApiPer // Execute executes the request // @return HandlerRespBody -func (a *PersonalApiService) PersonalQuestionPageGetExecute(r ApiPersonalQuestionPageGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *PersonalAPIService) PersonalQuestionPageGetExecute(r ApiPersonalQuestionPageGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -239,7 +239,7 @@ func (a *PersonalApiService) PersonalQuestionPageGetExecute(r ApiPersonalQuestio localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonalApiService.PersonalQuestionPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonalAPIService.PersonalQuestionPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_plugin_connector.go b/api_plugin_connector.go index 58e706f..1ed8b48 100644 --- a/api_plugin_connector.go +++ b/api_plugin_connector.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// PluginConnectorApiService PluginConnectorApi service -type PluginConnectorApiService service +// PluginConnectorAPIService PluginConnectorAPI service +type PluginConnectorAPIService service type ApiAnswerApiV1ConnectorBindingEmailPostRequest struct { ctx context.Context - ApiService *PluginConnectorApiService + ApiService *PluginConnectorAPIService data *SchemaExternalLoginBindingUserSendEmailReq } @@ -44,7 +44,7 @@ external login binding user send email @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1ConnectorBindingEmailPostRequest */ -func (a *PluginConnectorApiService) AnswerApiV1ConnectorBindingEmailPost(ctx context.Context) ApiAnswerApiV1ConnectorBindingEmailPostRequest { +func (a *PluginConnectorAPIService) AnswerApiV1ConnectorBindingEmailPost(ctx context.Context) ApiAnswerApiV1ConnectorBindingEmailPostRequest { return ApiAnswerApiV1ConnectorBindingEmailPostRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorBindingEmailPost(ctx con // Execute executes the request // @return AnswerApiV1ConnectorBindingEmailPost200Response -func (a *PluginConnectorApiService) AnswerApiV1ConnectorBindingEmailPostExecute(r ApiAnswerApiV1ConnectorBindingEmailPostRequest) (*AnswerApiV1ConnectorBindingEmailPost200Response, *http.Response, error) { +func (a *PluginConnectorAPIService) AnswerApiV1ConnectorBindingEmailPostExecute(r ApiAnswerApiV1ConnectorBindingEmailPostRequest) (*AnswerApiV1ConnectorBindingEmailPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorBindingEmailPostExecute( localVarReturnValue *AnswerApiV1ConnectorBindingEmailPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorApiService.AnswerApiV1ConnectorBindingEmailPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorAPIService.AnswerApiV1ConnectorBindingEmailPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -133,7 +133,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorBindingEmailPostExecute( type ApiAnswerApiV1ConnectorInfoGetRequest struct { ctx context.Context - ApiService *PluginConnectorApiService + ApiService *PluginConnectorAPIService } func (r ApiAnswerApiV1ConnectorInfoGetRequest) Execute() (*AnswerApiV1ConnectorInfoGet200Response, *http.Response, error) { @@ -148,7 +148,7 @@ get all enabled connectors @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1ConnectorInfoGetRequest */ -func (a *PluginConnectorApiService) AnswerApiV1ConnectorInfoGet(ctx context.Context) ApiAnswerApiV1ConnectorInfoGetRequest { +func (a *PluginConnectorAPIService) AnswerApiV1ConnectorInfoGet(ctx context.Context) ApiAnswerApiV1ConnectorInfoGetRequest { return ApiAnswerApiV1ConnectorInfoGetRequest{ ApiService: a, ctx: ctx, @@ -157,7 +157,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorInfoGet(ctx context.Cont // Execute executes the request // @return AnswerApiV1ConnectorInfoGet200Response -func (a *PluginConnectorApiService) AnswerApiV1ConnectorInfoGetExecute(r ApiAnswerApiV1ConnectorInfoGetRequest) (*AnswerApiV1ConnectorInfoGet200Response, *http.Response, error) { +func (a *PluginConnectorAPIService) AnswerApiV1ConnectorInfoGetExecute(r ApiAnswerApiV1ConnectorInfoGetRequest) (*AnswerApiV1ConnectorInfoGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -165,7 +165,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorInfoGetExecute(r ApiAnsw localVarReturnValue *AnswerApiV1ConnectorInfoGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorApiService.AnswerApiV1ConnectorInfoGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorAPIService.AnswerApiV1ConnectorInfoGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -246,7 +246,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorInfoGetExecute(r ApiAnsw type ApiAnswerApiV1ConnectorUserInfoGetRequest struct { ctx context.Context - ApiService *PluginConnectorApiService + ApiService *PluginConnectorAPIService } func (r ApiAnswerApiV1ConnectorUserInfoGetRequest) Execute() (*AnswerApiV1ConnectorUserInfoGet200Response, *http.Response, error) { @@ -261,7 +261,7 @@ get all connectors info about user @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1ConnectorUserInfoGetRequest */ -func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserInfoGet(ctx context.Context) ApiAnswerApiV1ConnectorUserInfoGetRequest { +func (a *PluginConnectorAPIService) AnswerApiV1ConnectorUserInfoGet(ctx context.Context) ApiAnswerApiV1ConnectorUserInfoGetRequest { return ApiAnswerApiV1ConnectorUserInfoGetRequest{ ApiService: a, ctx: ctx, @@ -270,7 +270,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserInfoGet(ctx context. // Execute executes the request // @return AnswerApiV1ConnectorUserInfoGet200Response -func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserInfoGetExecute(r ApiAnswerApiV1ConnectorUserInfoGetRequest) (*AnswerApiV1ConnectorUserInfoGet200Response, *http.Response, error) { +func (a *PluginConnectorAPIService) AnswerApiV1ConnectorUserInfoGetExecute(r ApiAnswerApiV1ConnectorUserInfoGetRequest) (*AnswerApiV1ConnectorUserInfoGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -278,7 +278,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserInfoGetExecute(r Api localVarReturnValue *AnswerApiV1ConnectorUserInfoGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorApiService.AnswerApiV1ConnectorUserInfoGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorAPIService.AnswerApiV1ConnectorUserInfoGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -359,7 +359,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserInfoGetExecute(r Api type ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest struct { ctx context.Context - ApiService *PluginConnectorApiService + ApiService *PluginConnectorAPIService data *SchemaExternalLoginUnbindingReq } @@ -381,7 +381,7 @@ unbind external user login @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest */ -func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserUnbindingDelete(ctx context.Context) ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest { +func (a *PluginConnectorAPIService) AnswerApiV1ConnectorUserUnbindingDelete(ctx context.Context) ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest { return ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest{ ApiService: a, ctx: ctx, @@ -390,7 +390,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserUnbindingDelete(ctx // Execute executes the request // @return HandlerRespBody -func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserUnbindingDeleteExecute(r ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest) (*HandlerRespBody, *http.Response, error) { +func (a *PluginConnectorAPIService) AnswerApiV1ConnectorUserUnbindingDeleteExecute(r ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -398,7 +398,7 @@ func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserUnbindingDeleteExecu localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorApiService.AnswerApiV1ConnectorUserUnbindingDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorAPIService.AnswerApiV1ConnectorUserUnbindingDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_question.go b/api_question.go index 7f2fa6f..4767383 100644 --- a/api_question.go +++ b/api_question.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// QuestionApiService QuestionApi service -type QuestionApiService service +// QuestionAPIService QuestionAPI service +type QuestionAPIService service type ApiAnswerApiV1PersonalQaTopGetRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService username *string } @@ -44,7 +44,7 @@ UserTop @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PersonalQaTopGetRequest */ -func (a *QuestionApiService) AnswerApiV1PersonalQaTopGet(ctx context.Context) ApiAnswerApiV1PersonalQaTopGetRequest { +func (a *QuestionAPIService) AnswerApiV1PersonalQaTopGet(ctx context.Context) ApiAnswerApiV1PersonalQaTopGetRequest { return ApiAnswerApiV1PersonalQaTopGetRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *QuestionApiService) AnswerApiV1PersonalQaTopGet(ctx context.Context) Ap // Execute executes the request // @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1PersonalQaTopGetExecute(r ApiAnswerApiV1PersonalQaTopGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1PersonalQaTopGetExecute(r ApiAnswerApiV1PersonalQaTopGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *QuestionApiService) AnswerApiV1PersonalQaTopGetExecute(r ApiAnswerApiV1 localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1PersonalQaTopGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1PersonalQaTopGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -146,7 +146,7 @@ func (a *QuestionApiService) AnswerApiV1PersonalQaTopGetExecute(r ApiAnswerApiV1 type ApiAnswerApiV1QuestionAnswerPostRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService data *SchemaQuestionAddByAnswer } @@ -168,7 +168,7 @@ add question and answer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionAnswerPostRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionAnswerPost(ctx context.Context) ApiAnswerApiV1QuestionAnswerPostRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionAnswerPost(ctx context.Context) ApiAnswerApiV1QuestionAnswerPostRequest { return ApiAnswerApiV1QuestionAnswerPostRequest{ ApiService: a, ctx: ctx, @@ -177,7 +177,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionAnswerPost(ctx context.Context) // Execute executes the request // @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1QuestionAnswerPostExecute(r ApiAnswerApiV1QuestionAnswerPostRequest) (*HandlerRespBody, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionAnswerPostExecute(r ApiAnswerApiV1QuestionAnswerPostRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -185,7 +185,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionAnswerPostExecute(r ApiAnswerApi localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionAnswerPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionAnswerPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -271,7 +271,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionAnswerPostExecute(r ApiAnswerApi type ApiAnswerApiV1QuestionDeleteRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService data *SchemaRemoveQuestionReq } @@ -293,7 +293,7 @@ delete question @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionDeleteRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionDelete(ctx context.Context) ApiAnswerApiV1QuestionDeleteRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionDelete(ctx context.Context) ApiAnswerApiV1QuestionDeleteRequest { return ApiAnswerApiV1QuestionDeleteRequest{ ApiService: a, ctx: ctx, @@ -302,7 +302,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionDelete(ctx context.Context) ApiA // Execute executes the request // @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1QuestionDeleteExecute(r ApiAnswerApiV1QuestionDeleteRequest) (*HandlerRespBody, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionDeleteExecute(r ApiAnswerApiV1QuestionDeleteRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -310,7 +310,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionDeleteExecute(r ApiAnswerApiV1Qu localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -396,7 +396,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionDeleteExecute(r ApiAnswerApiV1Qu type ApiAnswerApiV1QuestionInfoGetRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService id *string } @@ -418,7 +418,7 @@ get question details @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionInfoGetRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionInfoGet(ctx context.Context) ApiAnswerApiV1QuestionInfoGetRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionInfoGet(ctx context.Context) ApiAnswerApiV1QuestionInfoGetRequest { return ApiAnswerApiV1QuestionInfoGetRequest{ ApiService: a, ctx: ctx, @@ -427,7 +427,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionInfoGet(ctx context.Context) Api // Execute executes the request // @return string -func (a *QuestionApiService) AnswerApiV1QuestionInfoGetExecute(r ApiAnswerApiV1QuestionInfoGetRequest) (string, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionInfoGetExecute(r ApiAnswerApiV1QuestionInfoGetRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -435,7 +435,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionInfoGetExecute(r ApiAnswerApiV1Q localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionInfoGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionInfoGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -520,7 +520,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionInfoGetExecute(r ApiAnswerApiV1Q type ApiAnswerApiV1QuestionInviteGetRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService id *string } @@ -542,7 +542,7 @@ get question invite user info @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionInviteGetRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionInviteGet(ctx context.Context) ApiAnswerApiV1QuestionInviteGetRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionInviteGet(ctx context.Context) ApiAnswerApiV1QuestionInviteGetRequest { return ApiAnswerApiV1QuestionInviteGetRequest{ ApiService: a, ctx: ctx, @@ -551,7 +551,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionInviteGet(ctx context.Context) A // Execute executes the request // @return string -func (a *QuestionApiService) AnswerApiV1QuestionInviteGetExecute(r ApiAnswerApiV1QuestionInviteGetRequest) (string, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionInviteGetExecute(r ApiAnswerApiV1QuestionInviteGetRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -559,7 +559,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionInviteGetExecute(r ApiAnswerApiV localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionInviteGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionInviteGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -644,7 +644,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionInviteGetExecute(r ApiAnswerApiV type ApiAnswerApiV1QuestionInvitePutRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService data *SchemaQuestionUpdateInviteUser } @@ -666,7 +666,7 @@ update question invite user @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionInvitePutRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionInvitePut(ctx context.Context) ApiAnswerApiV1QuestionInvitePutRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionInvitePut(ctx context.Context) ApiAnswerApiV1QuestionInvitePutRequest { return ApiAnswerApiV1QuestionInvitePutRequest{ ApiService: a, ctx: ctx, @@ -675,7 +675,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionInvitePut(ctx context.Context) A // Execute executes the request // @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1QuestionInvitePutExecute(r ApiAnswerApiV1QuestionInvitePutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionInvitePutExecute(r ApiAnswerApiV1QuestionInvitePutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -683,7 +683,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionInvitePutExecute(r ApiAnswerApiV localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionInvitePut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionInvitePut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -769,7 +769,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionInvitePutExecute(r ApiAnswerApiV type ApiAnswerApiV1QuestionOperationPutRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService data *SchemaOperationQuestionReq } @@ -791,7 +791,7 @@ Operation question \n operation [pin unpin hide show] @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionOperationPutRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionOperationPut(ctx context.Context) ApiAnswerApiV1QuestionOperationPutRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionOperationPut(ctx context.Context) ApiAnswerApiV1QuestionOperationPutRequest { return ApiAnswerApiV1QuestionOperationPutRequest{ ApiService: a, ctx: ctx, @@ -800,7 +800,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionOperationPut(ctx context.Context // Execute executes the request // @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1QuestionOperationPutExecute(r ApiAnswerApiV1QuestionOperationPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionOperationPutExecute(r ApiAnswerApiV1QuestionOperationPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -808,7 +808,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionOperationPutExecute(r ApiAnswerA localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionOperationPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionOperationPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -894,7 +894,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionOperationPutExecute(r ApiAnswerA type ApiAnswerApiV1QuestionPageGetRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService page *int32 pageSize *int32 order *string @@ -951,7 +951,7 @@ get questions by page @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionPageGetRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionPageGet(ctx context.Context) ApiAnswerApiV1QuestionPageGetRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionPageGet(ctx context.Context) ApiAnswerApiV1QuestionPageGetRequest { return ApiAnswerApiV1QuestionPageGetRequest{ ApiService: a, ctx: ctx, @@ -960,7 +960,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionPageGet(ctx context.Context) Api // Execute executes the request // @return AnswerApiV1QuestionPageGet200Response -func (a *QuestionApiService) AnswerApiV1QuestionPageGetExecute(r ApiAnswerApiV1QuestionPageGetRequest) (*AnswerApiV1QuestionPageGet200Response, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionPageGetExecute(r ApiAnswerApiV1QuestionPageGetRequest) (*AnswerApiV1QuestionPageGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -968,7 +968,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionPageGetExecute(r ApiAnswerApiV1Q localVarReturnValue *AnswerApiV1QuestionPageGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1053,7 +1053,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionPageGetExecute(r ApiAnswerApiV1Q type ApiAnswerApiV1QuestionPostRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService data *SchemaQuestionAdd } @@ -1075,7 +1075,7 @@ add question @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionPostRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionPost(ctx context.Context) ApiAnswerApiV1QuestionPostRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionPost(ctx context.Context) ApiAnswerApiV1QuestionPostRequest { return ApiAnswerApiV1QuestionPostRequest{ ApiService: a, ctx: ctx, @@ -1084,7 +1084,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionPost(ctx context.Context) ApiAns // Execute executes the request // @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1QuestionPostExecute(r ApiAnswerApiV1QuestionPostRequest) (*HandlerRespBody, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionPostExecute(r ApiAnswerApiV1QuestionPostRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1092,7 +1092,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionPostExecute(r ApiAnswerApiV1Ques localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1178,7 +1178,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionPostExecute(r ApiAnswerApiV1Ques type ApiAnswerApiV1QuestionPutRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService data *SchemaQuestionUpdate } @@ -1200,7 +1200,7 @@ update question @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionPutRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionPut(ctx context.Context) ApiAnswerApiV1QuestionPutRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionPut(ctx context.Context) ApiAnswerApiV1QuestionPutRequest { return ApiAnswerApiV1QuestionPutRequest{ ApiService: a, ctx: ctx, @@ -1209,7 +1209,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionPut(ctx context.Context) ApiAnsw // Execute executes the request // @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1QuestionPutExecute(r ApiAnswerApiV1QuestionPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionPutExecute(r ApiAnswerApiV1QuestionPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1217,7 +1217,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionPutExecute(r ApiAnswerApiV1Quest localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1303,7 +1303,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionPutExecute(r ApiAnswerApiV1Quest type ApiAnswerApiV1QuestionReopenPutRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService data *SchemaReopenQuestionReq } @@ -1325,7 +1325,7 @@ reopen question @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionReopenPutRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionReopenPut(ctx context.Context) ApiAnswerApiV1QuestionReopenPutRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionReopenPut(ctx context.Context) ApiAnswerApiV1QuestionReopenPutRequest { return ApiAnswerApiV1QuestionReopenPutRequest{ ApiService: a, ctx: ctx, @@ -1334,7 +1334,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionReopenPut(ctx context.Context) A // Execute executes the request // @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1QuestionReopenPutExecute(r ApiAnswerApiV1QuestionReopenPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionReopenPutExecute(r ApiAnswerApiV1QuestionReopenPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1342,7 +1342,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionReopenPutExecute(r ApiAnswerApiV localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionReopenPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionReopenPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1428,7 +1428,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionReopenPutExecute(r ApiAnswerApiV type ApiAnswerApiV1QuestionSimilarGetRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService title *string } @@ -1443,14 +1443,14 @@ func (r ApiAnswerApiV1QuestionSimilarGetRequest) Execute() (*HandlerRespBody, *h } /* -AnswerApiV1QuestionSimilarGet add question title like +AnswerApiV1QuestionSimilarGet fuzzy query similar questions based on title -add question title like +fuzzy query similar questions based on title @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionSimilarGetRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionSimilarGet(ctx context.Context) ApiAnswerApiV1QuestionSimilarGetRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionSimilarGet(ctx context.Context) ApiAnswerApiV1QuestionSimilarGetRequest { return ApiAnswerApiV1QuestionSimilarGetRequest{ ApiService: a, ctx: ctx, @@ -1459,7 +1459,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionSimilarGet(ctx context.Context) // Execute executes the request // @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1QuestionSimilarGetExecute(r ApiAnswerApiV1QuestionSimilarGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionSimilarGetExecute(r ApiAnswerApiV1QuestionSimilarGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1467,7 +1467,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionSimilarGetExecute(r ApiAnswerApi localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionSimilarGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionSimilarGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1552,7 +1552,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionSimilarGetExecute(r ApiAnswerApi type ApiAnswerApiV1QuestionSimilarTagGetRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService questionId *string } @@ -1574,7 +1574,7 @@ Search Similar Question @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionSimilarTagGetRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionSimilarTagGet(ctx context.Context) ApiAnswerApiV1QuestionSimilarTagGetRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionSimilarTagGet(ctx context.Context) ApiAnswerApiV1QuestionSimilarTagGetRequest { return ApiAnswerApiV1QuestionSimilarTagGetRequest{ ApiService: a, ctx: ctx, @@ -1583,7 +1583,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionSimilarTagGet(ctx context.Contex // Execute executes the request // @return string -func (a *QuestionApiService) AnswerApiV1QuestionSimilarTagGetExecute(r ApiAnswerApiV1QuestionSimilarTagGetRequest) (string, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionSimilarTagGetExecute(r ApiAnswerApiV1QuestionSimilarTagGetRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1591,7 +1591,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionSimilarTagGetExecute(r ApiAnswer localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionSimilarTagGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionSimilarTagGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1662,7 +1662,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionSimilarTagGetExecute(r ApiAnswer type ApiAnswerApiV1QuestionStatusPutRequest struct { ctx context.Context - ApiService *QuestionApiService + ApiService *QuestionAPIService data *SchemaCloseQuestionReq } @@ -1684,7 +1684,7 @@ Close question @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionStatusPutRequest */ -func (a *QuestionApiService) AnswerApiV1QuestionStatusPut(ctx context.Context) ApiAnswerApiV1QuestionStatusPutRequest { +func (a *QuestionAPIService) AnswerApiV1QuestionStatusPut(ctx context.Context) ApiAnswerApiV1QuestionStatusPutRequest { return ApiAnswerApiV1QuestionStatusPutRequest{ ApiService: a, ctx: ctx, @@ -1693,7 +1693,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionStatusPut(ctx context.Context) A // Execute executes the request // @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1QuestionStatusPutExecute(r ApiAnswerApiV1QuestionStatusPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *QuestionAPIService) AnswerApiV1QuestionStatusPutExecute(r ApiAnswerApiV1QuestionStatusPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1701,7 +1701,7 @@ func (a *QuestionApiService) AnswerApiV1QuestionStatusPutExecute(r ApiAnswerApiV localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionStatusPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionAPIService.AnswerApiV1QuestionStatusPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_rank.go b/api_rank.go index da983d4..2d58112 100644 --- a/api_rank.go +++ b/api_rank.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// RankApiService RankApi service -type RankApiService service +// RankAPIService RankAPI service +type RankAPIService service type ApiAnswerApiV1PersonalRankPageGetRequest struct { ctx context.Context - ApiService *RankApiService + ApiService *RankAPIService page *int32 pageSize *int32 username *string @@ -58,7 +58,7 @@ user personal rank list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PersonalRankPageGetRequest */ -func (a *RankApiService) AnswerApiV1PersonalRankPageGet(ctx context.Context) ApiAnswerApiV1PersonalRankPageGetRequest { +func (a *RankAPIService) AnswerApiV1PersonalRankPageGet(ctx context.Context) ApiAnswerApiV1PersonalRankPageGetRequest { return ApiAnswerApiV1PersonalRankPageGetRequest{ ApiService: a, ctx: ctx, @@ -67,7 +67,7 @@ func (a *RankApiService) AnswerApiV1PersonalRankPageGet(ctx context.Context) Api // Execute executes the request // @return AnswerApiV1PersonalRankPageGet200Response -func (a *RankApiService) AnswerApiV1PersonalRankPageGetExecute(r ApiAnswerApiV1PersonalRankPageGetRequest) (*AnswerApiV1PersonalRankPageGet200Response, *http.Response, error) { +func (a *RankAPIService) AnswerApiV1PersonalRankPageGetExecute(r ApiAnswerApiV1PersonalRankPageGetRequest) (*AnswerApiV1PersonalRankPageGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -75,7 +75,7 @@ func (a *RankApiService) AnswerApiV1PersonalRankPageGetExecute(r ApiAnswerApiV1P localVarReturnValue *AnswerApiV1PersonalRankPageGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RankApiService.AnswerApiV1PersonalRankPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RankAPIService.AnswerApiV1PersonalRankPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_reason.go b/api_reason.go index a74fbcd..35281d3 100644 --- a/api_reason.go +++ b/api_reason.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// ReasonApiService ReasonApi service -type ReasonApiService service +// ReasonAPIService ReasonAPI service +type ReasonAPIService service type ApiAnswerAdminApiReasonsGetRequest struct { ctx context.Context - ApiService *ReasonApiService + ApiService *ReasonAPIService objectType *string action *string } @@ -51,7 +51,7 @@ get reasons by object type and action @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerAdminApiReasonsGetRequest */ -func (a *ReasonApiService) AnswerAdminApiReasonsGet(ctx context.Context) ApiAnswerAdminApiReasonsGetRequest { +func (a *ReasonAPIService) AnswerAdminApiReasonsGet(ctx context.Context) ApiAnswerAdminApiReasonsGetRequest { return ApiAnswerAdminApiReasonsGetRequest{ ApiService: a, ctx: ctx, @@ -60,7 +60,7 @@ func (a *ReasonApiService) AnswerAdminApiReasonsGet(ctx context.Context) ApiAnsw // Execute executes the request // @return HandlerRespBody -func (a *ReasonApiService) AnswerAdminApiReasonsGetExecute(r ApiAnswerAdminApiReasonsGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *ReasonAPIService) AnswerAdminApiReasonsGetExecute(r ApiAnswerAdminApiReasonsGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -68,7 +68,7 @@ func (a *ReasonApiService) AnswerAdminApiReasonsGetExecute(r ApiAnswerAdminApiRe localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReasonApiService.AnswerAdminApiReasonsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReasonAPIService.AnswerAdminApiReasonsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -157,7 +157,7 @@ func (a *ReasonApiService) AnswerAdminApiReasonsGetExecute(r ApiAnswerAdminApiRe type ApiAnswerApiV1ReasonsGetRequest struct { ctx context.Context - ApiService *ReasonApiService + ApiService *ReasonAPIService objectType *string action *string } @@ -186,7 +186,7 @@ get reasons by object type and action @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1ReasonsGetRequest */ -func (a *ReasonApiService) AnswerApiV1ReasonsGet(ctx context.Context) ApiAnswerApiV1ReasonsGetRequest { +func (a *ReasonAPIService) AnswerApiV1ReasonsGet(ctx context.Context) ApiAnswerApiV1ReasonsGetRequest { return ApiAnswerApiV1ReasonsGetRequest{ ApiService: a, ctx: ctx, @@ -195,7 +195,7 @@ func (a *ReasonApiService) AnswerApiV1ReasonsGet(ctx context.Context) ApiAnswerA // Execute executes the request // @return HandlerRespBody -func (a *ReasonApiService) AnswerApiV1ReasonsGetExecute(r ApiAnswerApiV1ReasonsGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *ReasonAPIService) AnswerApiV1ReasonsGetExecute(r ApiAnswerApiV1ReasonsGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -203,7 +203,7 @@ func (a *ReasonApiService) AnswerApiV1ReasonsGetExecute(r ApiAnswerApiV1ReasonsG localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReasonApiService.AnswerApiV1ReasonsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReasonAPIService.AnswerApiV1ReasonsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_report.go b/api_report.go index 0de867b..4abdc73 100644 --- a/api_report.go +++ b/api_report.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// ReportApiService ReportApi service -type ReportApiService service +// ReportAPIService ReportAPI service +type ReportAPIService service type ApiAnswerApiV1ReportPostRequest struct { ctx context.Context - ApiService *ReportApiService + ApiService *ReportAPIService data *SchemaAddReportReq } @@ -44,7 +44,7 @@ add report
source (question, answer, comment, user) @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1ReportPostRequest */ -func (a *ReportApiService) AnswerApiV1ReportPost(ctx context.Context) ApiAnswerApiV1ReportPostRequest { +func (a *ReportAPIService) AnswerApiV1ReportPost(ctx context.Context) ApiAnswerApiV1ReportPostRequest { return ApiAnswerApiV1ReportPostRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *ReportApiService) AnswerApiV1ReportPost(ctx context.Context) ApiAnswerA // Execute executes the request // @return HandlerRespBody -func (a *ReportApiService) AnswerApiV1ReportPostExecute(r ApiAnswerApiV1ReportPostRequest) (*HandlerRespBody, *http.Response, error) { +func (a *ReportAPIService) AnswerApiV1ReportPostExecute(r ApiAnswerApiV1ReportPostRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *ReportApiService) AnswerApiV1ReportPostExecute(r ApiAnswerApiV1ReportPo localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReportApiService.AnswerApiV1ReportPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReportAPIService.AnswerApiV1ReportPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_revision.go b/api_revision.go index 22075c7..4b852a7 100644 --- a/api_revision.go +++ b/api_revision.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// RevisionApiService RevisionApi service -type RevisionApiService service +// RevisionAPIService RevisionAPI service +type RevisionAPIService service type ApiAnswerApiV1RevisionsAuditPutRequest struct { ctx context.Context - ApiService *RevisionApiService + ApiService *RevisionAPIService data *SchemaRevisionAuditReq } @@ -44,7 +44,7 @@ revision audit operation:approve or reject @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1RevisionsAuditPutRequest */ -func (a *RevisionApiService) AnswerApiV1RevisionsAuditPut(ctx context.Context) ApiAnswerApiV1RevisionsAuditPutRequest { +func (a *RevisionAPIService) AnswerApiV1RevisionsAuditPut(ctx context.Context) ApiAnswerApiV1RevisionsAuditPutRequest { return ApiAnswerApiV1RevisionsAuditPutRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsAuditPut(ctx context.Context) A // Execute executes the request // @return HandlerRespBody -func (a *RevisionApiService) AnswerApiV1RevisionsAuditPutExecute(r ApiAnswerApiV1RevisionsAuditPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *RevisionAPIService) AnswerApiV1RevisionsAuditPutExecute(r ApiAnswerApiV1RevisionsAuditPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsAuditPutExecute(r ApiAnswerApiV localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionApiService.AnswerApiV1RevisionsAuditPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionAPIService.AnswerApiV1RevisionsAuditPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -147,7 +147,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsAuditPutExecute(r ApiAnswerApiV type ApiAnswerApiV1RevisionsEditCheckGetRequest struct { ctx context.Context - ApiService *RevisionApiService + ApiService *RevisionAPIService id *string } @@ -169,7 +169,7 @@ check can update revision @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1RevisionsEditCheckGetRequest */ -func (a *RevisionApiService) AnswerApiV1RevisionsEditCheckGet(ctx context.Context) ApiAnswerApiV1RevisionsEditCheckGetRequest { +func (a *RevisionAPIService) AnswerApiV1RevisionsEditCheckGet(ctx context.Context) ApiAnswerApiV1RevisionsEditCheckGetRequest { return ApiAnswerApiV1RevisionsEditCheckGetRequest{ ApiService: a, ctx: ctx, @@ -178,7 +178,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsEditCheckGet(ctx context.Contex // Execute executes the request // @return HandlerRespBody -func (a *RevisionApiService) AnswerApiV1RevisionsEditCheckGetExecute(r ApiAnswerApiV1RevisionsEditCheckGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *RevisionAPIService) AnswerApiV1RevisionsEditCheckGetExecute(r ApiAnswerApiV1RevisionsEditCheckGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -186,7 +186,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsEditCheckGetExecute(r ApiAnswer localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionApiService.AnswerApiV1RevisionsEditCheckGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionAPIService.AnswerApiV1RevisionsEditCheckGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -271,7 +271,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsEditCheckGetExecute(r ApiAnswer type ApiAnswerApiV1RevisionsGetRequest struct { ctx context.Context - ApiService *RevisionApiService + ApiService *RevisionAPIService objectId *string } @@ -293,7 +293,7 @@ get revision list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1RevisionsGetRequest */ -func (a *RevisionApiService) AnswerApiV1RevisionsGet(ctx context.Context) ApiAnswerApiV1RevisionsGetRequest { +func (a *RevisionAPIService) AnswerApiV1RevisionsGet(ctx context.Context) ApiAnswerApiV1RevisionsGetRequest { return ApiAnswerApiV1RevisionsGetRequest{ ApiService: a, ctx: ctx, @@ -302,7 +302,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsGet(ctx context.Context) ApiAns // Execute executes the request // @return AnswerApiV1RevisionsGet200Response -func (a *RevisionApiService) AnswerApiV1RevisionsGetExecute(r ApiAnswerApiV1RevisionsGetRequest) (*AnswerApiV1RevisionsGet200Response, *http.Response, error) { +func (a *RevisionAPIService) AnswerApiV1RevisionsGetExecute(r ApiAnswerApiV1RevisionsGetRequest) (*AnswerApiV1RevisionsGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -310,7 +310,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsGetExecute(r ApiAnswerApiV1Revi localVarReturnValue *AnswerApiV1RevisionsGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionApiService.AnswerApiV1RevisionsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionAPIService.AnswerApiV1RevisionsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -381,7 +381,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsGetExecute(r ApiAnswerApiV1Revi type ApiAnswerApiV1RevisionsUnreviewedGetRequest struct { ctx context.Context - ApiService *RevisionApiService + ApiService *RevisionAPIService page *string } @@ -403,7 +403,7 @@ get unreviewed revision list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1RevisionsUnreviewedGetRequest */ -func (a *RevisionApiService) AnswerApiV1RevisionsUnreviewedGet(ctx context.Context) ApiAnswerApiV1RevisionsUnreviewedGetRequest { +func (a *RevisionAPIService) AnswerApiV1RevisionsUnreviewedGet(ctx context.Context) ApiAnswerApiV1RevisionsUnreviewedGetRequest { return ApiAnswerApiV1RevisionsUnreviewedGetRequest{ ApiService: a, ctx: ctx, @@ -412,7 +412,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsUnreviewedGet(ctx context.Conte // Execute executes the request // @return AnswerApiV1RevisionsUnreviewedGet200Response -func (a *RevisionApiService) AnswerApiV1RevisionsUnreviewedGetExecute(r ApiAnswerApiV1RevisionsUnreviewedGetRequest) (*AnswerApiV1RevisionsUnreviewedGet200Response, *http.Response, error) { +func (a *RevisionAPIService) AnswerApiV1RevisionsUnreviewedGetExecute(r ApiAnswerApiV1RevisionsUnreviewedGetRequest) (*AnswerApiV1RevisionsUnreviewedGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -420,7 +420,7 @@ func (a *RevisionApiService) AnswerApiV1RevisionsUnreviewedGetExecute(r ApiAnswe localVarReturnValue *AnswerApiV1RevisionsUnreviewedGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionApiService.AnswerApiV1RevisionsUnreviewedGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionAPIService.AnswerApiV1RevisionsUnreviewedGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_search.go b/api_search.go index fdcf7cb..3b860c7 100644 --- a/api_search.go +++ b/api_search.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,111 @@ import ( ) -// SearchApiService SearchApi service -type SearchApiService service +// SearchAPIService SearchAPI service +type SearchAPIService service + +type ApiAnswerApiV1SearchDescGetRequest struct { + ctx context.Context + ApiService *SearchAPIService +} + +func (r ApiAnswerApiV1SearchDescGetRequest) Execute() (*AnswerApiV1SearchGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1SearchDescGetExecute(r) +} + +/* +AnswerApiV1SearchDescGet get search description + +get search description + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1SearchDescGetRequest +*/ +func (a *SearchAPIService) AnswerApiV1SearchDescGet(ctx context.Context) ApiAnswerApiV1SearchDescGetRequest { + return ApiAnswerApiV1SearchDescGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1SearchGet200Response +func (a *SearchAPIService) AnswerApiV1SearchDescGetExecute(r ApiAnswerApiV1SearchDescGetRequest) (*AnswerApiV1SearchGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1SearchGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SearchAPIService.AnswerApiV1SearchDescGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/search/desc" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} type ApiAnswerApiV1SearchGetRequest struct { ctx context.Context - ApiService *SearchApiService + ApiService *SearchAPIService q *string order *string } @@ -51,7 +150,7 @@ search object @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1SearchGetRequest */ -func (a *SearchApiService) AnswerApiV1SearchGet(ctx context.Context) ApiAnswerApiV1SearchGetRequest { +func (a *SearchAPIService) AnswerApiV1SearchGet(ctx context.Context) ApiAnswerApiV1SearchGetRequest { return ApiAnswerApiV1SearchGetRequest{ ApiService: a, ctx: ctx, @@ -60,7 +159,7 @@ func (a *SearchApiService) AnswerApiV1SearchGet(ctx context.Context) ApiAnswerAp // Execute executes the request // @return AnswerApiV1SearchGet200Response -func (a *SearchApiService) AnswerApiV1SearchGetExecute(r ApiAnswerApiV1SearchGetRequest) (*AnswerApiV1SearchGet200Response, *http.Response, error) { +func (a *SearchAPIService) AnswerApiV1SearchGetExecute(r ApiAnswerApiV1SearchGetRequest) (*AnswerApiV1SearchGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -68,7 +167,7 @@ func (a *SearchApiService) AnswerApiV1SearchGetExecute(r ApiAnswerApiV1SearchGet localVarReturnValue *AnswerApiV1SearchGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SearchApiService.AnswerApiV1SearchGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SearchAPIService.AnswerApiV1SearchGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_site.go b/api_site.go index a4b7176..b904c9e 100644 --- a/api_site.go +++ b/api_site.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// SiteApiService SiteApi service -type SiteApiService service +// SiteAPIService SiteAPI service +type SiteAPIService service type ApiAnswerApiV1SiteinfoGetRequest struct { ctx context.Context - ApiService *SiteApiService + ApiService *SiteAPIService } func (r ApiAnswerApiV1SiteinfoGetRequest) Execute() (*AnswerApiV1SiteinfoGet200Response, *http.Response, error) { @@ -37,7 +37,7 @@ get site info @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1SiteinfoGetRequest */ -func (a *SiteApiService) AnswerApiV1SiteinfoGet(ctx context.Context) ApiAnswerApiV1SiteinfoGetRequest { +func (a *SiteAPIService) AnswerApiV1SiteinfoGet(ctx context.Context) ApiAnswerApiV1SiteinfoGetRequest { return ApiAnswerApiV1SiteinfoGetRequest{ ApiService: a, ctx: ctx, @@ -46,7 +46,7 @@ func (a *SiteApiService) AnswerApiV1SiteinfoGet(ctx context.Context) ApiAnswerAp // Execute executes the request // @return AnswerApiV1SiteinfoGet200Response -func (a *SiteApiService) AnswerApiV1SiteinfoGetExecute(r ApiAnswerApiV1SiteinfoGetRequest) (*AnswerApiV1SiteinfoGet200Response, *http.Response, error) { +func (a *SiteAPIService) AnswerApiV1SiteinfoGetExecute(r ApiAnswerApiV1SiteinfoGetRequest) (*AnswerApiV1SiteinfoGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -54,7 +54,7 @@ func (a *SiteApiService) AnswerApiV1SiteinfoGetExecute(r ApiAnswerApiV1SiteinfoG localVarReturnValue *AnswerApiV1SiteinfoGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteApiService.AnswerApiV1SiteinfoGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteAPIService.AnswerApiV1SiteinfoGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -121,7 +121,7 @@ func (a *SiteApiService) AnswerApiV1SiteinfoGetExecute(r ApiAnswerApiV1SiteinfoG type ApiAnswerApiV1SiteinfoLegalGetRequest struct { ctx context.Context - ApiService *SiteApiService + ApiService *SiteAPIService infoType *string } @@ -143,7 +143,7 @@ get site legal info @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1SiteinfoLegalGetRequest */ -func (a *SiteApiService) AnswerApiV1SiteinfoLegalGet(ctx context.Context) ApiAnswerApiV1SiteinfoLegalGetRequest { +func (a *SiteAPIService) AnswerApiV1SiteinfoLegalGet(ctx context.Context) ApiAnswerApiV1SiteinfoLegalGetRequest { return ApiAnswerApiV1SiteinfoLegalGetRequest{ ApiService: a, ctx: ctx, @@ -152,7 +152,7 @@ func (a *SiteApiService) AnswerApiV1SiteinfoLegalGet(ctx context.Context) ApiAns // Execute executes the request // @return AnswerApiV1SiteinfoLegalGet200Response -func (a *SiteApiService) AnswerApiV1SiteinfoLegalGetExecute(r ApiAnswerApiV1SiteinfoLegalGetRequest) (*AnswerApiV1SiteinfoLegalGet200Response, *http.Response, error) { +func (a *SiteAPIService) AnswerApiV1SiteinfoLegalGetExecute(r ApiAnswerApiV1SiteinfoLegalGetRequest) (*AnswerApiV1SiteinfoLegalGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -160,7 +160,7 @@ func (a *SiteApiService) AnswerApiV1SiteinfoLegalGetExecute(r ApiAnswerApiV1Site localVarReturnValue *AnswerApiV1SiteinfoLegalGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteApiService.AnswerApiV1SiteinfoLegalGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteAPIService.AnswerApiV1SiteinfoLegalGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -231,7 +231,7 @@ func (a *SiteApiService) AnswerApiV1SiteinfoLegalGetExecute(r ApiAnswerApiV1Site type ApiCustomCssGetRequest struct { ctx context.Context - ApiService *SiteApiService + ApiService *SiteAPIService } func (r ApiCustomCssGetRequest) Execute() (string, *http.Response, error) { @@ -246,7 +246,7 @@ get site robots information @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiCustomCssGetRequest */ -func (a *SiteApiService) CustomCssGet(ctx context.Context) ApiCustomCssGetRequest { +func (a *SiteAPIService) CustomCssGet(ctx context.Context) ApiCustomCssGetRequest { return ApiCustomCssGetRequest{ ApiService: a, ctx: ctx, @@ -255,7 +255,7 @@ func (a *SiteApiService) CustomCssGet(ctx context.Context) ApiCustomCssGetReques // Execute executes the request // @return string -func (a *SiteApiService) CustomCssGetExecute(r ApiCustomCssGetRequest) (string, *http.Response, error) { +func (a *SiteAPIService) CustomCssGetExecute(r ApiCustomCssGetRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -263,7 +263,7 @@ func (a *SiteApiService) CustomCssGetExecute(r ApiCustomCssGetRequest) (string, localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteApiService.CustomCssGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteAPIService.CustomCssGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -330,7 +330,7 @@ func (a *SiteApiService) CustomCssGetExecute(r ApiCustomCssGetRequest) (string, type ApiRobotsTxtGetRequest struct { ctx context.Context - ApiService *SiteApiService + ApiService *SiteAPIService } func (r ApiRobotsTxtGetRequest) Execute() (string, *http.Response, error) { @@ -345,7 +345,7 @@ get site robots information @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiRobotsTxtGetRequest */ -func (a *SiteApiService) RobotsTxtGet(ctx context.Context) ApiRobotsTxtGetRequest { +func (a *SiteAPIService) RobotsTxtGet(ctx context.Context) ApiRobotsTxtGetRequest { return ApiRobotsTxtGetRequest{ ApiService: a, ctx: ctx, @@ -354,7 +354,7 @@ func (a *SiteApiService) RobotsTxtGet(ctx context.Context) ApiRobotsTxtGetReques // Execute executes the request // @return string -func (a *SiteApiService) RobotsTxtGetExecute(r ApiRobotsTxtGetRequest) (string, *http.Response, error) { +func (a *SiteAPIService) RobotsTxtGetExecute(r ApiRobotsTxtGetRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -362,7 +362,7 @@ func (a *SiteApiService) RobotsTxtGetExecute(r ApiRobotsTxtGetRequest) (string, localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteApiService.RobotsTxtGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteAPIService.RobotsTxtGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_tag.go b/api_tag.go index 83e8512..c007a78 100644 --- a/api_tag.go +++ b/api_tag.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// TagApiService TagApi service -type TagApiService service +// TagAPIService TagAPI service +type TagAPIService service type ApiAnswerApiV1QuestionTagsGetRequest struct { ctx context.Context - ApiService *TagApiService + ApiService *TagAPIService tag *string } @@ -44,7 +44,7 @@ get tag list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1QuestionTagsGetRequest */ -func (a *TagApiService) AnswerApiV1QuestionTagsGet(ctx context.Context) ApiAnswerApiV1QuestionTagsGetRequest { +func (a *TagAPIService) AnswerApiV1QuestionTagsGet(ctx context.Context) ApiAnswerApiV1QuestionTagsGetRequest { return ApiAnswerApiV1QuestionTagsGetRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *TagApiService) AnswerApiV1QuestionTagsGet(ctx context.Context) ApiAnswe // Execute executes the request // @return AnswerApiV1QuestionTagsGet200Response -func (a *TagApiService) AnswerApiV1QuestionTagsGetExecute(r ApiAnswerApiV1QuestionTagsGetRequest) (*AnswerApiV1QuestionTagsGet200Response, *http.Response, error) { +func (a *TagAPIService) AnswerApiV1QuestionTagsGetExecute(r ApiAnswerApiV1QuestionTagsGetRequest) (*AnswerApiV1QuestionTagsGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *TagApiService) AnswerApiV1QuestionTagsGetExecute(r ApiAnswerApiV1Questi localVarReturnValue *AnswerApiV1QuestionTagsGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1QuestionTagsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1QuestionTagsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -145,7 +145,7 @@ func (a *TagApiService) AnswerApiV1QuestionTagsGetExecute(r ApiAnswerApiV1Questi type ApiAnswerApiV1TagDeleteRequest struct { ctx context.Context - ApiService *TagApiService + ApiService *TagAPIService data *SchemaRemoveTagReq } @@ -167,7 +167,7 @@ delete tag @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1TagDeleteRequest */ -func (a *TagApiService) AnswerApiV1TagDelete(ctx context.Context) ApiAnswerApiV1TagDeleteRequest { +func (a *TagAPIService) AnswerApiV1TagDelete(ctx context.Context) ApiAnswerApiV1TagDeleteRequest { return ApiAnswerApiV1TagDeleteRequest{ ApiService: a, ctx: ctx, @@ -176,7 +176,7 @@ func (a *TagApiService) AnswerApiV1TagDelete(ctx context.Context) ApiAnswerApiV1 // Execute executes the request // @return HandlerRespBody -func (a *TagApiService) AnswerApiV1TagDeleteExecute(r ApiAnswerApiV1TagDeleteRequest) (*HandlerRespBody, *http.Response, error) { +func (a *TagAPIService) AnswerApiV1TagDeleteExecute(r ApiAnswerApiV1TagDeleteRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} @@ -184,7 +184,7 @@ func (a *TagApiService) AnswerApiV1TagDeleteExecute(r ApiAnswerApiV1TagDeleteReq localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagDelete") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagDelete") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -256,7 +256,7 @@ func (a *TagApiService) AnswerApiV1TagDeleteExecute(r ApiAnswerApiV1TagDeleteReq type ApiAnswerApiV1TagGetRequest struct { ctx context.Context - ApiService *TagApiService + ApiService *TagAPIService tagId *string tagName *string } @@ -285,7 +285,7 @@ get tag one @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1TagGetRequest */ -func (a *TagApiService) AnswerApiV1TagGet(ctx context.Context) ApiAnswerApiV1TagGetRequest { +func (a *TagAPIService) AnswerApiV1TagGet(ctx context.Context) ApiAnswerApiV1TagGetRequest { return ApiAnswerApiV1TagGetRequest{ ApiService: a, ctx: ctx, @@ -294,7 +294,7 @@ func (a *TagApiService) AnswerApiV1TagGet(ctx context.Context) ApiAnswerApiV1Tag // Execute executes the request // @return AnswerApiV1TagGet200Response -func (a *TagApiService) AnswerApiV1TagGetExecute(r ApiAnswerApiV1TagGetRequest) (*AnswerApiV1TagGet200Response, *http.Response, error) { +func (a *TagAPIService) AnswerApiV1TagGetExecute(r ApiAnswerApiV1TagGetRequest) (*AnswerApiV1TagGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -302,7 +302,7 @@ func (a *TagApiService) AnswerApiV1TagGetExecute(r ApiAnswerApiV1TagGetRequest) localVarReturnValue *AnswerApiV1TagGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -377,7 +377,7 @@ func (a *TagApiService) AnswerApiV1TagGetExecute(r ApiAnswerApiV1TagGetRequest) type ApiAnswerApiV1TagPostRequest struct { ctx context.Context - ApiService *TagApiService + ApiService *TagAPIService data *SchemaAddTagReq } @@ -399,7 +399,7 @@ add tag @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1TagPostRequest */ -func (a *TagApiService) AnswerApiV1TagPost(ctx context.Context) ApiAnswerApiV1TagPostRequest { +func (a *TagAPIService) AnswerApiV1TagPost(ctx context.Context) ApiAnswerApiV1TagPostRequest { return ApiAnswerApiV1TagPostRequest{ ApiService: a, ctx: ctx, @@ -408,7 +408,7 @@ func (a *TagApiService) AnswerApiV1TagPost(ctx context.Context) ApiAnswerApiV1Ta // Execute executes the request // @return HandlerRespBody -func (a *TagApiService) AnswerApiV1TagPostExecute(r ApiAnswerApiV1TagPostRequest) (*HandlerRespBody, *http.Response, error) { +func (a *TagAPIService) AnswerApiV1TagPostExecute(r ApiAnswerApiV1TagPostRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -416,7 +416,7 @@ func (a *TagApiService) AnswerApiV1TagPostExecute(r ApiAnswerApiV1TagPostRequest localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -488,7 +488,7 @@ func (a *TagApiService) AnswerApiV1TagPostExecute(r ApiAnswerApiV1TagPostRequest type ApiAnswerApiV1TagPutRequest struct { ctx context.Context - ApiService *TagApiService + ApiService *TagAPIService data *SchemaUpdateTagReq } @@ -510,7 +510,7 @@ update tag @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1TagPutRequest */ -func (a *TagApiService) AnswerApiV1TagPut(ctx context.Context) ApiAnswerApiV1TagPutRequest { +func (a *TagAPIService) AnswerApiV1TagPut(ctx context.Context) ApiAnswerApiV1TagPutRequest { return ApiAnswerApiV1TagPutRequest{ ApiService: a, ctx: ctx, @@ -519,7 +519,7 @@ func (a *TagApiService) AnswerApiV1TagPut(ctx context.Context) ApiAnswerApiV1Tag // Execute executes the request // @return HandlerRespBody -func (a *TagApiService) AnswerApiV1TagPutExecute(r ApiAnswerApiV1TagPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *TagAPIService) AnswerApiV1TagPutExecute(r ApiAnswerApiV1TagPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -527,7 +527,7 @@ func (a *TagApiService) AnswerApiV1TagPutExecute(r ApiAnswerApiV1TagPutRequest) localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -599,7 +599,7 @@ func (a *TagApiService) AnswerApiV1TagPutExecute(r ApiAnswerApiV1TagPutRequest) type ApiAnswerApiV1TagSynonymPutRequest struct { ctx context.Context - ApiService *TagApiService + ApiService *TagAPIService data *SchemaUpdateTagSynonymReq } @@ -621,7 +621,7 @@ update tag @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1TagSynonymPutRequest */ -func (a *TagApiService) AnswerApiV1TagSynonymPut(ctx context.Context) ApiAnswerApiV1TagSynonymPutRequest { +func (a *TagAPIService) AnswerApiV1TagSynonymPut(ctx context.Context) ApiAnswerApiV1TagSynonymPutRequest { return ApiAnswerApiV1TagSynonymPutRequest{ ApiService: a, ctx: ctx, @@ -630,7 +630,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymPut(ctx context.Context) ApiAnswerA // Execute executes the request // @return HandlerRespBody -func (a *TagApiService) AnswerApiV1TagSynonymPutExecute(r ApiAnswerApiV1TagSynonymPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *TagAPIService) AnswerApiV1TagSynonymPutExecute(r ApiAnswerApiV1TagSynonymPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -638,7 +638,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymPutExecute(r ApiAnswerApiV1TagSynon localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagSynonymPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagSynonymPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -710,7 +710,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymPutExecute(r ApiAnswerApiV1TagSynon type ApiAnswerApiV1TagSynonymsGetRequest struct { ctx context.Context - ApiService *TagApiService + ApiService *TagAPIService tagId *int32 } @@ -732,7 +732,7 @@ get tag synonyms @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1TagSynonymsGetRequest */ -func (a *TagApiService) AnswerApiV1TagSynonymsGet(ctx context.Context) ApiAnswerApiV1TagSynonymsGetRequest { +func (a *TagAPIService) AnswerApiV1TagSynonymsGet(ctx context.Context) ApiAnswerApiV1TagSynonymsGetRequest { return ApiAnswerApiV1TagSynonymsGetRequest{ ApiService: a, ctx: ctx, @@ -741,7 +741,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymsGet(ctx context.Context) ApiAnswer // Execute executes the request // @return AnswerApiV1TagSynonymsGet200Response -func (a *TagApiService) AnswerApiV1TagSynonymsGetExecute(r ApiAnswerApiV1TagSynonymsGetRequest) (*AnswerApiV1TagSynonymsGet200Response, *http.Response, error) { +func (a *TagAPIService) AnswerApiV1TagSynonymsGetExecute(r ApiAnswerApiV1TagSynonymsGetRequest) (*AnswerApiV1TagSynonymsGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -749,7 +749,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymsGetExecute(r ApiAnswerApiV1TagSyno localVarReturnValue *AnswerApiV1TagSynonymsGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagSynonymsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagSynonymsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -820,7 +820,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymsGetExecute(r ApiAnswerApiV1TagSyno type ApiAnswerApiV1TagsFollowingGetRequest struct { ctx context.Context - ApiService *TagApiService + ApiService *TagAPIService } func (r ApiAnswerApiV1TagsFollowingGetRequest) Execute() (*AnswerApiV1TagsFollowingGet200Response, *http.Response, error) { @@ -835,7 +835,7 @@ get following tag list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1TagsFollowingGetRequest */ -func (a *TagApiService) AnswerApiV1TagsFollowingGet(ctx context.Context) ApiAnswerApiV1TagsFollowingGetRequest { +func (a *TagAPIService) AnswerApiV1TagsFollowingGet(ctx context.Context) ApiAnswerApiV1TagsFollowingGetRequest { return ApiAnswerApiV1TagsFollowingGetRequest{ ApiService: a, ctx: ctx, @@ -844,7 +844,7 @@ func (a *TagApiService) AnswerApiV1TagsFollowingGet(ctx context.Context) ApiAnsw // Execute executes the request // @return AnswerApiV1TagsFollowingGet200Response -func (a *TagApiService) AnswerApiV1TagsFollowingGetExecute(r ApiAnswerApiV1TagsFollowingGetRequest) (*AnswerApiV1TagsFollowingGet200Response, *http.Response, error) { +func (a *TagAPIService) AnswerApiV1TagsFollowingGetExecute(r ApiAnswerApiV1TagsFollowingGetRequest) (*AnswerApiV1TagsFollowingGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -852,7 +852,7 @@ func (a *TagApiService) AnswerApiV1TagsFollowingGetExecute(r ApiAnswerApiV1TagsF localVarReturnValue *AnswerApiV1TagsFollowingGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagsFollowingGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagsFollowingGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -933,7 +933,7 @@ func (a *TagApiService) AnswerApiV1TagsFollowingGetExecute(r ApiAnswerApiV1TagsF type ApiAnswerApiV1TagsGetRequest struct { ctx context.Context - ApiService *TagApiService + ApiService *TagAPIService tags *[]string } @@ -955,7 +955,7 @@ get tags list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1TagsGetRequest */ -func (a *TagApiService) AnswerApiV1TagsGet(ctx context.Context) ApiAnswerApiV1TagsGetRequest { +func (a *TagAPIService) AnswerApiV1TagsGet(ctx context.Context) ApiAnswerApiV1TagsGetRequest { return ApiAnswerApiV1TagsGetRequest{ ApiService: a, ctx: ctx, @@ -964,7 +964,7 @@ func (a *TagApiService) AnswerApiV1TagsGet(ctx context.Context) ApiAnswerApiV1Ta // Execute executes the request // @return HandlerRespBody -func (a *TagApiService) AnswerApiV1TagsGetExecute(r ApiAnswerApiV1TagsGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *TagAPIService) AnswerApiV1TagsGetExecute(r ApiAnswerApiV1TagsGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -972,7 +972,7 @@ func (a *TagApiService) AnswerApiV1TagsGetExecute(r ApiAnswerApiV1TagsGetRequest localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagsGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagsGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1042,7 +1042,7 @@ func (a *TagApiService) AnswerApiV1TagsGetExecute(r ApiAnswerApiV1TagsGetRequest type ApiAnswerApiV1TagsPageGetRequest struct { ctx context.Context - ApiService *TagApiService + ApiService *TagAPIService page *int32 pageSize *int32 slugName *string @@ -1085,7 +1085,7 @@ get tag page @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1TagsPageGetRequest */ -func (a *TagApiService) AnswerApiV1TagsPageGet(ctx context.Context) ApiAnswerApiV1TagsPageGetRequest { +func (a *TagAPIService) AnswerApiV1TagsPageGet(ctx context.Context) ApiAnswerApiV1TagsPageGetRequest { return ApiAnswerApiV1TagsPageGetRequest{ ApiService: a, ctx: ctx, @@ -1094,7 +1094,7 @@ func (a *TagApiService) AnswerApiV1TagsPageGet(ctx context.Context) ApiAnswerApi // Execute executes the request // @return AnswerApiV1TagsPageGet200Response -func (a *TagApiService) AnswerApiV1TagsPageGetExecute(r ApiAnswerApiV1TagsPageGetRequest) (*AnswerApiV1TagsPageGet200Response, *http.Response, error) { +func (a *TagAPIService) AnswerApiV1TagsPageGetExecute(r ApiAnswerApiV1TagsPageGetRequest) (*AnswerApiV1TagsPageGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1102,7 +1102,7 @@ func (a *TagApiService) AnswerApiV1TagsPageGetExecute(r ApiAnswerApiV1TagsPageGe localVarReturnValue *AnswerApiV1TagsPageGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagsPageGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagsPageGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_upload.go b/api_upload.go index d9725cd..7ff57c4 100644 --- a/api_upload.go +++ b/api_upload.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -18,12 +18,12 @@ import ( ) -// UploadApiService UploadApi service -type UploadApiService service +// UploadAPIService UploadAPI service +type UploadAPIService service type ApiAnswerApiV1FilePostRequest struct { ctx context.Context - ApiService *UploadApiService + ApiService *UploadAPIService source *string file *os.File } @@ -52,7 +52,7 @@ upload file @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1FilePostRequest */ -func (a *UploadApiService) AnswerApiV1FilePost(ctx context.Context) ApiAnswerApiV1FilePostRequest { +func (a *UploadAPIService) AnswerApiV1FilePost(ctx context.Context) ApiAnswerApiV1FilePostRequest { return ApiAnswerApiV1FilePostRequest{ ApiService: a, ctx: ctx, @@ -61,7 +61,7 @@ func (a *UploadApiService) AnswerApiV1FilePost(ctx context.Context) ApiAnswerApi // Execute executes the request // @return AnswerApiV1FilePost200Response -func (a *UploadApiService) AnswerApiV1FilePostExecute(r ApiAnswerApiV1FilePostRequest) (*AnswerApiV1FilePost200Response, *http.Response, error) { +func (a *UploadAPIService) AnswerApiV1FilePostExecute(r ApiAnswerApiV1FilePostRequest) (*AnswerApiV1FilePost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -69,7 +69,7 @@ func (a *UploadApiService) AnswerApiV1FilePostExecute(r ApiAnswerApiV1FilePostRe localVarReturnValue *AnswerApiV1FilePost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadApiService.AnswerApiV1FilePost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadAPIService.AnswerApiV1FilePost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -174,7 +174,7 @@ func (a *UploadApiService) AnswerApiV1FilePostExecute(r ApiAnswerApiV1FilePostRe type ApiAnswerApiV1PostRenderPostRequest struct { ctx context.Context - ApiService *UploadApiService + ApiService *UploadAPIService data *SchemaPostRenderReq } @@ -196,7 +196,7 @@ render post content @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PostRenderPostRequest */ -func (a *UploadApiService) AnswerApiV1PostRenderPost(ctx context.Context) ApiAnswerApiV1PostRenderPostRequest { +func (a *UploadAPIService) AnswerApiV1PostRenderPost(ctx context.Context) ApiAnswerApiV1PostRenderPostRequest { return ApiAnswerApiV1PostRenderPostRequest{ ApiService: a, ctx: ctx, @@ -205,7 +205,7 @@ func (a *UploadApiService) AnswerApiV1PostRenderPost(ctx context.Context) ApiAns // Execute executes the request // @return HandlerRespBody -func (a *UploadApiService) AnswerApiV1PostRenderPostExecute(r ApiAnswerApiV1PostRenderPostRequest) (*HandlerRespBody, *http.Response, error) { +func (a *UploadAPIService) AnswerApiV1PostRenderPostExecute(r ApiAnswerApiV1PostRenderPostRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -213,7 +213,7 @@ func (a *UploadApiService) AnswerApiV1PostRenderPostExecute(r ApiAnswerApiV1Post localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadApiService.AnswerApiV1PostRenderPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadAPIService.AnswerApiV1PostRenderPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_user.go b/api_user.go index 640574c..67388ea 100644 --- a/api_user.go +++ b/api_user.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -17,12 +17,12 @@ import ( ) -// UserApiService UserApi service -type UserApiService service +// UserAPIService UserAPI service +type UserAPIService service type ApiAnswerApiV1PersonalUserInfoGetRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService username *string } @@ -44,7 +44,7 @@ GetOtherUserInfoByUsername @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PersonalUserInfoGetRequest */ -func (a *UserApiService) AnswerApiV1PersonalUserInfoGet(ctx context.Context) ApiAnswerApiV1PersonalUserInfoGetRequest { +func (a *UserAPIService) AnswerApiV1PersonalUserInfoGet(ctx context.Context) ApiAnswerApiV1PersonalUserInfoGetRequest { return ApiAnswerApiV1PersonalUserInfoGetRequest{ ApiService: a, ctx: ctx, @@ -53,7 +53,7 @@ func (a *UserApiService) AnswerApiV1PersonalUserInfoGet(ctx context.Context) Api // Execute executes the request // @return AnswerApiV1PersonalUserInfoGet200Response -func (a *UserApiService) AnswerApiV1PersonalUserInfoGetExecute(r ApiAnswerApiV1PersonalUserInfoGetRequest) (*AnswerApiV1PersonalUserInfoGet200Response, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1PersonalUserInfoGetExecute(r ApiAnswerApiV1PersonalUserInfoGetRequest) (*AnswerApiV1PersonalUserInfoGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -61,7 +61,7 @@ func (a *UserApiService) AnswerApiV1PersonalUserInfoGetExecute(r ApiAnswerApiV1P localVarReturnValue *AnswerApiV1PersonalUserInfoGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1PersonalUserInfoGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1PersonalUserInfoGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -146,7 +146,7 @@ func (a *UserApiService) AnswerApiV1PersonalUserInfoGetExecute(r ApiAnswerApiV1P type ApiAnswerApiV1UserActionRecordGetRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService action *string } @@ -168,7 +168,7 @@ ActionRecord @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserActionRecordGetRequest */ -func (a *UserApiService) AnswerApiV1UserActionRecordGet(ctx context.Context) ApiAnswerApiV1UserActionRecordGetRequest { +func (a *UserAPIService) AnswerApiV1UserActionRecordGet(ctx context.Context) ApiAnswerApiV1UserActionRecordGetRequest { return ApiAnswerApiV1UserActionRecordGetRequest{ ApiService: a, ctx: ctx, @@ -177,7 +177,7 @@ func (a *UserApiService) AnswerApiV1UserActionRecordGet(ctx context.Context) Api // Execute executes the request // @return AnswerApiV1UserActionRecordGet200Response -func (a *UserApiService) AnswerApiV1UserActionRecordGetExecute(r ApiAnswerApiV1UserActionRecordGetRequest) (*AnswerApiV1UserActionRecordGet200Response, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserActionRecordGetExecute(r ApiAnswerApiV1UserActionRecordGetRequest) (*AnswerApiV1UserActionRecordGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -185,7 +185,7 @@ func (a *UserApiService) AnswerApiV1UserActionRecordGetExecute(r ApiAnswerApiV1U localVarReturnValue *AnswerApiV1UserActionRecordGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserActionRecordGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserActionRecordGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -270,7 +270,7 @@ func (a *UserApiService) AnswerApiV1UserActionRecordGetExecute(r ApiAnswerApiV1U type ApiAnswerApiV1UserEmailChangeCodePostRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService data *SchemaUserChangeEmailSendCodeReq } @@ -292,7 +292,7 @@ send email to the user email then change their email @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserEmailChangeCodePostRequest */ -func (a *UserApiService) AnswerApiV1UserEmailChangeCodePost(ctx context.Context) ApiAnswerApiV1UserEmailChangeCodePostRequest { +func (a *UserAPIService) AnswerApiV1UserEmailChangeCodePost(ctx context.Context) ApiAnswerApiV1UserEmailChangeCodePostRequest { return ApiAnswerApiV1UserEmailChangeCodePostRequest{ ApiService: a, ctx: ctx, @@ -301,7 +301,7 @@ func (a *UserApiService) AnswerApiV1UserEmailChangeCodePost(ctx context.Context) // Execute executes the request // @return HandlerRespBody -func (a *UserApiService) AnswerApiV1UserEmailChangeCodePostExecute(r ApiAnswerApiV1UserEmailChangeCodePostRequest) (*HandlerRespBody, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserEmailChangeCodePostExecute(r ApiAnswerApiV1UserEmailChangeCodePostRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -309,7 +309,7 @@ func (a *UserApiService) AnswerApiV1UserEmailChangeCodePostExecute(r ApiAnswerAp localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserEmailChangeCodePost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserEmailChangeCodePost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -379,108 +379,9 @@ func (a *UserApiService) AnswerApiV1UserEmailChangeCodePostExecute(r ApiAnswerAp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAnswerApiV1UserEmailNotificationPutRequest struct { - ctx context.Context - ApiService *UserApiService -} - -func (r ApiAnswerApiV1UserEmailNotificationPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { - return r.ApiService.AnswerApiV1UserEmailNotificationPutExecute(r) -} - -/* -AnswerApiV1UserEmailNotificationPut unsubscribe email notification - -unsubscribe email notification - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAnswerApiV1UserEmailNotificationPutRequest -*/ -func (a *UserApiService) AnswerApiV1UserEmailNotificationPut(ctx context.Context) ApiAnswerApiV1UserEmailNotificationPutRequest { - return ApiAnswerApiV1UserEmailNotificationPutRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return HandlerRespBody -func (a *UserApiService) AnswerApiV1UserEmailNotificationPutExecute(r ApiAnswerApiV1UserEmailNotificationPutRequest) (*HandlerRespBody, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *HandlerRespBody - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserEmailNotificationPut") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/answer/api/v1/user/email/notification" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ApiAnswerApiV1UserEmailPutRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService data *SchemaUserChangeEmailVerifyReq } @@ -502,7 +403,7 @@ user change email verification @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserEmailPutRequest */ -func (a *UserApiService) AnswerApiV1UserEmailPut(ctx context.Context) ApiAnswerApiV1UserEmailPutRequest { +func (a *UserAPIService) AnswerApiV1UserEmailPut(ctx context.Context) ApiAnswerApiV1UserEmailPutRequest { return ApiAnswerApiV1UserEmailPutRequest{ ApiService: a, ctx: ctx, @@ -511,7 +412,7 @@ func (a *UserApiService) AnswerApiV1UserEmailPut(ctx context.Context) ApiAnswerA // Execute executes the request // @return HandlerRespBody -func (a *UserApiService) AnswerApiV1UserEmailPutExecute(r ApiAnswerApiV1UserEmailPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserEmailPutExecute(r ApiAnswerApiV1UserEmailPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -519,7 +420,7 @@ func (a *UserApiService) AnswerApiV1UserEmailPutExecute(r ApiAnswerApiV1UserEmai localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserEmailPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserEmailPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -605,7 +506,7 @@ func (a *UserApiService) AnswerApiV1UserEmailPutExecute(r ApiAnswerApiV1UserEmai type ApiAnswerApiV1UserEmailVerificationPostRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService code *string } @@ -627,7 +528,7 @@ UserVerifyEmail @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserEmailVerificationPostRequest */ -func (a *UserApiService) AnswerApiV1UserEmailVerificationPost(ctx context.Context) ApiAnswerApiV1UserEmailVerificationPostRequest { +func (a *UserAPIService) AnswerApiV1UserEmailVerificationPost(ctx context.Context) ApiAnswerApiV1UserEmailVerificationPostRequest { return ApiAnswerApiV1UserEmailVerificationPostRequest{ ApiService: a, ctx: ctx, @@ -636,7 +537,7 @@ func (a *UserApiService) AnswerApiV1UserEmailVerificationPost(ctx context.Contex // Execute executes the request // @return AnswerApiV1UserEmailVerificationPost200Response -func (a *UserApiService) AnswerApiV1UserEmailVerificationPostExecute(r ApiAnswerApiV1UserEmailVerificationPostRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserEmailVerificationPostExecute(r ApiAnswerApiV1UserEmailVerificationPostRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -644,7 +545,7 @@ func (a *UserApiService) AnswerApiV1UserEmailVerificationPostExecute(r ApiAnswer localVarReturnValue *AnswerApiV1UserEmailVerificationPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserEmailVerificationPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserEmailVerificationPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -715,7 +616,7 @@ func (a *UserApiService) AnswerApiV1UserEmailVerificationPostExecute(r ApiAnswer type ApiAnswerApiV1UserEmailVerificationSendPostRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService captchaId *string captchaCode *string } @@ -744,7 +645,7 @@ UserVerifyEmailSend @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserEmailVerificationSendPostRequest */ -func (a *UserApiService) AnswerApiV1UserEmailVerificationSendPost(ctx context.Context) ApiAnswerApiV1UserEmailVerificationSendPostRequest { +func (a *UserAPIService) AnswerApiV1UserEmailVerificationSendPost(ctx context.Context) ApiAnswerApiV1UserEmailVerificationSendPostRequest { return ApiAnswerApiV1UserEmailVerificationSendPostRequest{ ApiService: a, ctx: ctx, @@ -753,7 +654,7 @@ func (a *UserApiService) AnswerApiV1UserEmailVerificationSendPost(ctx context.Co // Execute executes the request // @return string -func (a *UserApiService) AnswerApiV1UserEmailVerificationSendPostExecute(r ApiAnswerApiV1UserEmailVerificationSendPostRequest) (string, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserEmailVerificationSendPostExecute(r ApiAnswerApiV1UserEmailVerificationSendPostRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -761,7 +662,7 @@ func (a *UserApiService) AnswerApiV1UserEmailVerificationSendPostExecute(r ApiAn localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserEmailVerificationSendPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserEmailVerificationSendPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -848,7 +749,7 @@ func (a *UserApiService) AnswerApiV1UserEmailVerificationSendPostExecute(r ApiAn type ApiAnswerApiV1UserInfoGetRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService } func (r ApiAnswerApiV1UserInfoGetRequest) Execute() (*AnswerApiV1UserInfoGet200Response, *http.Response, error) { @@ -863,7 +764,7 @@ get user info, if user no login response http code is 200, but user info is null @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserInfoGetRequest */ -func (a *UserApiService) AnswerApiV1UserInfoGet(ctx context.Context) ApiAnswerApiV1UserInfoGetRequest { +func (a *UserAPIService) AnswerApiV1UserInfoGet(ctx context.Context) ApiAnswerApiV1UserInfoGetRequest { return ApiAnswerApiV1UserInfoGetRequest{ ApiService: a, ctx: ctx, @@ -872,7 +773,7 @@ func (a *UserApiService) AnswerApiV1UserInfoGet(ctx context.Context) ApiAnswerAp // Execute executes the request // @return AnswerApiV1UserInfoGet200Response -func (a *UserApiService) AnswerApiV1UserInfoGetExecute(r ApiAnswerApiV1UserInfoGetRequest) (*AnswerApiV1UserInfoGet200Response, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserInfoGetExecute(r ApiAnswerApiV1UserInfoGetRequest) (*AnswerApiV1UserInfoGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -880,7 +781,7 @@ func (a *UserApiService) AnswerApiV1UserInfoGetExecute(r ApiAnswerApiV1UserInfoG localVarReturnValue *AnswerApiV1UserInfoGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserInfoGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserInfoGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -961,7 +862,7 @@ func (a *UserApiService) AnswerApiV1UserInfoGetExecute(r ApiAnswerApiV1UserInfoG type ApiAnswerApiV1UserInfoPutRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService authorization *string data *SchemaUpdateInfoRequest } @@ -990,7 +891,7 @@ UserUpdateInfo update user info @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserInfoPutRequest */ -func (a *UserApiService) AnswerApiV1UserInfoPut(ctx context.Context) ApiAnswerApiV1UserInfoPutRequest { +func (a *UserAPIService) AnswerApiV1UserInfoPut(ctx context.Context) ApiAnswerApiV1UserInfoPutRequest { return ApiAnswerApiV1UserInfoPutRequest{ ApiService: a, ctx: ctx, @@ -999,7 +900,7 @@ func (a *UserApiService) AnswerApiV1UserInfoPut(ctx context.Context) ApiAnswerAp // Execute executes the request // @return HandlerRespBody -func (a *UserApiService) AnswerApiV1UserInfoPutExecute(r ApiAnswerApiV1UserInfoPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserInfoPutExecute(r ApiAnswerApiV1UserInfoPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1007,7 +908,7 @@ func (a *UserApiService) AnswerApiV1UserInfoPutExecute(r ApiAnswerApiV1UserInfoP localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserInfoPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserInfoPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1097,7 +998,7 @@ func (a *UserApiService) AnswerApiV1UserInfoPutExecute(r ApiAnswerApiV1UserInfoP type ApiAnswerApiV1UserInfoSearchGetRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService username *string } @@ -1119,7 +1020,7 @@ SearchUserListByName @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserInfoSearchGetRequest */ -func (a *UserApiService) AnswerApiV1UserInfoSearchGet(ctx context.Context) ApiAnswerApiV1UserInfoSearchGetRequest { +func (a *UserAPIService) AnswerApiV1UserInfoSearchGet(ctx context.Context) ApiAnswerApiV1UserInfoSearchGetRequest { return ApiAnswerApiV1UserInfoSearchGetRequest{ ApiService: a, ctx: ctx, @@ -1128,7 +1029,7 @@ func (a *UserApiService) AnswerApiV1UserInfoSearchGet(ctx context.Context) ApiAn // Execute executes the request // @return AnswerApiV1PersonalUserInfoGet200Response -func (a *UserApiService) AnswerApiV1UserInfoSearchGetExecute(r ApiAnswerApiV1UserInfoSearchGetRequest) (*AnswerApiV1PersonalUserInfoGet200Response, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserInfoSearchGetExecute(r ApiAnswerApiV1UserInfoSearchGetRequest) (*AnswerApiV1PersonalUserInfoGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1136,7 +1037,7 @@ func (a *UserApiService) AnswerApiV1UserInfoSearchGetExecute(r ApiAnswerApiV1Use localVarReturnValue *AnswerApiV1PersonalUserInfoGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserInfoSearchGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserInfoSearchGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1221,7 +1122,7 @@ func (a *UserApiService) AnswerApiV1UserInfoSearchGetExecute(r ApiAnswerApiV1Use type ApiAnswerApiV1UserInterfacePutRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService authorization *string data *SchemaUpdateUserInterfaceRequest } @@ -1250,7 +1151,7 @@ UserUpdateInterface update user interface config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserInterfacePutRequest */ -func (a *UserApiService) AnswerApiV1UserInterfacePut(ctx context.Context) ApiAnswerApiV1UserInterfacePutRequest { +func (a *UserAPIService) AnswerApiV1UserInterfacePut(ctx context.Context) ApiAnswerApiV1UserInterfacePutRequest { return ApiAnswerApiV1UserInterfacePutRequest{ ApiService: a, ctx: ctx, @@ -1259,7 +1160,7 @@ func (a *UserApiService) AnswerApiV1UserInterfacePut(ctx context.Context) ApiAns // Execute executes the request // @return HandlerRespBody -func (a *UserApiService) AnswerApiV1UserInterfacePutExecute(r ApiAnswerApiV1UserInterfacePutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserInterfacePutExecute(r ApiAnswerApiV1UserInterfacePutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1267,7 +1168,7 @@ func (a *UserApiService) AnswerApiV1UserInterfacePutExecute(r ApiAnswerApiV1User localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserInterfacePut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserInterfacePut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1357,12 +1258,12 @@ func (a *UserApiService) AnswerApiV1UserInterfacePutExecute(r ApiAnswerApiV1User type ApiAnswerApiV1UserLoginEmailPostRequest struct { ctx context.Context - ApiService *UserApiService - data *SchemaUserEmailLogin + ApiService *UserAPIService + data *SchemaUserEmailLoginReq } // UserEmailLogin -func (r ApiAnswerApiV1UserLoginEmailPostRequest) Data(data SchemaUserEmailLogin) ApiAnswerApiV1UserLoginEmailPostRequest { +func (r ApiAnswerApiV1UserLoginEmailPostRequest) Data(data SchemaUserEmailLoginReq) ApiAnswerApiV1UserLoginEmailPostRequest { r.data = &data return r } @@ -1379,7 +1280,7 @@ UserEmailLogin @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserLoginEmailPostRequest */ -func (a *UserApiService) AnswerApiV1UserLoginEmailPost(ctx context.Context) ApiAnswerApiV1UserLoginEmailPostRequest { +func (a *UserAPIService) AnswerApiV1UserLoginEmailPost(ctx context.Context) ApiAnswerApiV1UserLoginEmailPostRequest { return ApiAnswerApiV1UserLoginEmailPostRequest{ ApiService: a, ctx: ctx, @@ -1388,7 +1289,7 @@ func (a *UserApiService) AnswerApiV1UserLoginEmailPost(ctx context.Context) ApiA // Execute executes the request // @return AnswerApiV1UserEmailVerificationPost200Response -func (a *UserApiService) AnswerApiV1UserLoginEmailPostExecute(r ApiAnswerApiV1UserLoginEmailPostRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserLoginEmailPostExecute(r ApiAnswerApiV1UserLoginEmailPostRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1396,7 +1297,7 @@ func (a *UserApiService) AnswerApiV1UserLoginEmailPostExecute(r ApiAnswerApiV1Us localVarReturnValue *AnswerApiV1UserEmailVerificationPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserLoginEmailPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserLoginEmailPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1468,7 +1369,7 @@ func (a *UserApiService) AnswerApiV1UserLoginEmailPostExecute(r ApiAnswerApiV1Us type ApiAnswerApiV1UserLogoutGetRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService } func (r ApiAnswerApiV1UserLogoutGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { @@ -1483,7 +1384,7 @@ user logout @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserLogoutGetRequest */ -func (a *UserApiService) AnswerApiV1UserLogoutGet(ctx context.Context) ApiAnswerApiV1UserLogoutGetRequest { +func (a *UserAPIService) AnswerApiV1UserLogoutGet(ctx context.Context) ApiAnswerApiV1UserLogoutGetRequest { return ApiAnswerApiV1UserLogoutGetRequest{ ApiService: a, ctx: ctx, @@ -1492,7 +1393,7 @@ func (a *UserApiService) AnswerApiV1UserLogoutGet(ctx context.Context) ApiAnswer // Execute executes the request // @return HandlerRespBody -func (a *UserApiService) AnswerApiV1UserLogoutGetExecute(r ApiAnswerApiV1UserLogoutGetRequest) (*HandlerRespBody, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserLogoutGetExecute(r ApiAnswerApiV1UserLogoutGetRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1500,7 +1401,7 @@ func (a *UserApiService) AnswerApiV1UserLogoutGetExecute(r ApiAnswerApiV1UserLog localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserLogoutGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserLogoutGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1565,53 +1466,166 @@ func (a *UserApiService) AnswerApiV1UserLogoutGetExecute(r ApiAnswerApiV1UserLog return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAnswerApiV1UserNoticeSetPostRequest struct { +type ApiAnswerApiV1UserNotificationConfigPostRequest struct { ctx context.Context - ApiService *UserApiService - data *SchemaUserNoticeSetRequest + ApiService *UserAPIService } -// UserNoticeSetRequest -func (r ApiAnswerApiV1UserNoticeSetPostRequest) Data(data SchemaUserNoticeSetRequest) ApiAnswerApiV1UserNoticeSetPostRequest { - r.data = &data - return r -} - -func (r ApiAnswerApiV1UserNoticeSetPostRequest) Execute() (*AnswerApiV1UserNoticeSetPost200Response, *http.Response, error) { - return r.ApiService.AnswerApiV1UserNoticeSetPostExecute(r) +func (r ApiAnswerApiV1UserNotificationConfigPostRequest) Execute() (*AnswerApiV1UserNotificationConfigPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1UserNotificationConfigPostExecute(r) } /* -AnswerApiV1UserNoticeSetPost UserNoticeSet +AnswerApiV1UserNotificationConfigPost get user's notification config -UserNoticeSet +get user's notification config @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAnswerApiV1UserNoticeSetPostRequest + @return ApiAnswerApiV1UserNotificationConfigPostRequest */ -func (a *UserApiService) AnswerApiV1UserNoticeSetPost(ctx context.Context) ApiAnswerApiV1UserNoticeSetPostRequest { - return ApiAnswerApiV1UserNoticeSetPostRequest{ +func (a *UserAPIService) AnswerApiV1UserNotificationConfigPost(ctx context.Context) ApiAnswerApiV1UserNotificationConfigPostRequest { + return ApiAnswerApiV1UserNotificationConfigPostRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -// @return AnswerApiV1UserNoticeSetPost200Response -func (a *UserApiService) AnswerApiV1UserNoticeSetPostExecute(r ApiAnswerApiV1UserNoticeSetPostRequest) (*AnswerApiV1UserNoticeSetPost200Response, *http.Response, error) { +// @return AnswerApiV1UserNotificationConfigPost200Response +func (a *UserAPIService) AnswerApiV1UserNotificationConfigPostExecute(r ApiAnswerApiV1UserNotificationConfigPostRequest) (*AnswerApiV1UserNotificationConfigPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AnswerApiV1UserNoticeSetPost200Response + localVarReturnValue *AnswerApiV1UserNotificationConfigPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserNoticeSetPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserNotificationConfigPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/answer/api/v1/user/notice/set" + localVarPath := localBasePath + "/answer/api/v1/user/notification/config" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1UserNotificationConfigPutRequest struct { + ctx context.Context + ApiService *UserAPIService + data *SchemaUpdateUserNotificationConfigReq +} + +// UpdateUserNotificationConfigReq +func (r ApiAnswerApiV1UserNotificationConfigPutRequest) Data(data SchemaUpdateUserNotificationConfigReq) ApiAnswerApiV1UserNotificationConfigPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserNotificationConfigPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1UserNotificationConfigPutExecute(r) +} + +/* +AnswerApiV1UserNotificationConfigPut update user's notification config + +update user's notification config + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserNotificationConfigPutRequest +*/ +func (a *UserAPIService) AnswerApiV1UserNotificationConfigPut(ctx context.Context) ApiAnswerApiV1UserNotificationConfigPutRequest { + return ApiAnswerApiV1UserNotificationConfigPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *UserAPIService) AnswerApiV1UserNotificationConfigPutExecute(r ApiAnswerApiV1UserNotificationConfigPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserNotificationConfigPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/notification/config" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1690,9 +1704,120 @@ func (a *UserApiService) AnswerApiV1UserNoticeSetPostExecute(r ApiAnswerApiV1Use return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAnswerApiV1UserNotificationUnsubscribePutRequest struct { + ctx context.Context + ApiService *UserAPIService + data *SchemaUserUnsubscribeNotificationReq +} + +// UserUnsubscribeNotificationReq +func (r ApiAnswerApiV1UserNotificationUnsubscribePutRequest) Data(data SchemaUserUnsubscribeNotificationReq) ApiAnswerApiV1UserNotificationUnsubscribePutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserNotificationUnsubscribePutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1UserNotificationUnsubscribePutExecute(r) +} + +/* +AnswerApiV1UserNotificationUnsubscribePut unsubscribe notification + +unsubscribe notification + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserNotificationUnsubscribePutRequest +*/ +func (a *UserAPIService) AnswerApiV1UserNotificationUnsubscribePut(ctx context.Context) ApiAnswerApiV1UserNotificationUnsubscribePutRequest { + return ApiAnswerApiV1UserNotificationUnsubscribePutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *UserAPIService) AnswerApiV1UserNotificationUnsubscribePutExecute(r ApiAnswerApiV1UserNotificationUnsubscribePutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserNotificationUnsubscribePut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/notification/unsubscribe" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.data == nil { + return localVarReturnValue, nil, reportError("data is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiAnswerApiV1UserPasswordPutRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService data *SchemaUserModifyPasswordReq } @@ -1714,7 +1839,7 @@ UserModifyPassWord @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserPasswordPutRequest */ -func (a *UserApiService) AnswerApiV1UserPasswordPut(ctx context.Context) ApiAnswerApiV1UserPasswordPutRequest { +func (a *UserAPIService) AnswerApiV1UserPasswordPut(ctx context.Context) ApiAnswerApiV1UserPasswordPutRequest { return ApiAnswerApiV1UserPasswordPutRequest{ ApiService: a, ctx: ctx, @@ -1723,7 +1848,7 @@ func (a *UserApiService) AnswerApiV1UserPasswordPut(ctx context.Context) ApiAnsw // Execute executes the request // @return HandlerRespBody -func (a *UserApiService) AnswerApiV1UserPasswordPutExecute(r ApiAnswerApiV1UserPasswordPutRequest) (*HandlerRespBody, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserPasswordPutExecute(r ApiAnswerApiV1UserPasswordPutRequest) (*HandlerRespBody, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1731,7 +1856,7 @@ func (a *UserApiService) AnswerApiV1UserPasswordPutExecute(r ApiAnswerApiV1UserP localVarReturnValue *HandlerRespBody ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserPasswordPut") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserPasswordPut") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1817,7 +1942,7 @@ func (a *UserApiService) AnswerApiV1UserPasswordPutExecute(r ApiAnswerApiV1UserP type ApiAnswerApiV1UserPasswordReplacementPostRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService data *SchemaUserRePassWordRequest } @@ -1839,7 +1964,7 @@ UseRePassWord @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserPasswordReplacementPostRequest */ -func (a *UserApiService) AnswerApiV1UserPasswordReplacementPost(ctx context.Context) ApiAnswerApiV1UserPasswordReplacementPostRequest { +func (a *UserAPIService) AnswerApiV1UserPasswordReplacementPost(ctx context.Context) ApiAnswerApiV1UserPasswordReplacementPostRequest { return ApiAnswerApiV1UserPasswordReplacementPostRequest{ ApiService: a, ctx: ctx, @@ -1848,7 +1973,7 @@ func (a *UserApiService) AnswerApiV1UserPasswordReplacementPost(ctx context.Cont // Execute executes the request // @return string -func (a *UserApiService) AnswerApiV1UserPasswordReplacementPostExecute(r ApiAnswerApiV1UserPasswordReplacementPostRequest) (string, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserPasswordReplacementPostExecute(r ApiAnswerApiV1UserPasswordReplacementPostRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1856,7 +1981,7 @@ func (a *UserApiService) AnswerApiV1UserPasswordReplacementPostExecute(r ApiAnsw localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserPasswordReplacementPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserPasswordReplacementPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1928,7 +2053,7 @@ func (a *UserApiService) AnswerApiV1UserPasswordReplacementPostExecute(r ApiAnsw type ApiAnswerApiV1UserPasswordResetPostRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService data *SchemaUserRetrievePassWordRequest } @@ -1950,7 +2075,7 @@ RetrievePassWord @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserPasswordResetPostRequest */ -func (a *UserApiService) AnswerApiV1UserPasswordResetPost(ctx context.Context) ApiAnswerApiV1UserPasswordResetPostRequest { +func (a *UserAPIService) AnswerApiV1UserPasswordResetPost(ctx context.Context) ApiAnswerApiV1UserPasswordResetPostRequest { return ApiAnswerApiV1UserPasswordResetPostRequest{ ApiService: a, ctx: ctx, @@ -1959,7 +2084,7 @@ func (a *UserApiService) AnswerApiV1UserPasswordResetPost(ctx context.Context) A // Execute executes the request // @return string -func (a *UserApiService) AnswerApiV1UserPasswordResetPostExecute(r ApiAnswerApiV1UserPasswordResetPostRequest) (string, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserPasswordResetPostExecute(r ApiAnswerApiV1UserPasswordResetPostRequest) (string, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1967,7 +2092,7 @@ func (a *UserApiService) AnswerApiV1UserPasswordResetPostExecute(r ApiAnswerApiV localVarReturnValue string ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserPasswordResetPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserPasswordResetPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2039,7 +2164,7 @@ func (a *UserApiService) AnswerApiV1UserPasswordResetPostExecute(r ApiAnswerApiV type ApiAnswerApiV1UserRankingGetRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService } func (r ApiAnswerApiV1UserRankingGetRequest) Execute() (*AnswerApiV1UserRankingGet200Response, *http.Response, error) { @@ -2054,7 +2179,7 @@ get user ranking @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserRankingGetRequest */ -func (a *UserApiService) AnswerApiV1UserRankingGet(ctx context.Context) ApiAnswerApiV1UserRankingGetRequest { +func (a *UserAPIService) AnswerApiV1UserRankingGet(ctx context.Context) ApiAnswerApiV1UserRankingGetRequest { return ApiAnswerApiV1UserRankingGetRequest{ ApiService: a, ctx: ctx, @@ -2063,7 +2188,7 @@ func (a *UserApiService) AnswerApiV1UserRankingGet(ctx context.Context) ApiAnswe // Execute executes the request // @return AnswerApiV1UserRankingGet200Response -func (a *UserApiService) AnswerApiV1UserRankingGetExecute(r ApiAnswerApiV1UserRankingGetRequest) (*AnswerApiV1UserRankingGet200Response, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserRankingGetExecute(r ApiAnswerApiV1UserRankingGetRequest) (*AnswerApiV1UserRankingGet200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2071,7 +2196,7 @@ func (a *UserApiService) AnswerApiV1UserRankingGetExecute(r ApiAnswerApiV1UserRa localVarReturnValue *AnswerApiV1UserRankingGet200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserRankingGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserRankingGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2152,7 +2277,7 @@ func (a *UserApiService) AnswerApiV1UserRankingGetExecute(r ApiAnswerApiV1UserRa type ApiAnswerApiV1UserRegisterCaptchaGetRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService } func (r ApiAnswerApiV1UserRegisterCaptchaGetRequest) Execute() (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { @@ -2167,7 +2292,7 @@ UserRegisterCaptcha @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserRegisterCaptchaGetRequest */ -func (a *UserApiService) AnswerApiV1UserRegisterCaptchaGet(ctx context.Context) ApiAnswerApiV1UserRegisterCaptchaGetRequest { +func (a *UserAPIService) AnswerApiV1UserRegisterCaptchaGet(ctx context.Context) ApiAnswerApiV1UserRegisterCaptchaGetRequest { return ApiAnswerApiV1UserRegisterCaptchaGetRequest{ ApiService: a, ctx: ctx, @@ -2176,7 +2301,7 @@ func (a *UserApiService) AnswerApiV1UserRegisterCaptchaGet(ctx context.Context) // Execute executes the request // @return AnswerApiV1UserEmailVerificationPost200Response -func (a *UserApiService) AnswerApiV1UserRegisterCaptchaGetExecute(r ApiAnswerApiV1UserRegisterCaptchaGetRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserRegisterCaptchaGetExecute(r ApiAnswerApiV1UserRegisterCaptchaGetRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2184,7 +2309,7 @@ func (a *UserApiService) AnswerApiV1UserRegisterCaptchaGetExecute(r ApiAnswerApi localVarReturnValue *AnswerApiV1UserEmailVerificationPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserRegisterCaptchaGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserRegisterCaptchaGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2251,7 +2376,7 @@ func (a *UserApiService) AnswerApiV1UserRegisterCaptchaGetExecute(r ApiAnswerApi type ApiAnswerApiV1UserRegisterEmailPostRequest struct { ctx context.Context - ApiService *UserApiService + ApiService *UserAPIService data *SchemaUserRegisterReq } @@ -2273,7 +2398,7 @@ UserRegisterByEmail @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1UserRegisterEmailPostRequest */ -func (a *UserApiService) AnswerApiV1UserRegisterEmailPost(ctx context.Context) ApiAnswerApiV1UserRegisterEmailPostRequest { +func (a *UserAPIService) AnswerApiV1UserRegisterEmailPost(ctx context.Context) ApiAnswerApiV1UserRegisterEmailPostRequest { return ApiAnswerApiV1UserRegisterEmailPostRequest{ ApiService: a, ctx: ctx, @@ -2282,7 +2407,7 @@ func (a *UserApiService) AnswerApiV1UserRegisterEmailPost(ctx context.Context) A // Execute executes the request // @return AnswerApiV1UserEmailVerificationPost200Response -func (a *UserApiService) AnswerApiV1UserRegisterEmailPostExecute(r ApiAnswerApiV1UserRegisterEmailPostRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { +func (a *UserAPIService) AnswerApiV1UserRegisterEmailPostExecute(r ApiAnswerApiV1UserRegisterEmailPostRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -2290,7 +2415,7 @@ func (a *UserApiService) AnswerApiV1UserRegisterEmailPostExecute(r ApiAnswerApiV localVarReturnValue *AnswerApiV1UserEmailVerificationPost200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserRegisterEmailPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.AnswerApiV1UserRegisterEmailPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/client.go b/client.go index a6e74b7..6a86dcd 100644 --- a/client.go +++ b/client.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "bytes" @@ -47,49 +47,49 @@ type APIClient struct { // API Services - ActivityApi *ActivityApiService + ActivityAPI *ActivityAPIService - AdminApi *AdminApiService + AdminAPI *AdminAPIService - AdminPluginApi *AdminPluginApiService + AdminPluginAPI *AdminPluginAPIService - ApiAnswerApi *ApiAnswerApiService + ApiAnswerAPI *ApiAnswerAPIService - CollectionApi *CollectionApiService + CollectionAPI *CollectionAPIService - CommentApi *CommentApiService + CommentAPI *CommentAPIService - InstallationApi *InstallationApiService + InstallationAPI *InstallationAPIService - LangApi *LangApiService + LangAPI *LangAPIService - NotificationApi *NotificationApiService + NotificationAPI *NotificationAPIService - PermissionApi *PermissionApiService + PermissionAPI *PermissionAPIService - PersonalApi *PersonalApiService + PersonalAPI *PersonalAPIService - PluginConnectorApi *PluginConnectorApiService + PluginConnectorAPI *PluginConnectorAPIService - QuestionApi *QuestionApiService + QuestionAPI *QuestionAPIService - RankApi *RankApiService + RankAPI *RankAPIService - ReasonApi *ReasonApiService + ReasonAPI *ReasonAPIService - ReportApi *ReportApiService + ReportAPI *ReportAPIService - RevisionApi *RevisionApiService + RevisionAPI *RevisionAPIService - SearchApi *SearchApiService + SearchAPI *SearchAPIService - SiteApi *SiteApiService + SiteAPI *SiteAPIService - TagApi *TagApiService + TagAPI *TagAPIService - UploadApi *UploadApiService + UploadAPI *UploadAPIService - UserApi *UserApiService + UserAPI *UserAPIService } type service struct { @@ -108,28 +108,28 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services - c.ActivityApi = (*ActivityApiService)(&c.common) - c.AdminApi = (*AdminApiService)(&c.common) - c.AdminPluginApi = (*AdminPluginApiService)(&c.common) - c.ApiAnswerApi = (*ApiAnswerApiService)(&c.common) - c.CollectionApi = (*CollectionApiService)(&c.common) - c.CommentApi = (*CommentApiService)(&c.common) - c.InstallationApi = (*InstallationApiService)(&c.common) - c.LangApi = (*LangApiService)(&c.common) - c.NotificationApi = (*NotificationApiService)(&c.common) - c.PermissionApi = (*PermissionApiService)(&c.common) - c.PersonalApi = (*PersonalApiService)(&c.common) - c.PluginConnectorApi = (*PluginConnectorApiService)(&c.common) - c.QuestionApi = (*QuestionApiService)(&c.common) - c.RankApi = (*RankApiService)(&c.common) - c.ReasonApi = (*ReasonApiService)(&c.common) - c.ReportApi = (*ReportApiService)(&c.common) - c.RevisionApi = (*RevisionApiService)(&c.common) - c.SearchApi = (*SearchApiService)(&c.common) - c.SiteApi = (*SiteApiService)(&c.common) - c.TagApi = (*TagApiService)(&c.common) - c.UploadApi = (*UploadApiService)(&c.common) - c.UserApi = (*UserApiService)(&c.common) + c.ActivityAPI = (*ActivityAPIService)(&c.common) + c.AdminAPI = (*AdminAPIService)(&c.common) + c.AdminPluginAPI = (*AdminPluginAPIService)(&c.common) + c.ApiAnswerAPI = (*ApiAnswerAPIService)(&c.common) + c.CollectionAPI = (*CollectionAPIService)(&c.common) + c.CommentAPI = (*CommentAPIService)(&c.common) + c.InstallationAPI = (*InstallationAPIService)(&c.common) + c.LangAPI = (*LangAPIService)(&c.common) + c.NotificationAPI = (*NotificationAPIService)(&c.common) + c.PermissionAPI = (*PermissionAPIService)(&c.common) + c.PersonalAPI = (*PersonalAPIService)(&c.common) + c.PluginConnectorAPI = (*PluginConnectorAPIService)(&c.common) + c.QuestionAPI = (*QuestionAPIService)(&c.common) + c.RankAPI = (*RankAPIService)(&c.common) + c.ReasonAPI = (*ReasonAPIService)(&c.common) + c.ReportAPI = (*ReportAPIService)(&c.common) + c.RevisionAPI = (*RevisionAPIService)(&c.common) + c.SearchAPI = (*SearchAPIService)(&c.common) + c.SiteAPI = (*SiteAPIService)(&c.common) + c.TagAPI = (*TagAPIService)(&c.common) + c.UploadAPI = (*UploadAPIService)(&c.common) + c.UserAPI = (*UserAPIService)(&c.common) return c } @@ -497,6 +497,7 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return } _, err = f.Seek(0, io.SeekStart) + err = os.Remove(f.Name()) return } if f, ok := v.(**os.File); ok { @@ -509,6 +510,7 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return } _, err = (*f).Seek(0, io.SeekStart) + err = os.Remove((*f).Name()) return } if xmlCheck.MatchString(contentType) { @@ -585,7 +587,11 @@ func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err e } else if jsonCheck.MatchString(contentType) { err = json.NewEncoder(bodyBuf).Encode(body) } else if xmlCheck.MatchString(contentType) { - err = xml.NewEncoder(bodyBuf).Encode(body) + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } } if err != nil { diff --git a/configuration.go b/configuration.go index 5be768f..769d17e 100644 --- a/configuration.go +++ b/configuration.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "context" diff --git a/docs/ActivityApi.md b/docs/ActivityAPI.md similarity index 83% rename from docs/ActivityApi.md rename to docs/ActivityAPI.md index d798222..d3d04a9 100644 --- a/docs/ActivityApi.md +++ b/docs/ActivityAPI.md @@ -1,14 +1,14 @@ -# \ActivityApi +# \ActivityAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1FollowPost**](ActivityApi.md#AnswerApiV1FollowPost) | **Post** /answer/api/v1/follow | follow object or cancel follow operation -[**AnswerApiV1FollowTagsPut**](ActivityApi.md#AnswerApiV1FollowTagsPut) | **Put** /answer/api/v1/follow/tags | update user follow tags -[**AnswerApiV1PersonalVotePageGet**](ActivityApi.md#AnswerApiV1PersonalVotePageGet) | **Get** /answer/api/v1/personal/vote/page | get user personal votes -[**AnswerApiV1VoteDownPost**](ActivityApi.md#AnswerApiV1VoteDownPost) | **Post** /answer/api/v1/vote/down | vote down -[**AnswerApiV1VoteUpPost**](ActivityApi.md#AnswerApiV1VoteUpPost) | **Post** /answer/api/v1/vote/up | vote up +[**AnswerApiV1FollowPost**](ActivityAPI.md#AnswerApiV1FollowPost) | **Post** /answer/api/v1/follow | follow object or cancel follow operation +[**AnswerApiV1FollowTagsPut**](ActivityAPI.md#AnswerApiV1FollowTagsPut) | **Put** /answer/api/v1/follow/tags | update user follow tags +[**AnswerApiV1PersonalVotePageGet**](ActivityAPI.md#AnswerApiV1PersonalVotePageGet) | **Get** /answer/api/v1/personal/vote/page | get user personal votes +[**AnswerApiV1VoteDownPost**](ActivityAPI.md#AnswerApiV1VoteDownPost) | **Post** /answer/api/v1/vote/down | vote down +[**AnswerApiV1VoteUpPost**](ActivityAPI.md#AnswerApiV1VoteUpPost) | **Post** /answer/api/v1/vote/up | vote up @@ -29,7 +29,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -37,13 +37,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ActivityApi.AnswerApiV1FollowPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.ActivityAPI.AnswerApiV1FollowPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.AnswerApiV1FollowPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ActivityAPI.AnswerApiV1FollowPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1FollowPost`: AnswerApiV1FollowPost200Response - fmt.Fprintf(os.Stdout, "Response from `ActivityApi.AnswerApiV1FollowPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ActivityAPI.AnswerApiV1FollowPost`: %v\n", resp) } ``` @@ -95,7 +95,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -103,13 +103,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ActivityApi.AnswerApiV1FollowTagsPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.ActivityAPI.AnswerApiV1FollowTagsPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.AnswerApiV1FollowTagsPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ActivityAPI.AnswerApiV1FollowTagsPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1FollowTagsPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `ActivityApi.AnswerApiV1FollowTagsPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ActivityAPI.AnswerApiV1FollowTagsPut`: %v\n", resp) } ``` @@ -161,7 +161,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -170,13 +170,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ActivityApi.AnswerApiV1PersonalVotePageGet(context.Background()).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.ActivityAPI.AnswerApiV1PersonalVotePageGet(context.Background()).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.AnswerApiV1PersonalVotePageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ActivityAPI.AnswerApiV1PersonalVotePageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1PersonalVotePageGet`: AnswerApiV1PersonalVotePageGet200Response - fmt.Fprintf(os.Stdout, "Response from `ActivityApi.AnswerApiV1PersonalVotePageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ActivityAPI.AnswerApiV1PersonalVotePageGet`: %v\n", resp) } ``` @@ -229,7 +229,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -237,13 +237,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ActivityApi.AnswerApiV1VoteDownPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.ActivityAPI.AnswerApiV1VoteDownPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.AnswerApiV1VoteDownPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ActivityAPI.AnswerApiV1VoteDownPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1VoteDownPost`: AnswerApiV1VoteDownPost200Response - fmt.Fprintf(os.Stdout, "Response from `ActivityApi.AnswerApiV1VoteDownPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ActivityAPI.AnswerApiV1VoteDownPost`: %v\n", resp) } ``` @@ -295,7 +295,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -303,13 +303,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ActivityApi.AnswerApiV1VoteUpPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.ActivityAPI.AnswerApiV1VoteUpPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.AnswerApiV1VoteUpPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ActivityAPI.AnswerApiV1VoteUpPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1VoteUpPost`: AnswerApiV1VoteDownPost200Response - fmt.Fprintf(os.Stdout, "Response from `ActivityApi.AnswerApiV1VoteUpPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ActivityAPI.AnswerApiV1VoteUpPost`: %v\n", resp) } ``` diff --git a/docs/AdminApi.md b/docs/AdminAPI.md similarity index 81% rename from docs/AdminApi.md rename to docs/AdminAPI.md index 2b0c321..6d72a9a 100644 --- a/docs/AdminApi.md +++ b/docs/AdminAPI.md @@ -1,49 +1,50 @@ -# \AdminApi +# \AdminAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerAdminApiAnswerPageGet**](AdminApi.md#AnswerAdminApiAnswerPageGet) | **Get** /answer/admin/api/answer/page | AdminAnswerPage admin answer page -[**AnswerAdminApiAnswerStatusPut**](AdminApi.md#AnswerAdminApiAnswerStatusPut) | **Put** /answer/admin/api/answer/status | AdminSetAnswerStatus -[**AnswerAdminApiDashboardGet**](AdminApi.md#AnswerAdminApiDashboardGet) | **Get** /answer/admin/api/dashboard | DashboardInfo -[**AnswerAdminApiQuestionPageGet**](AdminApi.md#AnswerAdminApiQuestionPageGet) | **Get** /answer/admin/api/question/page | AdminQuestionPage admin question page -[**AnswerAdminApiQuestionStatusPut**](AdminApi.md#AnswerAdminApiQuestionStatusPut) | **Put** /answer/admin/api/question/status | AdminSetQuestionStatus -[**AnswerAdminApiReportPut**](AdminApi.md#AnswerAdminApiReportPut) | **Put** /answer/admin/api/report/ | handle flag -[**AnswerAdminApiReportsPageGet**](AdminApi.md#AnswerAdminApiReportsPageGet) | **Get** /answer/admin/api/reports/page | list report page -[**AnswerAdminApiRolesGet**](AdminApi.md#AnswerAdminApiRolesGet) | **Get** /answer/admin/api/roles | get role list -[**AnswerAdminApiSettingPrivilegesGet**](AdminApi.md#AnswerAdminApiSettingPrivilegesGet) | **Get** /answer/admin/api/setting/privileges | GetPrivilegesConfig get privileges config -[**AnswerAdminApiSettingPrivilegesPut**](AdminApi.md#AnswerAdminApiSettingPrivilegesPut) | **Put** /answer/admin/api/setting/privileges | update privileges config -[**AnswerAdminApiSettingSmtpGet**](AdminApi.md#AnswerAdminApiSettingSmtpGet) | **Get** /answer/admin/api/setting/smtp | GetSMTPConfig get smtp config -[**AnswerAdminApiSettingSmtpPut**](AdminApi.md#AnswerAdminApiSettingSmtpPut) | **Put** /answer/admin/api/setting/smtp | update smtp config -[**AnswerAdminApiSiteinfoBrandingGet**](AdminApi.md#AnswerAdminApiSiteinfoBrandingGet) | **Get** /answer/admin/api/siteinfo/branding | get site interface -[**AnswerAdminApiSiteinfoBrandingPut**](AdminApi.md#AnswerAdminApiSiteinfoBrandingPut) | **Put** /answer/admin/api/siteinfo/branding | update site info branding -[**AnswerAdminApiSiteinfoCustomCssHtmlGet**](AdminApi.md#AnswerAdminApiSiteinfoCustomCssHtmlGet) | **Get** /answer/admin/api/siteinfo/custom-css-html | get site info custom html css config -[**AnswerAdminApiSiteinfoCustomCssHtmlPut**](AdminApi.md#AnswerAdminApiSiteinfoCustomCssHtmlPut) | **Put** /answer/admin/api/siteinfo/custom-css-html | update site custom css html config -[**AnswerAdminApiSiteinfoGeneralGet**](AdminApi.md#AnswerAdminApiSiteinfoGeneralGet) | **Get** /answer/admin/api/siteinfo/general | get site general information -[**AnswerAdminApiSiteinfoGeneralPut**](AdminApi.md#AnswerAdminApiSiteinfoGeneralPut) | **Put** /answer/admin/api/siteinfo/general | update site general information -[**AnswerAdminApiSiteinfoInterfaceGet**](AdminApi.md#AnswerAdminApiSiteinfoInterfaceGet) | **Get** /answer/admin/api/siteinfo/interface | get site interface -[**AnswerAdminApiSiteinfoInterfacePut**](AdminApi.md#AnswerAdminApiSiteinfoInterfacePut) | **Put** /answer/admin/api/siteinfo/interface | update site info interface -[**AnswerAdminApiSiteinfoLegalGet**](AdminApi.md#AnswerAdminApiSiteinfoLegalGet) | **Get** /answer/admin/api/siteinfo/legal | Set the legal information for the site -[**AnswerAdminApiSiteinfoLegalPut**](AdminApi.md#AnswerAdminApiSiteinfoLegalPut) | **Put** /answer/admin/api/siteinfo/legal | update site legal info -[**AnswerAdminApiSiteinfoLoginGet**](AdminApi.md#AnswerAdminApiSiteinfoLoginGet) | **Get** /answer/admin/api/siteinfo/login | get site info login config -[**AnswerAdminApiSiteinfoLoginPut**](AdminApi.md#AnswerAdminApiSiteinfoLoginPut) | **Put** /answer/admin/api/siteinfo/login | update site login -[**AnswerAdminApiSiteinfoSeoGet**](AdminApi.md#AnswerAdminApiSiteinfoSeoGet) | **Get** /answer/admin/api/siteinfo/seo | get site seo information -[**AnswerAdminApiSiteinfoSeoPut**](AdminApi.md#AnswerAdminApiSiteinfoSeoPut) | **Put** /answer/admin/api/siteinfo/seo | update site seo information -[**AnswerAdminApiSiteinfoThemeGet**](AdminApi.md#AnswerAdminApiSiteinfoThemeGet) | **Get** /answer/admin/api/siteinfo/theme | get site info theme config -[**AnswerAdminApiSiteinfoThemePut**](AdminApi.md#AnswerAdminApiSiteinfoThemePut) | **Put** /answer/admin/api/siteinfo/theme | update site custom css html config -[**AnswerAdminApiSiteinfoUsersGet**](AdminApi.md#AnswerAdminApiSiteinfoUsersGet) | **Get** /answer/admin/api/siteinfo/users | get site user config -[**AnswerAdminApiSiteinfoUsersPut**](AdminApi.md#AnswerAdminApiSiteinfoUsersPut) | **Put** /answer/admin/api/siteinfo/users | update site info config about users -[**AnswerAdminApiSiteinfoWriteGet**](AdminApi.md#AnswerAdminApiSiteinfoWriteGet) | **Get** /answer/admin/api/siteinfo/write | get site interface -[**AnswerAdminApiSiteinfoWritePut**](AdminApi.md#AnswerAdminApiSiteinfoWritePut) | **Put** /answer/admin/api/siteinfo/write | update site write info -[**AnswerAdminApiThemeOptionsGet**](AdminApi.md#AnswerAdminApiThemeOptionsGet) | **Get** /answer/admin/api/theme/options | Get theme options -[**AnswerAdminApiUserActivationGet**](AdminApi.md#AnswerAdminApiUserActivationGet) | **Get** /answer/admin/api/user/activation | get user activation -[**AnswerAdminApiUserPasswordPut**](AdminApi.md#AnswerAdminApiUserPasswordPut) | **Put** /answer/admin/api/user/password | update user password -[**AnswerAdminApiUserPost**](AdminApi.md#AnswerAdminApiUserPost) | **Post** /answer/admin/api/user | add user -[**AnswerAdminApiUserRolePut**](AdminApi.md#AnswerAdminApiUserRolePut) | **Put** /answer/admin/api/user/role | update user role -[**AnswerAdminApiUserStatusPut**](AdminApi.md#AnswerAdminApiUserStatusPut) | **Put** /answer/admin/api/user/status | update user -[**AnswerAdminApiUsersActivationPost**](AdminApi.md#AnswerAdminApiUsersActivationPost) | **Post** /answer/admin/api/users/activation | send user activation -[**AnswerAdminApiUsersPageGet**](AdminApi.md#AnswerAdminApiUsersPageGet) | **Get** /answer/admin/api/users/page | get user page +[**AnswerAdminApiAnswerPageGet**](AdminAPI.md#AnswerAdminApiAnswerPageGet) | **Get** /answer/admin/api/answer/page | AdminAnswerPage admin answer page +[**AnswerAdminApiAnswerStatusPut**](AdminAPI.md#AnswerAdminApiAnswerStatusPut) | **Put** /answer/admin/api/answer/status | AdminSetAnswerStatus +[**AnswerAdminApiDashboardGet**](AdminAPI.md#AnswerAdminApiDashboardGet) | **Get** /answer/admin/api/dashboard | DashboardInfo +[**AnswerAdminApiQuestionPageGet**](AdminAPI.md#AnswerAdminApiQuestionPageGet) | **Get** /answer/admin/api/question/page | AdminQuestionPage admin question page +[**AnswerAdminApiQuestionStatusPut**](AdminAPI.md#AnswerAdminApiQuestionStatusPut) | **Put** /answer/admin/api/question/status | AdminSetQuestionStatus +[**AnswerAdminApiReportPut**](AdminAPI.md#AnswerAdminApiReportPut) | **Put** /answer/admin/api/report/ | handle flag +[**AnswerAdminApiReportsPageGet**](AdminAPI.md#AnswerAdminApiReportsPageGet) | **Get** /answer/admin/api/reports/page | list report page +[**AnswerAdminApiRolesGet**](AdminAPI.md#AnswerAdminApiRolesGet) | **Get** /answer/admin/api/roles | get role list +[**AnswerAdminApiSettingPrivilegesGet**](AdminAPI.md#AnswerAdminApiSettingPrivilegesGet) | **Get** /answer/admin/api/setting/privileges | GetPrivilegesConfig get privileges config +[**AnswerAdminApiSettingPrivilegesPut**](AdminAPI.md#AnswerAdminApiSettingPrivilegesPut) | **Put** /answer/admin/api/setting/privileges | update privileges config +[**AnswerAdminApiSettingSmtpGet**](AdminAPI.md#AnswerAdminApiSettingSmtpGet) | **Get** /answer/admin/api/setting/smtp | GetSMTPConfig get smtp config +[**AnswerAdminApiSettingSmtpPut**](AdminAPI.md#AnswerAdminApiSettingSmtpPut) | **Put** /answer/admin/api/setting/smtp | update smtp config +[**AnswerAdminApiSiteinfoBrandingGet**](AdminAPI.md#AnswerAdminApiSiteinfoBrandingGet) | **Get** /answer/admin/api/siteinfo/branding | get site interface +[**AnswerAdminApiSiteinfoBrandingPut**](AdminAPI.md#AnswerAdminApiSiteinfoBrandingPut) | **Put** /answer/admin/api/siteinfo/branding | update site info branding +[**AnswerAdminApiSiteinfoCustomCssHtmlGet**](AdminAPI.md#AnswerAdminApiSiteinfoCustomCssHtmlGet) | **Get** /answer/admin/api/siteinfo/custom-css-html | get site info custom html css config +[**AnswerAdminApiSiteinfoCustomCssHtmlPut**](AdminAPI.md#AnswerAdminApiSiteinfoCustomCssHtmlPut) | **Put** /answer/admin/api/siteinfo/custom-css-html | update site custom css html config +[**AnswerAdminApiSiteinfoGeneralGet**](AdminAPI.md#AnswerAdminApiSiteinfoGeneralGet) | **Get** /answer/admin/api/siteinfo/general | get site general information +[**AnswerAdminApiSiteinfoGeneralPut**](AdminAPI.md#AnswerAdminApiSiteinfoGeneralPut) | **Put** /answer/admin/api/siteinfo/general | update site general information +[**AnswerAdminApiSiteinfoInterfaceGet**](AdminAPI.md#AnswerAdminApiSiteinfoInterfaceGet) | **Get** /answer/admin/api/siteinfo/interface | get site interface +[**AnswerAdminApiSiteinfoInterfacePut**](AdminAPI.md#AnswerAdminApiSiteinfoInterfacePut) | **Put** /answer/admin/api/siteinfo/interface | update site info interface +[**AnswerAdminApiSiteinfoLegalGet**](AdminAPI.md#AnswerAdminApiSiteinfoLegalGet) | **Get** /answer/admin/api/siteinfo/legal | Set the legal information for the site +[**AnswerAdminApiSiteinfoLegalPut**](AdminAPI.md#AnswerAdminApiSiteinfoLegalPut) | **Put** /answer/admin/api/siteinfo/legal | update site legal info +[**AnswerAdminApiSiteinfoLoginGet**](AdminAPI.md#AnswerAdminApiSiteinfoLoginGet) | **Get** /answer/admin/api/siteinfo/login | get site info login config +[**AnswerAdminApiSiteinfoLoginPut**](AdminAPI.md#AnswerAdminApiSiteinfoLoginPut) | **Put** /answer/admin/api/siteinfo/login | update site login +[**AnswerAdminApiSiteinfoSeoGet**](AdminAPI.md#AnswerAdminApiSiteinfoSeoGet) | **Get** /answer/admin/api/siteinfo/seo | get site seo information +[**AnswerAdminApiSiteinfoSeoPut**](AdminAPI.md#AnswerAdminApiSiteinfoSeoPut) | **Put** /answer/admin/api/siteinfo/seo | update site seo information +[**AnswerAdminApiSiteinfoThemeGet**](AdminAPI.md#AnswerAdminApiSiteinfoThemeGet) | **Get** /answer/admin/api/siteinfo/theme | get site info theme config +[**AnswerAdminApiSiteinfoThemePut**](AdminAPI.md#AnswerAdminApiSiteinfoThemePut) | **Put** /answer/admin/api/siteinfo/theme | update site custom css html config +[**AnswerAdminApiSiteinfoUsersGet**](AdminAPI.md#AnswerAdminApiSiteinfoUsersGet) | **Get** /answer/admin/api/siteinfo/users | get site user config +[**AnswerAdminApiSiteinfoUsersPut**](AdminAPI.md#AnswerAdminApiSiteinfoUsersPut) | **Put** /answer/admin/api/siteinfo/users | update site info config about users +[**AnswerAdminApiSiteinfoWriteGet**](AdminAPI.md#AnswerAdminApiSiteinfoWriteGet) | **Get** /answer/admin/api/siteinfo/write | get site interface +[**AnswerAdminApiSiteinfoWritePut**](AdminAPI.md#AnswerAdminApiSiteinfoWritePut) | **Put** /answer/admin/api/siteinfo/write | update site write info +[**AnswerAdminApiThemeOptionsGet**](AdminAPI.md#AnswerAdminApiThemeOptionsGet) | **Get** /answer/admin/api/theme/options | Get theme options +[**AnswerAdminApiUserActivationGet**](AdminAPI.md#AnswerAdminApiUserActivationGet) | **Get** /answer/admin/api/user/activation | get user activation +[**AnswerAdminApiUserPasswordPut**](AdminAPI.md#AnswerAdminApiUserPasswordPut) | **Put** /answer/admin/api/user/password | update user password +[**AnswerAdminApiUserPost**](AdminAPI.md#AnswerAdminApiUserPost) | **Post** /answer/admin/api/user | add user +[**AnswerAdminApiUserRolePut**](AdminAPI.md#AnswerAdminApiUserRolePut) | **Put** /answer/admin/api/user/role | update user role +[**AnswerAdminApiUserStatusPut**](AdminAPI.md#AnswerAdminApiUserStatusPut) | **Put** /answer/admin/api/user/status | update user +[**AnswerAdminApiUsersActivationPost**](AdminAPI.md#AnswerAdminApiUsersActivationPost) | **Post** /answer/admin/api/users/activation | send user activation +[**AnswerAdminApiUsersPageGet**](AdminAPI.md#AnswerAdminApiUsersPageGet) | **Get** /answer/admin/api/users/page | get user page +[**AnswerAdminApiUsersPost**](AdminAPI.md#AnswerAdminApiUsersPost) | **Post** /answer/admin/api/users | add users @@ -64,7 +65,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -76,13 +77,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiAnswerPageGet(context.Background()).Page(page).PageSize(pageSize).Status(status).Query(query).QuestionId(questionId).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiAnswerPageGet(context.Background()).Page(page).PageSize(pageSize).Status(status).Query(query).QuestionId(questionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiAnswerPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiAnswerPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiAnswerPageGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiAnswerPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiAnswerPageGet`: %v\n", resp) } ``` @@ -138,7 +139,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -146,13 +147,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiAnswerStatusPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiAnswerStatusPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiAnswerStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiAnswerStatusPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiAnswerStatusPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiAnswerStatusPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiAnswerStatusPut`: %v\n", resp) } ``` @@ -204,20 +205,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiDashboardGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiDashboardGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiDashboardGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiDashboardGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiDashboardGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiDashboardGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiDashboardGet`: %v\n", resp) } ``` @@ -265,7 +266,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -276,13 +277,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiQuestionPageGet(context.Background()).Page(page).PageSize(pageSize).Status(status).Query(query).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiQuestionPageGet(context.Background()).Page(page).PageSize(pageSize).Status(status).Query(query).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiQuestionPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiQuestionPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiQuestionPageGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiQuestionPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiQuestionPageGet`: %v\n", resp) } ``` @@ -337,7 +338,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -345,13 +346,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiQuestionStatusPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiQuestionStatusPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiQuestionStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiQuestionStatusPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiQuestionStatusPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiQuestionStatusPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiQuestionStatusPut`: %v\n", resp) } ``` @@ -403,7 +404,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -411,13 +412,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiReportPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiReportPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiReportPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiReportPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiReportPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiReportPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiReportPut`: %v\n", resp) } ``` @@ -469,7 +470,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -480,13 +481,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiReportsPageGet(context.Background()).Status(status).ObjectType(objectType).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiReportsPageGet(context.Background()).Status(status).ObjectType(objectType).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiReportsPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiReportsPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiReportsPageGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiReportsPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiReportsPageGet`: %v\n", resp) } ``` @@ -541,20 +542,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiRolesGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiRolesGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiRolesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiRolesGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiRolesGet`: AnswerAdminApiRolesGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiRolesGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiRolesGet`: %v\n", resp) } ``` @@ -602,20 +603,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSettingPrivilegesGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSettingPrivilegesGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSettingPrivilegesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSettingPrivilegesGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSettingPrivilegesGet`: AnswerAdminApiSettingPrivilegesGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSettingPrivilegesGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSettingPrivilegesGet`: %v\n", resp) } ``` @@ -663,7 +664,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -671,13 +672,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSettingPrivilegesPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSettingPrivilegesPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSettingPrivilegesPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSettingPrivilegesPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSettingPrivilegesPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSettingPrivilegesPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSettingPrivilegesPut`: %v\n", resp) } ``` @@ -729,20 +730,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSettingSmtpGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSettingSmtpGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSettingSmtpGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSettingSmtpGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSettingSmtpGet`: AnswerAdminApiSettingSmtpGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSettingSmtpGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSettingSmtpGet`: %v\n", resp) } ``` @@ -790,7 +791,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -798,13 +799,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSettingSmtpPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSettingSmtpPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSettingSmtpPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSettingSmtpPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSettingSmtpPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSettingSmtpPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSettingSmtpPut`: %v\n", resp) } ``` @@ -856,20 +857,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoBrandingGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoBrandingGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoBrandingGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoBrandingGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoBrandingGet`: AnswerAdminApiSiteinfoBrandingGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoBrandingGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoBrandingGet`: %v\n", resp) } ``` @@ -917,7 +918,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -925,13 +926,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoBrandingPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoBrandingPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoBrandingPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoBrandingPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoBrandingPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoBrandingPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoBrandingPut`: %v\n", resp) } ``` @@ -983,20 +984,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoCustomCssHtmlGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoCustomCssHtmlGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoCustomCssHtmlGet`: AnswerAdminApiSiteinfoCustomCssHtmlGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoCustomCssHtmlGet`: %v\n", resp) } ``` @@ -1044,7 +1045,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1052,13 +1053,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoCustomCssHtmlPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoCustomCssHtmlPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoCustomCssHtmlPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoCustomCssHtmlPut`: %v\n", resp) } ``` @@ -1110,20 +1111,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoGeneralGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoGeneralGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoGeneralGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoGeneralGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoGeneralGet`: AnswerAdminApiSiteinfoGeneralGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoGeneralGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoGeneralGet`: %v\n", resp) } ``` @@ -1171,7 +1172,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1179,13 +1180,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoGeneralPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoGeneralPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoGeneralPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoGeneralPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoGeneralPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoGeneralPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoGeneralPut`: %v\n", resp) } ``` @@ -1237,20 +1238,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoInterfaceGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoInterfaceGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoInterfaceGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoInterfaceGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoInterfaceGet`: AnswerAdminApiSiteinfoInterfaceGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoInterfaceGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoInterfaceGet`: %v\n", resp) } ``` @@ -1298,7 +1299,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1306,13 +1307,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoInterfacePut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoInterfacePut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoInterfacePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoInterfacePut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoInterfacePut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoInterfacePut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoInterfacePut`: %v\n", resp) } ``` @@ -1364,20 +1365,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLegalGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLegalGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLegalGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoLegalGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoLegalGet`: AnswerAdminApiSiteinfoLegalGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLegalGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoLegalGet`: %v\n", resp) } ``` @@ -1425,7 +1426,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1433,13 +1434,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLegalPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLegalPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLegalPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoLegalPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoLegalPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLegalPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoLegalPut`: %v\n", resp) } ``` @@ -1491,20 +1492,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLoginGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLoginGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLoginGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoLoginGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoLoginGet`: AnswerAdminApiSiteinfoLoginGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLoginGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoLoginGet`: %v\n", resp) } ``` @@ -1552,7 +1553,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1560,13 +1561,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLoginPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLoginPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLoginPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoLoginPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoLoginPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLoginPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoLoginPut`: %v\n", resp) } ``` @@ -1618,20 +1619,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoSeoGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoSeoGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoSeoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoSeoGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoSeoGet`: AnswerAdminApiSiteinfoSeoGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoSeoGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoSeoGet`: %v\n", resp) } ``` @@ -1679,7 +1680,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1687,13 +1688,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoSeoPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoSeoPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoSeoPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoSeoPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoSeoPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoSeoPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoSeoPut`: %v\n", resp) } ``` @@ -1745,20 +1746,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoThemeGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoThemeGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoThemeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoThemeGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoThemeGet`: AnswerAdminApiSiteinfoThemeGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoThemeGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoThemeGet`: %v\n", resp) } ``` @@ -1806,7 +1807,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1814,13 +1815,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoThemePut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoThemePut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoThemePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoThemePut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoThemePut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoThemePut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoThemePut`: %v\n", resp) } ``` @@ -1872,20 +1873,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoUsersGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoUsersGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoUsersGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoUsersGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoUsersGet`: AnswerAdminApiSiteinfoUsersGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoUsersGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoUsersGet`: %v\n", resp) } ``` @@ -1933,7 +1934,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1941,13 +1942,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoUsersPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoUsersPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoUsersPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoUsersPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoUsersPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoUsersPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoUsersPut`: %v\n", resp) } ``` @@ -1999,20 +2000,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoWriteGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoWriteGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoWriteGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoWriteGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoWriteGet`: AnswerAdminApiSiteinfoWriteGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoWriteGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoWriteGet`: %v\n", resp) } ``` @@ -2060,7 +2061,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -2068,13 +2069,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoWritePut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoWritePut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoWritePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiSiteinfoWritePut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiSiteinfoWritePut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoWritePut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiSiteinfoWritePut`: %v\n", resp) } ``` @@ -2126,20 +2127,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiThemeOptionsGet(context.Background()).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiThemeOptionsGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiThemeOptionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiThemeOptionsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiThemeOptionsGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiThemeOptionsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiThemeOptionsGet`: %v\n", resp) } ``` @@ -2187,7 +2188,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -2195,13 +2196,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiUserActivationGet(context.Background()).UserId(userId).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiUserActivationGet(context.Background()).UserId(userId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserActivationGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUserActivationGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiUserActivationGet`: AnswerAdminApiUserActivationGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserActivationGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUserActivationGet`: %v\n", resp) } ``` @@ -2253,7 +2254,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -2261,13 +2262,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiUserPasswordPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiUserPasswordPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserPasswordPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUserPasswordPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiUserPasswordPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserPasswordPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUserPasswordPut`: %v\n", resp) } ``` @@ -2319,7 +2320,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -2327,13 +2328,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiUserPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiUserPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUserPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiUserPost`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUserPost`: %v\n", resp) } ``` @@ -2385,7 +2386,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -2393,13 +2394,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiUserRolePut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiUserRolePut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserRolePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUserRolePut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiUserRolePut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserRolePut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUserRolePut`: %v\n", resp) } ``` @@ -2451,7 +2452,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -2459,13 +2460,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiUserStatusPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiUserStatusPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUserStatusPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiUserStatusPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserStatusPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUserStatusPut`: %v\n", resp) } ``` @@ -2517,7 +2518,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -2525,13 +2526,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiUsersActivationPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiUsersActivationPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUsersActivationPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUsersActivationPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiUsersActivationPost`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUsersActivationPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUsersActivationPost`: %v\n", resp) } ``` @@ -2583,7 +2584,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -2595,13 +2596,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminApi.AnswerAdminApiUsersPageGet(context.Background()).Page(page).PageSize(pageSize).Query(query).Staff(staff).Status(status).Execute() + resp, r, err := apiClient.AdminAPI.AnswerAdminApiUsersPageGet(context.Background()).Page(page).PageSize(pageSize).Query(query).Staff(staff).Status(status).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUsersPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUsersPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiUsersPageGet`: AnswerAdminApiUsersPageGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUsersPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUsersPageGet`: %v\n", resp) } ``` @@ -2639,3 +2640,69 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## AnswerAdminApiUsersPost + +> HandlerRespBody AnswerAdminApiUsersPost(ctx).Data(data).Execute() + +add users + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "git.ncc.cx/package/openapi-go-answer" +) + +func main() { + data := *openapiclient.NewSchemaAddUsersReq() // SchemaAddUsersReq | user + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminAPI.AnswerAdminApiUsersPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminAPI.AnswerAdminApiUsersPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiUsersPost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminAPI.AnswerAdminApiUsersPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiUsersPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaAddUsersReq**](SchemaAddUsersReq.md) | user | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/AdminPluginApi.md b/docs/AdminPluginAPI.md similarity index 85% rename from docs/AdminPluginApi.md rename to docs/AdminPluginAPI.md index 73717ba..2c0d63b 100644 --- a/docs/AdminPluginApi.md +++ b/docs/AdminPluginAPI.md @@ -1,13 +1,13 @@ -# \AdminPluginApi +# \AdminPluginAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerAdminApiPluginConfigGet**](AdminPluginApi.md#AnswerAdminApiPluginConfigGet) | **Get** /answer/admin/api/plugin/config | get plugin config -[**AnswerAdminApiPluginConfigPut**](AdminPluginApi.md#AnswerAdminApiPluginConfigPut) | **Put** /answer/admin/api/plugin/config | update plugin config -[**AnswerAdminApiPluginStatusPut**](AdminPluginApi.md#AnswerAdminApiPluginStatusPut) | **Put** /answer/admin/api/plugin/status | update plugin status -[**AnswerAdminApiPluginsGet**](AdminPluginApi.md#AnswerAdminApiPluginsGet) | **Get** /answer/admin/api/plugins | get plugin list +[**AnswerAdminApiPluginConfigGet**](AdminPluginAPI.md#AnswerAdminApiPluginConfigGet) | **Get** /answer/admin/api/plugin/config | get plugin config +[**AnswerAdminApiPluginConfigPut**](AdminPluginAPI.md#AnswerAdminApiPluginConfigPut) | **Put** /answer/admin/api/plugin/config | update plugin config +[**AnswerAdminApiPluginStatusPut**](AdminPluginAPI.md#AnswerAdminApiPluginStatusPut) | **Put** /answer/admin/api/plugin/status | update plugin status +[**AnswerAdminApiPluginsGet**](AdminPluginAPI.md#AnswerAdminApiPluginsGet) | **Get** /answer/admin/api/plugins | get plugin list @@ -28,7 +28,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -36,13 +36,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminPluginApi.AnswerAdminApiPluginConfigGet(context.Background()).PluginSlugName(pluginSlugName).Execute() + resp, r, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginConfigGet(context.Background()).PluginSlugName(pluginSlugName).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminPluginApi.AnswerAdminApiPluginConfigGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminPluginAPI.AnswerAdminApiPluginConfigGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiPluginConfigGet`: AnswerAdminApiPluginConfigGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminPluginApi.AnswerAdminApiPluginConfigGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminPluginAPI.AnswerAdminApiPluginConfigGet`: %v\n", resp) } ``` @@ -94,7 +94,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -102,13 +102,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminPluginApi.AnswerAdminApiPluginConfigPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginConfigPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminPluginApi.AnswerAdminApiPluginConfigPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminPluginAPI.AnswerAdminApiPluginConfigPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiPluginConfigPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminPluginApi.AnswerAdminApiPluginConfigPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminPluginAPI.AnswerAdminApiPluginConfigPut`: %v\n", resp) } ``` @@ -160,7 +160,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -168,13 +168,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminPluginApi.AnswerAdminApiPluginStatusPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginStatusPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminPluginApi.AnswerAdminApiPluginStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminPluginAPI.AnswerAdminApiPluginStatusPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiPluginStatusPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `AdminPluginApi.AnswerAdminApiPluginStatusPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminPluginAPI.AnswerAdminApiPluginStatusPut`: %v\n", resp) } ``` @@ -226,7 +226,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -235,13 +235,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AdminPluginApi.AnswerAdminApiPluginsGet(context.Background()).Status(status).HaveConfig(haveConfig).Execute() + resp, r, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginsGet(context.Background()).Status(status).HaveConfig(haveConfig).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AdminPluginApi.AnswerAdminApiPluginsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AdminPluginAPI.AnswerAdminApiPluginsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiPluginsGet`: AnswerAdminApiPluginsGet200Response - fmt.Fprintf(os.Stdout, "Response from `AdminPluginApi.AnswerAdminApiPluginsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `AdminPluginAPI.AnswerAdminApiPluginsGet`: %v\n", resp) } ``` diff --git a/docs/AnswerAdminApiPluginConfigGet200Response.md b/docs/AnswerAdminApiPluginConfigGet200Response.md index 4d4aac8..d911e3e 100644 --- a/docs/AnswerAdminApiPluginConfigGet200Response.md +++ b/docs/AnswerAdminApiPluginConfigGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetPluginConfigResp**](SchemaGetPluginConfigResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiPluginConfigGet200ResponseWithDefaults instantiates a new Answe This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiPluginConfigGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiPluginConfigGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiPluginConfigGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiPluginConfigGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiPluginConfigGet200Response) GetData() SchemaGetPluginConfigResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiPluginConfigGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiPluginConfigGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiPluginConfigGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiPluginConfigGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiPluginConfigGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiPluginConfigGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiPluginConfigGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiPluginConfigGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiPluginConfigGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiPluginConfigGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiPluginConfigGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiPluginConfigGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiPluginsGet200Response.md b/docs/AnswerAdminApiPluginsGet200Response.md index c527c1f..5586184 100644 --- a/docs/AnswerAdminApiPluginsGet200Response.md +++ b/docs/AnswerAdminApiPluginsGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**[]SchemaGetPluginListResp**](SchemaGetPluginListResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiPluginsGet200ResponseWithDefaults instantiates a new AnswerAdmi This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiPluginsGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiPluginsGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiPluginsGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiPluginsGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiPluginsGet200Response) GetData() []SchemaGetPluginListResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiPluginsGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiPluginsGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiPluginsGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiPluginsGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiPluginsGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiPluginsGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiPluginsGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiPluginsGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiPluginsGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiPluginsGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiPluginsGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiPluginsGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiRolesGet200Response.md b/docs/AnswerAdminApiRolesGet200Response.md index 5549730..a430bdc 100644 --- a/docs/AnswerAdminApiRolesGet200Response.md +++ b/docs/AnswerAdminApiRolesGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**[]SchemaGetRoleResp**](SchemaGetRoleResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiRolesGet200ResponseWithDefaults instantiates a new AnswerAdminA This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiRolesGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiRolesGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiRolesGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiRolesGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiRolesGet200Response) GetData() []SchemaGetRoleResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiRolesGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiRolesGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiRolesGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiRolesGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiRolesGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiRolesGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiRolesGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiRolesGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiRolesGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiRolesGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiRolesGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiRolesGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSettingPrivilegesGet200Response.md b/docs/AnswerAdminApiSettingPrivilegesGet200Response.md index 7dd307e..3a9ecf4 100644 --- a/docs/AnswerAdminApiSettingPrivilegesGet200Response.md +++ b/docs/AnswerAdminApiSettingPrivilegesGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetPrivilegesConfigResp**](SchemaGetPrivilegesConfigResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSettingPrivilegesGet200ResponseWithDefaults instantiates a new This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetData() SchemaGetPrivilegesConfigResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSettingPrivilegesGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSettingPrivilegesGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSettingSmtpGet200Response.md b/docs/AnswerAdminApiSettingSmtpGet200Response.md index 2874cb9..b652366 100644 --- a/docs/AnswerAdminApiSettingSmtpGet200Response.md +++ b/docs/AnswerAdminApiSettingSmtpGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetSMTPConfigResp**](SchemaGetSMTPConfigResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSettingSmtpGet200ResponseWithDefaults instantiates a new Answer This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSettingSmtpGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSettingSmtpGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSettingSmtpGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSettingSmtpGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSettingSmtpGet200Response) GetData() SchemaGetSMTPConfigResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSettingSmtpGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSettingSmtpGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSettingSmtpGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSettingSmtpGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSettingSmtpGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSettingSmtpGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSettingSmtpGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSettingSmtpGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSettingSmtpGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSettingSmtpGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSettingSmtpGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSettingSmtpGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSiteinfoBrandingGet200Response.md b/docs/AnswerAdminApiSiteinfoBrandingGet200Response.md index 95316be..1c916aa 100644 --- a/docs/AnswerAdminApiSiteinfoBrandingGet200Response.md +++ b/docs/AnswerAdminApiSiteinfoBrandingGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteBrandingResp**](SchemaSiteBrandingResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSiteinfoBrandingGet200ResponseWithDefaults instantiates a new A This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetData() SchemaSiteBrandingResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md b/docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md index 8f28443..7f1a751 100644 --- a/docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md +++ b/docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteCustomCssHTMLResp**](SchemaSiteCustomCssHTMLResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSiteinfoCustomCssHtmlGet200ResponseWithDefaults instantiates a This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetData() SchemaSiteCustomCssHTMLResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSiteinfoGeneralGet200Response.md b/docs/AnswerAdminApiSiteinfoGeneralGet200Response.md index ec16837..4776447 100644 --- a/docs/AnswerAdminApiSiteinfoGeneralGet200Response.md +++ b/docs/AnswerAdminApiSiteinfoGeneralGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteGeneralResp**](SchemaSiteGeneralResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSiteinfoGeneralGet200ResponseWithDefaults instantiates a new An This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetData() SchemaSiteGeneralResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSiteinfoInterfaceGet200Response.md b/docs/AnswerAdminApiSiteinfoInterfaceGet200Response.md index 2b72385..08138e7 100644 --- a/docs/AnswerAdminApiSiteinfoInterfaceGet200Response.md +++ b/docs/AnswerAdminApiSiteinfoInterfaceGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteInterfaceResp**](SchemaSiteInterfaceResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSiteinfoInterfaceGet200ResponseWithDefaults instantiates a new This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetData() SchemaSiteInterfaceResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSiteinfoLegalGet200Response.md b/docs/AnswerAdminApiSiteinfoLegalGet200Response.md index e6b4f52..2eacca4 100644 --- a/docs/AnswerAdminApiSiteinfoLegalGet200Response.md +++ b/docs/AnswerAdminApiSiteinfoLegalGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteLegalResp**](SchemaSiteLegalResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSiteinfoLegalGet200ResponseWithDefaults instantiates a new Answ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetData() SchemaSiteLegalResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSiteinfoLegalGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSiteinfoLegalGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSiteinfoLoginGet200Response.md b/docs/AnswerAdminApiSiteinfoLoginGet200Response.md index fd38014..ebf6296 100644 --- a/docs/AnswerAdminApiSiteinfoLoginGet200Response.md +++ b/docs/AnswerAdminApiSiteinfoLoginGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteLoginResp**](SchemaSiteLoginResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSiteinfoLoginGet200ResponseWithDefaults instantiates a new Answ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetData() SchemaSiteLoginResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSiteinfoLoginGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSiteinfoLoginGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSiteinfoSeoGet200Response.md b/docs/AnswerAdminApiSiteinfoSeoGet200Response.md index 320bc8b..62f90d8 100644 --- a/docs/AnswerAdminApiSiteinfoSeoGet200Response.md +++ b/docs/AnswerAdminApiSiteinfoSeoGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteSeoResp**](SchemaSiteSeoResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSiteinfoSeoGet200ResponseWithDefaults instantiates a new Answer This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetData() SchemaSiteSeoResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSiteinfoSeoGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSiteinfoSeoGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSiteinfoThemeGet200Response.md b/docs/AnswerAdminApiSiteinfoThemeGet200Response.md index 2d743db..be2322d 100644 --- a/docs/AnswerAdminApiSiteinfoThemeGet200Response.md +++ b/docs/AnswerAdminApiSiteinfoThemeGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteThemeResp**](SchemaSiteThemeResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSiteinfoThemeGet200ResponseWithDefaults instantiates a new Answ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetData() SchemaSiteThemeResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSiteinfoThemeGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSiteinfoThemeGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSiteinfoUsersGet200Response.md b/docs/AnswerAdminApiSiteinfoUsersGet200Response.md index 217ac3e..51fc9de 100644 --- a/docs/AnswerAdminApiSiteinfoUsersGet200Response.md +++ b/docs/AnswerAdminApiSiteinfoUsersGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteUsersResp**](SchemaSiteUsersResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSiteinfoUsersGet200ResponseWithDefaults instantiates a new Answ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetData() SchemaSiteUsersResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSiteinfoUsersGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSiteinfoUsersGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiSiteinfoWriteGet200Response.md b/docs/AnswerAdminApiSiteinfoWriteGet200Response.md index cae171f..ed71ec0 100644 --- a/docs/AnswerAdminApiSiteinfoWriteGet200Response.md +++ b/docs/AnswerAdminApiSiteinfoWriteGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteWriteResp**](SchemaSiteWriteResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiSiteinfoWriteGet200ResponseWithDefaults instantiates a new Answ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetData() SchemaSiteWriteResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiUserActivationGet200Response.md b/docs/AnswerAdminApiUserActivationGet200Response.md index 71a9ff8..437c89b 100644 --- a/docs/AnswerAdminApiUserActivationGet200Response.md +++ b/docs/AnswerAdminApiUserActivationGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetUserActivationResp**](SchemaGetUserActivationResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerAdminApiUserActivationGet200ResponseWithDefaults instantiates a new Ans This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiUserActivationGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiUserActivationGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiUserActivationGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiUserActivationGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerAdminApiUserActivationGet200Response) GetData() SchemaGetUserActivationResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiUserActivationGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiUserActivationGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiUserActivationGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiUserActivationGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiUserActivationGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiUserActivationGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiUserActivationGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiUserActivationGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiUserActivationGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiUserActivationGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiUserActivationGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiUserActivationGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiUsersPageGet200Response.md b/docs/AnswerAdminApiUsersPageGet200Response.md index 103d895..0a32ebb 100644 --- a/docs/AnswerAdminApiUsersPageGet200Response.md +++ b/docs/AnswerAdminApiUsersPageGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**AnswerAdminApiUsersPageGet200ResponseData**](AnswerAdminApiUsersPageGet200ResponseData.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to [**AnswerAdminApiUsersPageGet200ResponseAllOfData**](AnswerAdminApiUsersPageGet200ResponseAllOfData.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,22 +28,47 @@ NewAnswerAdminApiUsersPageGet200ResponseWithDefaults instantiates a new AnswerAd This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerAdminApiUsersPageGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerAdminApiUsersPageGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerAdminApiUsersPageGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerAdminApiUsersPageGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData -`func (o *AnswerAdminApiUsersPageGet200Response) GetData() AnswerAdminApiUsersPageGet200ResponseData` +`func (o *AnswerAdminApiUsersPageGet200Response) GetData() AnswerAdminApiUsersPageGet200ResponseAllOfData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerAdminApiUsersPageGet200Response) GetDataOk() (*AnswerAdminApiUsersPageGet200ResponseData, bool)` +`func (o *AnswerAdminApiUsersPageGet200Response) GetDataOk() (*AnswerAdminApiUsersPageGet200ResponseAllOfData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *AnswerAdminApiUsersPageGet200Response) SetData(v AnswerAdminApiUsersPageGet200ResponseData)` +`func (o *AnswerAdminApiUsersPageGet200Response) SetData(v AnswerAdminApiUsersPageGet200ResponseAllOfData)` SetData sets Data field to given value. @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerAdminApiUsersPageGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerAdminApiUsersPageGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerAdminApiUsersPageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerAdminApiUsersPageGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerAdminApiUsersPageGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerAdminApiUsersPageGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerAdminApiUsersPageGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerAdminApiUsersPageGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerAdminApiUsersPageGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerAdminApiUsersPageGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerAdminApiUsersPageGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerAdminApiUsersPageGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerAdminApiUsersPageGet200ResponseData.md b/docs/AnswerAdminApiUsersPageGet200ResponseAllOfData.md similarity index 53% rename from docs/AnswerAdminApiUsersPageGet200ResponseData.md rename to docs/AnswerAdminApiUsersPageGet200ResponseAllOfData.md index 98c770a..2c0040e 100644 --- a/docs/AnswerAdminApiUsersPageGet200ResponseData.md +++ b/docs/AnswerAdminApiUsersPageGet200ResponseAllOfData.md @@ -1,4 +1,4 @@ -# AnswerAdminApiUsersPageGet200ResponseData +# AnswerAdminApiUsersPageGet200ResponseAllOfData ## Properties @@ -10,95 +10,95 @@ Name | Type | Description | Notes ## Methods -### NewAnswerAdminApiUsersPageGet200ResponseData +### NewAnswerAdminApiUsersPageGet200ResponseAllOfData -`func NewAnswerAdminApiUsersPageGet200ResponseData() *AnswerAdminApiUsersPageGet200ResponseData` +`func NewAnswerAdminApiUsersPageGet200ResponseAllOfData() *AnswerAdminApiUsersPageGet200ResponseAllOfData` -NewAnswerAdminApiUsersPageGet200ResponseData instantiates a new AnswerAdminApiUsersPageGet200ResponseData object +NewAnswerAdminApiUsersPageGet200ResponseAllOfData instantiates a new AnswerAdminApiUsersPageGet200ResponseAllOfData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAnswerAdminApiUsersPageGet200ResponseDataWithDefaults +### NewAnswerAdminApiUsersPageGet200ResponseAllOfDataWithDefaults -`func NewAnswerAdminApiUsersPageGet200ResponseDataWithDefaults() *AnswerAdminApiUsersPageGet200ResponseData` +`func NewAnswerAdminApiUsersPageGet200ResponseAllOfDataWithDefaults() *AnswerAdminApiUsersPageGet200ResponseAllOfData` -NewAnswerAdminApiUsersPageGet200ResponseDataWithDefaults instantiates a new AnswerAdminApiUsersPageGet200ResponseData object +NewAnswerAdminApiUsersPageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerAdminApiUsersPageGet200ResponseAllOfData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCount -`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetCount() int32` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetCount() int32` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetCountOk() (*int32, bool)` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetCountOk() (*int32, bool)` GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCount -`func (o *AnswerAdminApiUsersPageGet200ResponseData) SetCount(v int32)` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) SetCount(v int32)` SetCount sets Count field to given value. ### HasCount -`func (o *AnswerAdminApiUsersPageGet200ResponseData) HasCount() bool` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetList -`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetList() map[string]interface{}` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetList() map[string]interface{}` GetList returns the List field if non-nil, zero value otherwise. ### GetListOk -`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetListOk() (*map[string]interface{}, bool)` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetListOk() (*map[string]interface{}, bool)` GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetList -`func (o *AnswerAdminApiUsersPageGet200ResponseData) SetList(v map[string]interface{})` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) SetList(v map[string]interface{})` SetList sets List field to given value. ### HasList -`func (o *AnswerAdminApiUsersPageGet200ResponseData) HasList() bool` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) HasList() bool` HasList returns a boolean if a field has been set. ### GetRecords -`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetRecords() []SchemaGetUserPageResp` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetRecords() []SchemaGetUserPageResp` GetRecords returns the Records field if non-nil, zero value otherwise. ### GetRecordsOk -`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetRecordsOk() (*[]SchemaGetUserPageResp, bool)` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetRecordsOk() (*[]SchemaGetUserPageResp, bool)` GetRecordsOk returns a tuple with the Records field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRecords -`func (o *AnswerAdminApiUsersPageGet200ResponseData) SetRecords(v []SchemaGetUserPageResp)` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) SetRecords(v []SchemaGetUserPageResp)` SetRecords sets Records field to given value. ### HasRecords -`func (o *AnswerAdminApiUsersPageGet200ResponseData) HasRecords() bool` +`func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) HasRecords() bool` HasRecords returns a boolean if a field has been set. diff --git a/docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md b/docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md deleted file mode 100644 index d99c221..0000000 --- a/docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# AnswerAdminApiUsersPageGet200ResponseDataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Records** | Pointer to [**[]SchemaGetUserPageResp**](SchemaGetUserPageResp.md) | | [optional] - -## Methods - -### NewAnswerAdminApiUsersPageGet200ResponseDataAllOf - -`func NewAnswerAdminApiUsersPageGet200ResponseDataAllOf() *AnswerAdminApiUsersPageGet200ResponseDataAllOf` - -NewAnswerAdminApiUsersPageGet200ResponseDataAllOf instantiates a new AnswerAdminApiUsersPageGet200ResponseDataAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnswerAdminApiUsersPageGet200ResponseDataAllOfWithDefaults - -`func NewAnswerAdminApiUsersPageGet200ResponseDataAllOfWithDefaults() *AnswerAdminApiUsersPageGet200ResponseDataAllOf` - -NewAnswerAdminApiUsersPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerAdminApiUsersPageGet200ResponseDataAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRecords - -`func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) GetRecords() []SchemaGetUserPageResp` - -GetRecords returns the Records field if non-nil, zero value otherwise. - -### GetRecordsOk - -`func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) GetRecordsOk() (*[]SchemaGetUserPageResp, bool)` - -GetRecordsOk returns a tuple with the Records field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRecords - -`func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) SetRecords(v []SchemaGetUserPageResp)` - -SetRecords sets Records field to given value. - -### HasRecords - -`func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) HasRecords() bool` - -HasRecords returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnswerApiV1ActivityTimelineGet200Response.md b/docs/AnswerApiV1ActivityTimelineGet200Response.md index c549303..bf9cfdb 100644 --- a/docs/AnswerApiV1ActivityTimelineGet200Response.md +++ b/docs/AnswerApiV1ActivityTimelineGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetObjectTimelineResp**](SchemaGetObjectTimelineResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1ActivityTimelineGet200ResponseWithDefaults instantiates a new Answ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1ActivityTimelineGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1ActivityTimelineGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1ActivityTimelineGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1ActivityTimelineGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1ActivityTimelineGet200Response) GetData() SchemaGetObjectTimelineResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1ActivityTimelineGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1ActivityTimelineGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1ActivityTimelineGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1ActivityTimelineGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1ActivityTimelineGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1ActivityTimelineGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1ActivityTimelineGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1ActivityTimelineGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1ActivityTimelineGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1ActivityTimelineGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1ActivityTimelineGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1ActivityTimelineGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1CollectionSwitchPost200Response.md b/docs/AnswerApiV1CollectionSwitchPost200Response.md index 0f97de5..28625bf 100644 --- a/docs/AnswerApiV1CollectionSwitchPost200Response.md +++ b/docs/AnswerApiV1CollectionSwitchPost200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaCollectionSwitchResp**](SchemaCollectionSwitchResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1CollectionSwitchPost200ResponseWithDefaults instantiates a new Ans This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1CollectionSwitchPost200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1CollectionSwitchPost200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1CollectionSwitchPost200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1CollectionSwitchPost200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1CollectionSwitchPost200Response) GetData() SchemaCollectionSwitchResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1CollectionSwitchPost200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1CollectionSwitchPost200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1CollectionSwitchPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1CollectionSwitchPost200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1CollectionSwitchPost200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1CollectionSwitchPost200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1CollectionSwitchPost200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1CollectionSwitchPost200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1CollectionSwitchPost200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1CollectionSwitchPost200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1CollectionSwitchPost200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1CollectionSwitchPost200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1CommentGet200Response.md b/docs/AnswerApiV1CommentGet200Response.md index 264257b..631a917 100644 --- a/docs/AnswerApiV1CommentGet200Response.md +++ b/docs/AnswerApiV1CommentGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**AnswerApiV1CommentGet200ResponseData**](AnswerApiV1CommentGet200ResponseData.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to [**AnswerApiV1CommentGet200ResponseAllOfData**](AnswerApiV1CommentGet200ResponseAllOfData.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,22 +28,47 @@ NewAnswerApiV1CommentGet200ResponseWithDefaults instantiates a new AnswerApiV1Co This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1CommentGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1CommentGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1CommentGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1CommentGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData -`func (o *AnswerApiV1CommentGet200Response) GetData() AnswerApiV1CommentGet200ResponseData` +`func (o *AnswerApiV1CommentGet200Response) GetData() AnswerApiV1CommentGet200ResponseAllOfData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerApiV1CommentGet200Response) GetDataOk() (*AnswerApiV1CommentGet200ResponseData, bool)` +`func (o *AnswerApiV1CommentGet200Response) GetDataOk() (*AnswerApiV1CommentGet200ResponseAllOfData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *AnswerApiV1CommentGet200Response) SetData(v AnswerApiV1CommentGet200ResponseData)` +`func (o *AnswerApiV1CommentGet200Response) SetData(v AnswerApiV1CommentGet200ResponseAllOfData)` SetData sets Data field to given value. @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1CommentGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1CommentGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1CommentGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1CommentGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1CommentGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1CommentGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1CommentGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1CommentGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1CommentGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1CommentGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1CommentGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1CommentGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1CommentGet200ResponseData.md b/docs/AnswerApiV1CommentGet200ResponseAllOfData.md similarity index 55% rename from docs/AnswerApiV1CommentGet200ResponseData.md rename to docs/AnswerApiV1CommentGet200ResponseAllOfData.md index 19e3469..50a045f 100644 --- a/docs/AnswerApiV1CommentGet200ResponseData.md +++ b/docs/AnswerApiV1CommentGet200ResponseAllOfData.md @@ -1,4 +1,4 @@ -# AnswerApiV1CommentGet200ResponseData +# AnswerApiV1CommentGet200ResponseAllOfData ## Properties @@ -9,70 +9,70 @@ Name | Type | Description | Notes ## Methods -### NewAnswerApiV1CommentGet200ResponseData +### NewAnswerApiV1CommentGet200ResponseAllOfData -`func NewAnswerApiV1CommentGet200ResponseData() *AnswerApiV1CommentGet200ResponseData` +`func NewAnswerApiV1CommentGet200ResponseAllOfData() *AnswerApiV1CommentGet200ResponseAllOfData` -NewAnswerApiV1CommentGet200ResponseData instantiates a new AnswerApiV1CommentGet200ResponseData object +NewAnswerApiV1CommentGet200ResponseAllOfData instantiates a new AnswerApiV1CommentGet200ResponseAllOfData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAnswerApiV1CommentGet200ResponseDataWithDefaults +### NewAnswerApiV1CommentGet200ResponseAllOfDataWithDefaults -`func NewAnswerApiV1CommentGet200ResponseDataWithDefaults() *AnswerApiV1CommentGet200ResponseData` +`func NewAnswerApiV1CommentGet200ResponseAllOfDataWithDefaults() *AnswerApiV1CommentGet200ResponseAllOfData` -NewAnswerApiV1CommentGet200ResponseDataWithDefaults instantiates a new AnswerApiV1CommentGet200ResponseData object +NewAnswerApiV1CommentGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1CommentGet200ResponseAllOfData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCount -`func (o *AnswerApiV1CommentGet200ResponseData) GetCount() int32` +`func (o *AnswerApiV1CommentGet200ResponseAllOfData) GetCount() int32` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *AnswerApiV1CommentGet200ResponseData) GetCountOk() (*int32, bool)` +`func (o *AnswerApiV1CommentGet200ResponseAllOfData) GetCountOk() (*int32, bool)` GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCount -`func (o *AnswerApiV1CommentGet200ResponseData) SetCount(v int32)` +`func (o *AnswerApiV1CommentGet200ResponseAllOfData) SetCount(v int32)` SetCount sets Count field to given value. ### HasCount -`func (o *AnswerApiV1CommentGet200ResponseData) HasCount() bool` +`func (o *AnswerApiV1CommentGet200ResponseAllOfData) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetList -`func (o *AnswerApiV1CommentGet200ResponseData) GetList() []SchemaGetCommentResp` +`func (o *AnswerApiV1CommentGet200ResponseAllOfData) GetList() []SchemaGetCommentResp` GetList returns the List field if non-nil, zero value otherwise. ### GetListOk -`func (o *AnswerApiV1CommentGet200ResponseData) GetListOk() (*[]SchemaGetCommentResp, bool)` +`func (o *AnswerApiV1CommentGet200ResponseAllOfData) GetListOk() (*[]SchemaGetCommentResp, bool)` GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetList -`func (o *AnswerApiV1CommentGet200ResponseData) SetList(v []SchemaGetCommentResp)` +`func (o *AnswerApiV1CommentGet200ResponseAllOfData) SetList(v []SchemaGetCommentResp)` SetList sets List field to given value. ### HasList -`func (o *AnswerApiV1CommentGet200ResponseData) HasList() bool` +`func (o *AnswerApiV1CommentGet200ResponseAllOfData) HasList() bool` HasList returns a boolean if a field has been set. diff --git a/docs/AnswerApiV1CommentGet200ResponseDataAllOf.md b/docs/AnswerApiV1CommentGet200ResponseDataAllOf.md deleted file mode 100644 index 5943e39..0000000 --- a/docs/AnswerApiV1CommentGet200ResponseDataAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# AnswerApiV1CommentGet200ResponseDataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**List** | Pointer to [**[]SchemaGetCommentResp**](SchemaGetCommentResp.md) | | [optional] - -## Methods - -### NewAnswerApiV1CommentGet200ResponseDataAllOf - -`func NewAnswerApiV1CommentGet200ResponseDataAllOf() *AnswerApiV1CommentGet200ResponseDataAllOf` - -NewAnswerApiV1CommentGet200ResponseDataAllOf instantiates a new AnswerApiV1CommentGet200ResponseDataAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnswerApiV1CommentGet200ResponseDataAllOfWithDefaults - -`func NewAnswerApiV1CommentGet200ResponseDataAllOfWithDefaults() *AnswerApiV1CommentGet200ResponseDataAllOf` - -NewAnswerApiV1CommentGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1CommentGet200ResponseDataAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetList - -`func (o *AnswerApiV1CommentGet200ResponseDataAllOf) GetList() []SchemaGetCommentResp` - -GetList returns the List field if non-nil, zero value otherwise. - -### GetListOk - -`func (o *AnswerApiV1CommentGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetCommentResp, bool)` - -GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetList - -`func (o *AnswerApiV1CommentGet200ResponseDataAllOf) SetList(v []SchemaGetCommentResp)` - -SetList sets List field to given value. - -### HasList - -`func (o *AnswerApiV1CommentGet200ResponseDataAllOf) HasList() bool` - -HasList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnswerApiV1CommentPost200Response.md b/docs/AnswerApiV1CommentPost200Response.md index d8a0ae7..61f30c2 100644 --- a/docs/AnswerApiV1CommentPost200Response.md +++ b/docs/AnswerApiV1CommentPost200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetCommentResp**](SchemaGetCommentResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1CommentPost200ResponseWithDefaults instantiates a new AnswerApiV1C This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1CommentPost200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1CommentPost200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1CommentPost200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1CommentPost200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1CommentPost200Response) GetData() SchemaGetCommentResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1CommentPost200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1CommentPost200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1CommentPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1CommentPost200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1CommentPost200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1CommentPost200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1CommentPost200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1CommentPost200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1CommentPost200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1CommentPost200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1CommentPost200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1CommentPost200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1ConnectorBindingEmailPost200Response.md b/docs/AnswerApiV1ConnectorBindingEmailPost200Response.md index 2c1f643..bf627f8 100644 --- a/docs/AnswerApiV1ConnectorBindingEmailPost200Response.md +++ b/docs/AnswerApiV1ConnectorBindingEmailPost200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaExternalLoginBindingUserSendEmailResp**](SchemaExternalLoginBindingUserSendEmailResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1ConnectorBindingEmailPost200ResponseWithDefaults instantiates a ne This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetData() SchemaExternalLoginBindingUserSendEmailResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1ConnectorInfoGet200Response.md b/docs/AnswerApiV1ConnectorInfoGet200Response.md index 0a97c8b..30aedc9 100644 --- a/docs/AnswerApiV1ConnectorInfoGet200Response.md +++ b/docs/AnswerApiV1ConnectorInfoGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**[]SchemaConnectorInfoResp**](SchemaConnectorInfoResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1ConnectorInfoGet200ResponseWithDefaults instantiates a new AnswerA This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1ConnectorInfoGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1ConnectorInfoGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1ConnectorInfoGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1ConnectorInfoGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1ConnectorInfoGet200Response) GetData() []SchemaConnectorInfoResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1ConnectorInfoGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1ConnectorInfoGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1ConnectorInfoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1ConnectorInfoGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1ConnectorInfoGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1ConnectorInfoGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1ConnectorInfoGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1ConnectorInfoGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1ConnectorInfoGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1ConnectorInfoGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1ConnectorInfoGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1ConnectorInfoGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1ConnectorUserInfoGet200Response.md b/docs/AnswerApiV1ConnectorUserInfoGet200Response.md index 938fc9d..79b5bb7 100644 --- a/docs/AnswerApiV1ConnectorUserInfoGet200Response.md +++ b/docs/AnswerApiV1ConnectorUserInfoGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**[]SchemaConnectorUserInfoResp**](SchemaConnectorUserInfoResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1ConnectorUserInfoGet200ResponseWithDefaults instantiates a new Ans This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetData() []SchemaConnectorUserInfoResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1ConnectorUserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1ConnectorUserInfoGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1FilePost200Response.md b/docs/AnswerApiV1FilePost200Response.md index 378119b..58277f5 100644 --- a/docs/AnswerApiV1FilePost200Response.md +++ b/docs/AnswerApiV1FilePost200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to **string** | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1FilePost200ResponseWithDefaults instantiates a new AnswerApiV1File This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1FilePost200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1FilePost200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1FilePost200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1FilePost200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1FilePost200Response) GetData() string` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1FilePost200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1FilePost200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1FilePost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1FilePost200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1FilePost200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1FilePost200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1FilePost200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1FilePost200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1FilePost200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1FilePost200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1FilePost200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1FilePost200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1FollowPost200Response.md b/docs/AnswerApiV1FollowPost200Response.md index e670a17..cbb3472 100644 --- a/docs/AnswerApiV1FollowPost200Response.md +++ b/docs/AnswerApiV1FollowPost200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaFollowResp**](SchemaFollowResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1FollowPost200ResponseWithDefaults instantiates a new AnswerApiV1Fo This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1FollowPost200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1FollowPost200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1FollowPost200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1FollowPost200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1FollowPost200Response) GetData() SchemaFollowResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1FollowPost200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1FollowPost200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1FollowPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1FollowPost200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1FollowPost200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1FollowPost200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1FollowPost200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1FollowPost200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1FollowPost200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1FollowPost200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1FollowPost200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1FollowPost200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1PermissionGet200Response.md b/docs/AnswerApiV1PermissionGet200Response.md index b82be52..97e8ed0 100644 --- a/docs/AnswerApiV1PermissionGet200Response.md +++ b/docs/AnswerApiV1PermissionGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to **map[string]bool** | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1PermissionGet200ResponseWithDefaults instantiates a new AnswerApiV This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1PermissionGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1PermissionGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1PermissionGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1PermissionGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1PermissionGet200Response) GetData() map[string]bool` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1PermissionGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1PermissionGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1PermissionGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1PermissionGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1PermissionGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1PermissionGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1PermissionGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1PermissionGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1PermissionGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1PermissionGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1PermissionGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1PermissionGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1PersonalCommentPageGet200Response.md b/docs/AnswerApiV1PersonalCommentPageGet200Response.md index 944fb1b..8e938bb 100644 --- a/docs/AnswerApiV1PersonalCommentPageGet200Response.md +++ b/docs/AnswerApiV1PersonalCommentPageGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**AnswerApiV1PersonalCommentPageGet200ResponseData**](AnswerApiV1PersonalCommentPageGet200ResponseData.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to [**AnswerApiV1PersonalCommentPageGet200ResponseAllOfData**](AnswerApiV1PersonalCommentPageGet200ResponseAllOfData.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,22 +28,47 @@ NewAnswerApiV1PersonalCommentPageGet200ResponseWithDefaults instantiates a new A This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData -`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetData() AnswerApiV1PersonalCommentPageGet200ResponseData` +`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetData() AnswerApiV1PersonalCommentPageGet200ResponseAllOfData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetDataOk() (*AnswerApiV1PersonalCommentPageGet200ResponseData, bool)` +`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetDataOk() (*AnswerApiV1PersonalCommentPageGet200ResponseAllOfData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *AnswerApiV1PersonalCommentPageGet200Response) SetData(v AnswerApiV1PersonalCommentPageGet200ResponseData)` +`func (o *AnswerApiV1PersonalCommentPageGet200Response) SetData(v AnswerApiV1PersonalCommentPageGet200ResponseAllOfData)` SetData sets Data field to given value. @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1PersonalCommentPageGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1PersonalCommentPageGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1PersonalCommentPageGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1PersonalCommentPageGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md b/docs/AnswerApiV1PersonalCommentPageGet200ResponseAllOfData.md similarity index 50% rename from docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md rename to docs/AnswerApiV1PersonalCommentPageGet200ResponseAllOfData.md index 02ea835..033a4da 100644 --- a/docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md +++ b/docs/AnswerApiV1PersonalCommentPageGet200ResponseAllOfData.md @@ -1,4 +1,4 @@ -# AnswerApiV1PersonalCommentPageGet200ResponseData +# AnswerApiV1PersonalCommentPageGet200ResponseAllOfData ## Properties @@ -9,70 +9,70 @@ Name | Type | Description | Notes ## Methods -### NewAnswerApiV1PersonalCommentPageGet200ResponseData +### NewAnswerApiV1PersonalCommentPageGet200ResponseAllOfData -`func NewAnswerApiV1PersonalCommentPageGet200ResponseData() *AnswerApiV1PersonalCommentPageGet200ResponseData` +`func NewAnswerApiV1PersonalCommentPageGet200ResponseAllOfData() *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData` -NewAnswerApiV1PersonalCommentPageGet200ResponseData instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseData object +NewAnswerApiV1PersonalCommentPageGet200ResponseAllOfData instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseAllOfData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAnswerApiV1PersonalCommentPageGet200ResponseDataWithDefaults +### NewAnswerApiV1PersonalCommentPageGet200ResponseAllOfDataWithDefaults -`func NewAnswerApiV1PersonalCommentPageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalCommentPageGet200ResponseData` +`func NewAnswerApiV1PersonalCommentPageGet200ResponseAllOfDataWithDefaults() *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData` -NewAnswerApiV1PersonalCommentPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseData object +NewAnswerApiV1PersonalCommentPageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseAllOfData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCount -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetCount() int32` +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) GetCount() int32` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetCountOk() (*int32, bool)` +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) GetCountOk() (*int32, bool)` GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCount -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) SetCount(v int32)` +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) SetCount(v int32)` SetCount sets Count field to given value. ### HasCount -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) HasCount() bool` +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetList -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetList() []SchemaGetCommentPersonalWithPageResp` +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) GetList() []SchemaGetCommentPersonalWithPageResp` GetList returns the List field if non-nil, zero value otherwise. ### GetListOk -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetListOk() (*[]SchemaGetCommentPersonalWithPageResp, bool)` +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) GetListOk() (*[]SchemaGetCommentPersonalWithPageResp, bool)` GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetList -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) SetList(v []SchemaGetCommentPersonalWithPageResp)` +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) SetList(v []SchemaGetCommentPersonalWithPageResp)` SetList sets List field to given value. ### HasList -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) HasList() bool` +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) HasList() bool` HasList returns a boolean if a field has been set. diff --git a/docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md b/docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md deleted file mode 100644 index 3e6af57..0000000 --- a/docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**List** | Pointer to [**[]SchemaGetCommentPersonalWithPageResp**](SchemaGetCommentPersonalWithPageResp.md) | | [optional] - -## Methods - -### NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf - -`func NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf() *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf` - -NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOfWithDefaults - -`func NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf` - -NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetList - -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) GetList() []SchemaGetCommentPersonalWithPageResp` - -GetList returns the List field if non-nil, zero value otherwise. - -### GetListOk - -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetCommentPersonalWithPageResp, bool)` - -GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetList - -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) SetList(v []SchemaGetCommentPersonalWithPageResp)` - -SetList sets List field to given value. - -### HasList - -`func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) HasList() bool` - -HasList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnswerApiV1PersonalRankPageGet200Response.md b/docs/AnswerApiV1PersonalRankPageGet200Response.md index 69d4456..628ace2 100644 --- a/docs/AnswerApiV1PersonalRankPageGet200Response.md +++ b/docs/AnswerApiV1PersonalRankPageGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**AnswerApiV1PersonalRankPageGet200ResponseData**](AnswerApiV1PersonalRankPageGet200ResponseData.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to [**AnswerApiV1PersonalRankPageGet200ResponseAllOfData**](AnswerApiV1PersonalRankPageGet200ResponseAllOfData.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,22 +28,47 @@ NewAnswerApiV1PersonalRankPageGet200ResponseWithDefaults instantiates a new Answ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1PersonalRankPageGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1PersonalRankPageGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1PersonalRankPageGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1PersonalRankPageGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData -`func (o *AnswerApiV1PersonalRankPageGet200Response) GetData() AnswerApiV1PersonalRankPageGet200ResponseData` +`func (o *AnswerApiV1PersonalRankPageGet200Response) GetData() AnswerApiV1PersonalRankPageGet200ResponseAllOfData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerApiV1PersonalRankPageGet200Response) GetDataOk() (*AnswerApiV1PersonalRankPageGet200ResponseData, bool)` +`func (o *AnswerApiV1PersonalRankPageGet200Response) GetDataOk() (*AnswerApiV1PersonalRankPageGet200ResponseAllOfData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *AnswerApiV1PersonalRankPageGet200Response) SetData(v AnswerApiV1PersonalRankPageGet200ResponseData)` +`func (o *AnswerApiV1PersonalRankPageGet200Response) SetData(v AnswerApiV1PersonalRankPageGet200ResponseAllOfData)` SetData sets Data field to given value. @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1PersonalRankPageGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1PersonalRankPageGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1PersonalRankPageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1PersonalRankPageGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1PersonalRankPageGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1PersonalRankPageGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1PersonalRankPageGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1PersonalRankPageGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1PersonalRankPageGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1PersonalRankPageGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1PersonalRankPageGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1PersonalRankPageGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1PersonalRankPageGet200ResponseData.md b/docs/AnswerApiV1PersonalRankPageGet200ResponseAllOfData.md similarity index 51% rename from docs/AnswerApiV1PersonalRankPageGet200ResponseData.md rename to docs/AnswerApiV1PersonalRankPageGet200ResponseAllOfData.md index 1566037..8113f85 100644 --- a/docs/AnswerApiV1PersonalRankPageGet200ResponseData.md +++ b/docs/AnswerApiV1PersonalRankPageGet200ResponseAllOfData.md @@ -1,4 +1,4 @@ -# AnswerApiV1PersonalRankPageGet200ResponseData +# AnswerApiV1PersonalRankPageGet200ResponseAllOfData ## Properties @@ -9,70 +9,70 @@ Name | Type | Description | Notes ## Methods -### NewAnswerApiV1PersonalRankPageGet200ResponseData +### NewAnswerApiV1PersonalRankPageGet200ResponseAllOfData -`func NewAnswerApiV1PersonalRankPageGet200ResponseData() *AnswerApiV1PersonalRankPageGet200ResponseData` +`func NewAnswerApiV1PersonalRankPageGet200ResponseAllOfData() *AnswerApiV1PersonalRankPageGet200ResponseAllOfData` -NewAnswerApiV1PersonalRankPageGet200ResponseData instantiates a new AnswerApiV1PersonalRankPageGet200ResponseData object +NewAnswerApiV1PersonalRankPageGet200ResponseAllOfData instantiates a new AnswerApiV1PersonalRankPageGet200ResponseAllOfData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAnswerApiV1PersonalRankPageGet200ResponseDataWithDefaults +### NewAnswerApiV1PersonalRankPageGet200ResponseAllOfDataWithDefaults -`func NewAnswerApiV1PersonalRankPageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalRankPageGet200ResponseData` +`func NewAnswerApiV1PersonalRankPageGet200ResponseAllOfDataWithDefaults() *AnswerApiV1PersonalRankPageGet200ResponseAllOfData` -NewAnswerApiV1PersonalRankPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200ResponseData object +NewAnswerApiV1PersonalRankPageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200ResponseAllOfData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCount -`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetCount() int32` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) GetCount() int32` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetCountOk() (*int32, bool)` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) GetCountOk() (*int32, bool)` GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCount -`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetCount(v int32)` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) SetCount(v int32)` SetCount sets Count field to given value. ### HasCount -`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) HasCount() bool` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetList -`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetList() []SchemaGetRankPersonalPageResp` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) GetList() []SchemaGetRankPersonalPageResp` GetList returns the List field if non-nil, zero value otherwise. ### GetListOk -`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetListOk() (*[]SchemaGetRankPersonalPageResp, bool)` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) GetListOk() (*[]SchemaGetRankPersonalPageResp, bool)` GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetList -`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetList(v []SchemaGetRankPersonalPageResp)` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) SetList(v []SchemaGetRankPersonalPageResp)` SetList sets List field to given value. ### HasList -`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) HasList() bool` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) HasList() bool` HasList returns a boolean if a field has been set. diff --git a/docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md b/docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md deleted file mode 100644 index 022268d..0000000 --- a/docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# AnswerApiV1PersonalRankPageGet200ResponseDataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**List** | Pointer to [**[]SchemaGetRankPersonalPageResp**](SchemaGetRankPersonalPageResp.md) | | [optional] - -## Methods - -### NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf - -`func NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf() *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf` - -NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalRankPageGet200ResponseDataAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults - -`func NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf` - -NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200ResponseDataAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetList - -`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetList() []SchemaGetRankPersonalPageResp` - -GetList returns the List field if non-nil, zero value otherwise. - -### GetListOk - -`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetRankPersonalPageResp, bool)` - -GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetList - -`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) SetList(v []SchemaGetRankPersonalPageResp)` - -SetList sets List field to given value. - -### HasList - -`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) HasList() bool` - -HasList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnswerApiV1PersonalUserInfoGet200Response.md b/docs/AnswerApiV1PersonalUserInfoGet200Response.md index fceee07..eebd2eb 100644 --- a/docs/AnswerApiV1PersonalUserInfoGet200Response.md +++ b/docs/AnswerApiV1PersonalUserInfoGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetOtherUserInfoResp**](SchemaGetOtherUserInfoResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1PersonalUserInfoGet200ResponseWithDefaults instantiates a new Answ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1PersonalUserInfoGet200Response) GetData() SchemaGetOtherUserInfoResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1PersonalUserInfoGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1PersonalUserInfoGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1PersonalUserInfoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1PersonalUserInfoGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1PersonalUserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1PersonalUserInfoGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1PersonalUserInfoGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1PersonalUserInfoGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1PersonalVotePageGet200Response.md b/docs/AnswerApiV1PersonalVotePageGet200Response.md index 04ee036..e04920e 100644 --- a/docs/AnswerApiV1PersonalVotePageGet200Response.md +++ b/docs/AnswerApiV1PersonalVotePageGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**AnswerApiV1PersonalVotePageGet200ResponseData**](AnswerApiV1PersonalVotePageGet200ResponseData.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to [**AnswerApiV1PersonalVotePageGet200ResponseAllOfData**](AnswerApiV1PersonalVotePageGet200ResponseAllOfData.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,22 +28,47 @@ NewAnswerApiV1PersonalVotePageGet200ResponseWithDefaults instantiates a new Answ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1PersonalVotePageGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1PersonalVotePageGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1PersonalVotePageGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1PersonalVotePageGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData -`func (o *AnswerApiV1PersonalVotePageGet200Response) GetData() AnswerApiV1PersonalVotePageGet200ResponseData` +`func (o *AnswerApiV1PersonalVotePageGet200Response) GetData() AnswerApiV1PersonalVotePageGet200ResponseAllOfData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerApiV1PersonalVotePageGet200Response) GetDataOk() (*AnswerApiV1PersonalVotePageGet200ResponseData, bool)` +`func (o *AnswerApiV1PersonalVotePageGet200Response) GetDataOk() (*AnswerApiV1PersonalVotePageGet200ResponseAllOfData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *AnswerApiV1PersonalVotePageGet200Response) SetData(v AnswerApiV1PersonalVotePageGet200ResponseData)` +`func (o *AnswerApiV1PersonalVotePageGet200Response) SetData(v AnswerApiV1PersonalVotePageGet200ResponseAllOfData)` SetData sets Data field to given value. @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1PersonalVotePageGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1PersonalVotePageGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1PersonalVotePageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1PersonalVotePageGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1PersonalVotePageGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1PersonalVotePageGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1PersonalVotePageGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1PersonalVotePageGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1PersonalVotePageGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1PersonalVotePageGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1PersonalVotePageGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1PersonalVotePageGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1PersonalVotePageGet200ResponseData.md b/docs/AnswerApiV1PersonalVotePageGet200ResponseAllOfData.md similarity index 51% rename from docs/AnswerApiV1PersonalVotePageGet200ResponseData.md rename to docs/AnswerApiV1PersonalVotePageGet200ResponseAllOfData.md index 8ccd691..c9901ba 100644 --- a/docs/AnswerApiV1PersonalVotePageGet200ResponseData.md +++ b/docs/AnswerApiV1PersonalVotePageGet200ResponseAllOfData.md @@ -1,4 +1,4 @@ -# AnswerApiV1PersonalVotePageGet200ResponseData +# AnswerApiV1PersonalVotePageGet200ResponseAllOfData ## Properties @@ -9,70 +9,70 @@ Name | Type | Description | Notes ## Methods -### NewAnswerApiV1PersonalVotePageGet200ResponseData +### NewAnswerApiV1PersonalVotePageGet200ResponseAllOfData -`func NewAnswerApiV1PersonalVotePageGet200ResponseData() *AnswerApiV1PersonalVotePageGet200ResponseData` +`func NewAnswerApiV1PersonalVotePageGet200ResponseAllOfData() *AnswerApiV1PersonalVotePageGet200ResponseAllOfData` -NewAnswerApiV1PersonalVotePageGet200ResponseData instantiates a new AnswerApiV1PersonalVotePageGet200ResponseData object +NewAnswerApiV1PersonalVotePageGet200ResponseAllOfData instantiates a new AnswerApiV1PersonalVotePageGet200ResponseAllOfData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAnswerApiV1PersonalVotePageGet200ResponseDataWithDefaults +### NewAnswerApiV1PersonalVotePageGet200ResponseAllOfDataWithDefaults -`func NewAnswerApiV1PersonalVotePageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalVotePageGet200ResponseData` +`func NewAnswerApiV1PersonalVotePageGet200ResponseAllOfDataWithDefaults() *AnswerApiV1PersonalVotePageGet200ResponseAllOfData` -NewAnswerApiV1PersonalVotePageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200ResponseData object +NewAnswerApiV1PersonalVotePageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200ResponseAllOfData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCount -`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetCount() int32` +`func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) GetCount() int32` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetCountOk() (*int32, bool)` +`func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) GetCountOk() (*int32, bool)` GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCount -`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) SetCount(v int32)` +`func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) SetCount(v int32)` SetCount sets Count field to given value. ### HasCount -`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) HasCount() bool` +`func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetList -`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetList() []SchemaGetVoteWithPageResp` +`func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) GetList() []SchemaGetVoteWithPageResp` GetList returns the List field if non-nil, zero value otherwise. ### GetListOk -`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetListOk() (*[]SchemaGetVoteWithPageResp, bool)` +`func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) GetListOk() (*[]SchemaGetVoteWithPageResp, bool)` GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetList -`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) SetList(v []SchemaGetVoteWithPageResp)` +`func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) SetList(v []SchemaGetVoteWithPageResp)` SetList sets List field to given value. ### HasList -`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) HasList() bool` +`func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) HasList() bool` HasList returns a boolean if a field has been set. diff --git a/docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md b/docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md deleted file mode 100644 index 5ba4449..0000000 --- a/docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# AnswerApiV1PersonalVotePageGet200ResponseDataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**List** | Pointer to [**[]SchemaGetVoteWithPageResp**](SchemaGetVoteWithPageResp.md) | | [optional] - -## Methods - -### NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOf - -`func NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOf() *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf` - -NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalVotePageGet200ResponseDataAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOfWithDefaults - -`func NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf` - -NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200ResponseDataAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetList - -`func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) GetList() []SchemaGetVoteWithPageResp` - -GetList returns the List field if non-nil, zero value otherwise. - -### GetListOk - -`func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetVoteWithPageResp, bool)` - -GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetList - -`func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) SetList(v []SchemaGetVoteWithPageResp)` - -SetList sets List field to given value. - -### HasList - -`func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) HasList() bool` - -HasList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnswerApiV1QuestionPageGet200Response.md b/docs/AnswerApiV1QuestionPageGet200Response.md index 196eea1..b813ab9 100644 --- a/docs/AnswerApiV1QuestionPageGet200Response.md +++ b/docs/AnswerApiV1QuestionPageGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**AnswerApiV1QuestionPageGet200ResponseData**](AnswerApiV1QuestionPageGet200ResponseData.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to [**AnswerApiV1QuestionPageGet200ResponseAllOfData**](AnswerApiV1QuestionPageGet200ResponseAllOfData.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,22 +28,47 @@ NewAnswerApiV1QuestionPageGet200ResponseWithDefaults instantiates a new AnswerAp This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1QuestionPageGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1QuestionPageGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1QuestionPageGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1QuestionPageGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData -`func (o *AnswerApiV1QuestionPageGet200Response) GetData() AnswerApiV1QuestionPageGet200ResponseData` +`func (o *AnswerApiV1QuestionPageGet200Response) GetData() AnswerApiV1QuestionPageGet200ResponseAllOfData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerApiV1QuestionPageGet200Response) GetDataOk() (*AnswerApiV1QuestionPageGet200ResponseData, bool)` +`func (o *AnswerApiV1QuestionPageGet200Response) GetDataOk() (*AnswerApiV1QuestionPageGet200ResponseAllOfData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *AnswerApiV1QuestionPageGet200Response) SetData(v AnswerApiV1QuestionPageGet200ResponseData)` +`func (o *AnswerApiV1QuestionPageGet200Response) SetData(v AnswerApiV1QuestionPageGet200ResponseAllOfData)` SetData sets Data field to given value. @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1QuestionPageGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1QuestionPageGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1QuestionPageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1QuestionPageGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1QuestionPageGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1QuestionPageGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1QuestionPageGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1QuestionPageGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1QuestionPageGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1QuestionPageGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1QuestionPageGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1QuestionPageGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1QuestionPageGet200ResponseData.md b/docs/AnswerApiV1QuestionPageGet200ResponseAllOfData.md similarity index 53% rename from docs/AnswerApiV1QuestionPageGet200ResponseData.md rename to docs/AnswerApiV1QuestionPageGet200ResponseAllOfData.md index cde7bde..ca15923 100644 --- a/docs/AnswerApiV1QuestionPageGet200ResponseData.md +++ b/docs/AnswerApiV1QuestionPageGet200ResponseAllOfData.md @@ -1,4 +1,4 @@ -# AnswerApiV1QuestionPageGet200ResponseData +# AnswerApiV1QuestionPageGet200ResponseAllOfData ## Properties @@ -9,70 +9,70 @@ Name | Type | Description | Notes ## Methods -### NewAnswerApiV1QuestionPageGet200ResponseData +### NewAnswerApiV1QuestionPageGet200ResponseAllOfData -`func NewAnswerApiV1QuestionPageGet200ResponseData() *AnswerApiV1QuestionPageGet200ResponseData` +`func NewAnswerApiV1QuestionPageGet200ResponseAllOfData() *AnswerApiV1QuestionPageGet200ResponseAllOfData` -NewAnswerApiV1QuestionPageGet200ResponseData instantiates a new AnswerApiV1QuestionPageGet200ResponseData object +NewAnswerApiV1QuestionPageGet200ResponseAllOfData instantiates a new AnswerApiV1QuestionPageGet200ResponseAllOfData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAnswerApiV1QuestionPageGet200ResponseDataWithDefaults +### NewAnswerApiV1QuestionPageGet200ResponseAllOfDataWithDefaults -`func NewAnswerApiV1QuestionPageGet200ResponseDataWithDefaults() *AnswerApiV1QuestionPageGet200ResponseData` +`func NewAnswerApiV1QuestionPageGet200ResponseAllOfDataWithDefaults() *AnswerApiV1QuestionPageGet200ResponseAllOfData` -NewAnswerApiV1QuestionPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1QuestionPageGet200ResponseData object +NewAnswerApiV1QuestionPageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1QuestionPageGet200ResponseAllOfData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCount -`func (o *AnswerApiV1QuestionPageGet200ResponseData) GetCount() int32` +`func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) GetCount() int32` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *AnswerApiV1QuestionPageGet200ResponseData) GetCountOk() (*int32, bool)` +`func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) GetCountOk() (*int32, bool)` GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCount -`func (o *AnswerApiV1QuestionPageGet200ResponseData) SetCount(v int32)` +`func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) SetCount(v int32)` SetCount sets Count field to given value. ### HasCount -`func (o *AnswerApiV1QuestionPageGet200ResponseData) HasCount() bool` +`func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetList -`func (o *AnswerApiV1QuestionPageGet200ResponseData) GetList() []SchemaQuestionPageResp` +`func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) GetList() []SchemaQuestionPageResp` GetList returns the List field if non-nil, zero value otherwise. ### GetListOk -`func (o *AnswerApiV1QuestionPageGet200ResponseData) GetListOk() (*[]SchemaQuestionPageResp, bool)` +`func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) GetListOk() (*[]SchemaQuestionPageResp, bool)` GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetList -`func (o *AnswerApiV1QuestionPageGet200ResponseData) SetList(v []SchemaQuestionPageResp)` +`func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) SetList(v []SchemaQuestionPageResp)` SetList sets List field to given value. ### HasList -`func (o *AnswerApiV1QuestionPageGet200ResponseData) HasList() bool` +`func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) HasList() bool` HasList returns a boolean if a field has been set. diff --git a/docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md b/docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md deleted file mode 100644 index e853426..0000000 --- a/docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# AnswerApiV1QuestionPageGet200ResponseDataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**List** | Pointer to [**[]SchemaQuestionPageResp**](SchemaQuestionPageResp.md) | | [optional] - -## Methods - -### NewAnswerApiV1QuestionPageGet200ResponseDataAllOf - -`func NewAnswerApiV1QuestionPageGet200ResponseDataAllOf() *AnswerApiV1QuestionPageGet200ResponseDataAllOf` - -NewAnswerApiV1QuestionPageGet200ResponseDataAllOf instantiates a new AnswerApiV1QuestionPageGet200ResponseDataAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnswerApiV1QuestionPageGet200ResponseDataAllOfWithDefaults - -`func NewAnswerApiV1QuestionPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1QuestionPageGet200ResponseDataAllOf` - -NewAnswerApiV1QuestionPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1QuestionPageGet200ResponseDataAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetList - -`func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) GetList() []SchemaQuestionPageResp` - -GetList returns the List field if non-nil, zero value otherwise. - -### GetListOk - -`func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) GetListOk() (*[]SchemaQuestionPageResp, bool)` - -GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetList - -`func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) SetList(v []SchemaQuestionPageResp)` - -SetList sets List field to given value. - -### HasList - -`func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) HasList() bool` - -HasList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnswerApiV1QuestionTagsGet200Response.md b/docs/AnswerApiV1QuestionTagsGet200Response.md index a0e55b7..7b2286c 100644 --- a/docs/AnswerApiV1QuestionTagsGet200Response.md +++ b/docs/AnswerApiV1QuestionTagsGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**[]SchemaGetTagResp**](SchemaGetTagResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1QuestionTagsGet200ResponseWithDefaults instantiates a new AnswerAp This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1QuestionTagsGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1QuestionTagsGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1QuestionTagsGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1QuestionTagsGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1QuestionTagsGet200Response) GetData() []SchemaGetTagResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1QuestionTagsGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1QuestionTagsGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1QuestionTagsGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1QuestionTagsGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1QuestionTagsGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1QuestionTagsGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1QuestionTagsGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1QuestionTagsGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1QuestionTagsGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1QuestionTagsGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1QuestionTagsGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1QuestionTagsGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1ReportTypeListGet200Response.md b/docs/AnswerApiV1ReportTypeListGet200Response.md deleted file mode 100644 index cdadcc1..0000000 --- a/docs/AnswerApiV1ReportTypeListGet200Response.md +++ /dev/null @@ -1,82 +0,0 @@ -# AnswerApiV1ReportTypeListGet200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**[]SchemaGetReportTypeResp**](SchemaGetReportTypeResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] - -## Methods - -### NewAnswerApiV1ReportTypeListGet200Response - -`func NewAnswerApiV1ReportTypeListGet200Response() *AnswerApiV1ReportTypeListGet200Response` - -NewAnswerApiV1ReportTypeListGet200Response instantiates a new AnswerApiV1ReportTypeListGet200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnswerApiV1ReportTypeListGet200ResponseWithDefaults - -`func NewAnswerApiV1ReportTypeListGet200ResponseWithDefaults() *AnswerApiV1ReportTypeListGet200Response` - -NewAnswerApiV1ReportTypeListGet200ResponseWithDefaults instantiates a new AnswerApiV1ReportTypeListGet200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *AnswerApiV1ReportTypeListGet200Response) GetData() []SchemaGetReportTypeResp` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *AnswerApiV1ReportTypeListGet200Response) GetDataOk() (*[]SchemaGetReportTypeResp, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *AnswerApiV1ReportTypeListGet200Response) SetData(v []SchemaGetReportTypeResp)` - -SetData sets Data field to given value. - -### HasData - -`func (o *AnswerApiV1ReportTypeListGet200Response) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetHandlerRespBody - -`func (o *AnswerApiV1ReportTypeListGet200Response) GetHandlerRespBody() HandlerRespBody` - -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. - -### GetHandlerRespBodyOk - -`func (o *AnswerApiV1ReportTypeListGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` - -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHandlerRespBody - -`func (o *AnswerApiV1ReportTypeListGet200Response) SetHandlerRespBody(v HandlerRespBody)` - -SetHandlerRespBody sets HandlerRespBody field to given value. - -### HasHandlerRespBody - -`func (o *AnswerApiV1ReportTypeListGet200Response) HasHandlerRespBody() bool` - -HasHandlerRespBody returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnswerApiV1RevisionsGet200Response.md b/docs/AnswerApiV1RevisionsGet200Response.md index 80032e9..8417b28 100644 --- a/docs/AnswerApiV1RevisionsGet200Response.md +++ b/docs/AnswerApiV1RevisionsGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**[]SchemaGetRevisionResp**](SchemaGetRevisionResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1RevisionsGet200ResponseWithDefaults instantiates a new AnswerApiV1 This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1RevisionsGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1RevisionsGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1RevisionsGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1RevisionsGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1RevisionsGet200Response) GetData() []SchemaGetRevisionResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1RevisionsGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1RevisionsGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1RevisionsGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1RevisionsGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1RevisionsGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1RevisionsGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1RevisionsGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1RevisionsGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1RevisionsGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1RevisionsGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1RevisionsGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1RevisionsGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1RevisionsUnreviewedGet200Response.md b/docs/AnswerApiV1RevisionsUnreviewedGet200Response.md index 3b6d5a2..3c7c4af 100644 --- a/docs/AnswerApiV1RevisionsUnreviewedGet200Response.md +++ b/docs/AnswerApiV1RevisionsUnreviewedGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**AnswerApiV1RevisionsUnreviewedGet200ResponseData**](AnswerApiV1RevisionsUnreviewedGet200ResponseData.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to [**AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData**](AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,22 +28,47 @@ NewAnswerApiV1RevisionsUnreviewedGet200ResponseWithDefaults instantiates a new A This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData -`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetData() AnswerApiV1RevisionsUnreviewedGet200ResponseData` +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetData() AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetDataOk() (*AnswerApiV1RevisionsUnreviewedGet200ResponseData, bool)` +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetDataOk() (*AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetData(v AnswerApiV1RevisionsUnreviewedGet200ResponseData)` +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetData(v AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData)` SetData sets Data field to given value. @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md b/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData.md similarity index 50% rename from docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md rename to docs/AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData.md index 12607f6..0fbaa42 100644 --- a/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md +++ b/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData.md @@ -1,4 +1,4 @@ -# AnswerApiV1RevisionsUnreviewedGet200ResponseData +# AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData ## Properties @@ -9,70 +9,70 @@ Name | Type | Description | Notes ## Methods -### NewAnswerApiV1RevisionsUnreviewedGet200ResponseData +### NewAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData -`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseData() *AnswerApiV1RevisionsUnreviewedGet200ResponseData` +`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData() *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData` -NewAnswerApiV1RevisionsUnreviewedGet200ResponseData instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseData object +NewAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataWithDefaults +### NewAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfDataWithDefaults -`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200ResponseData` +`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfDataWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData` -NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseData object +NewAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCount -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetCount() int32` +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) GetCount() int32` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetCountOk() (*int32, bool)` +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) GetCountOk() (*int32, bool)` GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCount -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) SetCount(v int32)` +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) SetCount(v int32)` SetCount sets Count field to given value. ### HasCount -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) HasCount() bool` +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetList -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetList() []SchemaGetUnreviewedRevisionResp` +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) GetList() []SchemaGetUnreviewedRevisionResp` GetList returns the List field if non-nil, zero value otherwise. ### GetListOk -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetListOk() (*[]SchemaGetUnreviewedRevisionResp, bool)` +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) GetListOk() (*[]SchemaGetUnreviewedRevisionResp, bool)` GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetList -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) SetList(v []SchemaGetUnreviewedRevisionResp)` +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) SetList(v []SchemaGetUnreviewedRevisionResp)` SetList sets List field to given value. ### HasList -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) HasList() bool` +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) HasList() bool` HasList returns a boolean if a field has been set. diff --git a/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md b/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md deleted file mode 100644 index c323ed9..0000000 --- a/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**List** | Pointer to [**[]SchemaGetUnreviewedRevisionResp**](SchemaGetUnreviewedRevisionResp.md) | | [optional] - -## Methods - -### NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf - -`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf() *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf` - -NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOfWithDefaults - -`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOfWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf` - -NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetList - -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) GetList() []SchemaGetUnreviewedRevisionResp` - -GetList returns the List field if non-nil, zero value otherwise. - -### GetListOk - -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetUnreviewedRevisionResp, bool)` - -GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetList - -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) SetList(v []SchemaGetUnreviewedRevisionResp)` - -SetList sets List field to given value. - -### HasList - -`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) HasList() bool` - -HasList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnswerApiV1SearchGet200Response.md b/docs/AnswerApiV1SearchGet200Response.md index 86a9979..561e546 100644 --- a/docs/AnswerApiV1SearchGet200Response.md +++ b/docs/AnswerApiV1SearchGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**SchemaSearchListResp**](SchemaSearchListResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to [**SchemaSearchResp**](SchemaSearchResp.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,22 +28,47 @@ NewAnswerApiV1SearchGet200ResponseWithDefaults instantiates a new AnswerApiV1Sea This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1SearchGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1SearchGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1SearchGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1SearchGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData -`func (o *AnswerApiV1SearchGet200Response) GetData() SchemaSearchListResp` +`func (o *AnswerApiV1SearchGet200Response) GetData() SchemaSearchResp` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerApiV1SearchGet200Response) GetDataOk() (*SchemaSearchListResp, bool)` +`func (o *AnswerApiV1SearchGet200Response) GetDataOk() (*SchemaSearchResp, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *AnswerApiV1SearchGet200Response) SetData(v SchemaSearchListResp)` +`func (o *AnswerApiV1SearchGet200Response) SetData(v SchemaSearchResp)` SetData sets Data field to given value. @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1SearchGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1SearchGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1SearchGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1SearchGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1SearchGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1SearchGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1SearchGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1SearchGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1SearchGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1SearchGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1SearchGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1SearchGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1SiteinfoGet200Response.md b/docs/AnswerApiV1SiteinfoGet200Response.md index 9234f31..b985ea0 100644 --- a/docs/AnswerApiV1SiteinfoGet200Response.md +++ b/docs/AnswerApiV1SiteinfoGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaSiteInfoResp**](SchemaSiteInfoResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1SiteinfoGet200ResponseWithDefaults instantiates a new AnswerApiV1S This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1SiteinfoGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1SiteinfoGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1SiteinfoGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1SiteinfoGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1SiteinfoGet200Response) GetData() SchemaSiteInfoResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1SiteinfoGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1SiteinfoGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1SiteinfoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1SiteinfoGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1SiteinfoGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1SiteinfoGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1SiteinfoGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1SiteinfoGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1SiteinfoGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1SiteinfoGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1SiteinfoGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1SiteinfoGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1SiteinfoLegalGet200Response.md b/docs/AnswerApiV1SiteinfoLegalGet200Response.md index 6cbf2ae..87399e3 100644 --- a/docs/AnswerApiV1SiteinfoLegalGet200Response.md +++ b/docs/AnswerApiV1SiteinfoLegalGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetSiteLegalInfoResp**](SchemaGetSiteLegalInfoResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1SiteinfoLegalGet200ResponseWithDefaults instantiates a new AnswerA This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1SiteinfoLegalGet200Response) GetData() SchemaGetSiteLegalInfoResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1SiteinfoLegalGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1SiteinfoLegalGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1SiteinfoLegalGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1SiteinfoLegalGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1SiteinfoLegalGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1SiteinfoLegalGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1SiteinfoLegalGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1SiteinfoLegalGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1TagGet200Response.md b/docs/AnswerApiV1TagGet200Response.md index 9eccdd2..b9dba80 100644 --- a/docs/AnswerApiV1TagGet200Response.md +++ b/docs/AnswerApiV1TagGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetTagResp**](SchemaGetTagResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1TagGet200ResponseWithDefaults instantiates a new AnswerApiV1TagGet This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1TagGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1TagGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1TagGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1TagGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1TagGet200Response) GetData() SchemaGetTagResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1TagGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1TagGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1TagGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1TagGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1TagGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1TagGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1TagGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1TagGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1TagGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1TagGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1TagGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1TagGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1TagSynonymsGet200Response.md b/docs/AnswerApiV1TagSynonymsGet200Response.md index 29f20b8..11f7d09 100644 --- a/docs/AnswerApiV1TagSynonymsGet200Response.md +++ b/docs/AnswerApiV1TagSynonymsGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetTagSynonymsResp**](SchemaGetTagSynonymsResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1TagSynonymsGet200ResponseWithDefaults instantiates a new AnswerApi This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1TagSynonymsGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1TagSynonymsGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1TagSynonymsGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1TagSynonymsGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1TagSynonymsGet200Response) GetData() SchemaGetTagSynonymsResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1TagSynonymsGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1TagSynonymsGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1TagSynonymsGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1TagSynonymsGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1TagSynonymsGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1TagSynonymsGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1TagSynonymsGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1TagSynonymsGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1TagSynonymsGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1TagSynonymsGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1TagSynonymsGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1TagSynonymsGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1TagsFollowingGet200Response.md b/docs/AnswerApiV1TagsFollowingGet200Response.md index 55e3288..d687c4f 100644 --- a/docs/AnswerApiV1TagsFollowingGet200Response.md +++ b/docs/AnswerApiV1TagsFollowingGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**[]SchemaGetFollowingTagsResp**](SchemaGetFollowingTagsResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1TagsFollowingGet200ResponseWithDefaults instantiates a new AnswerA This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1TagsFollowingGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1TagsFollowingGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1TagsFollowingGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1TagsFollowingGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1TagsFollowingGet200Response) GetData() []SchemaGetFollowingTagsResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1TagsFollowingGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1TagsFollowingGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1TagsFollowingGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1TagsFollowingGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1TagsFollowingGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1TagsFollowingGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1TagsFollowingGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1TagsFollowingGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1TagsFollowingGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1TagsFollowingGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1TagsFollowingGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1TagsFollowingGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1TagsPageGet200Response.md b/docs/AnswerApiV1TagsPageGet200Response.md index cf07799..02e313a 100644 --- a/docs/AnswerApiV1TagsPageGet200Response.md +++ b/docs/AnswerApiV1TagsPageGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**AnswerApiV1TagsPageGet200ResponseData**](AnswerApiV1TagsPageGet200ResponseData.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to [**AnswerApiV1TagsPageGet200ResponseAllOfData**](AnswerApiV1TagsPageGet200ResponseAllOfData.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,22 +28,47 @@ NewAnswerApiV1TagsPageGet200ResponseWithDefaults instantiates a new AnswerApiV1T This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1TagsPageGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1TagsPageGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1TagsPageGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1TagsPageGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData -`func (o *AnswerApiV1TagsPageGet200Response) GetData() AnswerApiV1TagsPageGet200ResponseData` +`func (o *AnswerApiV1TagsPageGet200Response) GetData() AnswerApiV1TagsPageGet200ResponseAllOfData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerApiV1TagsPageGet200Response) GetDataOk() (*AnswerApiV1TagsPageGet200ResponseData, bool)` +`func (o *AnswerApiV1TagsPageGet200Response) GetDataOk() (*AnswerApiV1TagsPageGet200ResponseAllOfData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *AnswerApiV1TagsPageGet200Response) SetData(v AnswerApiV1TagsPageGet200ResponseData)` +`func (o *AnswerApiV1TagsPageGet200Response) SetData(v AnswerApiV1TagsPageGet200ResponseAllOfData)` SetData sets Data field to given value. @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1TagsPageGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1TagsPageGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1TagsPageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1TagsPageGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1TagsPageGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1TagsPageGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1TagsPageGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1TagsPageGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1TagsPageGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1TagsPageGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1TagsPageGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1TagsPageGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1TagsPageGet200ResponseData.md b/docs/AnswerApiV1TagsPageGet200ResponseAllOfData.md similarity index 54% rename from docs/AnswerApiV1TagsPageGet200ResponseData.md rename to docs/AnswerApiV1TagsPageGet200ResponseAllOfData.md index 247b677..b88d53f 100644 --- a/docs/AnswerApiV1TagsPageGet200ResponseData.md +++ b/docs/AnswerApiV1TagsPageGet200ResponseAllOfData.md @@ -1,4 +1,4 @@ -# AnswerApiV1TagsPageGet200ResponseData +# AnswerApiV1TagsPageGet200ResponseAllOfData ## Properties @@ -9,70 +9,70 @@ Name | Type | Description | Notes ## Methods -### NewAnswerApiV1TagsPageGet200ResponseData +### NewAnswerApiV1TagsPageGet200ResponseAllOfData -`func NewAnswerApiV1TagsPageGet200ResponseData() *AnswerApiV1TagsPageGet200ResponseData` +`func NewAnswerApiV1TagsPageGet200ResponseAllOfData() *AnswerApiV1TagsPageGet200ResponseAllOfData` -NewAnswerApiV1TagsPageGet200ResponseData instantiates a new AnswerApiV1TagsPageGet200ResponseData object +NewAnswerApiV1TagsPageGet200ResponseAllOfData instantiates a new AnswerApiV1TagsPageGet200ResponseAllOfData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAnswerApiV1TagsPageGet200ResponseDataWithDefaults +### NewAnswerApiV1TagsPageGet200ResponseAllOfDataWithDefaults -`func NewAnswerApiV1TagsPageGet200ResponseDataWithDefaults() *AnswerApiV1TagsPageGet200ResponseData` +`func NewAnswerApiV1TagsPageGet200ResponseAllOfDataWithDefaults() *AnswerApiV1TagsPageGet200ResponseAllOfData` -NewAnswerApiV1TagsPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1TagsPageGet200ResponseData object +NewAnswerApiV1TagsPageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1TagsPageGet200ResponseAllOfData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCount -`func (o *AnswerApiV1TagsPageGet200ResponseData) GetCount() int32` +`func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) GetCount() int32` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *AnswerApiV1TagsPageGet200ResponseData) GetCountOk() (*int32, bool)` +`func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) GetCountOk() (*int32, bool)` GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCount -`func (o *AnswerApiV1TagsPageGet200ResponseData) SetCount(v int32)` +`func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) SetCount(v int32)` SetCount sets Count field to given value. ### HasCount -`func (o *AnswerApiV1TagsPageGet200ResponseData) HasCount() bool` +`func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetList -`func (o *AnswerApiV1TagsPageGet200ResponseData) GetList() []SchemaGetTagPageResp` +`func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) GetList() []SchemaGetTagPageResp` GetList returns the List field if non-nil, zero value otherwise. ### GetListOk -`func (o *AnswerApiV1TagsPageGet200ResponseData) GetListOk() (*[]SchemaGetTagPageResp, bool)` +`func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) GetListOk() (*[]SchemaGetTagPageResp, bool)` GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetList -`func (o *AnswerApiV1TagsPageGet200ResponseData) SetList(v []SchemaGetTagPageResp)` +`func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) SetList(v []SchemaGetTagPageResp)` SetList sets List field to given value. ### HasList -`func (o *AnswerApiV1TagsPageGet200ResponseData) HasList() bool` +`func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) HasList() bool` HasList returns a boolean if a field has been set. diff --git a/docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md b/docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md deleted file mode 100644 index ddaf367..0000000 --- a/docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md +++ /dev/null @@ -1,56 +0,0 @@ -# AnswerApiV1TagsPageGet200ResponseDataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**List** | Pointer to [**[]SchemaGetTagPageResp**](SchemaGetTagPageResp.md) | | [optional] - -## Methods - -### NewAnswerApiV1TagsPageGet200ResponseDataAllOf - -`func NewAnswerApiV1TagsPageGet200ResponseDataAllOf() *AnswerApiV1TagsPageGet200ResponseDataAllOf` - -NewAnswerApiV1TagsPageGet200ResponseDataAllOf instantiates a new AnswerApiV1TagsPageGet200ResponseDataAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnswerApiV1TagsPageGet200ResponseDataAllOfWithDefaults - -`func NewAnswerApiV1TagsPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1TagsPageGet200ResponseDataAllOf` - -NewAnswerApiV1TagsPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1TagsPageGet200ResponseDataAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetList - -`func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) GetList() []SchemaGetTagPageResp` - -GetList returns the List field if non-nil, zero value otherwise. - -### GetListOk - -`func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetTagPageResp, bool)` - -GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetList - -`func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) SetList(v []SchemaGetTagPageResp)` - -SetList sets List field to given value. - -### HasList - -`func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) HasList() bool` - -HasList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnswerApiV1UserActionRecordGet200Response.md b/docs/AnswerApiV1UserActionRecordGet200Response.md index 51b98e7..c1129a7 100644 --- a/docs/AnswerApiV1UserActionRecordGet200Response.md +++ b/docs/AnswerApiV1UserActionRecordGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaActionRecordResp**](SchemaActionRecordResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1UserActionRecordGet200ResponseWithDefaults instantiates a new Answ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1UserActionRecordGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1UserActionRecordGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1UserActionRecordGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1UserActionRecordGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1UserActionRecordGet200Response) GetData() SchemaActionRecordResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1UserActionRecordGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1UserActionRecordGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1UserActionRecordGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1UserActionRecordGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1UserActionRecordGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1UserActionRecordGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1UserActionRecordGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1UserActionRecordGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1UserActionRecordGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1UserActionRecordGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1UserActionRecordGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1UserActionRecordGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1UserEmailVerificationPost200Response.md b/docs/AnswerApiV1UserEmailVerificationPost200Response.md index 049c503..8317bb4 100644 --- a/docs/AnswerApiV1UserEmailVerificationPost200Response.md +++ b/docs/AnswerApiV1UserEmailVerificationPost200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaUserLoginResp**](SchemaUserLoginResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1UserEmailVerificationPost200ResponseWithDefaults instantiates a ne This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1UserEmailVerificationPost200Response) GetData() SchemaUserLoginResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1UserEmailVerificationPost200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1UserEmailVerificationPost200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1UserEmailVerificationPost200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1UserEmailVerificationPost200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1UserInfoGet200Response.md b/docs/AnswerApiV1UserInfoGet200Response.md index 2c646c6..b4c4b25 100644 --- a/docs/AnswerApiV1UserInfoGet200Response.md +++ b/docs/AnswerApiV1UserInfoGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaGetCurrentLoginUserInfoResp**](SchemaGetCurrentLoginUserInfoResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1UserInfoGet200ResponseWithDefaults instantiates a new AnswerApiV1U This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1UserInfoGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1UserInfoGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1UserInfoGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1UserInfoGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1UserInfoGet200Response) GetData() SchemaGetCurrentLoginUserInfoResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1UserInfoGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1UserInfoGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1UserInfoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1UserInfoGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1UserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1UserInfoGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1UserInfoGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1UserInfoGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1UserInfoGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1UserInfoGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1UserInfoGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1UserInfoGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1UserNoticeSetPost200Response.md b/docs/AnswerApiV1UserNoticeSetPost200Response.md deleted file mode 100644 index f3ab6b7..0000000 --- a/docs/AnswerApiV1UserNoticeSetPost200Response.md +++ /dev/null @@ -1,82 +0,0 @@ -# AnswerApiV1UserNoticeSetPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**SchemaUserNoticeSetResp**](SchemaUserNoticeSetResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] - -## Methods - -### NewAnswerApiV1UserNoticeSetPost200Response - -`func NewAnswerApiV1UserNoticeSetPost200Response() *AnswerApiV1UserNoticeSetPost200Response` - -NewAnswerApiV1UserNoticeSetPost200Response instantiates a new AnswerApiV1UserNoticeSetPost200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAnswerApiV1UserNoticeSetPost200ResponseWithDefaults - -`func NewAnswerApiV1UserNoticeSetPost200ResponseWithDefaults() *AnswerApiV1UserNoticeSetPost200Response` - -NewAnswerApiV1UserNoticeSetPost200ResponseWithDefaults instantiates a new AnswerApiV1UserNoticeSetPost200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *AnswerApiV1UserNoticeSetPost200Response) GetData() SchemaUserNoticeSetResp` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *AnswerApiV1UserNoticeSetPost200Response) GetDataOk() (*SchemaUserNoticeSetResp, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *AnswerApiV1UserNoticeSetPost200Response) SetData(v SchemaUserNoticeSetResp)` - -SetData sets Data field to given value. - -### HasData - -`func (o *AnswerApiV1UserNoticeSetPost200Response) HasData() bool` - -HasData returns a boolean if a field has been set. - -### GetHandlerRespBody - -`func (o *AnswerApiV1UserNoticeSetPost200Response) GetHandlerRespBody() HandlerRespBody` - -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. - -### GetHandlerRespBodyOk - -`func (o *AnswerApiV1UserNoticeSetPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` - -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHandlerRespBody - -`func (o *AnswerApiV1UserNoticeSetPost200Response) SetHandlerRespBody(v HandlerRespBody)` - -SetHandlerRespBody sets HandlerRespBody field to given value. - -### HasHandlerRespBody - -`func (o *AnswerApiV1UserNoticeSetPost200Response) HasHandlerRespBody() bool` - -HasHandlerRespBody returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/AnswerApiV1UserNotificationConfigPost200Response.md b/docs/AnswerApiV1UserNotificationConfigPost200Response.md new file mode 100644 index 0000000..c8eae13 --- /dev/null +++ b/docs/AnswerApiV1UserNotificationConfigPost200Response.md @@ -0,0 +1,134 @@ +# AnswerApiV1UserNotificationConfigPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to [**SchemaGetUserNotificationConfigResp**](SchemaGetUserNotificationConfigResp.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] + +## Methods + +### NewAnswerApiV1UserNotificationConfigPost200Response + +`func NewAnswerApiV1UserNotificationConfigPost200Response() *AnswerApiV1UserNotificationConfigPost200Response` + +NewAnswerApiV1UserNotificationConfigPost200Response instantiates a new AnswerApiV1UserNotificationConfigPost200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1UserNotificationConfigPost200ResponseWithDefaults + +`func NewAnswerApiV1UserNotificationConfigPost200ResponseWithDefaults() *AnswerApiV1UserNotificationConfigPost200Response` + +NewAnswerApiV1UserNotificationConfigPost200ResponseWithDefaults instantiates a new AnswerApiV1UserNotificationConfigPost200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetData + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) GetData() SchemaGetUserNotificationConfigResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) GetDataOk() (*SchemaGetUserNotificationConfigResp, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) SetData(v SchemaGetUserNotificationConfigResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetMsg + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1UserNotificationConfigPost200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1UserRankingGet200Response.md b/docs/AnswerApiV1UserRankingGet200Response.md index 8fe9871..f957129 100644 --- a/docs/AnswerApiV1UserRankingGet200Response.md +++ b/docs/AnswerApiV1UserRankingGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaUserRankingResp**](SchemaUserRankingResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1UserRankingGet200ResponseWithDefaults instantiates a new AnswerApi This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1UserRankingGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1UserRankingGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1UserRankingGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1UserRankingGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1UserRankingGet200Response) GetData() SchemaUserRankingResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1UserRankingGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1UserRankingGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1UserRankingGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1UserRankingGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1UserRankingGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1UserRankingGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1UserRankingGet200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1UserRankingGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1UserRankingGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1UserRankingGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1UserRankingGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1UserRankingGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AnswerApiV1VoteDownPost200Response.md b/docs/AnswerApiV1VoteDownPost200Response.md index ef54eb2..a8153d8 100644 --- a/docs/AnswerApiV1VoteDownPost200Response.md +++ b/docs/AnswerApiV1VoteDownPost200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**SchemaVoteResp**](SchemaVoteResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewAnswerApiV1VoteDownPost200ResponseWithDefaults instantiates a new AnswerApiV1 This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *AnswerApiV1VoteDownPost200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *AnswerApiV1VoteDownPost200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *AnswerApiV1VoteDownPost200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *AnswerApiV1VoteDownPost200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *AnswerApiV1VoteDownPost200Response) GetData() SchemaVoteResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *AnswerApiV1VoteDownPost200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *AnswerApiV1VoteDownPost200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *AnswerApiV1VoteDownPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *AnswerApiV1VoteDownPost200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *AnswerApiV1VoteDownPost200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *AnswerApiV1VoteDownPost200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *AnswerApiV1VoteDownPost200Response) HasHandlerRespBody() bool` +`func (o *AnswerApiV1VoteDownPost200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *AnswerApiV1VoteDownPost200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *AnswerApiV1VoteDownPost200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *AnswerApiV1VoteDownPost200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *AnswerApiV1VoteDownPost200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ApiAnswerApi.md b/docs/ApiAnswerAPI.md similarity index 80% rename from docs/ApiAnswerApi.md rename to docs/ApiAnswerAPI.md index d4fef28..d043d4f 100644 --- a/docs/ApiAnswerApi.md +++ b/docs/ApiAnswerAPI.md @@ -1,15 +1,15 @@ -# \ApiAnswerApi +# \ApiAnswerAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1AnswerAcceptancePost**](ApiAnswerApi.md#AnswerApiV1AnswerAcceptancePost) | **Post** /answer/api/v1/answer/acceptance | Accepted -[**AnswerApiV1AnswerDelete**](ApiAnswerApi.md#AnswerApiV1AnswerDelete) | **Delete** /answer/api/v1/answer | delete answer -[**AnswerApiV1AnswerInfoGet**](ApiAnswerApi.md#AnswerApiV1AnswerInfoGet) | **Get** /answer/api/v1/answer/info | Get Answer -[**AnswerApiV1AnswerPageGet**](ApiAnswerApi.md#AnswerApiV1AnswerPageGet) | **Get** /answer/api/v1/answer/page | AnswerList -[**AnswerApiV1AnswerPost**](ApiAnswerApi.md#AnswerApiV1AnswerPost) | **Post** /answer/api/v1/answer | Insert Answer -[**AnswerApiV1AnswerPut**](ApiAnswerApi.md#AnswerApiV1AnswerPut) | **Put** /answer/api/v1/answer | Update Answer +[**AnswerApiV1AnswerAcceptancePost**](ApiAnswerAPI.md#AnswerApiV1AnswerAcceptancePost) | **Post** /answer/api/v1/answer/acceptance | Accepted +[**AnswerApiV1AnswerDelete**](ApiAnswerAPI.md#AnswerApiV1AnswerDelete) | **Delete** /answer/api/v1/answer | delete answer +[**AnswerApiV1AnswerInfoGet**](ApiAnswerAPI.md#AnswerApiV1AnswerInfoGet) | **Get** /answer/api/v1/answer/info | Get Answer +[**AnswerApiV1AnswerPageGet**](ApiAnswerAPI.md#AnswerApiV1AnswerPageGet) | **Get** /answer/api/v1/answer/page | AnswerList +[**AnswerApiV1AnswerPost**](ApiAnswerAPI.md#AnswerApiV1AnswerPost) | **Post** /answer/api/v1/answer | Insert Answer +[**AnswerApiV1AnswerPut**](ApiAnswerAPI.md#AnswerApiV1AnswerPut) | **Put** /answer/api/v1/answer | Update Answer @@ -30,21 +30,21 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { - data := *openapiclient.NewSchemaAnswerAcceptedReq() // SchemaAnswerAcceptedReq | AnswerAcceptedReq + data := *openapiclient.NewSchemaAcceptAnswerReq("QuestionId_example") // SchemaAcceptAnswerReq | AcceptAnswerReq configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerAcceptancePost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerAcceptancePost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerAcceptancePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerAPI.AnswerApiV1AnswerAcceptancePost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1AnswerAcceptancePost`: string - fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerAcceptancePost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerAPI.AnswerApiV1AnswerAcceptancePost`: %v\n", resp) } ``` @@ -59,7 +59,7 @@ Other parameters are passed through a pointer to a apiAnswerApiV1AnswerAcceptanc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**SchemaAnswerAcceptedReq**](SchemaAnswerAcceptedReq.md) | AnswerAcceptedReq | + **data** | [**SchemaAcceptAnswerReq**](SchemaAcceptAnswerReq.md) | AcceptAnswerReq | ### Return type @@ -96,7 +96,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -104,13 +104,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerDelete(context.Background()).Data(data).Execute() + resp, r, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerDelete(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerAPI.AnswerApiV1AnswerDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1AnswerDelete`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerDelete`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerAPI.AnswerApiV1AnswerDelete`: %v\n", resp) } ``` @@ -162,7 +162,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -170,13 +170,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerInfoGet(context.Background()).Id(id).Execute() + resp, r, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerInfoGet(context.Background()).Id(id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerInfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerAPI.AnswerApiV1AnswerInfoGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1AnswerInfoGet`: string - fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerInfoGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerAPI.AnswerApiV1AnswerInfoGet`: %v\n", resp) } ``` @@ -228,7 +228,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -239,13 +239,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPageGet(context.Background()).QuestionId(questionId).Order(order).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPageGet(context.Background()).QuestionId(questionId).Order(order).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerAPI.AnswerApiV1AnswerPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1AnswerPageGet`: string - fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerAPI.AnswerApiV1AnswerPageGet`: %v\n", resp) } ``` @@ -300,7 +300,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -308,13 +308,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerAPI.AnswerApiV1AnswerPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1AnswerPost`: string - fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerAPI.AnswerApiV1AnswerPost`: %v\n", resp) } ``` @@ -366,7 +366,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -374,13 +374,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerAPI.AnswerApiV1AnswerPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1AnswerPut`: string - fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerAPI.AnswerApiV1AnswerPut`: %v\n", resp) } ``` diff --git a/docs/CollectionApi.md b/docs/CollectionAPI.md similarity index 82% rename from docs/CollectionApi.md rename to docs/CollectionAPI.md index 973c624..1e5e812 100644 --- a/docs/CollectionApi.md +++ b/docs/CollectionAPI.md @@ -1,11 +1,11 @@ -# \CollectionApi +# \CollectionAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1CollectionSwitchPost**](CollectionApi.md#AnswerApiV1CollectionSwitchPost) | **Post** /answer/api/v1/collection/switch | add collection -[**AnswerApiV1PersonalCollectionPageGet**](CollectionApi.md#AnswerApiV1PersonalCollectionPageGet) | **Get** /answer/api/v1/personal/collection/page | list personal collections +[**AnswerApiV1CollectionSwitchPost**](CollectionAPI.md#AnswerApiV1CollectionSwitchPost) | **Post** /answer/api/v1/collection/switch | add collection +[**AnswerApiV1PersonalCollectionPageGet**](CollectionAPI.md#AnswerApiV1PersonalCollectionPageGet) | **Get** /answer/api/v1/personal/collection/page | list personal collections @@ -26,7 +26,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -34,13 +34,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CollectionApi.AnswerApiV1CollectionSwitchPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.CollectionAPI.AnswerApiV1CollectionSwitchPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CollectionApi.AnswerApiV1CollectionSwitchPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CollectionAPI.AnswerApiV1CollectionSwitchPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1CollectionSwitchPost`: AnswerApiV1CollectionSwitchPost200Response - fmt.Fprintf(os.Stdout, "Response from `CollectionApi.AnswerApiV1CollectionSwitchPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CollectionAPI.AnswerApiV1CollectionSwitchPost`: %v\n", resp) } ``` @@ -92,7 +92,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -101,13 +101,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CollectionApi.AnswerApiV1PersonalCollectionPageGet(context.Background()).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.CollectionAPI.AnswerApiV1PersonalCollectionPageGet(context.Background()).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CollectionApi.AnswerApiV1PersonalCollectionPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CollectionAPI.AnswerApiV1PersonalCollectionPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1PersonalCollectionPageGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `CollectionApi.AnswerApiV1PersonalCollectionPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CollectionAPI.AnswerApiV1PersonalCollectionPageGet`: %v\n", resp) } ``` diff --git a/docs/CommentApi.md b/docs/CommentAPI.md similarity index 84% rename from docs/CommentApi.md rename to docs/CommentAPI.md index d6651c2..9b7db0e 100644 --- a/docs/CommentApi.md +++ b/docs/CommentAPI.md @@ -1,17 +1,17 @@ -# \CommentApi +# \CommentAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1ActivityTimelineDetailGet**](CommentApi.md#AnswerApiV1ActivityTimelineDetailGet) | **Get** /answer/api/v1/activity/timeline/detail | get object timeline detail -[**AnswerApiV1ActivityTimelineGet**](CommentApi.md#AnswerApiV1ActivityTimelineGet) | **Get** /answer/api/v1/activity/timeline | get object timeline -[**AnswerApiV1CommentDelete**](CommentApi.md#AnswerApiV1CommentDelete) | **Delete** /answer/api/v1/comment | remove comment -[**AnswerApiV1CommentGet**](CommentApi.md#AnswerApiV1CommentGet) | **Get** /answer/api/v1/comment | get comment by id -[**AnswerApiV1CommentPageGet**](CommentApi.md#AnswerApiV1CommentPageGet) | **Get** /answer/api/v1/comment/page | get comment page -[**AnswerApiV1CommentPost**](CommentApi.md#AnswerApiV1CommentPost) | **Post** /answer/api/v1/comment | add comment -[**AnswerApiV1CommentPut**](CommentApi.md#AnswerApiV1CommentPut) | **Put** /answer/api/v1/comment | update comment -[**AnswerApiV1PersonalCommentPageGet**](CommentApi.md#AnswerApiV1PersonalCommentPageGet) | **Get** /answer/api/v1/personal/comment/page | user personal comment list +[**AnswerApiV1ActivityTimelineDetailGet**](CommentAPI.md#AnswerApiV1ActivityTimelineDetailGet) | **Get** /answer/api/v1/activity/timeline/detail | get object timeline detail +[**AnswerApiV1ActivityTimelineGet**](CommentAPI.md#AnswerApiV1ActivityTimelineGet) | **Get** /answer/api/v1/activity/timeline | get object timeline +[**AnswerApiV1CommentDelete**](CommentAPI.md#AnswerApiV1CommentDelete) | **Delete** /answer/api/v1/comment | remove comment +[**AnswerApiV1CommentGet**](CommentAPI.md#AnswerApiV1CommentGet) | **Get** /answer/api/v1/comment | get comment by id +[**AnswerApiV1CommentPageGet**](CommentAPI.md#AnswerApiV1CommentPageGet) | **Get** /answer/api/v1/comment/page | get comment page +[**AnswerApiV1CommentPost**](CommentAPI.md#AnswerApiV1CommentPost) | **Post** /answer/api/v1/comment | add comment +[**AnswerApiV1CommentPut**](CommentAPI.md#AnswerApiV1CommentPut) | **Put** /answer/api/v1/comment | update comment +[**AnswerApiV1PersonalCommentPageGet**](CommentAPI.md#AnswerApiV1PersonalCommentPageGet) | **Get** /answer/api/v1/personal/comment/page | user personal comment list @@ -32,7 +32,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -40,13 +40,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineDetailGet(context.Background()).RevisionId(revisionId).Execute() + resp, r, err := apiClient.CommentAPI.AnswerApiV1ActivityTimelineDetailGet(context.Background()).RevisionId(revisionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1ActivityTimelineDetailGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CommentAPI.AnswerApiV1ActivityTimelineDetailGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1ActivityTimelineDetailGet`: AnswerApiV1ActivityTimelineGet200Response - fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1ActivityTimelineDetailGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CommentAPI.AnswerApiV1ActivityTimelineDetailGet`: %v\n", resp) } ``` @@ -98,7 +98,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -109,13 +109,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineGet(context.Background()).ObjectId(objectId).TagSlugName(tagSlugName).ObjectType(objectType).ShowVote(showVote).Execute() + resp, r, err := apiClient.CommentAPI.AnswerApiV1ActivityTimelineGet(context.Background()).ObjectId(objectId).TagSlugName(tagSlugName).ObjectType(objectType).ShowVote(showVote).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1ActivityTimelineGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CommentAPI.AnswerApiV1ActivityTimelineGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1ActivityTimelineGet`: AnswerApiV1ActivityTimelineGet200Response - fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1ActivityTimelineGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CommentAPI.AnswerApiV1ActivityTimelineGet`: %v\n", resp) } ``` @@ -170,7 +170,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -178,13 +178,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CommentApi.AnswerApiV1CommentDelete(context.Background()).Data(data).Execute() + resp, r, err := apiClient.CommentAPI.AnswerApiV1CommentDelete(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1CommentDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CommentAPI.AnswerApiV1CommentDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1CommentDelete`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1CommentDelete`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CommentAPI.AnswerApiV1CommentDelete`: %v\n", resp) } ``` @@ -236,7 +236,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -244,13 +244,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CommentApi.AnswerApiV1CommentGet(context.Background()).Id(id).Execute() + resp, r, err := apiClient.CommentAPI.AnswerApiV1CommentGet(context.Background()).Id(id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1CommentGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CommentAPI.AnswerApiV1CommentGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1CommentGet`: AnswerApiV1CommentGet200Response - fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1CommentGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CommentAPI.AnswerApiV1CommentGet`: %v\n", resp) } ``` @@ -302,7 +302,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -313,13 +313,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CommentApi.AnswerApiV1CommentPageGet(context.Background()).ObjectId(objectId).Page(page).PageSize(pageSize).QueryCond(queryCond).Execute() + resp, r, err := apiClient.CommentAPI.AnswerApiV1CommentPageGet(context.Background()).ObjectId(objectId).Page(page).PageSize(pageSize).QueryCond(queryCond).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1CommentPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CommentAPI.AnswerApiV1CommentPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1CommentPageGet`: AnswerApiV1CommentGet200Response - fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1CommentPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CommentAPI.AnswerApiV1CommentPageGet`: %v\n", resp) } ``` @@ -374,7 +374,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -382,13 +382,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CommentApi.AnswerApiV1CommentPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.CommentAPI.AnswerApiV1CommentPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1CommentPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CommentAPI.AnswerApiV1CommentPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1CommentPost`: AnswerApiV1CommentPost200Response - fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1CommentPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CommentAPI.AnswerApiV1CommentPost`: %v\n", resp) } ``` @@ -440,7 +440,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -448,13 +448,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CommentApi.AnswerApiV1CommentPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.CommentAPI.AnswerApiV1CommentPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1CommentPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CommentAPI.AnswerApiV1CommentPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1CommentPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1CommentPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CommentAPI.AnswerApiV1CommentPut`: %v\n", resp) } ``` @@ -506,7 +506,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -516,13 +516,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CommentApi.AnswerApiV1PersonalCommentPageGet(context.Background()).Page(page).PageSize(pageSize).Username(username).Execute() + resp, r, err := apiClient.CommentAPI.AnswerApiV1PersonalCommentPageGet(context.Background()).Page(page).PageSize(pageSize).Username(username).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1PersonalCommentPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CommentAPI.AnswerApiV1PersonalCommentPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1PersonalCommentPageGet`: AnswerApiV1PersonalCommentPageGet200Response - fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1PersonalCommentPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CommentAPI.AnswerApiV1PersonalCommentPageGet`: %v\n", resp) } ``` diff --git a/docs/ConstantNotificationChannelKey.md b/docs/ConstantNotificationChannelKey.md new file mode 100644 index 0000000..3c7f136 --- /dev/null +++ b/docs/ConstantNotificationChannelKey.md @@ -0,0 +1,11 @@ +# ConstantNotificationChannelKey + +## Enum + + +* `EmailChannel` (value: `"email"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InstallInitBaseInfoReq.md b/docs/InstallInitBaseInfoReq.md index ce798c3..84f68e3 100644 --- a/docs/InstallInitBaseInfoReq.md +++ b/docs/InstallInitBaseInfoReq.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **ContactEmail** | **string** | | **Email** | **string** | | **Lang** | **string** | | +**LoginRequired** | Pointer to **bool** | | [optional] **Name** | **string** | | **Password** | **string** | | **SiteName** | **string** | | @@ -91,6 +92,31 @@ and a boolean to check if the value has been set. SetLang sets Lang field to given value. +### GetLoginRequired + +`func (o *InstallInitBaseInfoReq) GetLoginRequired() bool` + +GetLoginRequired returns the LoginRequired field if non-nil, zero value otherwise. + +### GetLoginRequiredOk + +`func (o *InstallInitBaseInfoReq) GetLoginRequiredOk() (*bool, bool)` + +GetLoginRequiredOk returns a tuple with the LoginRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginRequired + +`func (o *InstallInitBaseInfoReq) SetLoginRequired(v bool)` + +SetLoginRequired sets LoginRequired field to given value. + +### HasLoginRequired + +`func (o *InstallInitBaseInfoReq) HasLoginRequired() bool` + +HasLoginRequired returns a boolean if a field has been set. + ### GetName `func (o *InstallInitBaseInfoReq) GetName() string` diff --git a/docs/InstallationApi.md b/docs/InstallationAPI.md similarity index 84% rename from docs/InstallationApi.md rename to docs/InstallationAPI.md index 403b6d8..0bceaeb 100644 --- a/docs/InstallationApi.md +++ b/docs/InstallationAPI.md @@ -1,14 +1,14 @@ -# \InstallationApi +# \InstallationAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**InstallationBaseInfoPost**](InstallationApi.md#InstallationBaseInfoPost) | **Post** /installation/base-info | init base info -[**InstallationConfigFileCheckPost**](InstallationApi.md#InstallationConfigFileCheckPost) | **Post** /installation/config-file/check | check config file if exist when installation -[**InstallationDbCheckPost**](InstallationApi.md#InstallationDbCheckPost) | **Post** /installation/db/check | check database if exist when installation -[**InstallationInitPost**](InstallationApi.md#InstallationInitPost) | **Post** /installation/init | init environment -[**RootGet**](InstallationApi.md#RootGet) | **Get** / | if config file not exist try to redirect to install page +[**InstallationBaseInfoPost**](InstallationAPI.md#InstallationBaseInfoPost) | **Post** /installation/base-info | init base info +[**InstallationConfigFileCheckPost**](InstallationAPI.md#InstallationConfigFileCheckPost) | **Post** /installation/config-file/check | check config file if exist when installation +[**InstallationDbCheckPost**](InstallationAPI.md#InstallationDbCheckPost) | **Post** /installation/db/check | check database if exist when installation +[**InstallationInitPost**](InstallationAPI.md#InstallationInitPost) | **Post** /installation/init | init environment +[**RootGet**](InstallationAPI.md#RootGet) | **Get** / | if config file not exist try to redirect to install page @@ -29,7 +29,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -37,13 +37,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.InstallationApi.InstallationBaseInfoPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.InstallationAPI.InstallationBaseInfoPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `InstallationApi.InstallationBaseInfoPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `InstallationAPI.InstallationBaseInfoPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstallationBaseInfoPost`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `InstallationApi.InstallationBaseInfoPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `InstallationAPI.InstallationBaseInfoPost`: %v\n", resp) } ``` @@ -95,20 +95,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.InstallationApi.InstallationConfigFileCheckPost(context.Background()).Execute() + resp, r, err := apiClient.InstallationAPI.InstallationConfigFileCheckPost(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `InstallationApi.InstallationConfigFileCheckPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `InstallationAPI.InstallationConfigFileCheckPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstallationConfigFileCheckPost`: InstallationConfigFileCheckPost200Response - fmt.Fprintf(os.Stdout, "Response from `InstallationApi.InstallationConfigFileCheckPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `InstallationAPI.InstallationConfigFileCheckPost`: %v\n", resp) } ``` @@ -156,7 +156,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -164,13 +164,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.InstallationApi.InstallationDbCheckPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.InstallationAPI.InstallationDbCheckPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `InstallationApi.InstallationDbCheckPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `InstallationAPI.InstallationDbCheckPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstallationDbCheckPost`: InstallationConfigFileCheckPost200Response - fmt.Fprintf(os.Stdout, "Response from `InstallationApi.InstallationDbCheckPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `InstallationAPI.InstallationDbCheckPost`: %v\n", resp) } ``` @@ -222,7 +222,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -230,13 +230,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.InstallationApi.InstallationInitPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.InstallationAPI.InstallationInitPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `InstallationApi.InstallationInitPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `InstallationAPI.InstallationInitPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstallationInitPost`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `InstallationApi.InstallationInitPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `InstallationAPI.InstallationInitPost`: %v\n", resp) } ``` @@ -288,16 +288,16 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.InstallationApi.RootGet(context.Background()).Execute() + r, err := apiClient.InstallationAPI.RootGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `InstallationApi.RootGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `InstallationAPI.RootGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } diff --git a/docs/InstallationConfigFileCheckPost200Response.md b/docs/InstallationConfigFileCheckPost200Response.md index 94f052c..abbe369 100644 --- a/docs/InstallationConfigFileCheckPost200Response.md +++ b/docs/InstallationConfigFileCheckPost200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**InstallCheckConfigFileResp**](InstallCheckConfigFileResp.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewInstallationConfigFileCheckPost200ResponseWithDefaults instantiates a new Ins This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *InstallationConfigFileCheckPost200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *InstallationConfigFileCheckPost200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *InstallationConfigFileCheckPost200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *InstallationConfigFileCheckPost200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *InstallationConfigFileCheckPost200Response) GetData() InstallCheckConfigFileResp` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *InstallationConfigFileCheckPost200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *InstallationConfigFileCheckPost200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *InstallationConfigFileCheckPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *InstallationConfigFileCheckPost200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *InstallationConfigFileCheckPost200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *InstallationConfigFileCheckPost200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *InstallationConfigFileCheckPost200Response) HasHandlerRespBody() bool` +`func (o *InstallationConfigFileCheckPost200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *InstallationConfigFileCheckPost200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *InstallationConfigFileCheckPost200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *InstallationConfigFileCheckPost200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *InstallationConfigFileCheckPost200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InstallationLanguageOptionsGet200Response.md b/docs/InstallationLanguageOptionsGet200Response.md index 983cc97..f12dc35 100644 --- a/docs/InstallationLanguageOptionsGet200Response.md +++ b/docs/InstallationLanguageOptionsGet200Response.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] **Data** | Pointer to [**[]TranslatorLangOption**](TranslatorLangOption.md) | | [optional] -**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] ## Methods @@ -26,6 +28,31 @@ NewInstallationLanguageOptionsGet200ResponseWithDefaults instantiates a new Inst This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetCode + +`func (o *InstallationLanguageOptionsGet200Response) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *InstallationLanguageOptionsGet200Response) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *InstallationLanguageOptionsGet200Response) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *InstallationLanguageOptionsGet200Response) HasCode() bool` + +HasCode returns a boolean if a field has been set. + ### GetData `func (o *InstallationLanguageOptionsGet200Response) GetData() []TranslatorLangOption` @@ -51,30 +78,55 @@ SetData sets Data field to given value. HasData returns a boolean if a field has been set. -### GetHandlerRespBody +### GetMsg -`func (o *InstallationLanguageOptionsGet200Response) GetHandlerRespBody() HandlerRespBody` +`func (o *InstallationLanguageOptionsGet200Response) GetMsg() string` -GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. +GetMsg returns the Msg field if non-nil, zero value otherwise. -### GetHandlerRespBodyOk +### GetMsgOk -`func (o *InstallationLanguageOptionsGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` +`func (o *InstallationLanguageOptionsGet200Response) GetMsgOk() (*string, bool)` -GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetHandlerRespBody +### SetMsg -`func (o *InstallationLanguageOptionsGet200Response) SetHandlerRespBody(v HandlerRespBody)` +`func (o *InstallationLanguageOptionsGet200Response) SetMsg(v string)` -SetHandlerRespBody sets HandlerRespBody field to given value. +SetMsg sets Msg field to given value. -### HasHandlerRespBody +### HasMsg -`func (o *InstallationLanguageOptionsGet200Response) HasHandlerRespBody() bool` +`func (o *InstallationLanguageOptionsGet200Response) HasMsg() bool` -HasHandlerRespBody returns a boolean if a field has been set. +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *InstallationLanguageOptionsGet200Response) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *InstallationLanguageOptionsGet200Response) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *InstallationLanguageOptionsGet200Response) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *InstallationLanguageOptionsGet200Response) HasReason() bool` + +HasReason returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LangApi.md b/docs/LangAPI.md similarity index 81% rename from docs/LangApi.md rename to docs/LangAPI.md index e5bb2da..97a6f00 100644 --- a/docs/LangApi.md +++ b/docs/LangAPI.md @@ -1,13 +1,13 @@ -# \LangApi +# \LangAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerAdminApiLanguageOptionsGet**](LangApi.md#AnswerAdminApiLanguageOptionsGet) | **Get** /answer/admin/api/language/options | Get language options -[**AnswerApiV1LanguageConfigGet**](LangApi.md#AnswerApiV1LanguageConfigGet) | **Get** /answer/api/v1/language/config | get language config mapping -[**AnswerApiV1LanguageOptionsGet**](LangApi.md#AnswerApiV1LanguageOptionsGet) | **Get** /answer/api/v1/language/options | Get language options -[**InstallationLanguageOptionsGet**](LangApi.md#InstallationLanguageOptionsGet) | **Get** /installation/language/options | get installation language options +[**AnswerAdminApiLanguageOptionsGet**](LangAPI.md#AnswerAdminApiLanguageOptionsGet) | **Get** /answer/admin/api/language/options | Get language options +[**AnswerApiV1LanguageConfigGet**](LangAPI.md#AnswerApiV1LanguageConfigGet) | **Get** /answer/api/v1/language/config | get language config mapping +[**AnswerApiV1LanguageOptionsGet**](LangAPI.md#AnswerApiV1LanguageOptionsGet) | **Get** /answer/api/v1/language/options | Get language options +[**InstallationLanguageOptionsGet**](LangAPI.md#InstallationLanguageOptionsGet) | **Get** /installation/language/options | get installation language options @@ -28,20 +28,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LangApi.AnswerAdminApiLanguageOptionsGet(context.Background()).Execute() + resp, r, err := apiClient.LangAPI.AnswerAdminApiLanguageOptionsGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LangApi.AnswerAdminApiLanguageOptionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `LangAPI.AnswerAdminApiLanguageOptionsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiLanguageOptionsGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `LangApi.AnswerAdminApiLanguageOptionsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `LangAPI.AnswerAdminApiLanguageOptionsGet`: %v\n", resp) } ``` @@ -89,7 +89,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -97,13 +97,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LangApi.AnswerApiV1LanguageConfigGet(context.Background()).AcceptLanguage(acceptLanguage).Execute() + resp, r, err := apiClient.LangAPI.AnswerApiV1LanguageConfigGet(context.Background()).AcceptLanguage(acceptLanguage).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LangApi.AnswerApiV1LanguageConfigGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `LangAPI.AnswerApiV1LanguageConfigGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1LanguageConfigGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `LangApi.AnswerApiV1LanguageConfigGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `LangAPI.AnswerApiV1LanguageConfigGet`: %v\n", resp) } ``` @@ -155,20 +155,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LangApi.AnswerApiV1LanguageOptionsGet(context.Background()).Execute() + resp, r, err := apiClient.LangAPI.AnswerApiV1LanguageOptionsGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LangApi.AnswerApiV1LanguageOptionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `LangAPI.AnswerApiV1LanguageOptionsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1LanguageOptionsGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `LangApi.AnswerApiV1LanguageOptionsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `LangAPI.AnswerApiV1LanguageOptionsGet`: %v\n", resp) } ``` @@ -216,20 +216,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.LangApi.InstallationLanguageOptionsGet(context.Background()).Execute() + resp, r, err := apiClient.LangAPI.InstallationLanguageOptionsGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `LangApi.InstallationLanguageOptionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `LangAPI.InstallationLanguageOptionsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InstallationLanguageOptionsGet`: InstallationLanguageOptionsGet200Response - fmt.Fprintf(os.Stdout, "Response from `LangApi.InstallationLanguageOptionsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `LangAPI.InstallationLanguageOptionsGet`: %v\n", resp) } ``` diff --git a/docs/NotificationApi.md b/docs/NotificationAPI.md similarity index 84% rename from docs/NotificationApi.md rename to docs/NotificationAPI.md index a4b8764..793a57c 100644 --- a/docs/NotificationApi.md +++ b/docs/NotificationAPI.md @@ -1,14 +1,14 @@ -# \NotificationApi +# \NotificationAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1NotificationPageGet**](NotificationApi.md#AnswerApiV1NotificationPageGet) | **Get** /answer/api/v1/notification/page | get notification list -[**AnswerApiV1NotificationReadStateAllPut**](NotificationApi.md#AnswerApiV1NotificationReadStateAllPut) | **Put** /answer/api/v1/notification/read/state/all | ClearUnRead -[**AnswerApiV1NotificationReadStatePut**](NotificationApi.md#AnswerApiV1NotificationReadStatePut) | **Put** /answer/api/v1/notification/read/state | ClearUnRead -[**AnswerApiV1NotificationStatusGet**](NotificationApi.md#AnswerApiV1NotificationStatusGet) | **Get** /answer/api/v1/notification/status | GetRedDot -[**AnswerApiV1NotificationStatusPut**](NotificationApi.md#AnswerApiV1NotificationStatusPut) | **Put** /answer/api/v1/notification/status | DelRedDot +[**AnswerApiV1NotificationPageGet**](NotificationAPI.md#AnswerApiV1NotificationPageGet) | **Get** /answer/api/v1/notification/page | get notification list +[**AnswerApiV1NotificationReadStateAllPut**](NotificationAPI.md#AnswerApiV1NotificationReadStateAllPut) | **Put** /answer/api/v1/notification/read/state/all | ClearUnRead +[**AnswerApiV1NotificationReadStatePut**](NotificationAPI.md#AnswerApiV1NotificationReadStatePut) | **Put** /answer/api/v1/notification/read/state | ClearUnRead +[**AnswerApiV1NotificationStatusGet**](NotificationAPI.md#AnswerApiV1NotificationStatusGet) | **Get** /answer/api/v1/notification/status | GetRedDot +[**AnswerApiV1NotificationStatusPut**](NotificationAPI.md#AnswerApiV1NotificationStatusPut) | **Put** /answer/api/v1/notification/status | DelRedDot @@ -29,7 +29,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -40,13 +40,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NotificationApi.AnswerApiV1NotificationPageGet(context.Background()).Type_(type_).InboxType(inboxType).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.NotificationAPI.AnswerApiV1NotificationPageGet(context.Background()).Type_(type_).InboxType(inboxType).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationApi.AnswerApiV1NotificationPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `NotificationAPI.AnswerApiV1NotificationPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1NotificationPageGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `NotificationApi.AnswerApiV1NotificationPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `NotificationAPI.AnswerApiV1NotificationPageGet`: %v\n", resp) } ``` @@ -101,7 +101,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -109,13 +109,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NotificationApi.AnswerApiV1NotificationReadStateAllPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.NotificationAPI.AnswerApiV1NotificationReadStateAllPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationApi.AnswerApiV1NotificationReadStateAllPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `NotificationAPI.AnswerApiV1NotificationReadStateAllPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1NotificationReadStateAllPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `NotificationApi.AnswerApiV1NotificationReadStateAllPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `NotificationAPI.AnswerApiV1NotificationReadStateAllPut`: %v\n", resp) } ``` @@ -167,7 +167,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -175,13 +175,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NotificationApi.AnswerApiV1NotificationReadStatePut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.NotificationAPI.AnswerApiV1NotificationReadStatePut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationApi.AnswerApiV1NotificationReadStatePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `NotificationAPI.AnswerApiV1NotificationReadStatePut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1NotificationReadStatePut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `NotificationApi.AnswerApiV1NotificationReadStatePut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `NotificationAPI.AnswerApiV1NotificationReadStatePut`: %v\n", resp) } ``` @@ -233,20 +233,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NotificationApi.AnswerApiV1NotificationStatusGet(context.Background()).Execute() + resp, r, err := apiClient.NotificationAPI.AnswerApiV1NotificationStatusGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationApi.AnswerApiV1NotificationStatusGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `NotificationAPI.AnswerApiV1NotificationStatusGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1NotificationStatusGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `NotificationApi.AnswerApiV1NotificationStatusGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `NotificationAPI.AnswerApiV1NotificationStatusGet`: %v\n", resp) } ``` @@ -294,7 +294,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -302,13 +302,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NotificationApi.AnswerApiV1NotificationStatusPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.NotificationAPI.AnswerApiV1NotificationStatusPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `NotificationApi.AnswerApiV1NotificationStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `NotificationAPI.AnswerApiV1NotificationStatusPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1NotificationStatusPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `NotificationApi.AnswerApiV1NotificationStatusPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `NotificationAPI.AnswerApiV1NotificationStatusPut`: %v\n", resp) } ``` diff --git a/docs/PermissionApi.md b/docs/PermissionAPI.md similarity index 82% rename from docs/PermissionApi.md rename to docs/PermissionAPI.md index 088ec5b..8aca975 100644 --- a/docs/PermissionApi.md +++ b/docs/PermissionAPI.md @@ -1,10 +1,10 @@ -# \PermissionApi +# \PermissionAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1PermissionGet**](PermissionApi.md#AnswerApiV1PermissionGet) | **Get** /answer/api/v1/permission | check user permission +[**AnswerApiV1PermissionGet**](PermissionAPI.md#AnswerApiV1PermissionGet) | **Get** /answer/api/v1/permission | check user permission @@ -25,7 +25,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -34,13 +34,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PermissionApi.AnswerApiV1PermissionGet(context.Background()).Authorization(authorization).Action(action).Execute() + resp, r, err := apiClient.PermissionAPI.AnswerApiV1PermissionGet(context.Background()).Authorization(authorization).Action(action).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PermissionApi.AnswerApiV1PermissionGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PermissionAPI.AnswerApiV1PermissionGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1PermissionGet`: AnswerApiV1PermissionGet200Response - fmt.Fprintf(os.Stdout, "Response from `PermissionApi.AnswerApiV1PermissionGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `PermissionAPI.AnswerApiV1PermissionGet`: %v\n", resp) } ``` diff --git a/docs/PersonalApi.md b/docs/PersonalAPI.md similarity index 86% rename from docs/PersonalApi.md rename to docs/PersonalAPI.md index 45981f7..1ddd92e 100644 --- a/docs/PersonalApi.md +++ b/docs/PersonalAPI.md @@ -1,11 +1,11 @@ -# \PersonalApi +# \PersonalAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1PersonalAnswerPageGet**](PersonalApi.md#AnswerApiV1PersonalAnswerPageGet) | **Get** /answer/api/v1/personal/answer/page | list personal answers -[**PersonalQuestionPageGet**](PersonalApi.md#PersonalQuestionPageGet) | **Get** /personal/question/page | list personal questions +[**AnswerApiV1PersonalAnswerPageGet**](PersonalAPI.md#AnswerApiV1PersonalAnswerPageGet) | **Get** /answer/api/v1/personal/answer/page | list personal answers +[**PersonalQuestionPageGet**](PersonalAPI.md#PersonalQuestionPageGet) | **Get** /personal/question/page | list personal questions @@ -26,7 +26,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -37,13 +37,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PersonalApi.AnswerApiV1PersonalAnswerPageGet(context.Background()).Username(username).Order(order).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.PersonalAPI.AnswerApiV1PersonalAnswerPageGet(context.Background()).Username(username).Order(order).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalApi.AnswerApiV1PersonalAnswerPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAPI.AnswerApiV1PersonalAnswerPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1PersonalAnswerPageGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `PersonalApi.AnswerApiV1PersonalAnswerPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `PersonalAPI.AnswerApiV1PersonalAnswerPageGet`: %v\n", resp) } ``` @@ -98,7 +98,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -109,13 +109,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PersonalApi.PersonalQuestionPageGet(context.Background()).Username(username).Order(order).Page(page).PageSize(pageSize).Execute() + resp, r, err := apiClient.PersonalAPI.PersonalQuestionPageGet(context.Background()).Username(username).Order(order).Page(page).PageSize(pageSize).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PersonalApi.PersonalQuestionPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PersonalAPI.PersonalQuestionPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `PersonalQuestionPageGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `PersonalApi.PersonalQuestionPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `PersonalAPI.PersonalQuestionPageGet`: %v\n", resp) } ``` diff --git a/docs/PluginConnectorApi.md b/docs/PluginConnectorAPI.md similarity index 84% rename from docs/PluginConnectorApi.md rename to docs/PluginConnectorAPI.md index bff29c4..2f9b2ac 100644 --- a/docs/PluginConnectorApi.md +++ b/docs/PluginConnectorAPI.md @@ -1,13 +1,13 @@ -# \PluginConnectorApi +# \PluginConnectorAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1ConnectorBindingEmailPost**](PluginConnectorApi.md#AnswerApiV1ConnectorBindingEmailPost) | **Post** /answer/api/v1/connector/binding/email | external login binding user send email -[**AnswerApiV1ConnectorInfoGet**](PluginConnectorApi.md#AnswerApiV1ConnectorInfoGet) | **Get** /answer/api/v1/connector/info | get all enabled connectors -[**AnswerApiV1ConnectorUserInfoGet**](PluginConnectorApi.md#AnswerApiV1ConnectorUserInfoGet) | **Get** /answer/api/v1/connector/user/info | get all connectors info about user -[**AnswerApiV1ConnectorUserUnbindingDelete**](PluginConnectorApi.md#AnswerApiV1ConnectorUserUnbindingDelete) | **Delete** /answer/api/v1/connector/user/unbinding | unbind external user login +[**AnswerApiV1ConnectorBindingEmailPost**](PluginConnectorAPI.md#AnswerApiV1ConnectorBindingEmailPost) | **Post** /answer/api/v1/connector/binding/email | external login binding user send email +[**AnswerApiV1ConnectorInfoGet**](PluginConnectorAPI.md#AnswerApiV1ConnectorInfoGet) | **Get** /answer/api/v1/connector/info | get all enabled connectors +[**AnswerApiV1ConnectorUserInfoGet**](PluginConnectorAPI.md#AnswerApiV1ConnectorUserInfoGet) | **Get** /answer/api/v1/connector/user/info | get all connectors info about user +[**AnswerApiV1ConnectorUserUnbindingDelete**](PluginConnectorAPI.md#AnswerApiV1ConnectorUserUnbindingDelete) | **Delete** /answer/api/v1/connector/user/unbinding | unbind external user login @@ -28,7 +28,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -36,13 +36,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorBindingEmailPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorBindingEmailPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PluginConnectorApi.AnswerApiV1ConnectorBindingEmailPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PluginConnectorAPI.AnswerApiV1ConnectorBindingEmailPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1ConnectorBindingEmailPost`: AnswerApiV1ConnectorBindingEmailPost200Response - fmt.Fprintf(os.Stdout, "Response from `PluginConnectorApi.AnswerApiV1ConnectorBindingEmailPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `PluginConnectorAPI.AnswerApiV1ConnectorBindingEmailPost`: %v\n", resp) } ``` @@ -94,20 +94,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorInfoGet(context.Background()).Execute() + resp, r, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorInfoGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PluginConnectorApi.AnswerApiV1ConnectorInfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PluginConnectorAPI.AnswerApiV1ConnectorInfoGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1ConnectorInfoGet`: AnswerApiV1ConnectorInfoGet200Response - fmt.Fprintf(os.Stdout, "Response from `PluginConnectorApi.AnswerApiV1ConnectorInfoGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `PluginConnectorAPI.AnswerApiV1ConnectorInfoGet`: %v\n", resp) } ``` @@ -155,20 +155,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorUserInfoGet(context.Background()).Execute() + resp, r, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorUserInfoGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PluginConnectorApi.AnswerApiV1ConnectorUserInfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PluginConnectorAPI.AnswerApiV1ConnectorUserInfoGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1ConnectorUserInfoGet`: AnswerApiV1ConnectorUserInfoGet200Response - fmt.Fprintf(os.Stdout, "Response from `PluginConnectorApi.AnswerApiV1ConnectorUserInfoGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `PluginConnectorAPI.AnswerApiV1ConnectorUserInfoGet`: %v\n", resp) } ``` @@ -216,7 +216,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -224,13 +224,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorUserUnbindingDelete(context.Background()).Data(data).Execute() + resp, r, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorUserUnbindingDelete(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `PluginConnectorApi.AnswerApiV1ConnectorUserUnbindingDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `PluginConnectorAPI.AnswerApiV1ConnectorUserUnbindingDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1ConnectorUserUnbindingDelete`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `PluginConnectorApi.AnswerApiV1ConnectorUserUnbindingDelete`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `PluginConnectorAPI.AnswerApiV1ConnectorUserUnbindingDelete`: %v\n", resp) } ``` diff --git a/docs/QuestionApi.md b/docs/QuestionAPI.md similarity index 82% rename from docs/QuestionApi.md rename to docs/QuestionAPI.md index 1557e66..24279ff 100644 --- a/docs/QuestionApi.md +++ b/docs/QuestionAPI.md @@ -1,23 +1,23 @@ -# \QuestionApi +# \QuestionAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1PersonalQaTopGet**](QuestionApi.md#AnswerApiV1PersonalQaTopGet) | **Get** /answer/api/v1/personal/qa/top | UserTop -[**AnswerApiV1QuestionAnswerPost**](QuestionApi.md#AnswerApiV1QuestionAnswerPost) | **Post** /answer/api/v1/question/answer | add question and answer -[**AnswerApiV1QuestionDelete**](QuestionApi.md#AnswerApiV1QuestionDelete) | **Delete** /answer/api/v1/question | delete question -[**AnswerApiV1QuestionInfoGet**](QuestionApi.md#AnswerApiV1QuestionInfoGet) | **Get** /answer/api/v1/question/info | get question details -[**AnswerApiV1QuestionInviteGet**](QuestionApi.md#AnswerApiV1QuestionInviteGet) | **Get** /answer/api/v1/question/invite | get question invite user info -[**AnswerApiV1QuestionInvitePut**](QuestionApi.md#AnswerApiV1QuestionInvitePut) | **Put** /answer/api/v1/question/invite | update question invite user -[**AnswerApiV1QuestionOperationPut**](QuestionApi.md#AnswerApiV1QuestionOperationPut) | **Put** /answer/api/v1/question/operation | Operation question -[**AnswerApiV1QuestionPageGet**](QuestionApi.md#AnswerApiV1QuestionPageGet) | **Get** /answer/api/v1/question/page | get questions by page -[**AnswerApiV1QuestionPost**](QuestionApi.md#AnswerApiV1QuestionPost) | **Post** /answer/api/v1/question | add question -[**AnswerApiV1QuestionPut**](QuestionApi.md#AnswerApiV1QuestionPut) | **Put** /answer/api/v1/question | update question -[**AnswerApiV1QuestionReopenPut**](QuestionApi.md#AnswerApiV1QuestionReopenPut) | **Put** /answer/api/v1/question/reopen | reopen question -[**AnswerApiV1QuestionSimilarGet**](QuestionApi.md#AnswerApiV1QuestionSimilarGet) | **Get** /answer/api/v1/question/similar | add question title like -[**AnswerApiV1QuestionSimilarTagGet**](QuestionApi.md#AnswerApiV1QuestionSimilarTagGet) | **Get** /answer/api/v1/question/similar/tag | Search Similar Question -[**AnswerApiV1QuestionStatusPut**](QuestionApi.md#AnswerApiV1QuestionStatusPut) | **Put** /answer/api/v1/question/status | Close question +[**AnswerApiV1PersonalQaTopGet**](QuestionAPI.md#AnswerApiV1PersonalQaTopGet) | **Get** /answer/api/v1/personal/qa/top | UserTop +[**AnswerApiV1QuestionAnswerPost**](QuestionAPI.md#AnswerApiV1QuestionAnswerPost) | **Post** /answer/api/v1/question/answer | add question and answer +[**AnswerApiV1QuestionDelete**](QuestionAPI.md#AnswerApiV1QuestionDelete) | **Delete** /answer/api/v1/question | delete question +[**AnswerApiV1QuestionInfoGet**](QuestionAPI.md#AnswerApiV1QuestionInfoGet) | **Get** /answer/api/v1/question/info | get question details +[**AnswerApiV1QuestionInviteGet**](QuestionAPI.md#AnswerApiV1QuestionInviteGet) | **Get** /answer/api/v1/question/invite | get question invite user info +[**AnswerApiV1QuestionInvitePut**](QuestionAPI.md#AnswerApiV1QuestionInvitePut) | **Put** /answer/api/v1/question/invite | update question invite user +[**AnswerApiV1QuestionOperationPut**](QuestionAPI.md#AnswerApiV1QuestionOperationPut) | **Put** /answer/api/v1/question/operation | Operation question +[**AnswerApiV1QuestionPageGet**](QuestionAPI.md#AnswerApiV1QuestionPageGet) | **Get** /answer/api/v1/question/page | get questions by page +[**AnswerApiV1QuestionPost**](QuestionAPI.md#AnswerApiV1QuestionPost) | **Post** /answer/api/v1/question | add question +[**AnswerApiV1QuestionPut**](QuestionAPI.md#AnswerApiV1QuestionPut) | **Put** /answer/api/v1/question | update question +[**AnswerApiV1QuestionReopenPut**](QuestionAPI.md#AnswerApiV1QuestionReopenPut) | **Put** /answer/api/v1/question/reopen | reopen question +[**AnswerApiV1QuestionSimilarGet**](QuestionAPI.md#AnswerApiV1QuestionSimilarGet) | **Get** /answer/api/v1/question/similar | fuzzy query similar questions based on title +[**AnswerApiV1QuestionSimilarTagGet**](QuestionAPI.md#AnswerApiV1QuestionSimilarTagGet) | **Get** /answer/api/v1/question/similar/tag | Search Similar Question +[**AnswerApiV1QuestionStatusPut**](QuestionAPI.md#AnswerApiV1QuestionStatusPut) | **Put** /answer/api/v1/question/status | Close question @@ -38,7 +38,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -46,13 +46,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1PersonalQaTopGet(context.Background()).Username(username).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1PersonalQaTopGet(context.Background()).Username(username).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1PersonalQaTopGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1PersonalQaTopGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1PersonalQaTopGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1PersonalQaTopGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1PersonalQaTopGet`: %v\n", resp) } ``` @@ -104,7 +104,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -112,13 +112,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionAnswerPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionAnswerPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionAnswerPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionAnswerPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionAnswerPost`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionAnswerPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionAnswerPost`: %v\n", resp) } ``` @@ -170,7 +170,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -178,13 +178,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionDelete(context.Background()).Data(data).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionDelete(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionDelete`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionDelete`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionDelete`: %v\n", resp) } ``` @@ -236,7 +236,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -244,13 +244,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionInfoGet(context.Background()).Id(id).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionInfoGet(context.Background()).Id(id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionInfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionInfoGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionInfoGet`: string - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionInfoGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionInfoGet`: %v\n", resp) } ``` @@ -302,7 +302,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -310,13 +310,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionInviteGet(context.Background()).Id(id).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionInviteGet(context.Background()).Id(id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionInviteGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionInviteGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionInviteGet`: string - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionInviteGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionInviteGet`: %v\n", resp) } ``` @@ -368,7 +368,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -376,13 +376,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionInvitePut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionInvitePut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionInvitePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionInvitePut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionInvitePut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionInvitePut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionInvitePut`: %v\n", resp) } ``` @@ -434,7 +434,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -442,13 +442,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionOperationPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionOperationPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionOperationPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionOperationPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionOperationPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionOperationPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionOperationPut`: %v\n", resp) } ``` @@ -500,7 +500,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -513,13 +513,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionPageGet(context.Background()).Page(page).PageSize(pageSize).Order(order).Tag(tag).Username(username).InDays(inDays).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionPageGet(context.Background()).Page(page).PageSize(pageSize).Order(order).Tag(tag).Username(username).InDays(inDays).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionPageGet`: AnswerApiV1QuestionPageGet200Response - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionPageGet`: %v\n", resp) } ``` @@ -576,7 +576,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -584,13 +584,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionPost`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionPost`: %v\n", resp) } ``` @@ -642,7 +642,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -650,13 +650,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionPut`: %v\n", resp) } ``` @@ -708,7 +708,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -716,13 +716,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionReopenPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionReopenPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionReopenPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionReopenPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionReopenPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionReopenPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionReopenPut`: %v\n", resp) } ``` @@ -761,7 +761,7 @@ Name | Type | Description | Notes > HandlerRespBody AnswerApiV1QuestionSimilarGet(ctx).Title(title).Execute() -add question title like +fuzzy query similar questions based on title @@ -774,7 +774,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -782,13 +782,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionSimilarGet(context.Background()).Title(title).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionSimilarGet(context.Background()).Title(title).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionSimilarGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionSimilarGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionSimilarGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionSimilarGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionSimilarGet`: %v\n", resp) } ``` @@ -840,7 +840,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -848,13 +848,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionSimilarTagGet(context.Background()).QuestionId(questionId).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionSimilarTagGet(context.Background()).QuestionId(questionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionSimilarTagGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionSimilarTagGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionSimilarTagGet`: string - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionSimilarTagGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionSimilarTagGet`: %v\n", resp) } ``` @@ -906,7 +906,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -914,13 +914,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionStatusPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.QuestionAPI.AnswerApiV1QuestionStatusPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `QuestionAPI.AnswerApiV1QuestionStatusPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionStatusPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionStatusPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `QuestionAPI.AnswerApiV1QuestionStatusPut`: %v\n", resp) } ``` diff --git a/docs/RankApi.md b/docs/RankAPI.md similarity index 85% rename from docs/RankApi.md rename to docs/RankAPI.md index 97000f4..3ee22fb 100644 --- a/docs/RankApi.md +++ b/docs/RankAPI.md @@ -1,10 +1,10 @@ -# \RankApi +# \RankAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1PersonalRankPageGet**](RankApi.md#AnswerApiV1PersonalRankPageGet) | **Get** /answer/api/v1/personal/rank/page | user personal rank list +[**AnswerApiV1PersonalRankPageGet**](RankAPI.md#AnswerApiV1PersonalRankPageGet) | **Get** /answer/api/v1/personal/rank/page | user personal rank list @@ -25,7 +25,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -35,13 +35,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RankApi.AnswerApiV1PersonalRankPageGet(context.Background()).Page(page).PageSize(pageSize).Username(username).Execute() + resp, r, err := apiClient.RankAPI.AnswerApiV1PersonalRankPageGet(context.Background()).Page(page).PageSize(pageSize).Username(username).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RankApi.AnswerApiV1PersonalRankPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `RankAPI.AnswerApiV1PersonalRankPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1PersonalRankPageGet`: AnswerApiV1PersonalRankPageGet200Response - fmt.Fprintf(os.Stdout, "Response from `RankApi.AnswerApiV1PersonalRankPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `RankAPI.AnswerApiV1PersonalRankPageGet`: %v\n", resp) } ``` diff --git a/docs/ReasonApi.md b/docs/ReasonAPI.md similarity index 83% rename from docs/ReasonApi.md rename to docs/ReasonAPI.md index c5ac41b..ce2342b 100644 --- a/docs/ReasonApi.md +++ b/docs/ReasonAPI.md @@ -1,11 +1,11 @@ -# \ReasonApi +# \ReasonAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerAdminApiReasonsGet**](ReasonApi.md#AnswerAdminApiReasonsGet) | **Get** /answer/admin/api/reasons | get reasons by object type and action -[**AnswerApiV1ReasonsGet**](ReasonApi.md#AnswerApiV1ReasonsGet) | **Get** /answer/api/v1/reasons | get reasons by object type and action +[**AnswerAdminApiReasonsGet**](ReasonAPI.md#AnswerAdminApiReasonsGet) | **Get** /answer/admin/api/reasons | get reasons by object type and action +[**AnswerApiV1ReasonsGet**](ReasonAPI.md#AnswerApiV1ReasonsGet) | **Get** /answer/api/v1/reasons | get reasons by object type and action @@ -26,7 +26,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -35,13 +35,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReasonApi.AnswerAdminApiReasonsGet(context.Background()).ObjectType(objectType).Action(action).Execute() + resp, r, err := apiClient.ReasonAPI.AnswerAdminApiReasonsGet(context.Background()).ObjectType(objectType).Action(action).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReasonApi.AnswerAdminApiReasonsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReasonAPI.AnswerAdminApiReasonsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerAdminApiReasonsGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `ReasonApi.AnswerAdminApiReasonsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ReasonAPI.AnswerAdminApiReasonsGet`: %v\n", resp) } ``` @@ -94,7 +94,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -103,13 +103,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReasonApi.AnswerApiV1ReasonsGet(context.Background()).ObjectType(objectType).Action(action).Execute() + resp, r, err := apiClient.ReasonAPI.AnswerApiV1ReasonsGet(context.Background()).ObjectType(objectType).Action(action).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReasonApi.AnswerApiV1ReasonsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReasonAPI.AnswerApiV1ReasonsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1ReasonsGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `ReasonApi.AnswerApiV1ReasonsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ReasonAPI.AnswerApiV1ReasonsGet`: %v\n", resp) } ``` diff --git a/docs/ReportApi.md b/docs/ReportAPI.md similarity index 82% rename from docs/ReportApi.md rename to docs/ReportAPI.md index 2a2d6de..092846a 100644 --- a/docs/ReportApi.md +++ b/docs/ReportAPI.md @@ -1,10 +1,10 @@ -# \ReportApi +# \ReportAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1ReportPost**](ReportApi.md#AnswerApiV1ReportPost) | **Post** /answer/api/v1/report | add report +[**AnswerApiV1ReportPost**](ReportAPI.md#AnswerApiV1ReportPost) | **Post** /answer/api/v1/report | add report @@ -25,7 +25,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -33,13 +33,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReportApi.AnswerApiV1ReportPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.ReportAPI.AnswerApiV1ReportPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportApi.AnswerApiV1ReportPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ReportAPI.AnswerApiV1ReportPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1ReportPost`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `ReportApi.AnswerApiV1ReportPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ReportAPI.AnswerApiV1ReportPost`: %v\n", resp) } ``` diff --git a/docs/RevisionApi.md b/docs/RevisionAPI.md similarity index 83% rename from docs/RevisionApi.md rename to docs/RevisionAPI.md index 050628f..0eada5a 100644 --- a/docs/RevisionApi.md +++ b/docs/RevisionAPI.md @@ -1,13 +1,13 @@ -# \RevisionApi +# \RevisionAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1RevisionsAuditPut**](RevisionApi.md#AnswerApiV1RevisionsAuditPut) | **Put** /answer/api/v1/revisions/audit | revision audit -[**AnswerApiV1RevisionsEditCheckGet**](RevisionApi.md#AnswerApiV1RevisionsEditCheckGet) | **Get** /answer/api/v1/revisions/edit/check | check can update revision -[**AnswerApiV1RevisionsGet**](RevisionApi.md#AnswerApiV1RevisionsGet) | **Get** /answer/api/v1/revisions | get revision list -[**AnswerApiV1RevisionsUnreviewedGet**](RevisionApi.md#AnswerApiV1RevisionsUnreviewedGet) | **Get** /answer/api/v1/revisions/unreviewed | get unreviewed revision list +[**AnswerApiV1RevisionsAuditPut**](RevisionAPI.md#AnswerApiV1RevisionsAuditPut) | **Put** /answer/api/v1/revisions/audit | revision audit +[**AnswerApiV1RevisionsEditCheckGet**](RevisionAPI.md#AnswerApiV1RevisionsEditCheckGet) | **Get** /answer/api/v1/revisions/edit/check | check can update revision +[**AnswerApiV1RevisionsGet**](RevisionAPI.md#AnswerApiV1RevisionsGet) | **Get** /answer/api/v1/revisions | get revision list +[**AnswerApiV1RevisionsUnreviewedGet**](RevisionAPI.md#AnswerApiV1RevisionsUnreviewedGet) | **Get** /answer/api/v1/revisions/unreviewed | get unreviewed revision list @@ -28,7 +28,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -36,13 +36,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsAuditPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.RevisionAPI.AnswerApiV1RevisionsAuditPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsAuditPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `RevisionAPI.AnswerApiV1RevisionsAuditPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1RevisionsAuditPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsAuditPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `RevisionAPI.AnswerApiV1RevisionsAuditPut`: %v\n", resp) } ``` @@ -94,7 +94,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -102,13 +102,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsEditCheckGet(context.Background()).Id(id).Execute() + resp, r, err := apiClient.RevisionAPI.AnswerApiV1RevisionsEditCheckGet(context.Background()).Id(id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsEditCheckGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `RevisionAPI.AnswerApiV1RevisionsEditCheckGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1RevisionsEditCheckGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsEditCheckGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `RevisionAPI.AnswerApiV1RevisionsEditCheckGet`: %v\n", resp) } ``` @@ -160,7 +160,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -168,13 +168,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsGet(context.Background()).ObjectId(objectId).Execute() + resp, r, err := apiClient.RevisionAPI.AnswerApiV1RevisionsGet(context.Background()).ObjectId(objectId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `RevisionAPI.AnswerApiV1RevisionsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1RevisionsGet`: AnswerApiV1RevisionsGet200Response - fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `RevisionAPI.AnswerApiV1RevisionsGet`: %v\n", resp) } ``` @@ -226,7 +226,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -234,13 +234,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsUnreviewedGet(context.Background()).Page(page).Execute() + resp, r, err := apiClient.RevisionAPI.AnswerApiV1RevisionsUnreviewedGet(context.Background()).Page(page).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsUnreviewedGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `RevisionAPI.AnswerApiV1RevisionsUnreviewedGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1RevisionsUnreviewedGet`: AnswerApiV1RevisionsUnreviewedGet200Response - fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsUnreviewedGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `RevisionAPI.AnswerApiV1RevisionsUnreviewedGet`: %v\n", resp) } ``` diff --git a/docs/SchemaAnswerAcceptedReq.md b/docs/SchemaAcceptAnswerReq.md similarity index 58% rename from docs/SchemaAnswerAcceptedReq.md rename to docs/SchemaAcceptAnswerReq.md index 47412d4..fba959c 100644 --- a/docs/SchemaAnswerAcceptedReq.md +++ b/docs/SchemaAcceptAnswerReq.md @@ -1,80 +1,75 @@ -# SchemaAnswerAcceptedReq +# SchemaAcceptAnswerReq ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AnswerId** | Pointer to **string** | | [optional] -**QuestionId** | Pointer to **string** | | [optional] +**QuestionId** | **string** | | ## Methods -### NewSchemaAnswerAcceptedReq +### NewSchemaAcceptAnswerReq -`func NewSchemaAnswerAcceptedReq() *SchemaAnswerAcceptedReq` +`func NewSchemaAcceptAnswerReq(questionId string, ) *SchemaAcceptAnswerReq` -NewSchemaAnswerAcceptedReq instantiates a new SchemaAnswerAcceptedReq object +NewSchemaAcceptAnswerReq instantiates a new SchemaAcceptAnswerReq object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewSchemaAnswerAcceptedReqWithDefaults +### NewSchemaAcceptAnswerReqWithDefaults -`func NewSchemaAnswerAcceptedReqWithDefaults() *SchemaAnswerAcceptedReq` +`func NewSchemaAcceptAnswerReqWithDefaults() *SchemaAcceptAnswerReq` -NewSchemaAnswerAcceptedReqWithDefaults instantiates a new SchemaAnswerAcceptedReq object +NewSchemaAcceptAnswerReqWithDefaults instantiates a new SchemaAcceptAnswerReq object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetAnswerId -`func (o *SchemaAnswerAcceptedReq) GetAnswerId() string` +`func (o *SchemaAcceptAnswerReq) GetAnswerId() string` GetAnswerId returns the AnswerId field if non-nil, zero value otherwise. ### GetAnswerIdOk -`func (o *SchemaAnswerAcceptedReq) GetAnswerIdOk() (*string, bool)` +`func (o *SchemaAcceptAnswerReq) GetAnswerIdOk() (*string, bool)` GetAnswerIdOk returns a tuple with the AnswerId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAnswerId -`func (o *SchemaAnswerAcceptedReq) SetAnswerId(v string)` +`func (o *SchemaAcceptAnswerReq) SetAnswerId(v string)` SetAnswerId sets AnswerId field to given value. ### HasAnswerId -`func (o *SchemaAnswerAcceptedReq) HasAnswerId() bool` +`func (o *SchemaAcceptAnswerReq) HasAnswerId() bool` HasAnswerId returns a boolean if a field has been set. ### GetQuestionId -`func (o *SchemaAnswerAcceptedReq) GetQuestionId() string` +`func (o *SchemaAcceptAnswerReq) GetQuestionId() string` GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. ### GetQuestionIdOk -`func (o *SchemaAnswerAcceptedReq) GetQuestionIdOk() (*string, bool)` +`func (o *SchemaAcceptAnswerReq) GetQuestionIdOk() (*string, bool)` GetQuestionIdOk returns a tuple with the QuestionId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetQuestionId -`func (o *SchemaAnswerAcceptedReq) SetQuestionId(v string)` +`func (o *SchemaAcceptAnswerReq) SetQuestionId(v string)` SetQuestionId sets QuestionId field to given value. -### HasQuestionId - -`func (o *SchemaAnswerAcceptedReq) HasQuestionId() bool` - -HasQuestionId returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SchemaAddUsersReq.md b/docs/SchemaAddUsersReq.md new file mode 100644 index 0000000..b5e24ce --- /dev/null +++ b/docs/SchemaAddUsersReq.md @@ -0,0 +1,56 @@ +# SchemaAddUsersReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Users** | Pointer to **string** | users info line by line | [optional] + +## Methods + +### NewSchemaAddUsersReq + +`func NewSchemaAddUsersReq() *SchemaAddUsersReq` + +NewSchemaAddUsersReq instantiates a new SchemaAddUsersReq object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaAddUsersReqWithDefaults + +`func NewSchemaAddUsersReqWithDefaults() *SchemaAddUsersReq` + +NewSchemaAddUsersReqWithDefaults instantiates a new SchemaAddUsersReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsers + +`func (o *SchemaAddUsersReq) GetUsers() string` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *SchemaAddUsersReq) GetUsersOk() (*string, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *SchemaAddUsersReq) SetUsers(v string)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *SchemaAddUsersReq) HasUsers() bool` + +HasUsers returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaAnswerAddReq.md b/docs/SchemaAnswerAddReq.md index e82e2f4..ebbb9ca 100644 --- a/docs/SchemaAnswerAddReq.md +++ b/docs/SchemaAnswerAddReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CaptchaCode** | Pointer to **string** | | [optional] -**CaptchaId** | Pointer to **string** | captcha_id | [optional] +**CaptchaId** | Pointer to **string** | | [optional] **Content** | **string** | | **QuestionId** | Pointer to **string** | | [optional] diff --git a/docs/SchemaAnswerUpdateReq.md b/docs/SchemaAnswerUpdateReq.md index 9c90a13..fc7a9a7 100644 --- a/docs/SchemaAnswerUpdateReq.md +++ b/docs/SchemaAnswerUpdateReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CaptchaCode** | Pointer to **string** | | [optional] -**CaptchaId** | Pointer to **string** | captcha_id | [optional] +**CaptchaId** | Pointer to **string** | | [optional] **Content** | **string** | | **EditSummary** | Pointer to **string** | | [optional] **Id** | Pointer to **string** | | [optional] diff --git a/docs/SchemaGetCurrentLoginUserInfoResp.md b/docs/SchemaGetCurrentLoginUserInfoResp.md index f15dff9..8eeef56 100644 --- a/docs/SchemaGetCurrentLoginUserInfoResp.md +++ b/docs/SchemaGetCurrentLoginUserInfoResp.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **DisplayName** | Pointer to **string** | display name | [optional] **EMail** | Pointer to **string** | email | [optional] **FollowCount** | Pointer to **int32** | follow count | [optional] -**HavePassword** | Pointer to **bool** | | [optional] +**HavePassword** | Pointer to **bool** | user have password | [optional] **Id** | Pointer to **string** | user id | [optional] **IpInfo** | Pointer to **string** | ip info | [optional] **Language** | Pointer to **string** | language | [optional] diff --git a/docs/SchemaGetRankPersonalWithPageResp.md b/docs/SchemaGetRankPersonalWithPageResp.md deleted file mode 100644 index 9b7adac..0000000 --- a/docs/SchemaGetRankPersonalWithPageResp.md +++ /dev/null @@ -1,290 +0,0 @@ -# SchemaGetRankPersonalWithPageResp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AnswerId** | Pointer to **string** | answer id | [optional] -**Content** | Pointer to **string** | content | [optional] -**CreatedAt** | Pointer to **int32** | create time | [optional] -**ObjectId** | Pointer to **string** | object id | [optional] -**ObjectType** | Pointer to **string** | object type | [optional] -**QuestionId** | Pointer to **string** | question id | [optional] -**RankType** | Pointer to **string** | rank type | [optional] -**Reputation** | Pointer to **int32** | reputation | [optional] -**Title** | Pointer to **string** | title | [optional] -**UrlTitle** | Pointer to **string** | url title | [optional] - -## Methods - -### NewSchemaGetRankPersonalWithPageResp - -`func NewSchemaGetRankPersonalWithPageResp() *SchemaGetRankPersonalWithPageResp` - -NewSchemaGetRankPersonalWithPageResp instantiates a new SchemaGetRankPersonalWithPageResp object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaGetRankPersonalWithPageRespWithDefaults - -`func NewSchemaGetRankPersonalWithPageRespWithDefaults() *SchemaGetRankPersonalWithPageResp` - -NewSchemaGetRankPersonalWithPageRespWithDefaults instantiates a new SchemaGetRankPersonalWithPageResp object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAnswerId - -`func (o *SchemaGetRankPersonalWithPageResp) GetAnswerId() string` - -GetAnswerId returns the AnswerId field if non-nil, zero value otherwise. - -### GetAnswerIdOk - -`func (o *SchemaGetRankPersonalWithPageResp) GetAnswerIdOk() (*string, bool)` - -GetAnswerIdOk returns a tuple with the AnswerId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAnswerId - -`func (o *SchemaGetRankPersonalWithPageResp) SetAnswerId(v string)` - -SetAnswerId sets AnswerId field to given value. - -### HasAnswerId - -`func (o *SchemaGetRankPersonalWithPageResp) HasAnswerId() bool` - -HasAnswerId returns a boolean if a field has been set. - -### GetContent - -`func (o *SchemaGetRankPersonalWithPageResp) GetContent() string` - -GetContent returns the Content field if non-nil, zero value otherwise. - -### GetContentOk - -`func (o *SchemaGetRankPersonalWithPageResp) GetContentOk() (*string, bool)` - -GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContent - -`func (o *SchemaGetRankPersonalWithPageResp) SetContent(v string)` - -SetContent sets Content field to given value. - -### HasContent - -`func (o *SchemaGetRankPersonalWithPageResp) HasContent() bool` - -HasContent returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *SchemaGetRankPersonalWithPageResp) GetCreatedAt() int32` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *SchemaGetRankPersonalWithPageResp) GetCreatedAtOk() (*int32, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *SchemaGetRankPersonalWithPageResp) SetCreatedAt(v int32)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *SchemaGetRankPersonalWithPageResp) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetObjectId - -`func (o *SchemaGetRankPersonalWithPageResp) GetObjectId() string` - -GetObjectId returns the ObjectId field if non-nil, zero value otherwise. - -### GetObjectIdOk - -`func (o *SchemaGetRankPersonalWithPageResp) GetObjectIdOk() (*string, bool)` - -GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectId - -`func (o *SchemaGetRankPersonalWithPageResp) SetObjectId(v string)` - -SetObjectId sets ObjectId field to given value. - -### HasObjectId - -`func (o *SchemaGetRankPersonalWithPageResp) HasObjectId() bool` - -HasObjectId returns a boolean if a field has been set. - -### GetObjectType - -`func (o *SchemaGetRankPersonalWithPageResp) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SchemaGetRankPersonalWithPageResp) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SchemaGetRankPersonalWithPageResp) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - -### HasObjectType - -`func (o *SchemaGetRankPersonalWithPageResp) HasObjectType() bool` - -HasObjectType returns a boolean if a field has been set. - -### GetQuestionId - -`func (o *SchemaGetRankPersonalWithPageResp) GetQuestionId() string` - -GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. - -### GetQuestionIdOk - -`func (o *SchemaGetRankPersonalWithPageResp) GetQuestionIdOk() (*string, bool)` - -GetQuestionIdOk returns a tuple with the QuestionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuestionId - -`func (o *SchemaGetRankPersonalWithPageResp) SetQuestionId(v string)` - -SetQuestionId sets QuestionId field to given value. - -### HasQuestionId - -`func (o *SchemaGetRankPersonalWithPageResp) HasQuestionId() bool` - -HasQuestionId returns a boolean if a field has been set. - -### GetRankType - -`func (o *SchemaGetRankPersonalWithPageResp) GetRankType() string` - -GetRankType returns the RankType field if non-nil, zero value otherwise. - -### GetRankTypeOk - -`func (o *SchemaGetRankPersonalWithPageResp) GetRankTypeOk() (*string, bool)` - -GetRankTypeOk returns a tuple with the RankType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRankType - -`func (o *SchemaGetRankPersonalWithPageResp) SetRankType(v string)` - -SetRankType sets RankType field to given value. - -### HasRankType - -`func (o *SchemaGetRankPersonalWithPageResp) HasRankType() bool` - -HasRankType returns a boolean if a field has been set. - -### GetReputation - -`func (o *SchemaGetRankPersonalWithPageResp) GetReputation() int32` - -GetReputation returns the Reputation field if non-nil, zero value otherwise. - -### GetReputationOk - -`func (o *SchemaGetRankPersonalWithPageResp) GetReputationOk() (*int32, bool)` - -GetReputationOk returns a tuple with the Reputation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReputation - -`func (o *SchemaGetRankPersonalWithPageResp) SetReputation(v int32)` - -SetReputation sets Reputation field to given value. - -### HasReputation - -`func (o *SchemaGetRankPersonalWithPageResp) HasReputation() bool` - -HasReputation returns a boolean if a field has been set. - -### GetTitle - -`func (o *SchemaGetRankPersonalWithPageResp) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *SchemaGetRankPersonalWithPageResp) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *SchemaGetRankPersonalWithPageResp) SetTitle(v string)` - -SetTitle sets Title field to given value. - -### HasTitle - -`func (o *SchemaGetRankPersonalWithPageResp) HasTitle() bool` - -HasTitle returns a boolean if a field has been set. - -### GetUrlTitle - -`func (o *SchemaGetRankPersonalWithPageResp) GetUrlTitle() string` - -GetUrlTitle returns the UrlTitle field if non-nil, zero value otherwise. - -### GetUrlTitleOk - -`func (o *SchemaGetRankPersonalWithPageResp) GetUrlTitleOk() (*string, bool)` - -GetUrlTitleOk returns a tuple with the UrlTitle field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrlTitle - -`func (o *SchemaGetRankPersonalWithPageResp) SetUrlTitle(v string)` - -SetUrlTitle sets UrlTitle field to given value. - -### HasUrlTitle - -`func (o *SchemaGetRankPersonalWithPageResp) HasUrlTitle() bool` - -HasUrlTitle returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaGetReportTypeResp.md b/docs/SchemaGetReportTypeResp.md deleted file mode 100644 index 5a98a75..0000000 --- a/docs/SchemaGetReportTypeResp.md +++ /dev/null @@ -1,186 +0,0 @@ -# SchemaGetReportTypeResp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ContentType** | Pointer to **string** | content type | [optional] -**Description** | Pointer to **string** | report description | [optional] -**HaveContent** | Pointer to **bool** | is have content | [optional] -**Name** | Pointer to **string** | report name | [optional] -**Source** | Pointer to **string** | report source | [optional] -**Type** | Pointer to **int32** | report type | [optional] - -## Methods - -### NewSchemaGetReportTypeResp - -`func NewSchemaGetReportTypeResp() *SchemaGetReportTypeResp` - -NewSchemaGetReportTypeResp instantiates a new SchemaGetReportTypeResp object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaGetReportTypeRespWithDefaults - -`func NewSchemaGetReportTypeRespWithDefaults() *SchemaGetReportTypeResp` - -NewSchemaGetReportTypeRespWithDefaults instantiates a new SchemaGetReportTypeResp object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetContentType - -`func (o *SchemaGetReportTypeResp) GetContentType() string` - -GetContentType returns the ContentType field if non-nil, zero value otherwise. - -### GetContentTypeOk - -`func (o *SchemaGetReportTypeResp) GetContentTypeOk() (*string, bool)` - -GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContentType - -`func (o *SchemaGetReportTypeResp) SetContentType(v string)` - -SetContentType sets ContentType field to given value. - -### HasContentType - -`func (o *SchemaGetReportTypeResp) HasContentType() bool` - -HasContentType returns a boolean if a field has been set. - -### GetDescription - -`func (o *SchemaGetReportTypeResp) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *SchemaGetReportTypeResp) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *SchemaGetReportTypeResp) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *SchemaGetReportTypeResp) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### GetHaveContent - -`func (o *SchemaGetReportTypeResp) GetHaveContent() bool` - -GetHaveContent returns the HaveContent field if non-nil, zero value otherwise. - -### GetHaveContentOk - -`func (o *SchemaGetReportTypeResp) GetHaveContentOk() (*bool, bool)` - -GetHaveContentOk returns a tuple with the HaveContent field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHaveContent - -`func (o *SchemaGetReportTypeResp) SetHaveContent(v bool)` - -SetHaveContent sets HaveContent field to given value. - -### HasHaveContent - -`func (o *SchemaGetReportTypeResp) HasHaveContent() bool` - -HasHaveContent returns a boolean if a field has been set. - -### GetName - -`func (o *SchemaGetReportTypeResp) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *SchemaGetReportTypeResp) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *SchemaGetReportTypeResp) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *SchemaGetReportTypeResp) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetSource - -`func (o *SchemaGetReportTypeResp) GetSource() string` - -GetSource returns the Source field if non-nil, zero value otherwise. - -### GetSourceOk - -`func (o *SchemaGetReportTypeResp) GetSourceOk() (*string, bool)` - -GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSource - -`func (o *SchemaGetReportTypeResp) SetSource(v string)` - -SetSource sets Source field to given value. - -### HasSource - -`func (o *SchemaGetReportTypeResp) HasSource() bool` - -HasSource returns a boolean if a field has been set. - -### GetType - -`func (o *SchemaGetReportTypeResp) GetType() int32` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *SchemaGetReportTypeResp) GetTypeOk() (*int32, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *SchemaGetReportTypeResp) SetType(v int32)` - -SetType sets Type field to given value. - -### HasType - -`func (o *SchemaGetReportTypeResp) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaGetUserNotificationConfigResp.md b/docs/SchemaGetUserNotificationConfigResp.md new file mode 100644 index 0000000..6ce76a6 --- /dev/null +++ b/docs/SchemaGetUserNotificationConfigResp.md @@ -0,0 +1,108 @@ +# SchemaGetUserNotificationConfigResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllNewQuestion** | Pointer to [**[]SchemaNotificationChannelConfig**](SchemaNotificationChannelConfig.md) | | [optional] +**AllNewQuestionForFollowingTags** | Pointer to [**[]SchemaNotificationChannelConfig**](SchemaNotificationChannelConfig.md) | | [optional] +**Inbox** | Pointer to [**[]SchemaNotificationChannelConfig**](SchemaNotificationChannelConfig.md) | | [optional] + +## Methods + +### NewSchemaGetUserNotificationConfigResp + +`func NewSchemaGetUserNotificationConfigResp() *SchemaGetUserNotificationConfigResp` + +NewSchemaGetUserNotificationConfigResp instantiates a new SchemaGetUserNotificationConfigResp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaGetUserNotificationConfigRespWithDefaults + +`func NewSchemaGetUserNotificationConfigRespWithDefaults() *SchemaGetUserNotificationConfigResp` + +NewSchemaGetUserNotificationConfigRespWithDefaults instantiates a new SchemaGetUserNotificationConfigResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAllNewQuestion + +`func (o *SchemaGetUserNotificationConfigResp) GetAllNewQuestion() []SchemaNotificationChannelConfig` + +GetAllNewQuestion returns the AllNewQuestion field if non-nil, zero value otherwise. + +### GetAllNewQuestionOk + +`func (o *SchemaGetUserNotificationConfigResp) GetAllNewQuestionOk() (*[]SchemaNotificationChannelConfig, bool)` + +GetAllNewQuestionOk returns a tuple with the AllNewQuestion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllNewQuestion + +`func (o *SchemaGetUserNotificationConfigResp) SetAllNewQuestion(v []SchemaNotificationChannelConfig)` + +SetAllNewQuestion sets AllNewQuestion field to given value. + +### HasAllNewQuestion + +`func (o *SchemaGetUserNotificationConfigResp) HasAllNewQuestion() bool` + +HasAllNewQuestion returns a boolean if a field has been set. + +### GetAllNewQuestionForFollowingTags + +`func (o *SchemaGetUserNotificationConfigResp) GetAllNewQuestionForFollowingTags() []SchemaNotificationChannelConfig` + +GetAllNewQuestionForFollowingTags returns the AllNewQuestionForFollowingTags field if non-nil, zero value otherwise. + +### GetAllNewQuestionForFollowingTagsOk + +`func (o *SchemaGetUserNotificationConfigResp) GetAllNewQuestionForFollowingTagsOk() (*[]SchemaNotificationChannelConfig, bool)` + +GetAllNewQuestionForFollowingTagsOk returns a tuple with the AllNewQuestionForFollowingTags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllNewQuestionForFollowingTags + +`func (o *SchemaGetUserNotificationConfigResp) SetAllNewQuestionForFollowingTags(v []SchemaNotificationChannelConfig)` + +SetAllNewQuestionForFollowingTags sets AllNewQuestionForFollowingTags field to given value. + +### HasAllNewQuestionForFollowingTags + +`func (o *SchemaGetUserNotificationConfigResp) HasAllNewQuestionForFollowingTags() bool` + +HasAllNewQuestionForFollowingTags returns a boolean if a field has been set. + +### GetInbox + +`func (o *SchemaGetUserNotificationConfigResp) GetInbox() []SchemaNotificationChannelConfig` + +GetInbox returns the Inbox field if non-nil, zero value otherwise. + +### GetInboxOk + +`func (o *SchemaGetUserNotificationConfigResp) GetInboxOk() (*[]SchemaNotificationChannelConfig, bool)` + +GetInboxOk returns a tuple with the Inbox field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInbox + +`func (o *SchemaGetUserNotificationConfigResp) SetInbox(v []SchemaNotificationChannelConfig)` + +SetInbox sets Inbox field to given value. + +### HasInbox + +`func (o *SchemaGetUserNotificationConfigResp) HasInbox() bool` + +HasInbox returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaGetUserResp.md b/docs/SchemaGetUserResp.md deleted file mode 100644 index 8c83786..0000000 --- a/docs/SchemaGetUserResp.md +++ /dev/null @@ -1,654 +0,0 @@ -# SchemaGetUserResp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccessToken** | Pointer to **string** | access token | [optional] -**AnswerCount** | Pointer to **int32** | answer count | [optional] -**AuthorityGroup** | Pointer to **int32** | authority group | [optional] -**Avatar** | Pointer to **string** | avatar | [optional] -**Bio** | Pointer to **string** | bio markdown | [optional] -**BioHtml** | Pointer to **string** | bio html | [optional] -**CreatedAt** | Pointer to **int32** | create time | [optional] -**DisplayName** | Pointer to **string** | display name | [optional] -**EMail** | Pointer to **string** | email | [optional] -**FollowCount** | Pointer to **int32** | follow count | [optional] -**Id** | Pointer to **string** | user id | [optional] -**IpInfo** | Pointer to **string** | ip info | [optional] -**Language** | Pointer to **string** | language | [optional] -**LastLoginDate** | Pointer to **int32** | last login date | [optional] -**Location** | Pointer to **string** | location | [optional] -**MailStatus** | Pointer to **int32** | mail status(1 pass 2 to be verified) | [optional] -**Mobile** | Pointer to **string** | mobile | [optional] -**NoticeStatus** | Pointer to **int32** | notice status(1 on 2off) | [optional] -**QuestionCount** | Pointer to **int32** | question count | [optional] -**Rank** | Pointer to **int32** | rank | [optional] -**RoleId** | Pointer to **int32** | role id | [optional] -**Status** | Pointer to **string** | user status | [optional] -**Username** | Pointer to **string** | username | [optional] -**Website** | Pointer to **string** | website | [optional] - -## Methods - -### NewSchemaGetUserResp - -`func NewSchemaGetUserResp() *SchemaGetUserResp` - -NewSchemaGetUserResp instantiates a new SchemaGetUserResp object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaGetUserRespWithDefaults - -`func NewSchemaGetUserRespWithDefaults() *SchemaGetUserResp` - -NewSchemaGetUserRespWithDefaults instantiates a new SchemaGetUserResp object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAccessToken - -`func (o *SchemaGetUserResp) GetAccessToken() string` - -GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. - -### GetAccessTokenOk - -`func (o *SchemaGetUserResp) GetAccessTokenOk() (*string, bool)` - -GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessToken - -`func (o *SchemaGetUserResp) SetAccessToken(v string)` - -SetAccessToken sets AccessToken field to given value. - -### HasAccessToken - -`func (o *SchemaGetUserResp) HasAccessToken() bool` - -HasAccessToken returns a boolean if a field has been set. - -### GetAnswerCount - -`func (o *SchemaGetUserResp) GetAnswerCount() int32` - -GetAnswerCount returns the AnswerCount field if non-nil, zero value otherwise. - -### GetAnswerCountOk - -`func (o *SchemaGetUserResp) GetAnswerCountOk() (*int32, bool)` - -GetAnswerCountOk returns a tuple with the AnswerCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAnswerCount - -`func (o *SchemaGetUserResp) SetAnswerCount(v int32)` - -SetAnswerCount sets AnswerCount field to given value. - -### HasAnswerCount - -`func (o *SchemaGetUserResp) HasAnswerCount() bool` - -HasAnswerCount returns a boolean if a field has been set. - -### GetAuthorityGroup - -`func (o *SchemaGetUserResp) GetAuthorityGroup() int32` - -GetAuthorityGroup returns the AuthorityGroup field if non-nil, zero value otherwise. - -### GetAuthorityGroupOk - -`func (o *SchemaGetUserResp) GetAuthorityGroupOk() (*int32, bool)` - -GetAuthorityGroupOk returns a tuple with the AuthorityGroup field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuthorityGroup - -`func (o *SchemaGetUserResp) SetAuthorityGroup(v int32)` - -SetAuthorityGroup sets AuthorityGroup field to given value. - -### HasAuthorityGroup - -`func (o *SchemaGetUserResp) HasAuthorityGroup() bool` - -HasAuthorityGroup returns a boolean if a field has been set. - -### GetAvatar - -`func (o *SchemaGetUserResp) GetAvatar() string` - -GetAvatar returns the Avatar field if non-nil, zero value otherwise. - -### GetAvatarOk - -`func (o *SchemaGetUserResp) GetAvatarOk() (*string, bool)` - -GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvatar - -`func (o *SchemaGetUserResp) SetAvatar(v string)` - -SetAvatar sets Avatar field to given value. - -### HasAvatar - -`func (o *SchemaGetUserResp) HasAvatar() bool` - -HasAvatar returns a boolean if a field has been set. - -### GetBio - -`func (o *SchemaGetUserResp) GetBio() string` - -GetBio returns the Bio field if non-nil, zero value otherwise. - -### GetBioOk - -`func (o *SchemaGetUserResp) GetBioOk() (*string, bool)` - -GetBioOk returns a tuple with the Bio field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBio - -`func (o *SchemaGetUserResp) SetBio(v string)` - -SetBio sets Bio field to given value. - -### HasBio - -`func (o *SchemaGetUserResp) HasBio() bool` - -HasBio returns a boolean if a field has been set. - -### GetBioHtml - -`func (o *SchemaGetUserResp) GetBioHtml() string` - -GetBioHtml returns the BioHtml field if non-nil, zero value otherwise. - -### GetBioHtmlOk - -`func (o *SchemaGetUserResp) GetBioHtmlOk() (*string, bool)` - -GetBioHtmlOk returns a tuple with the BioHtml field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBioHtml - -`func (o *SchemaGetUserResp) SetBioHtml(v string)` - -SetBioHtml sets BioHtml field to given value. - -### HasBioHtml - -`func (o *SchemaGetUserResp) HasBioHtml() bool` - -HasBioHtml returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *SchemaGetUserResp) GetCreatedAt() int32` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *SchemaGetUserResp) GetCreatedAtOk() (*int32, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *SchemaGetUserResp) SetCreatedAt(v int32)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *SchemaGetUserResp) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetDisplayName - -`func (o *SchemaGetUserResp) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *SchemaGetUserResp) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *SchemaGetUserResp) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - -### HasDisplayName - -`func (o *SchemaGetUserResp) HasDisplayName() bool` - -HasDisplayName returns a boolean if a field has been set. - -### GetEMail - -`func (o *SchemaGetUserResp) GetEMail() string` - -GetEMail returns the EMail field if non-nil, zero value otherwise. - -### GetEMailOk - -`func (o *SchemaGetUserResp) GetEMailOk() (*string, bool)` - -GetEMailOk returns a tuple with the EMail field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEMail - -`func (o *SchemaGetUserResp) SetEMail(v string)` - -SetEMail sets EMail field to given value. - -### HasEMail - -`func (o *SchemaGetUserResp) HasEMail() bool` - -HasEMail returns a boolean if a field has been set. - -### GetFollowCount - -`func (o *SchemaGetUserResp) GetFollowCount() int32` - -GetFollowCount returns the FollowCount field if non-nil, zero value otherwise. - -### GetFollowCountOk - -`func (o *SchemaGetUserResp) GetFollowCountOk() (*int32, bool)` - -GetFollowCountOk returns a tuple with the FollowCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFollowCount - -`func (o *SchemaGetUserResp) SetFollowCount(v int32)` - -SetFollowCount sets FollowCount field to given value. - -### HasFollowCount - -`func (o *SchemaGetUserResp) HasFollowCount() bool` - -HasFollowCount returns a boolean if a field has been set. - -### GetId - -`func (o *SchemaGetUserResp) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *SchemaGetUserResp) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *SchemaGetUserResp) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *SchemaGetUserResp) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetIpInfo - -`func (o *SchemaGetUserResp) GetIpInfo() string` - -GetIpInfo returns the IpInfo field if non-nil, zero value otherwise. - -### GetIpInfoOk - -`func (o *SchemaGetUserResp) GetIpInfoOk() (*string, bool)` - -GetIpInfoOk returns a tuple with the IpInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpInfo - -`func (o *SchemaGetUserResp) SetIpInfo(v string)` - -SetIpInfo sets IpInfo field to given value. - -### HasIpInfo - -`func (o *SchemaGetUserResp) HasIpInfo() bool` - -HasIpInfo returns a boolean if a field has been set. - -### GetLanguage - -`func (o *SchemaGetUserResp) GetLanguage() string` - -GetLanguage returns the Language field if non-nil, zero value otherwise. - -### GetLanguageOk - -`func (o *SchemaGetUserResp) GetLanguageOk() (*string, bool)` - -GetLanguageOk returns a tuple with the Language field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLanguage - -`func (o *SchemaGetUserResp) SetLanguage(v string)` - -SetLanguage sets Language field to given value. - -### HasLanguage - -`func (o *SchemaGetUserResp) HasLanguage() bool` - -HasLanguage returns a boolean if a field has been set. - -### GetLastLoginDate - -`func (o *SchemaGetUserResp) GetLastLoginDate() int32` - -GetLastLoginDate returns the LastLoginDate field if non-nil, zero value otherwise. - -### GetLastLoginDateOk - -`func (o *SchemaGetUserResp) GetLastLoginDateOk() (*int32, bool)` - -GetLastLoginDateOk returns a tuple with the LastLoginDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastLoginDate - -`func (o *SchemaGetUserResp) SetLastLoginDate(v int32)` - -SetLastLoginDate sets LastLoginDate field to given value. - -### HasLastLoginDate - -`func (o *SchemaGetUserResp) HasLastLoginDate() bool` - -HasLastLoginDate returns a boolean if a field has been set. - -### GetLocation - -`func (o *SchemaGetUserResp) GetLocation() string` - -GetLocation returns the Location field if non-nil, zero value otherwise. - -### GetLocationOk - -`func (o *SchemaGetUserResp) GetLocationOk() (*string, bool)` - -GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLocation - -`func (o *SchemaGetUserResp) SetLocation(v string)` - -SetLocation sets Location field to given value. - -### HasLocation - -`func (o *SchemaGetUserResp) HasLocation() bool` - -HasLocation returns a boolean if a field has been set. - -### GetMailStatus - -`func (o *SchemaGetUserResp) GetMailStatus() int32` - -GetMailStatus returns the MailStatus field if non-nil, zero value otherwise. - -### GetMailStatusOk - -`func (o *SchemaGetUserResp) GetMailStatusOk() (*int32, bool)` - -GetMailStatusOk returns a tuple with the MailStatus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMailStatus - -`func (o *SchemaGetUserResp) SetMailStatus(v int32)` - -SetMailStatus sets MailStatus field to given value. - -### HasMailStatus - -`func (o *SchemaGetUserResp) HasMailStatus() bool` - -HasMailStatus returns a boolean if a field has been set. - -### GetMobile - -`func (o *SchemaGetUserResp) GetMobile() string` - -GetMobile returns the Mobile field if non-nil, zero value otherwise. - -### GetMobileOk - -`func (o *SchemaGetUserResp) GetMobileOk() (*string, bool)` - -GetMobileOk returns a tuple with the Mobile field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMobile - -`func (o *SchemaGetUserResp) SetMobile(v string)` - -SetMobile sets Mobile field to given value. - -### HasMobile - -`func (o *SchemaGetUserResp) HasMobile() bool` - -HasMobile returns a boolean if a field has been set. - -### GetNoticeStatus - -`func (o *SchemaGetUserResp) GetNoticeStatus() int32` - -GetNoticeStatus returns the NoticeStatus field if non-nil, zero value otherwise. - -### GetNoticeStatusOk - -`func (o *SchemaGetUserResp) GetNoticeStatusOk() (*int32, bool)` - -GetNoticeStatusOk returns a tuple with the NoticeStatus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNoticeStatus - -`func (o *SchemaGetUserResp) SetNoticeStatus(v int32)` - -SetNoticeStatus sets NoticeStatus field to given value. - -### HasNoticeStatus - -`func (o *SchemaGetUserResp) HasNoticeStatus() bool` - -HasNoticeStatus returns a boolean if a field has been set. - -### GetQuestionCount - -`func (o *SchemaGetUserResp) GetQuestionCount() int32` - -GetQuestionCount returns the QuestionCount field if non-nil, zero value otherwise. - -### GetQuestionCountOk - -`func (o *SchemaGetUserResp) GetQuestionCountOk() (*int32, bool)` - -GetQuestionCountOk returns a tuple with the QuestionCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuestionCount - -`func (o *SchemaGetUserResp) SetQuestionCount(v int32)` - -SetQuestionCount sets QuestionCount field to given value. - -### HasQuestionCount - -`func (o *SchemaGetUserResp) HasQuestionCount() bool` - -HasQuestionCount returns a boolean if a field has been set. - -### GetRank - -`func (o *SchemaGetUserResp) GetRank() int32` - -GetRank returns the Rank field if non-nil, zero value otherwise. - -### GetRankOk - -`func (o *SchemaGetUserResp) GetRankOk() (*int32, bool)` - -GetRankOk returns a tuple with the Rank field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRank - -`func (o *SchemaGetUserResp) SetRank(v int32)` - -SetRank sets Rank field to given value. - -### HasRank - -`func (o *SchemaGetUserResp) HasRank() bool` - -HasRank returns a boolean if a field has been set. - -### GetRoleId - -`func (o *SchemaGetUserResp) GetRoleId() int32` - -GetRoleId returns the RoleId field if non-nil, zero value otherwise. - -### GetRoleIdOk - -`func (o *SchemaGetUserResp) GetRoleIdOk() (*int32, bool)` - -GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRoleId - -`func (o *SchemaGetUserResp) SetRoleId(v int32)` - -SetRoleId sets RoleId field to given value. - -### HasRoleId - -`func (o *SchemaGetUserResp) HasRoleId() bool` - -HasRoleId returns a boolean if a field has been set. - -### GetStatus - -`func (o *SchemaGetUserResp) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *SchemaGetUserResp) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *SchemaGetUserResp) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *SchemaGetUserResp) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetUsername - -`func (o *SchemaGetUserResp) GetUsername() string` - -GetUsername returns the Username field if non-nil, zero value otherwise. - -### GetUsernameOk - -`func (o *SchemaGetUserResp) GetUsernameOk() (*string, bool)` - -GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUsername - -`func (o *SchemaGetUserResp) SetUsername(v string)` - -SetUsername sets Username field to given value. - -### HasUsername - -`func (o *SchemaGetUserResp) HasUsername() bool` - -HasUsername returns a boolean if a field has been set. - -### GetWebsite - -`func (o *SchemaGetUserResp) GetWebsite() string` - -GetWebsite returns the Website field if non-nil, zero value otherwise. - -### GetWebsiteOk - -`func (o *SchemaGetUserResp) GetWebsiteOk() (*string, bool)` - -GetWebsiteOk returns a tuple with the Website field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWebsite - -`func (o *SchemaGetUserResp) SetWebsite(v string)` - -SetWebsite sets Website field to given value. - -### HasWebsite - -`func (o *SchemaGetUserResp) HasWebsite() bool` - -HasWebsite returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaGetUserToSetShowResp.md b/docs/SchemaGetUserToSetShowResp.md deleted file mode 100644 index 7cbdf71..0000000 --- a/docs/SchemaGetUserToSetShowResp.md +++ /dev/null @@ -1,654 +0,0 @@ -# SchemaGetUserToSetShowResp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccessToken** | Pointer to **string** | access token | [optional] -**AnswerCount** | Pointer to **int32** | answer count | [optional] -**AuthorityGroup** | Pointer to **int32** | authority group | [optional] -**Avatar** | Pointer to [**SchemaAvatarInfo**](SchemaAvatarInfo.md) | | [optional] -**Bio** | Pointer to **string** | bio markdown | [optional] -**BioHtml** | Pointer to **string** | bio html | [optional] -**CreatedAt** | Pointer to **int32** | create time | [optional] -**DisplayName** | Pointer to **string** | display name | [optional] -**EMail** | Pointer to **string** | email | [optional] -**FollowCount** | Pointer to **int32** | follow count | [optional] -**Id** | Pointer to **string** | user id | [optional] -**IpInfo** | Pointer to **string** | ip info | [optional] -**Language** | Pointer to **string** | language | [optional] -**LastLoginDate** | Pointer to **int32** | last login date | [optional] -**Location** | Pointer to **string** | location | [optional] -**MailStatus** | Pointer to **int32** | mail status(1 pass 2 to be verified) | [optional] -**Mobile** | Pointer to **string** | mobile | [optional] -**NoticeStatus** | Pointer to **int32** | notice status(1 on 2off) | [optional] -**QuestionCount** | Pointer to **int32** | question count | [optional] -**Rank** | Pointer to **int32** | rank | [optional] -**RoleId** | Pointer to **int32** | role id | [optional] -**Status** | Pointer to **string** | user status | [optional] -**Username** | Pointer to **string** | username | [optional] -**Website** | Pointer to **string** | website | [optional] - -## Methods - -### NewSchemaGetUserToSetShowResp - -`func NewSchemaGetUserToSetShowResp() *SchemaGetUserToSetShowResp` - -NewSchemaGetUserToSetShowResp instantiates a new SchemaGetUserToSetShowResp object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaGetUserToSetShowRespWithDefaults - -`func NewSchemaGetUserToSetShowRespWithDefaults() *SchemaGetUserToSetShowResp` - -NewSchemaGetUserToSetShowRespWithDefaults instantiates a new SchemaGetUserToSetShowResp object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAccessToken - -`func (o *SchemaGetUserToSetShowResp) GetAccessToken() string` - -GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. - -### GetAccessTokenOk - -`func (o *SchemaGetUserToSetShowResp) GetAccessTokenOk() (*string, bool)` - -GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessToken - -`func (o *SchemaGetUserToSetShowResp) SetAccessToken(v string)` - -SetAccessToken sets AccessToken field to given value. - -### HasAccessToken - -`func (o *SchemaGetUserToSetShowResp) HasAccessToken() bool` - -HasAccessToken returns a boolean if a field has been set. - -### GetAnswerCount - -`func (o *SchemaGetUserToSetShowResp) GetAnswerCount() int32` - -GetAnswerCount returns the AnswerCount field if non-nil, zero value otherwise. - -### GetAnswerCountOk - -`func (o *SchemaGetUserToSetShowResp) GetAnswerCountOk() (*int32, bool)` - -GetAnswerCountOk returns a tuple with the AnswerCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAnswerCount - -`func (o *SchemaGetUserToSetShowResp) SetAnswerCount(v int32)` - -SetAnswerCount sets AnswerCount field to given value. - -### HasAnswerCount - -`func (o *SchemaGetUserToSetShowResp) HasAnswerCount() bool` - -HasAnswerCount returns a boolean if a field has been set. - -### GetAuthorityGroup - -`func (o *SchemaGetUserToSetShowResp) GetAuthorityGroup() int32` - -GetAuthorityGroup returns the AuthorityGroup field if non-nil, zero value otherwise. - -### GetAuthorityGroupOk - -`func (o *SchemaGetUserToSetShowResp) GetAuthorityGroupOk() (*int32, bool)` - -GetAuthorityGroupOk returns a tuple with the AuthorityGroup field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuthorityGroup - -`func (o *SchemaGetUserToSetShowResp) SetAuthorityGroup(v int32)` - -SetAuthorityGroup sets AuthorityGroup field to given value. - -### HasAuthorityGroup - -`func (o *SchemaGetUserToSetShowResp) HasAuthorityGroup() bool` - -HasAuthorityGroup returns a boolean if a field has been set. - -### GetAvatar - -`func (o *SchemaGetUserToSetShowResp) GetAvatar() SchemaAvatarInfo` - -GetAvatar returns the Avatar field if non-nil, zero value otherwise. - -### GetAvatarOk - -`func (o *SchemaGetUserToSetShowResp) GetAvatarOk() (*SchemaAvatarInfo, bool)` - -GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvatar - -`func (o *SchemaGetUserToSetShowResp) SetAvatar(v SchemaAvatarInfo)` - -SetAvatar sets Avatar field to given value. - -### HasAvatar - -`func (o *SchemaGetUserToSetShowResp) HasAvatar() bool` - -HasAvatar returns a boolean if a field has been set. - -### GetBio - -`func (o *SchemaGetUserToSetShowResp) GetBio() string` - -GetBio returns the Bio field if non-nil, zero value otherwise. - -### GetBioOk - -`func (o *SchemaGetUserToSetShowResp) GetBioOk() (*string, bool)` - -GetBioOk returns a tuple with the Bio field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBio - -`func (o *SchemaGetUserToSetShowResp) SetBio(v string)` - -SetBio sets Bio field to given value. - -### HasBio - -`func (o *SchemaGetUserToSetShowResp) HasBio() bool` - -HasBio returns a boolean if a field has been set. - -### GetBioHtml - -`func (o *SchemaGetUserToSetShowResp) GetBioHtml() string` - -GetBioHtml returns the BioHtml field if non-nil, zero value otherwise. - -### GetBioHtmlOk - -`func (o *SchemaGetUserToSetShowResp) GetBioHtmlOk() (*string, bool)` - -GetBioHtmlOk returns a tuple with the BioHtml field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBioHtml - -`func (o *SchemaGetUserToSetShowResp) SetBioHtml(v string)` - -SetBioHtml sets BioHtml field to given value. - -### HasBioHtml - -`func (o *SchemaGetUserToSetShowResp) HasBioHtml() bool` - -HasBioHtml returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *SchemaGetUserToSetShowResp) GetCreatedAt() int32` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *SchemaGetUserToSetShowResp) GetCreatedAtOk() (*int32, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *SchemaGetUserToSetShowResp) SetCreatedAt(v int32)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *SchemaGetUserToSetShowResp) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetDisplayName - -`func (o *SchemaGetUserToSetShowResp) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *SchemaGetUserToSetShowResp) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *SchemaGetUserToSetShowResp) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - -### HasDisplayName - -`func (o *SchemaGetUserToSetShowResp) HasDisplayName() bool` - -HasDisplayName returns a boolean if a field has been set. - -### GetEMail - -`func (o *SchemaGetUserToSetShowResp) GetEMail() string` - -GetEMail returns the EMail field if non-nil, zero value otherwise. - -### GetEMailOk - -`func (o *SchemaGetUserToSetShowResp) GetEMailOk() (*string, bool)` - -GetEMailOk returns a tuple with the EMail field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEMail - -`func (o *SchemaGetUserToSetShowResp) SetEMail(v string)` - -SetEMail sets EMail field to given value. - -### HasEMail - -`func (o *SchemaGetUserToSetShowResp) HasEMail() bool` - -HasEMail returns a boolean if a field has been set. - -### GetFollowCount - -`func (o *SchemaGetUserToSetShowResp) GetFollowCount() int32` - -GetFollowCount returns the FollowCount field if non-nil, zero value otherwise. - -### GetFollowCountOk - -`func (o *SchemaGetUserToSetShowResp) GetFollowCountOk() (*int32, bool)` - -GetFollowCountOk returns a tuple with the FollowCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFollowCount - -`func (o *SchemaGetUserToSetShowResp) SetFollowCount(v int32)` - -SetFollowCount sets FollowCount field to given value. - -### HasFollowCount - -`func (o *SchemaGetUserToSetShowResp) HasFollowCount() bool` - -HasFollowCount returns a boolean if a field has been set. - -### GetId - -`func (o *SchemaGetUserToSetShowResp) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *SchemaGetUserToSetShowResp) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *SchemaGetUserToSetShowResp) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *SchemaGetUserToSetShowResp) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetIpInfo - -`func (o *SchemaGetUserToSetShowResp) GetIpInfo() string` - -GetIpInfo returns the IpInfo field if non-nil, zero value otherwise. - -### GetIpInfoOk - -`func (o *SchemaGetUserToSetShowResp) GetIpInfoOk() (*string, bool)` - -GetIpInfoOk returns a tuple with the IpInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpInfo - -`func (o *SchemaGetUserToSetShowResp) SetIpInfo(v string)` - -SetIpInfo sets IpInfo field to given value. - -### HasIpInfo - -`func (o *SchemaGetUserToSetShowResp) HasIpInfo() bool` - -HasIpInfo returns a boolean if a field has been set. - -### GetLanguage - -`func (o *SchemaGetUserToSetShowResp) GetLanguage() string` - -GetLanguage returns the Language field if non-nil, zero value otherwise. - -### GetLanguageOk - -`func (o *SchemaGetUserToSetShowResp) GetLanguageOk() (*string, bool)` - -GetLanguageOk returns a tuple with the Language field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLanguage - -`func (o *SchemaGetUserToSetShowResp) SetLanguage(v string)` - -SetLanguage sets Language field to given value. - -### HasLanguage - -`func (o *SchemaGetUserToSetShowResp) HasLanguage() bool` - -HasLanguage returns a boolean if a field has been set. - -### GetLastLoginDate - -`func (o *SchemaGetUserToSetShowResp) GetLastLoginDate() int32` - -GetLastLoginDate returns the LastLoginDate field if non-nil, zero value otherwise. - -### GetLastLoginDateOk - -`func (o *SchemaGetUserToSetShowResp) GetLastLoginDateOk() (*int32, bool)` - -GetLastLoginDateOk returns a tuple with the LastLoginDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastLoginDate - -`func (o *SchemaGetUserToSetShowResp) SetLastLoginDate(v int32)` - -SetLastLoginDate sets LastLoginDate field to given value. - -### HasLastLoginDate - -`func (o *SchemaGetUserToSetShowResp) HasLastLoginDate() bool` - -HasLastLoginDate returns a boolean if a field has been set. - -### GetLocation - -`func (o *SchemaGetUserToSetShowResp) GetLocation() string` - -GetLocation returns the Location field if non-nil, zero value otherwise. - -### GetLocationOk - -`func (o *SchemaGetUserToSetShowResp) GetLocationOk() (*string, bool)` - -GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLocation - -`func (o *SchemaGetUserToSetShowResp) SetLocation(v string)` - -SetLocation sets Location field to given value. - -### HasLocation - -`func (o *SchemaGetUserToSetShowResp) HasLocation() bool` - -HasLocation returns a boolean if a field has been set. - -### GetMailStatus - -`func (o *SchemaGetUserToSetShowResp) GetMailStatus() int32` - -GetMailStatus returns the MailStatus field if non-nil, zero value otherwise. - -### GetMailStatusOk - -`func (o *SchemaGetUserToSetShowResp) GetMailStatusOk() (*int32, bool)` - -GetMailStatusOk returns a tuple with the MailStatus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMailStatus - -`func (o *SchemaGetUserToSetShowResp) SetMailStatus(v int32)` - -SetMailStatus sets MailStatus field to given value. - -### HasMailStatus - -`func (o *SchemaGetUserToSetShowResp) HasMailStatus() bool` - -HasMailStatus returns a boolean if a field has been set. - -### GetMobile - -`func (o *SchemaGetUserToSetShowResp) GetMobile() string` - -GetMobile returns the Mobile field if non-nil, zero value otherwise. - -### GetMobileOk - -`func (o *SchemaGetUserToSetShowResp) GetMobileOk() (*string, bool)` - -GetMobileOk returns a tuple with the Mobile field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMobile - -`func (o *SchemaGetUserToSetShowResp) SetMobile(v string)` - -SetMobile sets Mobile field to given value. - -### HasMobile - -`func (o *SchemaGetUserToSetShowResp) HasMobile() bool` - -HasMobile returns a boolean if a field has been set. - -### GetNoticeStatus - -`func (o *SchemaGetUserToSetShowResp) GetNoticeStatus() int32` - -GetNoticeStatus returns the NoticeStatus field if non-nil, zero value otherwise. - -### GetNoticeStatusOk - -`func (o *SchemaGetUserToSetShowResp) GetNoticeStatusOk() (*int32, bool)` - -GetNoticeStatusOk returns a tuple with the NoticeStatus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNoticeStatus - -`func (o *SchemaGetUserToSetShowResp) SetNoticeStatus(v int32)` - -SetNoticeStatus sets NoticeStatus field to given value. - -### HasNoticeStatus - -`func (o *SchemaGetUserToSetShowResp) HasNoticeStatus() bool` - -HasNoticeStatus returns a boolean if a field has been set. - -### GetQuestionCount - -`func (o *SchemaGetUserToSetShowResp) GetQuestionCount() int32` - -GetQuestionCount returns the QuestionCount field if non-nil, zero value otherwise. - -### GetQuestionCountOk - -`func (o *SchemaGetUserToSetShowResp) GetQuestionCountOk() (*int32, bool)` - -GetQuestionCountOk returns a tuple with the QuestionCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuestionCount - -`func (o *SchemaGetUserToSetShowResp) SetQuestionCount(v int32)` - -SetQuestionCount sets QuestionCount field to given value. - -### HasQuestionCount - -`func (o *SchemaGetUserToSetShowResp) HasQuestionCount() bool` - -HasQuestionCount returns a boolean if a field has been set. - -### GetRank - -`func (o *SchemaGetUserToSetShowResp) GetRank() int32` - -GetRank returns the Rank field if non-nil, zero value otherwise. - -### GetRankOk - -`func (o *SchemaGetUserToSetShowResp) GetRankOk() (*int32, bool)` - -GetRankOk returns a tuple with the Rank field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRank - -`func (o *SchemaGetUserToSetShowResp) SetRank(v int32)` - -SetRank sets Rank field to given value. - -### HasRank - -`func (o *SchemaGetUserToSetShowResp) HasRank() bool` - -HasRank returns a boolean if a field has been set. - -### GetRoleId - -`func (o *SchemaGetUserToSetShowResp) GetRoleId() int32` - -GetRoleId returns the RoleId field if non-nil, zero value otherwise. - -### GetRoleIdOk - -`func (o *SchemaGetUserToSetShowResp) GetRoleIdOk() (*int32, bool)` - -GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRoleId - -`func (o *SchemaGetUserToSetShowResp) SetRoleId(v int32)` - -SetRoleId sets RoleId field to given value. - -### HasRoleId - -`func (o *SchemaGetUserToSetShowResp) HasRoleId() bool` - -HasRoleId returns a boolean if a field has been set. - -### GetStatus - -`func (o *SchemaGetUserToSetShowResp) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *SchemaGetUserToSetShowResp) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *SchemaGetUserToSetShowResp) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *SchemaGetUserToSetShowResp) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetUsername - -`func (o *SchemaGetUserToSetShowResp) GetUsername() string` - -GetUsername returns the Username field if non-nil, zero value otherwise. - -### GetUsernameOk - -`func (o *SchemaGetUserToSetShowResp) GetUsernameOk() (*string, bool)` - -GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUsername - -`func (o *SchemaGetUserToSetShowResp) SetUsername(v string)` - -SetUsername sets Username field to given value. - -### HasUsername - -`func (o *SchemaGetUserToSetShowResp) HasUsername() bool` - -HasUsername returns a boolean if a field has been set. - -### GetWebsite - -`func (o *SchemaGetUserToSetShowResp) GetWebsite() string` - -GetWebsite returns the Website field if non-nil, zero value otherwise. - -### GetWebsiteOk - -`func (o *SchemaGetUserToSetShowResp) GetWebsiteOk() (*string, bool)` - -GetWebsiteOk returns a tuple with the Website field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWebsite - -`func (o *SchemaGetUserToSetShowResp) SetWebsite(v string)` - -SetWebsite sets Website field to given value. - -### HasWebsite - -`func (o *SchemaGetUserToSetShowResp) HasWebsite() bool` - -HasWebsite returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaNotificationChannelConfig.md b/docs/SchemaNotificationChannelConfig.md new file mode 100644 index 0000000..135dfe0 --- /dev/null +++ b/docs/SchemaNotificationChannelConfig.md @@ -0,0 +1,82 @@ +# SchemaNotificationChannelConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enable** | Pointer to **bool** | | [optional] +**Key** | Pointer to [**ConstantNotificationChannelKey**](ConstantNotificationChannelKey.md) | | [optional] + +## Methods + +### NewSchemaNotificationChannelConfig + +`func NewSchemaNotificationChannelConfig() *SchemaNotificationChannelConfig` + +NewSchemaNotificationChannelConfig instantiates a new SchemaNotificationChannelConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaNotificationChannelConfigWithDefaults + +`func NewSchemaNotificationChannelConfigWithDefaults() *SchemaNotificationChannelConfig` + +NewSchemaNotificationChannelConfigWithDefaults instantiates a new SchemaNotificationChannelConfig object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnable + +`func (o *SchemaNotificationChannelConfig) GetEnable() bool` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *SchemaNotificationChannelConfig) GetEnableOk() (*bool, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *SchemaNotificationChannelConfig) SetEnable(v bool)` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *SchemaNotificationChannelConfig) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### GetKey + +`func (o *SchemaNotificationChannelConfig) GetKey() ConstantNotificationChannelKey` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *SchemaNotificationChannelConfig) GetKeyOk() (*ConstantNotificationChannelKey, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *SchemaNotificationChannelConfig) SetKey(v ConstantNotificationChannelKey)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *SchemaNotificationChannelConfig) HasKey() bool` + +HasKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaQuestionPageReq.md b/docs/SchemaQuestionPageReq.md deleted file mode 100644 index 876e46d..0000000 --- a/docs/SchemaQuestionPageReq.md +++ /dev/null @@ -1,160 +0,0 @@ -# SchemaQuestionPageReq - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**OrderCond** | Pointer to **string** | | [optional] -**Page** | Pointer to **int32** | | [optional] -**PageSize** | Pointer to **int32** | | [optional] -**Tag** | Pointer to **string** | | [optional] -**Username** | Pointer to **string** | | [optional] - -## Methods - -### NewSchemaQuestionPageReq - -`func NewSchemaQuestionPageReq() *SchemaQuestionPageReq` - -NewSchemaQuestionPageReq instantiates a new SchemaQuestionPageReq object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaQuestionPageReqWithDefaults - -`func NewSchemaQuestionPageReqWithDefaults() *SchemaQuestionPageReq` - -NewSchemaQuestionPageReqWithDefaults instantiates a new SchemaQuestionPageReq object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetOrderCond - -`func (o *SchemaQuestionPageReq) GetOrderCond() string` - -GetOrderCond returns the OrderCond field if non-nil, zero value otherwise. - -### GetOrderCondOk - -`func (o *SchemaQuestionPageReq) GetOrderCondOk() (*string, bool)` - -GetOrderCondOk returns a tuple with the OrderCond field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderCond - -`func (o *SchemaQuestionPageReq) SetOrderCond(v string)` - -SetOrderCond sets OrderCond field to given value. - -### HasOrderCond - -`func (o *SchemaQuestionPageReq) HasOrderCond() bool` - -HasOrderCond returns a boolean if a field has been set. - -### GetPage - -`func (o *SchemaQuestionPageReq) GetPage() int32` - -GetPage returns the Page field if non-nil, zero value otherwise. - -### GetPageOk - -`func (o *SchemaQuestionPageReq) GetPageOk() (*int32, bool)` - -GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPage - -`func (o *SchemaQuestionPageReq) SetPage(v int32)` - -SetPage sets Page field to given value. - -### HasPage - -`func (o *SchemaQuestionPageReq) HasPage() bool` - -HasPage returns a boolean if a field has been set. - -### GetPageSize - -`func (o *SchemaQuestionPageReq) GetPageSize() int32` - -GetPageSize returns the PageSize field if non-nil, zero value otherwise. - -### GetPageSizeOk - -`func (o *SchemaQuestionPageReq) GetPageSizeOk() (*int32, bool)` - -GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPageSize - -`func (o *SchemaQuestionPageReq) SetPageSize(v int32)` - -SetPageSize sets PageSize field to given value. - -### HasPageSize - -`func (o *SchemaQuestionPageReq) HasPageSize() bool` - -HasPageSize returns a boolean if a field has been set. - -### GetTag - -`func (o *SchemaQuestionPageReq) GetTag() string` - -GetTag returns the Tag field if non-nil, zero value otherwise. - -### GetTagOk - -`func (o *SchemaQuestionPageReq) GetTagOk() (*string, bool)` - -GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTag - -`func (o *SchemaQuestionPageReq) SetTag(v string)` - -SetTag sets Tag field to given value. - -### HasTag - -`func (o *SchemaQuestionPageReq) HasTag() bool` - -HasTag returns a boolean if a field has been set. - -### GetUsername - -`func (o *SchemaQuestionPageReq) GetUsername() string` - -GetUsername returns the Username field if non-nil, zero value otherwise. - -### GetUsernameOk - -`func (o *SchemaQuestionPageReq) GetUsernameOk() (*string, bool)` - -GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUsername - -`func (o *SchemaQuestionPageReq) SetUsername(v string)` - -SetUsername sets Username field to given value. - -### HasUsername - -`func (o *SchemaQuestionPageReq) HasUsername() bool` - -HasUsername returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaRemoveAnswerReq.md b/docs/SchemaRemoveAnswerReq.md index 4d9c0e9..87e6efb 100644 --- a/docs/SchemaRemoveAnswerReq.md +++ b/docs/SchemaRemoveAnswerReq.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CaptchaCode** | Pointer to **string** | | [optional] -**CaptchaId** | Pointer to **string** | captcha_id | [optional] -**Id** | **string** | answer id | +**CaptchaId** | Pointer to **string** | | [optional] +**Id** | **string** | | ## Methods diff --git a/docs/SchemaSearchListResp.md b/docs/SchemaSearchListResp.md deleted file mode 100644 index fef5d3f..0000000 --- a/docs/SchemaSearchListResp.md +++ /dev/null @@ -1,108 +0,0 @@ -# SchemaSearchListResp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | | [optional] -**Extra** | Pointer to **map[string]interface{}** | extra fields | [optional] -**List** | Pointer to [**[]SchemaSearchResp**](SchemaSearchResp.md) | search response | [optional] - -## Methods - -### NewSchemaSearchListResp - -`func NewSchemaSearchListResp() *SchemaSearchListResp` - -NewSchemaSearchListResp instantiates a new SchemaSearchListResp object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaSearchListRespWithDefaults - -`func NewSchemaSearchListRespWithDefaults() *SchemaSearchListResp` - -NewSchemaSearchListRespWithDefaults instantiates a new SchemaSearchListResp object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *SchemaSearchListResp) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SchemaSearchListResp) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SchemaSearchListResp) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SchemaSearchListResp) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetExtra - -`func (o *SchemaSearchListResp) GetExtra() map[string]interface{}` - -GetExtra returns the Extra field if non-nil, zero value otherwise. - -### GetExtraOk - -`func (o *SchemaSearchListResp) GetExtraOk() (*map[string]interface{}, bool)` - -GetExtraOk returns a tuple with the Extra field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExtra - -`func (o *SchemaSearchListResp) SetExtra(v map[string]interface{})` - -SetExtra sets Extra field to given value. - -### HasExtra - -`func (o *SchemaSearchListResp) HasExtra() bool` - -HasExtra returns a boolean if a field has been set. - -### GetList - -`func (o *SchemaSearchListResp) GetList() []SchemaSearchResp` - -GetList returns the List field if non-nil, zero value otherwise. - -### GetListOk - -`func (o *SchemaSearchListResp) GetListOk() (*[]SchemaSearchResp, bool)` - -GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetList - -`func (o *SchemaSearchListResp) SetList(v []SchemaSearchResp)` - -SetList sets List field to given value. - -### HasList - -`func (o *SchemaSearchListResp) HasList() bool` - -HasList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaSearchObject.md b/docs/SchemaSearchObject.md index c4ae742..6250b0f 100644 --- a/docs/SchemaSearchObject.md +++ b/docs/SchemaSearchObject.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **Status** | Pointer to **string** | Status | [optional] **Tags** | Pointer to [**[]SchemaTagResp**](SchemaTagResp.md) | tags | [optional] **Title** | Pointer to **string** | | [optional] -**UserInfo** | Pointer to [**SchemaSearchObjectUserInfo**](SchemaSearchObjectUserInfo.md) | | [optional] +**UserInfo** | Pointer to [**SchemaSearchObjectUser**](SchemaSearchObjectUser.md) | | [optional] **VoteCount** | Pointer to **int32** | | [optional] ## Methods @@ -262,20 +262,20 @@ HasTitle returns a boolean if a field has been set. ### GetUserInfo -`func (o *SchemaSearchObject) GetUserInfo() SchemaSearchObjectUserInfo` +`func (o *SchemaSearchObject) GetUserInfo() SchemaSearchObjectUser` GetUserInfo returns the UserInfo field if non-nil, zero value otherwise. ### GetUserInfoOk -`func (o *SchemaSearchObject) GetUserInfoOk() (*SchemaSearchObjectUserInfo, bool)` +`func (o *SchemaSearchObject) GetUserInfoOk() (*SchemaSearchObjectUser, bool)` GetUserInfoOk returns a tuple with the UserInfo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUserInfo -`func (o *SchemaSearchObject) SetUserInfo(v SchemaSearchObjectUserInfo)` +`func (o *SchemaSearchObject) SetUserInfo(v SchemaSearchObjectUser)` SetUserInfo sets UserInfo field to given value. diff --git a/docs/SchemaSearchObjectUser.md b/docs/SchemaSearchObjectUser.md new file mode 100644 index 0000000..b37d9bd --- /dev/null +++ b/docs/SchemaSearchObjectUser.md @@ -0,0 +1,160 @@ +# SchemaSearchObjectUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Rank** | Pointer to **int32** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaSearchObjectUser + +`func NewSchemaSearchObjectUser() *SchemaSearchObjectUser` + +NewSchemaSearchObjectUser instantiates a new SchemaSearchObjectUser object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaSearchObjectUserWithDefaults + +`func NewSchemaSearchObjectUserWithDefaults() *SchemaSearchObjectUser` + +NewSchemaSearchObjectUserWithDefaults instantiates a new SchemaSearchObjectUser object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *SchemaSearchObjectUser) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaSearchObjectUser) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SchemaSearchObjectUser) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaSearchObjectUser) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaSearchObjectUser) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaSearchObjectUser) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SchemaSearchObjectUser) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaSearchObjectUser) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetRank + +`func (o *SchemaSearchObjectUser) GetRank() int32` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *SchemaSearchObjectUser) GetRankOk() (*int32, bool)` + +GetRankOk returns a tuple with the Rank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRank + +`func (o *SchemaSearchObjectUser) SetRank(v int32)` + +SetRank sets Rank field to given value. + +### HasRank + +`func (o *SchemaSearchObjectUser) HasRank() bool` + +HasRank returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaSearchObjectUser) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaSearchObjectUser) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SchemaSearchObjectUser) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaSearchObjectUser) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaSearchObjectUser) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaSearchObjectUser) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *SchemaSearchObjectUser) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaSearchObjectUser) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaSearchObjectUserInfo.md b/docs/SchemaSearchObjectUserInfo.md deleted file mode 100644 index 4a50e5b..0000000 --- a/docs/SchemaSearchObjectUserInfo.md +++ /dev/null @@ -1,264 +0,0 @@ -# SchemaSearchObjectUserInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Avatar** | Pointer to **string** | avatar | [optional] -**DisplayName** | Pointer to **string** | display_name | [optional] -**Id** | Pointer to **string** | user_id | [optional] -**IpInfo** | Pointer to **string** | ip info | [optional] -**Location** | Pointer to **string** | location | [optional] -**Rank** | Pointer to **int32** | rank | [optional] -**Status** | Pointer to **string** | status | [optional] -**Username** | Pointer to **string** | name | [optional] -**Website** | Pointer to **string** | website | [optional] - -## Methods - -### NewSchemaSearchObjectUserInfo - -`func NewSchemaSearchObjectUserInfo() *SchemaSearchObjectUserInfo` - -NewSchemaSearchObjectUserInfo instantiates a new SchemaSearchObjectUserInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaSearchObjectUserInfoWithDefaults - -`func NewSchemaSearchObjectUserInfoWithDefaults() *SchemaSearchObjectUserInfo` - -NewSchemaSearchObjectUserInfoWithDefaults instantiates a new SchemaSearchObjectUserInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAvatar - -`func (o *SchemaSearchObjectUserInfo) GetAvatar() string` - -GetAvatar returns the Avatar field if non-nil, zero value otherwise. - -### GetAvatarOk - -`func (o *SchemaSearchObjectUserInfo) GetAvatarOk() (*string, bool)` - -GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvatar - -`func (o *SchemaSearchObjectUserInfo) SetAvatar(v string)` - -SetAvatar sets Avatar field to given value. - -### HasAvatar - -`func (o *SchemaSearchObjectUserInfo) HasAvatar() bool` - -HasAvatar returns a boolean if a field has been set. - -### GetDisplayName - -`func (o *SchemaSearchObjectUserInfo) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *SchemaSearchObjectUserInfo) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *SchemaSearchObjectUserInfo) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - -### HasDisplayName - -`func (o *SchemaSearchObjectUserInfo) HasDisplayName() bool` - -HasDisplayName returns a boolean if a field has been set. - -### GetId - -`func (o *SchemaSearchObjectUserInfo) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *SchemaSearchObjectUserInfo) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *SchemaSearchObjectUserInfo) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *SchemaSearchObjectUserInfo) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetIpInfo - -`func (o *SchemaSearchObjectUserInfo) GetIpInfo() string` - -GetIpInfo returns the IpInfo field if non-nil, zero value otherwise. - -### GetIpInfoOk - -`func (o *SchemaSearchObjectUserInfo) GetIpInfoOk() (*string, bool)` - -GetIpInfoOk returns a tuple with the IpInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpInfo - -`func (o *SchemaSearchObjectUserInfo) SetIpInfo(v string)` - -SetIpInfo sets IpInfo field to given value. - -### HasIpInfo - -`func (o *SchemaSearchObjectUserInfo) HasIpInfo() bool` - -HasIpInfo returns a boolean if a field has been set. - -### GetLocation - -`func (o *SchemaSearchObjectUserInfo) GetLocation() string` - -GetLocation returns the Location field if non-nil, zero value otherwise. - -### GetLocationOk - -`func (o *SchemaSearchObjectUserInfo) GetLocationOk() (*string, bool)` - -GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLocation - -`func (o *SchemaSearchObjectUserInfo) SetLocation(v string)` - -SetLocation sets Location field to given value. - -### HasLocation - -`func (o *SchemaSearchObjectUserInfo) HasLocation() bool` - -HasLocation returns a boolean if a field has been set. - -### GetRank - -`func (o *SchemaSearchObjectUserInfo) GetRank() int32` - -GetRank returns the Rank field if non-nil, zero value otherwise. - -### GetRankOk - -`func (o *SchemaSearchObjectUserInfo) GetRankOk() (*int32, bool)` - -GetRankOk returns a tuple with the Rank field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRank - -`func (o *SchemaSearchObjectUserInfo) SetRank(v int32)` - -SetRank sets Rank field to given value. - -### HasRank - -`func (o *SchemaSearchObjectUserInfo) HasRank() bool` - -HasRank returns a boolean if a field has been set. - -### GetStatus - -`func (o *SchemaSearchObjectUserInfo) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *SchemaSearchObjectUserInfo) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *SchemaSearchObjectUserInfo) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *SchemaSearchObjectUserInfo) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetUsername - -`func (o *SchemaSearchObjectUserInfo) GetUsername() string` - -GetUsername returns the Username field if non-nil, zero value otherwise. - -### GetUsernameOk - -`func (o *SchemaSearchObjectUserInfo) GetUsernameOk() (*string, bool)` - -GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUsername - -`func (o *SchemaSearchObjectUserInfo) SetUsername(v string)` - -SetUsername sets Username field to given value. - -### HasUsername - -`func (o *SchemaSearchObjectUserInfo) HasUsername() bool` - -HasUsername returns a boolean if a field has been set. - -### GetWebsite - -`func (o *SchemaSearchObjectUserInfo) GetWebsite() string` - -GetWebsite returns the Website field if non-nil, zero value otherwise. - -### GetWebsiteOk - -`func (o *SchemaSearchObjectUserInfo) GetWebsiteOk() (*string, bool)` - -GetWebsiteOk returns a tuple with the Website field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWebsite - -`func (o *SchemaSearchObjectUserInfo) SetWebsite(v string)` - -SetWebsite sets Website field to given value. - -### HasWebsite - -`func (o *SchemaSearchObjectUserInfo) HasWebsite() bool` - -HasWebsite returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaSearchResp.md b/docs/SchemaSearchResp.md index 233d368..51030da 100644 --- a/docs/SchemaSearchResp.md +++ b/docs/SchemaSearchResp.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Object** | Pointer to [**SchemaSearchRespObject**](SchemaSearchRespObject.md) | | [optional] -**ObjectType** | Pointer to **string** | object_type | [optional] +**Count** | Pointer to **int32** | | [optional] +**List** | Pointer to [**[]SchemaSearchResult**](SchemaSearchResult.md) | search response | [optional] ## Methods @@ -26,55 +26,55 @@ NewSchemaSearchRespWithDefaults instantiates a new SchemaSearchResp object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetObject +### GetCount -`func (o *SchemaSearchResp) GetObject() SchemaSearchRespObject` +`func (o *SchemaSearchResp) GetCount() int32` -GetObject returns the Object field if non-nil, zero value otherwise. +GetCount returns the Count field if non-nil, zero value otherwise. -### GetObjectOk +### GetCountOk -`func (o *SchemaSearchResp) GetObjectOk() (*SchemaSearchRespObject, bool)` +`func (o *SchemaSearchResp) GetCountOk() (*int32, bool)` -GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetObject +### SetCount -`func (o *SchemaSearchResp) SetObject(v SchemaSearchRespObject)` +`func (o *SchemaSearchResp) SetCount(v int32)` -SetObject sets Object field to given value. +SetCount sets Count field to given value. -### HasObject +### HasCount -`func (o *SchemaSearchResp) HasObject() bool` +`func (o *SchemaSearchResp) HasCount() bool` -HasObject returns a boolean if a field has been set. +HasCount returns a boolean if a field has been set. -### GetObjectType +### GetList -`func (o *SchemaSearchResp) GetObjectType() string` +`func (o *SchemaSearchResp) GetList() []SchemaSearchResult` -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. +GetList returns the List field if non-nil, zero value otherwise. -### GetObjectTypeOk +### GetListOk -`func (o *SchemaSearchResp) GetObjectTypeOk() (*string, bool)` +`func (o *SchemaSearchResp) GetListOk() (*[]SchemaSearchResult, bool)` -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetObjectType +### SetList -`func (o *SchemaSearchResp) SetObjectType(v string)` +`func (o *SchemaSearchResp) SetList(v []SchemaSearchResult)` -SetObjectType sets ObjectType field to given value. +SetList sets List field to given value. -### HasObjectType +### HasList -`func (o *SchemaSearchResp) HasObjectType() bool` +`func (o *SchemaSearchResp) HasList() bool` -HasObjectType returns a boolean if a field has been set. +HasList returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SchemaSearchRespObject.md b/docs/SchemaSearchRespObject.md deleted file mode 100644 index b59710b..0000000 --- a/docs/SchemaSearchRespObject.md +++ /dev/null @@ -1,316 +0,0 @@ -# SchemaSearchRespObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Accepted** | Pointer to **bool** | | [optional] -**AnswerCount** | Pointer to **int32** | | [optional] -**CreatedAt** | Pointer to **int32** | | [optional] -**Excerpt** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**QuestionId** | Pointer to **string** | | [optional] -**Status** | Pointer to **string** | Status | [optional] -**Tags** | Pointer to [**[]SchemaTagResp**](SchemaTagResp.md) | tags | [optional] -**Title** | Pointer to **string** | | [optional] -**UserInfo** | Pointer to [**SchemaSearchObjectUserInfo**](SchemaSearchObjectUserInfo.md) | | [optional] -**VoteCount** | Pointer to **int32** | | [optional] - -## Methods - -### NewSchemaSearchRespObject - -`func NewSchemaSearchRespObject() *SchemaSearchRespObject` - -NewSchemaSearchRespObject instantiates a new SchemaSearchRespObject object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaSearchRespObjectWithDefaults - -`func NewSchemaSearchRespObjectWithDefaults() *SchemaSearchRespObject` - -NewSchemaSearchRespObjectWithDefaults instantiates a new SchemaSearchRespObject object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAccepted - -`func (o *SchemaSearchRespObject) GetAccepted() bool` - -GetAccepted returns the Accepted field if non-nil, zero value otherwise. - -### GetAcceptedOk - -`func (o *SchemaSearchRespObject) GetAcceptedOk() (*bool, bool)` - -GetAcceptedOk returns a tuple with the Accepted field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccepted - -`func (o *SchemaSearchRespObject) SetAccepted(v bool)` - -SetAccepted sets Accepted field to given value. - -### HasAccepted - -`func (o *SchemaSearchRespObject) HasAccepted() bool` - -HasAccepted returns a boolean if a field has been set. - -### GetAnswerCount - -`func (o *SchemaSearchRespObject) GetAnswerCount() int32` - -GetAnswerCount returns the AnswerCount field if non-nil, zero value otherwise. - -### GetAnswerCountOk - -`func (o *SchemaSearchRespObject) GetAnswerCountOk() (*int32, bool)` - -GetAnswerCountOk returns a tuple with the AnswerCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAnswerCount - -`func (o *SchemaSearchRespObject) SetAnswerCount(v int32)` - -SetAnswerCount sets AnswerCount field to given value. - -### HasAnswerCount - -`func (o *SchemaSearchRespObject) HasAnswerCount() bool` - -HasAnswerCount returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *SchemaSearchRespObject) GetCreatedAt() int32` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *SchemaSearchRespObject) GetCreatedAtOk() (*int32, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *SchemaSearchRespObject) SetCreatedAt(v int32)` - -SetCreatedAt sets CreatedAt field to given value. - -### HasCreatedAt - -`func (o *SchemaSearchRespObject) HasCreatedAt() bool` - -HasCreatedAt returns a boolean if a field has been set. - -### GetExcerpt - -`func (o *SchemaSearchRespObject) GetExcerpt() string` - -GetExcerpt returns the Excerpt field if non-nil, zero value otherwise. - -### GetExcerptOk - -`func (o *SchemaSearchRespObject) GetExcerptOk() (*string, bool)` - -GetExcerptOk returns a tuple with the Excerpt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExcerpt - -`func (o *SchemaSearchRespObject) SetExcerpt(v string)` - -SetExcerpt sets Excerpt field to given value. - -### HasExcerpt - -`func (o *SchemaSearchRespObject) HasExcerpt() bool` - -HasExcerpt returns a boolean if a field has been set. - -### GetId - -`func (o *SchemaSearchRespObject) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *SchemaSearchRespObject) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *SchemaSearchRespObject) SetId(v string)` - -SetId sets Id field to given value. - -### HasId - -`func (o *SchemaSearchRespObject) HasId() bool` - -HasId returns a boolean if a field has been set. - -### GetQuestionId - -`func (o *SchemaSearchRespObject) GetQuestionId() string` - -GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. - -### GetQuestionIdOk - -`func (o *SchemaSearchRespObject) GetQuestionIdOk() (*string, bool)` - -GetQuestionIdOk returns a tuple with the QuestionId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetQuestionId - -`func (o *SchemaSearchRespObject) SetQuestionId(v string)` - -SetQuestionId sets QuestionId field to given value. - -### HasQuestionId - -`func (o *SchemaSearchRespObject) HasQuestionId() bool` - -HasQuestionId returns a boolean if a field has been set. - -### GetStatus - -`func (o *SchemaSearchRespObject) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *SchemaSearchRespObject) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *SchemaSearchRespObject) SetStatus(v string)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *SchemaSearchRespObject) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetTags - -`func (o *SchemaSearchRespObject) GetTags() []SchemaTagResp` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *SchemaSearchRespObject) GetTagsOk() (*[]SchemaTagResp, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *SchemaSearchRespObject) SetTags(v []SchemaTagResp)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *SchemaSearchRespObject) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetTitle - -`func (o *SchemaSearchRespObject) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *SchemaSearchRespObject) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *SchemaSearchRespObject) SetTitle(v string)` - -SetTitle sets Title field to given value. - -### HasTitle - -`func (o *SchemaSearchRespObject) HasTitle() bool` - -HasTitle returns a boolean if a field has been set. - -### GetUserInfo - -`func (o *SchemaSearchRespObject) GetUserInfo() SchemaSearchObjectUserInfo` - -GetUserInfo returns the UserInfo field if non-nil, zero value otherwise. - -### GetUserInfoOk - -`func (o *SchemaSearchRespObject) GetUserInfoOk() (*SchemaSearchObjectUserInfo, bool)` - -GetUserInfoOk returns a tuple with the UserInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUserInfo - -`func (o *SchemaSearchRespObject) SetUserInfo(v SchemaSearchObjectUserInfo)` - -SetUserInfo sets UserInfo field to given value. - -### HasUserInfo - -`func (o *SchemaSearchRespObject) HasUserInfo() bool` - -HasUserInfo returns a boolean if a field has been set. - -### GetVoteCount - -`func (o *SchemaSearchRespObject) GetVoteCount() int32` - -GetVoteCount returns the VoteCount field if non-nil, zero value otherwise. - -### GetVoteCountOk - -`func (o *SchemaSearchRespObject) GetVoteCountOk() (*int32, bool)` - -GetVoteCountOk returns a tuple with the VoteCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVoteCount - -`func (o *SchemaSearchRespObject) SetVoteCount(v int32)` - -SetVoteCount sets VoteCount field to given value. - -### HasVoteCount - -`func (o *SchemaSearchRespObject) HasVoteCount() bool` - -HasVoteCount returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaSearchResult.md b/docs/SchemaSearchResult.md new file mode 100644 index 0000000..a3423c8 --- /dev/null +++ b/docs/SchemaSearchResult.md @@ -0,0 +1,82 @@ +# SchemaSearchResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Object** | Pointer to [**SchemaSearchObject**](SchemaSearchObject.md) | | [optional] +**ObjectType** | Pointer to **string** | object_type | [optional] + +## Methods + +### NewSchemaSearchResult + +`func NewSchemaSearchResult() *SchemaSearchResult` + +NewSchemaSearchResult instantiates a new SchemaSearchResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaSearchResultWithDefaults + +`func NewSchemaSearchResultWithDefaults() *SchemaSearchResult` + +NewSchemaSearchResultWithDefaults instantiates a new SchemaSearchResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObject + +`func (o *SchemaSearchResult) GetObject() SchemaSearchObject` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *SchemaSearchResult) GetObjectOk() (*SchemaSearchObject, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *SchemaSearchResult) SetObject(v SchemaSearchObject)` + +SetObject sets Object field to given value. + +### HasObject + +`func (o *SchemaSearchResult) HasObject() bool` + +HasObject returns a boolean if a field has been set. + +### GetObjectType + +`func (o *SchemaSearchResult) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SchemaSearchResult) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *SchemaSearchResult) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *SchemaSearchResult) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaUpdateCommentReq.md b/docs/SchemaUpdateCommentReq.md index c97d439..b33f93e 100644 --- a/docs/SchemaUpdateCommentReq.md +++ b/docs/SchemaUpdateCommentReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CaptchaCode** | Pointer to **string** | | [optional] -**CaptchaId** | Pointer to **string** | captcha_id | [optional] +**CaptchaId** | Pointer to **string** | whether user can delete it | [optional] **CommentId** | **string** | comment id | **OriginalText** | **string** | original comment content | diff --git a/docs/SchemaUpdateInfoRequest.md b/docs/SchemaUpdateInfoRequest.md index 98583cb..fee28f8 100644 --- a/docs/SchemaUpdateInfoRequest.md +++ b/docs/SchemaUpdateInfoRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Avatar** | Pointer to [**SchemaUpdateInfoRequestAvatar**](SchemaUpdateInfoRequestAvatar.md) | | [optional] +**Avatar** | Pointer to [**SchemaAvatarInfo**](SchemaAvatarInfo.md) | | [optional] **Bio** | Pointer to **string** | bio | [optional] **DisplayName** | Pointer to **string** | display_name | [optional] **Location** | Pointer to **string** | location | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetAvatar -`func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaUpdateInfoRequestAvatar` +`func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaAvatarInfo` GetAvatar returns the Avatar field if non-nil, zero value otherwise. ### GetAvatarOk -`func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaUpdateInfoRequestAvatar, bool)` +`func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaAvatarInfo, bool)` GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAvatar -`func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaUpdateInfoRequestAvatar)` +`func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaAvatarInfo)` SetAvatar sets Avatar field to given value. diff --git a/docs/SchemaUpdateInfoRequestAvatar.md b/docs/SchemaUpdateInfoRequestAvatar.md deleted file mode 100644 index 5244730..0000000 --- a/docs/SchemaUpdateInfoRequestAvatar.md +++ /dev/null @@ -1,108 +0,0 @@ -# SchemaUpdateInfoRequestAvatar - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Custom** | Pointer to **string** | | [optional] -**Gravatar** | Pointer to **string** | | [optional] -**Type** | Pointer to **string** | | [optional] - -## Methods - -### NewSchemaUpdateInfoRequestAvatar - -`func NewSchemaUpdateInfoRequestAvatar() *SchemaUpdateInfoRequestAvatar` - -NewSchemaUpdateInfoRequestAvatar instantiates a new SchemaUpdateInfoRequestAvatar object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaUpdateInfoRequestAvatarWithDefaults - -`func NewSchemaUpdateInfoRequestAvatarWithDefaults() *SchemaUpdateInfoRequestAvatar` - -NewSchemaUpdateInfoRequestAvatarWithDefaults instantiates a new SchemaUpdateInfoRequestAvatar object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCustom - -`func (o *SchemaUpdateInfoRequestAvatar) GetCustom() string` - -GetCustom returns the Custom field if non-nil, zero value otherwise. - -### GetCustomOk - -`func (o *SchemaUpdateInfoRequestAvatar) GetCustomOk() (*string, bool)` - -GetCustomOk returns a tuple with the Custom field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustom - -`func (o *SchemaUpdateInfoRequestAvatar) SetCustom(v string)` - -SetCustom sets Custom field to given value. - -### HasCustom - -`func (o *SchemaUpdateInfoRequestAvatar) HasCustom() bool` - -HasCustom returns a boolean if a field has been set. - -### GetGravatar - -`func (o *SchemaUpdateInfoRequestAvatar) GetGravatar() string` - -GetGravatar returns the Gravatar field if non-nil, zero value otherwise. - -### GetGravatarOk - -`func (o *SchemaUpdateInfoRequestAvatar) GetGravatarOk() (*string, bool)` - -GetGravatarOk returns a tuple with the Gravatar field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGravatar - -`func (o *SchemaUpdateInfoRequestAvatar) SetGravatar(v string)` - -SetGravatar sets Gravatar field to given value. - -### HasGravatar - -`func (o *SchemaUpdateInfoRequestAvatar) HasGravatar() bool` - -HasGravatar returns a boolean if a field has been set. - -### GetType - -`func (o *SchemaUpdateInfoRequestAvatar) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *SchemaUpdateInfoRequestAvatar) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *SchemaUpdateInfoRequestAvatar) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *SchemaUpdateInfoRequestAvatar) HasType() bool` - -HasType returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaUpdateUserNotificationConfigReq.md b/docs/SchemaUpdateUserNotificationConfigReq.md new file mode 100644 index 0000000..c76a140 --- /dev/null +++ b/docs/SchemaUpdateUserNotificationConfigReq.md @@ -0,0 +1,108 @@ +# SchemaUpdateUserNotificationConfigReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllNewQuestion** | Pointer to [**[]SchemaNotificationChannelConfig**](SchemaNotificationChannelConfig.md) | | [optional] +**AllNewQuestionForFollowingTags** | Pointer to [**[]SchemaNotificationChannelConfig**](SchemaNotificationChannelConfig.md) | | [optional] +**Inbox** | Pointer to [**[]SchemaNotificationChannelConfig**](SchemaNotificationChannelConfig.md) | | [optional] + +## Methods + +### NewSchemaUpdateUserNotificationConfigReq + +`func NewSchemaUpdateUserNotificationConfigReq() *SchemaUpdateUserNotificationConfigReq` + +NewSchemaUpdateUserNotificationConfigReq instantiates a new SchemaUpdateUserNotificationConfigReq object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaUpdateUserNotificationConfigReqWithDefaults + +`func NewSchemaUpdateUserNotificationConfigReqWithDefaults() *SchemaUpdateUserNotificationConfigReq` + +NewSchemaUpdateUserNotificationConfigReqWithDefaults instantiates a new SchemaUpdateUserNotificationConfigReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAllNewQuestion + +`func (o *SchemaUpdateUserNotificationConfigReq) GetAllNewQuestion() []SchemaNotificationChannelConfig` + +GetAllNewQuestion returns the AllNewQuestion field if non-nil, zero value otherwise. + +### GetAllNewQuestionOk + +`func (o *SchemaUpdateUserNotificationConfigReq) GetAllNewQuestionOk() (*[]SchemaNotificationChannelConfig, bool)` + +GetAllNewQuestionOk returns a tuple with the AllNewQuestion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllNewQuestion + +`func (o *SchemaUpdateUserNotificationConfigReq) SetAllNewQuestion(v []SchemaNotificationChannelConfig)` + +SetAllNewQuestion sets AllNewQuestion field to given value. + +### HasAllNewQuestion + +`func (o *SchemaUpdateUserNotificationConfigReq) HasAllNewQuestion() bool` + +HasAllNewQuestion returns a boolean if a field has been set. + +### GetAllNewQuestionForFollowingTags + +`func (o *SchemaUpdateUserNotificationConfigReq) GetAllNewQuestionForFollowingTags() []SchemaNotificationChannelConfig` + +GetAllNewQuestionForFollowingTags returns the AllNewQuestionForFollowingTags field if non-nil, zero value otherwise. + +### GetAllNewQuestionForFollowingTagsOk + +`func (o *SchemaUpdateUserNotificationConfigReq) GetAllNewQuestionForFollowingTagsOk() (*[]SchemaNotificationChannelConfig, bool)` + +GetAllNewQuestionForFollowingTagsOk returns a tuple with the AllNewQuestionForFollowingTags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllNewQuestionForFollowingTags + +`func (o *SchemaUpdateUserNotificationConfigReq) SetAllNewQuestionForFollowingTags(v []SchemaNotificationChannelConfig)` + +SetAllNewQuestionForFollowingTags sets AllNewQuestionForFollowingTags field to given value. + +### HasAllNewQuestionForFollowingTags + +`func (o *SchemaUpdateUserNotificationConfigReq) HasAllNewQuestionForFollowingTags() bool` + +HasAllNewQuestionForFollowingTags returns a boolean if a field has been set. + +### GetInbox + +`func (o *SchemaUpdateUserNotificationConfigReq) GetInbox() []SchemaNotificationChannelConfig` + +GetInbox returns the Inbox field if non-nil, zero value otherwise. + +### GetInboxOk + +`func (o *SchemaUpdateUserNotificationConfigReq) GetInboxOk() (*[]SchemaNotificationChannelConfig, bool)` + +GetInboxOk returns a tuple with the Inbox field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInbox + +`func (o *SchemaUpdateUserNotificationConfigReq) SetInbox(v []SchemaNotificationChannelConfig)` + +SetInbox sets Inbox field to given value. + +### HasInbox + +`func (o *SchemaUpdateUserNotificationConfigReq) HasInbox() bool` + +HasInbox returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaUserBasicInfo.md b/docs/SchemaUserBasicInfo.md index 0795211..aba07ab 100644 --- a/docs/SchemaUserBasicInfo.md +++ b/docs/SchemaUserBasicInfo.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Avatar** | Pointer to **string** | avatar | [optional] -**DisplayName** | Pointer to **string** | display_name | [optional] -**Id** | Pointer to **string** | user_id | [optional] -**IpInfo** | Pointer to **string** | ip info | [optional] -**Location** | Pointer to **string** | location | [optional] -**Rank** | Pointer to **int32** | rank | [optional] -**Status** | Pointer to **string** | status | [optional] -**Username** | Pointer to **string** | name | [optional] -**Website** | Pointer to **string** | website | [optional] +**Avatar** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**IpInfo** | Pointer to **string** | | [optional] +**Location** | Pointer to **string** | | [optional] +**Rank** | Pointer to **int32** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] +**Website** | Pointer to **string** | | [optional] ## Methods diff --git a/docs/SchemaUserEmailLogin.md b/docs/SchemaUserEmailLoginReq.md similarity index 59% rename from docs/SchemaUserEmailLogin.md rename to docs/SchemaUserEmailLoginReq.md index 5862846..034059d 100644 --- a/docs/SchemaUserEmailLogin.md +++ b/docs/SchemaUserEmailLoginReq.md @@ -1,119 +1,119 @@ -# SchemaUserEmailLogin +# SchemaUserEmailLoginReq ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CaptchaCode** | Pointer to **string** | captcha_code | [optional] -**CaptchaId** | Pointer to **string** | captcha_id | [optional] -**EMail** | **string** | e_mail | -**Pass** | **string** | password | +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | | [optional] +**EMail** | **string** | | +**Pass** | **string** | | ## Methods -### NewSchemaUserEmailLogin +### NewSchemaUserEmailLoginReq -`func NewSchemaUserEmailLogin(eMail string, pass string, ) *SchemaUserEmailLogin` +`func NewSchemaUserEmailLoginReq(eMail string, pass string, ) *SchemaUserEmailLoginReq` -NewSchemaUserEmailLogin instantiates a new SchemaUserEmailLogin object +NewSchemaUserEmailLoginReq instantiates a new SchemaUserEmailLoginReq object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewSchemaUserEmailLoginWithDefaults +### NewSchemaUserEmailLoginReqWithDefaults -`func NewSchemaUserEmailLoginWithDefaults() *SchemaUserEmailLogin` +`func NewSchemaUserEmailLoginReqWithDefaults() *SchemaUserEmailLoginReq` -NewSchemaUserEmailLoginWithDefaults instantiates a new SchemaUserEmailLogin object +NewSchemaUserEmailLoginReqWithDefaults instantiates a new SchemaUserEmailLoginReq object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetCaptchaCode -`func (o *SchemaUserEmailLogin) GetCaptchaCode() string` +`func (o *SchemaUserEmailLoginReq) GetCaptchaCode() string` GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. ### GetCaptchaCodeOk -`func (o *SchemaUserEmailLogin) GetCaptchaCodeOk() (*string, bool)` +`func (o *SchemaUserEmailLoginReq) GetCaptchaCodeOk() (*string, bool)` GetCaptchaCodeOk returns a tuple with the CaptchaCode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCaptchaCode -`func (o *SchemaUserEmailLogin) SetCaptchaCode(v string)` +`func (o *SchemaUserEmailLoginReq) SetCaptchaCode(v string)` SetCaptchaCode sets CaptchaCode field to given value. ### HasCaptchaCode -`func (o *SchemaUserEmailLogin) HasCaptchaCode() bool` +`func (o *SchemaUserEmailLoginReq) HasCaptchaCode() bool` HasCaptchaCode returns a boolean if a field has been set. ### GetCaptchaId -`func (o *SchemaUserEmailLogin) GetCaptchaId() string` +`func (o *SchemaUserEmailLoginReq) GetCaptchaId() string` GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. ### GetCaptchaIdOk -`func (o *SchemaUserEmailLogin) GetCaptchaIdOk() (*string, bool)` +`func (o *SchemaUserEmailLoginReq) GetCaptchaIdOk() (*string, bool)` GetCaptchaIdOk returns a tuple with the CaptchaId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCaptchaId -`func (o *SchemaUserEmailLogin) SetCaptchaId(v string)` +`func (o *SchemaUserEmailLoginReq) SetCaptchaId(v string)` SetCaptchaId sets CaptchaId field to given value. ### HasCaptchaId -`func (o *SchemaUserEmailLogin) HasCaptchaId() bool` +`func (o *SchemaUserEmailLoginReq) HasCaptchaId() bool` HasCaptchaId returns a boolean if a field has been set. ### GetEMail -`func (o *SchemaUserEmailLogin) GetEMail() string` +`func (o *SchemaUserEmailLoginReq) GetEMail() string` GetEMail returns the EMail field if non-nil, zero value otherwise. ### GetEMailOk -`func (o *SchemaUserEmailLogin) GetEMailOk() (*string, bool)` +`func (o *SchemaUserEmailLoginReq) GetEMailOk() (*string, bool)` GetEMailOk returns a tuple with the EMail field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEMail -`func (o *SchemaUserEmailLogin) SetEMail(v string)` +`func (o *SchemaUserEmailLoginReq) SetEMail(v string)` SetEMail sets EMail field to given value. ### GetPass -`func (o *SchemaUserEmailLogin) GetPass() string` +`func (o *SchemaUserEmailLoginReq) GetPass() string` GetPass returns the Pass field if non-nil, zero value otherwise. ### GetPassOk -`func (o *SchemaUserEmailLogin) GetPassOk() (*string, bool)` +`func (o *SchemaUserEmailLoginReq) GetPassOk() (*string, bool)` GetPassOk returns a tuple with the Pass field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPass -`func (o *SchemaUserEmailLogin) SetPass(v string)` +`func (o *SchemaUserEmailLoginReq) SetPass(v string)` SetPass sets Pass field to given value. diff --git a/docs/SchemaUserModifyPassWordRequest.md b/docs/SchemaUserModifyPassWordRequest.md deleted file mode 100644 index 2ef6954..0000000 --- a/docs/SchemaUserModifyPassWordRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# SchemaUserModifyPassWordRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**OldPass** | Pointer to **string** | old password | [optional] -**Pass** | Pointer to **string** | password | [optional] - -## Methods - -### NewSchemaUserModifyPassWordRequest - -`func NewSchemaUserModifyPassWordRequest() *SchemaUserModifyPassWordRequest` - -NewSchemaUserModifyPassWordRequest instantiates a new SchemaUserModifyPassWordRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaUserModifyPassWordRequestWithDefaults - -`func NewSchemaUserModifyPassWordRequestWithDefaults() *SchemaUserModifyPassWordRequest` - -NewSchemaUserModifyPassWordRequestWithDefaults instantiates a new SchemaUserModifyPassWordRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetOldPass - -`func (o *SchemaUserModifyPassWordRequest) GetOldPass() string` - -GetOldPass returns the OldPass field if non-nil, zero value otherwise. - -### GetOldPassOk - -`func (o *SchemaUserModifyPassWordRequest) GetOldPassOk() (*string, bool)` - -GetOldPassOk returns a tuple with the OldPass field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOldPass - -`func (o *SchemaUserModifyPassWordRequest) SetOldPass(v string)` - -SetOldPass sets OldPass field to given value. - -### HasOldPass - -`func (o *SchemaUserModifyPassWordRequest) HasOldPass() bool` - -HasOldPass returns a boolean if a field has been set. - -### GetPass - -`func (o *SchemaUserModifyPassWordRequest) GetPass() string` - -GetPass returns the Pass field if non-nil, zero value otherwise. - -### GetPassOk - -`func (o *SchemaUserModifyPassWordRequest) GetPassOk() (*string, bool)` - -GetPassOk returns a tuple with the Pass field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPass - -`func (o *SchemaUserModifyPassWordRequest) SetPass(v string)` - -SetPass sets Pass field to given value. - -### HasPass - -`func (o *SchemaUserModifyPassWordRequest) HasPass() bool` - -HasPass returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaUserNoticeSetRequest.md b/docs/SchemaUserNoticeSetRequest.md deleted file mode 100644 index 2581c5b..0000000 --- a/docs/SchemaUserNoticeSetRequest.md +++ /dev/null @@ -1,56 +0,0 @@ -# SchemaUserNoticeSetRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**NoticeSwitch** | Pointer to **bool** | | [optional] - -## Methods - -### NewSchemaUserNoticeSetRequest - -`func NewSchemaUserNoticeSetRequest() *SchemaUserNoticeSetRequest` - -NewSchemaUserNoticeSetRequest instantiates a new SchemaUserNoticeSetRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaUserNoticeSetRequestWithDefaults - -`func NewSchemaUserNoticeSetRequestWithDefaults() *SchemaUserNoticeSetRequest` - -NewSchemaUserNoticeSetRequestWithDefaults instantiates a new SchemaUserNoticeSetRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetNoticeSwitch - -`func (o *SchemaUserNoticeSetRequest) GetNoticeSwitch() bool` - -GetNoticeSwitch returns the NoticeSwitch field if non-nil, zero value otherwise. - -### GetNoticeSwitchOk - -`func (o *SchemaUserNoticeSetRequest) GetNoticeSwitchOk() (*bool, bool)` - -GetNoticeSwitchOk returns a tuple with the NoticeSwitch field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNoticeSwitch - -`func (o *SchemaUserNoticeSetRequest) SetNoticeSwitch(v bool)` - -SetNoticeSwitch sets NoticeSwitch field to given value. - -### HasNoticeSwitch - -`func (o *SchemaUserNoticeSetRequest) HasNoticeSwitch() bool` - -HasNoticeSwitch returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaUserNoticeSetResp.md b/docs/SchemaUserNoticeSetResp.md deleted file mode 100644 index 137fabd..0000000 --- a/docs/SchemaUserNoticeSetResp.md +++ /dev/null @@ -1,56 +0,0 @@ -# SchemaUserNoticeSetResp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**NoticeSwitch** | Pointer to **bool** | | [optional] - -## Methods - -### NewSchemaUserNoticeSetResp - -`func NewSchemaUserNoticeSetResp() *SchemaUserNoticeSetResp` - -NewSchemaUserNoticeSetResp instantiates a new SchemaUserNoticeSetResp object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSchemaUserNoticeSetRespWithDefaults - -`func NewSchemaUserNoticeSetRespWithDefaults() *SchemaUserNoticeSetResp` - -NewSchemaUserNoticeSetRespWithDefaults instantiates a new SchemaUserNoticeSetResp object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetNoticeSwitch - -`func (o *SchemaUserNoticeSetResp) GetNoticeSwitch() bool` - -GetNoticeSwitch returns the NoticeSwitch field if non-nil, zero value otherwise. - -### GetNoticeSwitchOk - -`func (o *SchemaUserNoticeSetResp) GetNoticeSwitchOk() (*bool, bool)` - -GetNoticeSwitchOk returns a tuple with the NoticeSwitch field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNoticeSwitch - -`func (o *SchemaUserNoticeSetResp) SetNoticeSwitch(v bool)` - -SetNoticeSwitch sets NoticeSwitch field to given value. - -### HasNoticeSwitch - -`func (o *SchemaUserNoticeSetResp) HasNoticeSwitch() bool` - -HasNoticeSwitch returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SchemaUserRePassWordRequest.md b/docs/SchemaUserRePassWordRequest.md index 01df100..b7bd003 100644 --- a/docs/SchemaUserRePassWordRequest.md +++ b/docs/SchemaUserRePassWordRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **string** | code | -**Pass** | **string** | Password | +**Code** | **string** | | +**Pass** | **string** | | ## Methods diff --git a/docs/SchemaUserRegisterReq.md b/docs/SchemaUserRegisterReq.md index 1f1be11..e925d20 100644 --- a/docs/SchemaUserRegisterReq.md +++ b/docs/SchemaUserRegisterReq.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CaptchaCode** | Pointer to **string** | captcha_code | [optional] -**CaptchaId** | Pointer to **string** | captcha_id | [optional] -**EMail** | **string** | email | -**Name** | **string** | name | -**Pass** | **string** | password | +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | | [optional] +**EMail** | **string** | | +**Name** | **string** | | +**Pass** | **string** | | ## Methods diff --git a/docs/SchemaUserRetrievePassWordRequest.md b/docs/SchemaUserRetrievePassWordRequest.md index 757b884..698edd8 100644 --- a/docs/SchemaUserRetrievePassWordRequest.md +++ b/docs/SchemaUserRetrievePassWordRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CaptchaCode** | Pointer to **string** | captcha_code | [optional] -**CaptchaId** | Pointer to **string** | captcha_id | [optional] -**EMail** | **string** | e_mail | +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | | [optional] +**EMail** | **string** | | ## Methods diff --git a/docs/SchemaUserUnsubscribeNotificationReq.md b/docs/SchemaUserUnsubscribeNotificationReq.md new file mode 100644 index 0000000..bd0e180 --- /dev/null +++ b/docs/SchemaUserUnsubscribeNotificationReq.md @@ -0,0 +1,51 @@ +# SchemaUserUnsubscribeNotificationReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **string** | | + +## Methods + +### NewSchemaUserUnsubscribeNotificationReq + +`func NewSchemaUserUnsubscribeNotificationReq(code string, ) *SchemaUserUnsubscribeNotificationReq` + +NewSchemaUserUnsubscribeNotificationReq instantiates a new SchemaUserUnsubscribeNotificationReq object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaUserUnsubscribeNotificationReqWithDefaults + +`func NewSchemaUserUnsubscribeNotificationReqWithDefaults() *SchemaUserUnsubscribeNotificationReq` + +NewSchemaUserUnsubscribeNotificationReqWithDefaults instantiates a new SchemaUserUnsubscribeNotificationReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *SchemaUserUnsubscribeNotificationReq) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *SchemaUserUnsubscribeNotificationReq) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *SchemaUserUnsubscribeNotificationReq) SetCode(v string)` + +SetCode sets Code field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SearchAPI.md b/docs/SearchAPI.md new file mode 100644 index 0000000..5aee8cf --- /dev/null +++ b/docs/SearchAPI.md @@ -0,0 +1,139 @@ +# \SearchAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1SearchDescGet**](SearchAPI.md#AnswerApiV1SearchDescGet) | **Get** /answer/api/v1/search/desc | get search description +[**AnswerApiV1SearchGet**](SearchAPI.md#AnswerApiV1SearchGet) | **Get** /answer/api/v1/search | search object + + + +## AnswerApiV1SearchDescGet + +> AnswerApiV1SearchGet200Response AnswerApiV1SearchDescGet(ctx).Execute() + +get search description + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "git.ncc.cx/package/openapi-go-answer" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SearchAPI.AnswerApiV1SearchDescGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.AnswerApiV1SearchDescGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1SearchDescGet`: AnswerApiV1SearchGet200Response + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.AnswerApiV1SearchDescGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1SearchDescGetRequest struct via the builder pattern + + +### Return type + +[**AnswerApiV1SearchGet200Response**](AnswerApiV1SearchGet200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1SearchGet + +> AnswerApiV1SearchGet200Response AnswerApiV1SearchGet(ctx).Q(q).Order(order).Execute() + +search object + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "git.ncc.cx/package/openapi-go-answer" +) + +func main() { + q := "q_example" // string | query string + order := "order_example" // string | order + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SearchAPI.AnswerApiV1SearchGet(context.Background()).Q(q).Order(order).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.AnswerApiV1SearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1SearchGet`: AnswerApiV1SearchGet200Response + fmt.Fprintf(os.Stdout, "Response from `SearchAPI.AnswerApiV1SearchGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1SearchGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **q** | **string** | query string | + **order** | **string** | order | + +### Return type + +[**AnswerApiV1SearchGet200Response**](AnswerApiV1SearchGet200Response.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/SearchApi.md b/docs/SearchApi.md deleted file mode 100644 index 9d8afa1..0000000 --- a/docs/SearchApi.md +++ /dev/null @@ -1,77 +0,0 @@ -# \SearchApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AnswerApiV1SearchGet**](SearchApi.md#AnswerApiV1SearchGet) | **Get** /answer/api/v1/search | search object - - - -## AnswerApiV1SearchGet - -> AnswerApiV1SearchGet200Response AnswerApiV1SearchGet(ctx).Q(q).Order(order).Execute() - -search object - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - q := "q_example" // string | query string - order := "order_example" // string | order - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SearchApi.AnswerApiV1SearchGet(context.Background()).Q(q).Order(order).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SearchApi.AnswerApiV1SearchGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AnswerApiV1SearchGet`: AnswerApiV1SearchGet200Response - fmt.Fprintf(os.Stdout, "Response from `SearchApi.AnswerApiV1SearchGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiAnswerApiV1SearchGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **q** | **string** | query string | - **order** | **string** | order | - -### Return type - -[**AnswerApiV1SearchGet200Response**](AnswerApiV1SearchGet200Response.md) - -### Authorization - -[ApiKeyAuth](../README.md#ApiKeyAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/docs/SiteApi.md b/docs/SiteAPI.md similarity index 80% rename from docs/SiteApi.md rename to docs/SiteAPI.md index d5a17ce..46f1913 100644 --- a/docs/SiteApi.md +++ b/docs/SiteAPI.md @@ -1,13 +1,13 @@ -# \SiteApi +# \SiteAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1SiteinfoGet**](SiteApi.md#AnswerApiV1SiteinfoGet) | **Get** /answer/api/v1/siteinfo | get site info -[**AnswerApiV1SiteinfoLegalGet**](SiteApi.md#AnswerApiV1SiteinfoLegalGet) | **Get** /answer/api/v1/siteinfo/legal | get site legal info -[**CustomCssGet**](SiteApi.md#CustomCssGet) | **Get** /custom.css | get site robots information -[**RobotsTxtGet**](SiteApi.md#RobotsTxtGet) | **Get** /robots.txt | get site robots information +[**AnswerApiV1SiteinfoGet**](SiteAPI.md#AnswerApiV1SiteinfoGet) | **Get** /answer/api/v1/siteinfo | get site info +[**AnswerApiV1SiteinfoLegalGet**](SiteAPI.md#AnswerApiV1SiteinfoLegalGet) | **Get** /answer/api/v1/siteinfo/legal | get site legal info +[**CustomCssGet**](SiteAPI.md#CustomCssGet) | **Get** /custom.css | get site robots information +[**RobotsTxtGet**](SiteAPI.md#RobotsTxtGet) | **Get** /robots.txt | get site robots information @@ -28,20 +28,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SiteApi.AnswerApiV1SiteinfoGet(context.Background()).Execute() + resp, r, err := apiClient.SiteAPI.AnswerApiV1SiteinfoGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SiteApi.AnswerApiV1SiteinfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SiteAPI.AnswerApiV1SiteinfoGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1SiteinfoGet`: AnswerApiV1SiteinfoGet200Response - fmt.Fprintf(os.Stdout, "Response from `SiteApi.AnswerApiV1SiteinfoGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `SiteAPI.AnswerApiV1SiteinfoGet`: %v\n", resp) } ``` @@ -89,7 +89,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -97,13 +97,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SiteApi.AnswerApiV1SiteinfoLegalGet(context.Background()).InfoType(infoType).Execute() + resp, r, err := apiClient.SiteAPI.AnswerApiV1SiteinfoLegalGet(context.Background()).InfoType(infoType).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SiteApi.AnswerApiV1SiteinfoLegalGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SiteAPI.AnswerApiV1SiteinfoLegalGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1SiteinfoLegalGet`: AnswerApiV1SiteinfoLegalGet200Response - fmt.Fprintf(os.Stdout, "Response from `SiteApi.AnswerApiV1SiteinfoLegalGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `SiteAPI.AnswerApiV1SiteinfoLegalGet`: %v\n", resp) } ``` @@ -155,20 +155,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SiteApi.CustomCssGet(context.Background()).Execute() + resp, r, err := apiClient.SiteAPI.CustomCssGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SiteApi.CustomCssGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SiteAPI.CustomCssGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CustomCssGet`: string - fmt.Fprintf(os.Stdout, "Response from `SiteApi.CustomCssGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `SiteAPI.CustomCssGet`: %v\n", resp) } ``` @@ -216,20 +216,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SiteApi.RobotsTxtGet(context.Background()).Execute() + resp, r, err := apiClient.SiteAPI.RobotsTxtGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SiteApi.RobotsTxtGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SiteAPI.RobotsTxtGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `RobotsTxtGet`: string - fmt.Fprintf(os.Stdout, "Response from `SiteApi.RobotsTxtGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `SiteAPI.RobotsTxtGet`: %v\n", resp) } ``` diff --git a/docs/TagApi.md b/docs/TagAPI.md similarity index 82% rename from docs/TagApi.md rename to docs/TagAPI.md index f874320..64b57f1 100644 --- a/docs/TagApi.md +++ b/docs/TagAPI.md @@ -1,19 +1,19 @@ -# \TagApi +# \TagAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1QuestionTagsGet**](TagApi.md#AnswerApiV1QuestionTagsGet) | **Get** /answer/api/v1/question/tags | get tag list -[**AnswerApiV1TagDelete**](TagApi.md#AnswerApiV1TagDelete) | **Delete** /answer/api/v1/tag | delete tag -[**AnswerApiV1TagGet**](TagApi.md#AnswerApiV1TagGet) | **Get** /answer/api/v1/tag | get tag one -[**AnswerApiV1TagPost**](TagApi.md#AnswerApiV1TagPost) | **Post** /answer/api/v1/tag | add tag -[**AnswerApiV1TagPut**](TagApi.md#AnswerApiV1TagPut) | **Put** /answer/api/v1/tag | update tag -[**AnswerApiV1TagSynonymPut**](TagApi.md#AnswerApiV1TagSynonymPut) | **Put** /answer/api/v1/tag/synonym | update tag -[**AnswerApiV1TagSynonymsGet**](TagApi.md#AnswerApiV1TagSynonymsGet) | **Get** /answer/api/v1/tag/synonyms | get tag synonyms -[**AnswerApiV1TagsFollowingGet**](TagApi.md#AnswerApiV1TagsFollowingGet) | **Get** /answer/api/v1/tags/following | get following tag list -[**AnswerApiV1TagsGet**](TagApi.md#AnswerApiV1TagsGet) | **Get** /answer/api/v1/tags | get tags list -[**AnswerApiV1TagsPageGet**](TagApi.md#AnswerApiV1TagsPageGet) | **Get** /answer/api/v1/tags/page | get tag page +[**AnswerApiV1QuestionTagsGet**](TagAPI.md#AnswerApiV1QuestionTagsGet) | **Get** /answer/api/v1/question/tags | get tag list +[**AnswerApiV1TagDelete**](TagAPI.md#AnswerApiV1TagDelete) | **Delete** /answer/api/v1/tag | delete tag +[**AnswerApiV1TagGet**](TagAPI.md#AnswerApiV1TagGet) | **Get** /answer/api/v1/tag | get tag one +[**AnswerApiV1TagPost**](TagAPI.md#AnswerApiV1TagPost) | **Post** /answer/api/v1/tag | add tag +[**AnswerApiV1TagPut**](TagAPI.md#AnswerApiV1TagPut) | **Put** /answer/api/v1/tag | update tag +[**AnswerApiV1TagSynonymPut**](TagAPI.md#AnswerApiV1TagSynonymPut) | **Put** /answer/api/v1/tag/synonym | update tag +[**AnswerApiV1TagSynonymsGet**](TagAPI.md#AnswerApiV1TagSynonymsGet) | **Get** /answer/api/v1/tag/synonyms | get tag synonyms +[**AnswerApiV1TagsFollowingGet**](TagAPI.md#AnswerApiV1TagsFollowingGet) | **Get** /answer/api/v1/tags/following | get following tag list +[**AnswerApiV1TagsGet**](TagAPI.md#AnswerApiV1TagsGet) | **Get** /answer/api/v1/tags | get tags list +[**AnswerApiV1TagsPageGet**](TagAPI.md#AnswerApiV1TagsPageGet) | **Get** /answer/api/v1/tags/page | get tag page @@ -34,7 +34,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -42,13 +42,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagApi.AnswerApiV1QuestionTagsGet(context.Background()).Tag(tag).Execute() + resp, r, err := apiClient.TagAPI.AnswerApiV1QuestionTagsGet(context.Background()).Tag(tag).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1QuestionTagsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TagAPI.AnswerApiV1QuestionTagsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1QuestionTagsGet`: AnswerApiV1QuestionTagsGet200Response - fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1QuestionTagsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TagAPI.AnswerApiV1QuestionTagsGet`: %v\n", resp) } ``` @@ -100,7 +100,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -108,13 +108,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagApi.AnswerApiV1TagDelete(context.Background()).Data(data).Execute() + resp, r, err := apiClient.TagAPI.AnswerApiV1TagDelete(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TagAPI.AnswerApiV1TagDelete``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1TagDelete`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagDelete`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TagAPI.AnswerApiV1TagDelete`: %v\n", resp) } ``` @@ -166,7 +166,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -175,13 +175,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagApi.AnswerApiV1TagGet(context.Background()).TagId(tagId).TagName(tagName).Execute() + resp, r, err := apiClient.TagAPI.AnswerApiV1TagGet(context.Background()).TagId(tagId).TagName(tagName).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TagAPI.AnswerApiV1TagGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1TagGet`: AnswerApiV1TagGet200Response - fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TagAPI.AnswerApiV1TagGet`: %v\n", resp) } ``` @@ -234,7 +234,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -242,13 +242,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagApi.AnswerApiV1TagPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.TagAPI.AnswerApiV1TagPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TagAPI.AnswerApiV1TagPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1TagPost`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TagAPI.AnswerApiV1TagPost`: %v\n", resp) } ``` @@ -300,7 +300,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -308,13 +308,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagApi.AnswerApiV1TagPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.TagAPI.AnswerApiV1TagPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TagAPI.AnswerApiV1TagPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1TagPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TagAPI.AnswerApiV1TagPut`: %v\n", resp) } ``` @@ -366,7 +366,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -374,13 +374,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagApi.AnswerApiV1TagSynonymPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.TagAPI.AnswerApiV1TagSynonymPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagSynonymPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TagAPI.AnswerApiV1TagSynonymPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1TagSynonymPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagSynonymPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TagAPI.AnswerApiV1TagSynonymPut`: %v\n", resp) } ``` @@ -432,7 +432,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -440,13 +440,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagApi.AnswerApiV1TagSynonymsGet(context.Background()).TagId(tagId).Execute() + resp, r, err := apiClient.TagAPI.AnswerApiV1TagSynonymsGet(context.Background()).TagId(tagId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagSynonymsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TagAPI.AnswerApiV1TagSynonymsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1TagSynonymsGet`: AnswerApiV1TagSynonymsGet200Response - fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagSynonymsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TagAPI.AnswerApiV1TagSynonymsGet`: %v\n", resp) } ``` @@ -498,20 +498,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagApi.AnswerApiV1TagsFollowingGet(context.Background()).Execute() + resp, r, err := apiClient.TagAPI.AnswerApiV1TagsFollowingGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagsFollowingGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TagAPI.AnswerApiV1TagsFollowingGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1TagsFollowingGet`: AnswerApiV1TagsFollowingGet200Response - fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagsFollowingGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TagAPI.AnswerApiV1TagsFollowingGet`: %v\n", resp) } ``` @@ -559,7 +559,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -567,13 +567,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagApi.AnswerApiV1TagsGet(context.Background()).Tags(tags).Execute() + resp, r, err := apiClient.TagAPI.AnswerApiV1TagsGet(context.Background()).Tags(tags).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TagAPI.AnswerApiV1TagsGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1TagsGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagsGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TagAPI.AnswerApiV1TagsGet`: %v\n", resp) } ``` @@ -625,7 +625,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -636,13 +636,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagApi.AnswerApiV1TagsPageGet(context.Background()).Page(page).PageSize(pageSize).SlugName(slugName).QueryCond(queryCond).Execute() + resp, r, err := apiClient.TagAPI.AnswerApiV1TagsPageGet(context.Background()).Page(page).PageSize(pageSize).SlugName(slugName).QueryCond(queryCond).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagsPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TagAPI.AnswerApiV1TagsPageGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1TagsPageGet`: AnswerApiV1TagsPageGet200Response - fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagsPageGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TagAPI.AnswerApiV1TagsPageGet`: %v\n", resp) } ``` diff --git a/docs/UploadApi.md b/docs/UploadAPI.md similarity index 83% rename from docs/UploadApi.md rename to docs/UploadAPI.md index 5e1056d..8a71cc7 100644 --- a/docs/UploadApi.md +++ b/docs/UploadAPI.md @@ -1,11 +1,11 @@ -# \UploadApi +# \UploadAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1FilePost**](UploadApi.md#AnswerApiV1FilePost) | **Post** /answer/api/v1/file | upload file -[**AnswerApiV1PostRenderPost**](UploadApi.md#AnswerApiV1PostRenderPost) | **Post** /answer/api/v1/post/render | render post content +[**AnswerApiV1FilePost**](UploadAPI.md#AnswerApiV1FilePost) | **Post** /answer/api/v1/file | upload file +[**AnswerApiV1PostRenderPost**](UploadAPI.md#AnswerApiV1PostRenderPost) | **Post** /answer/api/v1/post/render | render post content @@ -26,7 +26,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -35,13 +35,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UploadApi.AnswerApiV1FilePost(context.Background()).Source(source).File(file).Execute() + resp, r, err := apiClient.UploadAPI.AnswerApiV1FilePost(context.Background()).Source(source).File(file).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UploadApi.AnswerApiV1FilePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UploadAPI.AnswerApiV1FilePost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1FilePost`: AnswerApiV1FilePost200Response - fmt.Fprintf(os.Stdout, "Response from `UploadApi.AnswerApiV1FilePost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UploadAPI.AnswerApiV1FilePost`: %v\n", resp) } ``` @@ -94,7 +94,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -102,13 +102,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UploadApi.AnswerApiV1PostRenderPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.UploadAPI.AnswerApiV1PostRenderPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UploadApi.AnswerApiV1PostRenderPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UploadAPI.AnswerApiV1PostRenderPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1PostRenderPost`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `UploadApi.AnswerApiV1PostRenderPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UploadAPI.AnswerApiV1PostRenderPost`: %v\n", resp) } ``` diff --git a/docs/UserApi.md b/docs/UserAPI.md similarity index 74% rename from docs/UserApi.md rename to docs/UserAPI.md index bc6dc62..e2878b0 100644 --- a/docs/UserApi.md +++ b/docs/UserAPI.md @@ -1,29 +1,30 @@ -# \UserApi +# \UserAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerApiV1PersonalUserInfoGet**](UserApi.md#AnswerApiV1PersonalUserInfoGet) | **Get** /answer/api/v1/personal/user/info | GetOtherUserInfoByUsername -[**AnswerApiV1UserActionRecordGet**](UserApi.md#AnswerApiV1UserActionRecordGet) | **Get** /answer/api/v1/user/action/record | ActionRecord -[**AnswerApiV1UserEmailChangeCodePost**](UserApi.md#AnswerApiV1UserEmailChangeCodePost) | **Post** /answer/api/v1/user/email/change/code | send email to the user email then change their email -[**AnswerApiV1UserEmailNotificationPut**](UserApi.md#AnswerApiV1UserEmailNotificationPut) | **Put** /answer/api/v1/user/email/notification | unsubscribe email notification -[**AnswerApiV1UserEmailPut**](UserApi.md#AnswerApiV1UserEmailPut) | **Put** /answer/api/v1/user/email | user change email verification -[**AnswerApiV1UserEmailVerificationPost**](UserApi.md#AnswerApiV1UserEmailVerificationPost) | **Post** /answer/api/v1/user/email/verification | UserVerifyEmail -[**AnswerApiV1UserEmailVerificationSendPost**](UserApi.md#AnswerApiV1UserEmailVerificationSendPost) | **Post** /answer/api/v1/user/email/verification/send | UserVerifyEmailSend -[**AnswerApiV1UserInfoGet**](UserApi.md#AnswerApiV1UserInfoGet) | **Get** /answer/api/v1/user/info | GetUserInfoByUserID -[**AnswerApiV1UserInfoPut**](UserApi.md#AnswerApiV1UserInfoPut) | **Put** /answer/api/v1/user/info | UserUpdateInfo update user info -[**AnswerApiV1UserInfoSearchGet**](UserApi.md#AnswerApiV1UserInfoSearchGet) | **Get** /answer/api/v1/user/info/search | SearchUserListByName -[**AnswerApiV1UserInterfacePut**](UserApi.md#AnswerApiV1UserInterfacePut) | **Put** /answer/api/v1/user/interface | UserUpdateInterface update user interface config -[**AnswerApiV1UserLoginEmailPost**](UserApi.md#AnswerApiV1UserLoginEmailPost) | **Post** /answer/api/v1/user/login/email | UserEmailLogin -[**AnswerApiV1UserLogoutGet**](UserApi.md#AnswerApiV1UserLogoutGet) | **Get** /answer/api/v1/user/logout | user logout -[**AnswerApiV1UserNoticeSetPost**](UserApi.md#AnswerApiV1UserNoticeSetPost) | **Post** /answer/api/v1/user/notice/set | UserNoticeSet -[**AnswerApiV1UserPasswordPut**](UserApi.md#AnswerApiV1UserPasswordPut) | **Put** /answer/api/v1/user/password | UserModifyPassWord -[**AnswerApiV1UserPasswordReplacementPost**](UserApi.md#AnswerApiV1UserPasswordReplacementPost) | **Post** /answer/api/v1/user/password/replacement | UseRePassWord -[**AnswerApiV1UserPasswordResetPost**](UserApi.md#AnswerApiV1UserPasswordResetPost) | **Post** /answer/api/v1/user/password/reset | RetrievePassWord -[**AnswerApiV1UserRankingGet**](UserApi.md#AnswerApiV1UserRankingGet) | **Get** /answer/api/v1/user/ranking | get user ranking -[**AnswerApiV1UserRegisterCaptchaGet**](UserApi.md#AnswerApiV1UserRegisterCaptchaGet) | **Get** /answer/api/v1/user/register/captcha | UserRegisterCaptcha -[**AnswerApiV1UserRegisterEmailPost**](UserApi.md#AnswerApiV1UserRegisterEmailPost) | **Post** /answer/api/v1/user/register/email | UserRegisterByEmail +[**AnswerApiV1PersonalUserInfoGet**](UserAPI.md#AnswerApiV1PersonalUserInfoGet) | **Get** /answer/api/v1/personal/user/info | GetOtherUserInfoByUsername +[**AnswerApiV1UserActionRecordGet**](UserAPI.md#AnswerApiV1UserActionRecordGet) | **Get** /answer/api/v1/user/action/record | ActionRecord +[**AnswerApiV1UserEmailChangeCodePost**](UserAPI.md#AnswerApiV1UserEmailChangeCodePost) | **Post** /answer/api/v1/user/email/change/code | send email to the user email then change their email +[**AnswerApiV1UserEmailPut**](UserAPI.md#AnswerApiV1UserEmailPut) | **Put** /answer/api/v1/user/email | user change email verification +[**AnswerApiV1UserEmailVerificationPost**](UserAPI.md#AnswerApiV1UserEmailVerificationPost) | **Post** /answer/api/v1/user/email/verification | UserVerifyEmail +[**AnswerApiV1UserEmailVerificationSendPost**](UserAPI.md#AnswerApiV1UserEmailVerificationSendPost) | **Post** /answer/api/v1/user/email/verification/send | UserVerifyEmailSend +[**AnswerApiV1UserInfoGet**](UserAPI.md#AnswerApiV1UserInfoGet) | **Get** /answer/api/v1/user/info | GetUserInfoByUserID +[**AnswerApiV1UserInfoPut**](UserAPI.md#AnswerApiV1UserInfoPut) | **Put** /answer/api/v1/user/info | UserUpdateInfo update user info +[**AnswerApiV1UserInfoSearchGet**](UserAPI.md#AnswerApiV1UserInfoSearchGet) | **Get** /answer/api/v1/user/info/search | SearchUserListByName +[**AnswerApiV1UserInterfacePut**](UserAPI.md#AnswerApiV1UserInterfacePut) | **Put** /answer/api/v1/user/interface | UserUpdateInterface update user interface config +[**AnswerApiV1UserLoginEmailPost**](UserAPI.md#AnswerApiV1UserLoginEmailPost) | **Post** /answer/api/v1/user/login/email | UserEmailLogin +[**AnswerApiV1UserLogoutGet**](UserAPI.md#AnswerApiV1UserLogoutGet) | **Get** /answer/api/v1/user/logout | user logout +[**AnswerApiV1UserNotificationConfigPost**](UserAPI.md#AnswerApiV1UserNotificationConfigPost) | **Post** /answer/api/v1/user/notification/config | get user's notification config +[**AnswerApiV1UserNotificationConfigPut**](UserAPI.md#AnswerApiV1UserNotificationConfigPut) | **Put** /answer/api/v1/user/notification/config | update user's notification config +[**AnswerApiV1UserNotificationUnsubscribePut**](UserAPI.md#AnswerApiV1UserNotificationUnsubscribePut) | **Put** /answer/api/v1/user/notification/unsubscribe | unsubscribe notification +[**AnswerApiV1UserPasswordPut**](UserAPI.md#AnswerApiV1UserPasswordPut) | **Put** /answer/api/v1/user/password | UserModifyPassWord +[**AnswerApiV1UserPasswordReplacementPost**](UserAPI.md#AnswerApiV1UserPasswordReplacementPost) | **Post** /answer/api/v1/user/password/replacement | UseRePassWord +[**AnswerApiV1UserPasswordResetPost**](UserAPI.md#AnswerApiV1UserPasswordResetPost) | **Post** /answer/api/v1/user/password/reset | RetrievePassWord +[**AnswerApiV1UserRankingGet**](UserAPI.md#AnswerApiV1UserRankingGet) | **Get** /answer/api/v1/user/ranking | get user ranking +[**AnswerApiV1UserRegisterCaptchaGet**](UserAPI.md#AnswerApiV1UserRegisterCaptchaGet) | **Get** /answer/api/v1/user/register/captcha | UserRegisterCaptcha +[**AnswerApiV1UserRegisterEmailPost**](UserAPI.md#AnswerApiV1UserRegisterEmailPost) | **Post** /answer/api/v1/user/register/email | UserRegisterByEmail @@ -44,7 +45,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -52,13 +53,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1PersonalUserInfoGet(context.Background()).Username(username).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1PersonalUserInfoGet(context.Background()).Username(username).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1PersonalUserInfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1PersonalUserInfoGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1PersonalUserInfoGet`: AnswerApiV1PersonalUserInfoGet200Response - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1PersonalUserInfoGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1PersonalUserInfoGet`: %v\n", resp) } ``` @@ -110,7 +111,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -118,13 +119,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserActionRecordGet(context.Background()).Action(action).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserActionRecordGet(context.Background()).Action(action).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserActionRecordGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserActionRecordGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserActionRecordGet`: AnswerApiV1UserActionRecordGet200Response - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserActionRecordGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserActionRecordGet`: %v\n", resp) } ``` @@ -176,7 +177,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -184,13 +185,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailChangeCodePost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserEmailChangeCodePost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailChangeCodePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserEmailChangeCodePost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserEmailChangeCodePost`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailChangeCodePost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserEmailChangeCodePost`: %v\n", resp) } ``` @@ -225,67 +226,6 @@ No authorization required [[Back to README]](../README.md) -## AnswerApiV1UserEmailNotificationPut - -> HandlerRespBody AnswerApiV1UserEmailNotificationPut(ctx).Execute() - -unsubscribe email notification - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailNotificationPut(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailNotificationPut``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AnswerApiV1UserEmailNotificationPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailNotificationPut`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailNotificationPutRequest struct via the builder pattern - - -### Return type - -[**HandlerRespBody**](HandlerRespBody.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## AnswerApiV1UserEmailPut > HandlerRespBody AnswerApiV1UserEmailPut(ctx).Data(data).Execute() @@ -303,7 +243,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -311,13 +251,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserEmailPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserEmailPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserEmailPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserEmailPut`: %v\n", resp) } ``` @@ -369,7 +309,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -377,13 +317,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationPost(context.Background()).Code(code).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserEmailVerificationPost(context.Background()).Code(code).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailVerificationPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserEmailVerificationPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserEmailVerificationPost`: AnswerApiV1UserEmailVerificationPost200Response - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailVerificationPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserEmailVerificationPost`: %v\n", resp) } ``` @@ -435,7 +375,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -444,13 +384,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationSendPost(context.Background()).CaptchaId(captchaId).CaptchaCode(captchaCode).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserEmailVerificationSendPost(context.Background()).CaptchaId(captchaId).CaptchaCode(captchaCode).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailVerificationSendPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserEmailVerificationSendPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserEmailVerificationSendPost`: string - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailVerificationSendPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserEmailVerificationSendPost`: %v\n", resp) } ``` @@ -503,20 +443,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserInfoGet(context.Background()).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserInfoGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserInfoGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserInfoGet`: AnswerApiV1UserInfoGet200Response - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInfoGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserInfoGet`: %v\n", resp) } ``` @@ -564,7 +504,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -573,13 +513,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserInfoPut(context.Background()).Authorization(authorization).Data(data).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserInfoPut(context.Background()).Authorization(authorization).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInfoPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserInfoPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserInfoPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInfoPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserInfoPut`: %v\n", resp) } ``` @@ -632,7 +572,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -640,13 +580,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserInfoSearchGet(context.Background()).Username(username).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserInfoSearchGet(context.Background()).Username(username).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInfoSearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserInfoSearchGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserInfoSearchGet`: AnswerApiV1PersonalUserInfoGet200Response - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInfoSearchGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserInfoSearchGet`: %v\n", resp) } ``` @@ -698,7 +638,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -707,13 +647,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserInterfacePut(context.Background()).Authorization(authorization).Data(data).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserInterfacePut(context.Background()).Authorization(authorization).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInterfacePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserInterfacePut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserInterfacePut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInterfacePut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserInterfacePut`: %v\n", resp) } ``` @@ -766,21 +706,21 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { - data := *openapiclient.NewSchemaUserEmailLogin("EMail_example", "Pass_example") // SchemaUserEmailLogin | UserEmailLogin + data := *openapiclient.NewSchemaUserEmailLoginReq("EMail_example", "Pass_example") // SchemaUserEmailLoginReq | UserEmailLogin configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserLoginEmailPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserLoginEmailPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserLoginEmailPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserLoginEmailPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserLoginEmailPost`: AnswerApiV1UserEmailVerificationPost200Response - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserLoginEmailPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserLoginEmailPost`: %v\n", resp) } ``` @@ -795,7 +735,7 @@ Other parameters are passed through a pointer to a apiAnswerApiV1UserLoginEmailP Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**SchemaUserEmailLogin**](SchemaUserEmailLogin.md) | UserEmailLogin | + **data** | [**SchemaUserEmailLoginReq**](SchemaUserEmailLoginReq.md) | UserEmailLogin | ### Return type @@ -832,20 +772,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserLogoutGet(context.Background()).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserLogoutGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserLogoutGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserLogoutGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserLogoutGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserLogoutGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserLogoutGet`: %v\n", resp) } ``` @@ -876,11 +816,11 @@ No authorization required [[Back to README]](../README.md) -## AnswerApiV1UserNoticeSetPost +## AnswerApiV1UserNotificationConfigPost -> AnswerApiV1UserNoticeSetPost200Response AnswerApiV1UserNoticeSetPost(ctx).Data(data).Execute() +> AnswerApiV1UserNotificationConfigPost200Response AnswerApiV1UserNotificationConfigPost(ctx).Execute() -UserNoticeSet +get user's notification config @@ -893,21 +833,82 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { - data := *openapiclient.NewSchemaUserNoticeSetRequest() // SchemaUserNoticeSetRequest | UserNoticeSetRequest configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserNoticeSetPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserNotificationConfigPost(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserNoticeSetPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserNotificationConfigPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `AnswerApiV1UserNoticeSetPost`: AnswerApiV1UserNoticeSetPost200Response - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserNoticeSetPost`: %v\n", resp) + // response from `AnswerApiV1UserNotificationConfigPost`: AnswerApiV1UserNotificationConfigPost200Response + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserNotificationConfigPost`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserNotificationConfigPostRequest struct via the builder pattern + + +### Return type + +[**AnswerApiV1UserNotificationConfigPost200Response**](AnswerApiV1UserNotificationConfigPost200Response.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1UserNotificationConfigPut + +> HandlerRespBody AnswerApiV1UserNotificationConfigPut(ctx).Data(data).Execute() + +update user's notification config + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "git.ncc.cx/package/openapi-go-answer" +) + +func main() { + data := *openapiclient.NewSchemaUpdateUserNotificationConfigReq() // SchemaUpdateUserNotificationConfigReq | UpdateUserNotificationConfigReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserAPI.AnswerApiV1UserNotificationConfigPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserNotificationConfigPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserNotificationConfigPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserNotificationConfigPut`: %v\n", resp) } ``` @@ -917,16 +918,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiAnswerApiV1UserNoticeSetPostRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiAnswerApiV1UserNotificationConfigPutRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**SchemaUserNoticeSetRequest**](SchemaUserNoticeSetRequest.md) | UserNoticeSetRequest | + **data** | [**SchemaUpdateUserNotificationConfigReq**](SchemaUpdateUserNotificationConfigReq.md) | UpdateUserNotificationConfigReq | ### Return type -[**AnswerApiV1UserNoticeSetPost200Response**](AnswerApiV1UserNoticeSetPost200Response.md) +[**HandlerRespBody**](HandlerRespBody.md) ### Authorization @@ -942,6 +943,72 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## AnswerApiV1UserNotificationUnsubscribePut + +> HandlerRespBody AnswerApiV1UserNotificationUnsubscribePut(ctx).Data(data).Execute() + +unsubscribe notification + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "git.ncc.cx/package/openapi-go-answer" +) + +func main() { + data := *openapiclient.NewSchemaUserUnsubscribeNotificationReq("Code_example") // SchemaUserUnsubscribeNotificationReq | UserUnsubscribeNotificationReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserAPI.AnswerApiV1UserNotificationUnsubscribePut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserNotificationUnsubscribePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserNotificationUnsubscribePut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserNotificationUnsubscribePut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserNotificationUnsubscribePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUserUnsubscribeNotificationReq**](SchemaUserUnsubscribeNotificationReq.md) | UserUnsubscribeNotificationReq | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## AnswerApiV1UserPasswordPut > HandlerRespBody AnswerApiV1UserPasswordPut(ctx).Data(data).Execute() @@ -959,7 +1026,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -967,13 +1034,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserPasswordPut(context.Background()).Data(data).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserPasswordPut(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserPasswordPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserPasswordPut``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserPasswordPut`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserPasswordPut`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserPasswordPut`: %v\n", resp) } ``` @@ -1025,7 +1092,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1033,13 +1100,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserPasswordReplacementPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserPasswordReplacementPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserPasswordReplacementPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserPasswordReplacementPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserPasswordReplacementPost`: string - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserPasswordReplacementPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserPasswordReplacementPost`: %v\n", resp) } ``` @@ -1091,7 +1158,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1099,13 +1166,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserPasswordResetPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserPasswordResetPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserPasswordResetPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserPasswordResetPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserPasswordResetPost`: string - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserPasswordResetPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserPasswordResetPost`: %v\n", resp) } ``` @@ -1157,20 +1224,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserRankingGet(context.Background()).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserRankingGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserRankingGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserRankingGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserRankingGet`: AnswerApiV1UserRankingGet200Response - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserRankingGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserRankingGet`: %v\n", resp) } ``` @@ -1218,20 +1285,20 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserRegisterCaptchaGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserRegisterCaptchaGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserRegisterCaptchaGet`: AnswerApiV1UserEmailVerificationPost200Response - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserRegisterCaptchaGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserRegisterCaptchaGet`: %v\n", resp) } ``` @@ -1279,7 +1346,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) func main() { @@ -1287,13 +1354,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UserApi.AnswerApiV1UserRegisterEmailPost(context.Background()).Data(data).Execute() + resp, r, err := apiClient.UserAPI.AnswerApiV1UserRegisterEmailPost(context.Background()).Data(data).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserRegisterEmailPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.AnswerApiV1UserRegisterEmailPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `AnswerApiV1UserRegisterEmailPost`: AnswerApiV1UserEmailVerificationPost200Response - fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserRegisterEmailPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UserAPI.AnswerApiV1UserRegisterEmailPost`: %v\n", resp) } ``` diff --git a/git_push.sh b/git_push.sh index f53a75d..be05ba9 100644 --- a/git_push.sh +++ b/git_push.sh @@ -9,17 +9,17 @@ release_note=$3 git_host=$4 if [ "$git_host" = "" ]; then - git_host="github.com" + git_host="git.ncc.cx" echo "[INFO] No command line input provided. Set \$git_host to $git_host" fi if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" + git_user_id="package" echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" fi if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" + git_repo_id="openapi-go-answer" echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" fi diff --git a/go.mod b/go.mod index f70482d..33c75ac 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module git.ncc.cx/package/openapi-go-answer -go 1.20 +go 1.18 require github.com/stretchr/testify v1.8.4 diff --git a/go.sum b/go.sum index c966c8d..fa4b6e6 100644 --- a/go.sum +++ b/go.sum @@ -1,11 +1,10 @@ -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/model__answer_admin_api_plugin_config_get_200_response.go b/model__answer_admin_api_plugin_config_get_200_response.go index 05e750a..9b9c6f9 100644 --- a/model__answer_admin_api_plugin_config_get_200_response.go +++ b/model__answer_admin_api_plugin_config_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiPluginConfigGet200Response{} // AnswerAdminApiPluginConfigGet200Response struct for AnswerAdminApiPluginConfigGet200Response type AnswerAdminApiPluginConfigGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetPluginConfigResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiPluginConfigGet200Response instantiates a new AnswerAdminApiPluginConfigGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiPluginConfigGet200ResponseWithDefaults() *AnswerAdminApiPl return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiPluginConfigGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiPluginConfigGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiPluginConfigGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiPluginConfigGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiPluginConfigGet200Response) GetData() SchemaGetPluginConfigResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiPluginConfigGet200Response) SetData(v SchemaGetPluginConf o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiPluginConfigGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiPluginConfigGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiPluginConfigGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiPluginConfigGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiPluginConfigGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiPluginConfigGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiPluginConfigGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiPluginConfigGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiPluginConfigGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiPluginConfigGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiPluginConfigGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiPluginConfigGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiPluginConfigGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiPluginConfigGet200Response) MarshalJSON() ([]byte, error) func (o AnswerAdminApiPluginConfigGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_plugins_get_200_response.go b/model__answer_admin_api_plugins_get_200_response.go index 2f895c2..fc905c9 100644 --- a/model__answer_admin_api_plugins_get_200_response.go +++ b/model__answer_admin_api_plugins_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiPluginsGet200Response{} // AnswerAdminApiPluginsGet200Response struct for AnswerAdminApiPluginsGet200Response type AnswerAdminApiPluginsGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data []SchemaGetPluginListResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiPluginsGet200Response instantiates a new AnswerAdminApiPluginsGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiPluginsGet200ResponseWithDefaults() *AnswerAdminApiPlugins return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiPluginsGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiPluginsGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiPluginsGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiPluginsGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiPluginsGet200Response) GetData() []SchemaGetPluginListResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiPluginsGet200Response) SetData(v []SchemaGetPluginListRes o.Data = v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiPluginsGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiPluginsGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiPluginsGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiPluginsGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiPluginsGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiPluginsGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiPluginsGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiPluginsGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiPluginsGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiPluginsGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiPluginsGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiPluginsGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiPluginsGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiPluginsGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerAdminApiPluginsGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_roles_get_200_response.go b/model__answer_admin_api_roles_get_200_response.go index 585e5b2..e0754f4 100644 --- a/model__answer_admin_api_roles_get_200_response.go +++ b/model__answer_admin_api_roles_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiRolesGet200Response{} // AnswerAdminApiRolesGet200Response struct for AnswerAdminApiRolesGet200Response type AnswerAdminApiRolesGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data []SchemaGetRoleResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiRolesGet200Response instantiates a new AnswerAdminApiRolesGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiRolesGet200ResponseWithDefaults() *AnswerAdminApiRolesGet2 return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiRolesGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiRolesGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiRolesGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiRolesGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiRolesGet200Response) GetData() []SchemaGetRoleResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiRolesGet200Response) SetData(v []SchemaGetRoleResp) { o.Data = v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiRolesGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiRolesGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiRolesGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiRolesGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiRolesGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiRolesGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiRolesGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiRolesGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiRolesGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiRolesGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiRolesGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiRolesGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiRolesGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiRolesGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerAdminApiRolesGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_setting_privileges_get_200_response.go b/model__answer_admin_api_setting_privileges_get_200_response.go index 591921a..4b40f90 100644 --- a/model__answer_admin_api_setting_privileges_get_200_response.go +++ b/model__answer_admin_api_setting_privileges_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSettingPrivilegesGet200Response{} // AnswerAdminApiSettingPrivilegesGet200Response struct for AnswerAdminApiSettingPrivilegesGet200Response type AnswerAdminApiSettingPrivilegesGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetPrivilegesConfigResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSettingPrivilegesGet200Response instantiates a new AnswerAdminApiSettingPrivilegesGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSettingPrivilegesGet200ResponseWithDefaults() *AnswerAdmin return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetData() SchemaGetPrivilegesConfigResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSettingPrivilegesGet200Response) SetData(v SchemaGetPrivi o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSettingPrivilegesGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSettingPrivilegesGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSettingPrivilegesGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSettingPrivilegesGet200Response) MarshalJSON() ([]byte, er func (o AnswerAdminApiSettingPrivilegesGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_setting_smtp_get_200_response.go b/model__answer_admin_api_setting_smtp_get_200_response.go index 0230b57..232efcf 100644 --- a/model__answer_admin_api_setting_smtp_get_200_response.go +++ b/model__answer_admin_api_setting_smtp_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSettingSmtpGet200Response{} // AnswerAdminApiSettingSmtpGet200Response struct for AnswerAdminApiSettingSmtpGet200Response type AnswerAdminApiSettingSmtpGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetSMTPConfigResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSettingSmtpGet200Response instantiates a new AnswerAdminApiSettingSmtpGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSettingSmtpGet200ResponseWithDefaults() *AnswerAdminApiSet return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSettingSmtpGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSettingSmtpGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSettingSmtpGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSettingSmtpGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSettingSmtpGet200Response) GetData() SchemaGetSMTPConfigResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSettingSmtpGet200Response) SetData(v SchemaGetSMTPConfigR o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSettingSmtpGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSettingSmtpGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSettingSmtpGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSettingSmtpGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSettingSmtpGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSettingSmtpGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSettingSmtpGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSettingSmtpGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSettingSmtpGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSettingSmtpGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSettingSmtpGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSettingSmtpGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSettingSmtpGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSettingSmtpGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerAdminApiSettingSmtpGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_siteinfo_branding_get_200_response.go b/model__answer_admin_api_siteinfo_branding_get_200_response.go index dbf27b8..8a3861c 100644 --- a/model__answer_admin_api_siteinfo_branding_get_200_response.go +++ b/model__answer_admin_api_siteinfo_branding_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSiteinfoBrandingGet200Response{} // AnswerAdminApiSiteinfoBrandingGet200Response struct for AnswerAdminApiSiteinfoBrandingGet200Response type AnswerAdminApiSiteinfoBrandingGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteBrandingResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSiteinfoBrandingGet200Response instantiates a new AnswerAdminApiSiteinfoBrandingGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSiteinfoBrandingGet200ResponseWithDefaults() *AnswerAdminA return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetData() SchemaSiteBrandingResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSiteinfoBrandingGet200Response) SetData(v SchemaSiteBrand o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSiteinfoBrandingGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSiteinfoBrandingGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSiteinfoBrandingGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSiteinfoBrandingGet200Response) MarshalJSON() ([]byte, err func (o AnswerAdminApiSiteinfoBrandingGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_siteinfo_custom_css_html_get_200_response.go b/model__answer_admin_api_siteinfo_custom_css_html_get_200_response.go index 60ec268..042d282 100644 --- a/model__answer_admin_api_siteinfo_custom_css_html_get_200_response.go +++ b/model__answer_admin_api_siteinfo_custom_css_html_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSiteinfoCustomCssHtmlGet200Response{} // AnswerAdminApiSiteinfoCustomCssHtmlGet200Response struct for AnswerAdminApiSiteinfoCustomCssHtmlGet200Response type AnswerAdminApiSiteinfoCustomCssHtmlGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteCustomCssHTMLResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSiteinfoCustomCssHtmlGet200Response instantiates a new AnswerAdminApiSiteinfoCustomCssHtmlGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSiteinfoCustomCssHtmlGet200ResponseWithDefaults() *AnswerA return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetData() SchemaSiteCustomCssHTMLResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetData(v SchemaSite o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) MarshalJSON() ([]byte func (o AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_siteinfo_general_get_200_response.go b/model__answer_admin_api_siteinfo_general_get_200_response.go index cd081ad..8aef870 100644 --- a/model__answer_admin_api_siteinfo_general_get_200_response.go +++ b/model__answer_admin_api_siteinfo_general_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSiteinfoGeneralGet200Response{} // AnswerAdminApiSiteinfoGeneralGet200Response struct for AnswerAdminApiSiteinfoGeneralGet200Response type AnswerAdminApiSiteinfoGeneralGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteGeneralResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSiteinfoGeneralGet200Response instantiates a new AnswerAdminApiSiteinfoGeneralGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSiteinfoGeneralGet200ResponseWithDefaults() *AnswerAdminAp return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetData() SchemaSiteGeneralResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetData(v SchemaSiteGenera o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSiteinfoGeneralGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSiteinfoGeneralGet200Response) MarshalJSON() ([]byte, erro func (o AnswerAdminApiSiteinfoGeneralGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_siteinfo_interface_get_200_response.go b/model__answer_admin_api_siteinfo_interface_get_200_response.go index cba225b..cf0f236 100644 --- a/model__answer_admin_api_siteinfo_interface_get_200_response.go +++ b/model__answer_admin_api_siteinfo_interface_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSiteinfoInterfaceGet200Response{} // AnswerAdminApiSiteinfoInterfaceGet200Response struct for AnswerAdminApiSiteinfoInterfaceGet200Response type AnswerAdminApiSiteinfoInterfaceGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteInterfaceResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSiteinfoInterfaceGet200Response instantiates a new AnswerAdminApiSiteinfoInterfaceGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSiteinfoInterfaceGet200ResponseWithDefaults() *AnswerAdmin return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetData() SchemaSiteInterfaceResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) SetData(v SchemaSiteInte o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSiteinfoInterfaceGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSiteinfoInterfaceGet200Response) MarshalJSON() ([]byte, er func (o AnswerAdminApiSiteinfoInterfaceGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_siteinfo_legal_get_200_response.go b/model__answer_admin_api_siteinfo_legal_get_200_response.go index f3a62ca..c6ed8a2 100644 --- a/model__answer_admin_api_siteinfo_legal_get_200_response.go +++ b/model__answer_admin_api_siteinfo_legal_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSiteinfoLegalGet200Response{} // AnswerAdminApiSiteinfoLegalGet200Response struct for AnswerAdminApiSiteinfoLegalGet200Response type AnswerAdminApiSiteinfoLegalGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteLegalResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSiteinfoLegalGet200Response instantiates a new AnswerAdminApiSiteinfoLegalGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSiteinfoLegalGet200ResponseWithDefaults() *AnswerAdminApiS return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetData() SchemaSiteLegalResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSiteinfoLegalGet200Response) SetData(v SchemaSiteLegalRes o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSiteinfoLegalGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSiteinfoLegalGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSiteinfoLegalGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSiteinfoLegalGet200Response) MarshalJSON() ([]byte, error) func (o AnswerAdminApiSiteinfoLegalGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_siteinfo_login_get_200_response.go b/model__answer_admin_api_siteinfo_login_get_200_response.go index a1d40c4..4b8700c 100644 --- a/model__answer_admin_api_siteinfo_login_get_200_response.go +++ b/model__answer_admin_api_siteinfo_login_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSiteinfoLoginGet200Response{} // AnswerAdminApiSiteinfoLoginGet200Response struct for AnswerAdminApiSiteinfoLoginGet200Response type AnswerAdminApiSiteinfoLoginGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteLoginResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSiteinfoLoginGet200Response instantiates a new AnswerAdminApiSiteinfoLoginGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSiteinfoLoginGet200ResponseWithDefaults() *AnswerAdminApiS return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetData() SchemaSiteLoginResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSiteinfoLoginGet200Response) SetData(v SchemaSiteLoginRes o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSiteinfoLoginGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSiteinfoLoginGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSiteinfoLoginGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSiteinfoLoginGet200Response) MarshalJSON() ([]byte, error) func (o AnswerAdminApiSiteinfoLoginGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_siteinfo_seo_get_200_response.go b/model__answer_admin_api_siteinfo_seo_get_200_response.go index 10647fc..033477f 100644 --- a/model__answer_admin_api_siteinfo_seo_get_200_response.go +++ b/model__answer_admin_api_siteinfo_seo_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSiteinfoSeoGet200Response{} // AnswerAdminApiSiteinfoSeoGet200Response struct for AnswerAdminApiSiteinfoSeoGet200Response type AnswerAdminApiSiteinfoSeoGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteSeoResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSiteinfoSeoGet200Response instantiates a new AnswerAdminApiSiteinfoSeoGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSiteinfoSeoGet200ResponseWithDefaults() *AnswerAdminApiSit return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetData() SchemaSiteSeoResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSiteinfoSeoGet200Response) SetData(v SchemaSiteSeoResp) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSiteinfoSeoGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSiteinfoSeoGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSiteinfoSeoGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSiteinfoSeoGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerAdminApiSiteinfoSeoGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_siteinfo_theme_get_200_response.go b/model__answer_admin_api_siteinfo_theme_get_200_response.go index 6a55370..1c95f51 100644 --- a/model__answer_admin_api_siteinfo_theme_get_200_response.go +++ b/model__answer_admin_api_siteinfo_theme_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSiteinfoThemeGet200Response{} // AnswerAdminApiSiteinfoThemeGet200Response struct for AnswerAdminApiSiteinfoThemeGet200Response type AnswerAdminApiSiteinfoThemeGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteThemeResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSiteinfoThemeGet200Response instantiates a new AnswerAdminApiSiteinfoThemeGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSiteinfoThemeGet200ResponseWithDefaults() *AnswerAdminApiS return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetData() SchemaSiteThemeResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSiteinfoThemeGet200Response) SetData(v SchemaSiteThemeRes o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSiteinfoThemeGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSiteinfoThemeGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSiteinfoThemeGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSiteinfoThemeGet200Response) MarshalJSON() ([]byte, error) func (o AnswerAdminApiSiteinfoThemeGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_siteinfo_users_get_200_response.go b/model__answer_admin_api_siteinfo_users_get_200_response.go index 7a3a855..664e0b9 100644 --- a/model__answer_admin_api_siteinfo_users_get_200_response.go +++ b/model__answer_admin_api_siteinfo_users_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSiteinfoUsersGet200Response{} // AnswerAdminApiSiteinfoUsersGet200Response struct for AnswerAdminApiSiteinfoUsersGet200Response type AnswerAdminApiSiteinfoUsersGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteUsersResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSiteinfoUsersGet200Response instantiates a new AnswerAdminApiSiteinfoUsersGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSiteinfoUsersGet200ResponseWithDefaults() *AnswerAdminApiS return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetData() SchemaSiteUsersResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSiteinfoUsersGet200Response) SetData(v SchemaSiteUsersRes o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSiteinfoUsersGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSiteinfoUsersGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSiteinfoUsersGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSiteinfoUsersGet200Response) MarshalJSON() ([]byte, error) func (o AnswerAdminApiSiteinfoUsersGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_siteinfo_write_get_200_response.go b/model__answer_admin_api_siteinfo_write_get_200_response.go index d912e2a..2d14306 100644 --- a/model__answer_admin_api_siteinfo_write_get_200_response.go +++ b/model__answer_admin_api_siteinfo_write_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiSiteinfoWriteGet200Response{} // AnswerAdminApiSiteinfoWriteGet200Response struct for AnswerAdminApiSiteinfoWriteGet200Response type AnswerAdminApiSiteinfoWriteGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteWriteResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiSiteinfoWriteGet200Response instantiates a new AnswerAdminApiSiteinfoWriteGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiSiteinfoWriteGet200ResponseWithDefaults() *AnswerAdminApiS return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetData() SchemaSiteWriteResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetData(v SchemaSiteWriteRes o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiSiteinfoWriteGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiSiteinfoWriteGet200Response) MarshalJSON() ([]byte, error) func (o AnswerAdminApiSiteinfoWriteGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_user_activation_get_200_response.go b/model__answer_admin_api_user_activation_get_200_response.go index 4be6fe4..b34c041 100644 --- a/model__answer_admin_api_user_activation_get_200_response.go +++ b/model__answer_admin_api_user_activation_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiUserActivationGet200Response{} // AnswerAdminApiUserActivationGet200Response struct for AnswerAdminApiUserActivationGet200Response type AnswerAdminApiUserActivationGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetUserActivationResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiUserActivationGet200Response instantiates a new AnswerAdminApiUserActivationGet200Response object @@ -38,6 +43,38 @@ func NewAnswerAdminApiUserActivationGet200ResponseWithDefaults() *AnswerAdminApi return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiUserActivationGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiUserActivationGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiUserActivationGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiUserActivationGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerAdminApiUserActivationGet200Response) GetData() SchemaGetUserActivationResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerAdminApiUserActivationGet200Response) SetData(v SchemaGetUserActi o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiUserActivationGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiUserActivationGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiUserActivationGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiUserActivationGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiUserActivationGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiUserActivationGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiUserActivationGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiUserActivationGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiUserActivationGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiUserActivationGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiUserActivationGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiUserActivationGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiUserActivationGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiUserActivationGet200Response) MarshalJSON() ([]byte, error func (o AnswerAdminApiUserActivationGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_users_page_get_200_response.go b/model__answer_admin_api_users_page_get_200_response.go index ac22685..2512b58 100644 --- a/model__answer_admin_api_users_page_get_200_response.go +++ b/model__answer_admin_api_users_page_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiUsersPageGet200Response{} // AnswerAdminApiUsersPageGet200Response struct for AnswerAdminApiUsersPageGet200Response type AnswerAdminApiUsersPageGet200Response struct { - Data *AnswerAdminApiUsersPageGet200ResponseData `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // http code + Code *int32 `json:"code,omitempty"` + Data *AnswerAdminApiUsersPageGet200ResponseAllOfData `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerAdminApiUsersPageGet200Response instantiates a new AnswerAdminApiUsersPageGet200Response object @@ -38,10 +43,42 @@ func NewAnswerAdminApiUsersPageGet200ResponseWithDefaults() *AnswerAdminApiUsers return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerAdminApiUsersPageGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiUsersPageGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerAdminApiUsersPageGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerAdminApiUsersPageGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerAdminApiUsersPageGet200Response) GetData() AnswerAdminApiUsersPageGet200ResponseData { +func (o *AnswerAdminApiUsersPageGet200Response) GetData() AnswerAdminApiUsersPageGet200ResponseAllOfData { if o == nil || IsNil(o.Data) { - var ret AnswerAdminApiUsersPageGet200ResponseData + var ret AnswerAdminApiUsersPageGet200ResponseAllOfData return ret } return *o.Data @@ -49,7 +86,7 @@ func (o *AnswerAdminApiUsersPageGet200Response) GetData() AnswerAdminApiUsersPag // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiUsersPageGet200Response) GetDataOk() (*AnswerAdminApiUsersPageGet200ResponseData, bool) { +func (o *AnswerAdminApiUsersPageGet200Response) GetDataOk() (*AnswerAdminApiUsersPageGet200ResponseAllOfData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -65,41 +102,73 @@ func (o *AnswerAdminApiUsersPageGet200Response) HasData() bool { return false } -// SetData gets a reference to the given AnswerAdminApiUsersPageGet200ResponseData and assigns it to the Data field. -func (o *AnswerAdminApiUsersPageGet200Response) SetData(v AnswerAdminApiUsersPageGet200ResponseData) { +// SetData gets a reference to the given AnswerAdminApiUsersPageGet200ResponseAllOfData and assigns it to the Data field. +func (o *AnswerAdminApiUsersPageGet200Response) SetData(v AnswerAdminApiUsersPageGet200ResponseAllOfData) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerAdminApiUsersPageGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerAdminApiUsersPageGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiUsersPageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerAdminApiUsersPageGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerAdminApiUsersPageGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerAdminApiUsersPageGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerAdminApiUsersPageGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerAdminApiUsersPageGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerAdminApiUsersPageGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiUsersPageGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerAdminApiUsersPageGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerAdminApiUsersPageGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerAdminApiUsersPageGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerAdminApiUsersPageGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerAdminApiUsersPageGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_admin_api_users_page_get_200_response_data.go b/model__answer_admin_api_users_page_get_200_response_all_of_data.go similarity index 50% rename from model__answer_admin_api_users_page_get_200_response_data.go rename to model__answer_admin_api_users_page_get_200_response_all_of_data.go index c8e6ce8..610e7a5 100644 --- a/model__answer_admin_api_users_page_get_200_response_data.go +++ b/model__answer_admin_api_users_page_get_200_response_all_of_data.go @@ -6,41 +6,41 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" ) -// checks if the AnswerAdminApiUsersPageGet200ResponseData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerAdminApiUsersPageGet200ResponseData{} +// checks if the AnswerAdminApiUsersPageGet200ResponseAllOfData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiUsersPageGet200ResponseAllOfData{} -// AnswerAdminApiUsersPageGet200ResponseData struct for AnswerAdminApiUsersPageGet200ResponseData -type AnswerAdminApiUsersPageGet200ResponseData struct { +// AnswerAdminApiUsersPageGet200ResponseAllOfData struct for AnswerAdminApiUsersPageGet200ResponseAllOfData +type AnswerAdminApiUsersPageGet200ResponseAllOfData struct { Count *int32 `json:"count,omitempty"` List map[string]interface{} `json:"list,omitempty"` Records []SchemaGetUserPageResp `json:"records,omitempty"` } -// NewAnswerAdminApiUsersPageGet200ResponseData instantiates a new AnswerAdminApiUsersPageGet200ResponseData object +// NewAnswerAdminApiUsersPageGet200ResponseAllOfData instantiates a new AnswerAdminApiUsersPageGet200ResponseAllOfData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAnswerAdminApiUsersPageGet200ResponseData() *AnswerAdminApiUsersPageGet200ResponseData { - this := AnswerAdminApiUsersPageGet200ResponseData{} +func NewAnswerAdminApiUsersPageGet200ResponseAllOfData() *AnswerAdminApiUsersPageGet200ResponseAllOfData { + this := AnswerAdminApiUsersPageGet200ResponseAllOfData{} return &this } -// NewAnswerAdminApiUsersPageGet200ResponseDataWithDefaults instantiates a new AnswerAdminApiUsersPageGet200ResponseData object +// NewAnswerAdminApiUsersPageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerAdminApiUsersPageGet200ResponseAllOfData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewAnswerAdminApiUsersPageGet200ResponseDataWithDefaults() *AnswerAdminApiUsersPageGet200ResponseData { - this := AnswerAdminApiUsersPageGet200ResponseData{} +func NewAnswerAdminApiUsersPageGet200ResponseAllOfDataWithDefaults() *AnswerAdminApiUsersPageGet200ResponseAllOfData { + this := AnswerAdminApiUsersPageGet200ResponseAllOfData{} return &this } // GetCount returns the Count field value if set, zero value otherwise. -func (o *AnswerAdminApiUsersPageGet200ResponseData) GetCount() int32 { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetCount() int32 { if o == nil || IsNil(o.Count) { var ret int32 return ret @@ -50,7 +50,7 @@ func (o *AnswerAdminApiUsersPageGet200ResponseData) GetCount() int32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiUsersPageGet200ResponseData) GetCountOk() (*int32, bool) { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetCountOk() (*int32, bool) { if o == nil || IsNil(o.Count) { return nil, false } @@ -58,7 +58,7 @@ func (o *AnswerAdminApiUsersPageGet200ResponseData) GetCountOk() (*int32, bool) } // HasCount returns a boolean if a field has been set. -func (o *AnswerAdminApiUsersPageGet200ResponseData) HasCount() bool { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) HasCount() bool { if o != nil && !IsNil(o.Count) { return true } @@ -67,12 +67,12 @@ func (o *AnswerAdminApiUsersPageGet200ResponseData) HasCount() bool { } // SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *AnswerAdminApiUsersPageGet200ResponseData) SetCount(v int32) { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) SetCount(v int32) { o.Count = &v } // GetList returns the List field value if set, zero value otherwise. -func (o *AnswerAdminApiUsersPageGet200ResponseData) GetList() map[string]interface{} { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetList() map[string]interface{} { if o == nil || IsNil(o.List) { var ret map[string]interface{} return ret @@ -82,7 +82,7 @@ func (o *AnswerAdminApiUsersPageGet200ResponseData) GetList() map[string]interfa // GetListOk returns a tuple with the List field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiUsersPageGet200ResponseData) GetListOk() (map[string]interface{}, bool) { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetListOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.List) { return map[string]interface{}{}, false } @@ -90,7 +90,7 @@ func (o *AnswerAdminApiUsersPageGet200ResponseData) GetListOk() (map[string]inte } // HasList returns a boolean if a field has been set. -func (o *AnswerAdminApiUsersPageGet200ResponseData) HasList() bool { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) HasList() bool { if o != nil && !IsNil(o.List) { return true } @@ -99,12 +99,12 @@ func (o *AnswerAdminApiUsersPageGet200ResponseData) HasList() bool { } // SetList gets a reference to the given map[string]interface{} and assigns it to the List field. -func (o *AnswerAdminApiUsersPageGet200ResponseData) SetList(v map[string]interface{}) { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) SetList(v map[string]interface{}) { o.List = v } // GetRecords returns the Records field value if set, zero value otherwise. -func (o *AnswerAdminApiUsersPageGet200ResponseData) GetRecords() []SchemaGetUserPageResp { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetRecords() []SchemaGetUserPageResp { if o == nil || IsNil(o.Records) { var ret []SchemaGetUserPageResp return ret @@ -114,7 +114,7 @@ func (o *AnswerAdminApiUsersPageGet200ResponseData) GetRecords() []SchemaGetUser // GetRecordsOk returns a tuple with the Records field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerAdminApiUsersPageGet200ResponseData) GetRecordsOk() ([]SchemaGetUserPageResp, bool) { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) GetRecordsOk() ([]SchemaGetUserPageResp, bool) { if o == nil || IsNil(o.Records) { return nil, false } @@ -122,7 +122,7 @@ func (o *AnswerAdminApiUsersPageGet200ResponseData) GetRecordsOk() ([]SchemaGetU } // HasRecords returns a boolean if a field has been set. -func (o *AnswerAdminApiUsersPageGet200ResponseData) HasRecords() bool { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) HasRecords() bool { if o != nil && !IsNil(o.Records) { return true } @@ -131,11 +131,11 @@ func (o *AnswerAdminApiUsersPageGet200ResponseData) HasRecords() bool { } // SetRecords gets a reference to the given []SchemaGetUserPageResp and assigns it to the Records field. -func (o *AnswerAdminApiUsersPageGet200ResponseData) SetRecords(v []SchemaGetUserPageResp) { +func (o *AnswerAdminApiUsersPageGet200ResponseAllOfData) SetRecords(v []SchemaGetUserPageResp) { o.Records = v } -func (o AnswerAdminApiUsersPageGet200ResponseData) MarshalJSON() ([]byte, error) { +func (o AnswerAdminApiUsersPageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -143,7 +143,7 @@ func (o AnswerAdminApiUsersPageGet200ResponseData) MarshalJSON() ([]byte, error) return json.Marshal(toSerialize) } -func (o AnswerAdminApiUsersPageGet200ResponseData) ToMap() (map[string]interface{}, error) { +func (o AnswerAdminApiUsersPageGet200ResponseAllOfData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Count) { toSerialize["count"] = o.Count @@ -157,38 +157,38 @@ func (o AnswerAdminApiUsersPageGet200ResponseData) ToMap() (map[string]interface return toSerialize, nil } -type NullableAnswerAdminApiUsersPageGet200ResponseData struct { - value *AnswerAdminApiUsersPageGet200ResponseData +type NullableAnswerAdminApiUsersPageGet200ResponseAllOfData struct { + value *AnswerAdminApiUsersPageGet200ResponseAllOfData isSet bool } -func (v NullableAnswerAdminApiUsersPageGet200ResponseData) Get() *AnswerAdminApiUsersPageGet200ResponseData { +func (v NullableAnswerAdminApiUsersPageGet200ResponseAllOfData) Get() *AnswerAdminApiUsersPageGet200ResponseAllOfData { return v.value } -func (v *NullableAnswerAdminApiUsersPageGet200ResponseData) Set(val *AnswerAdminApiUsersPageGet200ResponseData) { +func (v *NullableAnswerAdminApiUsersPageGet200ResponseAllOfData) Set(val *AnswerAdminApiUsersPageGet200ResponseAllOfData) { v.value = val v.isSet = true } -func (v NullableAnswerAdminApiUsersPageGet200ResponseData) IsSet() bool { +func (v NullableAnswerAdminApiUsersPageGet200ResponseAllOfData) IsSet() bool { return v.isSet } -func (v *NullableAnswerAdminApiUsersPageGet200ResponseData) Unset() { +func (v *NullableAnswerAdminApiUsersPageGet200ResponseAllOfData) Unset() { v.value = nil v.isSet = false } -func NewNullableAnswerAdminApiUsersPageGet200ResponseData(val *AnswerAdminApiUsersPageGet200ResponseData) *NullableAnswerAdminApiUsersPageGet200ResponseData { - return &NullableAnswerAdminApiUsersPageGet200ResponseData{value: val, isSet: true} +func NewNullableAnswerAdminApiUsersPageGet200ResponseAllOfData(val *AnswerAdminApiUsersPageGet200ResponseAllOfData) *NullableAnswerAdminApiUsersPageGet200ResponseAllOfData { + return &NullableAnswerAdminApiUsersPageGet200ResponseAllOfData{value: val, isSet: true} } -func (v NullableAnswerAdminApiUsersPageGet200ResponseData) MarshalJSON() ([]byte, error) { +func (v NullableAnswerAdminApiUsersPageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableAnswerAdminApiUsersPageGet200ResponseData) UnmarshalJSON(src []byte) error { +func (v *NullableAnswerAdminApiUsersPageGet200ResponseAllOfData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/model__answer_admin_api_users_page_get_200_response_data_all_of.go b/model__answer_admin_api_users_page_get_200_response_data_all_of.go deleted file mode 100644 index 4f4d271..0000000 --- a/model__answer_admin_api_users_page_get_200_response_data_all_of.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerAdminApiUsersPageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerAdminApiUsersPageGet200ResponseDataAllOf{} - -// AnswerAdminApiUsersPageGet200ResponseDataAllOf struct for AnswerAdminApiUsersPageGet200ResponseDataAllOf -type AnswerAdminApiUsersPageGet200ResponseDataAllOf struct { - Records []SchemaGetUserPageResp `json:"records,omitempty"` -} - -// NewAnswerAdminApiUsersPageGet200ResponseDataAllOf instantiates a new AnswerAdminApiUsersPageGet200ResponseDataAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerAdminApiUsersPageGet200ResponseDataAllOf() *AnswerAdminApiUsersPageGet200ResponseDataAllOf { - this := AnswerAdminApiUsersPageGet200ResponseDataAllOf{} - return &this -} - -// NewAnswerAdminApiUsersPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerAdminApiUsersPageGet200ResponseDataAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerAdminApiUsersPageGet200ResponseDataAllOfWithDefaults() *AnswerAdminApiUsersPageGet200ResponseDataAllOf { - this := AnswerAdminApiUsersPageGet200ResponseDataAllOf{} - return &this -} - -// GetRecords returns the Records field value if set, zero value otherwise. -func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) GetRecords() []SchemaGetUserPageResp { - if o == nil || IsNil(o.Records) { - var ret []SchemaGetUserPageResp - return ret - } - return o.Records -} - -// GetRecordsOk returns a tuple with the Records field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) GetRecordsOk() ([]SchemaGetUserPageResp, bool) { - if o == nil || IsNil(o.Records) { - return nil, false - } - return o.Records, true -} - -// HasRecords returns a boolean if a field has been set. -func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) HasRecords() bool { - if o != nil && !IsNil(o.Records) { - return true - } - - return false -} - -// SetRecords gets a reference to the given []SchemaGetUserPageResp and assigns it to the Records field. -func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) SetRecords(v []SchemaGetUserPageResp) { - o.Records = v -} - -func (o AnswerAdminApiUsersPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerAdminApiUsersPageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Records) { - toSerialize["records"] = o.Records - } - return toSerialize, nil -} - -type NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf struct { - value *AnswerAdminApiUsersPageGet200ResponseDataAllOf - isSet bool -} - -func (v NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) Get() *AnswerAdminApiUsersPageGet200ResponseDataAllOf { - return v.value -} - -func (v *NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) Set(val *AnswerAdminApiUsersPageGet200ResponseDataAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerAdminApiUsersPageGet200ResponseDataAllOf(val *AnswerAdminApiUsersPageGet200ResponseDataAllOf) *NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf { - return &NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf{value: val, isSet: true} -} - -func (v NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_activity_timeline_get_200_response.go b/model__answer_api_v1_activity_timeline_get_200_response.go index 157d22d..c71e82f 100644 --- a/model__answer_api_v1_activity_timeline_get_200_response.go +++ b/model__answer_api_v1_activity_timeline_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1ActivityTimelineGet200Response{} // AnswerApiV1ActivityTimelineGet200Response struct for AnswerApiV1ActivityTimelineGet200Response type AnswerApiV1ActivityTimelineGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetObjectTimelineResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1ActivityTimelineGet200Response instantiates a new AnswerApiV1ActivityTimelineGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1ActivityTimelineGet200ResponseWithDefaults() *AnswerApiV1Acti return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1ActivityTimelineGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1ActivityTimelineGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1ActivityTimelineGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1ActivityTimelineGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1ActivityTimelineGet200Response) GetData() SchemaGetObjectTimelineResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1ActivityTimelineGet200Response) SetData(v SchemaGetObjectTim o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1ActivityTimelineGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1ActivityTimelineGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1ActivityTimelineGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1ActivityTimelineGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1ActivityTimelineGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1ActivityTimelineGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1ActivityTimelineGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1ActivityTimelineGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1ActivityTimelineGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1ActivityTimelineGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1ActivityTimelineGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1ActivityTimelineGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1ActivityTimelineGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1ActivityTimelineGet200Response) MarshalJSON() ([]byte, error) func (o AnswerApiV1ActivityTimelineGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_collection_switch_post_200_response.go b/model__answer_api_v1_collection_switch_post_200_response.go index 2789abb..bc35ad6 100644 --- a/model__answer_api_v1_collection_switch_post_200_response.go +++ b/model__answer_api_v1_collection_switch_post_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1CollectionSwitchPost200Response{} // AnswerApiV1CollectionSwitchPost200Response struct for AnswerApiV1CollectionSwitchPost200Response type AnswerApiV1CollectionSwitchPost200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaCollectionSwitchResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1CollectionSwitchPost200Response instantiates a new AnswerApiV1CollectionSwitchPost200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1CollectionSwitchPost200ResponseWithDefaults() *AnswerApiV1Col return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1CollectionSwitchPost200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CollectionSwitchPost200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1CollectionSwitchPost200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1CollectionSwitchPost200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1CollectionSwitchPost200Response) GetData() SchemaCollectionSwitchResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1CollectionSwitchPost200Response) SetData(v SchemaCollectionS o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1CollectionSwitchPost200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1CollectionSwitchPost200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1CollectionSwitchPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1CollectionSwitchPost200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1CollectionSwitchPost200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1CollectionSwitchPost200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1CollectionSwitchPost200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1CollectionSwitchPost200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1CollectionSwitchPost200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CollectionSwitchPost200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1CollectionSwitchPost200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1CollectionSwitchPost200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1CollectionSwitchPost200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1CollectionSwitchPost200Response) MarshalJSON() ([]byte, error func (o AnswerApiV1CollectionSwitchPost200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_comment_get_200_response.go b/model__answer_api_v1_comment_get_200_response.go index d45f42d..4e0f078 100644 --- a/model__answer_api_v1_comment_get_200_response.go +++ b/model__answer_api_v1_comment_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1CommentGet200Response{} // AnswerApiV1CommentGet200Response struct for AnswerApiV1CommentGet200Response type AnswerApiV1CommentGet200Response struct { - Data *AnswerApiV1CommentGet200ResponseData `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // http code + Code *int32 `json:"code,omitempty"` + Data *AnswerApiV1CommentGet200ResponseAllOfData `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1CommentGet200Response instantiates a new AnswerApiV1CommentGet200Response object @@ -38,10 +43,42 @@ func NewAnswerApiV1CommentGet200ResponseWithDefaults() *AnswerApiV1CommentGet200 return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1CommentGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CommentGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1CommentGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1CommentGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1CommentGet200Response) GetData() AnswerApiV1CommentGet200ResponseData { +func (o *AnswerApiV1CommentGet200Response) GetData() AnswerApiV1CommentGet200ResponseAllOfData { if o == nil || IsNil(o.Data) { - var ret AnswerApiV1CommentGet200ResponseData + var ret AnswerApiV1CommentGet200ResponseAllOfData return ret } return *o.Data @@ -49,7 +86,7 @@ func (o *AnswerApiV1CommentGet200Response) GetData() AnswerApiV1CommentGet200Res // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1CommentGet200Response) GetDataOk() (*AnswerApiV1CommentGet200ResponseData, bool) { +func (o *AnswerApiV1CommentGet200Response) GetDataOk() (*AnswerApiV1CommentGet200ResponseAllOfData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -65,41 +102,73 @@ func (o *AnswerApiV1CommentGet200Response) HasData() bool { return false } -// SetData gets a reference to the given AnswerApiV1CommentGet200ResponseData and assigns it to the Data field. -func (o *AnswerApiV1CommentGet200Response) SetData(v AnswerApiV1CommentGet200ResponseData) { +// SetData gets a reference to the given AnswerApiV1CommentGet200ResponseAllOfData and assigns it to the Data field. +func (o *AnswerApiV1CommentGet200Response) SetData(v AnswerApiV1CommentGet200ResponseAllOfData) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1CommentGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1CommentGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1CommentGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1CommentGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1CommentGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1CommentGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1CommentGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1CommentGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1CommentGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CommentGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1CommentGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1CommentGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1CommentGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1CommentGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1CommentGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_comment_get_200_response_all_of_data.go b/model__answer_api_v1_comment_get_200_response_all_of_data.go new file mode 100644 index 0000000..96420c4 --- /dev/null +++ b/model__answer_api_v1_comment_get_200_response_all_of_data.go @@ -0,0 +1,160 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1CommentGet200ResponseAllOfData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1CommentGet200ResponseAllOfData{} + +// AnswerApiV1CommentGet200ResponseAllOfData struct for AnswerApiV1CommentGet200ResponseAllOfData +type AnswerApiV1CommentGet200ResponseAllOfData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetCommentResp `json:"list,omitempty"` +} + +// NewAnswerApiV1CommentGet200ResponseAllOfData instantiates a new AnswerApiV1CommentGet200ResponseAllOfData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1CommentGet200ResponseAllOfData() *AnswerApiV1CommentGet200ResponseAllOfData { + this := AnswerApiV1CommentGet200ResponseAllOfData{} + return &this +} + +// NewAnswerApiV1CommentGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1CommentGet200ResponseAllOfData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1CommentGet200ResponseAllOfDataWithDefaults() *AnswerApiV1CommentGet200ResponseAllOfData { + this := AnswerApiV1CommentGet200ResponseAllOfData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1CommentGet200ResponseAllOfData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CommentGet200ResponseAllOfData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1CommentGet200ResponseAllOfData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1CommentGet200ResponseAllOfData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1CommentGet200ResponseAllOfData) GetList() []SchemaGetCommentResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetCommentResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CommentGet200ResponseAllOfData) GetListOk() ([]SchemaGetCommentResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1CommentGet200ResponseAllOfData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetCommentResp and assigns it to the List field. +func (o *AnswerApiV1CommentGet200ResponseAllOfData) SetList(v []SchemaGetCommentResp) { + o.List = v +} + +func (o AnswerApiV1CommentGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1CommentGet200ResponseAllOfData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1CommentGet200ResponseAllOfData struct { + value *AnswerApiV1CommentGet200ResponseAllOfData + isSet bool +} + +func (v NullableAnswerApiV1CommentGet200ResponseAllOfData) Get() *AnswerApiV1CommentGet200ResponseAllOfData { + return v.value +} + +func (v *NullableAnswerApiV1CommentGet200ResponseAllOfData) Set(val *AnswerApiV1CommentGet200ResponseAllOfData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1CommentGet200ResponseAllOfData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1CommentGet200ResponseAllOfData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1CommentGet200ResponseAllOfData(val *AnswerApiV1CommentGet200ResponseAllOfData) *NullableAnswerApiV1CommentGet200ResponseAllOfData { + return &NullableAnswerApiV1CommentGet200ResponseAllOfData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1CommentGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1CommentGet200ResponseAllOfData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_comment_get_200_response_data.go b/model__answer_api_v1_comment_get_200_response_data.go deleted file mode 100644 index ab1e56e..0000000 --- a/model__answer_api_v1_comment_get_200_response_data.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1CommentGet200ResponseData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1CommentGet200ResponseData{} - -// AnswerApiV1CommentGet200ResponseData struct for AnswerApiV1CommentGet200ResponseData -type AnswerApiV1CommentGet200ResponseData struct { - Count *int32 `json:"count,omitempty"` - List []SchemaGetCommentResp `json:"list,omitempty"` -} - -// NewAnswerApiV1CommentGet200ResponseData instantiates a new AnswerApiV1CommentGet200ResponseData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1CommentGet200ResponseData() *AnswerApiV1CommentGet200ResponseData { - this := AnswerApiV1CommentGet200ResponseData{} - return &this -} - -// NewAnswerApiV1CommentGet200ResponseDataWithDefaults instantiates a new AnswerApiV1CommentGet200ResponseData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1CommentGet200ResponseDataWithDefaults() *AnswerApiV1CommentGet200ResponseData { - this := AnswerApiV1CommentGet200ResponseData{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *AnswerApiV1CommentGet200ResponseData) GetCount() int32 { - if o == nil || IsNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1CommentGet200ResponseData) GetCountOk() (*int32, bool) { - if o == nil || IsNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *AnswerApiV1CommentGet200ResponseData) HasCount() bool { - if o != nil && !IsNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *AnswerApiV1CommentGet200ResponseData) SetCount(v int32) { - o.Count = &v -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1CommentGet200ResponseData) GetList() []SchemaGetCommentResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetCommentResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1CommentGet200ResponseData) GetListOk() ([]SchemaGetCommentResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1CommentGet200ResponseData) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetCommentResp and assigns it to the List field. -func (o *AnswerApiV1CommentGet200ResponseData) SetList(v []SchemaGetCommentResp) { - o.List = v -} - -func (o AnswerApiV1CommentGet200ResponseData) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1CommentGet200ResponseData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Count) { - toSerialize["count"] = o.Count - } - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1CommentGet200ResponseData struct { - value *AnswerApiV1CommentGet200ResponseData - isSet bool -} - -func (v NullableAnswerApiV1CommentGet200ResponseData) Get() *AnswerApiV1CommentGet200ResponseData { - return v.value -} - -func (v *NullableAnswerApiV1CommentGet200ResponseData) Set(val *AnswerApiV1CommentGet200ResponseData) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1CommentGet200ResponseData) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1CommentGet200ResponseData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1CommentGet200ResponseData(val *AnswerApiV1CommentGet200ResponseData) *NullableAnswerApiV1CommentGet200ResponseData { - return &NullableAnswerApiV1CommentGet200ResponseData{value: val, isSet: true} -} - -func (v NullableAnswerApiV1CommentGet200ResponseData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1CommentGet200ResponseData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_comment_get_200_response_data_all_of.go b/model__answer_api_v1_comment_get_200_response_data_all_of.go deleted file mode 100644 index 27e6a77..0000000 --- a/model__answer_api_v1_comment_get_200_response_data_all_of.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1CommentGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1CommentGet200ResponseDataAllOf{} - -// AnswerApiV1CommentGet200ResponseDataAllOf struct for AnswerApiV1CommentGet200ResponseDataAllOf -type AnswerApiV1CommentGet200ResponseDataAllOf struct { - List []SchemaGetCommentResp `json:"list,omitempty"` -} - -// NewAnswerApiV1CommentGet200ResponseDataAllOf instantiates a new AnswerApiV1CommentGet200ResponseDataAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1CommentGet200ResponseDataAllOf() *AnswerApiV1CommentGet200ResponseDataAllOf { - this := AnswerApiV1CommentGet200ResponseDataAllOf{} - return &this -} - -// NewAnswerApiV1CommentGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1CommentGet200ResponseDataAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1CommentGet200ResponseDataAllOfWithDefaults() *AnswerApiV1CommentGet200ResponseDataAllOf { - this := AnswerApiV1CommentGet200ResponseDataAllOf{} - return &this -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1CommentGet200ResponseDataAllOf) GetList() []SchemaGetCommentResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetCommentResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1CommentGet200ResponseDataAllOf) GetListOk() ([]SchemaGetCommentResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1CommentGet200ResponseDataAllOf) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetCommentResp and assigns it to the List field. -func (o *AnswerApiV1CommentGet200ResponseDataAllOf) SetList(v []SchemaGetCommentResp) { - o.List = v -} - -func (o AnswerApiV1CommentGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1CommentGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1CommentGet200ResponseDataAllOf struct { - value *AnswerApiV1CommentGet200ResponseDataAllOf - isSet bool -} - -func (v NullableAnswerApiV1CommentGet200ResponseDataAllOf) Get() *AnswerApiV1CommentGet200ResponseDataAllOf { - return v.value -} - -func (v *NullableAnswerApiV1CommentGet200ResponseDataAllOf) Set(val *AnswerApiV1CommentGet200ResponseDataAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1CommentGet200ResponseDataAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1CommentGet200ResponseDataAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1CommentGet200ResponseDataAllOf(val *AnswerApiV1CommentGet200ResponseDataAllOf) *NullableAnswerApiV1CommentGet200ResponseDataAllOf { - return &NullableAnswerApiV1CommentGet200ResponseDataAllOf{value: val, isSet: true} -} - -func (v NullableAnswerApiV1CommentGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1CommentGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_comment_post_200_response.go b/model__answer_api_v1_comment_post_200_response.go index e3b7407..f1738e4 100644 --- a/model__answer_api_v1_comment_post_200_response.go +++ b/model__answer_api_v1_comment_post_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1CommentPost200Response{} // AnswerApiV1CommentPost200Response struct for AnswerApiV1CommentPost200Response type AnswerApiV1CommentPost200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetCommentResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1CommentPost200Response instantiates a new AnswerApiV1CommentPost200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1CommentPost200ResponseWithDefaults() *AnswerApiV1CommentPost2 return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1CommentPost200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CommentPost200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1CommentPost200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1CommentPost200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1CommentPost200Response) GetData() SchemaGetCommentResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1CommentPost200Response) SetData(v SchemaGetCommentResp) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1CommentPost200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1CommentPost200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1CommentPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1CommentPost200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1CommentPost200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1CommentPost200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1CommentPost200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1CommentPost200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1CommentPost200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CommentPost200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1CommentPost200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1CommentPost200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1CommentPost200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1CommentPost200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1CommentPost200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_connector_binding_email_post_200_response.go b/model__answer_api_v1_connector_binding_email_post_200_response.go index dd6c382..87d6a0e 100644 --- a/model__answer_api_v1_connector_binding_email_post_200_response.go +++ b/model__answer_api_v1_connector_binding_email_post_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1ConnectorBindingEmailPost200Response{} // AnswerApiV1ConnectorBindingEmailPost200Response struct for AnswerApiV1ConnectorBindingEmailPost200Response type AnswerApiV1ConnectorBindingEmailPost200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaExternalLoginBindingUserSendEmailResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1ConnectorBindingEmailPost200Response instantiates a new AnswerApiV1ConnectorBindingEmailPost200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1ConnectorBindingEmailPost200ResponseWithDefaults() *AnswerApi return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetData() SchemaExternalLoginBindingUserSendEmailResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1ConnectorBindingEmailPost200Response) SetData(v SchemaExtern o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1ConnectorBindingEmailPost200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1ConnectorBindingEmailPost200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1ConnectorBindingEmailPost200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1ConnectorBindingEmailPost200Response) MarshalJSON() ([]byte, func (o AnswerApiV1ConnectorBindingEmailPost200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_connector_info_get_200_response.go b/model__answer_api_v1_connector_info_get_200_response.go index 6072ad9..6a49412 100644 --- a/model__answer_api_v1_connector_info_get_200_response.go +++ b/model__answer_api_v1_connector_info_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1ConnectorInfoGet200Response{} // AnswerApiV1ConnectorInfoGet200Response struct for AnswerApiV1ConnectorInfoGet200Response type AnswerApiV1ConnectorInfoGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data []SchemaConnectorInfoResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1ConnectorInfoGet200Response instantiates a new AnswerApiV1ConnectorInfoGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1ConnectorInfoGet200ResponseWithDefaults() *AnswerApiV1Connect return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorInfoGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1ConnectorInfoGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1ConnectorInfoGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1ConnectorInfoGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1ConnectorInfoGet200Response) GetData() []SchemaConnectorInfoResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1ConnectorInfoGet200Response) SetData(v []SchemaConnectorInfo o.Data = v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1ConnectorInfoGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorInfoGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1ConnectorInfoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1ConnectorInfoGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1ConnectorInfoGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1ConnectorInfoGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1ConnectorInfoGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1ConnectorInfoGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorInfoGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1ConnectorInfoGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1ConnectorInfoGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1ConnectorInfoGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1ConnectorInfoGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1ConnectorInfoGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1ConnectorInfoGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_connector_user_info_get_200_response.go b/model__answer_api_v1_connector_user_info_get_200_response.go index 410a799..8c34a17 100644 --- a/model__answer_api_v1_connector_user_info_get_200_response.go +++ b/model__answer_api_v1_connector_user_info_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1ConnectorUserInfoGet200Response{} // AnswerApiV1ConnectorUserInfoGet200Response struct for AnswerApiV1ConnectorUserInfoGet200Response type AnswerApiV1ConnectorUserInfoGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data []SchemaConnectorUserInfoResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1ConnectorUserInfoGet200Response instantiates a new AnswerApiV1ConnectorUserInfoGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1ConnectorUserInfoGet200ResponseWithDefaults() *AnswerApiV1Con return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetData() []SchemaConnectorUserInfoResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1ConnectorUserInfoGet200Response) SetData(v []SchemaConnector o.Data = v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1ConnectorUserInfoGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1ConnectorUserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1ConnectorUserInfoGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1ConnectorUserInfoGet200Response) MarshalJSON() ([]byte, error func (o AnswerApiV1ConnectorUserInfoGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_file_post_200_response.go b/model__answer_api_v1_file_post_200_response.go index 58fa7a0..f6878ee 100644 --- a/model__answer_api_v1_file_post_200_response.go +++ b/model__answer_api_v1_file_post_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1FilePost200Response{} // AnswerApiV1FilePost200Response struct for AnswerApiV1FilePost200Response type AnswerApiV1FilePost200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *string `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1FilePost200Response instantiates a new AnswerApiV1FilePost200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1FilePost200ResponseWithDefaults() *AnswerApiV1FilePost200Resp return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1FilePost200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1FilePost200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1FilePost200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1FilePost200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1FilePost200Response) GetData() string { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1FilePost200Response) SetData(v string) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1FilePost200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1FilePost200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1FilePost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1FilePost200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1FilePost200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1FilePost200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1FilePost200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1FilePost200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1FilePost200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1FilePost200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1FilePost200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1FilePost200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1FilePost200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1FilePost200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1FilePost200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_follow_post_200_response.go b/model__answer_api_v1_follow_post_200_response.go index 92053b5..d6e4222 100644 --- a/model__answer_api_v1_follow_post_200_response.go +++ b/model__answer_api_v1_follow_post_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1FollowPost200Response{} // AnswerApiV1FollowPost200Response struct for AnswerApiV1FollowPost200Response type AnswerApiV1FollowPost200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaFollowResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1FollowPost200Response instantiates a new AnswerApiV1FollowPost200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1FollowPost200ResponseWithDefaults() *AnswerApiV1FollowPost200 return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1FollowPost200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1FollowPost200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1FollowPost200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1FollowPost200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1FollowPost200Response) GetData() SchemaFollowResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1FollowPost200Response) SetData(v SchemaFollowResp) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1FollowPost200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1FollowPost200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1FollowPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1FollowPost200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1FollowPost200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1FollowPost200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1FollowPost200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1FollowPost200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1FollowPost200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1FollowPost200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1FollowPost200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1FollowPost200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1FollowPost200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1FollowPost200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1FollowPost200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_permission_get_200_response.go b/model__answer_api_v1_permission_get_200_response.go index 2224a36..3e4b0d5 100644 --- a/model__answer_api_v1_permission_get_200_response.go +++ b/model__answer_api_v1_permission_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1PermissionGet200Response{} // AnswerApiV1PermissionGet200Response struct for AnswerApiV1PermissionGet200Response type AnswerApiV1PermissionGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *map[string]bool `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1PermissionGet200Response instantiates a new AnswerApiV1PermissionGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1PermissionGet200ResponseWithDefaults() *AnswerApiV1Permission return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1PermissionGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PermissionGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1PermissionGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1PermissionGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1PermissionGet200Response) GetData() map[string]bool { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1PermissionGet200Response) SetData(v map[string]bool) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1PermissionGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1PermissionGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1PermissionGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1PermissionGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1PermissionGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1PermissionGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1PermissionGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1PermissionGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1PermissionGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PermissionGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1PermissionGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1PermissionGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1PermissionGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1PermissionGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1PermissionGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_personal_comment_page_get_200_response.go b/model__answer_api_v1_personal_comment_page_get_200_response.go index 01b9b34..63bebb0 100644 --- a/model__answer_api_v1_personal_comment_page_get_200_response.go +++ b/model__answer_api_v1_personal_comment_page_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1PersonalCommentPageGet200Response{} // AnswerApiV1PersonalCommentPageGet200Response struct for AnswerApiV1PersonalCommentPageGet200Response type AnswerApiV1PersonalCommentPageGet200Response struct { - Data *AnswerApiV1PersonalCommentPageGet200ResponseData `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // http code + Code *int32 `json:"code,omitempty"` + Data *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1PersonalCommentPageGet200Response instantiates a new AnswerApiV1PersonalCommentPageGet200Response object @@ -38,10 +43,42 @@ func NewAnswerApiV1PersonalCommentPageGet200ResponseWithDefaults() *AnswerApiV1P return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalCommentPageGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalCommentPageGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalCommentPageGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1PersonalCommentPageGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalCommentPageGet200Response) GetData() AnswerApiV1PersonalCommentPageGet200ResponseData { +func (o *AnswerApiV1PersonalCommentPageGet200Response) GetData() AnswerApiV1PersonalCommentPageGet200ResponseAllOfData { if o == nil || IsNil(o.Data) { - var ret AnswerApiV1PersonalCommentPageGet200ResponseData + var ret AnswerApiV1PersonalCommentPageGet200ResponseAllOfData return ret } return *o.Data @@ -49,7 +86,7 @@ func (o *AnswerApiV1PersonalCommentPageGet200Response) GetData() AnswerApiV1Pers // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalCommentPageGet200Response) GetDataOk() (*AnswerApiV1PersonalCommentPageGet200ResponseData, bool) { +func (o *AnswerApiV1PersonalCommentPageGet200Response) GetDataOk() (*AnswerApiV1PersonalCommentPageGet200ResponseAllOfData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -65,41 +102,73 @@ func (o *AnswerApiV1PersonalCommentPageGet200Response) HasData() bool { return false } -// SetData gets a reference to the given AnswerApiV1PersonalCommentPageGet200ResponseData and assigns it to the Data field. -func (o *AnswerApiV1PersonalCommentPageGet200Response) SetData(v AnswerApiV1PersonalCommentPageGet200ResponseData) { +// SetData gets a reference to the given AnswerApiV1PersonalCommentPageGet200ResponseAllOfData and assigns it to the Data field. +func (o *AnswerApiV1PersonalCommentPageGet200Response) SetData(v AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalCommentPageGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalCommentPageGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalCommentPageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1PersonalCommentPageGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalCommentPageGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalCommentPageGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1PersonalCommentPageGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1PersonalCommentPageGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalCommentPageGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalCommentPageGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalCommentPageGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1PersonalCommentPageGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1PersonalCommentPageGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1PersonalCommentPageGet200Response) MarshalJSON() ([]byte, err func (o AnswerApiV1PersonalCommentPageGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_personal_comment_page_get_200_response_all_of_data.go b/model__answer_api_v1_personal_comment_page_get_200_response_all_of_data.go new file mode 100644 index 0000000..8ace5a1 --- /dev/null +++ b/model__answer_api_v1_personal_comment_page_get_200_response_all_of_data.go @@ -0,0 +1,160 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalCommentPageGet200ResponseAllOfData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalCommentPageGet200ResponseAllOfData{} + +// AnswerApiV1PersonalCommentPageGet200ResponseAllOfData struct for AnswerApiV1PersonalCommentPageGet200ResponseAllOfData +type AnswerApiV1PersonalCommentPageGet200ResponseAllOfData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetCommentPersonalWithPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1PersonalCommentPageGet200ResponseAllOfData instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseAllOfData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1PersonalCommentPageGet200ResponseAllOfData() *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData { + this := AnswerApiV1PersonalCommentPageGet200ResponseAllOfData{} + return &this +} + +// NewAnswerApiV1PersonalCommentPageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseAllOfData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1PersonalCommentPageGet200ResponseAllOfDataWithDefaults() *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData { + this := AnswerApiV1PersonalCommentPageGet200ResponseAllOfData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) GetList() []SchemaGetCommentPersonalWithPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetCommentPersonalWithPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) GetListOk() ([]SchemaGetCommentPersonalWithPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetCommentPersonalWithPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) SetList(v []SchemaGetCommentPersonalWithPageResp) { + o.List = v +} + +func (o AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1PersonalCommentPageGet200ResponseAllOfData struct { + value *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData + isSet bool +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseAllOfData) Get() *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData { + return v.value +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseAllOfData) Set(val *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseAllOfData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseAllOfData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalCommentPageGet200ResponseAllOfData(val *AnswerApiV1PersonalCommentPageGet200ResponseAllOfData) *NullableAnswerApiV1PersonalCommentPageGet200ResponseAllOfData { + return &NullableAnswerApiV1PersonalCommentPageGet200ResponseAllOfData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseAllOfData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_comment_page_get_200_response_data.go b/model__answer_api_v1_personal_comment_page_get_200_response_data.go deleted file mode 100644 index 3ad5043..0000000 --- a/model__answer_api_v1_personal_comment_page_get_200_response_data.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1PersonalCommentPageGet200ResponseData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1PersonalCommentPageGet200ResponseData{} - -// AnswerApiV1PersonalCommentPageGet200ResponseData struct for AnswerApiV1PersonalCommentPageGet200ResponseData -type AnswerApiV1PersonalCommentPageGet200ResponseData struct { - Count *int32 `json:"count,omitempty"` - List []SchemaGetCommentPersonalWithPageResp `json:"list,omitempty"` -} - -// NewAnswerApiV1PersonalCommentPageGet200ResponseData instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1PersonalCommentPageGet200ResponseData() *AnswerApiV1PersonalCommentPageGet200ResponseData { - this := AnswerApiV1PersonalCommentPageGet200ResponseData{} - return &this -} - -// NewAnswerApiV1PersonalCommentPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1PersonalCommentPageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalCommentPageGet200ResponseData { - this := AnswerApiV1PersonalCommentPageGet200ResponseData{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetCount() int32 { - if o == nil || IsNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetCountOk() (*int32, bool) { - if o == nil || IsNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) HasCount() bool { - if o != nil && !IsNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) SetCount(v int32) { - o.Count = &v -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetList() []SchemaGetCommentPersonalWithPageResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetCommentPersonalWithPageResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetListOk() ([]SchemaGetCommentPersonalWithPageResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetCommentPersonalWithPageResp and assigns it to the List field. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) SetList(v []SchemaGetCommentPersonalWithPageResp) { - o.List = v -} - -func (o AnswerApiV1PersonalCommentPageGet200ResponseData) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1PersonalCommentPageGet200ResponseData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Count) { - toSerialize["count"] = o.Count - } - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1PersonalCommentPageGet200ResponseData struct { - value *AnswerApiV1PersonalCommentPageGet200ResponseData - isSet bool -} - -func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseData) Get() *AnswerApiV1PersonalCommentPageGet200ResponseData { - return v.value -} - -func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseData) Set(val *AnswerApiV1PersonalCommentPageGet200ResponseData) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseData) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1PersonalCommentPageGet200ResponseData(val *AnswerApiV1PersonalCommentPageGet200ResponseData) *NullableAnswerApiV1PersonalCommentPageGet200ResponseData { - return &NullableAnswerApiV1PersonalCommentPageGet200ResponseData{value: val, isSet: true} -} - -func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_personal_comment_page_get_200_response_data_all_of.go b/model__answer_api_v1_personal_comment_page_get_200_response_data_all_of.go deleted file mode 100644 index a4b10c6..0000000 --- a/model__answer_api_v1_personal_comment_page_get_200_response_data_all_of.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf{} - -// AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf struct for AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf -type AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf struct { - List []SchemaGetCommentPersonalWithPageResp `json:"list,omitempty"` -} - -// NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf() *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf { - this := AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf{} - return &this -} - -// NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf { - this := AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf{} - return &this -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) GetList() []SchemaGetCommentPersonalWithPageResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetCommentPersonalWithPageResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) GetListOk() ([]SchemaGetCommentPersonalWithPageResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetCommentPersonalWithPageResp and assigns it to the List field. -func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) SetList(v []SchemaGetCommentPersonalWithPageResp) { - o.List = v -} - -func (o AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf struct { - value *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf - isSet bool -} - -func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) Get() *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf { - return v.value -} - -func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) Set(val *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf(val *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) *NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf { - return &NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf{value: val, isSet: true} -} - -func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_personal_rank_page_get_200_response.go b/model__answer_api_v1_personal_rank_page_get_200_response.go index 9b19608..620a262 100644 --- a/model__answer_api_v1_personal_rank_page_get_200_response.go +++ b/model__answer_api_v1_personal_rank_page_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1PersonalRankPageGet200Response{} // AnswerApiV1PersonalRankPageGet200Response struct for AnswerApiV1PersonalRankPageGet200Response type AnswerApiV1PersonalRankPageGet200Response struct { - Data *AnswerApiV1PersonalRankPageGet200ResponseData `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // http code + Code *int32 `json:"code,omitempty"` + Data *AnswerApiV1PersonalRankPageGet200ResponseAllOfData `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1PersonalRankPageGet200Response instantiates a new AnswerApiV1PersonalRankPageGet200Response object @@ -38,10 +43,42 @@ func NewAnswerApiV1PersonalRankPageGet200ResponseWithDefaults() *AnswerApiV1Pers return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalRankPageGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalRankPageGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalRankPageGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1PersonalRankPageGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalRankPageGet200Response) GetData() AnswerApiV1PersonalRankPageGet200ResponseData { +func (o *AnswerApiV1PersonalRankPageGet200Response) GetData() AnswerApiV1PersonalRankPageGet200ResponseAllOfData { if o == nil || IsNil(o.Data) { - var ret AnswerApiV1PersonalRankPageGet200ResponseData + var ret AnswerApiV1PersonalRankPageGet200ResponseAllOfData return ret } return *o.Data @@ -49,7 +86,7 @@ func (o *AnswerApiV1PersonalRankPageGet200Response) GetData() AnswerApiV1Persona // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalRankPageGet200Response) GetDataOk() (*AnswerApiV1PersonalRankPageGet200ResponseData, bool) { +func (o *AnswerApiV1PersonalRankPageGet200Response) GetDataOk() (*AnswerApiV1PersonalRankPageGet200ResponseAllOfData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -65,41 +102,73 @@ func (o *AnswerApiV1PersonalRankPageGet200Response) HasData() bool { return false } -// SetData gets a reference to the given AnswerApiV1PersonalRankPageGet200ResponseData and assigns it to the Data field. -func (o *AnswerApiV1PersonalRankPageGet200Response) SetData(v AnswerApiV1PersonalRankPageGet200ResponseData) { +// SetData gets a reference to the given AnswerApiV1PersonalRankPageGet200ResponseAllOfData and assigns it to the Data field. +func (o *AnswerApiV1PersonalRankPageGet200Response) SetData(v AnswerApiV1PersonalRankPageGet200ResponseAllOfData) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalRankPageGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalRankPageGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalRankPageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1PersonalRankPageGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalRankPageGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalRankPageGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1PersonalRankPageGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1PersonalRankPageGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalRankPageGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalRankPageGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalRankPageGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1PersonalRankPageGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1PersonalRankPageGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1PersonalRankPageGet200Response) MarshalJSON() ([]byte, error) func (o AnswerApiV1PersonalRankPageGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_personal_rank_page_get_200_response_all_of_data.go b/model__answer_api_v1_personal_rank_page_get_200_response_all_of_data.go new file mode 100644 index 0000000..406e752 --- /dev/null +++ b/model__answer_api_v1_personal_rank_page_get_200_response_all_of_data.go @@ -0,0 +1,160 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalRankPageGet200ResponseAllOfData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalRankPageGet200ResponseAllOfData{} + +// AnswerApiV1PersonalRankPageGet200ResponseAllOfData struct for AnswerApiV1PersonalRankPageGet200ResponseAllOfData +type AnswerApiV1PersonalRankPageGet200ResponseAllOfData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetRankPersonalPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1PersonalRankPageGet200ResponseAllOfData instantiates a new AnswerApiV1PersonalRankPageGet200ResponseAllOfData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1PersonalRankPageGet200ResponseAllOfData() *AnswerApiV1PersonalRankPageGet200ResponseAllOfData { + this := AnswerApiV1PersonalRankPageGet200ResponseAllOfData{} + return &this +} + +// NewAnswerApiV1PersonalRankPageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200ResponseAllOfData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1PersonalRankPageGet200ResponseAllOfDataWithDefaults() *AnswerApiV1PersonalRankPageGet200ResponseAllOfData { + this := AnswerApiV1PersonalRankPageGet200ResponseAllOfData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) GetList() []SchemaGetRankPersonalPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetRankPersonalPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) GetListOk() ([]SchemaGetRankPersonalPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetRankPersonalPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) SetList(v []SchemaGetRankPersonalPageResp) { + o.List = v +} + +func (o AnswerApiV1PersonalRankPageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalRankPageGet200ResponseAllOfData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1PersonalRankPageGet200ResponseAllOfData struct { + value *AnswerApiV1PersonalRankPageGet200ResponseAllOfData + isSet bool +} + +func (v NullableAnswerApiV1PersonalRankPageGet200ResponseAllOfData) Get() *AnswerApiV1PersonalRankPageGet200ResponseAllOfData { + return v.value +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseAllOfData) Set(val *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalRankPageGet200ResponseAllOfData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseAllOfData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalRankPageGet200ResponseAllOfData(val *AnswerApiV1PersonalRankPageGet200ResponseAllOfData) *NullableAnswerApiV1PersonalRankPageGet200ResponseAllOfData { + return &NullableAnswerApiV1PersonalRankPageGet200ResponseAllOfData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalRankPageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseAllOfData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_rank_page_get_200_response_data.go b/model__answer_api_v1_personal_rank_page_get_200_response_data.go deleted file mode 100644 index ae11286..0000000 --- a/model__answer_api_v1_personal_rank_page_get_200_response_data.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1PersonalRankPageGet200ResponseData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1PersonalRankPageGet200ResponseData{} - -// AnswerApiV1PersonalRankPageGet200ResponseData struct for AnswerApiV1PersonalRankPageGet200ResponseData -type AnswerApiV1PersonalRankPageGet200ResponseData struct { - Count *int32 `json:"count,omitempty"` - List []SchemaGetRankPersonalPageResp `json:"list,omitempty"` -} - -// NewAnswerApiV1PersonalRankPageGet200ResponseData instantiates a new AnswerApiV1PersonalRankPageGet200ResponseData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1PersonalRankPageGet200ResponseData() *AnswerApiV1PersonalRankPageGet200ResponseData { - this := AnswerApiV1PersonalRankPageGet200ResponseData{} - return &this -} - -// NewAnswerApiV1PersonalRankPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200ResponseData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1PersonalRankPageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalRankPageGet200ResponseData { - this := AnswerApiV1PersonalRankPageGet200ResponseData{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetCount() int32 { - if o == nil || IsNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetCountOk() (*int32, bool) { - if o == nil || IsNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalRankPageGet200ResponseData) HasCount() bool { - if o != nil && !IsNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetCount(v int32) { - o.Count = &v -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetList() []SchemaGetRankPersonalPageResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetRankPersonalPageResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetListOk() ([]SchemaGetRankPersonalPageResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalRankPageGet200ResponseData) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetRankPersonalPageResp and assigns it to the List field. -func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetList(v []SchemaGetRankPersonalPageResp) { - o.List = v -} - -func (o AnswerApiV1PersonalRankPageGet200ResponseData) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1PersonalRankPageGet200ResponseData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Count) { - toSerialize["count"] = o.Count - } - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1PersonalRankPageGet200ResponseData struct { - value *AnswerApiV1PersonalRankPageGet200ResponseData - isSet bool -} - -func (v NullableAnswerApiV1PersonalRankPageGet200ResponseData) Get() *AnswerApiV1PersonalRankPageGet200ResponseData { - return v.value -} - -func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseData) Set(val *AnswerApiV1PersonalRankPageGet200ResponseData) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1PersonalRankPageGet200ResponseData) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1PersonalRankPageGet200ResponseData(val *AnswerApiV1PersonalRankPageGet200ResponseData) *NullableAnswerApiV1PersonalRankPageGet200ResponseData { - return &NullableAnswerApiV1PersonalRankPageGet200ResponseData{value: val, isSet: true} -} - -func (v NullableAnswerApiV1PersonalRankPageGet200ResponseData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_personal_rank_page_get_200_response_data_all_of.go b/model__answer_api_v1_personal_rank_page_get_200_response_data_all_of.go deleted file mode 100644 index 96b3e69..0000000 --- a/model__answer_api_v1_personal_rank_page_get_200_response_data_all_of.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1PersonalRankPageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1PersonalRankPageGet200ResponseDataAllOf{} - -// AnswerApiV1PersonalRankPageGet200ResponseDataAllOf struct for AnswerApiV1PersonalRankPageGet200ResponseDataAllOf -type AnswerApiV1PersonalRankPageGet200ResponseDataAllOf struct { - List []SchemaGetRankPersonalPageResp `json:"list,omitempty"` -} - -// NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalRankPageGet200ResponseDataAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf() *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf { - this := AnswerApiV1PersonalRankPageGet200ResponseDataAllOf{} - return &this -} - -// NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200ResponseDataAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf { - this := AnswerApiV1PersonalRankPageGet200ResponseDataAllOf{} - return &this -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetList() []SchemaGetRankPersonalPageResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetRankPersonalPageResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetListOk() ([]SchemaGetRankPersonalPageResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetRankPersonalPageResp and assigns it to the List field. -func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) SetList(v []SchemaGetRankPersonalPageResp) { - o.List = v -} - -func (o AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf struct { - value *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf - isSet bool -} - -func (v NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) Get() *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf { - return v.value -} - -func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) Set(val *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf(val *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) *NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf { - return &NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf{value: val, isSet: true} -} - -func (v NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_personal_user_info_get_200_response.go b/model__answer_api_v1_personal_user_info_get_200_response.go index 5e04208..4023eef 100644 --- a/model__answer_api_v1_personal_user_info_get_200_response.go +++ b/model__answer_api_v1_personal_user_info_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1PersonalUserInfoGet200Response{} // AnswerApiV1PersonalUserInfoGet200Response struct for AnswerApiV1PersonalUserInfoGet200Response type AnswerApiV1PersonalUserInfoGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetOtherUserInfoResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1PersonalUserInfoGet200Response instantiates a new AnswerApiV1PersonalUserInfoGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1PersonalUserInfoGet200ResponseWithDefaults() *AnswerApiV1Pers return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalUserInfoGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalUserInfoGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalUserInfoGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1PersonalUserInfoGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1PersonalUserInfoGet200Response) GetData() SchemaGetOtherUserInfoResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1PersonalUserInfoGet200Response) SetData(v SchemaGetOtherUser o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalUserInfoGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalUserInfoGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalUserInfoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1PersonalUserInfoGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalUserInfoGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalUserInfoGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1PersonalUserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1PersonalUserInfoGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalUserInfoGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalUserInfoGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalUserInfoGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1PersonalUserInfoGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1PersonalUserInfoGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1PersonalUserInfoGet200Response) MarshalJSON() ([]byte, error) func (o AnswerApiV1PersonalUserInfoGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_personal_vote_page_get_200_response.go b/model__answer_api_v1_personal_vote_page_get_200_response.go index edd92b4..a45edc1 100644 --- a/model__answer_api_v1_personal_vote_page_get_200_response.go +++ b/model__answer_api_v1_personal_vote_page_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1PersonalVotePageGet200Response{} // AnswerApiV1PersonalVotePageGet200Response struct for AnswerApiV1PersonalVotePageGet200Response type AnswerApiV1PersonalVotePageGet200Response struct { - Data *AnswerApiV1PersonalVotePageGet200ResponseData `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // http code + Code *int32 `json:"code,omitempty"` + Data *AnswerApiV1PersonalVotePageGet200ResponseAllOfData `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1PersonalVotePageGet200Response instantiates a new AnswerApiV1PersonalVotePageGet200Response object @@ -38,10 +43,42 @@ func NewAnswerApiV1PersonalVotePageGet200ResponseWithDefaults() *AnswerApiV1Pers return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalVotePageGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalVotePageGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalVotePageGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1PersonalVotePageGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalVotePageGet200Response) GetData() AnswerApiV1PersonalVotePageGet200ResponseData { +func (o *AnswerApiV1PersonalVotePageGet200Response) GetData() AnswerApiV1PersonalVotePageGet200ResponseAllOfData { if o == nil || IsNil(o.Data) { - var ret AnswerApiV1PersonalVotePageGet200ResponseData + var ret AnswerApiV1PersonalVotePageGet200ResponseAllOfData return ret } return *o.Data @@ -49,7 +86,7 @@ func (o *AnswerApiV1PersonalVotePageGet200Response) GetData() AnswerApiV1Persona // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalVotePageGet200Response) GetDataOk() (*AnswerApiV1PersonalVotePageGet200ResponseData, bool) { +func (o *AnswerApiV1PersonalVotePageGet200Response) GetDataOk() (*AnswerApiV1PersonalVotePageGet200ResponseAllOfData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -65,41 +102,73 @@ func (o *AnswerApiV1PersonalVotePageGet200Response) HasData() bool { return false } -// SetData gets a reference to the given AnswerApiV1PersonalVotePageGet200ResponseData and assigns it to the Data field. -func (o *AnswerApiV1PersonalVotePageGet200Response) SetData(v AnswerApiV1PersonalVotePageGet200ResponseData) { +// SetData gets a reference to the given AnswerApiV1PersonalVotePageGet200ResponseAllOfData and assigns it to the Data field. +func (o *AnswerApiV1PersonalVotePageGet200Response) SetData(v AnswerApiV1PersonalVotePageGet200ResponseAllOfData) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalVotePageGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalVotePageGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalVotePageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1PersonalVotePageGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalVotePageGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalVotePageGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1PersonalVotePageGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1PersonalVotePageGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalVotePageGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalVotePageGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalVotePageGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1PersonalVotePageGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1PersonalVotePageGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1PersonalVotePageGet200Response) MarshalJSON() ([]byte, error) func (o AnswerApiV1PersonalVotePageGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_personal_vote_page_get_200_response_all_of_data.go b/model__answer_api_v1_personal_vote_page_get_200_response_all_of_data.go new file mode 100644 index 0000000..1f28f30 --- /dev/null +++ b/model__answer_api_v1_personal_vote_page_get_200_response_all_of_data.go @@ -0,0 +1,160 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalVotePageGet200ResponseAllOfData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalVotePageGet200ResponseAllOfData{} + +// AnswerApiV1PersonalVotePageGet200ResponseAllOfData struct for AnswerApiV1PersonalVotePageGet200ResponseAllOfData +type AnswerApiV1PersonalVotePageGet200ResponseAllOfData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetVoteWithPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1PersonalVotePageGet200ResponseAllOfData instantiates a new AnswerApiV1PersonalVotePageGet200ResponseAllOfData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1PersonalVotePageGet200ResponseAllOfData() *AnswerApiV1PersonalVotePageGet200ResponseAllOfData { + this := AnswerApiV1PersonalVotePageGet200ResponseAllOfData{} + return &this +} + +// NewAnswerApiV1PersonalVotePageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200ResponseAllOfData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1PersonalVotePageGet200ResponseAllOfDataWithDefaults() *AnswerApiV1PersonalVotePageGet200ResponseAllOfData { + this := AnswerApiV1PersonalVotePageGet200ResponseAllOfData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) GetList() []SchemaGetVoteWithPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetVoteWithPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) GetListOk() ([]SchemaGetVoteWithPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetVoteWithPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) SetList(v []SchemaGetVoteWithPageResp) { + o.List = v +} + +func (o AnswerApiV1PersonalVotePageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalVotePageGet200ResponseAllOfData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1PersonalVotePageGet200ResponseAllOfData struct { + value *AnswerApiV1PersonalVotePageGet200ResponseAllOfData + isSet bool +} + +func (v NullableAnswerApiV1PersonalVotePageGet200ResponseAllOfData) Get() *AnswerApiV1PersonalVotePageGet200ResponseAllOfData { + return v.value +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseAllOfData) Set(val *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalVotePageGet200ResponseAllOfData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseAllOfData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalVotePageGet200ResponseAllOfData(val *AnswerApiV1PersonalVotePageGet200ResponseAllOfData) *NullableAnswerApiV1PersonalVotePageGet200ResponseAllOfData { + return &NullableAnswerApiV1PersonalVotePageGet200ResponseAllOfData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalVotePageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseAllOfData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_vote_page_get_200_response_data.go b/model__answer_api_v1_personal_vote_page_get_200_response_data.go deleted file mode 100644 index c923f36..0000000 --- a/model__answer_api_v1_personal_vote_page_get_200_response_data.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1PersonalVotePageGet200ResponseData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1PersonalVotePageGet200ResponseData{} - -// AnswerApiV1PersonalVotePageGet200ResponseData struct for AnswerApiV1PersonalVotePageGet200ResponseData -type AnswerApiV1PersonalVotePageGet200ResponseData struct { - Count *int32 `json:"count,omitempty"` - List []SchemaGetVoteWithPageResp `json:"list,omitempty"` -} - -// NewAnswerApiV1PersonalVotePageGet200ResponseData instantiates a new AnswerApiV1PersonalVotePageGet200ResponseData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1PersonalVotePageGet200ResponseData() *AnswerApiV1PersonalVotePageGet200ResponseData { - this := AnswerApiV1PersonalVotePageGet200ResponseData{} - return &this -} - -// NewAnswerApiV1PersonalVotePageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200ResponseData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1PersonalVotePageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalVotePageGet200ResponseData { - this := AnswerApiV1PersonalVotePageGet200ResponseData{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetCount() int32 { - if o == nil || IsNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetCountOk() (*int32, bool) { - if o == nil || IsNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalVotePageGet200ResponseData) HasCount() bool { - if o != nil && !IsNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *AnswerApiV1PersonalVotePageGet200ResponseData) SetCount(v int32) { - o.Count = &v -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetList() []SchemaGetVoteWithPageResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetVoteWithPageResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetListOk() ([]SchemaGetVoteWithPageResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalVotePageGet200ResponseData) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetVoteWithPageResp and assigns it to the List field. -func (o *AnswerApiV1PersonalVotePageGet200ResponseData) SetList(v []SchemaGetVoteWithPageResp) { - o.List = v -} - -func (o AnswerApiV1PersonalVotePageGet200ResponseData) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1PersonalVotePageGet200ResponseData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Count) { - toSerialize["count"] = o.Count - } - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1PersonalVotePageGet200ResponseData struct { - value *AnswerApiV1PersonalVotePageGet200ResponseData - isSet bool -} - -func (v NullableAnswerApiV1PersonalVotePageGet200ResponseData) Get() *AnswerApiV1PersonalVotePageGet200ResponseData { - return v.value -} - -func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseData) Set(val *AnswerApiV1PersonalVotePageGet200ResponseData) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1PersonalVotePageGet200ResponseData) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1PersonalVotePageGet200ResponseData(val *AnswerApiV1PersonalVotePageGet200ResponseData) *NullableAnswerApiV1PersonalVotePageGet200ResponseData { - return &NullableAnswerApiV1PersonalVotePageGet200ResponseData{value: val, isSet: true} -} - -func (v NullableAnswerApiV1PersonalVotePageGet200ResponseData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_personal_vote_page_get_200_response_data_all_of.go b/model__answer_api_v1_personal_vote_page_get_200_response_data_all_of.go deleted file mode 100644 index a0b7417..0000000 --- a/model__answer_api_v1_personal_vote_page_get_200_response_data_all_of.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1PersonalVotePageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1PersonalVotePageGet200ResponseDataAllOf{} - -// AnswerApiV1PersonalVotePageGet200ResponseDataAllOf struct for AnswerApiV1PersonalVotePageGet200ResponseDataAllOf -type AnswerApiV1PersonalVotePageGet200ResponseDataAllOf struct { - List []SchemaGetVoteWithPageResp `json:"list,omitempty"` -} - -// NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalVotePageGet200ResponseDataAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOf() *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf { - this := AnswerApiV1PersonalVotePageGet200ResponseDataAllOf{} - return &this -} - -// NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200ResponseDataAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf { - this := AnswerApiV1PersonalVotePageGet200ResponseDataAllOf{} - return &this -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) GetList() []SchemaGetVoteWithPageResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetVoteWithPageResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) GetListOk() ([]SchemaGetVoteWithPageResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetVoteWithPageResp and assigns it to the List field. -func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) SetList(v []SchemaGetVoteWithPageResp) { - o.List = v -} - -func (o AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf struct { - value *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf - isSet bool -} - -func (v NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) Get() *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf { - return v.value -} - -func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) Set(val *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf(val *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) *NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf { - return &NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf{value: val, isSet: true} -} - -func (v NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_question_page_get_200_response.go b/model__answer_api_v1_question_page_get_200_response.go index 369c7eb..cfe0df8 100644 --- a/model__answer_api_v1_question_page_get_200_response.go +++ b/model__answer_api_v1_question_page_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1QuestionPageGet200Response{} // AnswerApiV1QuestionPageGet200Response struct for AnswerApiV1QuestionPageGet200Response type AnswerApiV1QuestionPageGet200Response struct { - Data *AnswerApiV1QuestionPageGet200ResponseData `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // http code + Code *int32 `json:"code,omitempty"` + Data *AnswerApiV1QuestionPageGet200ResponseAllOfData `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1QuestionPageGet200Response instantiates a new AnswerApiV1QuestionPageGet200Response object @@ -38,10 +43,42 @@ func NewAnswerApiV1QuestionPageGet200ResponseWithDefaults() *AnswerApiV1Question return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionPageGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1QuestionPageGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionPageGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1QuestionPageGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1QuestionPageGet200Response) GetData() AnswerApiV1QuestionPageGet200ResponseData { +func (o *AnswerApiV1QuestionPageGet200Response) GetData() AnswerApiV1QuestionPageGet200ResponseAllOfData { if o == nil || IsNil(o.Data) { - var ret AnswerApiV1QuestionPageGet200ResponseData + var ret AnswerApiV1QuestionPageGet200ResponseAllOfData return ret } return *o.Data @@ -49,7 +86,7 @@ func (o *AnswerApiV1QuestionPageGet200Response) GetData() AnswerApiV1QuestionPag // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1QuestionPageGet200Response) GetDataOk() (*AnswerApiV1QuestionPageGet200ResponseData, bool) { +func (o *AnswerApiV1QuestionPageGet200Response) GetDataOk() (*AnswerApiV1QuestionPageGet200ResponseAllOfData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -65,41 +102,73 @@ func (o *AnswerApiV1QuestionPageGet200Response) HasData() bool { return false } -// SetData gets a reference to the given AnswerApiV1QuestionPageGet200ResponseData and assigns it to the Data field. -func (o *AnswerApiV1QuestionPageGet200Response) SetData(v AnswerApiV1QuestionPageGet200ResponseData) { +// SetData gets a reference to the given AnswerApiV1QuestionPageGet200ResponseAllOfData and assigns it to the Data field. +func (o *AnswerApiV1QuestionPageGet200Response) SetData(v AnswerApiV1QuestionPageGet200ResponseAllOfData) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1QuestionPageGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionPageGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1QuestionPageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1QuestionPageGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1QuestionPageGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionPageGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1QuestionPageGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1QuestionPageGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionPageGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1QuestionPageGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionPageGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1QuestionPageGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1QuestionPageGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1QuestionPageGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1QuestionPageGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_question_page_get_200_response_all_of_data.go b/model__answer_api_v1_question_page_get_200_response_all_of_data.go new file mode 100644 index 0000000..1de32cd --- /dev/null +++ b/model__answer_api_v1_question_page_get_200_response_all_of_data.go @@ -0,0 +1,160 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1QuestionPageGet200ResponseAllOfData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1QuestionPageGet200ResponseAllOfData{} + +// AnswerApiV1QuestionPageGet200ResponseAllOfData struct for AnswerApiV1QuestionPageGet200ResponseAllOfData +type AnswerApiV1QuestionPageGet200ResponseAllOfData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaQuestionPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1QuestionPageGet200ResponseAllOfData instantiates a new AnswerApiV1QuestionPageGet200ResponseAllOfData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1QuestionPageGet200ResponseAllOfData() *AnswerApiV1QuestionPageGet200ResponseAllOfData { + this := AnswerApiV1QuestionPageGet200ResponseAllOfData{} + return &this +} + +// NewAnswerApiV1QuestionPageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1QuestionPageGet200ResponseAllOfData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1QuestionPageGet200ResponseAllOfDataWithDefaults() *AnswerApiV1QuestionPageGet200ResponseAllOfData { + this := AnswerApiV1QuestionPageGet200ResponseAllOfData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) GetList() []SchemaQuestionPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaQuestionPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) GetListOk() ([]SchemaQuestionPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaQuestionPageResp and assigns it to the List field. +func (o *AnswerApiV1QuestionPageGet200ResponseAllOfData) SetList(v []SchemaQuestionPageResp) { + o.List = v +} + +func (o AnswerApiV1QuestionPageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1QuestionPageGet200ResponseAllOfData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1QuestionPageGet200ResponseAllOfData struct { + value *AnswerApiV1QuestionPageGet200ResponseAllOfData + isSet bool +} + +func (v NullableAnswerApiV1QuestionPageGet200ResponseAllOfData) Get() *AnswerApiV1QuestionPageGet200ResponseAllOfData { + return v.value +} + +func (v *NullableAnswerApiV1QuestionPageGet200ResponseAllOfData) Set(val *AnswerApiV1QuestionPageGet200ResponseAllOfData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1QuestionPageGet200ResponseAllOfData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1QuestionPageGet200ResponseAllOfData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1QuestionPageGet200ResponseAllOfData(val *AnswerApiV1QuestionPageGet200ResponseAllOfData) *NullableAnswerApiV1QuestionPageGet200ResponseAllOfData { + return &NullableAnswerApiV1QuestionPageGet200ResponseAllOfData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1QuestionPageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1QuestionPageGet200ResponseAllOfData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_question_page_get_200_response_data.go b/model__answer_api_v1_question_page_get_200_response_data.go deleted file mode 100644 index cba8140..0000000 --- a/model__answer_api_v1_question_page_get_200_response_data.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1QuestionPageGet200ResponseData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1QuestionPageGet200ResponseData{} - -// AnswerApiV1QuestionPageGet200ResponseData struct for AnswerApiV1QuestionPageGet200ResponseData -type AnswerApiV1QuestionPageGet200ResponseData struct { - Count *int32 `json:"count,omitempty"` - List []SchemaQuestionPageResp `json:"list,omitempty"` -} - -// NewAnswerApiV1QuestionPageGet200ResponseData instantiates a new AnswerApiV1QuestionPageGet200ResponseData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1QuestionPageGet200ResponseData() *AnswerApiV1QuestionPageGet200ResponseData { - this := AnswerApiV1QuestionPageGet200ResponseData{} - return &this -} - -// NewAnswerApiV1QuestionPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1QuestionPageGet200ResponseData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1QuestionPageGet200ResponseDataWithDefaults() *AnswerApiV1QuestionPageGet200ResponseData { - this := AnswerApiV1QuestionPageGet200ResponseData{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *AnswerApiV1QuestionPageGet200ResponseData) GetCount() int32 { - if o == nil || IsNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1QuestionPageGet200ResponseData) GetCountOk() (*int32, bool) { - if o == nil || IsNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *AnswerApiV1QuestionPageGet200ResponseData) HasCount() bool { - if o != nil && !IsNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *AnswerApiV1QuestionPageGet200ResponseData) SetCount(v int32) { - o.Count = &v -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1QuestionPageGet200ResponseData) GetList() []SchemaQuestionPageResp { - if o == nil || IsNil(o.List) { - var ret []SchemaQuestionPageResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1QuestionPageGet200ResponseData) GetListOk() ([]SchemaQuestionPageResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1QuestionPageGet200ResponseData) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaQuestionPageResp and assigns it to the List field. -func (o *AnswerApiV1QuestionPageGet200ResponseData) SetList(v []SchemaQuestionPageResp) { - o.List = v -} - -func (o AnswerApiV1QuestionPageGet200ResponseData) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1QuestionPageGet200ResponseData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Count) { - toSerialize["count"] = o.Count - } - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1QuestionPageGet200ResponseData struct { - value *AnswerApiV1QuestionPageGet200ResponseData - isSet bool -} - -func (v NullableAnswerApiV1QuestionPageGet200ResponseData) Get() *AnswerApiV1QuestionPageGet200ResponseData { - return v.value -} - -func (v *NullableAnswerApiV1QuestionPageGet200ResponseData) Set(val *AnswerApiV1QuestionPageGet200ResponseData) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1QuestionPageGet200ResponseData) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1QuestionPageGet200ResponseData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1QuestionPageGet200ResponseData(val *AnswerApiV1QuestionPageGet200ResponseData) *NullableAnswerApiV1QuestionPageGet200ResponseData { - return &NullableAnswerApiV1QuestionPageGet200ResponseData{value: val, isSet: true} -} - -func (v NullableAnswerApiV1QuestionPageGet200ResponseData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1QuestionPageGet200ResponseData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_question_page_get_200_response_data_all_of.go b/model__answer_api_v1_question_page_get_200_response_data_all_of.go deleted file mode 100644 index 513c837..0000000 --- a/model__answer_api_v1_question_page_get_200_response_data_all_of.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1QuestionPageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1QuestionPageGet200ResponseDataAllOf{} - -// AnswerApiV1QuestionPageGet200ResponseDataAllOf struct for AnswerApiV1QuestionPageGet200ResponseDataAllOf -type AnswerApiV1QuestionPageGet200ResponseDataAllOf struct { - List []SchemaQuestionPageResp `json:"list,omitempty"` -} - -// NewAnswerApiV1QuestionPageGet200ResponseDataAllOf instantiates a new AnswerApiV1QuestionPageGet200ResponseDataAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1QuestionPageGet200ResponseDataAllOf() *AnswerApiV1QuestionPageGet200ResponseDataAllOf { - this := AnswerApiV1QuestionPageGet200ResponseDataAllOf{} - return &this -} - -// NewAnswerApiV1QuestionPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1QuestionPageGet200ResponseDataAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1QuestionPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1QuestionPageGet200ResponseDataAllOf { - this := AnswerApiV1QuestionPageGet200ResponseDataAllOf{} - return &this -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) GetList() []SchemaQuestionPageResp { - if o == nil || IsNil(o.List) { - var ret []SchemaQuestionPageResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) GetListOk() ([]SchemaQuestionPageResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaQuestionPageResp and assigns it to the List field. -func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) SetList(v []SchemaQuestionPageResp) { - o.List = v -} - -func (o AnswerApiV1QuestionPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1QuestionPageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf struct { - value *AnswerApiV1QuestionPageGet200ResponseDataAllOf - isSet bool -} - -func (v NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) Get() *AnswerApiV1QuestionPageGet200ResponseDataAllOf { - return v.value -} - -func (v *NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) Set(val *AnswerApiV1QuestionPageGet200ResponseDataAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1QuestionPageGet200ResponseDataAllOf(val *AnswerApiV1QuestionPageGet200ResponseDataAllOf) *NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf { - return &NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf{value: val, isSet: true} -} - -func (v NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_question_tags_get_200_response.go b/model__answer_api_v1_question_tags_get_200_response.go index 141bd22..dae71ce 100644 --- a/model__answer_api_v1_question_tags_get_200_response.go +++ b/model__answer_api_v1_question_tags_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1QuestionTagsGet200Response{} // AnswerApiV1QuestionTagsGet200Response struct for AnswerApiV1QuestionTagsGet200Response type AnswerApiV1QuestionTagsGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data []SchemaGetTagResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1QuestionTagsGet200Response instantiates a new AnswerApiV1QuestionTagsGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1QuestionTagsGet200ResponseWithDefaults() *AnswerApiV1Question return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionTagsGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1QuestionTagsGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionTagsGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1QuestionTagsGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1QuestionTagsGet200Response) GetData() []SchemaGetTagResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1QuestionTagsGet200Response) SetData(v []SchemaGetTagResp) { o.Data = v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1QuestionTagsGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionTagsGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1QuestionTagsGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1QuestionTagsGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1QuestionTagsGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionTagsGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1QuestionTagsGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1QuestionTagsGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionTagsGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1QuestionTagsGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionTagsGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1QuestionTagsGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1QuestionTagsGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1QuestionTagsGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1QuestionTagsGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_report_type_list_get_200_response.go b/model__answer_api_v1_report_type_list_get_200_response.go deleted file mode 100644 index dadf685..0000000 --- a/model__answer_api_v1_report_type_list_get_200_response.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -answer - -answer api - -API version: v0.0.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1ReportTypeListGet200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1ReportTypeListGet200Response{} - -// AnswerApiV1ReportTypeListGet200Response struct for AnswerApiV1ReportTypeListGet200Response -type AnswerApiV1ReportTypeListGet200Response struct { - Data []SchemaGetReportTypeResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` -} - -// NewAnswerApiV1ReportTypeListGet200Response instantiates a new AnswerApiV1ReportTypeListGet200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1ReportTypeListGet200Response() *AnswerApiV1ReportTypeListGet200Response { - this := AnswerApiV1ReportTypeListGet200Response{} - return &this -} - -// NewAnswerApiV1ReportTypeListGet200ResponseWithDefaults instantiates a new AnswerApiV1ReportTypeListGet200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1ReportTypeListGet200ResponseWithDefaults() *AnswerApiV1ReportTypeListGet200Response { - this := AnswerApiV1ReportTypeListGet200Response{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1ReportTypeListGet200Response) GetData() []SchemaGetReportTypeResp { - if o == nil || IsNil(o.Data) { - var ret []SchemaGetReportTypeResp - return ret - } - return o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1ReportTypeListGet200Response) GetDataOk() ([]SchemaGetReportTypeResp, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *AnswerApiV1ReportTypeListGet200Response) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given []SchemaGetReportTypeResp and assigns it to the Data field. -func (o *AnswerApiV1ReportTypeListGet200Response) SetData(v []SchemaGetReportTypeResp) { - o.Data = v -} - -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1ReportTypeListGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody - return ret - } - return *o.HandlerRespBody -} - -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1ReportTypeListGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { - return nil, false - } - return o.HandlerRespBody, true -} - -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1ReportTypeListGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { - return true - } - - return false -} - -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1ReportTypeListGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v -} - -func (o AnswerApiV1ReportTypeListGet200Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1ReportTypeListGet200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody - } - return toSerialize, nil -} - -type NullableAnswerApiV1ReportTypeListGet200Response struct { - value *AnswerApiV1ReportTypeListGet200Response - isSet bool -} - -func (v NullableAnswerApiV1ReportTypeListGet200Response) Get() *AnswerApiV1ReportTypeListGet200Response { - return v.value -} - -func (v *NullableAnswerApiV1ReportTypeListGet200Response) Set(val *AnswerApiV1ReportTypeListGet200Response) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1ReportTypeListGet200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1ReportTypeListGet200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1ReportTypeListGet200Response(val *AnswerApiV1ReportTypeListGet200Response) *NullableAnswerApiV1ReportTypeListGet200Response { - return &NullableAnswerApiV1ReportTypeListGet200Response{value: val, isSet: true} -} - -func (v NullableAnswerApiV1ReportTypeListGet200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1ReportTypeListGet200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_revisions_get_200_response.go b/model__answer_api_v1_revisions_get_200_response.go index eaa8da5..2da7ce5 100644 --- a/model__answer_api_v1_revisions_get_200_response.go +++ b/model__answer_api_v1_revisions_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1RevisionsGet200Response{} // AnswerApiV1RevisionsGet200Response struct for AnswerApiV1RevisionsGet200Response type AnswerApiV1RevisionsGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data []SchemaGetRevisionResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1RevisionsGet200Response instantiates a new AnswerApiV1RevisionsGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1RevisionsGet200ResponseWithDefaults() *AnswerApiV1RevisionsGe return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1RevisionsGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1RevisionsGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1RevisionsGet200Response) GetData() []SchemaGetRevisionResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1RevisionsGet200Response) SetData(v []SchemaGetRevisionResp) o.Data = v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1RevisionsGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1RevisionsGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1RevisionsGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1RevisionsGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1RevisionsGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1RevisionsGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1RevisionsGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1RevisionsGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1RevisionsGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1RevisionsGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1RevisionsGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_revisions_unreviewed_get_200_response.go b/model__answer_api_v1_revisions_unreviewed_get_200_response.go index 1e310d6..0e4c64d 100644 --- a/model__answer_api_v1_revisions_unreviewed_get_200_response.go +++ b/model__answer_api_v1_revisions_unreviewed_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1RevisionsUnreviewedGet200Response{} // AnswerApiV1RevisionsUnreviewedGet200Response struct for AnswerApiV1RevisionsUnreviewedGet200Response type AnswerApiV1RevisionsUnreviewedGet200Response struct { - Data *AnswerApiV1RevisionsUnreviewedGet200ResponseData `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // http code + Code *int32 `json:"code,omitempty"` + Data *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1RevisionsUnreviewedGet200Response instantiates a new AnswerApiV1RevisionsUnreviewedGet200Response object @@ -38,10 +43,42 @@ func NewAnswerApiV1RevisionsUnreviewedGet200ResponseWithDefaults() *AnswerApiV1R return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetData() AnswerApiV1RevisionsUnreviewedGet200ResponseData { +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetData() AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData { if o == nil || IsNil(o.Data) { - var ret AnswerApiV1RevisionsUnreviewedGet200ResponseData + var ret AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData return ret } return *o.Data @@ -49,7 +86,7 @@ func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetData() AnswerApiV1Revi // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetDataOk() (*AnswerApiV1RevisionsUnreviewedGet200ResponseData, bool) { +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetDataOk() (*AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -65,41 +102,73 @@ func (o *AnswerApiV1RevisionsUnreviewedGet200Response) HasData() bool { return false } -// SetData gets a reference to the given AnswerApiV1RevisionsUnreviewedGet200ResponseData and assigns it to the Data field. -func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetData(v AnswerApiV1RevisionsUnreviewedGet200ResponseData) { +// SetData gets a reference to the given AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData and assigns it to the Data field. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetData(v AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1RevisionsUnreviewedGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1RevisionsUnreviewedGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1RevisionsUnreviewedGet200Response) MarshalJSON() ([]byte, err func (o AnswerApiV1RevisionsUnreviewedGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_revisions_unreviewed_get_200_response_all_of_data.go b/model__answer_api_v1_revisions_unreviewed_get_200_response_all_of_data.go new file mode 100644 index 0000000..fd26f88 --- /dev/null +++ b/model__answer_api_v1_revisions_unreviewed_get_200_response_all_of_data.go @@ -0,0 +1,160 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData{} + +// AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData struct for AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData +type AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetUnreviewedRevisionResp `json:"list,omitempty"` +} + +// NewAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData() *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData { + this := AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData{} + return &this +} + +// NewAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfDataWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData { + this := AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) GetList() []SchemaGetUnreviewedRevisionResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetUnreviewedRevisionResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) GetListOk() ([]SchemaGetUnreviewedRevisionResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetUnreviewedRevisionResp and assigns it to the List field. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) SetList(v []SchemaGetUnreviewedRevisionResp) { + o.List = v +} + +func (o AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData struct { + value *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData + isSet bool +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) Get() *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData { + return v.value +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) Set(val *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData(val *AnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData { + return &NullableAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseAllOfData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_revisions_unreviewed_get_200_response_data.go b/model__answer_api_v1_revisions_unreviewed_get_200_response_data.go deleted file mode 100644 index 5aa5d2d..0000000 --- a/model__answer_api_v1_revisions_unreviewed_get_200_response_data.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1RevisionsUnreviewedGet200ResponseData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1RevisionsUnreviewedGet200ResponseData{} - -// AnswerApiV1RevisionsUnreviewedGet200ResponseData struct for AnswerApiV1RevisionsUnreviewedGet200ResponseData -type AnswerApiV1RevisionsUnreviewedGet200ResponseData struct { - Count *int32 `json:"count,omitempty"` - List []SchemaGetUnreviewedRevisionResp `json:"list,omitempty"` -} - -// NewAnswerApiV1RevisionsUnreviewedGet200ResponseData instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1RevisionsUnreviewedGet200ResponseData() *AnswerApiV1RevisionsUnreviewedGet200ResponseData { - this := AnswerApiV1RevisionsUnreviewedGet200ResponseData{} - return &this -} - -// NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200ResponseData { - this := AnswerApiV1RevisionsUnreviewedGet200ResponseData{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetCount() int32 { - if o == nil || IsNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetCountOk() (*int32, bool) { - if o == nil || IsNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) HasCount() bool { - if o != nil && !IsNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) SetCount(v int32) { - o.Count = &v -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetList() []SchemaGetUnreviewedRevisionResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetUnreviewedRevisionResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetListOk() ([]SchemaGetUnreviewedRevisionResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetUnreviewedRevisionResp and assigns it to the List field. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) SetList(v []SchemaGetUnreviewedRevisionResp) { - o.List = v -} - -func (o AnswerApiV1RevisionsUnreviewedGet200ResponseData) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1RevisionsUnreviewedGet200ResponseData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Count) { - toSerialize["count"] = o.Count - } - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData struct { - value *AnswerApiV1RevisionsUnreviewedGet200ResponseData - isSet bool -} - -func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) Get() *AnswerApiV1RevisionsUnreviewedGet200ResponseData { - return v.value -} - -func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) Set(val *AnswerApiV1RevisionsUnreviewedGet200ResponseData) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1RevisionsUnreviewedGet200ResponseData(val *AnswerApiV1RevisionsUnreviewedGet200ResponseData) *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData { - return &NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData{value: val, isSet: true} -} - -func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_revisions_unreviewed_get_200_response_data_all_of.go b/model__answer_api_v1_revisions_unreviewed_get_200_response_data_all_of.go deleted file mode 100644 index edb496d..0000000 --- a/model__answer_api_v1_revisions_unreviewed_get_200_response_data_all_of.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf{} - -// AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf struct for AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf -type AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf struct { - List []SchemaGetUnreviewedRevisionResp `json:"list,omitempty"` -} - -// NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf() *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf { - this := AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf{} - return &this -} - -// NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOfWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf { - this := AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf{} - return &this -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) GetList() []SchemaGetUnreviewedRevisionResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetUnreviewedRevisionResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) GetListOk() ([]SchemaGetUnreviewedRevisionResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetUnreviewedRevisionResp and assigns it to the List field. -func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) SetList(v []SchemaGetUnreviewedRevisionResp) { - o.List = v -} - -func (o AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf struct { - value *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf - isSet bool -} - -func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) Get() *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf { - return v.value -} - -func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) Set(val *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf(val *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf { - return &NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf{value: val, isSet: true} -} - -func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_search_get_200_response.go b/model__answer_api_v1_search_get_200_response.go index 4e9d660..c9e4328 100644 --- a/model__answer_api_v1_search_get_200_response.go +++ b/model__answer_api_v1_search_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1SearchGet200Response{} // AnswerApiV1SearchGet200Response struct for AnswerApiV1SearchGet200Response type AnswerApiV1SearchGet200Response struct { - Data *SchemaSearchListResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // http code + Code *int32 `json:"code,omitempty"` + Data *SchemaSearchResp `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1SearchGet200Response instantiates a new AnswerApiV1SearchGet200Response object @@ -38,10 +43,42 @@ func NewAnswerApiV1SearchGet200ResponseWithDefaults() *AnswerApiV1SearchGet200Re return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1SearchGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1SearchGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1SearchGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1SearchGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1SearchGet200Response) GetData() SchemaSearchListResp { +func (o *AnswerApiV1SearchGet200Response) GetData() SchemaSearchResp { if o == nil || IsNil(o.Data) { - var ret SchemaSearchListResp + var ret SchemaSearchResp return ret } return *o.Data @@ -49,7 +86,7 @@ func (o *AnswerApiV1SearchGet200Response) GetData() SchemaSearchListResp { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1SearchGet200Response) GetDataOk() (*SchemaSearchListResp, bool) { +func (o *AnswerApiV1SearchGet200Response) GetDataOk() (*SchemaSearchResp, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -65,41 +102,73 @@ func (o *AnswerApiV1SearchGet200Response) HasData() bool { return false } -// SetData gets a reference to the given SchemaSearchListResp and assigns it to the Data field. -func (o *AnswerApiV1SearchGet200Response) SetData(v SchemaSearchListResp) { +// SetData gets a reference to the given SchemaSearchResp and assigns it to the Data field. +func (o *AnswerApiV1SearchGet200Response) SetData(v SchemaSearchResp) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1SearchGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1SearchGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1SearchGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1SearchGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1SearchGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1SearchGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1SearchGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1SearchGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1SearchGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1SearchGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1SearchGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1SearchGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1SearchGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1SearchGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1SearchGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_siteinfo_get_200_response.go b/model__answer_api_v1_siteinfo_get_200_response.go index 9d35a03..4b401f3 100644 --- a/model__answer_api_v1_siteinfo_get_200_response.go +++ b/model__answer_api_v1_siteinfo_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1SiteinfoGet200Response{} // AnswerApiV1SiteinfoGet200Response struct for AnswerApiV1SiteinfoGet200Response type AnswerApiV1SiteinfoGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaSiteInfoResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1SiteinfoGet200Response instantiates a new AnswerApiV1SiteinfoGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1SiteinfoGet200ResponseWithDefaults() *AnswerApiV1SiteinfoGet2 return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1SiteinfoGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1SiteinfoGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1SiteinfoGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1SiteinfoGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1SiteinfoGet200Response) GetData() SchemaSiteInfoResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1SiteinfoGet200Response) SetData(v SchemaSiteInfoResp) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1SiteinfoGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1SiteinfoGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1SiteinfoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1SiteinfoGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1SiteinfoGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1SiteinfoGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1SiteinfoGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1SiteinfoGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1SiteinfoGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1SiteinfoGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1SiteinfoGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1SiteinfoGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1SiteinfoGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1SiteinfoGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1SiteinfoGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_siteinfo_legal_get_200_response.go b/model__answer_api_v1_siteinfo_legal_get_200_response.go index fcdde03..40d606b 100644 --- a/model__answer_api_v1_siteinfo_legal_get_200_response.go +++ b/model__answer_api_v1_siteinfo_legal_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1SiteinfoLegalGet200Response{} // AnswerApiV1SiteinfoLegalGet200Response struct for AnswerApiV1SiteinfoLegalGet200Response type AnswerApiV1SiteinfoLegalGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetSiteLegalInfoResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1SiteinfoLegalGet200Response instantiates a new AnswerApiV1SiteinfoLegalGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1SiteinfoLegalGet200ResponseWithDefaults() *AnswerApiV1Siteinf return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1SiteinfoLegalGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1SiteinfoLegalGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1SiteinfoLegalGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1SiteinfoLegalGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1SiteinfoLegalGet200Response) GetData() SchemaGetSiteLegalInfoResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1SiteinfoLegalGet200Response) SetData(v SchemaGetSiteLegalInf o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1SiteinfoLegalGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1SiteinfoLegalGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1SiteinfoLegalGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1SiteinfoLegalGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1SiteinfoLegalGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1SiteinfoLegalGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1SiteinfoLegalGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1SiteinfoLegalGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1SiteinfoLegalGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1SiteinfoLegalGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1SiteinfoLegalGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1SiteinfoLegalGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1SiteinfoLegalGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1SiteinfoLegalGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1SiteinfoLegalGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_tag_get_200_response.go b/model__answer_api_v1_tag_get_200_response.go index 40e8f8d..954e187 100644 --- a/model__answer_api_v1_tag_get_200_response.go +++ b/model__answer_api_v1_tag_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1TagGet200Response{} // AnswerApiV1TagGet200Response struct for AnswerApiV1TagGet200Response type AnswerApiV1TagGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetTagResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1TagGet200Response instantiates a new AnswerApiV1TagGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1TagGet200ResponseWithDefaults() *AnswerApiV1TagGet200Response return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1TagGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1TagGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1TagGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1TagGet200Response) GetData() SchemaGetTagResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1TagGet200Response) SetData(v SchemaGetTagResp) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1TagGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1TagGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1TagGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1TagGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1TagGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1TagGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1TagGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1TagGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1TagGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1TagGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1TagGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1TagGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1TagGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1TagGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_tag_synonyms_get_200_response.go b/model__answer_api_v1_tag_synonyms_get_200_response.go index b4d4562..afa4e8a 100644 --- a/model__answer_api_v1_tag_synonyms_get_200_response.go +++ b/model__answer_api_v1_tag_synonyms_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1TagSynonymsGet200Response{} // AnswerApiV1TagSynonymsGet200Response struct for AnswerApiV1TagSynonymsGet200Response type AnswerApiV1TagSynonymsGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetTagSynonymsResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1TagSynonymsGet200Response instantiates a new AnswerApiV1TagSynonymsGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1TagSynonymsGet200ResponseWithDefaults() *AnswerApiV1TagSynony return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1TagSynonymsGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagSynonymsGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1TagSynonymsGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1TagSynonymsGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1TagSynonymsGet200Response) GetData() SchemaGetTagSynonymsResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1TagSynonymsGet200Response) SetData(v SchemaGetTagSynonymsRes o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1TagSynonymsGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1TagSynonymsGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1TagSynonymsGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1TagSynonymsGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1TagSynonymsGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1TagSynonymsGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1TagSynonymsGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1TagSynonymsGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1TagSynonymsGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagSynonymsGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1TagSynonymsGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1TagSynonymsGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1TagSynonymsGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1TagSynonymsGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1TagSynonymsGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_tags_following_get_200_response.go b/model__answer_api_v1_tags_following_get_200_response.go index 605a0d1..ef3e984 100644 --- a/model__answer_api_v1_tags_following_get_200_response.go +++ b/model__answer_api_v1_tags_following_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1TagsFollowingGet200Response{} // AnswerApiV1TagsFollowingGet200Response struct for AnswerApiV1TagsFollowingGet200Response type AnswerApiV1TagsFollowingGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data []SchemaGetFollowingTagsResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1TagsFollowingGet200Response instantiates a new AnswerApiV1TagsFollowingGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1TagsFollowingGet200ResponseWithDefaults() *AnswerApiV1TagsFol return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1TagsFollowingGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagsFollowingGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1TagsFollowingGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1TagsFollowingGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1TagsFollowingGet200Response) GetData() []SchemaGetFollowingTagsResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1TagsFollowingGet200Response) SetData(v []SchemaGetFollowingT o.Data = v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1TagsFollowingGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1TagsFollowingGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1TagsFollowingGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1TagsFollowingGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1TagsFollowingGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1TagsFollowingGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1TagsFollowingGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1TagsFollowingGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1TagsFollowingGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagsFollowingGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1TagsFollowingGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1TagsFollowingGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1TagsFollowingGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1TagsFollowingGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1TagsFollowingGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_tags_page_get_200_response.go b/model__answer_api_v1_tags_page_get_200_response.go index 7d8cf36..d18a480 100644 --- a/model__answer_api_v1_tags_page_get_200_response.go +++ b/model__answer_api_v1_tags_page_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1TagsPageGet200Response{} // AnswerApiV1TagsPageGet200Response struct for AnswerApiV1TagsPageGet200Response type AnswerApiV1TagsPageGet200Response struct { - Data *AnswerApiV1TagsPageGet200ResponseData `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // http code + Code *int32 `json:"code,omitempty"` + Data *AnswerApiV1TagsPageGet200ResponseAllOfData `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1TagsPageGet200Response instantiates a new AnswerApiV1TagsPageGet200Response object @@ -38,10 +43,42 @@ func NewAnswerApiV1TagsPageGet200ResponseWithDefaults() *AnswerApiV1TagsPageGet2 return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1TagsPageGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagsPageGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1TagsPageGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1TagsPageGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1TagsPageGet200Response) GetData() AnswerApiV1TagsPageGet200ResponseData { +func (o *AnswerApiV1TagsPageGet200Response) GetData() AnswerApiV1TagsPageGet200ResponseAllOfData { if o == nil || IsNil(o.Data) { - var ret AnswerApiV1TagsPageGet200ResponseData + var ret AnswerApiV1TagsPageGet200ResponseAllOfData return ret } return *o.Data @@ -49,7 +86,7 @@ func (o *AnswerApiV1TagsPageGet200Response) GetData() AnswerApiV1TagsPageGet200R // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1TagsPageGet200Response) GetDataOk() (*AnswerApiV1TagsPageGet200ResponseData, bool) { +func (o *AnswerApiV1TagsPageGet200Response) GetDataOk() (*AnswerApiV1TagsPageGet200ResponseAllOfData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -65,41 +102,73 @@ func (o *AnswerApiV1TagsPageGet200Response) HasData() bool { return false } -// SetData gets a reference to the given AnswerApiV1TagsPageGet200ResponseData and assigns it to the Data field. -func (o *AnswerApiV1TagsPageGet200Response) SetData(v AnswerApiV1TagsPageGet200ResponseData) { +// SetData gets a reference to the given AnswerApiV1TagsPageGet200ResponseAllOfData and assigns it to the Data field. +func (o *AnswerApiV1TagsPageGet200Response) SetData(v AnswerApiV1TagsPageGet200ResponseAllOfData) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1TagsPageGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1TagsPageGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1TagsPageGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1TagsPageGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1TagsPageGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1TagsPageGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1TagsPageGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1TagsPageGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1TagsPageGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagsPageGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1TagsPageGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1TagsPageGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1TagsPageGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1TagsPageGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1TagsPageGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_tags_page_get_200_response_all_of_data.go b/model__answer_api_v1_tags_page_get_200_response_all_of_data.go new file mode 100644 index 0000000..725f3b9 --- /dev/null +++ b/model__answer_api_v1_tags_page_get_200_response_all_of_data.go @@ -0,0 +1,160 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1TagsPageGet200ResponseAllOfData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1TagsPageGet200ResponseAllOfData{} + +// AnswerApiV1TagsPageGet200ResponseAllOfData struct for AnswerApiV1TagsPageGet200ResponseAllOfData +type AnswerApiV1TagsPageGet200ResponseAllOfData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetTagPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1TagsPageGet200ResponseAllOfData instantiates a new AnswerApiV1TagsPageGet200ResponseAllOfData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1TagsPageGet200ResponseAllOfData() *AnswerApiV1TagsPageGet200ResponseAllOfData { + this := AnswerApiV1TagsPageGet200ResponseAllOfData{} + return &this +} + +// NewAnswerApiV1TagsPageGet200ResponseAllOfDataWithDefaults instantiates a new AnswerApiV1TagsPageGet200ResponseAllOfData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1TagsPageGet200ResponseAllOfDataWithDefaults() *AnswerApiV1TagsPageGet200ResponseAllOfData { + this := AnswerApiV1TagsPageGet200ResponseAllOfData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) GetList() []SchemaGetTagPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetTagPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) GetListOk() ([]SchemaGetTagPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetTagPageResp and assigns it to the List field. +func (o *AnswerApiV1TagsPageGet200ResponseAllOfData) SetList(v []SchemaGetTagPageResp) { + o.List = v +} + +func (o AnswerApiV1TagsPageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1TagsPageGet200ResponseAllOfData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1TagsPageGet200ResponseAllOfData struct { + value *AnswerApiV1TagsPageGet200ResponseAllOfData + isSet bool +} + +func (v NullableAnswerApiV1TagsPageGet200ResponseAllOfData) Get() *AnswerApiV1TagsPageGet200ResponseAllOfData { + return v.value +} + +func (v *NullableAnswerApiV1TagsPageGet200ResponseAllOfData) Set(val *AnswerApiV1TagsPageGet200ResponseAllOfData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1TagsPageGet200ResponseAllOfData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1TagsPageGet200ResponseAllOfData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1TagsPageGet200ResponseAllOfData(val *AnswerApiV1TagsPageGet200ResponseAllOfData) *NullableAnswerApiV1TagsPageGet200ResponseAllOfData { + return &NullableAnswerApiV1TagsPageGet200ResponseAllOfData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1TagsPageGet200ResponseAllOfData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1TagsPageGet200ResponseAllOfData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_tags_page_get_200_response_data.go b/model__answer_api_v1_tags_page_get_200_response_data.go deleted file mode 100644 index 84b876b..0000000 --- a/model__answer_api_v1_tags_page_get_200_response_data.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1TagsPageGet200ResponseData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1TagsPageGet200ResponseData{} - -// AnswerApiV1TagsPageGet200ResponseData struct for AnswerApiV1TagsPageGet200ResponseData -type AnswerApiV1TagsPageGet200ResponseData struct { - Count *int32 `json:"count,omitempty"` - List []SchemaGetTagPageResp `json:"list,omitempty"` -} - -// NewAnswerApiV1TagsPageGet200ResponseData instantiates a new AnswerApiV1TagsPageGet200ResponseData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1TagsPageGet200ResponseData() *AnswerApiV1TagsPageGet200ResponseData { - this := AnswerApiV1TagsPageGet200ResponseData{} - return &this -} - -// NewAnswerApiV1TagsPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1TagsPageGet200ResponseData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1TagsPageGet200ResponseDataWithDefaults() *AnswerApiV1TagsPageGet200ResponseData { - this := AnswerApiV1TagsPageGet200ResponseData{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *AnswerApiV1TagsPageGet200ResponseData) GetCount() int32 { - if o == nil || IsNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1TagsPageGet200ResponseData) GetCountOk() (*int32, bool) { - if o == nil || IsNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *AnswerApiV1TagsPageGet200ResponseData) HasCount() bool { - if o != nil && !IsNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *AnswerApiV1TagsPageGet200ResponseData) SetCount(v int32) { - o.Count = &v -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1TagsPageGet200ResponseData) GetList() []SchemaGetTagPageResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetTagPageResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1TagsPageGet200ResponseData) GetListOk() ([]SchemaGetTagPageResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1TagsPageGet200ResponseData) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetTagPageResp and assigns it to the List field. -func (o *AnswerApiV1TagsPageGet200ResponseData) SetList(v []SchemaGetTagPageResp) { - o.List = v -} - -func (o AnswerApiV1TagsPageGet200ResponseData) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1TagsPageGet200ResponseData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Count) { - toSerialize["count"] = o.Count - } - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1TagsPageGet200ResponseData struct { - value *AnswerApiV1TagsPageGet200ResponseData - isSet bool -} - -func (v NullableAnswerApiV1TagsPageGet200ResponseData) Get() *AnswerApiV1TagsPageGet200ResponseData { - return v.value -} - -func (v *NullableAnswerApiV1TagsPageGet200ResponseData) Set(val *AnswerApiV1TagsPageGet200ResponseData) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1TagsPageGet200ResponseData) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1TagsPageGet200ResponseData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1TagsPageGet200ResponseData(val *AnswerApiV1TagsPageGet200ResponseData) *NullableAnswerApiV1TagsPageGet200ResponseData { - return &NullableAnswerApiV1TagsPageGet200ResponseData{value: val, isSet: true} -} - -func (v NullableAnswerApiV1TagsPageGet200ResponseData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1TagsPageGet200ResponseData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_tags_page_get_200_response_data_all_of.go b/model__answer_api_v1_tags_page_get_200_response_data_all_of.go deleted file mode 100644 index d075bc7..0000000 --- a/model__answer_api_v1_tags_page_get_200_response_data_all_of.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1TagsPageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1TagsPageGet200ResponseDataAllOf{} - -// AnswerApiV1TagsPageGet200ResponseDataAllOf struct for AnswerApiV1TagsPageGet200ResponseDataAllOf -type AnswerApiV1TagsPageGet200ResponseDataAllOf struct { - List []SchemaGetTagPageResp `json:"list,omitempty"` -} - -// NewAnswerApiV1TagsPageGet200ResponseDataAllOf instantiates a new AnswerApiV1TagsPageGet200ResponseDataAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1TagsPageGet200ResponseDataAllOf() *AnswerApiV1TagsPageGet200ResponseDataAllOf { - this := AnswerApiV1TagsPageGet200ResponseDataAllOf{} - return &this -} - -// NewAnswerApiV1TagsPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1TagsPageGet200ResponseDataAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1TagsPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1TagsPageGet200ResponseDataAllOf { - this := AnswerApiV1TagsPageGet200ResponseDataAllOf{} - return &this -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) GetList() []SchemaGetTagPageResp { - if o == nil || IsNil(o.List) { - var ret []SchemaGetTagPageResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) GetListOk() ([]SchemaGetTagPageResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaGetTagPageResp and assigns it to the List field. -func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) SetList(v []SchemaGetTagPageResp) { - o.List = v -} - -func (o AnswerApiV1TagsPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1TagsPageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableAnswerApiV1TagsPageGet200ResponseDataAllOf struct { - value *AnswerApiV1TagsPageGet200ResponseDataAllOf - isSet bool -} - -func (v NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) Get() *AnswerApiV1TagsPageGet200ResponseDataAllOf { - return v.value -} - -func (v *NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) Set(val *AnswerApiV1TagsPageGet200ResponseDataAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1TagsPageGet200ResponseDataAllOf(val *AnswerApiV1TagsPageGet200ResponseDataAllOf) *NullableAnswerApiV1TagsPageGet200ResponseDataAllOf { - return &NullableAnswerApiV1TagsPageGet200ResponseDataAllOf{value: val, isSet: true} -} - -func (v NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_user_action_record_get_200_response.go b/model__answer_api_v1_user_action_record_get_200_response.go index 6489623..1ad79fb 100644 --- a/model__answer_api_v1_user_action_record_get_200_response.go +++ b/model__answer_api_v1_user_action_record_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1UserActionRecordGet200Response{} // AnswerApiV1UserActionRecordGet200Response struct for AnswerApiV1UserActionRecordGet200Response type AnswerApiV1UserActionRecordGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaActionRecordResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1UserActionRecordGet200Response instantiates a new AnswerApiV1UserActionRecordGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1UserActionRecordGet200ResponseWithDefaults() *AnswerApiV1User return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1UserActionRecordGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserActionRecordGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1UserActionRecordGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1UserActionRecordGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1UserActionRecordGet200Response) GetData() SchemaActionRecordResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1UserActionRecordGet200Response) SetData(v SchemaActionRecord o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1UserActionRecordGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1UserActionRecordGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1UserActionRecordGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1UserActionRecordGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1UserActionRecordGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1UserActionRecordGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1UserActionRecordGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1UserActionRecordGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1UserActionRecordGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserActionRecordGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1UserActionRecordGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1UserActionRecordGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1UserActionRecordGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1UserActionRecordGet200Response) MarshalJSON() ([]byte, error) func (o AnswerApiV1UserActionRecordGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_user_email_verification_post_200_response.go b/model__answer_api_v1_user_email_verification_post_200_response.go index ee5ebb4..42d4bf1 100644 --- a/model__answer_api_v1_user_email_verification_post_200_response.go +++ b/model__answer_api_v1_user_email_verification_post_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1UserEmailVerificationPost200Response{} // AnswerApiV1UserEmailVerificationPost200Response struct for AnswerApiV1UserEmailVerificationPost200Response type AnswerApiV1UserEmailVerificationPost200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaUserLoginResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1UserEmailVerificationPost200Response instantiates a new AnswerApiV1UserEmailVerificationPost200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1UserEmailVerificationPost200ResponseWithDefaults() *AnswerApi return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1UserEmailVerificationPost200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserEmailVerificationPost200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1UserEmailVerificationPost200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1UserEmailVerificationPost200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1UserEmailVerificationPost200Response) GetData() SchemaUserLoginResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1UserEmailVerificationPost200Response) SetData(v SchemaUserLo o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1UserEmailVerificationPost200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1UserEmailVerificationPost200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1UserEmailVerificationPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1UserEmailVerificationPost200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1UserEmailVerificationPost200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1UserEmailVerificationPost200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1UserEmailVerificationPost200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1UserEmailVerificationPost200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1UserEmailVerificationPost200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserEmailVerificationPost200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1UserEmailVerificationPost200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1UserEmailVerificationPost200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1UserEmailVerificationPost200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1UserEmailVerificationPost200Response) MarshalJSON() ([]byte, func (o AnswerApiV1UserEmailVerificationPost200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_user_info_get_200_response.go b/model__answer_api_v1_user_info_get_200_response.go index e5c4477..86ecb46 100644 --- a/model__answer_api_v1_user_info_get_200_response.go +++ b/model__answer_api_v1_user_info_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1UserInfoGet200Response{} // AnswerApiV1UserInfoGet200Response struct for AnswerApiV1UserInfoGet200Response type AnswerApiV1UserInfoGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaGetCurrentLoginUserInfoResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1UserInfoGet200Response instantiates a new AnswerApiV1UserInfoGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1UserInfoGet200ResponseWithDefaults() *AnswerApiV1UserInfoGet2 return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1UserInfoGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserInfoGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1UserInfoGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1UserInfoGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1UserInfoGet200Response) GetData() SchemaGetCurrentLoginUserInfoResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1UserInfoGet200Response) SetData(v SchemaGetCurrentLoginUserI o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1UserInfoGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1UserInfoGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1UserInfoGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1UserInfoGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1UserInfoGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1UserInfoGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1UserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1UserInfoGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1UserInfoGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserInfoGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1UserInfoGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1UserInfoGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1UserInfoGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1UserInfoGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1UserInfoGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_user_notice_set_post_200_response.go b/model__answer_api_v1_user_notice_set_post_200_response.go deleted file mode 100644 index 326dbec..0000000 --- a/model__answer_api_v1_user_notice_set_post_200_response.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AnswerApiV1UserNoticeSetPost200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AnswerApiV1UserNoticeSetPost200Response{} - -// AnswerApiV1UserNoticeSetPost200Response struct for AnswerApiV1UserNoticeSetPost200Response -type AnswerApiV1UserNoticeSetPost200Response struct { - Data *SchemaUserNoticeSetResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` -} - -// NewAnswerApiV1UserNoticeSetPost200Response instantiates a new AnswerApiV1UserNoticeSetPost200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAnswerApiV1UserNoticeSetPost200Response() *AnswerApiV1UserNoticeSetPost200Response { - this := AnswerApiV1UserNoticeSetPost200Response{} - return &this -} - -// NewAnswerApiV1UserNoticeSetPost200ResponseWithDefaults instantiates a new AnswerApiV1UserNoticeSetPost200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAnswerApiV1UserNoticeSetPost200ResponseWithDefaults() *AnswerApiV1UserNoticeSetPost200Response { - this := AnswerApiV1UserNoticeSetPost200Response{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1UserNoticeSetPost200Response) GetData() SchemaUserNoticeSetResp { - if o == nil || IsNil(o.Data) { - var ret SchemaUserNoticeSetResp - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1UserNoticeSetPost200Response) GetDataOk() (*SchemaUserNoticeSetResp, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *AnswerApiV1UserNoticeSetPost200Response) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given SchemaUserNoticeSetResp and assigns it to the Data field. -func (o *AnswerApiV1UserNoticeSetPost200Response) SetData(v SchemaUserNoticeSetResp) { - o.Data = &v -} - -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1UserNoticeSetPost200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody - return ret - } - return *o.HandlerRespBody -} - -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AnswerApiV1UserNoticeSetPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { - return nil, false - } - return o.HandlerRespBody, true -} - -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1UserNoticeSetPost200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { - return true - } - - return false -} - -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1UserNoticeSetPost200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v -} - -func (o AnswerApiV1UserNoticeSetPost200Response) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AnswerApiV1UserNoticeSetPost200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody - } - return toSerialize, nil -} - -type NullableAnswerApiV1UserNoticeSetPost200Response struct { - value *AnswerApiV1UserNoticeSetPost200Response - isSet bool -} - -func (v NullableAnswerApiV1UserNoticeSetPost200Response) Get() *AnswerApiV1UserNoticeSetPost200Response { - return v.value -} - -func (v *NullableAnswerApiV1UserNoticeSetPost200Response) Set(val *AnswerApiV1UserNoticeSetPost200Response) { - v.value = val - v.isSet = true -} - -func (v NullableAnswerApiV1UserNoticeSetPost200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableAnswerApiV1UserNoticeSetPost200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAnswerApiV1UserNoticeSetPost200Response(val *AnswerApiV1UserNoticeSetPost200Response) *NullableAnswerApiV1UserNoticeSetPost200Response { - return &NullableAnswerApiV1UserNoticeSetPost200Response{value: val, isSet: true} -} - -func (v NullableAnswerApiV1UserNoticeSetPost200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAnswerApiV1UserNoticeSetPost200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model__answer_api_v1_user_notification_config_post_200_response.go b/model__answer_api_v1_user_notification_config_post_200_response.go new file mode 100644 index 0000000..d059999 --- /dev/null +++ b/model__answer_api_v1_user_notification_config_post_200_response.go @@ -0,0 +1,235 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1UserNotificationConfigPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1UserNotificationConfigPost200Response{} + +// AnswerApiV1UserNotificationConfigPost200Response struct for AnswerApiV1UserNotificationConfigPost200Response +type AnswerApiV1UserNotificationConfigPost200Response struct { + // http code + Code *int32 `json:"code,omitempty"` + Data *SchemaGetUserNotificationConfigResp `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` +} + +// NewAnswerApiV1UserNotificationConfigPost200Response instantiates a new AnswerApiV1UserNotificationConfigPost200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1UserNotificationConfigPost200Response() *AnswerApiV1UserNotificationConfigPost200Response { + this := AnswerApiV1UserNotificationConfigPost200Response{} + return &this +} + +// NewAnswerApiV1UserNotificationConfigPost200ResponseWithDefaults instantiates a new AnswerApiV1UserNotificationConfigPost200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1UserNotificationConfigPost200ResponseWithDefaults() *AnswerApiV1UserNotificationConfigPost200Response { + this := AnswerApiV1UserNotificationConfigPost200Response{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1UserNotificationConfigPost200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserNotificationConfigPost200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1UserNotificationConfigPost200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1UserNotificationConfigPost200Response) SetCode(v int32) { + o.Code = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1UserNotificationConfigPost200Response) GetData() SchemaGetUserNotificationConfigResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetUserNotificationConfigResp + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserNotificationConfigPost200Response) GetDataOk() (*SchemaGetUserNotificationConfigResp, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *AnswerApiV1UserNotificationConfigPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetUserNotificationConfigResp and assigns it to the Data field. +func (o *AnswerApiV1UserNotificationConfigPost200Response) SetData(v SchemaGetUserNotificationConfigResp) { + o.Data = &v +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1UserNotificationConfigPost200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserNotificationConfigPost200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1UserNotificationConfigPost200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1UserNotificationConfigPost200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1UserNotificationConfigPost200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserNotificationConfigPost200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1UserNotificationConfigPost200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1UserNotificationConfigPost200Response) SetReason(v string) { + o.Reason = &v +} + +func (o AnswerApiV1UserNotificationConfigPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1UserNotificationConfigPost200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + return toSerialize, nil +} + +type NullableAnswerApiV1UserNotificationConfigPost200Response struct { + value *AnswerApiV1UserNotificationConfigPost200Response + isSet bool +} + +func (v NullableAnswerApiV1UserNotificationConfigPost200Response) Get() *AnswerApiV1UserNotificationConfigPost200Response { + return v.value +} + +func (v *NullableAnswerApiV1UserNotificationConfigPost200Response) Set(val *AnswerApiV1UserNotificationConfigPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1UserNotificationConfigPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1UserNotificationConfigPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1UserNotificationConfigPost200Response(val *AnswerApiV1UserNotificationConfigPost200Response) *NullableAnswerApiV1UserNotificationConfigPost200Response { + return &NullableAnswerApiV1UserNotificationConfigPost200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1UserNotificationConfigPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1UserNotificationConfigPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_user_ranking_get_200_response.go b/model__answer_api_v1_user_ranking_get_200_response.go index f1042c5..70c3847 100644 --- a/model__answer_api_v1_user_ranking_get_200_response.go +++ b/model__answer_api_v1_user_ranking_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1UserRankingGet200Response{} // AnswerApiV1UserRankingGet200Response struct for AnswerApiV1UserRankingGet200Response type AnswerApiV1UserRankingGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaUserRankingResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1UserRankingGet200Response instantiates a new AnswerApiV1UserRankingGet200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1UserRankingGet200ResponseWithDefaults() *AnswerApiV1UserRanki return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1UserRankingGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserRankingGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1UserRankingGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1UserRankingGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1UserRankingGet200Response) GetData() SchemaUserRankingResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1UserRankingGet200Response) SetData(v SchemaUserRankingResp) o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1UserRankingGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1UserRankingGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1UserRankingGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1UserRankingGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1UserRankingGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1UserRankingGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1UserRankingGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1UserRankingGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1UserRankingGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserRankingGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1UserRankingGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1UserRankingGet200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1UserRankingGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1UserRankingGet200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1UserRankingGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__answer_api_v1_vote_down_post_200_response.go b/model__answer_api_v1_vote_down_post_200_response.go index 1a3161f..b8a5f66 100644 --- a/model__answer_api_v1_vote_down_post_200_response.go +++ b/model__answer_api_v1_vote_down_post_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1VoteDownPost200Response{} // AnswerApiV1VoteDownPost200Response struct for AnswerApiV1VoteDownPost200Response type AnswerApiV1VoteDownPost200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *SchemaVoteResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewAnswerApiV1VoteDownPost200Response instantiates a new AnswerApiV1VoteDownPost200Response object @@ -38,6 +43,38 @@ func NewAnswerApiV1VoteDownPost200ResponseWithDefaults() *AnswerApiV1VoteDownPos return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *AnswerApiV1VoteDownPost200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1VoteDownPost200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *AnswerApiV1VoteDownPost200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *AnswerApiV1VoteDownPost200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *AnswerApiV1VoteDownPost200Response) GetData() SchemaVoteResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *AnswerApiV1VoteDownPost200Response) SetData(v SchemaVoteResp) { o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *AnswerApiV1VoteDownPost200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *AnswerApiV1VoteDownPost200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AnswerApiV1VoteDownPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *AnswerApiV1VoteDownPost200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *AnswerApiV1VoteDownPost200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *AnswerApiV1VoteDownPost200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *AnswerApiV1VoteDownPost200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *AnswerApiV1VoteDownPost200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *AnswerApiV1VoteDownPost200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1VoteDownPost200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *AnswerApiV1VoteDownPost200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *AnswerApiV1VoteDownPost200Response) SetReason(v string) { + o.Reason = &v } func (o AnswerApiV1VoteDownPost200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o AnswerApiV1VoteDownPost200Response) MarshalJSON() ([]byte, error) { func (o AnswerApiV1VoteDownPost200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__installation_config_file_check_post_200_response.go b/model__installation_config_file_check_post_200_response.go index 2045dc7..c0abf03 100644 --- a/model__installation_config_file_check_post_200_response.go +++ b/model__installation_config_file_check_post_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &InstallationConfigFileCheckPost200Response{} // InstallationConfigFileCheckPost200Response struct for InstallationConfigFileCheckPost200Response type InstallationConfigFileCheckPost200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data *InstallCheckConfigFileResp `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewInstallationConfigFileCheckPost200Response instantiates a new InstallationConfigFileCheckPost200Response object @@ -38,6 +43,38 @@ func NewInstallationConfigFileCheckPost200ResponseWithDefaults() *InstallationCo return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *InstallationConfigFileCheckPost200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationConfigFileCheckPost200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *InstallationConfigFileCheckPost200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *InstallationConfigFileCheckPost200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *InstallationConfigFileCheckPost200Response) GetData() InstallCheckConfigFileResp { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *InstallationConfigFileCheckPost200Response) SetData(v InstallCheckConfi o.Data = &v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *InstallationConfigFileCheckPost200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *InstallationConfigFileCheckPost200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *InstallationConfigFileCheckPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *InstallationConfigFileCheckPost200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *InstallationConfigFileCheckPost200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *InstallationConfigFileCheckPost200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *InstallationConfigFileCheckPost200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *InstallationConfigFileCheckPost200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *InstallationConfigFileCheckPost200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationConfigFileCheckPost200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *InstallationConfigFileCheckPost200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *InstallationConfigFileCheckPost200Response) SetReason(v string) { + o.Reason = &v } func (o InstallationConfigFileCheckPost200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o InstallationConfigFileCheckPost200Response) MarshalJSON() ([]byte, error func (o InstallationConfigFileCheckPost200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model__installation_language_options_get_200_response.go b/model__installation_language_options_get_200_response.go index d1595a4..8ae0d00 100644 --- a/model__installation_language_options_get_200_response.go +++ b/model__installation_language_options_get_200_response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,8 +17,13 @@ var _ MappedNullable = &InstallationLanguageOptionsGet200Response{} // InstallationLanguageOptionsGet200Response struct for InstallationLanguageOptionsGet200Response type InstallationLanguageOptionsGet200Response struct { + // http code + Code *int32 `json:"code,omitempty"` Data []TranslatorLangOption `json:"data,omitempty"` - HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` } // NewInstallationLanguageOptionsGet200Response instantiates a new InstallationLanguageOptionsGet200Response object @@ -38,6 +43,38 @@ func NewInstallationLanguageOptionsGet200ResponseWithDefaults() *InstallationLan return &this } +// GetCode returns the Code field value if set, zero value otherwise. +func (o *InstallationLanguageOptionsGet200Response) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationLanguageOptionsGet200Response) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *InstallationLanguageOptionsGet200Response) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *InstallationLanguageOptionsGet200Response) SetCode(v int32) { + o.Code = &v +} + // GetData returns the Data field value if set, zero value otherwise. func (o *InstallationLanguageOptionsGet200Response) GetData() []TranslatorLangOption { if o == nil || IsNil(o.Data) { @@ -70,36 +107,68 @@ func (o *InstallationLanguageOptionsGet200Response) SetData(v []TranslatorLangOp o.Data = v } -// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. -func (o *InstallationLanguageOptionsGet200Response) GetHandlerRespBody() HandlerRespBody { - if o == nil || IsNil(o.HandlerRespBody) { - var ret HandlerRespBody +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *InstallationLanguageOptionsGet200Response) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string return ret } - return *o.HandlerRespBody + return *o.Msg } -// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *InstallationLanguageOptionsGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { - if o == nil || IsNil(o.HandlerRespBody) { +func (o *InstallationLanguageOptionsGet200Response) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { return nil, false } - return o.HandlerRespBody, true + return o.Msg, true } -// HasHandlerRespBody returns a boolean if a field has been set. -func (o *InstallationLanguageOptionsGet200Response) HasHandlerRespBody() bool { - if o != nil && !IsNil(o.HandlerRespBody) { +// HasMsg returns a boolean if a field has been set. +func (o *InstallationLanguageOptionsGet200Response) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { return true } return false } -// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. -func (o *InstallationLanguageOptionsGet200Response) SetHandlerRespBody(v HandlerRespBody) { - o.HandlerRespBody = &v +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *InstallationLanguageOptionsGet200Response) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *InstallationLanguageOptionsGet200Response) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallationLanguageOptionsGet200Response) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *InstallationLanguageOptionsGet200Response) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *InstallationLanguageOptionsGet200Response) SetReason(v string) { + o.Reason = &v } func (o InstallationLanguageOptionsGet200Response) MarshalJSON() ([]byte, error) { @@ -112,11 +181,17 @@ func (o InstallationLanguageOptionsGet200Response) MarshalJSON() ([]byte, error) func (o InstallationLanguageOptionsGet200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } if !IsNil(o.Data) { toSerialize["data"] = o.Data } - if !IsNil(o.HandlerRespBody) { - toSerialize["handler.RespBody"] = o.HandlerRespBody + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason } return toSerialize, nil } diff --git a/model_constant_notification_channel_key.go b/model_constant_notification_channel_key.go new file mode 100644 index 0000000..fa987a6 --- /dev/null +++ b/model_constant_notification_channel_key.go @@ -0,0 +1,107 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" + "fmt" +) + +// ConstantNotificationChannelKey the model 'ConstantNotificationChannelKey' +type ConstantNotificationChannelKey string + +// List of constant.NotificationChannelKey +const ( + EmailChannel ConstantNotificationChannelKey = "email" +) + +// All allowed values of ConstantNotificationChannelKey enum +var AllowedConstantNotificationChannelKeyEnumValues = []ConstantNotificationChannelKey{ + "email", +} + +func (v *ConstantNotificationChannelKey) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ConstantNotificationChannelKey(value) + for _, existing := range AllowedConstantNotificationChannelKeyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ConstantNotificationChannelKey", value) +} + +// NewConstantNotificationChannelKeyFromValue returns a pointer to a valid ConstantNotificationChannelKey +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewConstantNotificationChannelKeyFromValue(v string) (*ConstantNotificationChannelKey, error) { + ev := ConstantNotificationChannelKey(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ConstantNotificationChannelKey: valid values are %v", v, AllowedConstantNotificationChannelKeyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ConstantNotificationChannelKey) IsValid() bool { + for _, existing := range AllowedConstantNotificationChannelKeyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to constant.NotificationChannelKey value +func (v ConstantNotificationChannelKey) Ptr() *ConstantNotificationChannelKey { + return &v +} + +type NullableConstantNotificationChannelKey struct { + value *ConstantNotificationChannelKey + isSet bool +} + +func (v NullableConstantNotificationChannelKey) Get() *ConstantNotificationChannelKey { + return v.value +} + +func (v *NullableConstantNotificationChannelKey) Set(val *ConstantNotificationChannelKey) { + v.value = val + v.isSet = true +} + +func (v NullableConstantNotificationChannelKey) IsSet() bool { + return v.isSet +} + +func (v *NullableConstantNotificationChannelKey) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConstantNotificationChannelKey(val *ConstantNotificationChannelKey) *NullableConstantNotificationChannelKey { + return &NullableConstantNotificationChannelKey{value: val, isSet: true} +} + +func (v NullableConstantNotificationChannelKey) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConstantNotificationChannelKey) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_constant_privilege.go b/model_constant_privilege.go index 8429de1..95a5bf7 100644 --- a/model_constant_privilege.go +++ b/model_constant_privilege.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_handler_resp_body.go b/model_handler_resp_body.go index 9e36a1e..962066d 100644 --- a/model_handler_resp_body.go +++ b/model_handler_resp_body.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_install_check_config_file_resp.go b/model_install_check_config_file_resp.go index 22d9ab7..56fb307 100644 --- a/model_install_check_config_file_resp.go +++ b/model_install_check_config_file_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_install_check_database_req.go b/model_install_check_database_req.go index 2ac1d11..e4043aa 100644 --- a/model_install_check_database_req.go +++ b/model_install_check_database_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_install_init_base_info_req.go b/model_install_init_base_info_req.go index f2b7177..a11772b 100644 --- a/model_install_init_base_info_req.go +++ b/model_install_init_base_info_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -20,6 +20,7 @@ type InstallInitBaseInfoReq struct { ContactEmail string `json:"contact_email"` Email string `json:"email"` Lang string `json:"lang"` + LoginRequired *bool `json:"login_required,omitempty"` Name string `json:"name"` Password string `json:"password"` SiteName string `json:"site_name"` @@ -122,6 +123,38 @@ func (o *InstallInitBaseInfoReq) SetLang(v string) { o.Lang = v } +// GetLoginRequired returns the LoginRequired field value if set, zero value otherwise. +func (o *InstallInitBaseInfoReq) GetLoginRequired() bool { + if o == nil || IsNil(o.LoginRequired) { + var ret bool + return ret + } + return *o.LoginRequired +} + +// GetLoginRequiredOk returns a tuple with the LoginRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallInitBaseInfoReq) GetLoginRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.LoginRequired) { + return nil, false + } + return o.LoginRequired, true +} + +// HasLoginRequired returns a boolean if a field has been set. +func (o *InstallInitBaseInfoReq) HasLoginRequired() bool { + if o != nil && !IsNil(o.LoginRequired) { + return true + } + + return false +} + +// SetLoginRequired gets a reference to the given bool and assigns it to the LoginRequired field. +func (o *InstallInitBaseInfoReq) SetLoginRequired(v bool) { + o.LoginRequired = &v +} + // GetName returns the Name field value func (o *InstallInitBaseInfoReq) GetName() string { if o == nil { @@ -231,6 +264,9 @@ func (o InstallInitBaseInfoReq) ToMap() (map[string]interface{}, error) { toSerialize["contact_email"] = o.ContactEmail toSerialize["email"] = o.Email toSerialize["lang"] = o.Lang + if !IsNil(o.LoginRequired) { + toSerialize["login_required"] = o.LoginRequired + } toSerialize["name"] = o.Name toSerialize["password"] = o.Password toSerialize["site_name"] = o.SiteName diff --git a/model_pager_page_model.go b/model_pager_page_model.go index ef15f2f..699e16a 100644 --- a/model_pager_page_model.go +++ b/model_pager_page_model.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_accept_answer_req.go b/model_schema_accept_answer_req.go new file mode 100644 index 0000000..e9b5fc7 --- /dev/null +++ b/model_schema_accept_answer_req.go @@ -0,0 +1,151 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the SchemaAcceptAnswerReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAcceptAnswerReq{} + +// SchemaAcceptAnswerReq struct for SchemaAcceptAnswerReq +type SchemaAcceptAnswerReq struct { + AnswerId *string `json:"answer_id,omitempty"` + QuestionId string `json:"question_id"` +} + +// NewSchemaAcceptAnswerReq instantiates a new SchemaAcceptAnswerReq object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaAcceptAnswerReq(questionId string) *SchemaAcceptAnswerReq { + this := SchemaAcceptAnswerReq{} + this.QuestionId = questionId + return &this +} + +// NewSchemaAcceptAnswerReqWithDefaults instantiates a new SchemaAcceptAnswerReq object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaAcceptAnswerReqWithDefaults() *SchemaAcceptAnswerReq { + this := SchemaAcceptAnswerReq{} + return &this +} + +// GetAnswerId returns the AnswerId field value if set, zero value otherwise. +func (o *SchemaAcceptAnswerReq) GetAnswerId() string { + if o == nil || IsNil(o.AnswerId) { + var ret string + return ret + } + return *o.AnswerId +} + +// GetAnswerIdOk returns a tuple with the AnswerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaAcceptAnswerReq) GetAnswerIdOk() (*string, bool) { + if o == nil || IsNil(o.AnswerId) { + return nil, false + } + return o.AnswerId, true +} + +// HasAnswerId returns a boolean if a field has been set. +func (o *SchemaAcceptAnswerReq) HasAnswerId() bool { + if o != nil && !IsNil(o.AnswerId) { + return true + } + + return false +} + +// SetAnswerId gets a reference to the given string and assigns it to the AnswerId field. +func (o *SchemaAcceptAnswerReq) SetAnswerId(v string) { + o.AnswerId = &v +} + +// GetQuestionId returns the QuestionId field value +func (o *SchemaAcceptAnswerReq) GetQuestionId() string { + if o == nil { + var ret string + return ret + } + + return o.QuestionId +} + +// GetQuestionIdOk returns a tuple with the QuestionId field value +// and a boolean to check if the value has been set. +func (o *SchemaAcceptAnswerReq) GetQuestionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.QuestionId, true +} + +// SetQuestionId sets field value +func (o *SchemaAcceptAnswerReq) SetQuestionId(v string) { + o.QuestionId = v +} + +func (o SchemaAcceptAnswerReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAcceptAnswerReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AnswerId) { + toSerialize["answer_id"] = o.AnswerId + } + toSerialize["question_id"] = o.QuestionId + return toSerialize, nil +} + +type NullableSchemaAcceptAnswerReq struct { + value *SchemaAcceptAnswerReq + isSet bool +} + +func (v NullableSchemaAcceptAnswerReq) Get() *SchemaAcceptAnswerReq { + return v.value +} + +func (v *NullableSchemaAcceptAnswerReq) Set(val *SchemaAcceptAnswerReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAcceptAnswerReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAcceptAnswerReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAcceptAnswerReq(val *SchemaAcceptAnswerReq) *NullableSchemaAcceptAnswerReq { + return &NullableSchemaAcceptAnswerReq{value: val, isSet: true} +} + +func (v NullableSchemaAcceptAnswerReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAcceptAnswerReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_act_object_info.go b/model_schema_act_object_info.go index afcee3c..66722bd 100644 --- a/model_schema_act_object_info.go +++ b/model_schema_act_object_info.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_act_object_timeline.go b/model_schema_act_object_timeline.go index 47887e0..68b681a 100644 --- a/model_schema_act_object_timeline.go +++ b/model_schema_act_object_timeline.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_action_record_resp.go b/model_schema_action_record_resp.go index bb6a998..737b6ec 100644 --- a/model_schema_action_record_resp.go +++ b/model_schema_action_record_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_add_comment_req.go b/model_schema_add_comment_req.go index 77200a8..afdc020 100644 --- a/model_schema_add_comment_req.go +++ b/model_schema_add_comment_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_add_report_req.go b/model_schema_add_report_req.go index a6b6182..fb2481b 100644 --- a/model_schema_add_report_req.go +++ b/model_schema_add_report_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_add_tag_req.go b/model_schema_add_tag_req.go index 4129a85..ed66a86 100644 --- a/model_schema_add_tag_req.go +++ b/model_schema_add_tag_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_add_user_req.go b/model_schema_add_user_req.go index 7046511..e853d09 100644 --- a/model_schema_add_user_req.go +++ b/model_schema_add_user_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_add_users_req.go b/model_schema_add_users_req.go new file mode 100644 index 0000000..4052d21 --- /dev/null +++ b/model_schema_add_users_req.go @@ -0,0 +1,125 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the SchemaAddUsersReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAddUsersReq{} + +// SchemaAddUsersReq struct for SchemaAddUsersReq +type SchemaAddUsersReq struct { + // users info line by line + Users *string `json:"users,omitempty"` +} + +// NewSchemaAddUsersReq instantiates a new SchemaAddUsersReq object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaAddUsersReq() *SchemaAddUsersReq { + this := SchemaAddUsersReq{} + return &this +} + +// NewSchemaAddUsersReqWithDefaults instantiates a new SchemaAddUsersReq object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaAddUsersReqWithDefaults() *SchemaAddUsersReq { + this := SchemaAddUsersReq{} + return &this +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *SchemaAddUsersReq) GetUsers() string { + if o == nil || IsNil(o.Users) { + var ret string + return ret + } + return *o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaAddUsersReq) GetUsersOk() (*string, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *SchemaAddUsersReq) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given string and assigns it to the Users field. +func (o *SchemaAddUsersReq) SetUsers(v string) { + o.Users = &v +} + +func (o SchemaAddUsersReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAddUsersReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + return toSerialize, nil +} + +type NullableSchemaAddUsersReq struct { + value *SchemaAddUsersReq + isSet bool +} + +func (v NullableSchemaAddUsersReq) Get() *SchemaAddUsersReq { + return v.value +} + +func (v *NullableSchemaAddUsersReq) Set(val *SchemaAddUsersReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAddUsersReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAddUsersReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAddUsersReq(val *SchemaAddUsersReq) *NullableSchemaAddUsersReq { + return &NullableSchemaAddUsersReq{value: val, isSet: true} +} + +func (v NullableSchemaAddUsersReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAddUsersReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_admin_set_answer_status_request.go b/model_schema_admin_set_answer_status_request.go index 50e59ca..eed2721 100644 --- a/model_schema_admin_set_answer_status_request.go +++ b/model_schema_admin_set_answer_status_request.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_admin_set_question_status_request.go b/model_schema_admin_set_question_status_request.go index 7dc7351..29dab7d 100644 --- a/model_schema_admin_set_question_status_request.go +++ b/model_schema_admin_set_question_status_request.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_answer_accepted_req.go b/model_schema_answer_accepted_req.go deleted file mode 100644 index 1c8e2d0..0000000 --- a/model_schema_answer_accepted_req.go +++ /dev/null @@ -1,160 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaAnswerAcceptedReq type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaAnswerAcceptedReq{} - -// SchemaAnswerAcceptedReq struct for SchemaAnswerAcceptedReq -type SchemaAnswerAcceptedReq struct { - AnswerId *string `json:"answer_id,omitempty"` - QuestionId *string `json:"question_id,omitempty"` -} - -// NewSchemaAnswerAcceptedReq instantiates a new SchemaAnswerAcceptedReq object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaAnswerAcceptedReq() *SchemaAnswerAcceptedReq { - this := SchemaAnswerAcceptedReq{} - return &this -} - -// NewSchemaAnswerAcceptedReqWithDefaults instantiates a new SchemaAnswerAcceptedReq object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaAnswerAcceptedReqWithDefaults() *SchemaAnswerAcceptedReq { - this := SchemaAnswerAcceptedReq{} - return &this -} - -// GetAnswerId returns the AnswerId field value if set, zero value otherwise. -func (o *SchemaAnswerAcceptedReq) GetAnswerId() string { - if o == nil || IsNil(o.AnswerId) { - var ret string - return ret - } - return *o.AnswerId -} - -// GetAnswerIdOk returns a tuple with the AnswerId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaAnswerAcceptedReq) GetAnswerIdOk() (*string, bool) { - if o == nil || IsNil(o.AnswerId) { - return nil, false - } - return o.AnswerId, true -} - -// HasAnswerId returns a boolean if a field has been set. -func (o *SchemaAnswerAcceptedReq) HasAnswerId() bool { - if o != nil && !IsNil(o.AnswerId) { - return true - } - - return false -} - -// SetAnswerId gets a reference to the given string and assigns it to the AnswerId field. -func (o *SchemaAnswerAcceptedReq) SetAnswerId(v string) { - o.AnswerId = &v -} - -// GetQuestionId returns the QuestionId field value if set, zero value otherwise. -func (o *SchemaAnswerAcceptedReq) GetQuestionId() string { - if o == nil || IsNil(o.QuestionId) { - var ret string - return ret - } - return *o.QuestionId -} - -// GetQuestionIdOk returns a tuple with the QuestionId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaAnswerAcceptedReq) GetQuestionIdOk() (*string, bool) { - if o == nil || IsNil(o.QuestionId) { - return nil, false - } - return o.QuestionId, true -} - -// HasQuestionId returns a boolean if a field has been set. -func (o *SchemaAnswerAcceptedReq) HasQuestionId() bool { - if o != nil && !IsNil(o.QuestionId) { - return true - } - - return false -} - -// SetQuestionId gets a reference to the given string and assigns it to the QuestionId field. -func (o *SchemaAnswerAcceptedReq) SetQuestionId(v string) { - o.QuestionId = &v -} - -func (o SchemaAnswerAcceptedReq) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaAnswerAcceptedReq) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AnswerId) { - toSerialize["answer_id"] = o.AnswerId - } - if !IsNil(o.QuestionId) { - toSerialize["question_id"] = o.QuestionId - } - return toSerialize, nil -} - -type NullableSchemaAnswerAcceptedReq struct { - value *SchemaAnswerAcceptedReq - isSet bool -} - -func (v NullableSchemaAnswerAcceptedReq) Get() *SchemaAnswerAcceptedReq { - return v.value -} - -func (v *NullableSchemaAnswerAcceptedReq) Set(val *SchemaAnswerAcceptedReq) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaAnswerAcceptedReq) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaAnswerAcceptedReq) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaAnswerAcceptedReq(val *SchemaAnswerAcceptedReq) *NullableSchemaAnswerAcceptedReq { - return &NullableSchemaAnswerAcceptedReq{value: val, isSet: true} -} - -func (v NullableSchemaAnswerAcceptedReq) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaAnswerAcceptedReq) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_answer_add_req.go b/model_schema_answer_add_req.go index 2aa2365..36f55a2 100644 --- a/model_schema_answer_add_req.go +++ b/model_schema_answer_add_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -18,7 +18,6 @@ var _ MappedNullable = &SchemaAnswerAddReq{} // SchemaAnswerAddReq struct for SchemaAnswerAddReq type SchemaAnswerAddReq struct { CaptchaCode *string `json:"captcha_code,omitempty"` - // captcha_id CaptchaId *string `json:"captcha_id,omitempty"` Content string `json:"content"` QuestionId *string `json:"question_id,omitempty"` diff --git a/model_schema_answer_update_req.go b/model_schema_answer_update_req.go index bd939ce..88c020c 100644 --- a/model_schema_answer_update_req.go +++ b/model_schema_answer_update_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -18,7 +18,6 @@ var _ MappedNullable = &SchemaAnswerUpdateReq{} // SchemaAnswerUpdateReq struct for SchemaAnswerUpdateReq type SchemaAnswerUpdateReq struct { CaptchaCode *string `json:"captcha_code,omitempty"` - // captcha_id CaptchaId *string `json:"captcha_id,omitempty"` Content string `json:"content"` EditSummary *string `json:"edit_summary,omitempty"` diff --git a/model_schema_avatar_info.go b/model_schema_avatar_info.go index a9b1a3f..aa91fda 100644 --- a/model_schema_avatar_info.go +++ b/model_schema_avatar_info.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_close_question_req.go b/model_schema_close_question_req.go index 18009d2..55eef3c 100644 --- a/model_schema_close_question_req.go +++ b/model_schema_close_question_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_collection_switch_req.go b/model_schema_collection_switch_req.go index 023c474..9f0b026 100644 --- a/model_schema_collection_switch_req.go +++ b/model_schema_collection_switch_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_collection_switch_resp.go b/model_schema_collection_switch_resp.go index 0f0f14d..58cbe06 100644 --- a/model_schema_collection_switch_resp.go +++ b/model_schema_collection_switch_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_config_field.go b/model_schema_config_field.go index 8da3fef..2d85902 100644 --- a/model_schema_config_field.go +++ b/model_schema_config_field.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_config_field_option.go b/model_schema_config_field_option.go index 604f061..854231c 100644 --- a/model_schema_config_field_option.go +++ b/model_schema_config_field_option.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_config_field_ui_options.go b/model_schema_config_field_ui_options.go index 188e3e7..e57301b 100644 --- a/model_schema_config_field_ui_options.go +++ b/model_schema_config_field_ui_options.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_connector_info_resp.go b/model_schema_connector_info_resp.go index f1480e5..c7a6b41 100644 --- a/model_schema_connector_info_resp.go +++ b/model_schema_connector_info_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_connector_user_info_resp.go b/model_schema_connector_user_info_resp.go index 0c8de93..97e1f2f 100644 --- a/model_schema_connector_user_info_resp.go +++ b/model_schema_connector_user_info_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_external_login_binding_user_send_email_req.go b/model_schema_external_login_binding_user_send_email_req.go index 7e84dff..03c5e8f 100644 --- a/model_schema_external_login_binding_user_send_email_req.go +++ b/model_schema_external_login_binding_user_send_email_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_external_login_binding_user_send_email_resp.go b/model_schema_external_login_binding_user_send_email_resp.go index 9d5f09c..c9ded49 100644 --- a/model_schema_external_login_binding_user_send_email_resp.go +++ b/model_schema_external_login_binding_user_send_email_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_external_login_unbinding_req.go b/model_schema_external_login_unbinding_req.go index 9d019f3..12c6e12 100644 --- a/model_schema_external_login_unbinding_req.go +++ b/model_schema_external_login_unbinding_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_follow_req.go b/model_schema_follow_req.go index 09cd9d1..c17f1b0 100644 --- a/model_schema_follow_req.go +++ b/model_schema_follow_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_follow_resp.go b/model_schema_follow_resp.go index f5af988..9f9e86e 100644 --- a/model_schema_follow_resp.go +++ b/model_schema_follow_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_comment_personal_with_page_resp.go b/model_schema_get_comment_personal_with_page_resp.go index b35bda4..544c86d 100644 --- a/model_schema_get_comment_personal_with_page_resp.go +++ b/model_schema_get_comment_personal_with_page_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_comment_resp.go b/model_schema_get_comment_resp.go index d6578dc..5741a18 100644 --- a/model_schema_get_comment_resp.go +++ b/model_schema_get_comment_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_current_login_user_info_resp.go b/model_schema_get_current_login_user_info_resp.go index 86a770a..a0ef33f 100644 --- a/model_schema_get_current_login_user_info_resp.go +++ b/model_schema_get_current_login_user_info_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -36,6 +36,7 @@ type SchemaGetCurrentLoginUserInfoResp struct { EMail *string `json:"e_mail,omitempty"` // follow count FollowCount *int32 `json:"follow_count,omitempty"` + // user have password HavePassword *bool `json:"have_password,omitempty"` // user id Id *string `json:"id,omitempty"` diff --git a/model_schema_get_following_tags_resp.go b/model_schema_get_following_tags_resp.go index 117d703..2014be9 100644 --- a/model_schema_get_following_tags_resp.go +++ b/model_schema_get_following_tags_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_object_timeline_resp.go b/model_schema_get_object_timeline_resp.go index 6f856c3..5662c66 100644 --- a/model_schema_get_object_timeline_resp.go +++ b/model_schema_get_object_timeline_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_other_user_info_by_username_resp.go b/model_schema_get_other_user_info_by_username_resp.go index 0be2c1b..ec93cf1 100644 --- a/model_schema_get_other_user_info_by_username_resp.go +++ b/model_schema_get_other_user_info_by_username_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_other_user_info_resp.go b/model_schema_get_other_user_info_resp.go index 6aa44e3..7029c77 100644 --- a/model_schema_get_other_user_info_resp.go +++ b/model_schema_get_other_user_info_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_plugin_config_resp.go b/model_schema_get_plugin_config_resp.go index d432fed..ec71ea7 100644 --- a/model_schema_get_plugin_config_resp.go +++ b/model_schema_get_plugin_config_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_plugin_list_resp.go b/model_schema_get_plugin_list_resp.go index 3879da0..4b62aba 100644 --- a/model_schema_get_plugin_list_resp.go +++ b/model_schema_get_plugin_list_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_privileges_config_resp.go b/model_schema_get_privileges_config_resp.go index ab3d000..a0c87e7 100644 --- a/model_schema_get_privileges_config_resp.go +++ b/model_schema_get_privileges_config_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_rank_personal_page_resp.go b/model_schema_get_rank_personal_page_resp.go index 5a804ae..b569236 100644 --- a/model_schema_get_rank_personal_page_resp.go +++ b/model_schema_get_rank_personal_page_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_rank_personal_with_page_resp.go b/model_schema_get_rank_personal_with_page_resp.go deleted file mode 100644 index be65883..0000000 --- a/model_schema_get_rank_personal_with_page_resp.go +++ /dev/null @@ -1,460 +0,0 @@ -/* -answer - -answer api - -API version: v0.0.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaGetRankPersonalWithPageResp type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaGetRankPersonalWithPageResp{} - -// SchemaGetRankPersonalWithPageResp struct for SchemaGetRankPersonalWithPageResp -type SchemaGetRankPersonalWithPageResp struct { - // answer id - AnswerId *string `json:"answer_id,omitempty"` - // content - Content *string `json:"content,omitempty"` - // create time - CreatedAt *int32 `json:"created_at,omitempty"` - // object id - ObjectId *string `json:"object_id,omitempty"` - // object type - ObjectType *string `json:"object_type,omitempty"` - // question id - QuestionId *string `json:"question_id,omitempty"` - // rank type - RankType *string `json:"rank_type,omitempty"` - // reputation - Reputation *int32 `json:"reputation,omitempty"` - // title - Title *string `json:"title,omitempty"` - // url title - UrlTitle *string `json:"url_title,omitempty"` -} - -// NewSchemaGetRankPersonalWithPageResp instantiates a new SchemaGetRankPersonalWithPageResp object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaGetRankPersonalWithPageResp() *SchemaGetRankPersonalWithPageResp { - this := SchemaGetRankPersonalWithPageResp{} - return &this -} - -// NewSchemaGetRankPersonalWithPageRespWithDefaults instantiates a new SchemaGetRankPersonalWithPageResp object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaGetRankPersonalWithPageRespWithDefaults() *SchemaGetRankPersonalWithPageResp { - this := SchemaGetRankPersonalWithPageResp{} - return &this -} - -// GetAnswerId returns the AnswerId field value if set, zero value otherwise. -func (o *SchemaGetRankPersonalWithPageResp) GetAnswerId() string { - if o == nil || IsNil(o.AnswerId) { - var ret string - return ret - } - return *o.AnswerId -} - -// GetAnswerIdOk returns a tuple with the AnswerId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetRankPersonalWithPageResp) GetAnswerIdOk() (*string, bool) { - if o == nil || IsNil(o.AnswerId) { - return nil, false - } - return o.AnswerId, true -} - -// HasAnswerId returns a boolean if a field has been set. -func (o *SchemaGetRankPersonalWithPageResp) HasAnswerId() bool { - if o != nil && !IsNil(o.AnswerId) { - return true - } - - return false -} - -// SetAnswerId gets a reference to the given string and assigns it to the AnswerId field. -func (o *SchemaGetRankPersonalWithPageResp) SetAnswerId(v string) { - o.AnswerId = &v -} - -// GetContent returns the Content field value if set, zero value otherwise. -func (o *SchemaGetRankPersonalWithPageResp) GetContent() string { - if o == nil || IsNil(o.Content) { - var ret string - return ret - } - return *o.Content -} - -// GetContentOk returns a tuple with the Content field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetRankPersonalWithPageResp) GetContentOk() (*string, bool) { - if o == nil || IsNil(o.Content) { - return nil, false - } - return o.Content, true -} - -// HasContent returns a boolean if a field has been set. -func (o *SchemaGetRankPersonalWithPageResp) HasContent() bool { - if o != nil && !IsNil(o.Content) { - return true - } - - return false -} - -// SetContent gets a reference to the given string and assigns it to the Content field. -func (o *SchemaGetRankPersonalWithPageResp) SetContent(v string) { - o.Content = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *SchemaGetRankPersonalWithPageResp) GetCreatedAt() int32 { - if o == nil || IsNil(o.CreatedAt) { - var ret int32 - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetRankPersonalWithPageResp) GetCreatedAtOk() (*int32, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *SchemaGetRankPersonalWithPageResp) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. -func (o *SchemaGetRankPersonalWithPageResp) SetCreatedAt(v int32) { - o.CreatedAt = &v -} - -// GetObjectId returns the ObjectId field value if set, zero value otherwise. -func (o *SchemaGetRankPersonalWithPageResp) GetObjectId() string { - if o == nil || IsNil(o.ObjectId) { - var ret string - return ret - } - return *o.ObjectId -} - -// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetRankPersonalWithPageResp) GetObjectIdOk() (*string, bool) { - if o == nil || IsNil(o.ObjectId) { - return nil, false - } - return o.ObjectId, true -} - -// HasObjectId returns a boolean if a field has been set. -func (o *SchemaGetRankPersonalWithPageResp) HasObjectId() bool { - if o != nil && !IsNil(o.ObjectId) { - return true - } - - return false -} - -// SetObjectId gets a reference to the given string and assigns it to the ObjectId field. -func (o *SchemaGetRankPersonalWithPageResp) SetObjectId(v string) { - o.ObjectId = &v -} - -// GetObjectType returns the ObjectType field value if set, zero value otherwise. -func (o *SchemaGetRankPersonalWithPageResp) GetObjectType() string { - if o == nil || IsNil(o.ObjectType) { - var ret string - return ret - } - return *o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetRankPersonalWithPageResp) GetObjectTypeOk() (*string, bool) { - if o == nil || IsNil(o.ObjectType) { - return nil, false - } - return o.ObjectType, true -} - -// HasObjectType returns a boolean if a field has been set. -func (o *SchemaGetRankPersonalWithPageResp) HasObjectType() bool { - if o != nil && !IsNil(o.ObjectType) { - return true - } - - return false -} - -// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. -func (o *SchemaGetRankPersonalWithPageResp) SetObjectType(v string) { - o.ObjectType = &v -} - -// GetQuestionId returns the QuestionId field value if set, zero value otherwise. -func (o *SchemaGetRankPersonalWithPageResp) GetQuestionId() string { - if o == nil || IsNil(o.QuestionId) { - var ret string - return ret - } - return *o.QuestionId -} - -// GetQuestionIdOk returns a tuple with the QuestionId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetRankPersonalWithPageResp) GetQuestionIdOk() (*string, bool) { - if o == nil || IsNil(o.QuestionId) { - return nil, false - } - return o.QuestionId, true -} - -// HasQuestionId returns a boolean if a field has been set. -func (o *SchemaGetRankPersonalWithPageResp) HasQuestionId() bool { - if o != nil && !IsNil(o.QuestionId) { - return true - } - - return false -} - -// SetQuestionId gets a reference to the given string and assigns it to the QuestionId field. -func (o *SchemaGetRankPersonalWithPageResp) SetQuestionId(v string) { - o.QuestionId = &v -} - -// GetRankType returns the RankType field value if set, zero value otherwise. -func (o *SchemaGetRankPersonalWithPageResp) GetRankType() string { - if o == nil || IsNil(o.RankType) { - var ret string - return ret - } - return *o.RankType -} - -// GetRankTypeOk returns a tuple with the RankType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetRankPersonalWithPageResp) GetRankTypeOk() (*string, bool) { - if o == nil || IsNil(o.RankType) { - return nil, false - } - return o.RankType, true -} - -// HasRankType returns a boolean if a field has been set. -func (o *SchemaGetRankPersonalWithPageResp) HasRankType() bool { - if o != nil && !IsNil(o.RankType) { - return true - } - - return false -} - -// SetRankType gets a reference to the given string and assigns it to the RankType field. -func (o *SchemaGetRankPersonalWithPageResp) SetRankType(v string) { - o.RankType = &v -} - -// GetReputation returns the Reputation field value if set, zero value otherwise. -func (o *SchemaGetRankPersonalWithPageResp) GetReputation() int32 { - if o == nil || IsNil(o.Reputation) { - var ret int32 - return ret - } - return *o.Reputation -} - -// GetReputationOk returns a tuple with the Reputation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetRankPersonalWithPageResp) GetReputationOk() (*int32, bool) { - if o == nil || IsNil(o.Reputation) { - return nil, false - } - return o.Reputation, true -} - -// HasReputation returns a boolean if a field has been set. -func (o *SchemaGetRankPersonalWithPageResp) HasReputation() bool { - if o != nil && !IsNil(o.Reputation) { - return true - } - - return false -} - -// SetReputation gets a reference to the given int32 and assigns it to the Reputation field. -func (o *SchemaGetRankPersonalWithPageResp) SetReputation(v int32) { - o.Reputation = &v -} - -// GetTitle returns the Title field value if set, zero value otherwise. -func (o *SchemaGetRankPersonalWithPageResp) GetTitle() string { - if o == nil || IsNil(o.Title) { - var ret string - return ret - } - return *o.Title -} - -// GetTitleOk returns a tuple with the Title field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetRankPersonalWithPageResp) GetTitleOk() (*string, bool) { - if o == nil || IsNil(o.Title) { - return nil, false - } - return o.Title, true -} - -// HasTitle returns a boolean if a field has been set. -func (o *SchemaGetRankPersonalWithPageResp) HasTitle() bool { - if o != nil && !IsNil(o.Title) { - return true - } - - return false -} - -// SetTitle gets a reference to the given string and assigns it to the Title field. -func (o *SchemaGetRankPersonalWithPageResp) SetTitle(v string) { - o.Title = &v -} - -// GetUrlTitle returns the UrlTitle field value if set, zero value otherwise. -func (o *SchemaGetRankPersonalWithPageResp) GetUrlTitle() string { - if o == nil || IsNil(o.UrlTitle) { - var ret string - return ret - } - return *o.UrlTitle -} - -// GetUrlTitleOk returns a tuple with the UrlTitle field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetRankPersonalWithPageResp) GetUrlTitleOk() (*string, bool) { - if o == nil || IsNil(o.UrlTitle) { - return nil, false - } - return o.UrlTitle, true -} - -// HasUrlTitle returns a boolean if a field has been set. -func (o *SchemaGetRankPersonalWithPageResp) HasUrlTitle() bool { - if o != nil && !IsNil(o.UrlTitle) { - return true - } - - return false -} - -// SetUrlTitle gets a reference to the given string and assigns it to the UrlTitle field. -func (o *SchemaGetRankPersonalWithPageResp) SetUrlTitle(v string) { - o.UrlTitle = &v -} - -func (o SchemaGetRankPersonalWithPageResp) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaGetRankPersonalWithPageResp) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AnswerId) { - toSerialize["answer_id"] = o.AnswerId - } - if !IsNil(o.Content) { - toSerialize["content"] = o.Content - } - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.ObjectId) { - toSerialize["object_id"] = o.ObjectId - } - if !IsNil(o.ObjectType) { - toSerialize["object_type"] = o.ObjectType - } - if !IsNil(o.QuestionId) { - toSerialize["question_id"] = o.QuestionId - } - if !IsNil(o.RankType) { - toSerialize["rank_type"] = o.RankType - } - if !IsNil(o.Reputation) { - toSerialize["reputation"] = o.Reputation - } - if !IsNil(o.Title) { - toSerialize["title"] = o.Title - } - if !IsNil(o.UrlTitle) { - toSerialize["url_title"] = o.UrlTitle - } - return toSerialize, nil -} - -type NullableSchemaGetRankPersonalWithPageResp struct { - value *SchemaGetRankPersonalWithPageResp - isSet bool -} - -func (v NullableSchemaGetRankPersonalWithPageResp) Get() *SchemaGetRankPersonalWithPageResp { - return v.value -} - -func (v *NullableSchemaGetRankPersonalWithPageResp) Set(val *SchemaGetRankPersonalWithPageResp) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaGetRankPersonalWithPageResp) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaGetRankPersonalWithPageResp) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaGetRankPersonalWithPageResp(val *SchemaGetRankPersonalWithPageResp) *NullableSchemaGetRankPersonalWithPageResp { - return &NullableSchemaGetRankPersonalWithPageResp{value: val, isSet: true} -} - -func (v NullableSchemaGetRankPersonalWithPageResp) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaGetRankPersonalWithPageResp) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_get_report_type_resp.go b/model_schema_get_report_type_resp.go deleted file mode 100644 index ef47240..0000000 --- a/model_schema_get_report_type_resp.go +++ /dev/null @@ -1,312 +0,0 @@ -/* -answer - -answer api - -API version: v0.0.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaGetReportTypeResp type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaGetReportTypeResp{} - -// SchemaGetReportTypeResp struct for SchemaGetReportTypeResp -type SchemaGetReportTypeResp struct { - // content type - ContentType *string `json:"content_type,omitempty"` - // report description - Description *string `json:"description,omitempty"` - // is have content - HaveContent *bool `json:"have_content,omitempty"` - // report name - Name *string `json:"name,omitempty"` - // report source - Source *string `json:"source,omitempty"` - // report type - Type *int32 `json:"type,omitempty"` -} - -// NewSchemaGetReportTypeResp instantiates a new SchemaGetReportTypeResp object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaGetReportTypeResp() *SchemaGetReportTypeResp { - this := SchemaGetReportTypeResp{} - return &this -} - -// NewSchemaGetReportTypeRespWithDefaults instantiates a new SchemaGetReportTypeResp object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaGetReportTypeRespWithDefaults() *SchemaGetReportTypeResp { - this := SchemaGetReportTypeResp{} - return &this -} - -// GetContentType returns the ContentType field value if set, zero value otherwise. -func (o *SchemaGetReportTypeResp) GetContentType() string { - if o == nil || IsNil(o.ContentType) { - var ret string - return ret - } - return *o.ContentType -} - -// GetContentTypeOk returns a tuple with the ContentType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetReportTypeResp) GetContentTypeOk() (*string, bool) { - if o == nil || IsNil(o.ContentType) { - return nil, false - } - return o.ContentType, true -} - -// HasContentType returns a boolean if a field has been set. -func (o *SchemaGetReportTypeResp) HasContentType() bool { - if o != nil && !IsNil(o.ContentType) { - return true - } - - return false -} - -// SetContentType gets a reference to the given string and assigns it to the ContentType field. -func (o *SchemaGetReportTypeResp) SetContentType(v string) { - o.ContentType = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *SchemaGetReportTypeResp) GetDescription() string { - if o == nil || IsNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetReportTypeResp) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *SchemaGetReportTypeResp) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *SchemaGetReportTypeResp) SetDescription(v string) { - o.Description = &v -} - -// GetHaveContent returns the HaveContent field value if set, zero value otherwise. -func (o *SchemaGetReportTypeResp) GetHaveContent() bool { - if o == nil || IsNil(o.HaveContent) { - var ret bool - return ret - } - return *o.HaveContent -} - -// GetHaveContentOk returns a tuple with the HaveContent field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetReportTypeResp) GetHaveContentOk() (*bool, bool) { - if o == nil || IsNil(o.HaveContent) { - return nil, false - } - return o.HaveContent, true -} - -// HasHaveContent returns a boolean if a field has been set. -func (o *SchemaGetReportTypeResp) HasHaveContent() bool { - if o != nil && !IsNil(o.HaveContent) { - return true - } - - return false -} - -// SetHaveContent gets a reference to the given bool and assigns it to the HaveContent field. -func (o *SchemaGetReportTypeResp) SetHaveContent(v bool) { - o.HaveContent = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *SchemaGetReportTypeResp) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetReportTypeResp) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *SchemaGetReportTypeResp) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *SchemaGetReportTypeResp) SetName(v string) { - o.Name = &v -} - -// GetSource returns the Source field value if set, zero value otherwise. -func (o *SchemaGetReportTypeResp) GetSource() string { - if o == nil || IsNil(o.Source) { - var ret string - return ret - } - return *o.Source -} - -// GetSourceOk returns a tuple with the Source field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetReportTypeResp) GetSourceOk() (*string, bool) { - if o == nil || IsNil(o.Source) { - return nil, false - } - return o.Source, true -} - -// HasSource returns a boolean if a field has been set. -func (o *SchemaGetReportTypeResp) HasSource() bool { - if o != nil && !IsNil(o.Source) { - return true - } - - return false -} - -// SetSource gets a reference to the given string and assigns it to the Source field. -func (o *SchemaGetReportTypeResp) SetSource(v string) { - o.Source = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *SchemaGetReportTypeResp) GetType() int32 { - if o == nil || IsNil(o.Type) { - var ret int32 - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetReportTypeResp) GetTypeOk() (*int32, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *SchemaGetReportTypeResp) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given int32 and assigns it to the Type field. -func (o *SchemaGetReportTypeResp) SetType(v int32) { - o.Type = &v -} - -func (o SchemaGetReportTypeResp) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaGetReportTypeResp) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ContentType) { - toSerialize["content_type"] = o.ContentType - } - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } - if !IsNil(o.HaveContent) { - toSerialize["have_content"] = o.HaveContent - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Source) { - toSerialize["source"] = o.Source - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - return toSerialize, nil -} - -type NullableSchemaGetReportTypeResp struct { - value *SchemaGetReportTypeResp - isSet bool -} - -func (v NullableSchemaGetReportTypeResp) Get() *SchemaGetReportTypeResp { - return v.value -} - -func (v *NullableSchemaGetReportTypeResp) Set(val *SchemaGetReportTypeResp) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaGetReportTypeResp) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaGetReportTypeResp) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaGetReportTypeResp(val *SchemaGetReportTypeResp) *NullableSchemaGetReportTypeResp { - return &NullableSchemaGetReportTypeResp{value: val, isSet: true} -} - -func (v NullableSchemaGetReportTypeResp) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaGetReportTypeResp) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_get_revision_resp.go b/model_schema_get_revision_resp.go index 7a636c0..14baaee 100644 --- a/model_schema_get_revision_resp.go +++ b/model_schema_get_revision_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_role_resp.go b/model_schema_get_role_resp.go index 70f73e0..bdcd3f8 100644 --- a/model_schema_get_role_resp.go +++ b/model_schema_get_role_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_site_legal_info_resp.go b/model_schema_get_site_legal_info_resp.go index 7cee7c2..745e173 100644 --- a/model_schema_get_site_legal_info_resp.go +++ b/model_schema_get_site_legal_info_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_smtp_config_resp.go b/model_schema_get_smtp_config_resp.go index 94e8d79..a6af14e 100644 --- a/model_schema_get_smtp_config_resp.go +++ b/model_schema_get_smtp_config_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_tag_page_resp.go b/model_schema_get_tag_page_resp.go index f33dd72..013510e 100644 --- a/model_schema_get_tag_page_resp.go +++ b/model_schema_get_tag_page_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_tag_resp.go b/model_schema_get_tag_resp.go index ed1fa09..6e83665 100644 --- a/model_schema_get_tag_resp.go +++ b/model_schema_get_tag_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_tag_synonyms_resp.go b/model_schema_get_tag_synonyms_resp.go index 3dc81a5..93ba8b1 100644 --- a/model_schema_get_tag_synonyms_resp.go +++ b/model_schema_get_tag_synonyms_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_unreviewed_revision_resp.go b/model_schema_get_unreviewed_revision_resp.go index 586c5a1..2511925 100644 --- a/model_schema_get_unreviewed_revision_resp.go +++ b/model_schema_get_unreviewed_revision_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_user_activation_resp.go b/model_schema_get_user_activation_resp.go index b97a3da..2b47fb7 100644 --- a/model_schema_get_user_activation_resp.go +++ b/model_schema_get_user_activation_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_user_notification_config_resp.go b/model_schema_get_user_notification_config_resp.go new file mode 100644 index 0000000..9c48c2c --- /dev/null +++ b/model_schema_get_user_notification_config_resp.go @@ -0,0 +1,196 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the SchemaGetUserNotificationConfigResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetUserNotificationConfigResp{} + +// SchemaGetUserNotificationConfigResp struct for SchemaGetUserNotificationConfigResp +type SchemaGetUserNotificationConfigResp struct { + AllNewQuestion []SchemaNotificationChannelConfig `json:"all_new_question,omitempty"` + AllNewQuestionForFollowingTags []SchemaNotificationChannelConfig `json:"all_new_question_for_following_tags,omitempty"` + Inbox []SchemaNotificationChannelConfig `json:"inbox,omitempty"` +} + +// NewSchemaGetUserNotificationConfigResp instantiates a new SchemaGetUserNotificationConfigResp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaGetUserNotificationConfigResp() *SchemaGetUserNotificationConfigResp { + this := SchemaGetUserNotificationConfigResp{} + return &this +} + +// NewSchemaGetUserNotificationConfigRespWithDefaults instantiates a new SchemaGetUserNotificationConfigResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaGetUserNotificationConfigRespWithDefaults() *SchemaGetUserNotificationConfigResp { + this := SchemaGetUserNotificationConfigResp{} + return &this +} + +// GetAllNewQuestion returns the AllNewQuestion field value if set, zero value otherwise. +func (o *SchemaGetUserNotificationConfigResp) GetAllNewQuestion() []SchemaNotificationChannelConfig { + if o == nil || IsNil(o.AllNewQuestion) { + var ret []SchemaNotificationChannelConfig + return ret + } + return o.AllNewQuestion +} + +// GetAllNewQuestionOk returns a tuple with the AllNewQuestion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserNotificationConfigResp) GetAllNewQuestionOk() ([]SchemaNotificationChannelConfig, bool) { + if o == nil || IsNil(o.AllNewQuestion) { + return nil, false + } + return o.AllNewQuestion, true +} + +// HasAllNewQuestion returns a boolean if a field has been set. +func (o *SchemaGetUserNotificationConfigResp) HasAllNewQuestion() bool { + if o != nil && !IsNil(o.AllNewQuestion) { + return true + } + + return false +} + +// SetAllNewQuestion gets a reference to the given []SchemaNotificationChannelConfig and assigns it to the AllNewQuestion field. +func (o *SchemaGetUserNotificationConfigResp) SetAllNewQuestion(v []SchemaNotificationChannelConfig) { + o.AllNewQuestion = v +} + +// GetAllNewQuestionForFollowingTags returns the AllNewQuestionForFollowingTags field value if set, zero value otherwise. +func (o *SchemaGetUserNotificationConfigResp) GetAllNewQuestionForFollowingTags() []SchemaNotificationChannelConfig { + if o == nil || IsNil(o.AllNewQuestionForFollowingTags) { + var ret []SchemaNotificationChannelConfig + return ret + } + return o.AllNewQuestionForFollowingTags +} + +// GetAllNewQuestionForFollowingTagsOk returns a tuple with the AllNewQuestionForFollowingTags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserNotificationConfigResp) GetAllNewQuestionForFollowingTagsOk() ([]SchemaNotificationChannelConfig, bool) { + if o == nil || IsNil(o.AllNewQuestionForFollowingTags) { + return nil, false + } + return o.AllNewQuestionForFollowingTags, true +} + +// HasAllNewQuestionForFollowingTags returns a boolean if a field has been set. +func (o *SchemaGetUserNotificationConfigResp) HasAllNewQuestionForFollowingTags() bool { + if o != nil && !IsNil(o.AllNewQuestionForFollowingTags) { + return true + } + + return false +} + +// SetAllNewQuestionForFollowingTags gets a reference to the given []SchemaNotificationChannelConfig and assigns it to the AllNewQuestionForFollowingTags field. +func (o *SchemaGetUserNotificationConfigResp) SetAllNewQuestionForFollowingTags(v []SchemaNotificationChannelConfig) { + o.AllNewQuestionForFollowingTags = v +} + +// GetInbox returns the Inbox field value if set, zero value otherwise. +func (o *SchemaGetUserNotificationConfigResp) GetInbox() []SchemaNotificationChannelConfig { + if o == nil || IsNil(o.Inbox) { + var ret []SchemaNotificationChannelConfig + return ret + } + return o.Inbox +} + +// GetInboxOk returns a tuple with the Inbox field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserNotificationConfigResp) GetInboxOk() ([]SchemaNotificationChannelConfig, bool) { + if o == nil || IsNil(o.Inbox) { + return nil, false + } + return o.Inbox, true +} + +// HasInbox returns a boolean if a field has been set. +func (o *SchemaGetUserNotificationConfigResp) HasInbox() bool { + if o != nil && !IsNil(o.Inbox) { + return true + } + + return false +} + +// SetInbox gets a reference to the given []SchemaNotificationChannelConfig and assigns it to the Inbox field. +func (o *SchemaGetUserNotificationConfigResp) SetInbox(v []SchemaNotificationChannelConfig) { + o.Inbox = v +} + +func (o SchemaGetUserNotificationConfigResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetUserNotificationConfigResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AllNewQuestion) { + toSerialize["all_new_question"] = o.AllNewQuestion + } + if !IsNil(o.AllNewQuestionForFollowingTags) { + toSerialize["all_new_question_for_following_tags"] = o.AllNewQuestionForFollowingTags + } + if !IsNil(o.Inbox) { + toSerialize["inbox"] = o.Inbox + } + return toSerialize, nil +} + +type NullableSchemaGetUserNotificationConfigResp struct { + value *SchemaGetUserNotificationConfigResp + isSet bool +} + +func (v NullableSchemaGetUserNotificationConfigResp) Get() *SchemaGetUserNotificationConfigResp { + return v.value +} + +func (v *NullableSchemaGetUserNotificationConfigResp) Set(val *SchemaGetUserNotificationConfigResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetUserNotificationConfigResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetUserNotificationConfigResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetUserNotificationConfigResp(val *SchemaGetUserNotificationConfigResp) *NullableSchemaGetUserNotificationConfigResp { + return &NullableSchemaGetUserNotificationConfigResp{value: val, isSet: true} +} + +func (v NullableSchemaGetUserNotificationConfigResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetUserNotificationConfigResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_user_page_resp.go b/model_schema_get_user_page_resp.go index a6f1817..bf2e9a4 100644 --- a/model_schema_get_user_page_resp.go +++ b/model_schema_get_user_page_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_get_user_resp.go b/model_schema_get_user_resp.go deleted file mode 100644 index 2d96462..0000000 --- a/model_schema_get_user_resp.go +++ /dev/null @@ -1,978 +0,0 @@ -/* -answer - -answer api - -API version: v0.0.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaGetUserResp type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaGetUserResp{} - -// SchemaGetUserResp struct for SchemaGetUserResp -type SchemaGetUserResp struct { - // access token - AccessToken *string `json:"access_token,omitempty"` - // answer count - AnswerCount *int32 `json:"answer_count,omitempty"` - // authority group - AuthorityGroup *int32 `json:"authority_group,omitempty"` - // avatar - Avatar *string `json:"avatar,omitempty"` - // bio markdown - Bio *string `json:"bio,omitempty"` - // bio html - BioHtml *string `json:"bio_html,omitempty"` - // create time - CreatedAt *int32 `json:"created_at,omitempty"` - // display name - DisplayName *string `json:"display_name,omitempty"` - // email - EMail *string `json:"e_mail,omitempty"` - // follow count - FollowCount *int32 `json:"follow_count,omitempty"` - // user id - Id *string `json:"id,omitempty"` - // ip info - IpInfo *string `json:"ip_info,omitempty"` - // language - Language *string `json:"language,omitempty"` - // last login date - LastLoginDate *int32 `json:"last_login_date,omitempty"` - // location - Location *string `json:"location,omitempty"` - // mail status(1 pass 2 to be verified) - MailStatus *int32 `json:"mail_status,omitempty"` - // mobile - Mobile *string `json:"mobile,omitempty"` - // notice status(1 on 2off) - NoticeStatus *int32 `json:"notice_status,omitempty"` - // question count - QuestionCount *int32 `json:"question_count,omitempty"` - // rank - Rank *int32 `json:"rank,omitempty"` - // role id - RoleId *int32 `json:"role_id,omitempty"` - // user status - Status *string `json:"status,omitempty"` - // username - Username *string `json:"username,omitempty"` - // website - Website *string `json:"website,omitempty"` -} - -// NewSchemaGetUserResp instantiates a new SchemaGetUserResp object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaGetUserResp() *SchemaGetUserResp { - this := SchemaGetUserResp{} - return &this -} - -// NewSchemaGetUserRespWithDefaults instantiates a new SchemaGetUserResp object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaGetUserRespWithDefaults() *SchemaGetUserResp { - this := SchemaGetUserResp{} - return &this -} - -// GetAccessToken returns the AccessToken field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetAccessToken() string { - if o == nil || IsNil(o.AccessToken) { - var ret string - return ret - } - return *o.AccessToken -} - -// GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetAccessTokenOk() (*string, bool) { - if o == nil || IsNil(o.AccessToken) { - return nil, false - } - return o.AccessToken, true -} - -// HasAccessToken returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasAccessToken() bool { - if o != nil && !IsNil(o.AccessToken) { - return true - } - - return false -} - -// SetAccessToken gets a reference to the given string and assigns it to the AccessToken field. -func (o *SchemaGetUserResp) SetAccessToken(v string) { - o.AccessToken = &v -} - -// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetAnswerCount() int32 { - if o == nil || IsNil(o.AnswerCount) { - var ret int32 - return ret - } - return *o.AnswerCount -} - -// GetAnswerCountOk returns a tuple with the AnswerCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetAnswerCountOk() (*int32, bool) { - if o == nil || IsNil(o.AnswerCount) { - return nil, false - } - return o.AnswerCount, true -} - -// HasAnswerCount returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasAnswerCount() bool { - if o != nil && !IsNil(o.AnswerCount) { - return true - } - - return false -} - -// SetAnswerCount gets a reference to the given int32 and assigns it to the AnswerCount field. -func (o *SchemaGetUserResp) SetAnswerCount(v int32) { - o.AnswerCount = &v -} - -// GetAuthorityGroup returns the AuthorityGroup field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetAuthorityGroup() int32 { - if o == nil || IsNil(o.AuthorityGroup) { - var ret int32 - return ret - } - return *o.AuthorityGroup -} - -// GetAuthorityGroupOk returns a tuple with the AuthorityGroup field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetAuthorityGroupOk() (*int32, bool) { - if o == nil || IsNil(o.AuthorityGroup) { - return nil, false - } - return o.AuthorityGroup, true -} - -// HasAuthorityGroup returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasAuthorityGroup() bool { - if o != nil && !IsNil(o.AuthorityGroup) { - return true - } - - return false -} - -// SetAuthorityGroup gets a reference to the given int32 and assigns it to the AuthorityGroup field. -func (o *SchemaGetUserResp) SetAuthorityGroup(v int32) { - o.AuthorityGroup = &v -} - -// GetAvatar returns the Avatar field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetAvatar() string { - if o == nil || IsNil(o.Avatar) { - var ret string - return ret - } - return *o.Avatar -} - -// GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetAvatarOk() (*string, bool) { - if o == nil || IsNil(o.Avatar) { - return nil, false - } - return o.Avatar, true -} - -// HasAvatar returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasAvatar() bool { - if o != nil && !IsNil(o.Avatar) { - return true - } - - return false -} - -// SetAvatar gets a reference to the given string and assigns it to the Avatar field. -func (o *SchemaGetUserResp) SetAvatar(v string) { - o.Avatar = &v -} - -// GetBio returns the Bio field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetBio() string { - if o == nil || IsNil(o.Bio) { - var ret string - return ret - } - return *o.Bio -} - -// GetBioOk returns a tuple with the Bio field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetBioOk() (*string, bool) { - if o == nil || IsNil(o.Bio) { - return nil, false - } - return o.Bio, true -} - -// HasBio returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasBio() bool { - if o != nil && !IsNil(o.Bio) { - return true - } - - return false -} - -// SetBio gets a reference to the given string and assigns it to the Bio field. -func (o *SchemaGetUserResp) SetBio(v string) { - o.Bio = &v -} - -// GetBioHtml returns the BioHtml field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetBioHtml() string { - if o == nil || IsNil(o.BioHtml) { - var ret string - return ret - } - return *o.BioHtml -} - -// GetBioHtmlOk returns a tuple with the BioHtml field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetBioHtmlOk() (*string, bool) { - if o == nil || IsNil(o.BioHtml) { - return nil, false - } - return o.BioHtml, true -} - -// HasBioHtml returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasBioHtml() bool { - if o != nil && !IsNil(o.BioHtml) { - return true - } - - return false -} - -// SetBioHtml gets a reference to the given string and assigns it to the BioHtml field. -func (o *SchemaGetUserResp) SetBioHtml(v string) { - o.BioHtml = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetCreatedAt() int32 { - if o == nil || IsNil(o.CreatedAt) { - var ret int32 - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetCreatedAtOk() (*int32, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. -func (o *SchemaGetUserResp) SetCreatedAt(v int32) { - o.CreatedAt = &v -} - -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetDisplayName() string { - if o == nil || IsNil(o.DisplayName) { - var ret string - return ret - } - return *o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetDisplayNameOk() (*string, bool) { - if o == nil || IsNil(o.DisplayName) { - return nil, false - } - return o.DisplayName, true -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasDisplayName() bool { - if o != nil && !IsNil(o.DisplayName) { - return true - } - - return false -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *SchemaGetUserResp) SetDisplayName(v string) { - o.DisplayName = &v -} - -// GetEMail returns the EMail field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetEMail() string { - if o == nil || IsNil(o.EMail) { - var ret string - return ret - } - return *o.EMail -} - -// GetEMailOk returns a tuple with the EMail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetEMailOk() (*string, bool) { - if o == nil || IsNil(o.EMail) { - return nil, false - } - return o.EMail, true -} - -// HasEMail returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasEMail() bool { - if o != nil && !IsNil(o.EMail) { - return true - } - - return false -} - -// SetEMail gets a reference to the given string and assigns it to the EMail field. -func (o *SchemaGetUserResp) SetEMail(v string) { - o.EMail = &v -} - -// GetFollowCount returns the FollowCount field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetFollowCount() int32 { - if o == nil || IsNil(o.FollowCount) { - var ret int32 - return ret - } - return *o.FollowCount -} - -// GetFollowCountOk returns a tuple with the FollowCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetFollowCountOk() (*int32, bool) { - if o == nil || IsNil(o.FollowCount) { - return nil, false - } - return o.FollowCount, true -} - -// HasFollowCount returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasFollowCount() bool { - if o != nil && !IsNil(o.FollowCount) { - return true - } - - return false -} - -// SetFollowCount gets a reference to the given int32 and assigns it to the FollowCount field. -func (o *SchemaGetUserResp) SetFollowCount(v int32) { - o.FollowCount = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *SchemaGetUserResp) SetId(v string) { - o.Id = &v -} - -// GetIpInfo returns the IpInfo field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetIpInfo() string { - if o == nil || IsNil(o.IpInfo) { - var ret string - return ret - } - return *o.IpInfo -} - -// GetIpInfoOk returns a tuple with the IpInfo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetIpInfoOk() (*string, bool) { - if o == nil || IsNil(o.IpInfo) { - return nil, false - } - return o.IpInfo, true -} - -// HasIpInfo returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasIpInfo() bool { - if o != nil && !IsNil(o.IpInfo) { - return true - } - - return false -} - -// SetIpInfo gets a reference to the given string and assigns it to the IpInfo field. -func (o *SchemaGetUserResp) SetIpInfo(v string) { - o.IpInfo = &v -} - -// GetLanguage returns the Language field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetLanguage() string { - if o == nil || IsNil(o.Language) { - var ret string - return ret - } - return *o.Language -} - -// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetLanguageOk() (*string, bool) { - if o == nil || IsNil(o.Language) { - return nil, false - } - return o.Language, true -} - -// HasLanguage returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasLanguage() bool { - if o != nil && !IsNil(o.Language) { - return true - } - - return false -} - -// SetLanguage gets a reference to the given string and assigns it to the Language field. -func (o *SchemaGetUserResp) SetLanguage(v string) { - o.Language = &v -} - -// GetLastLoginDate returns the LastLoginDate field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetLastLoginDate() int32 { - if o == nil || IsNil(o.LastLoginDate) { - var ret int32 - return ret - } - return *o.LastLoginDate -} - -// GetLastLoginDateOk returns a tuple with the LastLoginDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetLastLoginDateOk() (*int32, bool) { - if o == nil || IsNil(o.LastLoginDate) { - return nil, false - } - return o.LastLoginDate, true -} - -// HasLastLoginDate returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasLastLoginDate() bool { - if o != nil && !IsNil(o.LastLoginDate) { - return true - } - - return false -} - -// SetLastLoginDate gets a reference to the given int32 and assigns it to the LastLoginDate field. -func (o *SchemaGetUserResp) SetLastLoginDate(v int32) { - o.LastLoginDate = &v -} - -// GetLocation returns the Location field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetLocation() string { - if o == nil || IsNil(o.Location) { - var ret string - return ret - } - return *o.Location -} - -// GetLocationOk returns a tuple with the Location field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetLocationOk() (*string, bool) { - if o == nil || IsNil(o.Location) { - return nil, false - } - return o.Location, true -} - -// HasLocation returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasLocation() bool { - if o != nil && !IsNil(o.Location) { - return true - } - - return false -} - -// SetLocation gets a reference to the given string and assigns it to the Location field. -func (o *SchemaGetUserResp) SetLocation(v string) { - o.Location = &v -} - -// GetMailStatus returns the MailStatus field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetMailStatus() int32 { - if o == nil || IsNil(o.MailStatus) { - var ret int32 - return ret - } - return *o.MailStatus -} - -// GetMailStatusOk returns a tuple with the MailStatus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetMailStatusOk() (*int32, bool) { - if o == nil || IsNil(o.MailStatus) { - return nil, false - } - return o.MailStatus, true -} - -// HasMailStatus returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasMailStatus() bool { - if o != nil && !IsNil(o.MailStatus) { - return true - } - - return false -} - -// SetMailStatus gets a reference to the given int32 and assigns it to the MailStatus field. -func (o *SchemaGetUserResp) SetMailStatus(v int32) { - o.MailStatus = &v -} - -// GetMobile returns the Mobile field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetMobile() string { - if o == nil || IsNil(o.Mobile) { - var ret string - return ret - } - return *o.Mobile -} - -// GetMobileOk returns a tuple with the Mobile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetMobileOk() (*string, bool) { - if o == nil || IsNil(o.Mobile) { - return nil, false - } - return o.Mobile, true -} - -// HasMobile returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasMobile() bool { - if o != nil && !IsNil(o.Mobile) { - return true - } - - return false -} - -// SetMobile gets a reference to the given string and assigns it to the Mobile field. -func (o *SchemaGetUserResp) SetMobile(v string) { - o.Mobile = &v -} - -// GetNoticeStatus returns the NoticeStatus field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetNoticeStatus() int32 { - if o == nil || IsNil(o.NoticeStatus) { - var ret int32 - return ret - } - return *o.NoticeStatus -} - -// GetNoticeStatusOk returns a tuple with the NoticeStatus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetNoticeStatusOk() (*int32, bool) { - if o == nil || IsNil(o.NoticeStatus) { - return nil, false - } - return o.NoticeStatus, true -} - -// HasNoticeStatus returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasNoticeStatus() bool { - if o != nil && !IsNil(o.NoticeStatus) { - return true - } - - return false -} - -// SetNoticeStatus gets a reference to the given int32 and assigns it to the NoticeStatus field. -func (o *SchemaGetUserResp) SetNoticeStatus(v int32) { - o.NoticeStatus = &v -} - -// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetQuestionCount() int32 { - if o == nil || IsNil(o.QuestionCount) { - var ret int32 - return ret - } - return *o.QuestionCount -} - -// GetQuestionCountOk returns a tuple with the QuestionCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetQuestionCountOk() (*int32, bool) { - if o == nil || IsNil(o.QuestionCount) { - return nil, false - } - return o.QuestionCount, true -} - -// HasQuestionCount returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasQuestionCount() bool { - if o != nil && !IsNil(o.QuestionCount) { - return true - } - - return false -} - -// SetQuestionCount gets a reference to the given int32 and assigns it to the QuestionCount field. -func (o *SchemaGetUserResp) SetQuestionCount(v int32) { - o.QuestionCount = &v -} - -// GetRank returns the Rank field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetRank() int32 { - if o == nil || IsNil(o.Rank) { - var ret int32 - return ret - } - return *o.Rank -} - -// GetRankOk returns a tuple with the Rank field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetRankOk() (*int32, bool) { - if o == nil || IsNil(o.Rank) { - return nil, false - } - return o.Rank, true -} - -// HasRank returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasRank() bool { - if o != nil && !IsNil(o.Rank) { - return true - } - - return false -} - -// SetRank gets a reference to the given int32 and assigns it to the Rank field. -func (o *SchemaGetUserResp) SetRank(v int32) { - o.Rank = &v -} - -// GetRoleId returns the RoleId field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetRoleId() int32 { - if o == nil || IsNil(o.RoleId) { - var ret int32 - return ret - } - return *o.RoleId -} - -// GetRoleIdOk returns a tuple with the RoleId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetRoleIdOk() (*int32, bool) { - if o == nil || IsNil(o.RoleId) { - return nil, false - } - return o.RoleId, true -} - -// HasRoleId returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasRoleId() bool { - if o != nil && !IsNil(o.RoleId) { - return true - } - - return false -} - -// SetRoleId gets a reference to the given int32 and assigns it to the RoleId field. -func (o *SchemaGetUserResp) SetRoleId(v int32) { - o.RoleId = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetStatus() string { - if o == nil || IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *SchemaGetUserResp) SetStatus(v string) { - o.Status = &v -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetUsername() string { - if o == nil || IsNil(o.Username) { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetUsernameOk() (*string, bool) { - if o == nil || IsNil(o.Username) { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasUsername() bool { - if o != nil && !IsNil(o.Username) { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *SchemaGetUserResp) SetUsername(v string) { - o.Username = &v -} - -// GetWebsite returns the Website field value if set, zero value otherwise. -func (o *SchemaGetUserResp) GetWebsite() string { - if o == nil || IsNil(o.Website) { - var ret string - return ret - } - return *o.Website -} - -// GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserResp) GetWebsiteOk() (*string, bool) { - if o == nil || IsNil(o.Website) { - return nil, false - } - return o.Website, true -} - -// HasWebsite returns a boolean if a field has been set. -func (o *SchemaGetUserResp) HasWebsite() bool { - if o != nil && !IsNil(o.Website) { - return true - } - - return false -} - -// SetWebsite gets a reference to the given string and assigns it to the Website field. -func (o *SchemaGetUserResp) SetWebsite(v string) { - o.Website = &v -} - -func (o SchemaGetUserResp) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaGetUserResp) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AccessToken) { - toSerialize["access_token"] = o.AccessToken - } - if !IsNil(o.AnswerCount) { - toSerialize["answer_count"] = o.AnswerCount - } - if !IsNil(o.AuthorityGroup) { - toSerialize["authority_group"] = o.AuthorityGroup - } - if !IsNil(o.Avatar) { - toSerialize["avatar"] = o.Avatar - } - if !IsNil(o.Bio) { - toSerialize["bio"] = o.Bio - } - if !IsNil(o.BioHtml) { - toSerialize["bio_html"] = o.BioHtml - } - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.DisplayName) { - toSerialize["display_name"] = o.DisplayName - } - if !IsNil(o.EMail) { - toSerialize["e_mail"] = o.EMail - } - if !IsNil(o.FollowCount) { - toSerialize["follow_count"] = o.FollowCount - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.IpInfo) { - toSerialize["ip_info"] = o.IpInfo - } - if !IsNil(o.Language) { - toSerialize["language"] = o.Language - } - if !IsNil(o.LastLoginDate) { - toSerialize["last_login_date"] = o.LastLoginDate - } - if !IsNil(o.Location) { - toSerialize["location"] = o.Location - } - if !IsNil(o.MailStatus) { - toSerialize["mail_status"] = o.MailStatus - } - if !IsNil(o.Mobile) { - toSerialize["mobile"] = o.Mobile - } - if !IsNil(o.NoticeStatus) { - toSerialize["notice_status"] = o.NoticeStatus - } - if !IsNil(o.QuestionCount) { - toSerialize["question_count"] = o.QuestionCount - } - if !IsNil(o.Rank) { - toSerialize["rank"] = o.Rank - } - if !IsNil(o.RoleId) { - toSerialize["role_id"] = o.RoleId - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.Username) { - toSerialize["username"] = o.Username - } - if !IsNil(o.Website) { - toSerialize["website"] = o.Website - } - return toSerialize, nil -} - -type NullableSchemaGetUserResp struct { - value *SchemaGetUserResp - isSet bool -} - -func (v NullableSchemaGetUserResp) Get() *SchemaGetUserResp { - return v.value -} - -func (v *NullableSchemaGetUserResp) Set(val *SchemaGetUserResp) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaGetUserResp) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaGetUserResp) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaGetUserResp(val *SchemaGetUserResp) *NullableSchemaGetUserResp { - return &NullableSchemaGetUserResp{value: val, isSet: true} -} - -func (v NullableSchemaGetUserResp) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaGetUserResp) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_get_user_to_set_show_resp.go b/model_schema_get_user_to_set_show_resp.go deleted file mode 100644 index 5aacf5b..0000000 --- a/model_schema_get_user_to_set_show_resp.go +++ /dev/null @@ -1,977 +0,0 @@ -/* -answer - -answer api - -API version: v0.0.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaGetUserToSetShowResp type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaGetUserToSetShowResp{} - -// SchemaGetUserToSetShowResp struct for SchemaGetUserToSetShowResp -type SchemaGetUserToSetShowResp struct { - // access token - AccessToken *string `json:"access_token,omitempty"` - // answer count - AnswerCount *int32 `json:"answer_count,omitempty"` - // authority group - AuthorityGroup *int32 `json:"authority_group,omitempty"` - Avatar *SchemaAvatarInfo `json:"avatar,omitempty"` - // bio markdown - Bio *string `json:"bio,omitempty"` - // bio html - BioHtml *string `json:"bio_html,omitempty"` - // create time - CreatedAt *int32 `json:"created_at,omitempty"` - // display name - DisplayName *string `json:"display_name,omitempty"` - // email - EMail *string `json:"e_mail,omitempty"` - // follow count - FollowCount *int32 `json:"follow_count,omitempty"` - // user id - Id *string `json:"id,omitempty"` - // ip info - IpInfo *string `json:"ip_info,omitempty"` - // language - Language *string `json:"language,omitempty"` - // last login date - LastLoginDate *int32 `json:"last_login_date,omitempty"` - // location - Location *string `json:"location,omitempty"` - // mail status(1 pass 2 to be verified) - MailStatus *int32 `json:"mail_status,omitempty"` - // mobile - Mobile *string `json:"mobile,omitempty"` - // notice status(1 on 2off) - NoticeStatus *int32 `json:"notice_status,omitempty"` - // question count - QuestionCount *int32 `json:"question_count,omitempty"` - // rank - Rank *int32 `json:"rank,omitempty"` - // role id - RoleId *int32 `json:"role_id,omitempty"` - // user status - Status *string `json:"status,omitempty"` - // username - Username *string `json:"username,omitempty"` - // website - Website *string `json:"website,omitempty"` -} - -// NewSchemaGetUserToSetShowResp instantiates a new SchemaGetUserToSetShowResp object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaGetUserToSetShowResp() *SchemaGetUserToSetShowResp { - this := SchemaGetUserToSetShowResp{} - return &this -} - -// NewSchemaGetUserToSetShowRespWithDefaults instantiates a new SchemaGetUserToSetShowResp object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaGetUserToSetShowRespWithDefaults() *SchemaGetUserToSetShowResp { - this := SchemaGetUserToSetShowResp{} - return &this -} - -// GetAccessToken returns the AccessToken field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetAccessToken() string { - if o == nil || IsNil(o.AccessToken) { - var ret string - return ret - } - return *o.AccessToken -} - -// GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetAccessTokenOk() (*string, bool) { - if o == nil || IsNil(o.AccessToken) { - return nil, false - } - return o.AccessToken, true -} - -// HasAccessToken returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasAccessToken() bool { - if o != nil && !IsNil(o.AccessToken) { - return true - } - - return false -} - -// SetAccessToken gets a reference to the given string and assigns it to the AccessToken field. -func (o *SchemaGetUserToSetShowResp) SetAccessToken(v string) { - o.AccessToken = &v -} - -// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetAnswerCount() int32 { - if o == nil || IsNil(o.AnswerCount) { - var ret int32 - return ret - } - return *o.AnswerCount -} - -// GetAnswerCountOk returns a tuple with the AnswerCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetAnswerCountOk() (*int32, bool) { - if o == nil || IsNil(o.AnswerCount) { - return nil, false - } - return o.AnswerCount, true -} - -// HasAnswerCount returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasAnswerCount() bool { - if o != nil && !IsNil(o.AnswerCount) { - return true - } - - return false -} - -// SetAnswerCount gets a reference to the given int32 and assigns it to the AnswerCount field. -func (o *SchemaGetUserToSetShowResp) SetAnswerCount(v int32) { - o.AnswerCount = &v -} - -// GetAuthorityGroup returns the AuthorityGroup field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetAuthorityGroup() int32 { - if o == nil || IsNil(o.AuthorityGroup) { - var ret int32 - return ret - } - return *o.AuthorityGroup -} - -// GetAuthorityGroupOk returns a tuple with the AuthorityGroup field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetAuthorityGroupOk() (*int32, bool) { - if o == nil || IsNil(o.AuthorityGroup) { - return nil, false - } - return o.AuthorityGroup, true -} - -// HasAuthorityGroup returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasAuthorityGroup() bool { - if o != nil && !IsNil(o.AuthorityGroup) { - return true - } - - return false -} - -// SetAuthorityGroup gets a reference to the given int32 and assigns it to the AuthorityGroup field. -func (o *SchemaGetUserToSetShowResp) SetAuthorityGroup(v int32) { - o.AuthorityGroup = &v -} - -// GetAvatar returns the Avatar field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetAvatar() SchemaAvatarInfo { - if o == nil || IsNil(o.Avatar) { - var ret SchemaAvatarInfo - return ret - } - return *o.Avatar -} - -// GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetAvatarOk() (*SchemaAvatarInfo, bool) { - if o == nil || IsNil(o.Avatar) { - return nil, false - } - return o.Avatar, true -} - -// HasAvatar returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasAvatar() bool { - if o != nil && !IsNil(o.Avatar) { - return true - } - - return false -} - -// SetAvatar gets a reference to the given SchemaAvatarInfo and assigns it to the Avatar field. -func (o *SchemaGetUserToSetShowResp) SetAvatar(v SchemaAvatarInfo) { - o.Avatar = &v -} - -// GetBio returns the Bio field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetBio() string { - if o == nil || IsNil(o.Bio) { - var ret string - return ret - } - return *o.Bio -} - -// GetBioOk returns a tuple with the Bio field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetBioOk() (*string, bool) { - if o == nil || IsNil(o.Bio) { - return nil, false - } - return o.Bio, true -} - -// HasBio returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasBio() bool { - if o != nil && !IsNil(o.Bio) { - return true - } - - return false -} - -// SetBio gets a reference to the given string and assigns it to the Bio field. -func (o *SchemaGetUserToSetShowResp) SetBio(v string) { - o.Bio = &v -} - -// GetBioHtml returns the BioHtml field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetBioHtml() string { - if o == nil || IsNil(o.BioHtml) { - var ret string - return ret - } - return *o.BioHtml -} - -// GetBioHtmlOk returns a tuple with the BioHtml field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetBioHtmlOk() (*string, bool) { - if o == nil || IsNil(o.BioHtml) { - return nil, false - } - return o.BioHtml, true -} - -// HasBioHtml returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasBioHtml() bool { - if o != nil && !IsNil(o.BioHtml) { - return true - } - - return false -} - -// SetBioHtml gets a reference to the given string and assigns it to the BioHtml field. -func (o *SchemaGetUserToSetShowResp) SetBioHtml(v string) { - o.BioHtml = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetCreatedAt() int32 { - if o == nil || IsNil(o.CreatedAt) { - var ret int32 - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetCreatedAtOk() (*int32, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. -func (o *SchemaGetUserToSetShowResp) SetCreatedAt(v int32) { - o.CreatedAt = &v -} - -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetDisplayName() string { - if o == nil || IsNil(o.DisplayName) { - var ret string - return ret - } - return *o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetDisplayNameOk() (*string, bool) { - if o == nil || IsNil(o.DisplayName) { - return nil, false - } - return o.DisplayName, true -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasDisplayName() bool { - if o != nil && !IsNil(o.DisplayName) { - return true - } - - return false -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *SchemaGetUserToSetShowResp) SetDisplayName(v string) { - o.DisplayName = &v -} - -// GetEMail returns the EMail field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetEMail() string { - if o == nil || IsNil(o.EMail) { - var ret string - return ret - } - return *o.EMail -} - -// GetEMailOk returns a tuple with the EMail field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetEMailOk() (*string, bool) { - if o == nil || IsNil(o.EMail) { - return nil, false - } - return o.EMail, true -} - -// HasEMail returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasEMail() bool { - if o != nil && !IsNil(o.EMail) { - return true - } - - return false -} - -// SetEMail gets a reference to the given string and assigns it to the EMail field. -func (o *SchemaGetUserToSetShowResp) SetEMail(v string) { - o.EMail = &v -} - -// GetFollowCount returns the FollowCount field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetFollowCount() int32 { - if o == nil || IsNil(o.FollowCount) { - var ret int32 - return ret - } - return *o.FollowCount -} - -// GetFollowCountOk returns a tuple with the FollowCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetFollowCountOk() (*int32, bool) { - if o == nil || IsNil(o.FollowCount) { - return nil, false - } - return o.FollowCount, true -} - -// HasFollowCount returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasFollowCount() bool { - if o != nil && !IsNil(o.FollowCount) { - return true - } - - return false -} - -// SetFollowCount gets a reference to the given int32 and assigns it to the FollowCount field. -func (o *SchemaGetUserToSetShowResp) SetFollowCount(v int32) { - o.FollowCount = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *SchemaGetUserToSetShowResp) SetId(v string) { - o.Id = &v -} - -// GetIpInfo returns the IpInfo field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetIpInfo() string { - if o == nil || IsNil(o.IpInfo) { - var ret string - return ret - } - return *o.IpInfo -} - -// GetIpInfoOk returns a tuple with the IpInfo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetIpInfoOk() (*string, bool) { - if o == nil || IsNil(o.IpInfo) { - return nil, false - } - return o.IpInfo, true -} - -// HasIpInfo returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasIpInfo() bool { - if o != nil && !IsNil(o.IpInfo) { - return true - } - - return false -} - -// SetIpInfo gets a reference to the given string and assigns it to the IpInfo field. -func (o *SchemaGetUserToSetShowResp) SetIpInfo(v string) { - o.IpInfo = &v -} - -// GetLanguage returns the Language field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetLanguage() string { - if o == nil || IsNil(o.Language) { - var ret string - return ret - } - return *o.Language -} - -// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetLanguageOk() (*string, bool) { - if o == nil || IsNil(o.Language) { - return nil, false - } - return o.Language, true -} - -// HasLanguage returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasLanguage() bool { - if o != nil && !IsNil(o.Language) { - return true - } - - return false -} - -// SetLanguage gets a reference to the given string and assigns it to the Language field. -func (o *SchemaGetUserToSetShowResp) SetLanguage(v string) { - o.Language = &v -} - -// GetLastLoginDate returns the LastLoginDate field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetLastLoginDate() int32 { - if o == nil || IsNil(o.LastLoginDate) { - var ret int32 - return ret - } - return *o.LastLoginDate -} - -// GetLastLoginDateOk returns a tuple with the LastLoginDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetLastLoginDateOk() (*int32, bool) { - if o == nil || IsNil(o.LastLoginDate) { - return nil, false - } - return o.LastLoginDate, true -} - -// HasLastLoginDate returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasLastLoginDate() bool { - if o != nil && !IsNil(o.LastLoginDate) { - return true - } - - return false -} - -// SetLastLoginDate gets a reference to the given int32 and assigns it to the LastLoginDate field. -func (o *SchemaGetUserToSetShowResp) SetLastLoginDate(v int32) { - o.LastLoginDate = &v -} - -// GetLocation returns the Location field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetLocation() string { - if o == nil || IsNil(o.Location) { - var ret string - return ret - } - return *o.Location -} - -// GetLocationOk returns a tuple with the Location field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetLocationOk() (*string, bool) { - if o == nil || IsNil(o.Location) { - return nil, false - } - return o.Location, true -} - -// HasLocation returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasLocation() bool { - if o != nil && !IsNil(o.Location) { - return true - } - - return false -} - -// SetLocation gets a reference to the given string and assigns it to the Location field. -func (o *SchemaGetUserToSetShowResp) SetLocation(v string) { - o.Location = &v -} - -// GetMailStatus returns the MailStatus field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetMailStatus() int32 { - if o == nil || IsNil(o.MailStatus) { - var ret int32 - return ret - } - return *o.MailStatus -} - -// GetMailStatusOk returns a tuple with the MailStatus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetMailStatusOk() (*int32, bool) { - if o == nil || IsNil(o.MailStatus) { - return nil, false - } - return o.MailStatus, true -} - -// HasMailStatus returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasMailStatus() bool { - if o != nil && !IsNil(o.MailStatus) { - return true - } - - return false -} - -// SetMailStatus gets a reference to the given int32 and assigns it to the MailStatus field. -func (o *SchemaGetUserToSetShowResp) SetMailStatus(v int32) { - o.MailStatus = &v -} - -// GetMobile returns the Mobile field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetMobile() string { - if o == nil || IsNil(o.Mobile) { - var ret string - return ret - } - return *o.Mobile -} - -// GetMobileOk returns a tuple with the Mobile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetMobileOk() (*string, bool) { - if o == nil || IsNil(o.Mobile) { - return nil, false - } - return o.Mobile, true -} - -// HasMobile returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasMobile() bool { - if o != nil && !IsNil(o.Mobile) { - return true - } - - return false -} - -// SetMobile gets a reference to the given string and assigns it to the Mobile field. -func (o *SchemaGetUserToSetShowResp) SetMobile(v string) { - o.Mobile = &v -} - -// GetNoticeStatus returns the NoticeStatus field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetNoticeStatus() int32 { - if o == nil || IsNil(o.NoticeStatus) { - var ret int32 - return ret - } - return *o.NoticeStatus -} - -// GetNoticeStatusOk returns a tuple with the NoticeStatus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetNoticeStatusOk() (*int32, bool) { - if o == nil || IsNil(o.NoticeStatus) { - return nil, false - } - return o.NoticeStatus, true -} - -// HasNoticeStatus returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasNoticeStatus() bool { - if o != nil && !IsNil(o.NoticeStatus) { - return true - } - - return false -} - -// SetNoticeStatus gets a reference to the given int32 and assigns it to the NoticeStatus field. -func (o *SchemaGetUserToSetShowResp) SetNoticeStatus(v int32) { - o.NoticeStatus = &v -} - -// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetQuestionCount() int32 { - if o == nil || IsNil(o.QuestionCount) { - var ret int32 - return ret - } - return *o.QuestionCount -} - -// GetQuestionCountOk returns a tuple with the QuestionCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetQuestionCountOk() (*int32, bool) { - if o == nil || IsNil(o.QuestionCount) { - return nil, false - } - return o.QuestionCount, true -} - -// HasQuestionCount returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasQuestionCount() bool { - if o != nil && !IsNil(o.QuestionCount) { - return true - } - - return false -} - -// SetQuestionCount gets a reference to the given int32 and assigns it to the QuestionCount field. -func (o *SchemaGetUserToSetShowResp) SetQuestionCount(v int32) { - o.QuestionCount = &v -} - -// GetRank returns the Rank field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetRank() int32 { - if o == nil || IsNil(o.Rank) { - var ret int32 - return ret - } - return *o.Rank -} - -// GetRankOk returns a tuple with the Rank field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetRankOk() (*int32, bool) { - if o == nil || IsNil(o.Rank) { - return nil, false - } - return o.Rank, true -} - -// HasRank returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasRank() bool { - if o != nil && !IsNil(o.Rank) { - return true - } - - return false -} - -// SetRank gets a reference to the given int32 and assigns it to the Rank field. -func (o *SchemaGetUserToSetShowResp) SetRank(v int32) { - o.Rank = &v -} - -// GetRoleId returns the RoleId field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetRoleId() int32 { - if o == nil || IsNil(o.RoleId) { - var ret int32 - return ret - } - return *o.RoleId -} - -// GetRoleIdOk returns a tuple with the RoleId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetRoleIdOk() (*int32, bool) { - if o == nil || IsNil(o.RoleId) { - return nil, false - } - return o.RoleId, true -} - -// HasRoleId returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasRoleId() bool { - if o != nil && !IsNil(o.RoleId) { - return true - } - - return false -} - -// SetRoleId gets a reference to the given int32 and assigns it to the RoleId field. -func (o *SchemaGetUserToSetShowResp) SetRoleId(v int32) { - o.RoleId = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetStatus() string { - if o == nil || IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *SchemaGetUserToSetShowResp) SetStatus(v string) { - o.Status = &v -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetUsername() string { - if o == nil || IsNil(o.Username) { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetUsernameOk() (*string, bool) { - if o == nil || IsNil(o.Username) { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasUsername() bool { - if o != nil && !IsNil(o.Username) { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *SchemaGetUserToSetShowResp) SetUsername(v string) { - o.Username = &v -} - -// GetWebsite returns the Website field value if set, zero value otherwise. -func (o *SchemaGetUserToSetShowResp) GetWebsite() string { - if o == nil || IsNil(o.Website) { - var ret string - return ret - } - return *o.Website -} - -// GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaGetUserToSetShowResp) GetWebsiteOk() (*string, bool) { - if o == nil || IsNil(o.Website) { - return nil, false - } - return o.Website, true -} - -// HasWebsite returns a boolean if a field has been set. -func (o *SchemaGetUserToSetShowResp) HasWebsite() bool { - if o != nil && !IsNil(o.Website) { - return true - } - - return false -} - -// SetWebsite gets a reference to the given string and assigns it to the Website field. -func (o *SchemaGetUserToSetShowResp) SetWebsite(v string) { - o.Website = &v -} - -func (o SchemaGetUserToSetShowResp) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaGetUserToSetShowResp) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AccessToken) { - toSerialize["access_token"] = o.AccessToken - } - if !IsNil(o.AnswerCount) { - toSerialize["answer_count"] = o.AnswerCount - } - if !IsNil(o.AuthorityGroup) { - toSerialize["authority_group"] = o.AuthorityGroup - } - if !IsNil(o.Avatar) { - toSerialize["avatar"] = o.Avatar - } - if !IsNil(o.Bio) { - toSerialize["bio"] = o.Bio - } - if !IsNil(o.BioHtml) { - toSerialize["bio_html"] = o.BioHtml - } - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.DisplayName) { - toSerialize["display_name"] = o.DisplayName - } - if !IsNil(o.EMail) { - toSerialize["e_mail"] = o.EMail - } - if !IsNil(o.FollowCount) { - toSerialize["follow_count"] = o.FollowCount - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.IpInfo) { - toSerialize["ip_info"] = o.IpInfo - } - if !IsNil(o.Language) { - toSerialize["language"] = o.Language - } - if !IsNil(o.LastLoginDate) { - toSerialize["last_login_date"] = o.LastLoginDate - } - if !IsNil(o.Location) { - toSerialize["location"] = o.Location - } - if !IsNil(o.MailStatus) { - toSerialize["mail_status"] = o.MailStatus - } - if !IsNil(o.Mobile) { - toSerialize["mobile"] = o.Mobile - } - if !IsNil(o.NoticeStatus) { - toSerialize["notice_status"] = o.NoticeStatus - } - if !IsNil(o.QuestionCount) { - toSerialize["question_count"] = o.QuestionCount - } - if !IsNil(o.Rank) { - toSerialize["rank"] = o.Rank - } - if !IsNil(o.RoleId) { - toSerialize["role_id"] = o.RoleId - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.Username) { - toSerialize["username"] = o.Username - } - if !IsNil(o.Website) { - toSerialize["website"] = o.Website - } - return toSerialize, nil -} - -type NullableSchemaGetUserToSetShowResp struct { - value *SchemaGetUserToSetShowResp - isSet bool -} - -func (v NullableSchemaGetUserToSetShowResp) Get() *SchemaGetUserToSetShowResp { - return v.value -} - -func (v *NullableSchemaGetUserToSetShowResp) Set(val *SchemaGetUserToSetShowResp) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaGetUserToSetShowResp) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaGetUserToSetShowResp) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaGetUserToSetShowResp(val *SchemaGetUserToSetShowResp) *NullableSchemaGetUserToSetShowResp { - return &NullableSchemaGetUserToSetShowResp{value: val, isSet: true} -} - -func (v NullableSchemaGetUserToSetShowResp) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaGetUserToSetShowResp) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_get_vote_with_page_resp.go b/model_schema_get_vote_with_page_resp.go index 0c1720d..9b9503c 100644 --- a/model_schema_get_vote_with_page_resp.go +++ b/model_schema_get_vote_with_page_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_loading_action.go b/model_schema_loading_action.go index df491b6..88f55db 100644 --- a/model_schema_loading_action.go +++ b/model_schema_loading_action.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_notification_channel_config.go b/model_schema_notification_channel_config.go new file mode 100644 index 0000000..b745aa3 --- /dev/null +++ b/model_schema_notification_channel_config.go @@ -0,0 +1,160 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the SchemaNotificationChannelConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaNotificationChannelConfig{} + +// SchemaNotificationChannelConfig struct for SchemaNotificationChannelConfig +type SchemaNotificationChannelConfig struct { + Enable *bool `json:"enable,omitempty"` + Key *ConstantNotificationChannelKey `json:"key,omitempty"` +} + +// NewSchemaNotificationChannelConfig instantiates a new SchemaNotificationChannelConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaNotificationChannelConfig() *SchemaNotificationChannelConfig { + this := SchemaNotificationChannelConfig{} + return &this +} + +// NewSchemaNotificationChannelConfigWithDefaults instantiates a new SchemaNotificationChannelConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaNotificationChannelConfigWithDefaults() *SchemaNotificationChannelConfig { + this := SchemaNotificationChannelConfig{} + return &this +} + +// GetEnable returns the Enable field value if set, zero value otherwise. +func (o *SchemaNotificationChannelConfig) GetEnable() bool { + if o == nil || IsNil(o.Enable) { + var ret bool + return ret + } + return *o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaNotificationChannelConfig) GetEnableOk() (*bool, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *SchemaNotificationChannelConfig) HasEnable() bool { + if o != nil && !IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given bool and assigns it to the Enable field. +func (o *SchemaNotificationChannelConfig) SetEnable(v bool) { + o.Enable = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *SchemaNotificationChannelConfig) GetKey() ConstantNotificationChannelKey { + if o == nil || IsNil(o.Key) { + var ret ConstantNotificationChannelKey + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaNotificationChannelConfig) GetKeyOk() (*ConstantNotificationChannelKey, bool) { + if o == nil || IsNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *SchemaNotificationChannelConfig) HasKey() bool { + if o != nil && !IsNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given ConstantNotificationChannelKey and assigns it to the Key field. +func (o *SchemaNotificationChannelConfig) SetKey(v ConstantNotificationChannelKey) { + o.Key = &v +} + +func (o SchemaNotificationChannelConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaNotificationChannelConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enable) { + toSerialize["enable"] = o.Enable + } + if !IsNil(o.Key) { + toSerialize["key"] = o.Key + } + return toSerialize, nil +} + +type NullableSchemaNotificationChannelConfig struct { + value *SchemaNotificationChannelConfig + isSet bool +} + +func (v NullableSchemaNotificationChannelConfig) Get() *SchemaNotificationChannelConfig { + return v.value +} + +func (v *NullableSchemaNotificationChannelConfig) Set(val *SchemaNotificationChannelConfig) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaNotificationChannelConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaNotificationChannelConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaNotificationChannelConfig(val *SchemaNotificationChannelConfig) *NullableSchemaNotificationChannelConfig { + return &NullableSchemaNotificationChannelConfig{value: val, isSet: true} +} + +func (v NullableSchemaNotificationChannelConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaNotificationChannelConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_notification_clear_id_request.go b/model_schema_notification_clear_id_request.go index ac40e09..e540ae7 100644 --- a/model_schema_notification_clear_id_request.go +++ b/model_schema_notification_clear_id_request.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_notification_clear_request.go b/model_schema_notification_clear_request.go index af309de..76bfed9 100644 --- a/model_schema_notification_clear_request.go +++ b/model_schema_notification_clear_request.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_on_complete_action.go b/model_schema_on_complete_action.go index 5bfda77..5b9912e 100644 --- a/model_schema_on_complete_action.go +++ b/model_schema_on_complete_action.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_operation_question_req.go b/model_schema_operation_question_req.go index a601741..e7e1831 100644 --- a/model_schema_operation_question_req.go +++ b/model_schema_operation_question_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_permission_member_action.go b/model_schema_permission_member_action.go index d6ad7d6..f9c4ee6 100644 --- a/model_schema_permission_member_action.go +++ b/model_schema_permission_member_action.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_post_render_req.go b/model_schema_post_render_req.go index 2eb942a..9e24e6d 100644 --- a/model_schema_post_render_req.go +++ b/model_schema_post_render_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_privilege_level.go b/model_schema_privilege_level.go index 476b58d..3d24abc 100644 --- a/model_schema_privilege_level.go +++ b/model_schema_privilege_level.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_privilege_option.go b/model_schema_privilege_option.go index f6772b3..75bbb8a 100644 --- a/model_schema_privilege_option.go +++ b/model_schema_privilege_option.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_question_add.go b/model_schema_question_add.go index 4fe136d..d515973 100644 --- a/model_schema_question_add.go +++ b/model_schema_question_add.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_question_add_by_answer.go b/model_schema_question_add_by_answer.go index 3e147cc..a5b148a 100644 --- a/model_schema_question_add_by_answer.go +++ b/model_schema_question_add_by_answer.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_question_page_req.go b/model_schema_question_page_req.go deleted file mode 100644 index 40488f5..0000000 --- a/model_schema_question_page_req.go +++ /dev/null @@ -1,270 +0,0 @@ -/* -answer - -answer api - -API version: v0.0.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaQuestionPageReq type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaQuestionPageReq{} - -// SchemaQuestionPageReq struct for SchemaQuestionPageReq -type SchemaQuestionPageReq struct { - OrderCond *string `json:"orderCond,omitempty"` - Page *int32 `json:"page,omitempty"` - PageSize *int32 `json:"pageSize,omitempty"` - Tag *string `json:"tag,omitempty"` - Username *string `json:"username,omitempty"` -} - -// NewSchemaQuestionPageReq instantiates a new SchemaQuestionPageReq object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaQuestionPageReq() *SchemaQuestionPageReq { - this := SchemaQuestionPageReq{} - return &this -} - -// NewSchemaQuestionPageReqWithDefaults instantiates a new SchemaQuestionPageReq object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaQuestionPageReqWithDefaults() *SchemaQuestionPageReq { - this := SchemaQuestionPageReq{} - return &this -} - -// GetOrderCond returns the OrderCond field value if set, zero value otherwise. -func (o *SchemaQuestionPageReq) GetOrderCond() string { - if o == nil || IsNil(o.OrderCond) { - var ret string - return ret - } - return *o.OrderCond -} - -// GetOrderCondOk returns a tuple with the OrderCond field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaQuestionPageReq) GetOrderCondOk() (*string, bool) { - if o == nil || IsNil(o.OrderCond) { - return nil, false - } - return o.OrderCond, true -} - -// HasOrderCond returns a boolean if a field has been set. -func (o *SchemaQuestionPageReq) HasOrderCond() bool { - if o != nil && !IsNil(o.OrderCond) { - return true - } - - return false -} - -// SetOrderCond gets a reference to the given string and assigns it to the OrderCond field. -func (o *SchemaQuestionPageReq) SetOrderCond(v string) { - o.OrderCond = &v -} - -// GetPage returns the Page field value if set, zero value otherwise. -func (o *SchemaQuestionPageReq) GetPage() int32 { - if o == nil || IsNil(o.Page) { - var ret int32 - return ret - } - return *o.Page -} - -// GetPageOk returns a tuple with the Page field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaQuestionPageReq) GetPageOk() (*int32, bool) { - if o == nil || IsNil(o.Page) { - return nil, false - } - return o.Page, true -} - -// HasPage returns a boolean if a field has been set. -func (o *SchemaQuestionPageReq) HasPage() bool { - if o != nil && !IsNil(o.Page) { - return true - } - - return false -} - -// SetPage gets a reference to the given int32 and assigns it to the Page field. -func (o *SchemaQuestionPageReq) SetPage(v int32) { - o.Page = &v -} - -// GetPageSize returns the PageSize field value if set, zero value otherwise. -func (o *SchemaQuestionPageReq) GetPageSize() int32 { - if o == nil || IsNil(o.PageSize) { - var ret int32 - return ret - } - return *o.PageSize -} - -// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaQuestionPageReq) GetPageSizeOk() (*int32, bool) { - if o == nil || IsNil(o.PageSize) { - return nil, false - } - return o.PageSize, true -} - -// HasPageSize returns a boolean if a field has been set. -func (o *SchemaQuestionPageReq) HasPageSize() bool { - if o != nil && !IsNil(o.PageSize) { - return true - } - - return false -} - -// SetPageSize gets a reference to the given int32 and assigns it to the PageSize field. -func (o *SchemaQuestionPageReq) SetPageSize(v int32) { - o.PageSize = &v -} - -// GetTag returns the Tag field value if set, zero value otherwise. -func (o *SchemaQuestionPageReq) GetTag() string { - if o == nil || IsNil(o.Tag) { - var ret string - return ret - } - return *o.Tag -} - -// GetTagOk returns a tuple with the Tag field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaQuestionPageReq) GetTagOk() (*string, bool) { - if o == nil || IsNil(o.Tag) { - return nil, false - } - return o.Tag, true -} - -// HasTag returns a boolean if a field has been set. -func (o *SchemaQuestionPageReq) HasTag() bool { - if o != nil && !IsNil(o.Tag) { - return true - } - - return false -} - -// SetTag gets a reference to the given string and assigns it to the Tag field. -func (o *SchemaQuestionPageReq) SetTag(v string) { - o.Tag = &v -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *SchemaQuestionPageReq) GetUsername() string { - if o == nil || IsNil(o.Username) { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaQuestionPageReq) GetUsernameOk() (*string, bool) { - if o == nil || IsNil(o.Username) { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *SchemaQuestionPageReq) HasUsername() bool { - if o != nil && !IsNil(o.Username) { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *SchemaQuestionPageReq) SetUsername(v string) { - o.Username = &v -} - -func (o SchemaQuestionPageReq) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaQuestionPageReq) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.OrderCond) { - toSerialize["orderCond"] = o.OrderCond - } - if !IsNil(o.Page) { - toSerialize["page"] = o.Page - } - if !IsNil(o.PageSize) { - toSerialize["pageSize"] = o.PageSize - } - if !IsNil(o.Tag) { - toSerialize["tag"] = o.Tag - } - if !IsNil(o.Username) { - toSerialize["username"] = o.Username - } - return toSerialize, nil -} - -type NullableSchemaQuestionPageReq struct { - value *SchemaQuestionPageReq - isSet bool -} - -func (v NullableSchemaQuestionPageReq) Get() *SchemaQuestionPageReq { - return v.value -} - -func (v *NullableSchemaQuestionPageReq) Set(val *SchemaQuestionPageReq) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaQuestionPageReq) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaQuestionPageReq) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaQuestionPageReq(val *SchemaQuestionPageReq) *NullableSchemaQuestionPageReq { - return &NullableSchemaQuestionPageReq{value: val, isSet: true} -} - -func (v NullableSchemaQuestionPageReq) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaQuestionPageReq) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_question_page_resp.go b/model_schema_question_page_resp.go index 331e868..8f5c2f1 100644 --- a/model_schema_question_page_resp.go +++ b/model_schema_question_page_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_question_page_resp_operator.go b/model_schema_question_page_resp_operator.go index d8e1553..372bf72 100644 --- a/model_schema_question_page_resp_operator.go +++ b/model_schema_question_page_resp_operator.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_question_update.go b/model_schema_question_update.go index e077294..6264722 100644 --- a/model_schema_question_update.go +++ b/model_schema_question_update.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_question_update_invite_user.go b/model_schema_question_update_invite_user.go index 0dda80e..442b9c6 100644 --- a/model_schema_question_update_invite_user.go +++ b/model_schema_question_update_invite_user.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_remove_answer_req.go b/model_schema_remove_answer_req.go index 61fefde..24597af 100644 --- a/model_schema_remove_answer_req.go +++ b/model_schema_remove_answer_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -18,9 +18,7 @@ var _ MappedNullable = &SchemaRemoveAnswerReq{} // SchemaRemoveAnswerReq struct for SchemaRemoveAnswerReq type SchemaRemoveAnswerReq struct { CaptchaCode *string `json:"captcha_code,omitempty"` - // captcha_id CaptchaId *string `json:"captcha_id,omitempty"` - // answer id Id string `json:"id"` } diff --git a/model_schema_remove_comment_req.go b/model_schema_remove_comment_req.go index 6688821..568bcf5 100644 --- a/model_schema_remove_comment_req.go +++ b/model_schema_remove_comment_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_remove_question_req.go b/model_schema_remove_question_req.go index e5c2095..22d8395 100644 --- a/model_schema_remove_question_req.go +++ b/model_schema_remove_question_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_remove_tag_req.go b/model_schema_remove_tag_req.go index cc611e0..bd76618 100644 --- a/model_schema_remove_tag_req.go +++ b/model_schema_remove_tag_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_reopen_question_req.go b/model_schema_reopen_question_req.go index 7228ab8..8fafef2 100644 --- a/model_schema_reopen_question_req.go +++ b/model_schema_reopen_question_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_report_handle_req.go b/model_schema_report_handle_req.go index cb32c43..41a3272 100644 --- a/model_schema_report_handle_req.go +++ b/model_schema_report_handle_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_revision_audit_req.go b/model_schema_revision_audit_req.go index 8319228..ee6f538 100644 --- a/model_schema_revision_audit_req.go +++ b/model_schema_revision_audit_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_search_list_resp.go b/model_schema_search_list_resp.go deleted file mode 100644 index f5d8a6f..0000000 --- a/model_schema_search_list_resp.go +++ /dev/null @@ -1,198 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaSearchListResp type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaSearchListResp{} - -// SchemaSearchListResp struct for SchemaSearchListResp -type SchemaSearchListResp struct { - Count *int32 `json:"count,omitempty"` - // extra fields - Extra map[string]interface{} `json:"extra,omitempty"` - // search response - List []SchemaSearchResp `json:"list,omitempty"` -} - -// NewSchemaSearchListResp instantiates a new SchemaSearchListResp object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaSearchListResp() *SchemaSearchListResp { - this := SchemaSearchListResp{} - return &this -} - -// NewSchemaSearchListRespWithDefaults instantiates a new SchemaSearchListResp object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaSearchListRespWithDefaults() *SchemaSearchListResp { - this := SchemaSearchListResp{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *SchemaSearchListResp) GetCount() int32 { - if o == nil || IsNil(o.Count) { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchListResp) GetCountOk() (*int32, bool) { - if o == nil || IsNil(o.Count) { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *SchemaSearchListResp) HasCount() bool { - if o != nil && !IsNil(o.Count) { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *SchemaSearchListResp) SetCount(v int32) { - o.Count = &v -} - -// GetExtra returns the Extra field value if set, zero value otherwise. -func (o *SchemaSearchListResp) GetExtra() map[string]interface{} { - if o == nil || IsNil(o.Extra) { - var ret map[string]interface{} - return ret - } - return o.Extra -} - -// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchListResp) GetExtraOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.Extra) { - return map[string]interface{}{}, false - } - return o.Extra, true -} - -// HasExtra returns a boolean if a field has been set. -func (o *SchemaSearchListResp) HasExtra() bool { - if o != nil && !IsNil(o.Extra) { - return true - } - - return false -} - -// SetExtra gets a reference to the given map[string]interface{} and assigns it to the Extra field. -func (o *SchemaSearchListResp) SetExtra(v map[string]interface{}) { - o.Extra = v -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *SchemaSearchListResp) GetList() []SchemaSearchResp { - if o == nil || IsNil(o.List) { - var ret []SchemaSearchResp - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchListResp) GetListOk() ([]SchemaSearchResp, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *SchemaSearchListResp) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []SchemaSearchResp and assigns it to the List field. -func (o *SchemaSearchListResp) SetList(v []SchemaSearchResp) { - o.List = v -} - -func (o SchemaSearchListResp) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaSearchListResp) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Count) { - toSerialize["count"] = o.Count - } - if !IsNil(o.Extra) { - toSerialize["extra"] = o.Extra - } - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - return toSerialize, nil -} - -type NullableSchemaSearchListResp struct { - value *SchemaSearchListResp - isSet bool -} - -func (v NullableSchemaSearchListResp) Get() *SchemaSearchListResp { - return v.value -} - -func (v *NullableSchemaSearchListResp) Set(val *SchemaSearchListResp) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaSearchListResp) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaSearchListResp) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaSearchListResp(val *SchemaSearchListResp) *NullableSchemaSearchListResp { - return &NullableSchemaSearchListResp{value: val, isSet: true} -} - -func (v NullableSchemaSearchListResp) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaSearchListResp) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_search_object.go b/model_schema_search_object.go index cd9d6fc..e89baac 100644 --- a/model_schema_search_object.go +++ b/model_schema_search_object.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -28,7 +28,7 @@ type SchemaSearchObject struct { // tags Tags []SchemaTagResp `json:"tags,omitempty"` Title *string `json:"title,omitempty"` - UserInfo *SchemaSearchObjectUserInfo `json:"user_info,omitempty"` + UserInfo *SchemaSearchObjectUser `json:"user_info,omitempty"` VoteCount *int32 `json:"vote_count,omitempty"` } @@ -338,9 +338,9 @@ func (o *SchemaSearchObject) SetTitle(v string) { } // GetUserInfo returns the UserInfo field value if set, zero value otherwise. -func (o *SchemaSearchObject) GetUserInfo() SchemaSearchObjectUserInfo { +func (o *SchemaSearchObject) GetUserInfo() SchemaSearchObjectUser { if o == nil || IsNil(o.UserInfo) { - var ret SchemaSearchObjectUserInfo + var ret SchemaSearchObjectUser return ret } return *o.UserInfo @@ -348,7 +348,7 @@ func (o *SchemaSearchObject) GetUserInfo() SchemaSearchObjectUserInfo { // GetUserInfoOk returns a tuple with the UserInfo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SchemaSearchObject) GetUserInfoOk() (*SchemaSearchObjectUserInfo, bool) { +func (o *SchemaSearchObject) GetUserInfoOk() (*SchemaSearchObjectUser, bool) { if o == nil || IsNil(o.UserInfo) { return nil, false } @@ -364,8 +364,8 @@ func (o *SchemaSearchObject) HasUserInfo() bool { return false } -// SetUserInfo gets a reference to the given SchemaSearchObjectUserInfo and assigns it to the UserInfo field. -func (o *SchemaSearchObject) SetUserInfo(v SchemaSearchObjectUserInfo) { +// SetUserInfo gets a reference to the given SchemaSearchObjectUser and assigns it to the UserInfo field. +func (o *SchemaSearchObject) SetUserInfo(v SchemaSearchObjectUser) { o.UserInfo = &v } diff --git a/model_schema_search_object_user.go b/model_schema_search_object_user.go new file mode 100644 index 0000000..0e0f966 --- /dev/null +++ b/model_schema_search_object_user.go @@ -0,0 +1,268 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the SchemaSearchObjectUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSearchObjectUser{} + +// SchemaSearchObjectUser struct for SchemaSearchObjectUser +type SchemaSearchObjectUser struct { + DisplayName *string `json:"display_name,omitempty"` + Id *string `json:"id,omitempty"` + Rank *int32 `json:"rank,omitempty"` + Status *string `json:"status,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewSchemaSearchObjectUser instantiates a new SchemaSearchObjectUser object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaSearchObjectUser() *SchemaSearchObjectUser { + this := SchemaSearchObjectUser{} + return &this +} + +// NewSchemaSearchObjectUserWithDefaults instantiates a new SchemaSearchObjectUser object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaSearchObjectUserWithDefaults() *SchemaSearchObjectUser { + this := SchemaSearchObjectUser{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaSearchObjectUser) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchObjectUser) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SchemaSearchObjectUser) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *SchemaSearchObjectUser) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaSearchObjectUser) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchObjectUser) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SchemaSearchObjectUser) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SchemaSearchObjectUser) SetId(v string) { + o.Id = &v +} + +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *SchemaSearchObjectUser) GetRank() int32 { + if o == nil || IsNil(o.Rank) { + var ret int32 + return ret + } + return *o.Rank +} + +// GetRankOk returns a tuple with the Rank field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchObjectUser) GetRankOk() (*int32, bool) { + if o == nil || IsNil(o.Rank) { + return nil, false + } + return o.Rank, true +} + +// HasRank returns a boolean if a field has been set. +func (o *SchemaSearchObjectUser) HasRank() bool { + if o != nil && !IsNil(o.Rank) { + return true + } + + return false +} + +// SetRank gets a reference to the given int32 and assigns it to the Rank field. +func (o *SchemaSearchObjectUser) SetRank(v int32) { + o.Rank = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaSearchObjectUser) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchObjectUser) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SchemaSearchObjectUser) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *SchemaSearchObjectUser) SetStatus(v string) { + o.Status = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaSearchObjectUser) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchObjectUser) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *SchemaSearchObjectUser) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *SchemaSearchObjectUser) SetUsername(v string) { + o.Username = &v +} + +func (o SchemaSearchObjectUser) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSearchObjectUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Rank) { + toSerialize["rank"] = o.Rank + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableSchemaSearchObjectUser struct { + value *SchemaSearchObjectUser + isSet bool +} + +func (v NullableSchemaSearchObjectUser) Get() *SchemaSearchObjectUser { + return v.value +} + +func (v *NullableSchemaSearchObjectUser) Set(val *SchemaSearchObjectUser) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSearchObjectUser) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSearchObjectUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSearchObjectUser(val *SchemaSearchObjectUser) *NullableSchemaSearchObjectUser { + return &NullableSchemaSearchObjectUser{value: val, isSet: true} +} + +func (v NullableSchemaSearchObjectUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSearchObjectUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_search_object_user_info.go b/model_schema_search_object_user_info.go deleted file mode 100644 index 84ceed1..0000000 --- a/model_schema_search_object_user_info.go +++ /dev/null @@ -1,421 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaSearchObjectUserInfo type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaSearchObjectUserInfo{} - -// SchemaSearchObjectUserInfo user info -type SchemaSearchObjectUserInfo struct { - // avatar - Avatar *string `json:"avatar,omitempty"` - // display_name - DisplayName *string `json:"display_name,omitempty"` - // user_id - Id *string `json:"id,omitempty"` - // ip info - IpInfo *string `json:"ip_info,omitempty"` - // location - Location *string `json:"location,omitempty"` - // rank - Rank *int32 `json:"rank,omitempty"` - // status - Status *string `json:"status,omitempty"` - // name - Username *string `json:"username,omitempty"` - // website - Website *string `json:"website,omitempty"` -} - -// NewSchemaSearchObjectUserInfo instantiates a new SchemaSearchObjectUserInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaSearchObjectUserInfo() *SchemaSearchObjectUserInfo { - this := SchemaSearchObjectUserInfo{} - return &this -} - -// NewSchemaSearchObjectUserInfoWithDefaults instantiates a new SchemaSearchObjectUserInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaSearchObjectUserInfoWithDefaults() *SchemaSearchObjectUserInfo { - this := SchemaSearchObjectUserInfo{} - return &this -} - -// GetAvatar returns the Avatar field value if set, zero value otherwise. -func (o *SchemaSearchObjectUserInfo) GetAvatar() string { - if o == nil || IsNil(o.Avatar) { - var ret string - return ret - } - return *o.Avatar -} - -// GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchObjectUserInfo) GetAvatarOk() (*string, bool) { - if o == nil || IsNil(o.Avatar) { - return nil, false - } - return o.Avatar, true -} - -// HasAvatar returns a boolean if a field has been set. -func (o *SchemaSearchObjectUserInfo) HasAvatar() bool { - if o != nil && !IsNil(o.Avatar) { - return true - } - - return false -} - -// SetAvatar gets a reference to the given string and assigns it to the Avatar field. -func (o *SchemaSearchObjectUserInfo) SetAvatar(v string) { - o.Avatar = &v -} - -// GetDisplayName returns the DisplayName field value if set, zero value otherwise. -func (o *SchemaSearchObjectUserInfo) GetDisplayName() string { - if o == nil || IsNil(o.DisplayName) { - var ret string - return ret - } - return *o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchObjectUserInfo) GetDisplayNameOk() (*string, bool) { - if o == nil || IsNil(o.DisplayName) { - return nil, false - } - return o.DisplayName, true -} - -// HasDisplayName returns a boolean if a field has been set. -func (o *SchemaSearchObjectUserInfo) HasDisplayName() bool { - if o != nil && !IsNil(o.DisplayName) { - return true - } - - return false -} - -// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. -func (o *SchemaSearchObjectUserInfo) SetDisplayName(v string) { - o.DisplayName = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *SchemaSearchObjectUserInfo) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchObjectUserInfo) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *SchemaSearchObjectUserInfo) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *SchemaSearchObjectUserInfo) SetId(v string) { - o.Id = &v -} - -// GetIpInfo returns the IpInfo field value if set, zero value otherwise. -func (o *SchemaSearchObjectUserInfo) GetIpInfo() string { - if o == nil || IsNil(o.IpInfo) { - var ret string - return ret - } - return *o.IpInfo -} - -// GetIpInfoOk returns a tuple with the IpInfo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchObjectUserInfo) GetIpInfoOk() (*string, bool) { - if o == nil || IsNil(o.IpInfo) { - return nil, false - } - return o.IpInfo, true -} - -// HasIpInfo returns a boolean if a field has been set. -func (o *SchemaSearchObjectUserInfo) HasIpInfo() bool { - if o != nil && !IsNil(o.IpInfo) { - return true - } - - return false -} - -// SetIpInfo gets a reference to the given string and assigns it to the IpInfo field. -func (o *SchemaSearchObjectUserInfo) SetIpInfo(v string) { - o.IpInfo = &v -} - -// GetLocation returns the Location field value if set, zero value otherwise. -func (o *SchemaSearchObjectUserInfo) GetLocation() string { - if o == nil || IsNil(o.Location) { - var ret string - return ret - } - return *o.Location -} - -// GetLocationOk returns a tuple with the Location field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchObjectUserInfo) GetLocationOk() (*string, bool) { - if o == nil || IsNil(o.Location) { - return nil, false - } - return o.Location, true -} - -// HasLocation returns a boolean if a field has been set. -func (o *SchemaSearchObjectUserInfo) HasLocation() bool { - if o != nil && !IsNil(o.Location) { - return true - } - - return false -} - -// SetLocation gets a reference to the given string and assigns it to the Location field. -func (o *SchemaSearchObjectUserInfo) SetLocation(v string) { - o.Location = &v -} - -// GetRank returns the Rank field value if set, zero value otherwise. -func (o *SchemaSearchObjectUserInfo) GetRank() int32 { - if o == nil || IsNil(o.Rank) { - var ret int32 - return ret - } - return *o.Rank -} - -// GetRankOk returns a tuple with the Rank field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchObjectUserInfo) GetRankOk() (*int32, bool) { - if o == nil || IsNil(o.Rank) { - return nil, false - } - return o.Rank, true -} - -// HasRank returns a boolean if a field has been set. -func (o *SchemaSearchObjectUserInfo) HasRank() bool { - if o != nil && !IsNil(o.Rank) { - return true - } - - return false -} - -// SetRank gets a reference to the given int32 and assigns it to the Rank field. -func (o *SchemaSearchObjectUserInfo) SetRank(v int32) { - o.Rank = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *SchemaSearchObjectUserInfo) GetStatus() string { - if o == nil || IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchObjectUserInfo) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *SchemaSearchObjectUserInfo) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *SchemaSearchObjectUserInfo) SetStatus(v string) { - o.Status = &v -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *SchemaSearchObjectUserInfo) GetUsername() string { - if o == nil || IsNil(o.Username) { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchObjectUserInfo) GetUsernameOk() (*string, bool) { - if o == nil || IsNil(o.Username) { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *SchemaSearchObjectUserInfo) HasUsername() bool { - if o != nil && !IsNil(o.Username) { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *SchemaSearchObjectUserInfo) SetUsername(v string) { - o.Username = &v -} - -// GetWebsite returns the Website field value if set, zero value otherwise. -func (o *SchemaSearchObjectUserInfo) GetWebsite() string { - if o == nil || IsNil(o.Website) { - var ret string - return ret - } - return *o.Website -} - -// GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchObjectUserInfo) GetWebsiteOk() (*string, bool) { - if o == nil || IsNil(o.Website) { - return nil, false - } - return o.Website, true -} - -// HasWebsite returns a boolean if a field has been set. -func (o *SchemaSearchObjectUserInfo) HasWebsite() bool { - if o != nil && !IsNil(o.Website) { - return true - } - - return false -} - -// SetWebsite gets a reference to the given string and assigns it to the Website field. -func (o *SchemaSearchObjectUserInfo) SetWebsite(v string) { - o.Website = &v -} - -func (o SchemaSearchObjectUserInfo) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaSearchObjectUserInfo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Avatar) { - toSerialize["avatar"] = o.Avatar - } - if !IsNil(o.DisplayName) { - toSerialize["display_name"] = o.DisplayName - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.IpInfo) { - toSerialize["ip_info"] = o.IpInfo - } - if !IsNil(o.Location) { - toSerialize["location"] = o.Location - } - if !IsNil(o.Rank) { - toSerialize["rank"] = o.Rank - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.Username) { - toSerialize["username"] = o.Username - } - if !IsNil(o.Website) { - toSerialize["website"] = o.Website - } - return toSerialize, nil -} - -type NullableSchemaSearchObjectUserInfo struct { - value *SchemaSearchObjectUserInfo - isSet bool -} - -func (v NullableSchemaSearchObjectUserInfo) Get() *SchemaSearchObjectUserInfo { - return v.value -} - -func (v *NullableSchemaSearchObjectUserInfo) Set(val *SchemaSearchObjectUserInfo) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaSearchObjectUserInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaSearchObjectUserInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaSearchObjectUserInfo(val *SchemaSearchObjectUserInfo) *NullableSchemaSearchObjectUserInfo { - return &NullableSchemaSearchObjectUserInfo{value: val, isSet: true} -} - -func (v NullableSchemaSearchObjectUserInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaSearchObjectUserInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_search_resp.go b/model_schema_search_resp.go index 79b503c..899344a 100644 --- a/model_schema_search_resp.go +++ b/model_schema_search_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,9 +17,9 @@ var _ MappedNullable = &SchemaSearchResp{} // SchemaSearchResp struct for SchemaSearchResp type SchemaSearchResp struct { - Object *SchemaSearchRespObject `json:"object,omitempty"` - // object_type - ObjectType *string `json:"object_type,omitempty"` + Count *int32 `json:"count,omitempty"` + // search response + List []SchemaSearchResult `json:"list,omitempty"` } // NewSchemaSearchResp instantiates a new SchemaSearchResp object @@ -39,68 +39,68 @@ func NewSchemaSearchRespWithDefaults() *SchemaSearchResp { return &this } -// GetObject returns the Object field value if set, zero value otherwise. -func (o *SchemaSearchResp) GetObject() SchemaSearchRespObject { - if o == nil || IsNil(o.Object) { - var ret SchemaSearchRespObject +// GetCount returns the Count field value if set, zero value otherwise. +func (o *SchemaSearchResp) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 return ret } - return *o.Object + return *o.Count } -// GetObjectOk returns a tuple with the Object field value if set, nil otherwise +// GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SchemaSearchResp) GetObjectOk() (*SchemaSearchRespObject, bool) { - if o == nil || IsNil(o.Object) { +func (o *SchemaSearchResp) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { return nil, false } - return o.Object, true + return o.Count, true } -// HasObject returns a boolean if a field has been set. -func (o *SchemaSearchResp) HasObject() bool { - if o != nil && !IsNil(o.Object) { +// HasCount returns a boolean if a field has been set. +func (o *SchemaSearchResp) HasCount() bool { + if o != nil && !IsNil(o.Count) { return true } return false } -// SetObject gets a reference to the given SchemaSearchRespObject and assigns it to the Object field. -func (o *SchemaSearchResp) SetObject(v SchemaSearchRespObject) { - o.Object = &v +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *SchemaSearchResp) SetCount(v int32) { + o.Count = &v } -// GetObjectType returns the ObjectType field value if set, zero value otherwise. -func (o *SchemaSearchResp) GetObjectType() string { - if o == nil || IsNil(o.ObjectType) { - var ret string +// GetList returns the List field value if set, zero value otherwise. +func (o *SchemaSearchResp) GetList() []SchemaSearchResult { + if o == nil || IsNil(o.List) { + var ret []SchemaSearchResult return ret } - return *o.ObjectType + return o.List } -// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// GetListOk returns a tuple with the List field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SchemaSearchResp) GetObjectTypeOk() (*string, bool) { - if o == nil || IsNil(o.ObjectType) { +func (o *SchemaSearchResp) GetListOk() ([]SchemaSearchResult, bool) { + if o == nil || IsNil(o.List) { return nil, false } - return o.ObjectType, true + return o.List, true } -// HasObjectType returns a boolean if a field has been set. -func (o *SchemaSearchResp) HasObjectType() bool { - if o != nil && !IsNil(o.ObjectType) { +// HasList returns a boolean if a field has been set. +func (o *SchemaSearchResp) HasList() bool { + if o != nil && !IsNil(o.List) { return true } return false } -// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. -func (o *SchemaSearchResp) SetObjectType(v string) { - o.ObjectType = &v +// SetList gets a reference to the given []SchemaSearchResult and assigns it to the List field. +func (o *SchemaSearchResp) SetList(v []SchemaSearchResult) { + o.List = v } func (o SchemaSearchResp) MarshalJSON() ([]byte, error) { @@ -113,11 +113,11 @@ func (o SchemaSearchResp) MarshalJSON() ([]byte, error) { func (o SchemaSearchResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Object) { - toSerialize["object"] = o.Object + if !IsNil(o.Count) { + toSerialize["count"] = o.Count } - if !IsNil(o.ObjectType) { - toSerialize["object_type"] = o.ObjectType + if !IsNil(o.List) { + toSerialize["list"] = o.List } return toSerialize, nil } diff --git a/model_schema_search_resp_object.go b/model_schema_search_resp_object.go deleted file mode 100644 index b1a6ae9..0000000 --- a/model_schema_search_resp_object.go +++ /dev/null @@ -1,486 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaSearchRespObject type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaSearchRespObject{} - -// SchemaSearchRespObject this object -type SchemaSearchRespObject struct { - Accepted *bool `json:"accepted,omitempty"` - AnswerCount *int32 `json:"answer_count,omitempty"` - CreatedAt *int32 `json:"created_at,omitempty"` - Excerpt *string `json:"excerpt,omitempty"` - Id *string `json:"id,omitempty"` - QuestionId *string `json:"question_id,omitempty"` - // Status - Status *string `json:"status,omitempty"` - // tags - Tags []SchemaTagResp `json:"tags,omitempty"` - Title *string `json:"title,omitempty"` - UserInfo *SchemaSearchObjectUserInfo `json:"user_info,omitempty"` - VoteCount *int32 `json:"vote_count,omitempty"` -} - -// NewSchemaSearchRespObject instantiates a new SchemaSearchRespObject object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaSearchRespObject() *SchemaSearchRespObject { - this := SchemaSearchRespObject{} - return &this -} - -// NewSchemaSearchRespObjectWithDefaults instantiates a new SchemaSearchRespObject object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaSearchRespObjectWithDefaults() *SchemaSearchRespObject { - this := SchemaSearchRespObject{} - return &this -} - -// GetAccepted returns the Accepted field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetAccepted() bool { - if o == nil || IsNil(o.Accepted) { - var ret bool - return ret - } - return *o.Accepted -} - -// GetAcceptedOk returns a tuple with the Accepted field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetAcceptedOk() (*bool, bool) { - if o == nil || IsNil(o.Accepted) { - return nil, false - } - return o.Accepted, true -} - -// HasAccepted returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasAccepted() bool { - if o != nil && !IsNil(o.Accepted) { - return true - } - - return false -} - -// SetAccepted gets a reference to the given bool and assigns it to the Accepted field. -func (o *SchemaSearchRespObject) SetAccepted(v bool) { - o.Accepted = &v -} - -// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetAnswerCount() int32 { - if o == nil || IsNil(o.AnswerCount) { - var ret int32 - return ret - } - return *o.AnswerCount -} - -// GetAnswerCountOk returns a tuple with the AnswerCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetAnswerCountOk() (*int32, bool) { - if o == nil || IsNil(o.AnswerCount) { - return nil, false - } - return o.AnswerCount, true -} - -// HasAnswerCount returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasAnswerCount() bool { - if o != nil && !IsNil(o.AnswerCount) { - return true - } - - return false -} - -// SetAnswerCount gets a reference to the given int32 and assigns it to the AnswerCount field. -func (o *SchemaSearchRespObject) SetAnswerCount(v int32) { - o.AnswerCount = &v -} - -// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetCreatedAt() int32 { - if o == nil || IsNil(o.CreatedAt) { - var ret int32 - return ret - } - return *o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetCreatedAtOk() (*int32, bool) { - if o == nil || IsNil(o.CreatedAt) { - return nil, false - } - return o.CreatedAt, true -} - -// HasCreatedAt returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasCreatedAt() bool { - if o != nil && !IsNil(o.CreatedAt) { - return true - } - - return false -} - -// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. -func (o *SchemaSearchRespObject) SetCreatedAt(v int32) { - o.CreatedAt = &v -} - -// GetExcerpt returns the Excerpt field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetExcerpt() string { - if o == nil || IsNil(o.Excerpt) { - var ret string - return ret - } - return *o.Excerpt -} - -// GetExcerptOk returns a tuple with the Excerpt field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetExcerptOk() (*string, bool) { - if o == nil || IsNil(o.Excerpt) { - return nil, false - } - return o.Excerpt, true -} - -// HasExcerpt returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasExcerpt() bool { - if o != nil && !IsNil(o.Excerpt) { - return true - } - - return false -} - -// SetExcerpt gets a reference to the given string and assigns it to the Excerpt field. -func (o *SchemaSearchRespObject) SetExcerpt(v string) { - o.Excerpt = &v -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *SchemaSearchRespObject) SetId(v string) { - o.Id = &v -} - -// GetQuestionId returns the QuestionId field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetQuestionId() string { - if o == nil || IsNil(o.QuestionId) { - var ret string - return ret - } - return *o.QuestionId -} - -// GetQuestionIdOk returns a tuple with the QuestionId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetQuestionIdOk() (*string, bool) { - if o == nil || IsNil(o.QuestionId) { - return nil, false - } - return o.QuestionId, true -} - -// HasQuestionId returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasQuestionId() bool { - if o != nil && !IsNil(o.QuestionId) { - return true - } - - return false -} - -// SetQuestionId gets a reference to the given string and assigns it to the QuestionId field. -func (o *SchemaSearchRespObject) SetQuestionId(v string) { - o.QuestionId = &v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetStatus() string { - if o == nil || IsNil(o.Status) { - var ret string - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetStatusOk() (*string, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given string and assigns it to the Status field. -func (o *SchemaSearchRespObject) SetStatus(v string) { - o.Status = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetTags() []SchemaTagResp { - if o == nil || IsNil(o.Tags) { - var ret []SchemaTagResp - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetTagsOk() ([]SchemaTagResp, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []SchemaTagResp and assigns it to the Tags field. -func (o *SchemaSearchRespObject) SetTags(v []SchemaTagResp) { - o.Tags = v -} - -// GetTitle returns the Title field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetTitle() string { - if o == nil || IsNil(o.Title) { - var ret string - return ret - } - return *o.Title -} - -// GetTitleOk returns a tuple with the Title field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetTitleOk() (*string, bool) { - if o == nil || IsNil(o.Title) { - return nil, false - } - return o.Title, true -} - -// HasTitle returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasTitle() bool { - if o != nil && !IsNil(o.Title) { - return true - } - - return false -} - -// SetTitle gets a reference to the given string and assigns it to the Title field. -func (o *SchemaSearchRespObject) SetTitle(v string) { - o.Title = &v -} - -// GetUserInfo returns the UserInfo field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetUserInfo() SchemaSearchObjectUserInfo { - if o == nil || IsNil(o.UserInfo) { - var ret SchemaSearchObjectUserInfo - return ret - } - return *o.UserInfo -} - -// GetUserInfoOk returns a tuple with the UserInfo field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetUserInfoOk() (*SchemaSearchObjectUserInfo, bool) { - if o == nil || IsNil(o.UserInfo) { - return nil, false - } - return o.UserInfo, true -} - -// HasUserInfo returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasUserInfo() bool { - if o != nil && !IsNil(o.UserInfo) { - return true - } - - return false -} - -// SetUserInfo gets a reference to the given SchemaSearchObjectUserInfo and assigns it to the UserInfo field. -func (o *SchemaSearchRespObject) SetUserInfo(v SchemaSearchObjectUserInfo) { - o.UserInfo = &v -} - -// GetVoteCount returns the VoteCount field value if set, zero value otherwise. -func (o *SchemaSearchRespObject) GetVoteCount() int32 { - if o == nil || IsNil(o.VoteCount) { - var ret int32 - return ret - } - return *o.VoteCount -} - -// GetVoteCountOk returns a tuple with the VoteCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaSearchRespObject) GetVoteCountOk() (*int32, bool) { - if o == nil || IsNil(o.VoteCount) { - return nil, false - } - return o.VoteCount, true -} - -// HasVoteCount returns a boolean if a field has been set. -func (o *SchemaSearchRespObject) HasVoteCount() bool { - if o != nil && !IsNil(o.VoteCount) { - return true - } - - return false -} - -// SetVoteCount gets a reference to the given int32 and assigns it to the VoteCount field. -func (o *SchemaSearchRespObject) SetVoteCount(v int32) { - o.VoteCount = &v -} - -func (o SchemaSearchRespObject) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaSearchRespObject) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Accepted) { - toSerialize["accepted"] = o.Accepted - } - if !IsNil(o.AnswerCount) { - toSerialize["answer_count"] = o.AnswerCount - } - if !IsNil(o.CreatedAt) { - toSerialize["created_at"] = o.CreatedAt - } - if !IsNil(o.Excerpt) { - toSerialize["excerpt"] = o.Excerpt - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.QuestionId) { - toSerialize["question_id"] = o.QuestionId - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.Title) { - toSerialize["title"] = o.Title - } - if !IsNil(o.UserInfo) { - toSerialize["user_info"] = o.UserInfo - } - if !IsNil(o.VoteCount) { - toSerialize["vote_count"] = o.VoteCount - } - return toSerialize, nil -} - -type NullableSchemaSearchRespObject struct { - value *SchemaSearchRespObject - isSet bool -} - -func (v NullableSchemaSearchRespObject) Get() *SchemaSearchRespObject { - return v.value -} - -func (v *NullableSchemaSearchRespObject) Set(val *SchemaSearchRespObject) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaSearchRespObject) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaSearchRespObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaSearchRespObject(val *SchemaSearchRespObject) *NullableSchemaSearchRespObject { - return &NullableSchemaSearchRespObject{value: val, isSet: true} -} - -func (v NullableSchemaSearchRespObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaSearchRespObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_search_result.go b/model_schema_search_result.go new file mode 100644 index 0000000..f72e1ba --- /dev/null +++ b/model_schema_search_result.go @@ -0,0 +1,161 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the SchemaSearchResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSearchResult{} + +// SchemaSearchResult struct for SchemaSearchResult +type SchemaSearchResult struct { + Object *SchemaSearchObject `json:"object,omitempty"` + // object_type + ObjectType *string `json:"object_type,omitempty"` +} + +// NewSchemaSearchResult instantiates a new SchemaSearchResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaSearchResult() *SchemaSearchResult { + this := SchemaSearchResult{} + return &this +} + +// NewSchemaSearchResultWithDefaults instantiates a new SchemaSearchResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaSearchResultWithDefaults() *SchemaSearchResult { + this := SchemaSearchResult{} + return &this +} + +// GetObject returns the Object field value if set, zero value otherwise. +func (o *SchemaSearchResult) GetObject() SchemaSearchObject { + if o == nil || IsNil(o.Object) { + var ret SchemaSearchObject + return ret + } + return *o.Object +} + +// GetObjectOk returns a tuple with the Object field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchResult) GetObjectOk() (*SchemaSearchObject, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return o.Object, true +} + +// HasObject returns a boolean if a field has been set. +func (o *SchemaSearchResult) HasObject() bool { + if o != nil && !IsNil(o.Object) { + return true + } + + return false +} + +// SetObject gets a reference to the given SchemaSearchObject and assigns it to the Object field. +func (o *SchemaSearchResult) SetObject(v SchemaSearchObject) { + o.Object = &v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *SchemaSearchResult) GetObjectType() string { + if o == nil || IsNil(o.ObjectType) { + var ret string + return ret + } + return *o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchResult) GetObjectTypeOk() (*string, bool) { + if o == nil || IsNil(o.ObjectType) { + return nil, false + } + return o.ObjectType, true +} + +// HasObjectType returns a boolean if a field has been set. +func (o *SchemaSearchResult) HasObjectType() bool { + if o != nil && !IsNil(o.ObjectType) { + return true + } + + return false +} + +// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. +func (o *SchemaSearchResult) SetObjectType(v string) { + o.ObjectType = &v +} + +func (o SchemaSearchResult) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSearchResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Object) { + toSerialize["object"] = o.Object + } + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + return toSerialize, nil +} + +type NullableSchemaSearchResult struct { + value *SchemaSearchResult + isSet bool +} + +func (v NullableSchemaSearchResult) Get() *SchemaSearchResult { + return v.value +} + +func (v *NullableSchemaSearchResult) Set(val *SchemaSearchResult) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSearchResult) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSearchResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSearchResult(val *SchemaSearchResult) *NullableSchemaSearchResult { + return &NullableSchemaSearchResult{value: val, isSet: true} +} + +func (v NullableSchemaSearchResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSearchResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_send_user_activation_req.go b/model_schema_send_user_activation_req.go index 43b948b..1926767 100644 --- a/model_schema_send_user_activation_req.go +++ b/model_schema_send_user_activation_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_branding_req.go b/model_schema_site_branding_req.go index 82a0821..6be09c4 100644 --- a/model_schema_site_branding_req.go +++ b/model_schema_site_branding_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_branding_resp.go b/model_schema_site_branding_resp.go index f8517a5..ffcf54c 100644 --- a/model_schema_site_branding_resp.go +++ b/model_schema_site_branding_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_custom_css_html_req.go b/model_schema_site_custom_css_html_req.go index 6149855..81b607b 100644 --- a/model_schema_site_custom_css_html_req.go +++ b/model_schema_site_custom_css_html_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_custom_css_html_resp.go b/model_schema_site_custom_css_html_resp.go index 33e4a97..b0f1454 100644 --- a/model_schema_site_custom_css_html_resp.go +++ b/model_schema_site_custom_css_html_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_general_req.go b/model_schema_site_general_req.go index a65a616..cdb2bb2 100644 --- a/model_schema_site_general_req.go +++ b/model_schema_site_general_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_general_resp.go b/model_schema_site_general_resp.go index c1e83c8..52b7678 100644 --- a/model_schema_site_general_resp.go +++ b/model_schema_site_general_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_info_resp.go b/model_schema_site_info_resp.go index 33b6e99..349eeeb 100644 --- a/model_schema_site_info_resp.go +++ b/model_schema_site_info_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_interface_req.go b/model_schema_site_interface_req.go index 692fb56..0367174 100644 --- a/model_schema_site_interface_req.go +++ b/model_schema_site_interface_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_interface_resp.go b/model_schema_site_interface_resp.go index e7f422b..c4d77ba 100644 --- a/model_schema_site_interface_resp.go +++ b/model_schema_site_interface_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_legal_req.go b/model_schema_site_legal_req.go index 726dff9..026118f 100644 --- a/model_schema_site_legal_req.go +++ b/model_schema_site_legal_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_legal_resp.go b/model_schema_site_legal_resp.go index 288fe58..248d21c 100644 --- a/model_schema_site_legal_resp.go +++ b/model_schema_site_legal_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_login_req.go b/model_schema_site_login_req.go index 3c8fd44..238da0b 100644 --- a/model_schema_site_login_req.go +++ b/model_schema_site_login_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_login_resp.go b/model_schema_site_login_resp.go index d401fab..946ac66 100644 --- a/model_schema_site_login_resp.go +++ b/model_schema_site_login_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_seo_req.go b/model_schema_site_seo_req.go index bf6d0a6..aaef0a6 100644 --- a/model_schema_site_seo_req.go +++ b/model_schema_site_seo_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_seo_resp.go b/model_schema_site_seo_resp.go index c55debd..ef7dac8 100644 --- a/model_schema_site_seo_resp.go +++ b/model_schema_site_seo_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_theme_req.go b/model_schema_site_theme_req.go index fbc6304..c117f69 100644 --- a/model_schema_site_theme_req.go +++ b/model_schema_site_theme_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_theme_resp.go b/model_schema_site_theme_resp.go index 77e154c..ce41af0 100644 --- a/model_schema_site_theme_resp.go +++ b/model_schema_site_theme_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_users_req.go b/model_schema_site_users_req.go index 8e355d4..da1235f 100644 --- a/model_schema_site_users_req.go +++ b/model_schema_site_users_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_users_resp.go b/model_schema_site_users_resp.go index 586a5e5..2c158d8 100644 --- a/model_schema_site_users_resp.go +++ b/model_schema_site_users_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_write_req.go b/model_schema_site_write_req.go index 61103ad..b7065da 100644 --- a/model_schema_site_write_req.go +++ b/model_schema_site_write_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_site_write_resp.go b/model_schema_site_write_resp.go index 848fca5..5f06e3a 100644 --- a/model_schema_site_write_resp.go +++ b/model_schema_site_write_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_tag_item.go b/model_schema_tag_item.go index 4feb409..64abb58 100644 --- a/model_schema_tag_item.go +++ b/model_schema_tag_item.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_tag_resp.go b/model_schema_tag_resp.go index ce1a03f..eb2582e 100644 --- a/model_schema_tag_resp.go +++ b/model_schema_tag_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_tag_synonym.go b/model_schema_tag_synonym.go index e453e51..cbc325d 100644 --- a/model_schema_tag_synonym.go +++ b/model_schema_tag_synonym.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_theme_option.go b/model_schema_theme_option.go index a6c96ce..3585481 100644 --- a/model_schema_theme_option.go +++ b/model_schema_theme_option.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_ui_option_action.go b/model_schema_ui_option_action.go index 6ee76b4..b42dcb6 100644 --- a/model_schema_ui_option_action.go +++ b/model_schema_ui_option_action.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_unreviewed_revision_info_info.go b/model_schema_unreviewed_revision_info_info.go index 77e0ad7..ab54b63 100644 --- a/model_schema_unreviewed_revision_info_info.go +++ b/model_schema_unreviewed_revision_info_info.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_comment_req.go b/model_schema_update_comment_req.go index c5b6d6e..f375e64 100644 --- a/model_schema_update_comment_req.go +++ b/model_schema_update_comment_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -18,7 +18,7 @@ var _ MappedNullable = &SchemaUpdateCommentReq{} // SchemaUpdateCommentReq struct for SchemaUpdateCommentReq type SchemaUpdateCommentReq struct { CaptchaCode *string `json:"captcha_code,omitempty"` - // captcha_id + // whether user can delete it CaptchaId *string `json:"captcha_id,omitempty"` // comment id CommentId string `json:"comment_id"` diff --git a/model_schema_update_follow_tags_req.go b/model_schema_update_follow_tags_req.go index 9a1910c..c45476b 100644 --- a/model_schema_update_follow_tags_req.go +++ b/model_schema_update_follow_tags_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_info_request.go b/model_schema_update_info_request.go index 778e3df..5a680fe 100644 --- a/model_schema_update_info_request.go +++ b/model_schema_update_info_request.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,7 +17,7 @@ var _ MappedNullable = &SchemaUpdateInfoRequest{} // SchemaUpdateInfoRequest struct for SchemaUpdateInfoRequest type SchemaUpdateInfoRequest struct { - Avatar *SchemaUpdateInfoRequestAvatar `json:"avatar,omitempty"` + Avatar *SchemaAvatarInfo `json:"avatar,omitempty"` // bio Bio *string `json:"bio,omitempty"` // display_name @@ -48,9 +48,9 @@ func NewSchemaUpdateInfoRequestWithDefaults() *SchemaUpdateInfoRequest { } // GetAvatar returns the Avatar field value if set, zero value otherwise. -func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaUpdateInfoRequestAvatar { +func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaAvatarInfo { if o == nil || IsNil(o.Avatar) { - var ret SchemaUpdateInfoRequestAvatar + var ret SchemaAvatarInfo return ret } return *o.Avatar @@ -58,7 +58,7 @@ func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaUpdateInfoRequestAvatar { // GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaUpdateInfoRequestAvatar, bool) { +func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaAvatarInfo, bool) { if o == nil || IsNil(o.Avatar) { return nil, false } @@ -74,8 +74,8 @@ func (o *SchemaUpdateInfoRequest) HasAvatar() bool { return false } -// SetAvatar gets a reference to the given SchemaUpdateInfoRequestAvatar and assigns it to the Avatar field. -func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaUpdateInfoRequestAvatar) { +// SetAvatar gets a reference to the given SchemaAvatarInfo and assigns it to the Avatar field. +func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaAvatarInfo) { o.Avatar = &v } diff --git a/model_schema_update_info_request_avatar.go b/model_schema_update_info_request_avatar.go deleted file mode 100644 index fea12f5..0000000 --- a/model_schema_update_info_request_avatar.go +++ /dev/null @@ -1,196 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaUpdateInfoRequestAvatar type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaUpdateInfoRequestAvatar{} - -// SchemaUpdateInfoRequestAvatar avatar -type SchemaUpdateInfoRequestAvatar struct { - Custom *string `json:"custom,omitempty"` - Gravatar *string `json:"gravatar,omitempty"` - Type *string `json:"type,omitempty"` -} - -// NewSchemaUpdateInfoRequestAvatar instantiates a new SchemaUpdateInfoRequestAvatar object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaUpdateInfoRequestAvatar() *SchemaUpdateInfoRequestAvatar { - this := SchemaUpdateInfoRequestAvatar{} - return &this -} - -// NewSchemaUpdateInfoRequestAvatarWithDefaults instantiates a new SchemaUpdateInfoRequestAvatar object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaUpdateInfoRequestAvatarWithDefaults() *SchemaUpdateInfoRequestAvatar { - this := SchemaUpdateInfoRequestAvatar{} - return &this -} - -// GetCustom returns the Custom field value if set, zero value otherwise. -func (o *SchemaUpdateInfoRequestAvatar) GetCustom() string { - if o == nil || IsNil(o.Custom) { - var ret string - return ret - } - return *o.Custom -} - -// GetCustomOk returns a tuple with the Custom field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaUpdateInfoRequestAvatar) GetCustomOk() (*string, bool) { - if o == nil || IsNil(o.Custom) { - return nil, false - } - return o.Custom, true -} - -// HasCustom returns a boolean if a field has been set. -func (o *SchemaUpdateInfoRequestAvatar) HasCustom() bool { - if o != nil && !IsNil(o.Custom) { - return true - } - - return false -} - -// SetCustom gets a reference to the given string and assigns it to the Custom field. -func (o *SchemaUpdateInfoRequestAvatar) SetCustom(v string) { - o.Custom = &v -} - -// GetGravatar returns the Gravatar field value if set, zero value otherwise. -func (o *SchemaUpdateInfoRequestAvatar) GetGravatar() string { - if o == nil || IsNil(o.Gravatar) { - var ret string - return ret - } - return *o.Gravatar -} - -// GetGravatarOk returns a tuple with the Gravatar field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaUpdateInfoRequestAvatar) GetGravatarOk() (*string, bool) { - if o == nil || IsNil(o.Gravatar) { - return nil, false - } - return o.Gravatar, true -} - -// HasGravatar returns a boolean if a field has been set. -func (o *SchemaUpdateInfoRequestAvatar) HasGravatar() bool { - if o != nil && !IsNil(o.Gravatar) { - return true - } - - return false -} - -// SetGravatar gets a reference to the given string and assigns it to the Gravatar field. -func (o *SchemaUpdateInfoRequestAvatar) SetGravatar(v string) { - o.Gravatar = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *SchemaUpdateInfoRequestAvatar) GetType() string { - if o == nil || IsNil(o.Type) { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaUpdateInfoRequestAvatar) GetTypeOk() (*string, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *SchemaUpdateInfoRequestAvatar) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *SchemaUpdateInfoRequestAvatar) SetType(v string) { - o.Type = &v -} - -func (o SchemaUpdateInfoRequestAvatar) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaUpdateInfoRequestAvatar) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Custom) { - toSerialize["custom"] = o.Custom - } - if !IsNil(o.Gravatar) { - toSerialize["gravatar"] = o.Gravatar - } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - return toSerialize, nil -} - -type NullableSchemaUpdateInfoRequestAvatar struct { - value *SchemaUpdateInfoRequestAvatar - isSet bool -} - -func (v NullableSchemaUpdateInfoRequestAvatar) Get() *SchemaUpdateInfoRequestAvatar { - return v.value -} - -func (v *NullableSchemaUpdateInfoRequestAvatar) Set(val *SchemaUpdateInfoRequestAvatar) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaUpdateInfoRequestAvatar) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaUpdateInfoRequestAvatar) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaUpdateInfoRequestAvatar(val *SchemaUpdateInfoRequestAvatar) *NullableSchemaUpdateInfoRequestAvatar { - return &NullableSchemaUpdateInfoRequestAvatar{value: val, isSet: true} -} - -func (v NullableSchemaUpdateInfoRequestAvatar) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaUpdateInfoRequestAvatar) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_update_plugin_config_req.go b/model_schema_update_plugin_config_req.go index 035b5e5..6f01ae1 100644 --- a/model_schema_update_plugin_config_req.go +++ b/model_schema_update_plugin_config_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_plugin_status_req.go b/model_schema_update_plugin_status_req.go index 7e7cbb6..e4a7a0b 100644 --- a/model_schema_update_plugin_status_req.go +++ b/model_schema_update_plugin_status_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_privileges_config_req.go b/model_schema_update_privileges_config_req.go index 70e16f6..4967cf2 100644 --- a/model_schema_update_privileges_config_req.go +++ b/model_schema_update_privileges_config_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_smtp_config_req.go b/model_schema_update_smtp_config_req.go index 4af9729..cd13ee5 100644 --- a/model_schema_update_smtp_config_req.go +++ b/model_schema_update_smtp_config_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_tag_req.go b/model_schema_update_tag_req.go index 9a8e09d..b90efa3 100644 --- a/model_schema_update_tag_req.go +++ b/model_schema_update_tag_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_tag_synonym_req.go b/model_schema_update_tag_synonym_req.go index 25021e6..3ecd421 100644 --- a/model_schema_update_tag_synonym_req.go +++ b/model_schema_update_tag_synonym_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_user_interface_request.go b/model_schema_update_user_interface_request.go index 9ce70e1..1139c93 100644 --- a/model_schema_update_user_interface_request.go +++ b/model_schema_update_user_interface_request.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_user_notification_config_req.go b/model_schema_update_user_notification_config_req.go new file mode 100644 index 0000000..7419f02 --- /dev/null +++ b/model_schema_update_user_notification_config_req.go @@ -0,0 +1,196 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateUserNotificationConfigReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateUserNotificationConfigReq{} + +// SchemaUpdateUserNotificationConfigReq struct for SchemaUpdateUserNotificationConfigReq +type SchemaUpdateUserNotificationConfigReq struct { + AllNewQuestion []SchemaNotificationChannelConfig `json:"all_new_question,omitempty"` + AllNewQuestionForFollowingTags []SchemaNotificationChannelConfig `json:"all_new_question_for_following_tags,omitempty"` + Inbox []SchemaNotificationChannelConfig `json:"inbox,omitempty"` +} + +// NewSchemaUpdateUserNotificationConfigReq instantiates a new SchemaUpdateUserNotificationConfigReq object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaUpdateUserNotificationConfigReq() *SchemaUpdateUserNotificationConfigReq { + this := SchemaUpdateUserNotificationConfigReq{} + return &this +} + +// NewSchemaUpdateUserNotificationConfigReqWithDefaults instantiates a new SchemaUpdateUserNotificationConfigReq object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaUpdateUserNotificationConfigReqWithDefaults() *SchemaUpdateUserNotificationConfigReq { + this := SchemaUpdateUserNotificationConfigReq{} + return &this +} + +// GetAllNewQuestion returns the AllNewQuestion field value if set, zero value otherwise. +func (o *SchemaUpdateUserNotificationConfigReq) GetAllNewQuestion() []SchemaNotificationChannelConfig { + if o == nil || IsNil(o.AllNewQuestion) { + var ret []SchemaNotificationChannelConfig + return ret + } + return o.AllNewQuestion +} + +// GetAllNewQuestionOk returns a tuple with the AllNewQuestion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateUserNotificationConfigReq) GetAllNewQuestionOk() ([]SchemaNotificationChannelConfig, bool) { + if o == nil || IsNil(o.AllNewQuestion) { + return nil, false + } + return o.AllNewQuestion, true +} + +// HasAllNewQuestion returns a boolean if a field has been set. +func (o *SchemaUpdateUserNotificationConfigReq) HasAllNewQuestion() bool { + if o != nil && !IsNil(o.AllNewQuestion) { + return true + } + + return false +} + +// SetAllNewQuestion gets a reference to the given []SchemaNotificationChannelConfig and assigns it to the AllNewQuestion field. +func (o *SchemaUpdateUserNotificationConfigReq) SetAllNewQuestion(v []SchemaNotificationChannelConfig) { + o.AllNewQuestion = v +} + +// GetAllNewQuestionForFollowingTags returns the AllNewQuestionForFollowingTags field value if set, zero value otherwise. +func (o *SchemaUpdateUserNotificationConfigReq) GetAllNewQuestionForFollowingTags() []SchemaNotificationChannelConfig { + if o == nil || IsNil(o.AllNewQuestionForFollowingTags) { + var ret []SchemaNotificationChannelConfig + return ret + } + return o.AllNewQuestionForFollowingTags +} + +// GetAllNewQuestionForFollowingTagsOk returns a tuple with the AllNewQuestionForFollowingTags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateUserNotificationConfigReq) GetAllNewQuestionForFollowingTagsOk() ([]SchemaNotificationChannelConfig, bool) { + if o == nil || IsNil(o.AllNewQuestionForFollowingTags) { + return nil, false + } + return o.AllNewQuestionForFollowingTags, true +} + +// HasAllNewQuestionForFollowingTags returns a boolean if a field has been set. +func (o *SchemaUpdateUserNotificationConfigReq) HasAllNewQuestionForFollowingTags() bool { + if o != nil && !IsNil(o.AllNewQuestionForFollowingTags) { + return true + } + + return false +} + +// SetAllNewQuestionForFollowingTags gets a reference to the given []SchemaNotificationChannelConfig and assigns it to the AllNewQuestionForFollowingTags field. +func (o *SchemaUpdateUserNotificationConfigReq) SetAllNewQuestionForFollowingTags(v []SchemaNotificationChannelConfig) { + o.AllNewQuestionForFollowingTags = v +} + +// GetInbox returns the Inbox field value if set, zero value otherwise. +func (o *SchemaUpdateUserNotificationConfigReq) GetInbox() []SchemaNotificationChannelConfig { + if o == nil || IsNil(o.Inbox) { + var ret []SchemaNotificationChannelConfig + return ret + } + return o.Inbox +} + +// GetInboxOk returns a tuple with the Inbox field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateUserNotificationConfigReq) GetInboxOk() ([]SchemaNotificationChannelConfig, bool) { + if o == nil || IsNil(o.Inbox) { + return nil, false + } + return o.Inbox, true +} + +// HasInbox returns a boolean if a field has been set. +func (o *SchemaUpdateUserNotificationConfigReq) HasInbox() bool { + if o != nil && !IsNil(o.Inbox) { + return true + } + + return false +} + +// SetInbox gets a reference to the given []SchemaNotificationChannelConfig and assigns it to the Inbox field. +func (o *SchemaUpdateUserNotificationConfigReq) SetInbox(v []SchemaNotificationChannelConfig) { + o.Inbox = v +} + +func (o SchemaUpdateUserNotificationConfigReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateUserNotificationConfigReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AllNewQuestion) { + toSerialize["all_new_question"] = o.AllNewQuestion + } + if !IsNil(o.AllNewQuestionForFollowingTags) { + toSerialize["all_new_question_for_following_tags"] = o.AllNewQuestionForFollowingTags + } + if !IsNil(o.Inbox) { + toSerialize["inbox"] = o.Inbox + } + return toSerialize, nil +} + +type NullableSchemaUpdateUserNotificationConfigReq struct { + value *SchemaUpdateUserNotificationConfigReq + isSet bool +} + +func (v NullableSchemaUpdateUserNotificationConfigReq) Get() *SchemaUpdateUserNotificationConfigReq { + return v.value +} + +func (v *NullableSchemaUpdateUserNotificationConfigReq) Set(val *SchemaUpdateUserNotificationConfigReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateUserNotificationConfigReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateUserNotificationConfigReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateUserNotificationConfigReq(val *SchemaUpdateUserNotificationConfigReq) *NullableSchemaUpdateUserNotificationConfigReq { + return &NullableSchemaUpdateUserNotificationConfigReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdateUserNotificationConfigReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateUserNotificationConfigReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_user_password_req.go b/model_schema_update_user_password_req.go index 0606066..2cb1ecf 100644 --- a/model_schema_update_user_password_req.go +++ b/model_schema_update_user_password_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_user_role_req.go b/model_schema_update_user_role_req.go index be769d5..6c1def9 100644 --- a/model_schema_update_user_role_req.go +++ b/model_schema_update_user_role_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_update_user_status_req.go b/model_schema_update_user_status_req.go index cf2529c..e8b565b 100644 --- a/model_schema_update_user_status_req.go +++ b/model_schema_update_user_status_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_user_basic_info.go b/model_schema_user_basic_info.go index 3124b32..59b0b83 100644 --- a/model_schema_user_basic_info.go +++ b/model_schema_user_basic_info.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,23 +17,14 @@ var _ MappedNullable = &SchemaUserBasicInfo{} // SchemaUserBasicInfo struct for SchemaUserBasicInfo type SchemaUserBasicInfo struct { - // avatar Avatar *string `json:"avatar,omitempty"` - // display_name DisplayName *string `json:"display_name,omitempty"` - // user_id Id *string `json:"id,omitempty"` - // ip info IpInfo *string `json:"ip_info,omitempty"` - // location Location *string `json:"location,omitempty"` - // rank Rank *int32 `json:"rank,omitempty"` - // status Status *string `json:"status,omitempty"` - // name Username *string `json:"username,omitempty"` - // website Website *string `json:"website,omitempty"` } diff --git a/model_schema_user_change_email_send_code_req.go b/model_schema_user_change_email_send_code_req.go index 5c7002d..192b552 100644 --- a/model_schema_user_change_email_send_code_req.go +++ b/model_schema_user_change_email_send_code_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_user_change_email_verify_req.go b/model_schema_user_change_email_verify_req.go index 850c4fa..354edcc 100644 --- a/model_schema_user_change_email_verify_req.go +++ b/model_schema_user_change_email_verify_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_user_email_login.go b/model_schema_user_email_login_req.go similarity index 59% rename from model_schema_user_email_login.go rename to model_schema_user_email_login_req.go index 6486970..88396d8 100644 --- a/model_schema_user_email_login.go +++ b/model_schema_user_email_login_req.go @@ -6,48 +6,44 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" ) -// checks if the SchemaUserEmailLogin type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaUserEmailLogin{} +// checks if the SchemaUserEmailLoginReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserEmailLoginReq{} -// SchemaUserEmailLogin struct for SchemaUserEmailLogin -type SchemaUserEmailLogin struct { - // captcha_code +// SchemaUserEmailLoginReq struct for SchemaUserEmailLoginReq +type SchemaUserEmailLoginReq struct { CaptchaCode *string `json:"captcha_code,omitempty"` - // captcha_id CaptchaId *string `json:"captcha_id,omitempty"` - // e_mail EMail string `json:"e_mail"` - // password Pass string `json:"pass"` } -// NewSchemaUserEmailLogin instantiates a new SchemaUserEmailLogin object +// NewSchemaUserEmailLoginReq instantiates a new SchemaUserEmailLoginReq object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSchemaUserEmailLogin(eMail string, pass string) *SchemaUserEmailLogin { - this := SchemaUserEmailLogin{} +func NewSchemaUserEmailLoginReq(eMail string, pass string) *SchemaUserEmailLoginReq { + this := SchemaUserEmailLoginReq{} this.EMail = eMail this.Pass = pass return &this } -// NewSchemaUserEmailLoginWithDefaults instantiates a new SchemaUserEmailLogin object +// NewSchemaUserEmailLoginReqWithDefaults instantiates a new SchemaUserEmailLoginReq object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewSchemaUserEmailLoginWithDefaults() *SchemaUserEmailLogin { - this := SchemaUserEmailLogin{} +func NewSchemaUserEmailLoginReqWithDefaults() *SchemaUserEmailLoginReq { + this := SchemaUserEmailLoginReq{} return &this } // GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. -func (o *SchemaUserEmailLogin) GetCaptchaCode() string { +func (o *SchemaUserEmailLoginReq) GetCaptchaCode() string { if o == nil || IsNil(o.CaptchaCode) { var ret string return ret @@ -57,7 +53,7 @@ func (o *SchemaUserEmailLogin) GetCaptchaCode() string { // GetCaptchaCodeOk returns a tuple with the CaptchaCode field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SchemaUserEmailLogin) GetCaptchaCodeOk() (*string, bool) { +func (o *SchemaUserEmailLoginReq) GetCaptchaCodeOk() (*string, bool) { if o == nil || IsNil(o.CaptchaCode) { return nil, false } @@ -65,7 +61,7 @@ func (o *SchemaUserEmailLogin) GetCaptchaCodeOk() (*string, bool) { } // HasCaptchaCode returns a boolean if a field has been set. -func (o *SchemaUserEmailLogin) HasCaptchaCode() bool { +func (o *SchemaUserEmailLoginReq) HasCaptchaCode() bool { if o != nil && !IsNil(o.CaptchaCode) { return true } @@ -74,12 +70,12 @@ func (o *SchemaUserEmailLogin) HasCaptchaCode() bool { } // SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. -func (o *SchemaUserEmailLogin) SetCaptchaCode(v string) { +func (o *SchemaUserEmailLoginReq) SetCaptchaCode(v string) { o.CaptchaCode = &v } // GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. -func (o *SchemaUserEmailLogin) GetCaptchaId() string { +func (o *SchemaUserEmailLoginReq) GetCaptchaId() string { if o == nil || IsNil(o.CaptchaId) { var ret string return ret @@ -89,7 +85,7 @@ func (o *SchemaUserEmailLogin) GetCaptchaId() string { // GetCaptchaIdOk returns a tuple with the CaptchaId field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SchemaUserEmailLogin) GetCaptchaIdOk() (*string, bool) { +func (o *SchemaUserEmailLoginReq) GetCaptchaIdOk() (*string, bool) { if o == nil || IsNil(o.CaptchaId) { return nil, false } @@ -97,7 +93,7 @@ func (o *SchemaUserEmailLogin) GetCaptchaIdOk() (*string, bool) { } // HasCaptchaId returns a boolean if a field has been set. -func (o *SchemaUserEmailLogin) HasCaptchaId() bool { +func (o *SchemaUserEmailLoginReq) HasCaptchaId() bool { if o != nil && !IsNil(o.CaptchaId) { return true } @@ -106,12 +102,12 @@ func (o *SchemaUserEmailLogin) HasCaptchaId() bool { } // SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. -func (o *SchemaUserEmailLogin) SetCaptchaId(v string) { +func (o *SchemaUserEmailLoginReq) SetCaptchaId(v string) { o.CaptchaId = &v } // GetEMail returns the EMail field value -func (o *SchemaUserEmailLogin) GetEMail() string { +func (o *SchemaUserEmailLoginReq) GetEMail() string { if o == nil { var ret string return ret @@ -122,7 +118,7 @@ func (o *SchemaUserEmailLogin) GetEMail() string { // GetEMailOk returns a tuple with the EMail field value // and a boolean to check if the value has been set. -func (o *SchemaUserEmailLogin) GetEMailOk() (*string, bool) { +func (o *SchemaUserEmailLoginReq) GetEMailOk() (*string, bool) { if o == nil { return nil, false } @@ -130,12 +126,12 @@ func (o *SchemaUserEmailLogin) GetEMailOk() (*string, bool) { } // SetEMail sets field value -func (o *SchemaUserEmailLogin) SetEMail(v string) { +func (o *SchemaUserEmailLoginReq) SetEMail(v string) { o.EMail = v } // GetPass returns the Pass field value -func (o *SchemaUserEmailLogin) GetPass() string { +func (o *SchemaUserEmailLoginReq) GetPass() string { if o == nil { var ret string return ret @@ -146,7 +142,7 @@ func (o *SchemaUserEmailLogin) GetPass() string { // GetPassOk returns a tuple with the Pass field value // and a boolean to check if the value has been set. -func (o *SchemaUserEmailLogin) GetPassOk() (*string, bool) { +func (o *SchemaUserEmailLoginReq) GetPassOk() (*string, bool) { if o == nil { return nil, false } @@ -154,11 +150,11 @@ func (o *SchemaUserEmailLogin) GetPassOk() (*string, bool) { } // SetPass sets field value -func (o *SchemaUserEmailLogin) SetPass(v string) { +func (o *SchemaUserEmailLoginReq) SetPass(v string) { o.Pass = v } -func (o SchemaUserEmailLogin) MarshalJSON() ([]byte, error) { +func (o SchemaUserEmailLoginReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { return []byte{}, err @@ -166,7 +162,7 @@ func (o SchemaUserEmailLogin) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o SchemaUserEmailLogin) ToMap() (map[string]interface{}, error) { +func (o SchemaUserEmailLoginReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.CaptchaCode) { toSerialize["captcha_code"] = o.CaptchaCode @@ -179,38 +175,38 @@ func (o SchemaUserEmailLogin) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableSchemaUserEmailLogin struct { - value *SchemaUserEmailLogin +type NullableSchemaUserEmailLoginReq struct { + value *SchemaUserEmailLoginReq isSet bool } -func (v NullableSchemaUserEmailLogin) Get() *SchemaUserEmailLogin { +func (v NullableSchemaUserEmailLoginReq) Get() *SchemaUserEmailLoginReq { return v.value } -func (v *NullableSchemaUserEmailLogin) Set(val *SchemaUserEmailLogin) { +func (v *NullableSchemaUserEmailLoginReq) Set(val *SchemaUserEmailLoginReq) { v.value = val v.isSet = true } -func (v NullableSchemaUserEmailLogin) IsSet() bool { +func (v NullableSchemaUserEmailLoginReq) IsSet() bool { return v.isSet } -func (v *NullableSchemaUserEmailLogin) Unset() { +func (v *NullableSchemaUserEmailLoginReq) Unset() { v.value = nil v.isSet = false } -func NewNullableSchemaUserEmailLogin(val *SchemaUserEmailLogin) *NullableSchemaUserEmailLogin { - return &NullableSchemaUserEmailLogin{value: val, isSet: true} +func NewNullableSchemaUserEmailLoginReq(val *SchemaUserEmailLoginReq) *NullableSchemaUserEmailLoginReq { + return &NullableSchemaUserEmailLoginReq{value: val, isSet: true} } -func (v NullableSchemaUserEmailLogin) MarshalJSON() ([]byte, error) { +func (v NullableSchemaUserEmailLoginReq) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableSchemaUserEmailLogin) UnmarshalJSON(src []byte) error { +func (v *NullableSchemaUserEmailLoginReq) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/model_schema_user_login_resp.go b/model_schema_user_login_resp.go index af02bd9..28bc7cd 100644 --- a/model_schema_user_login_resp.go +++ b/model_schema_user_login_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_user_modify_pass_word_request.go b/model_schema_user_modify_pass_word_request.go deleted file mode 100644 index 9a9c0f2..0000000 --- a/model_schema_user_modify_pass_word_request.go +++ /dev/null @@ -1,164 +0,0 @@ -/* -answer - -answer api - -API version: v0.0.1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaUserModifyPassWordRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaUserModifyPassWordRequest{} - -// SchemaUserModifyPassWordRequest struct for SchemaUserModifyPassWordRequest -type SchemaUserModifyPassWordRequest struct { - // old password - OldPass *string `json:"old_pass,omitempty"` - // password - Pass *string `json:"pass,omitempty"` -} - -// NewSchemaUserModifyPassWordRequest instantiates a new SchemaUserModifyPassWordRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaUserModifyPassWordRequest() *SchemaUserModifyPassWordRequest { - this := SchemaUserModifyPassWordRequest{} - return &this -} - -// NewSchemaUserModifyPassWordRequestWithDefaults instantiates a new SchemaUserModifyPassWordRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaUserModifyPassWordRequestWithDefaults() *SchemaUserModifyPassWordRequest { - this := SchemaUserModifyPassWordRequest{} - return &this -} - -// GetOldPass returns the OldPass field value if set, zero value otherwise. -func (o *SchemaUserModifyPassWordRequest) GetOldPass() string { - if o == nil || IsNil(o.OldPass) { - var ret string - return ret - } - return *o.OldPass -} - -// GetOldPassOk returns a tuple with the OldPass field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaUserModifyPassWordRequest) GetOldPassOk() (*string, bool) { - if o == nil || IsNil(o.OldPass) { - return nil, false - } - return o.OldPass, true -} - -// HasOldPass returns a boolean if a field has been set. -func (o *SchemaUserModifyPassWordRequest) HasOldPass() bool { - if o != nil && !IsNil(o.OldPass) { - return true - } - - return false -} - -// SetOldPass gets a reference to the given string and assigns it to the OldPass field. -func (o *SchemaUserModifyPassWordRequest) SetOldPass(v string) { - o.OldPass = &v -} - -// GetPass returns the Pass field value if set, zero value otherwise. -func (o *SchemaUserModifyPassWordRequest) GetPass() string { - if o == nil || IsNil(o.Pass) { - var ret string - return ret - } - return *o.Pass -} - -// GetPassOk returns a tuple with the Pass field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaUserModifyPassWordRequest) GetPassOk() (*string, bool) { - if o == nil || IsNil(o.Pass) { - return nil, false - } - return o.Pass, true -} - -// HasPass returns a boolean if a field has been set. -func (o *SchemaUserModifyPassWordRequest) HasPass() bool { - if o != nil && !IsNil(o.Pass) { - return true - } - - return false -} - -// SetPass gets a reference to the given string and assigns it to the Pass field. -func (o *SchemaUserModifyPassWordRequest) SetPass(v string) { - o.Pass = &v -} - -func (o SchemaUserModifyPassWordRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaUserModifyPassWordRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.OldPass) { - toSerialize["old_pass"] = o.OldPass - } - if !IsNil(o.Pass) { - toSerialize["pass"] = o.Pass - } - return toSerialize, nil -} - -type NullableSchemaUserModifyPassWordRequest struct { - value *SchemaUserModifyPassWordRequest - isSet bool -} - -func (v NullableSchemaUserModifyPassWordRequest) Get() *SchemaUserModifyPassWordRequest { - return v.value -} - -func (v *NullableSchemaUserModifyPassWordRequest) Set(val *SchemaUserModifyPassWordRequest) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaUserModifyPassWordRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaUserModifyPassWordRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaUserModifyPassWordRequest(val *SchemaUserModifyPassWordRequest) *NullableSchemaUserModifyPassWordRequest { - return &NullableSchemaUserModifyPassWordRequest{value: val, isSet: true} -} - -func (v NullableSchemaUserModifyPassWordRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaUserModifyPassWordRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_user_modify_password_req.go b/model_schema_user_modify_password_req.go index 1467cd6..ad374cd 100644 --- a/model_schema_user_modify_password_req.go +++ b/model_schema_user_modify_password_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_user_notice_set_request.go b/model_schema_user_notice_set_request.go deleted file mode 100644 index a7308e0..0000000 --- a/model_schema_user_notice_set_request.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaUserNoticeSetRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaUserNoticeSetRequest{} - -// SchemaUserNoticeSetRequest struct for SchemaUserNoticeSetRequest -type SchemaUserNoticeSetRequest struct { - NoticeSwitch *bool `json:"notice_switch,omitempty"` -} - -// NewSchemaUserNoticeSetRequest instantiates a new SchemaUserNoticeSetRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaUserNoticeSetRequest() *SchemaUserNoticeSetRequest { - this := SchemaUserNoticeSetRequest{} - return &this -} - -// NewSchemaUserNoticeSetRequestWithDefaults instantiates a new SchemaUserNoticeSetRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaUserNoticeSetRequestWithDefaults() *SchemaUserNoticeSetRequest { - this := SchemaUserNoticeSetRequest{} - return &this -} - -// GetNoticeSwitch returns the NoticeSwitch field value if set, zero value otherwise. -func (o *SchemaUserNoticeSetRequest) GetNoticeSwitch() bool { - if o == nil || IsNil(o.NoticeSwitch) { - var ret bool - return ret - } - return *o.NoticeSwitch -} - -// GetNoticeSwitchOk returns a tuple with the NoticeSwitch field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaUserNoticeSetRequest) GetNoticeSwitchOk() (*bool, bool) { - if o == nil || IsNil(o.NoticeSwitch) { - return nil, false - } - return o.NoticeSwitch, true -} - -// HasNoticeSwitch returns a boolean if a field has been set. -func (o *SchemaUserNoticeSetRequest) HasNoticeSwitch() bool { - if o != nil && !IsNil(o.NoticeSwitch) { - return true - } - - return false -} - -// SetNoticeSwitch gets a reference to the given bool and assigns it to the NoticeSwitch field. -func (o *SchemaUserNoticeSetRequest) SetNoticeSwitch(v bool) { - o.NoticeSwitch = &v -} - -func (o SchemaUserNoticeSetRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaUserNoticeSetRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.NoticeSwitch) { - toSerialize["notice_switch"] = o.NoticeSwitch - } - return toSerialize, nil -} - -type NullableSchemaUserNoticeSetRequest struct { - value *SchemaUserNoticeSetRequest - isSet bool -} - -func (v NullableSchemaUserNoticeSetRequest) Get() *SchemaUserNoticeSetRequest { - return v.value -} - -func (v *NullableSchemaUserNoticeSetRequest) Set(val *SchemaUserNoticeSetRequest) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaUserNoticeSetRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaUserNoticeSetRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaUserNoticeSetRequest(val *SchemaUserNoticeSetRequest) *NullableSchemaUserNoticeSetRequest { - return &NullableSchemaUserNoticeSetRequest{value: val, isSet: true} -} - -func (v NullableSchemaUserNoticeSetRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaUserNoticeSetRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_user_notice_set_resp.go b/model_schema_user_notice_set_resp.go deleted file mode 100644 index 3bcaae7..0000000 --- a/model_schema_user_notice_set_resp.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - -API version: 1.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the SchemaUserNoticeSetResp type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SchemaUserNoticeSetResp{} - -// SchemaUserNoticeSetResp struct for SchemaUserNoticeSetResp -type SchemaUserNoticeSetResp struct { - NoticeSwitch *bool `json:"notice_switch,omitempty"` -} - -// NewSchemaUserNoticeSetResp instantiates a new SchemaUserNoticeSetResp object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSchemaUserNoticeSetResp() *SchemaUserNoticeSetResp { - this := SchemaUserNoticeSetResp{} - return &this -} - -// NewSchemaUserNoticeSetRespWithDefaults instantiates a new SchemaUserNoticeSetResp object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSchemaUserNoticeSetRespWithDefaults() *SchemaUserNoticeSetResp { - this := SchemaUserNoticeSetResp{} - return &this -} - -// GetNoticeSwitch returns the NoticeSwitch field value if set, zero value otherwise. -func (o *SchemaUserNoticeSetResp) GetNoticeSwitch() bool { - if o == nil || IsNil(o.NoticeSwitch) { - var ret bool - return ret - } - return *o.NoticeSwitch -} - -// GetNoticeSwitchOk returns a tuple with the NoticeSwitch field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SchemaUserNoticeSetResp) GetNoticeSwitchOk() (*bool, bool) { - if o == nil || IsNil(o.NoticeSwitch) { - return nil, false - } - return o.NoticeSwitch, true -} - -// HasNoticeSwitch returns a boolean if a field has been set. -func (o *SchemaUserNoticeSetResp) HasNoticeSwitch() bool { - if o != nil && !IsNil(o.NoticeSwitch) { - return true - } - - return false -} - -// SetNoticeSwitch gets a reference to the given bool and assigns it to the NoticeSwitch field. -func (o *SchemaUserNoticeSetResp) SetNoticeSwitch(v bool) { - o.NoticeSwitch = &v -} - -func (o SchemaUserNoticeSetResp) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SchemaUserNoticeSetResp) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.NoticeSwitch) { - toSerialize["notice_switch"] = o.NoticeSwitch - } - return toSerialize, nil -} - -type NullableSchemaUserNoticeSetResp struct { - value *SchemaUserNoticeSetResp - isSet bool -} - -func (v NullableSchemaUserNoticeSetResp) Get() *SchemaUserNoticeSetResp { - return v.value -} - -func (v *NullableSchemaUserNoticeSetResp) Set(val *SchemaUserNoticeSetResp) { - v.value = val - v.isSet = true -} - -func (v NullableSchemaUserNoticeSetResp) IsSet() bool { - return v.isSet -} - -func (v *NullableSchemaUserNoticeSetResp) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSchemaUserNoticeSetResp(val *SchemaUserNoticeSetResp) *NullableSchemaUserNoticeSetResp { - return &NullableSchemaUserNoticeSetResp{value: val, isSet: true} -} - -func (v NullableSchemaUserNoticeSetResp) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSchemaUserNoticeSetResp) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_schema_user_ranking_resp.go b/model_schema_user_ranking_resp.go index 6062298..873a43b 100644 --- a/model_schema_user_ranking_resp.go +++ b/model_schema_user_ranking_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_user_ranking_simple_info.go b/model_schema_user_ranking_simple_info.go index bdddf37..a34bdc4 100644 --- a/model_schema_user_ranking_simple_info.go +++ b/model_schema_user_ranking_simple_info.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_user_re_pass_word_request.go b/model_schema_user_re_pass_word_request.go index 5da7ac4..b680489 100644 --- a/model_schema_user_re_pass_word_request.go +++ b/model_schema_user_re_pass_word_request.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,9 +17,7 @@ var _ MappedNullable = &SchemaUserRePassWordRequest{} // SchemaUserRePassWordRequest struct for SchemaUserRePassWordRequest type SchemaUserRePassWordRequest struct { - // code Code string `json:"code"` - // Password Pass string `json:"pass"` } diff --git a/model_schema_user_register_req.go b/model_schema_user_register_req.go index dc4613a..553bc22 100644 --- a/model_schema_user_register_req.go +++ b/model_schema_user_register_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,15 +17,10 @@ var _ MappedNullable = &SchemaUserRegisterReq{} // SchemaUserRegisterReq struct for SchemaUserRegisterReq type SchemaUserRegisterReq struct { - // captcha_code CaptchaCode *string `json:"captcha_code,omitempty"` - // captcha_id CaptchaId *string `json:"captcha_id,omitempty"` - // email EMail string `json:"e_mail"` - // name Name string `json:"name"` - // password Pass string `json:"pass"` } diff --git a/model_schema_user_retrieve_pass_word_request.go b/model_schema_user_retrieve_pass_word_request.go index 25f0b24..0ce9a64 100644 --- a/model_schema_user_retrieve_pass_word_request.go +++ b/model_schema_user_retrieve_pass_word_request.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" @@ -17,11 +17,8 @@ var _ MappedNullable = &SchemaUserRetrievePassWordRequest{} // SchemaUserRetrievePassWordRequest struct for SchemaUserRetrievePassWordRequest type SchemaUserRetrievePassWordRequest struct { - // captcha_code CaptchaCode *string `json:"captcha_code,omitempty"` - // captcha_id CaptchaId *string `json:"captcha_id,omitempty"` - // e_mail EMail string `json:"e_mail"` } diff --git a/model_schema_user_unsubscribe_notification_req.go b/model_schema_user_unsubscribe_notification_req.go new file mode 100644 index 0000000..ce7037c --- /dev/null +++ b/model_schema_user_unsubscribe_notification_req.go @@ -0,0 +1,115 @@ +/* +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package answer_sdk + +import ( + "encoding/json" +) + +// checks if the SchemaUserUnsubscribeNotificationReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserUnsubscribeNotificationReq{} + +// SchemaUserUnsubscribeNotificationReq struct for SchemaUserUnsubscribeNotificationReq +type SchemaUserUnsubscribeNotificationReq struct { + Code string `json:"code"` +} + +// NewSchemaUserUnsubscribeNotificationReq instantiates a new SchemaUserUnsubscribeNotificationReq object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaUserUnsubscribeNotificationReq(code string) *SchemaUserUnsubscribeNotificationReq { + this := SchemaUserUnsubscribeNotificationReq{} + this.Code = code + return &this +} + +// NewSchemaUserUnsubscribeNotificationReqWithDefaults instantiates a new SchemaUserUnsubscribeNotificationReq object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaUserUnsubscribeNotificationReqWithDefaults() *SchemaUserUnsubscribeNotificationReq { + this := SchemaUserUnsubscribeNotificationReq{} + return &this +} + +// GetCode returns the Code field value +func (o *SchemaUserUnsubscribeNotificationReq) GetCode() string { + if o == nil { + var ret string + return ret + } + + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +func (o *SchemaUserUnsubscribeNotificationReq) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Code, true +} + +// SetCode sets field value +func (o *SchemaUserUnsubscribeNotificationReq) SetCode(v string) { + o.Code = v +} + +func (o SchemaUserUnsubscribeNotificationReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserUnsubscribeNotificationReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["code"] = o.Code + return toSerialize, nil +} + +type NullableSchemaUserUnsubscribeNotificationReq struct { + value *SchemaUserUnsubscribeNotificationReq + isSet bool +} + +func (v NullableSchemaUserUnsubscribeNotificationReq) Get() *SchemaUserUnsubscribeNotificationReq { + return v.value +} + +func (v *NullableSchemaUserUnsubscribeNotificationReq) Set(val *SchemaUserUnsubscribeNotificationReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserUnsubscribeNotificationReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserUnsubscribeNotificationReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserUnsubscribeNotificationReq(val *SchemaUserUnsubscribeNotificationReq) *NullableSchemaUserUnsubscribeNotificationReq { + return &NullableSchemaUserUnsubscribeNotificationReq{value: val, isSet: true} +} + +func (v NullableSchemaUserUnsubscribeNotificationReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserUnsubscribeNotificationReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_vote_req.go b/model_schema_vote_req.go index b695085..ece03e4 100644 --- a/model_schema_vote_req.go +++ b/model_schema_vote_req.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_schema_vote_resp.go b/model_schema_vote_resp.go index 342d1ed..3bc3af6 100644 --- a/model_schema_vote_resp.go +++ b/model_schema_vote_resp.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/model_translator_lang_option.go b/model_translator_lang_option.go index 0c8d8b5..705e770 100644 --- a/model_translator_lang_option.go +++ b/model_translator_lang_option.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json" diff --git a/response.go b/response.go index ca9aa2b..7647a1b 100644 --- a/response.go +++ b/response.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "net/http" diff --git a/test/api_activity_test.go b/test/api_activity_test.go index 01f007b..629cd5f 100644 --- a/test/api_activity_test.go +++ b/test/api_activity_test.go @@ -1,32 +1,31 @@ /* -answer -Testing ActivityApiService +Testing ActivityAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_ActivityApiService(t *testing.T) { +func Test_answer_sdk_ActivityAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test ActivityApiService AnswerApiV1FollowPost", func(t *testing.T) { + t.Run("Test ActivityAPIService AnswerApiV1FollowPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1FollowPost(context.Background()).Execute() + resp, httpRes, err := apiClient.ActivityAPI.AnswerApiV1FollowPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_ActivityApiService(t *testing.T) { }) - t.Run("Test ActivityApiService AnswerApiV1FollowTagsPut", func(t *testing.T) { + t.Run("Test ActivityAPIService AnswerApiV1FollowTagsPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1FollowTagsPut(context.Background()).Execute() + resp, httpRes, err := apiClient.ActivityAPI.AnswerApiV1FollowTagsPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_ActivityApiService(t *testing.T) { }) - t.Run("Test ActivityApiService AnswerApiV1PersonalVotePageGet", func(t *testing.T) { + t.Run("Test ActivityAPIService AnswerApiV1PersonalVotePageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1PersonalVotePageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.ActivityAPI.AnswerApiV1PersonalVotePageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_ActivityApiService(t *testing.T) { }) - t.Run("Test ActivityApiService AnswerApiV1VoteDownPost", func(t *testing.T) { + t.Run("Test ActivityAPIService AnswerApiV1VoteDownPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1VoteDownPost(context.Background()).Execute() + resp, httpRes, err := apiClient.ActivityAPI.AnswerApiV1VoteDownPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,11 +69,11 @@ func Test_openapi_ActivityApiService(t *testing.T) { }) - t.Run("Test ActivityApiService AnswerApiV1VoteUpPost", func(t *testing.T) { + t.Run("Test ActivityAPIService AnswerApiV1VoteUpPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1VoteUpPost(context.Background()).Execute() + resp, httpRes, err := apiClient.ActivityAPI.AnswerApiV1VoteUpPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_admin_plugin_test.go b/test/api_admin_plugin_test.go index 9a5296a..e797882 100644 --- a/test/api_admin_plugin_test.go +++ b/test/api_admin_plugin_test.go @@ -1,31 +1,31 @@ /* -Testing AdminPluginApiService +Testing AdminPluginAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_AdminPluginApiService(t *testing.T) { +func Test_answer_sdk_AdminPluginAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test AdminPluginApiService AnswerAdminApiPluginConfigGet", func(t *testing.T) { + t.Run("Test AdminPluginAPIService AnswerAdminApiPluginConfigGet", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminPluginApi.AnswerAdminApiPluginConfigGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginConfigGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -33,11 +33,11 @@ func Test_openapi_AdminPluginApiService(t *testing.T) { }) - t.Run("Test AdminPluginApiService AnswerAdminApiPluginConfigPut", func(t *testing.T) { + t.Run("Test AdminPluginAPIService AnswerAdminApiPluginConfigPut", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminPluginApi.AnswerAdminApiPluginConfigPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginConfigPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -45,11 +45,11 @@ func Test_openapi_AdminPluginApiService(t *testing.T) { }) - t.Run("Test AdminPluginApiService AnswerAdminApiPluginStatusPut", func(t *testing.T) { + t.Run("Test AdminPluginAPIService AnswerAdminApiPluginStatusPut", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminPluginApi.AnswerAdminApiPluginStatusPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginStatusPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,11 +57,11 @@ func Test_openapi_AdminPluginApiService(t *testing.T) { }) - t.Run("Test AdminPluginApiService AnswerAdminApiPluginsGet", func(t *testing.T) { + t.Run("Test AdminPluginAPIService AnswerAdminApiPluginsGet", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminPluginApi.AnswerAdminApiPluginsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminPluginAPI.AnswerAdminApiPluginsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_admin_test.go b/test/api_admin_test.go index ba2877d..9115622 100644 --- a/test/api_admin_test.go +++ b/test/api_admin_test.go @@ -1,32 +1,31 @@ /* -answer -Testing AdminApiService +Testing AdminAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_AdminApiService(t *testing.T) { +func Test_answer_sdk_AdminAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test AdminApiService AnswerAdminApiAnswerPageGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiAnswerPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiAnswerPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiAnswerPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiAnswerStatusPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiAnswerStatusPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiAnswerStatusPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiAnswerStatusPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiDashboardGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiDashboardGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiDashboardGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiDashboardGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiQuestionPageGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiQuestionPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiQuestionPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiQuestionPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,11 +69,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiQuestionStatusPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiQuestionStatusPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiQuestionStatusPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiQuestionStatusPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,11 +81,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiReportPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiReportPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiReportPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiReportPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,11 +93,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiReportsPageGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiReportsPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiReportsPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiReportsPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -106,11 +105,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiRolesGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiRolesGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiRolesGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiRolesGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -118,11 +117,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSettingSmtpGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSettingPrivilegesGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSettingSmtpGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSettingPrivilegesGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,11 +129,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSettingSmtpPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSettingPrivilegesPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSettingSmtpPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSettingPrivilegesPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -142,11 +141,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoBrandingGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSettingSmtpGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoBrandingGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSettingSmtpGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -154,11 +153,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoBrandingPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSettingSmtpPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoBrandingPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSettingSmtpPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -166,11 +165,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoCustomCssHtmlGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoBrandingGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoBrandingGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -178,11 +177,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoCustomCssHtmlPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoBrandingPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoBrandingPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -190,11 +189,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoGeneralGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoCustomCssHtmlGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoGeneralGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoCustomCssHtmlGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -202,11 +201,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoGeneralPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoCustomCssHtmlPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoGeneralPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoCustomCssHtmlPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -214,11 +213,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoInterfaceGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoGeneralGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoInterfaceGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoGeneralGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -226,11 +225,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoInterfacePut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoGeneralPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoInterfacePut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoGeneralPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -238,11 +237,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoLegalGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoInterfaceGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLegalGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoInterfaceGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -250,11 +249,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoLegalPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoInterfacePut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLegalPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoInterfacePut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -262,11 +261,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoLoginGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoLegalGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLoginGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLegalGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -274,11 +273,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoLoginPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoLegalPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLoginPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLegalPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -286,11 +285,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoSeoGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoLoginGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoSeoGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLoginGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -298,11 +297,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoSeoPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoLoginPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoSeoPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoLoginPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -310,11 +309,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoThemeGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoSeoGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoThemeGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoSeoGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -322,11 +321,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoThemePut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoSeoPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoThemePut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoSeoPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -334,11 +333,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoWriteGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoThemeGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoWriteGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoThemeGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -346,11 +345,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiSiteinfoWritePut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoThemePut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoWritePut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoThemePut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -358,11 +357,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiThemeOptionsGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoUsersGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiThemeOptionsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoUsersGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -370,11 +369,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiUserPasswordPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoUsersPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserPasswordPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoUsersPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -382,11 +381,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiUserPost", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoWriteGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserPost(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoWriteGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -394,11 +393,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiUserRolePut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiSiteinfoWritePut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserRolePut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiSiteinfoWritePut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -406,11 +405,11 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiUserStatusPut", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiThemeOptionsGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserStatusPut(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiThemeOptionsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -418,11 +417,95 @@ func Test_openapi_AdminApiService(t *testing.T) { }) - t.Run("Test AdminApiService AnswerAdminApiUsersPageGet", func(t *testing.T) { + t.Run("Test AdminAPIService AnswerAdminApiUserActivationGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUsersPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUserActivationGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminAPIService AnswerAdminApiUserPasswordPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUserPasswordPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminAPIService AnswerAdminApiUserPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUserPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminAPIService AnswerAdminApiUserRolePut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUserRolePut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminAPIService AnswerAdminApiUserStatusPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUserStatusPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminAPIService AnswerAdminApiUsersActivationPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUsersActivationPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminAPIService AnswerAdminApiUsersPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUsersPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminAPIService AnswerAdminApiUsersPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminAPI.AnswerAdminApiUsersPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_api_answer_test.go b/test/api_api_answer_test.go index 2eb5045..0f07aaa 100644 --- a/test/api_api_answer_test.go +++ b/test/api_api_answer_test.go @@ -1,32 +1,31 @@ /* -answer -Testing ApiAnswerApiService +Testing ApiAnswerAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_ApiAnswerApiService(t *testing.T) { +func Test_answer_sdk_ApiAnswerAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test ApiAnswerApiService AnswerApiV1AnswerAcceptancePost", func(t *testing.T) { + t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerAcceptancePost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerAcceptancePost(context.Background()).Execute() + resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerAcceptancePost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) { }) - t.Run("Test ApiAnswerApiService AnswerApiV1AnswerDelete", func(t *testing.T) { + t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerDelete", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerDelete(context.Background()).Execute() + resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerDelete(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) { }) - t.Run("Test ApiAnswerApiService AnswerApiV1AnswerInfoGet", func(t *testing.T) { + t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerInfoGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerInfoGet(context.Background()).Execute() + resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerInfoGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) { }) - t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPageGet", func(t *testing.T) { + t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,11 +69,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) { }) - t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPost", func(t *testing.T) { + t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPost(context.Background()).Execute() + resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,23 +81,11 @@ func Test_openapi_ApiAnswerApiService(t *testing.T) { }) - t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPut", func(t *testing.T) { + t.Run("Test ApiAnswerAPIService AnswerApiV1AnswerPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPut(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ApiAnswerApiService AnswerApiV1PersonalAnswerPageGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1PersonalAnswerPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.ApiAnswerAPI.AnswerApiV1AnswerPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_collection_test.go b/test/api_collection_test.go index 61297cb..db3c0c0 100644 --- a/test/api_collection_test.go +++ b/test/api_collection_test.go @@ -1,32 +1,31 @@ /* -answer -Testing CollectionApiService +Testing CollectionAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_CollectionApiService(t *testing.T) { +func Test_answer_sdk_CollectionAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test CollectionApiService AnswerApiV1CollectionSwitchPost", func(t *testing.T) { + t.Run("Test CollectionAPIService AnswerApiV1CollectionSwitchPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CollectionApi.AnswerApiV1CollectionSwitchPost(context.Background()).Execute() + resp, httpRes, err := apiClient.CollectionAPI.AnswerApiV1CollectionSwitchPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_CollectionApiService(t *testing.T) { }) - t.Run("Test CollectionApiService AnswerApiV1PersonalCollectionPageGet", func(t *testing.T) { + t.Run("Test CollectionAPIService AnswerApiV1PersonalCollectionPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CollectionApi.AnswerApiV1PersonalCollectionPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.CollectionAPI.AnswerApiV1PersonalCollectionPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_comment_test.go b/test/api_comment_test.go index 60ab20b..7642c88 100644 --- a/test/api_comment_test.go +++ b/test/api_comment_test.go @@ -1,32 +1,31 @@ /* -answer -Testing CommentApiService +Testing CommentAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_CommentApiService(t *testing.T) { +func Test_answer_sdk_CommentAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test CommentApiService AnswerApiV1ActivityTimelineDetailGet", func(t *testing.T) { + t.Run("Test CommentAPIService AnswerApiV1ActivityTimelineDetailGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineDetailGet(context.Background()).Execute() + resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1ActivityTimelineDetailGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_CommentApiService(t *testing.T) { }) - t.Run("Test CommentApiService AnswerApiV1ActivityTimelineGet", func(t *testing.T) { + t.Run("Test CommentAPIService AnswerApiV1ActivityTimelineGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineGet(context.Background()).Execute() + resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1ActivityTimelineGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_CommentApiService(t *testing.T) { }) - t.Run("Test CommentApiService AnswerApiV1CommentDelete", func(t *testing.T) { + t.Run("Test CommentAPIService AnswerApiV1CommentDelete", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentDelete(context.Background()).Execute() + resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1CommentDelete(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_CommentApiService(t *testing.T) { }) - t.Run("Test CommentApiService AnswerApiV1CommentGet", func(t *testing.T) { + t.Run("Test CommentAPIService AnswerApiV1CommentGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentGet(context.Background()).Execute() + resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1CommentGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,11 +69,11 @@ func Test_openapi_CommentApiService(t *testing.T) { }) - t.Run("Test CommentApiService AnswerApiV1CommentPageGet", func(t *testing.T) { + t.Run("Test CommentAPIService AnswerApiV1CommentPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1CommentPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,11 +81,11 @@ func Test_openapi_CommentApiService(t *testing.T) { }) - t.Run("Test CommentApiService AnswerApiV1CommentPost", func(t *testing.T) { + t.Run("Test CommentAPIService AnswerApiV1CommentPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPost(context.Background()).Execute() + resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1CommentPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,11 +93,11 @@ func Test_openapi_CommentApiService(t *testing.T) { }) - t.Run("Test CommentApiService AnswerApiV1CommentPut", func(t *testing.T) { + t.Run("Test CommentAPIService AnswerApiV1CommentPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPut(context.Background()).Execute() + resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1CommentPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -106,11 +105,11 @@ func Test_openapi_CommentApiService(t *testing.T) { }) - t.Run("Test CommentApiService AnswerApiV1PersonalCommentPageGet", func(t *testing.T) { + t.Run("Test CommentAPIService AnswerApiV1PersonalCommentPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CommentApi.AnswerApiV1PersonalCommentPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.CommentAPI.AnswerApiV1PersonalCommentPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_installation_test.go b/test/api_installation_test.go index bbdfb5b..96cb28a 100644 --- a/test/api_installation_test.go +++ b/test/api_installation_test.go @@ -1,32 +1,31 @@ /* -answer -Testing InstallationApiService +Testing InstallationAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_InstallationApiService(t *testing.T) { +func Test_answer_sdk_InstallationAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test InstallationApiService InstallationBaseInfoPost", func(t *testing.T) { + t.Run("Test InstallationAPIService InstallationBaseInfoPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.InstallationApi.InstallationBaseInfoPost(context.Background()).Execute() + resp, httpRes, err := apiClient.InstallationAPI.InstallationBaseInfoPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_InstallationApiService(t *testing.T) { }) - t.Run("Test InstallationApiService InstallationConfigFileCheckPost", func(t *testing.T) { + t.Run("Test InstallationAPIService InstallationConfigFileCheckPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.InstallationApi.InstallationConfigFileCheckPost(context.Background()).Execute() + resp, httpRes, err := apiClient.InstallationAPI.InstallationConfigFileCheckPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_InstallationApiService(t *testing.T) { }) - t.Run("Test InstallationApiService InstallationDbCheckPost", func(t *testing.T) { + t.Run("Test InstallationAPIService InstallationDbCheckPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.InstallationApi.InstallationDbCheckPost(context.Background()).Execute() + resp, httpRes, err := apiClient.InstallationAPI.InstallationDbCheckPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_InstallationApiService(t *testing.T) { }) - t.Run("Test InstallationApiService InstallationInitPost", func(t *testing.T) { + t.Run("Test InstallationAPIService InstallationInitPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.InstallationApi.InstallationInitPost(context.Background()).Execute() + resp, httpRes, err := apiClient.InstallationAPI.InstallationInitPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,11 +69,11 @@ func Test_openapi_InstallationApiService(t *testing.T) { }) - t.Run("Test InstallationApiService RootGet", func(t *testing.T) { + t.Run("Test InstallationAPIService RootGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.InstallationApi.RootGet(context.Background()).Execute() + httpRes, err := apiClient.InstallationAPI.RootGet(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/test/api_lang_test.go b/test/api_lang_test.go index 6832173..ac58276 100644 --- a/test/api_lang_test.go +++ b/test/api_lang_test.go @@ -1,32 +1,31 @@ /* -answer -Testing LangApiService +Testing LangAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_LangApiService(t *testing.T) { +func Test_answer_sdk_LangAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test LangApiService AnswerAdminApiLanguageOptionsGet", func(t *testing.T) { + t.Run("Test LangAPIService AnswerAdminApiLanguageOptionsGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.LangApi.AnswerAdminApiLanguageOptionsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.LangAPI.AnswerAdminApiLanguageOptionsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_LangApiService(t *testing.T) { }) - t.Run("Test LangApiService AnswerApiV1LanguageConfigGet", func(t *testing.T) { + t.Run("Test LangAPIService AnswerApiV1LanguageConfigGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.LangApi.AnswerApiV1LanguageConfigGet(context.Background()).Execute() + resp, httpRes, err := apiClient.LangAPI.AnswerApiV1LanguageConfigGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_LangApiService(t *testing.T) { }) - t.Run("Test LangApiService AnswerApiV1LanguageOptionsGet", func(t *testing.T) { + t.Run("Test LangAPIService AnswerApiV1LanguageOptionsGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.LangApi.AnswerApiV1LanguageOptionsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.LangAPI.AnswerApiV1LanguageOptionsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_LangApiService(t *testing.T) { }) - t.Run("Test LangApiService InstallationLanguageOptionsGet", func(t *testing.T) { + t.Run("Test LangAPIService InstallationLanguageOptionsGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.LangApi.InstallationLanguageOptionsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.LangAPI.InstallationLanguageOptionsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_notification_test.go b/test/api_notification_test.go index 0d1cd98..6dc637a 100644 --- a/test/api_notification_test.go +++ b/test/api_notification_test.go @@ -1,32 +1,31 @@ /* -answer -Testing NotificationApiService +Testing NotificationAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_NotificationApiService(t *testing.T) { +func Test_answer_sdk_NotificationAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test NotificationApiService AnswerApiV1NotificationPageGet", func(t *testing.T) { + t.Run("Test NotificationAPIService AnswerApiV1NotificationPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationAPI.AnswerApiV1NotificationPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_NotificationApiService(t *testing.T) { }) - t.Run("Test NotificationApiService AnswerApiV1NotificationReadStateAllPut", func(t *testing.T) { + t.Run("Test NotificationAPIService AnswerApiV1NotificationReadStateAllPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationReadStateAllPut(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationAPI.AnswerApiV1NotificationReadStateAllPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_NotificationApiService(t *testing.T) { }) - t.Run("Test NotificationApiService AnswerApiV1NotificationReadStatePut", func(t *testing.T) { + t.Run("Test NotificationAPIService AnswerApiV1NotificationReadStatePut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationReadStatePut(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationAPI.AnswerApiV1NotificationReadStatePut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_NotificationApiService(t *testing.T) { }) - t.Run("Test NotificationApiService AnswerApiV1NotificationStatusGet", func(t *testing.T) { + t.Run("Test NotificationAPIService AnswerApiV1NotificationStatusGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationStatusGet(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationAPI.AnswerApiV1NotificationStatusGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,11 +69,11 @@ func Test_openapi_NotificationApiService(t *testing.T) { }) - t.Run("Test NotificationApiService AnswerApiV1NotificationStatusPut", func(t *testing.T) { + t.Run("Test NotificationAPIService AnswerApiV1NotificationStatusPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationStatusPut(context.Background()).Execute() + resp, httpRes, err := apiClient.NotificationAPI.AnswerApiV1NotificationStatusPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_permission_test.go b/test/api_permission_test.go index fdbcfa7..330e1f5 100644 --- a/test/api_permission_test.go +++ b/test/api_permission_test.go @@ -1,31 +1,31 @@ /* -Testing PermissionApiService +Testing PermissionAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_PermissionApiService(t *testing.T) { +func Test_answer_sdk_PermissionAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PermissionApiService AnswerApiV1PermissionGet", func(t *testing.T) { + t.Run("Test PermissionAPIService AnswerApiV1PermissionGet", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PermissionApi.AnswerApiV1PermissionGet(context.Background()).Execute() + resp, httpRes, err := apiClient.PermissionAPI.AnswerApiV1PermissionGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_personal_test.go b/test/api_personal_test.go index 38f2825..0dcb72b 100644 --- a/test/api_personal_test.go +++ b/test/api_personal_test.go @@ -1,31 +1,31 @@ /* -Testing PersonalApiService +Testing PersonalAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_PersonalApiService(t *testing.T) { +func Test_answer_sdk_PersonalAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PersonalApiService AnswerApiV1PersonalAnswerPageGet", func(t *testing.T) { + t.Run("Test PersonalAPIService AnswerApiV1PersonalAnswerPageGet", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PersonalApi.AnswerApiV1PersonalAnswerPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.PersonalAPI.AnswerApiV1PersonalAnswerPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -33,11 +33,11 @@ func Test_openapi_PersonalApiService(t *testing.T) { }) - t.Run("Test PersonalApiService PersonalQuestionPageGet", func(t *testing.T) { + t.Run("Test PersonalAPIService PersonalQuestionPageGet", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PersonalApi.PersonalQuestionPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.PersonalAPI.PersonalQuestionPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_plugin_connector_test.go b/test/api_plugin_connector_test.go index 02dbf81..ff98a60 100644 --- a/test/api_plugin_connector_test.go +++ b/test/api_plugin_connector_test.go @@ -1,31 +1,31 @@ /* -Testing PluginConnectorApiService +Testing PluginConnectorAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_PluginConnectorApiService(t *testing.T) { +func Test_answer_sdk_PluginConnectorAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test PluginConnectorApiService AnswerApiV1ConnectorBindingEmailPost", func(t *testing.T) { + t.Run("Test PluginConnectorAPIService AnswerApiV1ConnectorBindingEmailPost", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorBindingEmailPost(context.Background()).Execute() + resp, httpRes, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorBindingEmailPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -33,11 +33,11 @@ func Test_openapi_PluginConnectorApiService(t *testing.T) { }) - t.Run("Test PluginConnectorApiService AnswerApiV1ConnectorInfoGet", func(t *testing.T) { + t.Run("Test PluginConnectorAPIService AnswerApiV1ConnectorInfoGet", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorInfoGet(context.Background()).Execute() + resp, httpRes, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorInfoGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -45,11 +45,11 @@ func Test_openapi_PluginConnectorApiService(t *testing.T) { }) - t.Run("Test PluginConnectorApiService AnswerApiV1ConnectorUserInfoGet", func(t *testing.T) { + t.Run("Test PluginConnectorAPIService AnswerApiV1ConnectorUserInfoGet", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorUserInfoGet(context.Background()).Execute() + resp, httpRes, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorUserInfoGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -57,11 +57,11 @@ func Test_openapi_PluginConnectorApiService(t *testing.T) { }) - t.Run("Test PluginConnectorApiService AnswerApiV1ConnectorUserUnbindingDelete", func(t *testing.T) { + t.Run("Test PluginConnectorAPIService AnswerApiV1ConnectorUserUnbindingDelete", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.PluginConnectorApi.AnswerApiV1ConnectorUserUnbindingDelete(context.Background()).Execute() + resp, httpRes, err := apiClient.PluginConnectorAPI.AnswerApiV1ConnectorUserUnbindingDelete(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_question_test.go b/test/api_question_test.go index f61d9db..70b5bfe 100644 --- a/test/api_question_test.go +++ b/test/api_question_test.go @@ -1,32 +1,31 @@ /* -answer -Testing QuestionApiService +Testing QuestionAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_QuestionApiService(t *testing.T) { +func Test_answer_sdk_QuestionAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test QuestionApiService AnswerApiV1PersonalQaTopGet", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1PersonalQaTopGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1PersonalQaTopGet(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1PersonalQaTopGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionAnswerPost", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionAnswerPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionAnswerPost(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionAnswerPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionClosemsglistGet", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionDelete", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionClosemsglistGet(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionDelete(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionDelete", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionInfoGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionDelete(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionInfoGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,11 +69,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionInfoGet", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionInviteGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionInfoGet(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionInviteGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,11 +81,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionOperationPut", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionInvitePut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionOperationPut(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionInvitePut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,11 +93,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionPageGet", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionOperationPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionOperationPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -106,11 +105,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionPost", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionPost(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -118,11 +117,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionPut", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionPut(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,11 +129,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionReopenPut", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionReopenPut(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -142,11 +141,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionSimilarGet", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionReopenPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionSimilarGet(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionReopenPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -154,11 +153,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionSimilarTagGet", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionSimilarGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionSimilarTagGet(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionSimilarGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -166,11 +165,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService AnswerApiV1QuestionStatusPut", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionSimilarTagGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionStatusPut(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionSimilarTagGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -178,11 +177,11 @@ func Test_openapi_QuestionApiService(t *testing.T) { }) - t.Run("Test QuestionApiService PersonalQuestionPageGet", func(t *testing.T) { + t.Run("Test QuestionAPIService AnswerApiV1QuestionStatusPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.QuestionApi.PersonalQuestionPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.QuestionAPI.AnswerApiV1QuestionStatusPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_rank_test.go b/test/api_rank_test.go index 9e3b4f7..ec042cf 100644 --- a/test/api_rank_test.go +++ b/test/api_rank_test.go @@ -1,32 +1,31 @@ /* -answer -Testing RankApiService +Testing RankAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_RankApiService(t *testing.T) { +func Test_answer_sdk_RankAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test RankApiService AnswerApiV1PersonalRankPageGet", func(t *testing.T) { + t.Run("Test RankAPIService AnswerApiV1PersonalRankPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.RankApi.AnswerApiV1PersonalRankPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.RankAPI.AnswerApiV1PersonalRankPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_reason_test.go b/test/api_reason_test.go index b25edae..09bd348 100644 --- a/test/api_reason_test.go +++ b/test/api_reason_test.go @@ -1,32 +1,31 @@ /* -answer -Testing ReasonApiService +Testing ReasonAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_ReasonApiService(t *testing.T) { +func Test_answer_sdk_ReasonAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test ReasonApiService AnswerAdminApiReasonsGet", func(t *testing.T) { + t.Run("Test ReasonAPIService AnswerAdminApiReasonsGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ReasonApi.AnswerAdminApiReasonsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.ReasonAPI.AnswerAdminApiReasonsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_ReasonApiService(t *testing.T) { }) - t.Run("Test ReasonApiService AnswerApiV1ReasonsGet", func(t *testing.T) { + t.Run("Test ReasonAPIService AnswerApiV1ReasonsGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ReasonApi.AnswerApiV1ReasonsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.ReasonAPI.AnswerApiV1ReasonsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_report_test.go b/test/api_report_test.go index 6bca8c6..0a0c95b 100644 --- a/test/api_report_test.go +++ b/test/api_report_test.go @@ -1,44 +1,31 @@ /* -answer -Testing ReportApiService +Testing ReportAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_ReportApiService(t *testing.T) { +func Test_answer_sdk_ReportAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test ReportApiService AnswerApiV1ReportPost", func(t *testing.T) { + t.Run("Test ReportAPIService AnswerApiV1ReportPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ReportApi.AnswerApiV1ReportPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test ReportApiService AnswerApiV1ReportTypeListGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.ReportApi.AnswerApiV1ReportTypeListGet(context.Background()).Execute() + resp, httpRes, err := apiClient.ReportAPI.AnswerApiV1ReportPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_revision_test.go b/test/api_revision_test.go index f0b5cf7..58fd758 100644 --- a/test/api_revision_test.go +++ b/test/api_revision_test.go @@ -1,32 +1,31 @@ /* -answer -Testing RevisionApiService +Testing RevisionAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_RevisionApiService(t *testing.T) { +func Test_answer_sdk_RevisionAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test RevisionApiService AnswerApiV1RevisionsAuditPut", func(t *testing.T) { + t.Run("Test RevisionAPIService AnswerApiV1RevisionsAuditPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsAuditPut(context.Background()).Execute() + resp, httpRes, err := apiClient.RevisionAPI.AnswerApiV1RevisionsAuditPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_RevisionApiService(t *testing.T) { }) - t.Run("Test RevisionApiService AnswerApiV1RevisionsEditCheckGet", func(t *testing.T) { + t.Run("Test RevisionAPIService AnswerApiV1RevisionsEditCheckGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsEditCheckGet(context.Background()).Execute() + resp, httpRes, err := apiClient.RevisionAPI.AnswerApiV1RevisionsEditCheckGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_RevisionApiService(t *testing.T) { }) - t.Run("Test RevisionApiService AnswerApiV1RevisionsGet", func(t *testing.T) { + t.Run("Test RevisionAPIService AnswerApiV1RevisionsGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.RevisionAPI.AnswerApiV1RevisionsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_RevisionApiService(t *testing.T) { }) - t.Run("Test RevisionApiService AnswerApiV1RevisionsUnreviewedGet", func(t *testing.T) { + t.Run("Test RevisionAPIService AnswerApiV1RevisionsUnreviewedGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsUnreviewedGet(context.Background()).Execute() + resp, httpRes, err := apiClient.RevisionAPI.AnswerApiV1RevisionsUnreviewedGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_search_test.go b/test/api_search_test.go index 9dc0d40..f528b46 100644 --- a/test/api_search_test.go +++ b/test/api_search_test.go @@ -1,32 +1,43 @@ /* -answer -Testing SearchApiService +Testing SearchAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_SearchApiService(t *testing.T) { +func Test_answer_sdk_SearchAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test SearchApiService AnswerApiV1SearchGet", func(t *testing.T) { + t.Run("Test SearchAPIService AnswerApiV1SearchDescGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.SearchApi.AnswerApiV1SearchGet(context.Background()).Execute() + resp, httpRes, err := apiClient.SearchAPI.AnswerApiV1SearchDescGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SearchAPIService AnswerApiV1SearchGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SearchAPI.AnswerApiV1SearchGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_site_test.go b/test/api_site_test.go index ac0b1dd..4dd2a27 100644 --- a/test/api_site_test.go +++ b/test/api_site_test.go @@ -1,32 +1,31 @@ /* -answer -Testing SiteApiService +Testing SiteAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_SiteApiService(t *testing.T) { +func Test_answer_sdk_SiteAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test SiteApiService AnswerApiV1SiteinfoGet", func(t *testing.T) { + t.Run("Test SiteAPIService AnswerApiV1SiteinfoGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.SiteApi.AnswerApiV1SiteinfoGet(context.Background()).Execute() + resp, httpRes, err := apiClient.SiteAPI.AnswerApiV1SiteinfoGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_SiteApiService(t *testing.T) { }) - t.Run("Test SiteApiService AnswerApiV1SiteinfoLegalGet", func(t *testing.T) { + t.Run("Test SiteAPIService AnswerApiV1SiteinfoLegalGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.SiteApi.AnswerApiV1SiteinfoLegalGet(context.Background()).Execute() + resp, httpRes, err := apiClient.SiteAPI.AnswerApiV1SiteinfoLegalGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_SiteApiService(t *testing.T) { }) - t.Run("Test SiteApiService CustomCssGet", func(t *testing.T) { + t.Run("Test SiteAPIService CustomCssGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.SiteApi.CustomCssGet(context.Background()).Execute() + resp, httpRes, err := apiClient.SiteAPI.CustomCssGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_SiteApiService(t *testing.T) { }) - t.Run("Test SiteApiService RobotsTxtGet", func(t *testing.T) { + t.Run("Test SiteAPIService RobotsTxtGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.SiteApi.RobotsTxtGet(context.Background()).Execute() + resp, httpRes, err := apiClient.SiteAPI.RobotsTxtGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_tag_test.go b/test/api_tag_test.go index f54d2fd..a0b9df3 100644 --- a/test/api_tag_test.go +++ b/test/api_tag_test.go @@ -1,32 +1,31 @@ /* -answer -Testing TagApiService +Testing TagAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_TagApiService(t *testing.T) { +func Test_answer_sdk_TagAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test TagApiService AnswerApiV1QuestionTagsGet", func(t *testing.T) { + t.Run("Test TagAPIService AnswerApiV1QuestionTagsGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TagApi.AnswerApiV1QuestionTagsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.TagAPI.AnswerApiV1QuestionTagsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_TagApiService(t *testing.T) { }) - t.Run("Test TagApiService AnswerApiV1TagDelete", func(t *testing.T) { + t.Run("Test TagAPIService AnswerApiV1TagDelete", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagDelete(context.Background()).Execute() + resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagDelete(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_TagApiService(t *testing.T) { }) - t.Run("Test TagApiService AnswerApiV1TagGet", func(t *testing.T) { + t.Run("Test TagAPIService AnswerApiV1TagGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagGet(context.Background()).Execute() + resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_TagApiService(t *testing.T) { }) - t.Run("Test TagApiService AnswerApiV1TagPost", func(t *testing.T) { + t.Run("Test TagAPIService AnswerApiV1TagPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagPost(context.Background()).Execute() + resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,11 +69,11 @@ func Test_openapi_TagApiService(t *testing.T) { }) - t.Run("Test TagApiService AnswerApiV1TagPut", func(t *testing.T) { + t.Run("Test TagAPIService AnswerApiV1TagPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagPut(context.Background()).Execute() + resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,11 +81,11 @@ func Test_openapi_TagApiService(t *testing.T) { }) - t.Run("Test TagApiService AnswerApiV1TagSynonymPut", func(t *testing.T) { + t.Run("Test TagAPIService AnswerApiV1TagSynonymPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagSynonymPut(context.Background()).Execute() + resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagSynonymPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,11 +93,11 @@ func Test_openapi_TagApiService(t *testing.T) { }) - t.Run("Test TagApiService AnswerApiV1TagSynonymsGet", func(t *testing.T) { + t.Run("Test TagAPIService AnswerApiV1TagSynonymsGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagSynonymsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagSynonymsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -106,11 +105,11 @@ func Test_openapi_TagApiService(t *testing.T) { }) - t.Run("Test TagApiService AnswerApiV1TagsFollowingGet", func(t *testing.T) { + t.Run("Test TagAPIService AnswerApiV1TagsFollowingGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagsFollowingGet(context.Background()).Execute() + resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagsFollowingGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -118,11 +117,11 @@ func Test_openapi_TagApiService(t *testing.T) { }) - t.Run("Test TagApiService AnswerApiV1TagsGet", func(t *testing.T) { + t.Run("Test TagAPIService AnswerApiV1TagsGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagsGet(context.Background()).Execute() + resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagsGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,11 +129,11 @@ func Test_openapi_TagApiService(t *testing.T) { }) - t.Run("Test TagApiService AnswerApiV1TagsPageGet", func(t *testing.T) { + t.Run("Test TagAPIService AnswerApiV1TagsPageGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagsPageGet(context.Background()).Execute() + resp, httpRes, err := apiClient.TagAPI.AnswerApiV1TagsPageGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_upload_test.go b/test/api_upload_test.go index 71336e9..818571e 100644 --- a/test/api_upload_test.go +++ b/test/api_upload_test.go @@ -1,32 +1,31 @@ /* -answer -Testing UploadApiService +Testing UploadAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_UploadApiService(t *testing.T) { +func Test_answer_sdk_UploadAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test UploadApiService AnswerApiV1FilePost", func(t *testing.T) { + t.Run("Test UploadAPIService AnswerApiV1FilePost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UploadApi.AnswerApiV1FilePost(context.Background()).Execute() + resp, httpRes, err := apiClient.UploadAPI.AnswerApiV1FilePost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_UploadApiService(t *testing.T) { }) - t.Run("Test UploadApiService AnswerApiV1PostRenderPost", func(t *testing.T) { + t.Run("Test UploadAPIService AnswerApiV1PostRenderPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UploadApi.AnswerApiV1PostRenderPost(context.Background()).Execute() + resp, httpRes, err := apiClient.UploadAPI.AnswerApiV1PostRenderPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_user_test.go b/test/api_user_test.go index 0c29281..c3ba0de 100644 --- a/test/api_user_test.go +++ b/test/api_user_test.go @@ -1,32 +1,31 @@ /* -answer -Testing UserApiService +Testing UserAPIService */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); -package openapi +package answer_sdk import ( "context" - openapiclient "git.ncc.cx/package/openapi-go-answer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "testing" + openapiclient "git.ncc.cx/package/openapi-go-answer" ) -func Test_openapi_UserApiService(t *testing.T) { +func Test_answer_sdk_UserAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test UserApiService AnswerApiV1PersonalUserInfoGet", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1PersonalUserInfoGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1PersonalUserInfoGet(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1PersonalUserInfoGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -34,11 +33,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserActionRecordGet", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserActionRecordGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserActionRecordGet(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserActionRecordGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserEmailChangeCodePost", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserEmailChangeCodePost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailChangeCodePost(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailChangeCodePost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserEmailNotificationPut", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserEmailPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailNotificationPut(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,11 +69,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserEmailPut", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserEmailVerificationPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailPut(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailVerificationPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,11 +81,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserEmailVerificationPost", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserEmailVerificationSendPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationPost(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailVerificationSendPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -94,11 +93,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserEmailVerificationSendPost", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserInfoGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationSendPost(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInfoGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -106,11 +105,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserInfoGet", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserInfoPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInfoGet(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInfoPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -118,11 +117,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserInfoPut", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserInfoSearchGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInfoPut(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInfoSearchGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -130,11 +129,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserInterfacePut", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserInterfacePut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInterfacePut(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInterfacePut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -142,11 +141,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserLoginEmailPost", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserLoginEmailPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserLoginEmailPost(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserLoginEmailPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -154,11 +153,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserLogoutGet", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserLogoutGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserLogoutGet(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserLogoutGet(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -166,11 +165,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserNoticeSetPost", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserNotificationConfigPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserNoticeSetPost(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserNotificationConfigPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -178,11 +177,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserPasswordPut", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserNotificationConfigPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordPut(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserNotificationConfigPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -190,11 +189,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserPasswordReplacementPost", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserNotificationUnsubscribePut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordReplacementPost(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserNotificationUnsubscribePut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -202,11 +201,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserPasswordResetPost", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserPasswordPut", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordResetPost(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserPasswordPut(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -214,11 +213,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserRankingGet", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserPasswordReplacementPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRankingGet(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserPasswordReplacementPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -226,11 +225,11 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserRegisterCaptchaGet", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserPasswordResetPost", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserPasswordResetPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -238,11 +237,35 @@ func Test_openapi_UserApiService(t *testing.T) { }) - t.Run("Test UserApiService AnswerApiV1UserRegisterEmailPost", func(t *testing.T) { + t.Run("Test UserAPIService AnswerApiV1UserRankingGet", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRegisterEmailPost(context.Background()).Execute() + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserRankingGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserAPIService AnswerApiV1UserRegisterCaptchaGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserAPIService AnswerApiV1UserRegisterEmailPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserRegisterEmailPost(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/utils.go b/utils.go index d9315f5..58b9736 100644 --- a/utils.go +++ b/utils.go @@ -6,7 +6,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. -package openapi +package answer_sdk import ( "encoding/json"