diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 60f1af0..3d54773 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,16 +1,19 @@ .gitignore -.openapi-generator-ignore .travis.yml README.md api/openapi.yaml api_activity.go api_admin.go +api_admin_plugin.go api_api_answer.go api_collection.go api_comment.go api_installation.go api_lang.go api_notification.go +api_permission.go +api_personal.go +api_plugin_connector.go api_question.go api_rank.go api_reason.go @@ -25,7 +28,11 @@ client.go configuration.go docs/ActivityApi.md docs/AdminApi.md +docs/AdminPluginApi.md +docs/AnswerAdminApiPluginConfigGet200Response.md +docs/AnswerAdminApiPluginsGet200Response.md docs/AnswerAdminApiRolesGet200Response.md +docs/AnswerAdminApiSettingPrivilegesGet200Response.md docs/AnswerAdminApiSettingSmtpGet200Response.md docs/AnswerAdminApiSiteinfoBrandingGet200Response.md docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md @@ -35,7 +42,9 @@ docs/AnswerAdminApiSiteinfoLegalGet200Response.md docs/AnswerAdminApiSiteinfoLoginGet200Response.md docs/AnswerAdminApiSiteinfoSeoGet200Response.md docs/AnswerAdminApiSiteinfoThemeGet200Response.md +docs/AnswerAdminApiSiteinfoUsersGet200Response.md docs/AnswerAdminApiSiteinfoWriteGet200Response.md +docs/AnswerAdminApiUserActivationGet200Response.md docs/AnswerAdminApiUsersPageGet200Response.md docs/AnswerAdminApiUsersPageGet200ResponseData.md docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md @@ -45,8 +54,12 @@ docs/AnswerApiV1CommentGet200Response.md docs/AnswerApiV1CommentGet200ResponseData.md docs/AnswerApiV1CommentGet200ResponseDataAllOf.md docs/AnswerApiV1CommentPost200Response.md +docs/AnswerApiV1ConnectorBindingEmailPost200Response.md +docs/AnswerApiV1ConnectorInfoGet200Response.md +docs/AnswerApiV1ConnectorUserInfoGet200Response.md docs/AnswerApiV1FilePost200Response.md docs/AnswerApiV1FollowPost200Response.md +docs/AnswerApiV1PermissionGet200Response.md docs/AnswerApiV1PersonalCommentPageGet200Response.md docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md @@ -61,7 +74,6 @@ docs/AnswerApiV1QuestionPageGet200Response.md docs/AnswerApiV1QuestionPageGet200ResponseData.md docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md docs/AnswerApiV1QuestionTagsGet200Response.md -docs/AnswerApiV1ReportTypeListGet200Response.md docs/AnswerApiV1RevisionsGet200Response.md docs/AnswerApiV1RevisionsUnreviewedGet200Response.md docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md @@ -84,6 +96,7 @@ docs/AnswerApiV1VoteDownPost200Response.md docs/ApiAnswerApi.md docs/CollectionApi.md docs/CommentApi.md +docs/ConstantPrivilege.md docs/HandlerRespBody.md docs/InstallCheckConfigFileResp.md docs/InstallCheckDatabaseReq.md @@ -94,6 +107,9 @@ docs/InstallationLanguageOptionsGet200Response.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 @@ -115,16 +131,27 @@ docs/SchemaAvatarInfo.md docs/SchemaCloseQuestionReq.md docs/SchemaCollectionSwitchReq.md docs/SchemaCollectionSwitchResp.md +docs/SchemaConfigField.md +docs/SchemaConfigFieldOption.md +docs/SchemaConfigFieldUIOptions.md +docs/SchemaConnectorInfoResp.md +docs/SchemaConnectorUserInfoResp.md +docs/SchemaExternalLoginBindingUserSendEmailReq.md +docs/SchemaExternalLoginBindingUserSendEmailResp.md +docs/SchemaExternalLoginUnbindingReq.md docs/SchemaFollowReq.md docs/SchemaFollowResp.md docs/SchemaGetCommentPersonalWithPageResp.md docs/SchemaGetCommentResp.md +docs/SchemaGetCurrentLoginUserInfoResp.md docs/SchemaGetFollowingTagsResp.md docs/SchemaGetObjectTimelineResp.md docs/SchemaGetOtherUserInfoByUsernameResp.md docs/SchemaGetOtherUserInfoResp.md -docs/SchemaGetRankPersonalWithPageResp.md -docs/SchemaGetReportTypeResp.md +docs/SchemaGetPluginConfigResp.md +docs/SchemaGetPluginListResp.md +docs/SchemaGetPrivilegesConfigResp.md +docs/SchemaGetRankPersonalPageResp.md docs/SchemaGetRevisionResp.md docs/SchemaGetRoleResp.md docs/SchemaGetSMTPConfigResp.md @@ -133,21 +160,24 @@ docs/SchemaGetTagPageResp.md docs/SchemaGetTagResp.md docs/SchemaGetTagSynonymsResp.md docs/SchemaGetUnreviewedRevisionResp.md +docs/SchemaGetUserActivationResp.md docs/SchemaGetUserPageResp.md -docs/SchemaGetUserResp.md -docs/SchemaGetUserToSetShowResp.md docs/SchemaGetVoteWithPageResp.md +docs/SchemaLoadingAction.md docs/SchemaNotificationClearIDRequest.md docs/SchemaNotificationClearRequest.md +docs/SchemaOnCompleteAction.md docs/SchemaOperationQuestionReq.md docs/SchemaPermissionMemberAction.md docs/SchemaPostRenderReq.md +docs/SchemaPrivilegeLevel.md +docs/SchemaPrivilegeOption.md docs/SchemaQuestionAdd.md docs/SchemaQuestionAddByAnswer.md -docs/SchemaQuestionPageReq.md docs/SchemaQuestionPageResp.md docs/SchemaQuestionPageRespOperator.md docs/SchemaQuestionUpdate.md +docs/SchemaQuestionUpdateInviteUser.md docs/SchemaRemoveAnswerReq.md docs/SchemaRemoveCommentReq.md docs/SchemaRemoveQuestionReq.md @@ -157,7 +187,10 @@ docs/SchemaReportHandleReq.md docs/SchemaRevisionAuditReq.md docs/SchemaSearchListResp.md docs/SchemaSearchObject.md +docs/SchemaSearchObjectUserInfo.md docs/SchemaSearchResp.md +docs/SchemaSearchRespObject.md +docs/SchemaSendUserActivationReq.md docs/SchemaSiteBrandingReq.md docs/SchemaSiteBrandingResp.md docs/SchemaSiteCustomCssHTMLReq.md @@ -175,16 +208,23 @@ docs/SchemaSiteSeoReq.md docs/SchemaSiteSeoResp.md docs/SchemaSiteThemeReq.md docs/SchemaSiteThemeResp.md +docs/SchemaSiteUsersReq.md +docs/SchemaSiteUsersResp.md docs/SchemaSiteWriteReq.md docs/SchemaSiteWriteResp.md docs/SchemaTagItem.md docs/SchemaTagResp.md docs/SchemaTagSynonym.md docs/SchemaThemeOption.md +docs/SchemaUIOptionAction.md docs/SchemaUnreviewedRevisionInfoInfo.md docs/SchemaUpdateCommentReq.md docs/SchemaUpdateFollowTagsReq.md docs/SchemaUpdateInfoRequest.md +docs/SchemaUpdateInfoRequestAvatar.md +docs/SchemaUpdatePluginConfigReq.md +docs/SchemaUpdatePluginStatusReq.md +docs/SchemaUpdatePrivilegesConfigReq.md docs/SchemaUpdateSMTPConfigReq.md docs/SchemaUpdateTagReq.md docs/SchemaUpdateTagSynonymReq.md @@ -196,7 +236,8 @@ docs/SchemaUserBasicInfo.md docs/SchemaUserChangeEmailSendCodeReq.md docs/SchemaUserChangeEmailVerifyReq.md docs/SchemaUserEmailLogin.md -docs/SchemaUserModifyPassWordRequest.md +docs/SchemaUserLoginResp.md +docs/SchemaUserModifyPasswordReq.md docs/SchemaUserNoticeSetRequest.md docs/SchemaUserNoticeSetResp.md docs/SchemaUserRankingResp.md @@ -215,7 +256,10 @@ docs/UserApi.md git_push.sh go.mod go.sum +model__answer_admin_api_plugin_config_get_200_response.go +model__answer_admin_api_plugins_get_200_response.go model__answer_admin_api_roles_get_200_response.go +model__answer_admin_api_setting_privileges_get_200_response.go model__answer_admin_api_setting_smtp_get_200_response.go model__answer_admin_api_siteinfo_branding_get_200_response.go model__answer_admin_api_siteinfo_custom_css_html_get_200_response.go @@ -225,7 +269,9 @@ model__answer_admin_api_siteinfo_legal_get_200_response.go model__answer_admin_api_siteinfo_login_get_200_response.go model__answer_admin_api_siteinfo_seo_get_200_response.go model__answer_admin_api_siteinfo_theme_get_200_response.go +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 @@ -235,8 +281,12 @@ 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_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 +model__answer_api_v1_connector_user_info_get_200_response.go 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 @@ -251,7 +301,6 @@ 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_tags_get_200_response.go -model__answer_api_v1_report_type_list_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 @@ -273,6 +322,7 @@ 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_privilege.go model_handler_resp_body.go model_install_check_config_file_resp.go model_install_check_database_req.go @@ -294,16 +344,27 @@ model_schema_avatar_info.go model_schema_close_question_req.go model_schema_collection_switch_req.go model_schema_collection_switch_resp.go +model_schema_config_field.go +model_schema_config_field_option.go +model_schema_config_field_ui_options.go +model_schema_connector_info_resp.go +model_schema_connector_user_info_resp.go +model_schema_external_login_binding_user_send_email_req.go +model_schema_external_login_binding_user_send_email_resp.go +model_schema_external_login_unbinding_req.go model_schema_follow_req.go model_schema_follow_resp.go model_schema_get_comment_personal_with_page_resp.go model_schema_get_comment_resp.go +model_schema_get_current_login_user_info_resp.go model_schema_get_following_tags_resp.go model_schema_get_object_timeline_resp.go model_schema_get_other_user_info_by_username_resp.go model_schema_get_other_user_info_resp.go -model_schema_get_rank_personal_with_page_resp.go -model_schema_get_report_type_resp.go +model_schema_get_plugin_config_resp.go +model_schema_get_plugin_list_resp.go +model_schema_get_privileges_config_resp.go +model_schema_get_rank_personal_page_resp.go model_schema_get_revision_resp.go model_schema_get_role_resp.go model_schema_get_site_legal_info_resp.go @@ -312,21 +373,24 @@ model_schema_get_tag_page_resp.go 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_page_resp.go -model_schema_get_user_resp.go -model_schema_get_user_to_set_show_resp.go model_schema_get_vote_with_page_resp.go +model_schema_loading_action.go model_schema_notification_clear_id_request.go model_schema_notification_clear_request.go +model_schema_on_complete_action.go model_schema_operation_question_req.go model_schema_permission_member_action.go model_schema_post_render_req.go +model_schema_privilege_level.go +model_schema_privilege_option.go model_schema_question_add.go model_schema_question_add_by_answer.go -model_schema_question_page_req.go model_schema_question_page_resp.go model_schema_question_page_resp_operator.go model_schema_question_update.go +model_schema_question_update_invite_user.go model_schema_remove_answer_req.go model_schema_remove_comment_req.go model_schema_remove_question_req.go @@ -336,7 +400,10 @@ 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_resp.go +model_schema_search_resp_object.go +model_schema_send_user_activation_req.go model_schema_site_branding_req.go model_schema_site_branding_resp.go model_schema_site_custom_css_html_req.go @@ -354,16 +421,23 @@ model_schema_site_seo_req.go model_schema_site_seo_resp.go model_schema_site_theme_req.go model_schema_site_theme_resp.go +model_schema_site_users_req.go +model_schema_site_users_resp.go model_schema_site_write_req.go model_schema_site_write_resp.go model_schema_tag_item.go model_schema_tag_resp.go model_schema_tag_synonym.go model_schema_theme_option.go +model_schema_ui_option_action.go 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 model_schema_update_smtp_config_req.go model_schema_update_tag_req.go model_schema_update_tag_synonym_req.go @@ -375,7 +449,8 @@ 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_modify_pass_word_request.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 @@ -387,22 +462,8 @@ 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_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_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 +test/api_admin_plugin_test.go +test/api_permission_test.go +test/api_personal_test.go +test/api_plugin_connector_test.go utils.go diff --git a/README.md b/README.md index 147fa65..b4bbf86 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Go API client for openapi -answer api +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: v0.0.1 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -73,23 +73,25 @@ ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVari ## Documentation for API Endpoints -All URIs are relative to *http://127.0.0.1:80* +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 | user's votes +*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 | AdminSearchAnswerList +*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 | AdminSearchList +*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 @@ -108,23 +110,30 @@ Class | Method | HTTP request | Description *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 -*ApiAnswerApi* | [**AnswerApiV1PersonalAnswerPageGet**](docs/ApiAnswerApi.md#answerapiv1personalanswerpageget) | **Get** /answer/api/v1/personal/answer/page | UserAnswerList *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 | UserCollectionList +*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 @@ -147,11 +156,19 @@ Class | Method | HTTP request | Description *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* | [**AnswerApiV1QuestionClosemsglistGet**](docs/QuestionApi.md#answerapiv1questionclosemsglistget) | **Get** /answer/api/v1/question/closemsglist | close question msg list *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 @@ -160,12 +177,10 @@ Class | Method | HTTP request | Description *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 -*QuestionApi* | [**PersonalQuestionPageGet**](docs/QuestionApi.md#personalquestionpageget) | **Get** /personal/question/page | UserList *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 -*ReportApi* | [**AnswerApiV1ReportTypeListGet**](docs/ReportApi.md#answerapiv1reporttypelistget) | **Get** /answer/api/v1/report/type/list | get report type list *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 @@ -196,6 +211,7 @@ Class | Method | HTTP request | Description *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 @@ -210,7 +226,10 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AnswerAdminApiPluginConfigGet200Response](docs/AnswerAdminApiPluginConfigGet200Response.md) + - [AnswerAdminApiPluginsGet200Response](docs/AnswerAdminApiPluginsGet200Response.md) - [AnswerAdminApiRolesGet200Response](docs/AnswerAdminApiRolesGet200Response.md) + - [AnswerAdminApiSettingPrivilegesGet200Response](docs/AnswerAdminApiSettingPrivilegesGet200Response.md) - [AnswerAdminApiSettingSmtpGet200Response](docs/AnswerAdminApiSettingSmtpGet200Response.md) - [AnswerAdminApiSiteinfoBrandingGet200Response](docs/AnswerAdminApiSiteinfoBrandingGet200Response.md) - [AnswerAdminApiSiteinfoCustomCssHtmlGet200Response](docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md) @@ -220,7 +239,9 @@ Class | Method | HTTP request | Description - [AnswerAdminApiSiteinfoLoginGet200Response](docs/AnswerAdminApiSiteinfoLoginGet200Response.md) - [AnswerAdminApiSiteinfoSeoGet200Response](docs/AnswerAdminApiSiteinfoSeoGet200Response.md) - [AnswerAdminApiSiteinfoThemeGet200Response](docs/AnswerAdminApiSiteinfoThemeGet200Response.md) + - [AnswerAdminApiSiteinfoUsersGet200Response](docs/AnswerAdminApiSiteinfoUsersGet200Response.md) - [AnswerAdminApiSiteinfoWriteGet200Response](docs/AnswerAdminApiSiteinfoWriteGet200Response.md) + - [AnswerAdminApiUserActivationGet200Response](docs/AnswerAdminApiUserActivationGet200Response.md) - [AnswerAdminApiUsersPageGet200Response](docs/AnswerAdminApiUsersPageGet200Response.md) - [AnswerAdminApiUsersPageGet200ResponseData](docs/AnswerAdminApiUsersPageGet200ResponseData.md) - [AnswerAdminApiUsersPageGet200ResponseDataAllOf](docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md) @@ -230,8 +251,12 @@ Class | Method | HTTP request | Description - [AnswerApiV1CommentGet200ResponseData](docs/AnswerApiV1CommentGet200ResponseData.md) - [AnswerApiV1CommentGet200ResponseDataAllOf](docs/AnswerApiV1CommentGet200ResponseDataAllOf.md) - [AnswerApiV1CommentPost200Response](docs/AnswerApiV1CommentPost200Response.md) + - [AnswerApiV1ConnectorBindingEmailPost200Response](docs/AnswerApiV1ConnectorBindingEmailPost200Response.md) + - [AnswerApiV1ConnectorInfoGet200Response](docs/AnswerApiV1ConnectorInfoGet200Response.md) + - [AnswerApiV1ConnectorUserInfoGet200Response](docs/AnswerApiV1ConnectorUserInfoGet200Response.md) - [AnswerApiV1FilePost200Response](docs/AnswerApiV1FilePost200Response.md) - [AnswerApiV1FollowPost200Response](docs/AnswerApiV1FollowPost200Response.md) + - [AnswerApiV1PermissionGet200Response](docs/AnswerApiV1PermissionGet200Response.md) - [AnswerApiV1PersonalCommentPageGet200Response](docs/AnswerApiV1PersonalCommentPageGet200Response.md) - [AnswerApiV1PersonalCommentPageGet200ResponseData](docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md) - [AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf](docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md) @@ -246,7 +271,6 @@ Class | Method | HTTP request | Description - [AnswerApiV1QuestionPageGet200ResponseData](docs/AnswerApiV1QuestionPageGet200ResponseData.md) - [AnswerApiV1QuestionPageGet200ResponseDataAllOf](docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md) - [AnswerApiV1QuestionTagsGet200Response](docs/AnswerApiV1QuestionTagsGet200Response.md) - - [AnswerApiV1ReportTypeListGet200Response](docs/AnswerApiV1ReportTypeListGet200Response.md) - [AnswerApiV1RevisionsGet200Response](docs/AnswerApiV1RevisionsGet200Response.md) - [AnswerApiV1RevisionsUnreviewedGet200Response](docs/AnswerApiV1RevisionsUnreviewedGet200Response.md) - [AnswerApiV1RevisionsUnreviewedGet200ResponseData](docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md) @@ -266,6 +290,7 @@ Class | Method | HTTP request | Description - [AnswerApiV1UserNoticeSetPost200Response](docs/AnswerApiV1UserNoticeSetPost200Response.md) - [AnswerApiV1UserRankingGet200Response](docs/AnswerApiV1UserRankingGet200Response.md) - [AnswerApiV1VoteDownPost200Response](docs/AnswerApiV1VoteDownPost200Response.md) + - [ConstantPrivilege](docs/ConstantPrivilege.md) - [HandlerRespBody](docs/HandlerRespBody.md) - [InstallCheckConfigFileResp](docs/InstallCheckConfigFileResp.md) - [InstallCheckDatabaseReq](docs/InstallCheckDatabaseReq.md) @@ -289,16 +314,27 @@ Class | Method | HTTP request | Description - [SchemaCloseQuestionReq](docs/SchemaCloseQuestionReq.md) - [SchemaCollectionSwitchReq](docs/SchemaCollectionSwitchReq.md) - [SchemaCollectionSwitchResp](docs/SchemaCollectionSwitchResp.md) + - [SchemaConfigField](docs/SchemaConfigField.md) + - [SchemaConfigFieldOption](docs/SchemaConfigFieldOption.md) + - [SchemaConfigFieldUIOptions](docs/SchemaConfigFieldUIOptions.md) + - [SchemaConnectorInfoResp](docs/SchemaConnectorInfoResp.md) + - [SchemaConnectorUserInfoResp](docs/SchemaConnectorUserInfoResp.md) + - [SchemaExternalLoginBindingUserSendEmailReq](docs/SchemaExternalLoginBindingUserSendEmailReq.md) + - [SchemaExternalLoginBindingUserSendEmailResp](docs/SchemaExternalLoginBindingUserSendEmailResp.md) + - [SchemaExternalLoginUnbindingReq](docs/SchemaExternalLoginUnbindingReq.md) - [SchemaFollowReq](docs/SchemaFollowReq.md) - [SchemaFollowResp](docs/SchemaFollowResp.md) - [SchemaGetCommentPersonalWithPageResp](docs/SchemaGetCommentPersonalWithPageResp.md) - [SchemaGetCommentResp](docs/SchemaGetCommentResp.md) + - [SchemaGetCurrentLoginUserInfoResp](docs/SchemaGetCurrentLoginUserInfoResp.md) - [SchemaGetFollowingTagsResp](docs/SchemaGetFollowingTagsResp.md) - [SchemaGetObjectTimelineResp](docs/SchemaGetObjectTimelineResp.md) - [SchemaGetOtherUserInfoByUsernameResp](docs/SchemaGetOtherUserInfoByUsernameResp.md) - [SchemaGetOtherUserInfoResp](docs/SchemaGetOtherUserInfoResp.md) - - [SchemaGetRankPersonalWithPageResp](docs/SchemaGetRankPersonalWithPageResp.md) - - [SchemaGetReportTypeResp](docs/SchemaGetReportTypeResp.md) + - [SchemaGetPluginConfigResp](docs/SchemaGetPluginConfigResp.md) + - [SchemaGetPluginListResp](docs/SchemaGetPluginListResp.md) + - [SchemaGetPrivilegesConfigResp](docs/SchemaGetPrivilegesConfigResp.md) + - [SchemaGetRankPersonalPageResp](docs/SchemaGetRankPersonalPageResp.md) - [SchemaGetRevisionResp](docs/SchemaGetRevisionResp.md) - [SchemaGetRoleResp](docs/SchemaGetRoleResp.md) - [SchemaGetSMTPConfigResp](docs/SchemaGetSMTPConfigResp.md) @@ -307,21 +343,24 @@ Class | Method | HTTP request | Description - [SchemaGetTagResp](docs/SchemaGetTagResp.md) - [SchemaGetTagSynonymsResp](docs/SchemaGetTagSynonymsResp.md) - [SchemaGetUnreviewedRevisionResp](docs/SchemaGetUnreviewedRevisionResp.md) + - [SchemaGetUserActivationResp](docs/SchemaGetUserActivationResp.md) - [SchemaGetUserPageResp](docs/SchemaGetUserPageResp.md) - - [SchemaGetUserResp](docs/SchemaGetUserResp.md) - - [SchemaGetUserToSetShowResp](docs/SchemaGetUserToSetShowResp.md) - [SchemaGetVoteWithPageResp](docs/SchemaGetVoteWithPageResp.md) + - [SchemaLoadingAction](docs/SchemaLoadingAction.md) - [SchemaNotificationClearIDRequest](docs/SchemaNotificationClearIDRequest.md) - [SchemaNotificationClearRequest](docs/SchemaNotificationClearRequest.md) + - [SchemaOnCompleteAction](docs/SchemaOnCompleteAction.md) - [SchemaOperationQuestionReq](docs/SchemaOperationQuestionReq.md) - [SchemaPermissionMemberAction](docs/SchemaPermissionMemberAction.md) - [SchemaPostRenderReq](docs/SchemaPostRenderReq.md) + - [SchemaPrivilegeLevel](docs/SchemaPrivilegeLevel.md) + - [SchemaPrivilegeOption](docs/SchemaPrivilegeOption.md) - [SchemaQuestionAdd](docs/SchemaQuestionAdd.md) - [SchemaQuestionAddByAnswer](docs/SchemaQuestionAddByAnswer.md) - - [SchemaQuestionPageReq](docs/SchemaQuestionPageReq.md) - [SchemaQuestionPageResp](docs/SchemaQuestionPageResp.md) - [SchemaQuestionPageRespOperator](docs/SchemaQuestionPageRespOperator.md) - [SchemaQuestionUpdate](docs/SchemaQuestionUpdate.md) + - [SchemaQuestionUpdateInviteUser](docs/SchemaQuestionUpdateInviteUser.md) - [SchemaRemoveAnswerReq](docs/SchemaRemoveAnswerReq.md) - [SchemaRemoveCommentReq](docs/SchemaRemoveCommentReq.md) - [SchemaRemoveQuestionReq](docs/SchemaRemoveQuestionReq.md) @@ -331,7 +370,10 @@ Class | Method | HTTP request | Description - [SchemaRevisionAuditReq](docs/SchemaRevisionAuditReq.md) - [SchemaSearchListResp](docs/SchemaSearchListResp.md) - [SchemaSearchObject](docs/SchemaSearchObject.md) + - [SchemaSearchObjectUserInfo](docs/SchemaSearchObjectUserInfo.md) - [SchemaSearchResp](docs/SchemaSearchResp.md) + - [SchemaSearchRespObject](docs/SchemaSearchRespObject.md) + - [SchemaSendUserActivationReq](docs/SchemaSendUserActivationReq.md) - [SchemaSiteBrandingReq](docs/SchemaSiteBrandingReq.md) - [SchemaSiteBrandingResp](docs/SchemaSiteBrandingResp.md) - [SchemaSiteCustomCssHTMLReq](docs/SchemaSiteCustomCssHTMLReq.md) @@ -349,16 +391,23 @@ Class | Method | HTTP request | Description - [SchemaSiteSeoResp](docs/SchemaSiteSeoResp.md) - [SchemaSiteThemeReq](docs/SchemaSiteThemeReq.md) - [SchemaSiteThemeResp](docs/SchemaSiteThemeResp.md) + - [SchemaSiteUsersReq](docs/SchemaSiteUsersReq.md) + - [SchemaSiteUsersResp](docs/SchemaSiteUsersResp.md) - [SchemaSiteWriteReq](docs/SchemaSiteWriteReq.md) - [SchemaSiteWriteResp](docs/SchemaSiteWriteResp.md) - [SchemaTagItem](docs/SchemaTagItem.md) - [SchemaTagResp](docs/SchemaTagResp.md) - [SchemaTagSynonym](docs/SchemaTagSynonym.md) - [SchemaThemeOption](docs/SchemaThemeOption.md) + - [SchemaUIOptionAction](docs/SchemaUIOptionAction.md) - [SchemaUnreviewedRevisionInfoInfo](docs/SchemaUnreviewedRevisionInfoInfo.md) - [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) - [SchemaUpdateSMTPConfigReq](docs/SchemaUpdateSMTPConfigReq.md) - [SchemaUpdateTagReq](docs/SchemaUpdateTagReq.md) - [SchemaUpdateTagSynonymReq](docs/SchemaUpdateTagSynonymReq.md) @@ -370,7 +419,8 @@ Class | Method | HTTP request | Description - [SchemaUserChangeEmailSendCodeReq](docs/SchemaUserChangeEmailSendCodeReq.md) - [SchemaUserChangeEmailVerifyReq](docs/SchemaUserChangeEmailVerifyReq.md) - [SchemaUserEmailLogin](docs/SchemaUserEmailLogin.md) - - [SchemaUserModifyPassWordRequest](docs/SchemaUserModifyPassWordRequest.md) + - [SchemaUserLoginResp](docs/SchemaUserLoginResp.md) + - [SchemaUserModifyPasswordReq](docs/SchemaUserModifyPasswordReq.md) - [SchemaUserNoticeSetRequest](docs/SchemaUserNoticeSetRequest.md) - [SchemaUserNoticeSetResp](docs/SchemaUserNoticeSetResp.md) - [SchemaUserRankingResp](docs/SchemaUserRankingResp.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 16a3237..6f17939 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,11 +1,8 @@ openapi: 3.0.1 info: contact: {} - description: answer api - title: answer - version: v0.0.1 servers: -- url: //127.0.0.1:80/ +- url: / paths: /: get: @@ -54,7 +51,7 @@ paths: description: OK security: - ApiKeyAuth: [] - summary: AdminSearchAnswerList + summary: AdminAnswerPage admin answer page tags: - admin /answer/admin/api/answer/status: @@ -108,6 +105,99 @@ paths: summary: Get language options tags: - Lang + /answer/admin/api/plugin/config: + get: + description: get plugin config + parameters: + - description: plugin_slug_name + in: query + name: plugin_slug_name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_plugin_config_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get plugin config + tags: + - AdminPlugin + put: + description: update plugin config + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdatePluginConfigReq' + description: UpdatePluginConfigReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update plugin config + tags: + - AdminPlugin + x-codegen-request-body-name: data + /answer/admin/api/plugin/status: + put: + description: update plugin status + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdatePluginStatusReq' + description: UpdatePluginStatusReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update plugin status + tags: + - AdminPlugin + x-codegen-request-body-name: data + /answer/admin/api/plugins: + get: + description: get plugin list + parameters: + - description: "status: active/inactive" + in: query + name: status + schema: + type: string + - description: have config + in: query + name: have_config + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_plugins_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get plugin list + tags: + - AdminPlugin /answer/admin/api/question/page: get: description: "Status:[available,closed,deleted]" @@ -145,7 +235,7 @@ paths: description: OK security: - ApiKeyAuth: [] - summary: AdminSearchList + summary: AdminQuestionPage admin question page tags: - admin /answer/admin/api/question/status: @@ -293,6 +383,43 @@ paths: summary: get role list tags: - admin + /answer/admin/api/setting/privileges: + get: + description: GetPrivilegesConfig get privileges config + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_setting_privileges_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: GetPrivilegesConfig get privileges config + tags: + - admin + put: + description: update privileges config + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.UpdatePrivilegesConfigReq' + description: config + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update privileges config + tags: + - admin + x-codegen-request-body-name: data /answer/admin/api/setting/smtp: get: description: GetSMTPConfig get smtp config @@ -626,6 +753,43 @@ paths: tags: - admin x-codegen-request-body-name: data + /answer/admin/api/siteinfo/users: + get: + description: get site user config + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_siteinfo_users_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get site user config + tags: + - admin + put: + description: update site info config about users + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SiteUsersReq' + description: users info + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update site info config about users + tags: + - admin + x-codegen-request-body-name: data /answer/admin/api/siteinfo/write: get: description: get site interface @@ -701,6 +865,28 @@ paths: tags: - admin x-codegen-request-body-name: data + /answer/admin/api/user/activation: + get: + description: get user activation + parameters: + - description: user id + in: query + name: user_id + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_user_activation_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get user activation + tags: + - admin /answer/admin/api/user/password: put: description: update user password @@ -770,6 +956,29 @@ paths: tags: - admin x-codegen-request-body-name: data + /answer/admin/api/users/activation: + post: + description: send user activation + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SendUserActivationReq' + description: SendUserActivationReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: send user activation + tags: + - admin + x-codegen-request-body-name: data /answer/admin/api/users/page: get: description: get user page @@ -1170,6 +1379,80 @@ paths: summary: get comment page tags: - Comment + /answer/api/v1/connector/binding/email: + post: + description: external login binding user send email + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.ExternalLoginBindingUserSendEmailReq' + description: external login binding user send email + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_connector_binding_email_post_200_response' + description: OK + summary: external login binding user send email + tags: + - PluginConnector + x-codegen-request-body-name: data + /answer/api/v1/connector/info: + get: + description: get all enabled connectors + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_connector_info_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get all enabled connectors + tags: + - PluginConnector + /answer/api/v1/connector/user/info: + get: + description: get all connectors info about user + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_connector_user_info_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get all connectors info about user + tags: + - PluginConnector + /answer/api/v1/connector/user/unbinding: + delete: + description: unbind external user login + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.ExternalLoginUnbindingReq' + description: ExternalLoginUnbindingReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: unbind external user login + tags: + - PluginConnector + x-codegen-request-body-name: data /answer/api/v1/file: post: description: upload file @@ -1293,6 +1576,17 @@ paths: - inbox - achievement type: string + - description: inbox_type + in: query + name: inbox_type + required: true + schema: + enum: + - all + - posts + - invites + - votes + type: string responses: "200": content: @@ -1388,9 +1682,76 @@ paths: tags: - Notification x-codegen-request-body-name: data + /answer/api/v1/permission: + get: + description: check user permission + parameters: + - description: access-token + in: header + name: Authorization + required: true + schema: + type: string + - description: permission key + in: query + name: action + required: true + schema: + enum: + - question.add + - question.edit + - question.edit_without_review + - question.delete + - question.close + - question.reopen + - question.vote_up + - question.vote_down + - question.pin + - question.unpin + - question.hide + - question.show + - answer.add + - answer.edit + - answer.edit_without_review + - answer.delete + - answer.accept + - answer.vote_up + - answer.vote_down + - answer.invite_someone_to_answer + - comment.add + - comment.edit + - comment.delete + - comment.vote_up + - comment.vote_down + - report.add + - tag.add + - tag.edit + - tag.edit_slug_name + - tag.edit_without_review + - tag.delete + - tag.synonym + - link.url_limit + - vote.detail + - answer.audit + - question.audit + - tag.audit + - tag.use_reserved_tag + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_permission_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: check user permission + tags: + - Permission /answer/api/v1/personal/answer/page: get: - description: UserAnswerList + description: list personal answers parameters: - description: username in: query @@ -1415,9 +1776,9 @@ paths: schema: default: "0" type: string - - description: pagesize + - description: page_size in: query - name: pagesize + name: page_size required: true schema: default: "20" @@ -1431,12 +1792,12 @@ paths: description: OK security: - ApiKeyAuth: [] - summary: UserAnswerList + summary: list personal answers tags: - - api-answer + - Personal /answer/api/v1/personal/collection/page: get: - description: UserCollectionList + description: list personal collections parameters: - description: page in: query @@ -1445,9 +1806,9 @@ paths: schema: default: "0" type: string - - description: pagesize + - description: page_size in: query - name: pagesize + name: page_size required: true schema: default: "20" @@ -1461,7 +1822,7 @@ paths: description: OK security: - ApiKeyAuth: [] - summary: UserCollectionList + summary: list personal collections tags: - Collection /answer/api/v1/personal/comment/page: @@ -1569,7 +1930,7 @@ paths: - User /answer/api/v1/personal/vote/page: get: - description: user's vote + description: get user personal votes parameters: - description: page size in: query @@ -1590,7 +1951,7 @@ paths: description: OK security: - ApiKeyAuth: [] - summary: user's votes + summary: get user personal votes tags: - Activity /answer/api/v1/post/render: @@ -1706,21 +2067,6 @@ paths: tags: - Question x-codegen-request-body-name: data - /answer/api/v1/question/closemsglist: - get: - description: close question msg list - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/handler.RespBody' - description: OK - security: - - ApiKeyAuth: [] - summary: close question msg list - tags: - - Question /answer/api/v1/question/info: get: description: get question details @@ -1744,6 +2090,51 @@ paths: summary: get question details tags: - Question + /answer/api/v1/question/invite: + get: + description: get question invite user info + parameters: + - description: Question ID + in: query + name: id + required: true + schema: + default: "1" + type: string + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + security: + - ApiKeyAuth: [] + summary: get question invite user info + tags: + - Question + put: + description: update question invite user + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.QuestionUpdateInviteUser' + description: question + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update question invite user + tags: + - Question + x-codegen-request-body-name: data /answer/api/v1/question/operation: put: description: "Operation question \\n operation [pin unpin hide show]" @@ -1770,13 +2161,43 @@ paths: /answer/api/v1/question/page: get: description: get questions by page - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/schema.QuestionPageReq' - description: QuestionPageReq - required: true + parameters: + - description: page + in: query + name: page + schema: + type: integer + - description: page_size + in: query + name: page_size + schema: + type: integer + - description: order cond + in: query + name: order + schema: + enum: + - newest + - active + - frequent + - score + - unanswered + type: string + - description: tag + in: query + name: tag + schema: + type: string + - description: username + in: query + name: username + schema: + type: string + - description: in_days + in: query + name: in_days + schema: + type: integer responses: "200": content: @@ -1787,7 +2208,6 @@ paths: summary: get questions by page tags: - Question - x-codegen-request-body-name: data /answer/api/v1/question/reopen: put: description: reopen question @@ -1960,31 +2380,6 @@ paths: tags: - Report x-codegen-request-body-name: data - /answer/api/v1/report/type/list: - get: - description: get report type list - parameters: - - description: report source - in: query - name: source - required: true - schema: - enum: - - question - - answer - - comment - - user - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/_answer_api_v1_report_type_list_get_200_response' - description: OK - summary: get report type list - tags: - - Report /answer/api/v1/revisions: get: description: get revision list @@ -2519,6 +2914,28 @@ paths: tags: - User x-codegen-request-body-name: data + /answer/api/v1/user/info/search: + get: + description: SearchUserListByName + parameters: + - description: username + in: query + name: username + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_personal_user_info_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: SearchUserListByName + tags: + - User /answer/api/v1/user/interface: put: description: UserUpdateInterface update user interface config @@ -2613,8 +3030,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/schema.UserModifyPassWordRequest' - description: UserModifyPassWordRequest + $ref: '#/components/schemas/schema.UserModifyPasswordReq' + description: UserModifyPasswordReq required: true responses: "200": @@ -2870,7 +3287,7 @@ paths: - Lang /personal/question/page: get: - description: UserList + description: list personal questions parameters: - description: username in: query @@ -2895,9 +3312,9 @@ paths: schema: default: "0" type: string - - description: pagesize + - description: page_size in: query - name: pagesize + name: page_size required: true schema: default: "20" @@ -2911,9 +3328,9 @@ paths: description: OK security: - ApiKeyAuth: [] - summary: UserList + summary: list personal questions tags: - - Question + - Personal /robots.txt: get: description: get site robots information @@ -2929,6 +3346,19 @@ paths: - site components: schemas: + constant.Privilege: + example: + label: label + value: 0 + key: key + properties: + key: + type: string + label: + type: string + value: + type: integer + type: object handler.RespBody: example: msg: msg @@ -3103,6 +3533,11 @@ components: type: object schema.AddCommentReq: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string mention_username_list: description: '@ user id list' items: @@ -3125,6 +3560,11 @@ components: type: object schema.AddReportReq: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string content: description: report content maxLength: 500 @@ -3163,6 +3603,7 @@ components: properties: display_name: maxLength: 30 + minLength: 4 type: string email: maxLength: 500 @@ -3199,6 +3640,11 @@ components: type: object schema.AnswerAddReq: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string content: maxLength: 65535 minLength: 6 @@ -3210,6 +3656,11 @@ components: type: object schema.AnswerUpdateReq: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string content: maxLength: 65535 minLength: 6 @@ -3279,6 +3730,165 @@ components: switch: 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 + name: + type: string + options: + items: + $ref: '#/components/schemas/schema.ConfigFieldOption' + type: array + required: + type: boolean + title: + type: string + type: + type: string + ui_options: + $ref: '#/components/schemas/schema.ConfigFieldUIOptions' + value: + type: object + type: object + schema.ConfigFieldOption: + example: + label: label + value: value + properties: + label: + type: string + value: + 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' + input_type: + type: string + label: + type: string + placeholder: + type: string + rows: + type: string + text: + type: string + variant: + type: string + type: object + schema.ConnectorInfoResp: + example: + icon: icon + link: link + name: name + properties: + icon: + type: string + link: + type: string + name: + type: string + type: object + schema.ConnectorUserInfoResp: + example: + icon: icon + link: link + name: name + binding: true + external_id: external_id + properties: + binding: + type: boolean + external_id: + type: string + icon: + type: string + link: + type: string + name: + type: string + type: object + schema.ExternalLoginBindingUserSendEmailReq: + properties: + binding_key: + maxLength: 100 + type: string + email: + maxLength: 512 + type: string + must: + description: |- + If must is true, whatever email if exists, try to bind user. + If must is false, when email exist, will only be prompted with a warning. + type: boolean + required: + - binding_key + - email + type: object + schema.ExternalLoginBindingUserSendEmailResp: + example: + access_token: access_token + email_exist_and_must_be_confirmed: true + properties: + access_token: + type: string + email_exist_and_must_be_confirmed: + type: boolean + type: object + schema.ExternalLoginUnbindingReq: + properties: + external_id: + maxLength: 128 + type: string + required: + - external_id + type: object schema.FollowReq: properties: is_cancel: @@ -3421,6 +4031,111 @@ components: description: user vote amount 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 + type: string + answer_count: + description: answer count + type: integer + authority_group: + description: authority group + type: integer + avatar: + $ref: '#/components/schemas/schema.AvatarInfo' + bio: + description: bio markdown + type: string + bio_html: + description: bio html + type: string + created_at: + description: create time + type: integer + display_name: + description: display name + type: string + e_mail: + description: email + type: string + follow_count: + description: follow count + type: integer + have_password: + type: boolean + id: + description: user id + type: string + ip_info: + description: ip info + type: string + language: + description: language + type: string + last_login_date: + description: last login date + type: integer + location: + description: location + type: string + mail_status: + description: mail status(1 pass 2 to be verified) + type: integer + mobile: + description: mobile + type: string + notice_status: + description: notice status(1 on 2off) + type: integer + question_count: + description: question count + type: integer + rank: + description: rank + type: integer + role_id: + description: role id + type: integer + status: + description: user status + type: string + username: + description: username + type: string + website: + description: website + type: string + type: object schema.GetFollowingTagsResp: example: reserved: true @@ -3587,7 +4302,137 @@ components: info: $ref: '#/components/schemas/schema.GetOtherUserInfoByUsernameResp' type: object - schema.GetRankPersonalWithPageResp: + 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: + $ref: '#/components/schemas/schema.ConfigField' + type: array + description: + type: string + name: + type: string + slug_name: + type: string + version: + 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 + enabled: + type: boolean + have_config: + type: boolean + link: + type: string + name: + type: string + slug_name: + type: string + version: + 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: + $ref: '#/components/schemas/schema.PrivilegeOption' + type: array + selected_level: + $ref: '#/components/schemas/schema.PrivilegeLevel' + type: object + schema.GetRankPersonalPageResp: properties: answer_id: description: answer id @@ -3625,34 +4470,6 @@ components: description: url title type: string type: object - schema.GetReportTypeResp: - example: - have_content: true - content_type: content_type - name: name - description: description - source: source - type: 0 - properties: - content_type: - description: content type - type: string - description: - description: report description - type: string - have_content: - description: is have content - type: boolean - name: - description: report name - type: string - source: - description: report source - type: string - type: - description: report type - type: integer - type: object schema.GetRevisionResp: example: reason: reason @@ -3914,6 +4731,13 @@ components: unreviewed_info: $ref: '#/components/schemas/schema.GetRevisionResp' type: object + schema.GetUserActivationResp: + example: + activation_url: activation_url + properties: + activation_url: + type: string + type: object schema.GetUserPageResp: properties: avatar: @@ -3953,208 +4777,6 @@ components: description: username type: string type: object - schema.GetUserResp: - example: - website: website - notice_status: 7 - mobile: mobile - bio: bio - created_at: 1 - language: language - avatar: avatar - answer_count: 0 - display_name: display_name - last_login_date: 5 - access_token: access_token - question_count: 9 - authority_group: 6 - bio_html: bio_html - role_id: 2 - e_mail: e_mail - follow_count: 5 - mail_status: 2 - rank: 3 - location: location - id: id - ip_info: ip_info - status: status - username: username - properties: - access_token: - description: access token - type: string - answer_count: - description: answer count - type: integer - authority_group: - description: authority group - type: integer - avatar: - description: avatar - type: string - bio: - description: bio markdown - type: string - bio_html: - description: bio html - type: string - created_at: - description: create time - type: integer - display_name: - description: display name - type: string - e_mail: - description: email - type: string - follow_count: - description: follow count - type: integer - id: - description: user id - type: string - ip_info: - description: ip info - type: string - language: - description: language - type: string - last_login_date: - description: last login date - type: integer - location: - description: location - type: string - mail_status: - description: mail status(1 pass 2 to be verified) - type: integer - mobile: - description: mobile - type: string - notice_status: - description: notice status(1 on 2off) - type: integer - question_count: - description: question count - type: integer - rank: - description: rank - type: integer - role_id: - description: role id - type: integer - status: - description: user status - type: string - username: - description: username - type: string - website: - description: website - type: string - type: object - schema.GetUserToSetShowResp: - example: - website: website - notice_status: 7 - mobile: mobile - bio: bio - created_at: 1 - language: language - avatar: - gravatar: gravatar - custom: custom - type: type - answer_count: 0 - display_name: display_name - last_login_date: 5 - access_token: access_token - question_count: 9 - authority_group: 6 - bio_html: bio_html - role_id: 2 - e_mail: e_mail - follow_count: 5 - mail_status: 2 - rank: 3 - location: location - id: id - ip_info: ip_info - status: status - username: username - properties: - access_token: - description: access token - type: string - answer_count: - description: answer count - type: integer - authority_group: - description: authority group - type: integer - avatar: - $ref: '#/components/schemas/schema.AvatarInfo' - bio: - description: bio markdown - type: string - bio_html: - description: bio html - type: string - created_at: - description: create time - type: integer - display_name: - description: display name - type: string - e_mail: - description: email - type: string - follow_count: - description: follow count - type: integer - id: - description: user id - type: string - ip_info: - description: ip info - type: string - language: - description: language - type: string - last_login_date: - description: last login date - type: integer - location: - description: location - type: string - mail_status: - description: mail status(1 pass 2 to be verified) - type: integer - mobile: - description: mobile - type: string - notice_status: - description: notice status(1 on 2off) - type: integer - question_count: - description: question count - type: integer - rank: - description: rank - type: integer - role_id: - description: role id - type: integer - status: - description: user status - type: string - username: - description: username - type: string - website: - description: website - type: string - type: object schema.GetVoteWithPageResp: properties: answer_id: @@ -4190,6 +4812,16 @@ components: description: vote type type: string type: object + schema.LoadingAction: + example: + state: state + text: text + properties: + state: + type: string + text: + type: string + type: object schema.NotificationClearIDRequest: properties: id: @@ -4201,6 +4833,16 @@ components: description: inbox achievement type: string type: object + schema.OnCompleteAction: + example: + toast_return_message: true + refresh_form_config: true + properties: + refresh_form_config: + type: boolean + toast_return_message: + type: boolean + type: object schema.OperationQuestionReq: properties: id: @@ -4229,8 +4871,44 @@ components: content: type: string type: object + schema.PrivilegeLevel: + enum: + - 1 + - 2 + - 3 + type: integer + x-enum-varnames: + - PrivilegeLevel1 + - 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' + level_desc: + type: string + privileges: + items: + $ref: '#/components/schemas/constant.Privilege' + type: array + type: object schema.QuestionAdd: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string content: description: content maxLength: 65535 @@ -4257,11 +4935,20 @@ components: maxLength: 65535 minLength: 6 type: string + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string content: description: content maxLength: 65535 minLength: 6 type: string + mention_username_list: + items: + type: string + type: array tags: description: tags items: @@ -4278,29 +4965,6 @@ components: - tags - title type: object - schema.QuestionPageReq: - properties: - orderCond: - enum: - - newest - - active - - frequent - - score - - unanswered - type: string - page: - minimum: 1 - type: integer - pageSize: - minimum: 1 - type: integer - tag: - maxLength: 100 - type: string - username: - maxLength: 100 - type: string - type: object schema.QuestionPageResp: properties: accepted_answer_id: @@ -4364,6 +5028,11 @@ components: type: object schema.QuestionUpdate: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string content: description: content maxLength: 65535 @@ -4375,6 +5044,10 @@ components: id: description: question id type: string + invite_user: + items: + type: string + type: array tags: description: tags items: @@ -4391,8 +5064,29 @@ components: - tags - title type: object + schema.QuestionUpdateInviteUser: + properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string + id: + type: string + invite_user: + items: + type: string + type: array + required: + - id + type: object schema.RemoveAnswerReq: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string id: description: answer id type: string @@ -4401,6 +5095,11 @@ components: type: object schema.RemoveCommentReq: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string comment_id: description: comment id type: string @@ -4409,6 +5108,11 @@ components: type: object schema.RemoveQuestionReq: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string id: description: question id type: string @@ -4458,69 +5162,9 @@ components: count: 0 list: - object_type: object_type - object: - user_info: - website: website - rank: 1 - location: location - avatar: avatar - id: id - display_name: display_name - ip_info: ip_info - status: status - username: username - accepted: true - created_at: 1 - id: id - answer_count: 6 - excerpt: excerpt - title: title - question_id: question_id - vote_count: 5 - status: status - tags: - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name + object: null - object_type: object_type - object: - user_info: - website: website - rank: 1 - location: location - avatar: avatar - id: id - display_name: display_name - ip_info: ip_info - status: status - username: username - accepted: true - created_at: 1 - id: id - answer_count: 6 - excerpt: excerpt - title: title - question_id: question_id - vote_count: 5 - status: status - tags: - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name + object: null properties: count: type: integer @@ -4534,37 +5178,6 @@ components: type: array type: object schema.SearchObject: - example: - user_info: - website: website - rank: 1 - location: location - avatar: avatar - id: id - display_name: display_name - ip_info: ip_info - status: status - username: username - accepted: true - created_at: 1 - id: id - answer_count: 6 - excerpt: excerpt - title: title - question_id: question_id - vote_count: 5 - status: status - tags: - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name properties: accepted: type: boolean @@ -4589,51 +5202,28 @@ components: title: type: string user_info: - $ref: '#/components/schemas/schema.UserBasicInfo' + $ref: '#/components/schemas/schema_SearchObject_user_info' vote_count: type: integer type: object schema.SearchResp: example: object_type: object_type - object: - user_info: - website: website - rank: 1 - location: location - avatar: avatar - id: id - display_name: display_name - ip_info: ip_info - status: status - username: username - accepted: true - created_at: 1 - id: id - answer_count: 6 - excerpt: excerpt - title: title - question_id: question_id - vote_count: 5 - status: status - tags: - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name + object: null properties: object: - $ref: '#/components/schemas/schema.SearchObject' + $ref: '#/components/schemas/schema_SearchResp_object' object_type: description: object_type type: string type: object + schema.SendUserActivationReq: + properties: + user_id: + type: string + required: + - user_id + type: object schema.SiteBrandingReq: properties: favicon: @@ -4683,10 +5273,14 @@ components: custom_header: maxLength: 65536 type: string + custom_sidebar: + maxLength: 65536 + 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 @@ -4703,6 +5297,9 @@ components: custom_header: maxLength: 65536 type: string + custom_sidebar: + maxLength: 65536 + type: string type: object schema.SiteGeneralReq: properties: @@ -4772,6 +5369,7 @@ components: 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 @@ -4784,14 +5382,26 @@ components: value: value theme: theme interface: - default_avatar: system 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' @@ -4806,7 +5416,9 @@ components: revision: type: string site_seo: - $ref: '#/components/schemas/schema.SiteSeoReq' + $ref: '#/components/schemas/schema.SiteSeoResp' + site_users: + $ref: '#/components/schemas/schema.SiteUsersResp' theme: $ref: '#/components/schemas/schema.SiteThemeResp' version: @@ -4814,11 +5426,6 @@ components: type: object schema.SiteInterfaceReq: properties: - default_avatar: - enum: - - system - - gravatar - type: string language: maxLength: 128 type: string @@ -4826,21 +5433,14 @@ components: maxLength: 128 type: string required: - - default_avatar - language - time_zone type: object schema.SiteInterfaceResp: example: - default_avatar: system language: language time_zone: time_zone properties: - default_avatar: - enum: - - system - - gravatar - type: string language: maxLength: 128 type: string @@ -4848,7 +5448,6 @@ components: maxLength: 128 type: string required: - - default_avatar - language - time_zone type: object @@ -4881,6 +5480,12 @@ components: type: object schema.SiteLoginReq: properties: + allow_email_domains: + items: + type: string + type: array + allow_email_registrations: + type: boolean allow_new_registrations: type: boolean login_required: @@ -4888,18 +5493,25 @@ components: 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: + type: string + type: array + allow_email_registrations: + type: boolean allow_new_registrations: type: boolean login_required: type: boolean type: object schema.SiteSeoReq: - example: - robots: robots - permalink: 0 properties: permalink: maximum: 4 @@ -4957,6 +5569,63 @@ components: $ref: '#/components/schemas/schema.ThemeOption' type: array type: object + schema.SiteUsersReq: + properties: + allow_update_avatar: + type: boolean + allow_update_bio: + type: boolean + allow_update_display_name: + type: boolean + allow_update_location: + type: boolean + allow_update_username: + type: boolean + allow_update_website: + type: boolean + default_avatar: + enum: + - system + - gravatar + type: string + gravatar_base_url: + type: string + required: + - 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 + allow_update_bio: + type: boolean + allow_update_display_name: + type: boolean + allow_update_location: + type: boolean + allow_update_username: + type: boolean + allow_update_website: + type: boolean + default_avatar: + enum: + - system + - gravatar + type: string + gravatar_base_url: + type: string + required: + - default_avatar + type: object schema.SiteWriteReq: properties: recommend_tags: @@ -5006,12 +5675,6 @@ components: type: string type: object schema.TagResp: - example: - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name properties: display_name: type: string @@ -5057,6 +5720,26 @@ components: value: 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' + method: + type: string + on_complete: + $ref: '#/components/schemas/schema.OnCompleteAction' + url: + type: string + type: object schema.UnreviewedRevisionInfoInfo: properties: content: @@ -5074,6 +5757,11 @@ components: type: object schema.UpdateCommentReq: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string comment_id: description: comment id type: string @@ -5097,7 +5785,7 @@ components: schema.UpdateInfoRequest: properties: avatar: - $ref: '#/components/schemas/schema.AvatarInfo' + $ref: '#/components/schemas/schema_UpdateInfoRequest_avatar' bio: description: bio maxLength: 4096 @@ -5118,8 +5806,37 @@ components: description: website maxLength: 500 type: string + type: object + schema.UpdatePluginConfigReq: + properties: + config_fields: + additionalProperties: + type: object + type: object + plugin_slug_name: + maxLength: 100 + type: string required: - - display_name + - plugin_slug_name + type: object + schema.UpdatePluginStatusReq: + properties: + enabled: + type: boolean + plugin_slug_name: + maxLength: 100 + type: string + required: + - plugin_slug_name + type: object + schema.UpdatePrivilegesConfigReq: + properties: + level: + allOf: + - $ref: '#/components/schemas/schema.PrivilegeLevel' + type: object + required: + - level type: object schema.UpdateSMTPConfigReq: properties: @@ -5287,6 +6004,10 @@ components: e_mail: maxLength: 500 type: string + pass: + maxLength: 32 + minLength: 8 + type: string required: - e_mail type: object @@ -5319,14 +6040,128 @@ components: - e_mail - pass type: object - schema.UserModifyPassWordRequest: + 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 + type: string + answer_count: + description: answer count + type: integer + authority_group: + description: authority group + type: integer + avatar: + description: avatar + type: string + bio: + description: bio markdown + type: string + bio_html: + description: bio html + type: string + created_at: + description: create time + type: integer + display_name: + description: display name + type: string + e_mail: + description: email + type: string + follow_count: + description: follow count + type: integer + have_password: + description: user have password + type: boolean + id: + description: user id + type: string + ip_info: + description: ip info + type: string + language: + description: language + type: string + last_login_date: + description: last login date + type: integer + location: + description: location + type: string + mail_status: + description: mail status(1 pass 2 to be verified) + type: integer + mobile: + description: mobile + type: string + notice_status: + description: notice status(1 on 2off) + type: integer + question_count: + description: question count + type: integer + rank: + description: rank + type: integer + role_id: + description: role id + type: integer + status: + description: user status + type: string + username: + description: username + type: string + website: + description: website + type: string + type: object + schema.UserModifyPasswordReq: + properties: + captcha_code: + maxLength: 500 + type: string + captcha_id: + maxLength: 500 + type: string old_pass: - description: old password + maxLength: 32 + minLength: 8 type: string pass: - description: password + maxLength: 32 + minLength: 8 type: string + required: + - pass type: object schema.UserNoticeSetRequest: properties: @@ -5470,6 +6305,11 @@ components: type: object schema.VoteReq: properties: + captcha_code: + type: string + captcha_id: + description: captcha_id + type: string is_cancel: description: is cancel type: boolean @@ -5509,6 +6349,109 @@ components: value: 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 + _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 _answer_admin_api_roles_get_200_response: example: data: @@ -5531,6 +6474,40 @@ components: handler.RespBody: $ref: '#/components/schemas/handler.RespBody' 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 _answer_admin_api_setting_smtp_get_200_response: example: data: @@ -5575,6 +6552,7 @@ components: example: data: custom_footer: custom_footer + custom_sidebar: custom_sidebar custom_head: custom_head custom_css: custom_css custom_header: custom_header @@ -5611,7 +6589,6 @@ components: _answer_admin_api_siteinfo_interface_get_200_response: example: data: - default_avatar: system language: language time_zone: time_zone handler.RespBody: @@ -5646,6 +6623,10 @@ components: _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: @@ -5696,6 +6677,28 @@ components: handler.RespBody: $ref: '#/components/schemas/handler.RespBody' 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 _answer_admin_api_siteinfo_write_get_200_response: example: data: @@ -5717,6 +6720,21 @@ components: handler.RespBody: $ref: '#/components/schemas/handler.RespBody' 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: @@ -5871,6 +6889,70 @@ components: handler.RespBody: $ref: '#/components/schemas/handler.RespBody' 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 + _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 + _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 _answer_api_v1_file_post_request: properties: source: @@ -5918,6 +7000,23 @@ components: handler.RespBody: $ref: '#/components/schemas/handler.RespBody' 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: @@ -5948,7 +7047,7 @@ components: properties: list: items: - $ref: '#/definitions/schema.GetRankPersonalWithPageResp' + $ref: '#/definitions/schema.GetRankPersonalPageResp' type: array type: object _answer_api_v1_personal_rank_page_get_200_response_data: @@ -6114,34 +7213,6 @@ components: handler.RespBody: $ref: '#/components/schemas/handler.RespBody' type: object - _answer_api_v1_report_type_list_get_200_response: - example: - data: - - have_content: true - content_type: content_type - name: name - description: description - source: source - type: 0 - - have_content: true - content_type: content_type - name: name - description: description - source: source - type: 0 - handler.RespBody: - msg: msg - reason: reason - code: 0 - data: "{}" - properties: - data: - items: - $ref: '#/components/schemas/schema.GetReportTypeResp' - type: array - handler.RespBody: - $ref: '#/components/schemas/handler.RespBody' - type: object _answer_api_v1_revisions_get_200_response: example: data: @@ -6227,69 +7298,9 @@ components: count: 0 list: - object_type: object_type - object: - user_info: - website: website - rank: 1 - location: location - avatar: avatar - id: id - display_name: display_name - ip_info: ip_info - status: status - username: username - accepted: true - created_at: 1 - id: id - answer_count: 6 - excerpt: excerpt - title: title - question_id: question_id - vote_count: 5 - status: status - tags: - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name + object: null - object_type: object_type - object: - user_info: - website: website - rank: 1 - location: location - avatar: avatar - id: id - display_name: display_name - ip_info: ip_info - status: status - username: username - accepted: true - created_at: 1 - id: id - answer_count: 6 - excerpt: excerpt - title: title - question_id: question_id - vote_count: 5 - status: status - tags: - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name - - reserved: true - slug_name: slug_name - main_tag_slug_name: main_tag_slug_name - recommend: true - display_name: display_name + object: null handler.RespBody: msg: msg reason: reason @@ -6320,6 +7331,7 @@ components: 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 @@ -6332,14 +7344,26 @@ components: value: value theme: theme interface: - default_avatar: system 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 @@ -6509,27 +7533,28 @@ components: _answer_api_v1_user_email_verification_post_200_response: example: data: - website: website - notice_status: 7 - mobile: mobile bio: bio created_at: 1 language: language - avatar: avatar 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 - authority_group: 6 bio_html: bio_html - role_id: 2 - e_mail: e_mail follow_count: 5 mail_status: 2 - rank: 3 location: location - id: id ip_info: ip_info status: status username: username @@ -6540,37 +7565,38 @@ components: data: "{}" properties: data: - $ref: '#/components/schemas/schema.GetUserResp' + $ref: '#/components/schemas/schema.UserLoginResp' handler.RespBody: $ref: '#/components/schemas/handler.RespBody' type: object _answer_api_v1_user_info_get_200_response: example: data: - website: website - notice_status: 7 - mobile: mobile 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 - answer_count: 0 display_name: display_name last_login_date: 5 access_token: access_token question_count: 9 - authority_group: 6 bio_html: bio_html - role_id: 2 - e_mail: e_mail follow_count: 5 mail_status: 2 - rank: 3 location: location - id: id ip_info: ip_info status: status username: username @@ -6581,7 +7607,7 @@ components: data: "{}" properties: data: - $ref: '#/components/schemas/schema.GetUserToSetShowResp' + $ref: '#/components/schemas/schema.GetCurrentLoginUserInfoResp' handler.RespBody: $ref: '#/components/schemas/handler.RespBody' type: object @@ -6704,6 +7730,21 @@ components: 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 securitySchemes: ApiKeyAuth: in: header diff --git a/api_activity.go b/api_activity.go index 4a977c3..dcfd632 100644 --- a/api_activity.go +++ b/api_activity.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -296,9 +294,9 @@ func (r ApiAnswerApiV1PersonalVotePageGetRequest) Execute() (*AnswerApiV1Persona } /* -AnswerApiV1PersonalVotePageGet user's votes +AnswerApiV1PersonalVotePageGet get user personal votes -user's vote +get user personal votes @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PersonalVotePageGetRequest diff --git a/api_admin.go b/api_admin.go index f6a098d..52e1d50 100644 --- a/api_admin.go +++ b/api_admin.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -67,7 +65,7 @@ func (r ApiAnswerAdminApiAnswerPageGetRequest) Execute() (*HandlerRespBody, *htt } /* -AnswerAdminApiAnswerPageGet AdminSearchAnswerList +AnswerAdminApiAnswerPageGet AdminAnswerPage admin answer page Status:[available,deleted] @@ -461,7 +459,7 @@ func (r ApiAnswerAdminApiQuestionPageGetRequest) Execute() (*HandlerRespBody, *h } /* -AnswerAdminApiQuestionPageGet AdminSearchList +AnswerAdminApiQuestionPageGet AdminQuestionPage admin question page Status:[available,closed,deleted] @@ -1080,6 +1078,244 @@ func (a *AdminApiService) AnswerAdminApiRolesGetExecute(r ApiAnswerAdminApiRoles return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAnswerAdminApiSettingPrivilegesGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSettingPrivilegesGetRequest) Execute() (*AnswerAdminApiSettingPrivilegesGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSettingPrivilegesGetExecute(r) +} + +/* +AnswerAdminApiSettingPrivilegesGet GetPrivilegesConfig get privileges config + +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 { + return ApiAnswerAdminApiSettingPrivilegesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSettingPrivilegesGet200Response +func (a *AdminApiService) AnswerAdminApiSettingPrivilegesGetExecute(r ApiAnswerAdminApiSettingPrivilegesGetRequest) (*AnswerAdminApiSettingPrivilegesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSettingPrivilegesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSettingPrivilegesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/setting/privileges" + + 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 ApiAnswerAdminApiSettingPrivilegesPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaUpdatePrivilegesConfigReq +} + +// config +func (r ApiAnswerAdminApiSettingPrivilegesPutRequest) Data(data SchemaUpdatePrivilegesConfigReq) ApiAnswerAdminApiSettingPrivilegesPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSettingPrivilegesPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSettingPrivilegesPutExecute(r) +} + +/* +AnswerAdminApiSettingPrivilegesPut update privileges config + +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 { + return ApiAnswerAdminApiSettingPrivilegesPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSettingPrivilegesPutExecute(r ApiAnswerAdminApiSettingPrivilegesPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSettingPrivilegesPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/setting/privileges" + + 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{} + + // 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 +} + type ApiAnswerAdminApiSettingSmtpGetRequest struct { ctx context.Context ApiService *AdminApiService @@ -3222,6 +3458,244 @@ func (a *AdminApiService) AnswerAdminApiSiteinfoThemePutExecute(r ApiAnswerAdmin return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAnswerAdminApiSiteinfoUsersGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSiteinfoUsersGetRequest) Execute() (*AnswerAdminApiSiteinfoUsersGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoUsersGetExecute(r) +} + +/* +AnswerAdminApiSiteinfoUsersGet get site user config + +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 { + return ApiAnswerAdminApiSiteinfoUsersGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSiteinfoUsersGet200Response +func (a *AdminApiService) AnswerAdminApiSiteinfoUsersGetExecute(r ApiAnswerAdminApiSiteinfoUsersGetRequest) (*AnswerAdminApiSiteinfoUsersGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSiteinfoUsersGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoUsersGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/users" + + 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 ApiAnswerAdminApiSiteinfoUsersPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSiteUsersReq +} + +// users info +func (r ApiAnswerAdminApiSiteinfoUsersPutRequest) Data(data SchemaSiteUsersReq) ApiAnswerAdminApiSiteinfoUsersPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSiteinfoUsersPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoUsersPutExecute(r) +} + +/* +AnswerAdminApiSiteinfoUsersPut update site info config about users + +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 { + return ApiAnswerAdminApiSiteinfoUsersPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSiteinfoUsersPutExecute(r ApiAnswerAdminApiSiteinfoUsersPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoUsersPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/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{} + + // 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 +} + type ApiAnswerAdminApiSiteinfoWriteGetRequest struct { ctx context.Context ApiService *AdminApiService @@ -3573,6 +4047,130 @@ func (a *AdminApiService) AnswerAdminApiThemeOptionsGetExecute(r ApiAnswerAdminA return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAnswerAdminApiUserActivationGetRequest struct { + ctx context.Context + ApiService *AdminApiService + userId *string +} + +// user id +func (r ApiAnswerAdminApiUserActivationGetRequest) UserId(userId string) ApiAnswerAdminApiUserActivationGetRequest { + r.userId = &userId + return r +} + +func (r ApiAnswerAdminApiUserActivationGetRequest) Execute() (*AnswerAdminApiUserActivationGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiUserActivationGetExecute(r) +} + +/* +AnswerAdminApiUserActivationGet get user activation + +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 { + return ApiAnswerAdminApiUserActivationGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiUserActivationGet200Response +func (a *AdminApiService) AnswerAdminApiUserActivationGetExecute(r ApiAnswerAdminApiUserActivationGetRequest) (*AnswerAdminApiUserActivationGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiUserActivationGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUserActivationGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/user/activation" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.userId == nil { + return localVarReturnValue, nil, reportError("userId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", r.userId, "") + // 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 ApiAnswerAdminApiUserPasswordPutRequest struct { ctx context.Context ApiService *AdminApiService @@ -4073,6 +4671,131 @@ func (a *AdminApiService) AnswerAdminApiUserStatusPutExecute(r ApiAnswerAdminApi return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAnswerAdminApiUsersActivationPostRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSendUserActivationReq +} + +// SendUserActivationReq +func (r ApiAnswerAdminApiUsersActivationPostRequest) Data(data SchemaSendUserActivationReq) ApiAnswerAdminApiUsersActivationPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiUsersActivationPostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiUsersActivationPostExecute(r) +} + +/* +AnswerAdminApiUsersActivationPost send user activation + +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 { + return ApiAnswerAdminApiUsersActivationPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiUsersActivationPostExecute(r ApiAnswerAdminApiUsersActivationPostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUsersActivationPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/users/activation" + + 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{} + + // 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 +} + type ApiAnswerAdminApiUsersPageGetRequest struct { ctx context.Context ApiService *AdminApiService diff --git a/api_admin_plugin.go b/api_admin_plugin.go new file mode 100644 index 0000000..84d4ecb --- /dev/null +++ b/api_admin_plugin.go @@ -0,0 +1,528 @@ +/* +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 ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// AdminPluginApiService AdminPluginApi service +type AdminPluginApiService service + +type ApiAnswerAdminApiPluginConfigGetRequest struct { + ctx context.Context + ApiService *AdminPluginApiService + pluginSlugName *string +} + +// plugin_slug_name +func (r ApiAnswerAdminApiPluginConfigGetRequest) PluginSlugName(pluginSlugName string) ApiAnswerAdminApiPluginConfigGetRequest { + r.pluginSlugName = &pluginSlugName + return r +} + +func (r ApiAnswerAdminApiPluginConfigGetRequest) Execute() (*AnswerAdminApiPluginConfigGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiPluginConfigGetExecute(r) +} + +/* +AnswerAdminApiPluginConfigGet get plugin config + +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 { + return ApiAnswerAdminApiPluginConfigGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiPluginConfigGet200Response +func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGetExecute(r ApiAnswerAdminApiPluginConfigGetRequest) (*AnswerAdminApiPluginConfigGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiPluginConfigGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginConfigGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/plugin/config" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.pluginSlugName == nil { + return localVarReturnValue, nil, reportError("pluginSlugName is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "plugin_slug_name", r.pluginSlugName, "") + // 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 ApiAnswerAdminApiPluginConfigPutRequest struct { + ctx context.Context + ApiService *AdminPluginApiService + data *SchemaUpdatePluginConfigReq +} + +// UpdatePluginConfigReq +func (r ApiAnswerAdminApiPluginConfigPutRequest) Data(data SchemaUpdatePluginConfigReq) ApiAnswerAdminApiPluginConfigPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiPluginConfigPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiPluginConfigPutExecute(r) +} + +/* +AnswerAdminApiPluginConfigPut update plugin config + +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 { + return ApiAnswerAdminApiPluginConfigPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPutExecute(r ApiAnswerAdminApiPluginConfigPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginConfigPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/plugin/config" + + 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 +} + +type ApiAnswerAdminApiPluginStatusPutRequest struct { + ctx context.Context + ApiService *AdminPluginApiService + data *SchemaUpdatePluginStatusReq +} + +// UpdatePluginStatusReq +func (r ApiAnswerAdminApiPluginStatusPutRequest) Data(data SchemaUpdatePluginStatusReq) ApiAnswerAdminApiPluginStatusPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiPluginStatusPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiPluginStatusPutExecute(r) +} + +/* +AnswerAdminApiPluginStatusPut update plugin status + +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 { + return ApiAnswerAdminApiPluginStatusPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPutExecute(r ApiAnswerAdminApiPluginStatusPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginStatusPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/plugin/status" + + 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 +} + +type ApiAnswerAdminApiPluginsGetRequest struct { + ctx context.Context + ApiService *AdminPluginApiService + status *string + haveConfig *bool +} + +// status: active/inactive +func (r ApiAnswerAdminApiPluginsGetRequest) Status(status string) ApiAnswerAdminApiPluginsGetRequest { + r.status = &status + return r +} + +// have config +func (r ApiAnswerAdminApiPluginsGetRequest) HaveConfig(haveConfig bool) ApiAnswerAdminApiPluginsGetRequest { + r.haveConfig = &haveConfig + return r +} + +func (r ApiAnswerAdminApiPluginsGetRequest) Execute() (*AnswerAdminApiPluginsGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiPluginsGetExecute(r) +} + +/* +AnswerAdminApiPluginsGet get plugin list + +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 { + return ApiAnswerAdminApiPluginsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiPluginsGet200Response +func (a *AdminPluginApiService) AnswerAdminApiPluginsGetExecute(r ApiAnswerAdminApiPluginsGetRequest) (*AnswerAdminApiPluginsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiPluginsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/plugins" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + } + if r.haveConfig != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "have_config", r.haveConfig, "") + } + // 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 +} diff --git a/api_api_answer.go b/api_api_answer.go index 8da78a3..f3b5a93 100644 --- a/api_api_answer.go +++ b/api_api_answer.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -788,160 +786,3 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPutExecute(r ApiAnswerApiV1Answer return localVarReturnValue, localVarHTTPResponse, nil } - -type ApiAnswerApiV1PersonalAnswerPageGetRequest struct { - ctx context.Context - ApiService *ApiAnswerApiService - username *string - order *string - page *string - pagesize *string -} - -// username -func (r ApiAnswerApiV1PersonalAnswerPageGetRequest) Username(username string) ApiAnswerApiV1PersonalAnswerPageGetRequest { - r.username = &username - return r -} - -// order -func (r ApiAnswerApiV1PersonalAnswerPageGetRequest) Order(order string) ApiAnswerApiV1PersonalAnswerPageGetRequest { - r.order = &order - return r -} - -// page -func (r ApiAnswerApiV1PersonalAnswerPageGetRequest) Page(page string) ApiAnswerApiV1PersonalAnswerPageGetRequest { - r.page = &page - return r -} - -// pagesize -func (r ApiAnswerApiV1PersonalAnswerPageGetRequest) Pagesize(pagesize string) ApiAnswerApiV1PersonalAnswerPageGetRequest { - r.pagesize = &pagesize - return r -} - -func (r ApiAnswerApiV1PersonalAnswerPageGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { - return r.ApiService.AnswerApiV1PersonalAnswerPageGetExecute(r) -} - -/* -AnswerApiV1PersonalAnswerPageGet UserAnswerList - -UserAnswerList - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAnswerApiV1PersonalAnswerPageGetRequest -*/ -func (a *ApiAnswerApiService) AnswerApiV1PersonalAnswerPageGet(ctx context.Context) ApiAnswerApiV1PersonalAnswerPageGetRequest { - return ApiAnswerApiV1PersonalAnswerPageGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return HandlerRespBody -func (a *ApiAnswerApiService) AnswerApiV1PersonalAnswerPageGetExecute(r ApiAnswerApiV1PersonalAnswerPageGetRequest) (*HandlerRespBody, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *HandlerRespBody - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1PersonalAnswerPageGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/answer/api/v1/personal/answer/page" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.username == nil { - return localVarReturnValue, nil, reportError("username is required and must be specified") - } - if r.order == nil { - return localVarReturnValue, nil, reportError("order is required and must be specified") - } - if r.page == nil { - return localVarReturnValue, nil, reportError("page is required and must be specified") - } - if r.pagesize == nil { - return localVarReturnValue, nil, reportError("pagesize is required and must be specified") - } - - parameterAddToHeaderOrQuery(localVarQueryParams, "username", r.username, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "order", r.order, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "pagesize", r.pagesize, "") - // 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 -} diff --git a/api_collection.go b/api_collection.go index 8d1b443..375f71b 100644 --- a/api_collection.go +++ b/api_collection.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -151,7 +149,7 @@ type ApiAnswerApiV1PersonalCollectionPageGetRequest struct { ctx context.Context ApiService *CollectionApiService page *string - pagesize *string + pageSize *string } // page @@ -160,9 +158,9 @@ func (r ApiAnswerApiV1PersonalCollectionPageGetRequest) Page(page string) ApiAns return r } -// pagesize -func (r ApiAnswerApiV1PersonalCollectionPageGetRequest) Pagesize(pagesize string) ApiAnswerApiV1PersonalCollectionPageGetRequest { - r.pagesize = &pagesize +// page_size +func (r ApiAnswerApiV1PersonalCollectionPageGetRequest) PageSize(pageSize string) ApiAnswerApiV1PersonalCollectionPageGetRequest { + r.pageSize = &pageSize return r } @@ -171,9 +169,9 @@ func (r ApiAnswerApiV1PersonalCollectionPageGetRequest) Execute() (*HandlerRespB } /* -AnswerApiV1PersonalCollectionPageGet UserCollectionList +AnswerApiV1PersonalCollectionPageGet list personal collections -UserCollectionList +list personal collections @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnswerApiV1PersonalCollectionPageGetRequest @@ -208,12 +206,12 @@ func (a *CollectionApiService) AnswerApiV1PersonalCollectionPageGetExecute(r Api if r.page == nil { return localVarReturnValue, nil, reportError("page is required and must be specified") } - if r.pagesize == nil { - return localVarReturnValue, nil, reportError("pagesize is required and must be specified") + if r.pageSize == nil { + return localVarReturnValue, nil, reportError("pageSize is required and must be specified") } parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "pagesize", r.pagesize, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_comment.go b/api_comment.go index 0100960..ac86a80 100644 --- a/api_comment.go +++ b/api_comment.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_installation.go b/api_installation.go index d973241..853ad27 100644 --- a/api_installation.go +++ b/api_installation.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_lang.go b/api_lang.go index 61df907..52eb01b 100644 --- a/api_lang.go +++ b/api_lang.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_notification.go b/api_notification.go index 2b66b2c..4865850 100644 --- a/api_notification.go +++ b/api_notification.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,6 +24,7 @@ type ApiAnswerApiV1NotificationPageGetRequest struct { ctx context.Context ApiService *NotificationApiService type_ *string + inboxType *string page *int32 pageSize *int32 } @@ -36,6 +35,12 @@ func (r ApiAnswerApiV1NotificationPageGetRequest) Type_(type_ string) ApiAnswerA return r } +// inbox_type +func (r ApiAnswerApiV1NotificationPageGetRequest) InboxType(inboxType string) ApiAnswerApiV1NotificationPageGetRequest { + r.inboxType = &inboxType + return r +} + // page size func (r ApiAnswerApiV1NotificationPageGetRequest) Page(page int32) ApiAnswerApiV1NotificationPageGetRequest { r.page = &page @@ -90,6 +95,9 @@ func (a *NotificationApiService) AnswerApiV1NotificationPageGetExecute(r ApiAnsw if r.type_ == nil { return localVarReturnValue, nil, reportError("type_ is required and must be specified") } + if r.inboxType == nil { + return localVarReturnValue, nil, reportError("inboxType is required and must be specified") + } if r.page != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") @@ -98,6 +106,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationPageGetExecute(r ApiAnsw parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") } parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "inbox_type", r.inboxType, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api_permission.go b/api_permission.go new file mode 100644 index 0000000..dcbbde4 --- /dev/null +++ b/api_permission.go @@ -0,0 +1,156 @@ +/* +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 ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// PermissionApiService PermissionApi service +type PermissionApiService service + +type ApiAnswerApiV1PermissionGetRequest struct { + ctx context.Context + ApiService *PermissionApiService + authorization *string + action *string +} + +// access-token +func (r ApiAnswerApiV1PermissionGetRequest) Authorization(authorization string) ApiAnswerApiV1PermissionGetRequest { + r.authorization = &authorization + return r +} + +// permission key +func (r ApiAnswerApiV1PermissionGetRequest) Action(action string) ApiAnswerApiV1PermissionGetRequest { + r.action = &action + return r +} + +func (r ApiAnswerApiV1PermissionGetRequest) Execute() (*AnswerApiV1PermissionGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1PermissionGetExecute(r) +} + +/* +AnswerApiV1PermissionGet check user permission + +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 { + return ApiAnswerApiV1PermissionGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1PermissionGet200Response +func (a *PermissionApiService) AnswerApiV1PermissionGetExecute(r ApiAnswerApiV1PermissionGetRequest) (*AnswerApiV1PermissionGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1PermissionGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PermissionApiService.AnswerApiV1PermissionGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/permission" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.authorization == nil { + return localVarReturnValue, nil, reportError("authorization is required and must be specified") + } + if r.action == nil { + return localVarReturnValue, nil, reportError("action is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") + // 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + 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_personal.go b/api_personal.go new file mode 100644 index 0000000..511721f --- /dev/null +++ b/api_personal.go @@ -0,0 +1,335 @@ +/* +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 ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// PersonalApiService PersonalApi service +type PersonalApiService service + +type ApiAnswerApiV1PersonalAnswerPageGetRequest struct { + ctx context.Context + ApiService *PersonalApiService + username *string + order *string + page *string + pageSize *string +} + +// username +func (r ApiAnswerApiV1PersonalAnswerPageGetRequest) Username(username string) ApiAnswerApiV1PersonalAnswerPageGetRequest { + r.username = &username + return r +} + +// order +func (r ApiAnswerApiV1PersonalAnswerPageGetRequest) Order(order string) ApiAnswerApiV1PersonalAnswerPageGetRequest { + r.order = &order + return r +} + +// page +func (r ApiAnswerApiV1PersonalAnswerPageGetRequest) Page(page string) ApiAnswerApiV1PersonalAnswerPageGetRequest { + r.page = &page + return r +} + +// page_size +func (r ApiAnswerApiV1PersonalAnswerPageGetRequest) PageSize(pageSize string) ApiAnswerApiV1PersonalAnswerPageGetRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiAnswerApiV1PersonalAnswerPageGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1PersonalAnswerPageGetExecute(r) +} + +/* +AnswerApiV1PersonalAnswerPageGet list personal answers + +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 { + return ApiAnswerApiV1PersonalAnswerPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *PersonalApiService) AnswerApiV1PersonalAnswerPageGetExecute(r ApiAnswerApiV1PersonalAnswerPageGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonalApiService.AnswerApiV1PersonalAnswerPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/personal/answer/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.username == nil { + return localVarReturnValue, nil, reportError("username is required and must be specified") + } + if r.order == nil { + return localVarReturnValue, nil, reportError("order is required and must be specified") + } + if r.page == nil { + return localVarReturnValue, nil, reportError("page is required and must be specified") + } + if r.pageSize == nil { + return localVarReturnValue, nil, reportError("pageSize is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "username", r.username, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "order", r.order, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + // 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 ApiPersonalQuestionPageGetRequest struct { + ctx context.Context + ApiService *PersonalApiService + username *string + order *string + page *string + pageSize *string +} + +// username +func (r ApiPersonalQuestionPageGetRequest) Username(username string) ApiPersonalQuestionPageGetRequest { + r.username = &username + return r +} + +// order +func (r ApiPersonalQuestionPageGetRequest) Order(order string) ApiPersonalQuestionPageGetRequest { + r.order = &order + return r +} + +// page +func (r ApiPersonalQuestionPageGetRequest) Page(page string) ApiPersonalQuestionPageGetRequest { + r.page = &page + return r +} + +// page_size +func (r ApiPersonalQuestionPageGetRequest) PageSize(pageSize string) ApiPersonalQuestionPageGetRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiPersonalQuestionPageGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.PersonalQuestionPageGetExecute(r) +} + +/* +PersonalQuestionPageGet list personal questions + +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 { + return ApiPersonalQuestionPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *PersonalApiService) PersonalQuestionPageGetExecute(r ApiPersonalQuestionPageGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonalApiService.PersonalQuestionPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/personal/question/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.username == nil { + return localVarReturnValue, nil, reportError("username is required and must be specified") + } + if r.order == nil { + return localVarReturnValue, nil, reportError("order is required and must be specified") + } + if r.page == nil { + return localVarReturnValue, nil, reportError("page is required and must be specified") + } + if r.pageSize == nil { + return localVarReturnValue, nil, reportError("pageSize is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "username", r.username, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "order", r.order, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + // 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 +} diff --git a/api_plugin_connector.go b/api_plugin_connector.go new file mode 100644 index 0000000..58e706f --- /dev/null +++ b/api_plugin_connector.go @@ -0,0 +1,483 @@ +/* +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 ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// PluginConnectorApiService PluginConnectorApi service +type PluginConnectorApiService service + +type ApiAnswerApiV1ConnectorBindingEmailPostRequest struct { + ctx context.Context + ApiService *PluginConnectorApiService + data *SchemaExternalLoginBindingUserSendEmailReq +} + +// external login binding user send email +func (r ApiAnswerApiV1ConnectorBindingEmailPostRequest) Data(data SchemaExternalLoginBindingUserSendEmailReq) ApiAnswerApiV1ConnectorBindingEmailPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1ConnectorBindingEmailPostRequest) Execute() (*AnswerApiV1ConnectorBindingEmailPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1ConnectorBindingEmailPostExecute(r) +} + +/* +AnswerApiV1ConnectorBindingEmailPost external login binding user send email + +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 { + return ApiAnswerApiV1ConnectorBindingEmailPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1ConnectorBindingEmailPost200Response +func (a *PluginConnectorApiService) AnswerApiV1ConnectorBindingEmailPostExecute(r ApiAnswerApiV1ConnectorBindingEmailPostRequest) (*AnswerApiV1ConnectorBindingEmailPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1ConnectorBindingEmailPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorApiService.AnswerApiV1ConnectorBindingEmailPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/connector/binding/email" + + 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 ApiAnswerApiV1ConnectorInfoGetRequest struct { + ctx context.Context + ApiService *PluginConnectorApiService +} + +func (r ApiAnswerApiV1ConnectorInfoGetRequest) Execute() (*AnswerApiV1ConnectorInfoGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1ConnectorInfoGetExecute(r) +} + +/* +AnswerApiV1ConnectorInfoGet get all enabled connectors + +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 { + return ApiAnswerApiV1ConnectorInfoGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1ConnectorInfoGet200Response +func (a *PluginConnectorApiService) AnswerApiV1ConnectorInfoGetExecute(r ApiAnswerApiV1ConnectorInfoGetRequest) (*AnswerApiV1ConnectorInfoGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1ConnectorInfoGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorApiService.AnswerApiV1ConnectorInfoGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/connector/info" + + 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 ApiAnswerApiV1ConnectorUserInfoGetRequest struct { + ctx context.Context + ApiService *PluginConnectorApiService +} + +func (r ApiAnswerApiV1ConnectorUserInfoGetRequest) Execute() (*AnswerApiV1ConnectorUserInfoGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1ConnectorUserInfoGetExecute(r) +} + +/* +AnswerApiV1ConnectorUserInfoGet get all connectors info about user + +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 { + return ApiAnswerApiV1ConnectorUserInfoGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1ConnectorUserInfoGet200Response +func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserInfoGetExecute(r ApiAnswerApiV1ConnectorUserInfoGetRequest) (*AnswerApiV1ConnectorUserInfoGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1ConnectorUserInfoGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorApiService.AnswerApiV1ConnectorUserInfoGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/connector/user/info" + + 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 ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest struct { + ctx context.Context + ApiService *PluginConnectorApiService + data *SchemaExternalLoginUnbindingReq +} + +// ExternalLoginUnbindingReq +func (r ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest) Data(data SchemaExternalLoginUnbindingReq) ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1ConnectorUserUnbindingDeleteExecute(r) +} + +/* +AnswerApiV1ConnectorUserUnbindingDelete unbind external user login + +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 { + return ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *PluginConnectorApiService) AnswerApiV1ConnectorUserUnbindingDeleteExecute(r ApiAnswerApiV1ConnectorUserUnbindingDeleteRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PluginConnectorApiService.AnswerApiV1ConnectorUserUnbindingDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/connector/user/unbinding" + + 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_question.go b/api_question.go index 3a9917d..7f2fa6f 100644 --- a/api_question.go +++ b/api_question.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -271,119 +269,6 @@ func (a *QuestionApiService) AnswerApiV1QuestionAnswerPostExecute(r ApiAnswerApi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiAnswerApiV1QuestionClosemsglistGetRequest struct { - ctx context.Context - ApiService *QuestionApiService -} - -func (r ApiAnswerApiV1QuestionClosemsglistGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { - return r.ApiService.AnswerApiV1QuestionClosemsglistGetExecute(r) -} - -/* -AnswerApiV1QuestionClosemsglistGet close question msg list - -close question msg list - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAnswerApiV1QuestionClosemsglistGetRequest -*/ -func (a *QuestionApiService) AnswerApiV1QuestionClosemsglistGet(ctx context.Context) ApiAnswerApiV1QuestionClosemsglistGetRequest { - return ApiAnswerApiV1QuestionClosemsglistGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return HandlerRespBody -func (a *QuestionApiService) AnswerApiV1QuestionClosemsglistGetExecute(r ApiAnswerApiV1QuestionClosemsglistGetRequest) (*HandlerRespBody, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *HandlerRespBody - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionClosemsglistGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/answer/api/v1/question/closemsglist" - - 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 ApiAnswerApiV1QuestionDeleteRequest struct { ctx context.Context ApiService *QuestionApiService @@ -633,6 +518,255 @@ func (a *QuestionApiService) AnswerApiV1QuestionInfoGetExecute(r ApiAnswerApiV1Q return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAnswerApiV1QuestionInviteGetRequest struct { + ctx context.Context + ApiService *QuestionApiService + id *string +} + +// Question ID +func (r ApiAnswerApiV1QuestionInviteGetRequest) Id(id string) ApiAnswerApiV1QuestionInviteGetRequest { + r.id = &id + return r +} + +func (r ApiAnswerApiV1QuestionInviteGetRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionInviteGetExecute(r) +} + +/* +AnswerApiV1QuestionInviteGet get question invite user info + +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 { + return ApiAnswerApiV1QuestionInviteGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *QuestionApiService) AnswerApiV1QuestionInviteGetExecute(r ApiAnswerApiV1QuestionInviteGetRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionInviteGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/invite" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.id == nil { + return localVarReturnValue, nil, reportError("id is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + // 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 ApiAnswerApiV1QuestionInvitePutRequest struct { + ctx context.Context + ApiService *QuestionApiService + data *SchemaQuestionUpdateInviteUser +} + +// question +func (r ApiAnswerApiV1QuestionInvitePutRequest) Data(data SchemaQuestionUpdateInviteUser) ApiAnswerApiV1QuestionInvitePutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1QuestionInvitePutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionInvitePutExecute(r) +} + +/* +AnswerApiV1QuestionInvitePut update question invite user + +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 { + return ApiAnswerApiV1QuestionInvitePutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *QuestionApiService) AnswerApiV1QuestionInvitePutExecute(r ApiAnswerApiV1QuestionInvitePutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionInvitePut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/invite" + + 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 +} + type ApiAnswerApiV1QuestionOperationPutRequest struct { ctx context.Context ApiService *QuestionApiService @@ -761,12 +895,47 @@ func (a *QuestionApiService) AnswerApiV1QuestionOperationPutExecute(r ApiAnswerA type ApiAnswerApiV1QuestionPageGetRequest struct { ctx context.Context ApiService *QuestionApiService - data *SchemaQuestionPageReq + page *int32 + pageSize *int32 + order *string + tag *string + username *string + inDays *int32 } -// QuestionPageReq -func (r ApiAnswerApiV1QuestionPageGetRequest) Data(data SchemaQuestionPageReq) ApiAnswerApiV1QuestionPageGetRequest { - r.data = &data +// page +func (r ApiAnswerApiV1QuestionPageGetRequest) Page(page int32) ApiAnswerApiV1QuestionPageGetRequest { + r.page = &page + return r +} + +// page_size +func (r ApiAnswerApiV1QuestionPageGetRequest) PageSize(pageSize int32) ApiAnswerApiV1QuestionPageGetRequest { + r.pageSize = &pageSize + return r +} + +// order cond +func (r ApiAnswerApiV1QuestionPageGetRequest) Order(order string) ApiAnswerApiV1QuestionPageGetRequest { + r.order = &order + return r +} + +// tag +func (r ApiAnswerApiV1QuestionPageGetRequest) Tag(tag string) ApiAnswerApiV1QuestionPageGetRequest { + r.tag = &tag + return r +} + +// username +func (r ApiAnswerApiV1QuestionPageGetRequest) Username(username string) ApiAnswerApiV1QuestionPageGetRequest { + r.username = &username + return r +} + +// in_days +func (r ApiAnswerApiV1QuestionPageGetRequest) InDays(inDays int32) ApiAnswerApiV1QuestionPageGetRequest { + r.inDays = &inDays return r } @@ -809,12 +978,27 @@ func (a *QuestionApiService) AnswerApiV1QuestionPageGetExecute(r ApiAnswerApiV1Q 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") - } + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + } + if r.order != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order", r.order, "") + } + if r.tag != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", r.tag, "") + } + if r.username != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "username", r.username, "") + } + if r.inDays != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "in_days", r.inDays, "") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -830,8 +1014,6 @@ func (a *QuestionApiService) AnswerApiV1QuestionPageGetExecute(r ApiAnswerApiV1Q 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 @@ -1602,160 +1784,3 @@ func (a *QuestionApiService) AnswerApiV1QuestionStatusPutExecute(r ApiAnswerApiV return localVarReturnValue, localVarHTTPResponse, nil } - -type ApiPersonalQuestionPageGetRequest struct { - ctx context.Context - ApiService *QuestionApiService - username *string - order *string - page *string - pagesize *string -} - -// username -func (r ApiPersonalQuestionPageGetRequest) Username(username string) ApiPersonalQuestionPageGetRequest { - r.username = &username - return r -} - -// order -func (r ApiPersonalQuestionPageGetRequest) Order(order string) ApiPersonalQuestionPageGetRequest { - r.order = &order - return r -} - -// page -func (r ApiPersonalQuestionPageGetRequest) Page(page string) ApiPersonalQuestionPageGetRequest { - r.page = &page - return r -} - -// pagesize -func (r ApiPersonalQuestionPageGetRequest) Pagesize(pagesize string) ApiPersonalQuestionPageGetRequest { - r.pagesize = &pagesize - return r -} - -func (r ApiPersonalQuestionPageGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { - return r.ApiService.PersonalQuestionPageGetExecute(r) -} - -/* -PersonalQuestionPageGet UserList - -UserList - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPersonalQuestionPageGetRequest -*/ -func (a *QuestionApiService) PersonalQuestionPageGet(ctx context.Context) ApiPersonalQuestionPageGetRequest { - return ApiPersonalQuestionPageGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return HandlerRespBody -func (a *QuestionApiService) PersonalQuestionPageGetExecute(r ApiPersonalQuestionPageGetRequest) (*HandlerRespBody, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *HandlerRespBody - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.PersonalQuestionPageGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/personal/question/page" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.username == nil { - return localVarReturnValue, nil, reportError("username is required and must be specified") - } - if r.order == nil { - return localVarReturnValue, nil, reportError("order is required and must be specified") - } - if r.page == nil { - return localVarReturnValue, nil, reportError("page is required and must be specified") - } - if r.pagesize == nil { - return localVarReturnValue, nil, reportError("pagesize is required and must be specified") - } - - parameterAddToHeaderOrQuery(localVarQueryParams, "username", r.username, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "order", r.order, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") - parameterAddToHeaderOrQuery(localVarQueryParams, "pagesize", r.pagesize, "") - // 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 -} diff --git a/api_rank.go b/api_rank.go index bb632ec..da983d4 100644 --- a/api_rank.go +++ b/api_rank.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_reason.go b/api_reason.go index 72f7c34..a74fbcd 100644 --- a/api_reason.go +++ b/api_reason.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_report.go b/api_report.go index 8837e8b..0de867b 100644 --- a/api_report.go +++ b/api_report.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -146,113 +144,3 @@ func (a *ReportApiService) AnswerApiV1ReportPostExecute(r ApiAnswerApiV1ReportPo return localVarReturnValue, localVarHTTPResponse, nil } - -type ApiAnswerApiV1ReportTypeListGetRequest struct { - ctx context.Context - ApiService *ReportApiService - source *string -} - -// report source -func (r ApiAnswerApiV1ReportTypeListGetRequest) Source(source string) ApiAnswerApiV1ReportTypeListGetRequest { - r.source = &source - return r -} - -func (r ApiAnswerApiV1ReportTypeListGetRequest) Execute() (*AnswerApiV1ReportTypeListGet200Response, *http.Response, error) { - return r.ApiService.AnswerApiV1ReportTypeListGetExecute(r) -} - -/* -AnswerApiV1ReportTypeListGet get report type list - -get report type list - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAnswerApiV1ReportTypeListGetRequest -*/ -func (a *ReportApiService) AnswerApiV1ReportTypeListGet(ctx context.Context) ApiAnswerApiV1ReportTypeListGetRequest { - return ApiAnswerApiV1ReportTypeListGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return AnswerApiV1ReportTypeListGet200Response -func (a *ReportApiService) AnswerApiV1ReportTypeListGetExecute(r ApiAnswerApiV1ReportTypeListGetRequest) (*AnswerApiV1ReportTypeListGet200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AnswerApiV1ReportTypeListGet200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReportApiService.AnswerApiV1ReportTypeListGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/answer/api/v1/report/type/list" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.source == nil { - return localVarReturnValue, nil, reportError("source is required and must be specified") - } - - parameterAddToHeaderOrQuery(localVarQueryParams, "source", r.source, "") - // 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 -} diff --git a/api_revision.go b/api_revision.go index bf2c30e..22075c7 100644 --- a/api_revision.go +++ b/api_revision.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_search.go b/api_search.go index cbb3dbf..fdcf7cb 100644 --- a/api_search.go +++ b/api_search.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_site.go b/api_site.go index 94b0139..a4b7176 100644 --- a/api_site.go +++ b/api_site.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_tag.go b/api_tag.go index b7eb629..83e8512 100644 --- a/api_tag.go +++ b/api_tag.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_upload.go b/api_upload.go index 59760e4..d9725cd 100644 --- a/api_upload.go +++ b/api_upload.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_user.go b/api_user.go index 7415770..640574c 100644 --- a/api_user.go +++ b/api_user.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -1097,6 +1095,130 @@ func (a *UserApiService) AnswerApiV1UserInfoPutExecute(r ApiAnswerApiV1UserInfoP return localVarReturnValue, localVarHTTPResponse, nil } +type ApiAnswerApiV1UserInfoSearchGetRequest struct { + ctx context.Context + ApiService *UserApiService + username *string +} + +// username +func (r ApiAnswerApiV1UserInfoSearchGetRequest) Username(username string) ApiAnswerApiV1UserInfoSearchGetRequest { + r.username = &username + return r +} + +func (r ApiAnswerApiV1UserInfoSearchGetRequest) Execute() (*AnswerApiV1PersonalUserInfoGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1UserInfoSearchGetExecute(r) +} + +/* +AnswerApiV1UserInfoSearchGet SearchUserListByName + +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 { + return ApiAnswerApiV1UserInfoSearchGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1PersonalUserInfoGet200Response +func (a *UserApiService) AnswerApiV1UserInfoSearchGetExecute(r ApiAnswerApiV1UserInfoSearchGetRequest) (*AnswerApiV1PersonalUserInfoGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1PersonalUserInfoGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserInfoSearchGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/info/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.username == nil { + return localVarReturnValue, nil, reportError("username is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "username", r.username, "") + // 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 ApiAnswerApiV1UserInterfacePutRequest struct { ctx context.Context ApiService *UserApiService @@ -1571,11 +1693,11 @@ func (a *UserApiService) AnswerApiV1UserNoticeSetPostExecute(r ApiAnswerApiV1Use type ApiAnswerApiV1UserPasswordPutRequest struct { ctx context.Context ApiService *UserApiService - data *SchemaUserModifyPassWordRequest + data *SchemaUserModifyPasswordReq } -// UserModifyPassWordRequest -func (r ApiAnswerApiV1UserPasswordPutRequest) Data(data SchemaUserModifyPassWordRequest) ApiAnswerApiV1UserPasswordPutRequest { +// UserModifyPasswordReq +func (r ApiAnswerApiV1UserPasswordPutRequest) Data(data SchemaUserModifyPasswordReq) ApiAnswerApiV1UserPasswordPutRequest { r.data = &data return r } diff --git a/client.go b/client.go index 605f252..a6e74b7 100644 --- a/client.go +++ b/client.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -41,7 +39,7 @@ var ( queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the answer API vv0.0.1 +// APIClient manages communication with the API v1.0.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -53,6 +51,8 @@ type APIClient struct { AdminApi *AdminApiService + AdminPluginApi *AdminPluginApiService + ApiAnswerApi *ApiAnswerApiService CollectionApi *CollectionApiService @@ -65,6 +65,12 @@ type APIClient struct { NotificationApi *NotificationApiService + PermissionApi *PermissionApiService + + PersonalApi *PersonalApiService + + PluginConnectorApi *PluginConnectorApiService + QuestionApi *QuestionApiService RankApi *RankApiService @@ -104,12 +110,16 @@ func NewAPIClient(cfg *Configuration) *APIClient { // 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) diff --git a/configuration.go b/configuration.go index cb90062..5be768f 100644 --- a/configuration.go +++ b/configuration.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -93,7 +91,7 @@ func NewConfiguration() *Configuration { Debug: false, Servers: ServerConfigurations{ { - URL: "//127.0.0.1:80", + URL: "", Description: "No description provided", }, }, diff --git a/docs/ActivityApi.md b/docs/ActivityApi.md index 044f5b1..d798222 100644 --- a/docs/ActivityApi.md +++ b/docs/ActivityApi.md @@ -1,12 +1,12 @@ # \ActivityApi -All URIs are relative to *http://127.0.0.1:80* +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 | user's votes +[**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 @@ -148,7 +148,7 @@ Name | Type | Description | Notes > AnswerApiV1PersonalVotePageGet200Response AnswerApiV1PersonalVotePageGet(ctx).Page(page).PageSize(pageSize).Execute() -user's votes +get user personal votes diff --git a/docs/AdminApi.md b/docs/AdminApi.md index 8023147..2b0c321 100644 --- a/docs/AdminApi.md +++ b/docs/AdminApi.md @@ -1,17 +1,19 @@ # \AdminApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**AnswerAdminApiAnswerPageGet**](AdminApi.md#AnswerAdminApiAnswerPageGet) | **Get** /answer/admin/api/answer/page | AdminSearchAnswerList +[**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 | AdminSearchList +[**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 @@ -30,13 +32,17 @@ Method | HTTP request | Description [**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 @@ -45,7 +51,7 @@ Method | HTTP request | Description > HandlerRespBody AnswerAdminApiAnswerPageGet(ctx).Page(page).PageSize(pageSize).Status(status).Query(query).QuestionId(questionId).Execute() -AdminSearchAnswerList +AdminAnswerPage admin answer page @@ -246,7 +252,7 @@ Other parameters are passed through a pointer to a apiAnswerAdminApiDashboardGet > HandlerRespBody AnswerAdminApiQuestionPageGet(ctx).Page(page).PageSize(pageSize).Status(status).Query(query).Execute() -AdminSearchList +AdminQuestionPage admin question page @@ -579,6 +585,133 @@ No authorization required [[Back to README]](../README.md) +## AnswerAdminApiSettingPrivilegesGet + +> AnswerAdminApiSettingPrivilegesGet200Response AnswerAdminApiSettingPrivilegesGet(ctx).Execute() + +GetPrivilegesConfig get privileges config + + + +### 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.AdminApi.AnswerAdminApiSettingPrivilegesGet(context.Background()).Execute() + if err != nil { + 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) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSettingPrivilegesGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSettingPrivilegesGet200Response**](AnswerAdminApiSettingPrivilegesGet200Response.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) + + +## AnswerAdminApiSettingPrivilegesPut + +> HandlerRespBody AnswerAdminApiSettingPrivilegesPut(ctx).Data(data).Execute() + +update privileges config + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdatePrivilegesConfigReq(openapiclient.schema.PrivilegeLevel(1)) // SchemaUpdatePrivilegesConfigReq | config + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSettingPrivilegesPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSettingPrivilegesPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSettingPrivilegesPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdatePrivilegesConfigReq**](SchemaUpdatePrivilegesConfigReq.md) | config | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.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) + + ## AnswerAdminApiSettingSmtpGet > AnswerAdminApiSettingSmtpGet200Response AnswerAdminApiSettingSmtpGet(ctx).Execute() @@ -1169,7 +1302,7 @@ import ( ) func main() { - data := *openapiclient.NewSchemaSiteInterfaceReq("DefaultAvatar_example", "Language_example", "TimeZone_example") // SchemaSiteInterfaceReq | general + data := *openapiclient.NewSchemaSiteInterfaceReq("Language_example", "TimeZone_example") // SchemaSiteInterfaceReq | general configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1722,6 +1855,133 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## AnswerAdminApiSiteinfoUsersGet + +> AnswerAdminApiSiteinfoUsersGet200Response AnswerAdminApiSiteinfoUsersGet(ctx).Execute() + +get site user config + + + +### 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.AdminApi.AnswerAdminApiSiteinfoUsersGet(context.Background()).Execute() + if err != nil { + 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) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoUsersGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSiteinfoUsersGet200Response**](AnswerAdminApiSiteinfoUsersGet200Response.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) + + +## AnswerAdminApiSiteinfoUsersPut + +> HandlerRespBody AnswerAdminApiSiteinfoUsersPut(ctx).Data(data).Execute() + +update site info config about users + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSiteUsersReq("DefaultAvatar_example") // SchemaSiteUsersReq | users info + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoUsersPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoUsersPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoUsersPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSiteUsersReq**](SchemaSiteUsersReq.md) | users info | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.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) + + ## AnswerAdminApiSiteinfoWriteGet > AnswerAdminApiSiteinfoWriteGet200Response AnswerAdminApiSiteinfoWriteGet(ctx).Execute() @@ -1910,6 +2170,72 @@ Other parameters are passed through a pointer to a apiAnswerAdminApiThemeOptions [[Back to README]](../README.md) +## AnswerAdminApiUserActivationGet + +> AnswerAdminApiUserActivationGet200Response AnswerAdminApiUserActivationGet(ctx).UserId(userId).Execute() + +get user activation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + userId := "userId_example" // string | user id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiUserActivationGet`: AnswerAdminApiUserActivationGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserActivationGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiUserActivationGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **string** | user id | + +### Return type + +[**AnswerAdminApiUserActivationGet200Response**](AnswerAdminApiUserActivationGet200Response.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) + + ## AnswerAdminApiUserPasswordPut > HandlerRespBody AnswerAdminApiUserPasswordPut(ctx).Data(data).Execute() @@ -2174,6 +2500,72 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## AnswerAdminApiUsersActivationPost + +> HandlerRespBody AnswerAdminApiUsersActivationPost(ctx).Data(data).Execute() + +send user activation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSendUserActivationReq("UserId_example") // SchemaSendUserActivationReq | SendUserActivationReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiUsersActivationPost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUsersActivationPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiUsersActivationPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSendUserActivationReq**](SchemaSendUserActivationReq.md) | SendUserActivationReq | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.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) + + ## AnswerAdminApiUsersPageGet > AnswerAdminApiUsersPageGet200Response AnswerAdminApiUsersPageGet(ctx).Page(page).PageSize(pageSize).Query(query).Staff(staff).Status(status).Execute() diff --git a/docs/AdminPluginApi.md b/docs/AdminPluginApi.md new file mode 100644 index 0000000..73717ba --- /dev/null +++ b/docs/AdminPluginApi.md @@ -0,0 +1,278 @@ +# \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 + +> AnswerAdminApiPluginConfigGet200Response AnswerAdminApiPluginConfigGet(ctx).PluginSlugName(pluginSlugName).Execute() + +get plugin config + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + pluginSlugName := "pluginSlugName_example" // string | plugin_slug_name + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiPluginConfigGet`: AnswerAdminApiPluginConfigGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminPluginApi.AnswerAdminApiPluginConfigGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiPluginConfigGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pluginSlugName** | **string** | plugin_slug_name | + +### Return type + +[**AnswerAdminApiPluginConfigGet200Response**](AnswerAdminApiPluginConfigGet200Response.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) + + +## AnswerAdminApiPluginConfigPut + +> HandlerRespBody AnswerAdminApiPluginConfigPut(ctx).Data(data).Execute() + +update plugin config + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdatePluginConfigReq("PluginSlugName_example") // SchemaUpdatePluginConfigReq | UpdatePluginConfigReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiPluginConfigPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminPluginApi.AnswerAdminApiPluginConfigPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiPluginConfigPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdatePluginConfigReq**](SchemaUpdatePluginConfigReq.md) | UpdatePluginConfigReq | + +### 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) + + +## AnswerAdminApiPluginStatusPut + +> HandlerRespBody AnswerAdminApiPluginStatusPut(ctx).Data(data).Execute() + +update plugin status + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdatePluginStatusReq("PluginSlugName_example") // SchemaUpdatePluginStatusReq | UpdatePluginStatusReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiPluginStatusPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminPluginApi.AnswerAdminApiPluginStatusPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiPluginStatusPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdatePluginStatusReq**](SchemaUpdatePluginStatusReq.md) | UpdatePluginStatusReq | + +### 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) + + +## AnswerAdminApiPluginsGet + +> AnswerAdminApiPluginsGet200Response AnswerAdminApiPluginsGet(ctx).Status(status).HaveConfig(haveConfig).Execute() + +get plugin list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + status := "status_example" // string | status: active/inactive (optional) + haveConfig := true // bool | have config (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiPluginsGet`: AnswerAdminApiPluginsGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminPluginApi.AnswerAdminApiPluginsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiPluginsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **string** | status: active/inactive | + **haveConfig** | **bool** | have config | + +### Return type + +[**AnswerAdminApiPluginsGet200Response**](AnswerAdminApiPluginsGet200Response.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/AnswerAdminApiPluginConfigGet200Response.md b/docs/AnswerAdminApiPluginConfigGet200Response.md new file mode 100644 index 0000000..4d4aac8 --- /dev/null +++ b/docs/AnswerAdminApiPluginConfigGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiPluginConfigGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetPluginConfigResp**](SchemaGetPluginConfigResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiPluginConfigGet200Response + +`func NewAnswerAdminApiPluginConfigGet200Response() *AnswerAdminApiPluginConfigGet200Response` + +NewAnswerAdminApiPluginConfigGet200Response instantiates a new AnswerAdminApiPluginConfigGet200Response 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 + +### NewAnswerAdminApiPluginConfigGet200ResponseWithDefaults + +`func NewAnswerAdminApiPluginConfigGet200ResponseWithDefaults() *AnswerAdminApiPluginConfigGet200Response` + +NewAnswerAdminApiPluginConfigGet200ResponseWithDefaults instantiates a new AnswerAdminApiPluginConfigGet200Response 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 *AnswerAdminApiPluginConfigGet200Response) GetData() SchemaGetPluginConfigResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiPluginConfigGet200Response) GetDataOk() (*SchemaGetPluginConfigResp, 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 *AnswerAdminApiPluginConfigGet200Response) SetData(v SchemaGetPluginConfigResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiPluginConfigGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiPluginConfigGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiPluginConfigGet200Response) 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 *AnswerAdminApiPluginConfigGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiPluginConfigGet200Response) 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/AnswerAdminApiPluginsGet200Response.md b/docs/AnswerAdminApiPluginsGet200Response.md new file mode 100644 index 0000000..c527c1f --- /dev/null +++ b/docs/AnswerAdminApiPluginsGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiPluginsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]SchemaGetPluginListResp**](SchemaGetPluginListResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiPluginsGet200Response + +`func NewAnswerAdminApiPluginsGet200Response() *AnswerAdminApiPluginsGet200Response` + +NewAnswerAdminApiPluginsGet200Response instantiates a new AnswerAdminApiPluginsGet200Response 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 + +### NewAnswerAdminApiPluginsGet200ResponseWithDefaults + +`func NewAnswerAdminApiPluginsGet200ResponseWithDefaults() *AnswerAdminApiPluginsGet200Response` + +NewAnswerAdminApiPluginsGet200ResponseWithDefaults instantiates a new AnswerAdminApiPluginsGet200Response 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 *AnswerAdminApiPluginsGet200Response) GetData() []SchemaGetPluginListResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiPluginsGet200Response) GetDataOk() (*[]SchemaGetPluginListResp, 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 *AnswerAdminApiPluginsGet200Response) SetData(v []SchemaGetPluginListResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiPluginsGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiPluginsGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiPluginsGet200Response) 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 *AnswerAdminApiPluginsGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiPluginsGet200Response) 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/AnswerAdminApiSettingPrivilegesGet200Response.md b/docs/AnswerAdminApiSettingPrivilegesGet200Response.md new file mode 100644 index 0000000..7dd307e --- /dev/null +++ b/docs/AnswerAdminApiSettingPrivilegesGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSettingPrivilegesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetPrivilegesConfigResp**](SchemaGetPrivilegesConfigResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSettingPrivilegesGet200Response + +`func NewAnswerAdminApiSettingPrivilegesGet200Response() *AnswerAdminApiSettingPrivilegesGet200Response` + +NewAnswerAdminApiSettingPrivilegesGet200Response instantiates a new AnswerAdminApiSettingPrivilegesGet200Response 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 + +### NewAnswerAdminApiSettingPrivilegesGet200ResponseWithDefaults + +`func NewAnswerAdminApiSettingPrivilegesGet200ResponseWithDefaults() *AnswerAdminApiSettingPrivilegesGet200Response` + +NewAnswerAdminApiSettingPrivilegesGet200ResponseWithDefaults instantiates a new AnswerAdminApiSettingPrivilegesGet200Response 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 *AnswerAdminApiSettingPrivilegesGet200Response) GetData() SchemaGetPrivilegesConfigResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetDataOk() (*SchemaGetPrivilegesConfigResp, 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 *AnswerAdminApiSettingPrivilegesGet200Response) SetData(v SchemaGetPrivilegesConfigResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) 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 *AnswerAdminApiSettingPrivilegesGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSettingPrivilegesGet200Response) 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/AnswerAdminApiSiteinfoUsersGet200Response.md b/docs/AnswerAdminApiSiteinfoUsersGet200Response.md new file mode 100644 index 0000000..217ac3e --- /dev/null +++ b/docs/AnswerAdminApiSiteinfoUsersGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSiteinfoUsersGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteUsersResp**](SchemaSiteUsersResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSiteinfoUsersGet200Response + +`func NewAnswerAdminApiSiteinfoUsersGet200Response() *AnswerAdminApiSiteinfoUsersGet200Response` + +NewAnswerAdminApiSiteinfoUsersGet200Response instantiates a new AnswerAdminApiSiteinfoUsersGet200Response 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 + +### NewAnswerAdminApiSiteinfoUsersGet200ResponseWithDefaults + +`func NewAnswerAdminApiSiteinfoUsersGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoUsersGet200Response` + +NewAnswerAdminApiSiteinfoUsersGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoUsersGet200Response 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 *AnswerAdminApiSiteinfoUsersGet200Response) GetData() SchemaSiteUsersResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetDataOk() (*SchemaSiteUsersResp, 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 *AnswerAdminApiSiteinfoUsersGet200Response) SetData(v SchemaSiteUsersResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) 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 *AnswerAdminApiSiteinfoUsersGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoUsersGet200Response) 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/AnswerAdminApiUserActivationGet200Response.md b/docs/AnswerAdminApiUserActivationGet200Response.md new file mode 100644 index 0000000..71a9ff8 --- /dev/null +++ b/docs/AnswerAdminApiUserActivationGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiUserActivationGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetUserActivationResp**](SchemaGetUserActivationResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiUserActivationGet200Response + +`func NewAnswerAdminApiUserActivationGet200Response() *AnswerAdminApiUserActivationGet200Response` + +NewAnswerAdminApiUserActivationGet200Response instantiates a new AnswerAdminApiUserActivationGet200Response 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 + +### NewAnswerAdminApiUserActivationGet200ResponseWithDefaults + +`func NewAnswerAdminApiUserActivationGet200ResponseWithDefaults() *AnswerAdminApiUserActivationGet200Response` + +NewAnswerAdminApiUserActivationGet200ResponseWithDefaults instantiates a new AnswerAdminApiUserActivationGet200Response 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 *AnswerAdminApiUserActivationGet200Response) GetData() SchemaGetUserActivationResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiUserActivationGet200Response) GetDataOk() (*SchemaGetUserActivationResp, 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 *AnswerAdminApiUserActivationGet200Response) SetData(v SchemaGetUserActivationResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiUserActivationGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiUserActivationGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiUserActivationGet200Response) 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 *AnswerAdminApiUserActivationGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiUserActivationGet200Response) 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/AnswerApiV1ConnectorBindingEmailPost200Response.md b/docs/AnswerApiV1ConnectorBindingEmailPost200Response.md new file mode 100644 index 0000000..2c1f643 --- /dev/null +++ b/docs/AnswerApiV1ConnectorBindingEmailPost200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1ConnectorBindingEmailPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaExternalLoginBindingUserSendEmailResp**](SchemaExternalLoginBindingUserSendEmailResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1ConnectorBindingEmailPost200Response + +`func NewAnswerApiV1ConnectorBindingEmailPost200Response() *AnswerApiV1ConnectorBindingEmailPost200Response` + +NewAnswerApiV1ConnectorBindingEmailPost200Response instantiates a new AnswerApiV1ConnectorBindingEmailPost200Response 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 + +### NewAnswerApiV1ConnectorBindingEmailPost200ResponseWithDefaults + +`func NewAnswerApiV1ConnectorBindingEmailPost200ResponseWithDefaults() *AnswerApiV1ConnectorBindingEmailPost200Response` + +NewAnswerApiV1ConnectorBindingEmailPost200ResponseWithDefaults instantiates a new AnswerApiV1ConnectorBindingEmailPost200Response 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 *AnswerApiV1ConnectorBindingEmailPost200Response) GetData() SchemaExternalLoginBindingUserSendEmailResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetDataOk() (*SchemaExternalLoginBindingUserSendEmailResp, 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 *AnswerApiV1ConnectorBindingEmailPost200Response) SetData(v SchemaExternalLoginBindingUserSendEmailResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) 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 *AnswerApiV1ConnectorBindingEmailPost200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1ConnectorBindingEmailPost200Response) 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/AnswerApiV1ConnectorInfoGet200Response.md b/docs/AnswerApiV1ConnectorInfoGet200Response.md new file mode 100644 index 0000000..0a97c8b --- /dev/null +++ b/docs/AnswerApiV1ConnectorInfoGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1ConnectorInfoGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]SchemaConnectorInfoResp**](SchemaConnectorInfoResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1ConnectorInfoGet200Response + +`func NewAnswerApiV1ConnectorInfoGet200Response() *AnswerApiV1ConnectorInfoGet200Response` + +NewAnswerApiV1ConnectorInfoGet200Response instantiates a new AnswerApiV1ConnectorInfoGet200Response 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 + +### NewAnswerApiV1ConnectorInfoGet200ResponseWithDefaults + +`func NewAnswerApiV1ConnectorInfoGet200ResponseWithDefaults() *AnswerApiV1ConnectorInfoGet200Response` + +NewAnswerApiV1ConnectorInfoGet200ResponseWithDefaults instantiates a new AnswerApiV1ConnectorInfoGet200Response 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 *AnswerApiV1ConnectorInfoGet200Response) GetData() []SchemaConnectorInfoResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1ConnectorInfoGet200Response) GetDataOk() (*[]SchemaConnectorInfoResp, 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 *AnswerApiV1ConnectorInfoGet200Response) SetData(v []SchemaConnectorInfoResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1ConnectorInfoGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1ConnectorInfoGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1ConnectorInfoGet200Response) 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 *AnswerApiV1ConnectorInfoGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1ConnectorInfoGet200Response) 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/AnswerApiV1ConnectorUserInfoGet200Response.md b/docs/AnswerApiV1ConnectorUserInfoGet200Response.md new file mode 100644 index 0000000..938fc9d --- /dev/null +++ b/docs/AnswerApiV1ConnectorUserInfoGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1ConnectorUserInfoGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]SchemaConnectorUserInfoResp**](SchemaConnectorUserInfoResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1ConnectorUserInfoGet200Response + +`func NewAnswerApiV1ConnectorUserInfoGet200Response() *AnswerApiV1ConnectorUserInfoGet200Response` + +NewAnswerApiV1ConnectorUserInfoGet200Response instantiates a new AnswerApiV1ConnectorUserInfoGet200Response 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 + +### NewAnswerApiV1ConnectorUserInfoGet200ResponseWithDefaults + +`func NewAnswerApiV1ConnectorUserInfoGet200ResponseWithDefaults() *AnswerApiV1ConnectorUserInfoGet200Response` + +NewAnswerApiV1ConnectorUserInfoGet200ResponseWithDefaults instantiates a new AnswerApiV1ConnectorUserInfoGet200Response 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 *AnswerApiV1ConnectorUserInfoGet200Response) GetData() []SchemaConnectorUserInfoResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetDataOk() (*[]SchemaConnectorUserInfoResp, 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 *AnswerApiV1ConnectorUserInfoGet200Response) SetData(v []SchemaConnectorUserInfoResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) 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 *AnswerApiV1ConnectorUserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1ConnectorUserInfoGet200Response) 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/AnswerApiV1PermissionGet200Response.md b/docs/AnswerApiV1PermissionGet200Response.md new file mode 100644 index 0000000..b82be52 --- /dev/null +++ b/docs/AnswerApiV1PermissionGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1PermissionGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **map[string]bool** | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1PermissionGet200Response + +`func NewAnswerApiV1PermissionGet200Response() *AnswerApiV1PermissionGet200Response` + +NewAnswerApiV1PermissionGet200Response instantiates a new AnswerApiV1PermissionGet200Response 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 + +### NewAnswerApiV1PermissionGet200ResponseWithDefaults + +`func NewAnswerApiV1PermissionGet200ResponseWithDefaults() *AnswerApiV1PermissionGet200Response` + +NewAnswerApiV1PermissionGet200ResponseWithDefaults instantiates a new AnswerApiV1PermissionGet200Response 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 *AnswerApiV1PermissionGet200Response) GetData() map[string]bool` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1PermissionGet200Response) GetDataOk() (*map[string]bool, 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 *AnswerApiV1PermissionGet200Response) SetData(v map[string]bool)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1PermissionGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1PermissionGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1PermissionGet200Response) 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 *AnswerApiV1PermissionGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1PermissionGet200Response) 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/AnswerApiV1PersonalRankPageGet200ResponseData.md b/docs/AnswerApiV1PersonalRankPageGet200ResponseData.md index 9d8bf68..1566037 100644 --- a/docs/AnswerApiV1PersonalRankPageGet200ResponseData.md +++ b/docs/AnswerApiV1PersonalRankPageGet200ResponseData.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Count** | Pointer to **int32** | | [optional] -**List** | Pointer to [**[]SchemaGetRankPersonalWithPageResp**](SchemaGetRankPersonalWithPageResp.md) | | [optional] +**List** | Pointer to [**[]SchemaGetRankPersonalPageResp**](SchemaGetRankPersonalPageResp.md) | | [optional] ## Methods @@ -53,20 +53,20 @@ HasCount returns a boolean if a field has been set. ### GetList -`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetList() []SchemaGetRankPersonalWithPageResp` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetList() []SchemaGetRankPersonalPageResp` GetList returns the List field if non-nil, zero value otherwise. ### GetListOk -`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetListOk() (*[]SchemaGetRankPersonalWithPageResp, bool)` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) 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 []SchemaGetRankPersonalWithPageResp)` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetList(v []SchemaGetRankPersonalPageResp)` SetList sets List field to given value. diff --git a/docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md b/docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md index 8beeebc..022268d 100644 --- a/docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md +++ b/docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**List** | Pointer to [**[]SchemaGetRankPersonalWithPageResp**](SchemaGetRankPersonalWithPageResp.md) | | [optional] +**List** | Pointer to [**[]SchemaGetRankPersonalPageResp**](SchemaGetRankPersonalPageResp.md) | | [optional] ## Methods @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetList -`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetList() []SchemaGetRankPersonalWithPageResp` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetList() []SchemaGetRankPersonalPageResp` GetList returns the List field if non-nil, zero value otherwise. ### GetListOk -`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetRankPersonalWithPageResp, bool)` +`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 []SchemaGetRankPersonalWithPageResp)` +`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) SetList(v []SchemaGetRankPersonalPageResp)` SetList sets List field to given value. diff --git a/docs/AnswerApiV1UserEmailVerificationPost200Response.md b/docs/AnswerApiV1UserEmailVerificationPost200Response.md index e250955..049c503 100644 --- a/docs/AnswerApiV1UserEmailVerificationPost200Response.md +++ b/docs/AnswerApiV1UserEmailVerificationPost200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**SchemaGetUserResp**](SchemaGetUserResp.md) | | [optional] +**Data** | Pointer to [**SchemaUserLoginResp**](SchemaUserLoginResp.md) | | [optional] **HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] ## Methods @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetData -`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetData() SchemaGetUserResp` +`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetData() SchemaUserLoginResp` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetDataOk() (*SchemaGetUserResp, bool)` +`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetDataOk() (*SchemaUserLoginResp, 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 *AnswerApiV1UserEmailVerificationPost200Response) SetData(v SchemaGetUserResp)` +`func (o *AnswerApiV1UserEmailVerificationPost200Response) SetData(v SchemaUserLoginResp)` SetData sets Data field to given value. diff --git a/docs/AnswerApiV1UserInfoGet200Response.md b/docs/AnswerApiV1UserInfoGet200Response.md index b2402c9..2c646c6 100644 --- a/docs/AnswerApiV1UserInfoGet200Response.md +++ b/docs/AnswerApiV1UserInfoGet200Response.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**SchemaGetUserToSetShowResp**](SchemaGetUserToSetShowResp.md) | | [optional] +**Data** | Pointer to [**SchemaGetCurrentLoginUserInfoResp**](SchemaGetCurrentLoginUserInfoResp.md) | | [optional] **HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] ## Methods @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetData -`func (o *AnswerApiV1UserInfoGet200Response) GetData() SchemaGetUserToSetShowResp` +`func (o *AnswerApiV1UserInfoGet200Response) GetData() SchemaGetCurrentLoginUserInfoResp` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AnswerApiV1UserInfoGet200Response) GetDataOk() (*SchemaGetUserToSetShowResp, bool)` +`func (o *AnswerApiV1UserInfoGet200Response) GetDataOk() (*SchemaGetCurrentLoginUserInfoResp, 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 *AnswerApiV1UserInfoGet200Response) SetData(v SchemaGetUserToSetShowResp)` +`func (o *AnswerApiV1UserInfoGet200Response) SetData(v SchemaGetCurrentLoginUserInfoResp)` SetData sets Data field to given value. diff --git a/docs/ApiAnswerApi.md b/docs/ApiAnswerApi.md index 52191e2..d4fef28 100644 --- a/docs/ApiAnswerApi.md +++ b/docs/ApiAnswerApi.md @@ -1,6 +1,6 @@ # \ApiAnswerApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -10,7 +10,6 @@ Method | HTTP request | Description [**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 -[**AnswerApiV1PersonalAnswerPageGet**](ApiAnswerApi.md#AnswerApiV1PersonalAnswerPageGet) | **Get** /answer/api/v1/personal/answer/page | UserAnswerList @@ -415,75 +414,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -## AnswerApiV1PersonalAnswerPageGet - -> HandlerRespBody AnswerApiV1PersonalAnswerPageGet(ctx).Username(username).Order(order).Page(page).Pagesize(pagesize).Execute() - -UserAnswerList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - username := "username_example" // string | username (default to "string") - order := "order_example" // string | order - page := "page_example" // string | page (default to "0") - pagesize := "pagesize_example" // string | pagesize (default to "20") - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1PersonalAnswerPageGet(context.Background()).Username(username).Order(order).Page(page).Pagesize(pagesize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1PersonalAnswerPageGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AnswerApiV1PersonalAnswerPageGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1PersonalAnswerPageGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiAnswerApiV1PersonalAnswerPageGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **string** | username | [default to "string"] - **order** | **string** | order | - **page** | **string** | page | [default to "0"] - **pagesize** | **string** | pagesize | [default to "20"] - -### Return type - -[**HandlerRespBody**](HandlerRespBody.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/CollectionApi.md b/docs/CollectionApi.md index db6482c..973c624 100644 --- a/docs/CollectionApi.md +++ b/docs/CollectionApi.md @@ -1,11 +1,11 @@ # \CollectionApi -All URIs are relative to *http://127.0.0.1:80* +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 | UserCollectionList +[**AnswerApiV1PersonalCollectionPageGet**](CollectionApi.md#AnswerApiV1PersonalCollectionPageGet) | **Get** /answer/api/v1/personal/collection/page | list personal collections @@ -77,9 +77,9 @@ Name | Type | Description | Notes ## AnswerApiV1PersonalCollectionPageGet -> HandlerRespBody AnswerApiV1PersonalCollectionPageGet(ctx).Page(page).Pagesize(pagesize).Execute() +> HandlerRespBody AnswerApiV1PersonalCollectionPageGet(ctx).Page(page).PageSize(pageSize).Execute() -UserCollectionList +list personal collections @@ -97,11 +97,11 @@ import ( func main() { page := "page_example" // string | page (default to "0") - pagesize := "pagesize_example" // string | pagesize (default to "20") + pageSize := "pageSize_example" // string | page_size (default to "20") 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, "Full HTTP response: %v\n", r) @@ -123,7 +123,7 @@ Other parameters are passed through a pointer to a apiAnswerApiV1PersonalCollect Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page** | **string** | page | [default to "0"] - **pagesize** | **string** | pagesize | [default to "20"] + **pageSize** | **string** | page_size | [default to "20"] ### Return type diff --git a/docs/CommentApi.md b/docs/CommentApi.md index b485ef5..d6651c2 100644 --- a/docs/CommentApi.md +++ b/docs/CommentApi.md @@ -1,6 +1,6 @@ # \CommentApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/docs/ConstantPrivilege.md b/docs/ConstantPrivilege.md new file mode 100644 index 0000000..81d3770 --- /dev/null +++ b/docs/ConstantPrivilege.md @@ -0,0 +1,108 @@ +# ConstantPrivilege + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | Pointer to **string** | | [optional] +**Label** | Pointer to **string** | | [optional] +**Value** | Pointer to **int32** | | [optional] + +## Methods + +### NewConstantPrivilege + +`func NewConstantPrivilege() *ConstantPrivilege` + +NewConstantPrivilege instantiates a new ConstantPrivilege 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 + +### NewConstantPrivilegeWithDefaults + +`func NewConstantPrivilegeWithDefaults() *ConstantPrivilege` + +NewConstantPrivilegeWithDefaults instantiates a new ConstantPrivilege 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 + +### GetKey + +`func (o *ConstantPrivilege) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *ConstantPrivilege) GetKeyOk() (*string, 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 *ConstantPrivilege) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *ConstantPrivilege) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetLabel + +`func (o *ConstantPrivilege) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ConstantPrivilege) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *ConstantPrivilege) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ConstantPrivilege) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetValue + +`func (o *ConstantPrivilege) GetValue() int32` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ConstantPrivilege) GetValueOk() (*int32, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ConstantPrivilege) SetValue(v int32)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ConstantPrivilege) HasValue() bool` + +HasValue 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/InstallationApi.md b/docs/InstallationApi.md index 9f3580b..403b6d8 100644 --- a/docs/InstallationApi.md +++ b/docs/InstallationApi.md @@ -1,6 +1,6 @@ # \InstallationApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/docs/LangApi.md b/docs/LangApi.md index 69da7c9..e5bb2da 100644 --- a/docs/LangApi.md +++ b/docs/LangApi.md @@ -1,6 +1,6 @@ # \LangApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/docs/NotificationApi.md b/docs/NotificationApi.md index 924a767..a4b8764 100644 --- a/docs/NotificationApi.md +++ b/docs/NotificationApi.md @@ -1,6 +1,6 @@ # \NotificationApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -14,7 +14,7 @@ Method | HTTP request | Description ## AnswerApiV1NotificationPageGet -> HandlerRespBody AnswerApiV1NotificationPageGet(ctx).Type_(type_).Page(page).PageSize(pageSize).Execute() +> HandlerRespBody AnswerApiV1NotificationPageGet(ctx).Type_(type_).InboxType(inboxType).Page(page).PageSize(pageSize).Execute() get notification list @@ -34,12 +34,13 @@ import ( func main() { type_ := "type__example" // string | type + inboxType := "inboxType_example" // string | inbox_type page := int32(56) // int32 | page size (optional) pageSize := int32(56) // int32 | page size (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.NotificationApi.AnswerApiV1NotificationPageGet(context.Background()).Type_(type_).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, "Full HTTP response: %v\n", r) @@ -61,6 +62,7 @@ Other parameters are passed through a pointer to a apiAnswerApiV1NotificationPag Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **type_** | **string** | type | + **inboxType** | **string** | inbox_type | **page** | **int32** | page size | **pageSize** | **int32** | page size | diff --git a/docs/PermissionApi.md b/docs/PermissionApi.md new file mode 100644 index 0000000..088ec5b --- /dev/null +++ b/docs/PermissionApi.md @@ -0,0 +1,77 @@ +# \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 + +> AnswerApiV1PermissionGet200Response AnswerApiV1PermissionGet(ctx).Authorization(authorization).Action(action).Execute() + +check user permission + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + authorization := "authorization_example" // string | access-token + action := "action_example" // string | permission key + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1PermissionGet`: AnswerApiV1PermissionGet200Response + fmt.Fprintf(os.Stdout, "Response from `PermissionApi.AnswerApiV1PermissionGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1PermissionGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | access-token | + **action** | **string** | permission key | + +### Return type + +[**AnswerApiV1PermissionGet200Response**](AnswerApiV1PermissionGet200Response.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/PersonalApi.md b/docs/PersonalApi.md new file mode 100644 index 0000000..45981f7 --- /dev/null +++ b/docs/PersonalApi.md @@ -0,0 +1,154 @@ +# \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 + +> HandlerRespBody AnswerApiV1PersonalAnswerPageGet(ctx).Username(username).Order(order).Page(page).PageSize(pageSize).Execute() + +list personal answers + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + username := "username_example" // string | username (default to "string") + order := "order_example" // string | order + page := "page_example" // string | page (default to "0") + pageSize := "pageSize_example" // string | page_size (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1PersonalAnswerPageGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `PersonalApi.AnswerApiV1PersonalAnswerPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1PersonalAnswerPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **string** | username | [default to "string"] + **order** | **string** | order | + **page** | **string** | page | [default to "0"] + **pageSize** | **string** | page_size | [default to "20"] + +### Return type + +[**HandlerRespBody**](HandlerRespBody.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) + + +## PersonalQuestionPageGet + +> HandlerRespBody PersonalQuestionPageGet(ctx).Username(username).Order(order).Page(page).PageSize(pageSize).Execute() + +list personal questions + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + username := "username_example" // string | username (default to "string") + order := "order_example" // string | order + page := "page_example" // string | page (default to "0") + pageSize := "pageSize_example" // string | page_size (default to "20") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `PersonalQuestionPageGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `PersonalApi.PersonalQuestionPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPersonalQuestionPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **string** | username | [default to "string"] + **order** | **string** | order | + **page** | **string** | page | [default to "0"] + **pageSize** | **string** | page_size | [default to "20"] + +### Return type + +[**HandlerRespBody**](HandlerRespBody.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/PluginConnectorApi.md b/docs/PluginConnectorApi.md new file mode 100644 index 0000000..bff29c4 --- /dev/null +++ b/docs/PluginConnectorApi.md @@ -0,0 +1,266 @@ +# \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 + +> AnswerApiV1ConnectorBindingEmailPost200Response AnswerApiV1ConnectorBindingEmailPost(ctx).Data(data).Execute() + +external login binding user send email + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaExternalLoginBindingUserSendEmailReq("BindingKey_example", "Email_example") // SchemaExternalLoginBindingUserSendEmailReq | external login binding user send email + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1ConnectorBindingEmailPost`: AnswerApiV1ConnectorBindingEmailPost200Response + fmt.Fprintf(os.Stdout, "Response from `PluginConnectorApi.AnswerApiV1ConnectorBindingEmailPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1ConnectorBindingEmailPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaExternalLoginBindingUserSendEmailReq**](SchemaExternalLoginBindingUserSendEmailReq.md) | external login binding user send email | + +### Return type + +[**AnswerApiV1ConnectorBindingEmailPost200Response**](AnswerApiV1ConnectorBindingEmailPost200Response.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) + + +## AnswerApiV1ConnectorInfoGet + +> AnswerApiV1ConnectorInfoGet200Response AnswerApiV1ConnectorInfoGet(ctx).Execute() + +get all enabled connectors + + + +### 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.PluginConnectorApi.AnswerApiV1ConnectorInfoGet(context.Background()).Execute() + if err != nil { + 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) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1ConnectorInfoGetRequest struct via the builder pattern + + +### Return type + +[**AnswerApiV1ConnectorInfoGet200Response**](AnswerApiV1ConnectorInfoGet200Response.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) + + +## AnswerApiV1ConnectorUserInfoGet + +> AnswerApiV1ConnectorUserInfoGet200Response AnswerApiV1ConnectorUserInfoGet(ctx).Execute() + +get all connectors info about user + + + +### 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.PluginConnectorApi.AnswerApiV1ConnectorUserInfoGet(context.Background()).Execute() + if err != nil { + 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) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1ConnectorUserInfoGetRequest struct via the builder pattern + + +### Return type + +[**AnswerApiV1ConnectorUserInfoGet200Response**](AnswerApiV1ConnectorUserInfoGet200Response.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) + + +## AnswerApiV1ConnectorUserUnbindingDelete + +> HandlerRespBody AnswerApiV1ConnectorUserUnbindingDelete(ctx).Data(data).Execute() + +unbind external user login + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaExternalLoginUnbindingReq("ExternalId_example") // SchemaExternalLoginUnbindingReq | ExternalLoginUnbindingReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1ConnectorUserUnbindingDelete`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `PluginConnectorApi.AnswerApiV1ConnectorUserUnbindingDelete`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1ConnectorUserUnbindingDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaExternalLoginUnbindingReq**](SchemaExternalLoginUnbindingReq.md) | ExternalLoginUnbindingReq | + +### 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/QuestionApi.md b/docs/QuestionApi.md index 4962b46..1557e66 100644 --- a/docs/QuestionApi.md +++ b/docs/QuestionApi.md @@ -1,14 +1,15 @@ # \QuestionApi -All URIs are relative to *http://127.0.0.1:80* +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 -[**AnswerApiV1QuestionClosemsglistGet**](QuestionApi.md#AnswerApiV1QuestionClosemsglistGet) | **Get** /answer/api/v1/question/closemsglist | close question msg list [**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 @@ -17,7 +18,6 @@ Method | HTTP request | Description [**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 -[**PersonalQuestionPageGet**](QuestionApi.md#PersonalQuestionPageGet) | **Get** /personal/question/page | UserList @@ -153,67 +153,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## AnswerApiV1QuestionClosemsglistGet - -> HandlerRespBody AnswerApiV1QuestionClosemsglistGet(ctx).Execute() - -close question msg list - - - -### 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.QuestionApi.AnswerApiV1QuestionClosemsglistGet(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionClosemsglistGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AnswerApiV1QuestionClosemsglistGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionClosemsglistGet`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiAnswerApiV1QuestionClosemsglistGetRequest struct via the builder pattern - - -### Return type - -[**HandlerRespBody**](HandlerRespBody.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) - - ## AnswerApiV1QuestionDelete > HandlerRespBody AnswerApiV1QuestionDelete(ctx).Data(data).Execute() @@ -346,6 +285,138 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## AnswerApiV1QuestionInviteGet + +> string AnswerApiV1QuestionInviteGet(ctx).Id(id).Execute() + +get question invite user info + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + id := "id_example" // string | Question ID (default to "1") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionInviteGet`: string + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionInviteGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionInviteGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string** | Question ID | [default to "1"] + +### Return type + +**string** + +### 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) + + +## AnswerApiV1QuestionInvitePut + +> HandlerRespBody AnswerApiV1QuestionInvitePut(ctx).Data(data).Execute() + +update question invite user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaQuestionUpdateInviteUser("Id_example") // SchemaQuestionUpdateInviteUser | question + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionInvitePut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionInvitePut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionInvitePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaQuestionUpdateInviteUser**](SchemaQuestionUpdateInviteUser.md) | question | + +### 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) + + ## AnswerApiV1QuestionOperationPut > HandlerRespBody AnswerApiV1QuestionOperationPut(ctx).Data(data).Execute() @@ -414,7 +485,7 @@ Name | Type | Description | Notes ## AnswerApiV1QuestionPageGet -> AnswerApiV1QuestionPageGet200Response AnswerApiV1QuestionPageGet(ctx).Data(data).Execute() +> AnswerApiV1QuestionPageGet200Response AnswerApiV1QuestionPageGet(ctx).Page(page).PageSize(pageSize).Order(order).Tag(tag).Username(username).InDays(inDays).Execute() get questions by page @@ -433,11 +504,16 @@ import ( ) func main() { - data := *openapiclient.NewSchemaQuestionPageReq() // SchemaQuestionPageReq | QuestionPageReq + page := int32(56) // int32 | page (optional) + pageSize := int32(56) // int32 | page_size (optional) + order := "order_example" // string | order cond (optional) + tag := "tag_example" // string | tag (optional) + username := "username_example" // string | username (optional) + inDays := int32(56) // int32 | in_days (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionPageGet(context.Background()).Data(data).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, "Full HTTP response: %v\n", r) @@ -458,7 +534,12 @@ Other parameters are passed through a pointer to a apiAnswerApiV1QuestionPageGet Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**SchemaQuestionPageReq**](SchemaQuestionPageReq.md) | QuestionPageReq | + **page** | **int32** | page | + **pageSize** | **int32** | page_size | + **order** | **string** | order cond | + **tag** | **string** | tag | + **username** | **string** | username | + **inDays** | **int32** | in_days | ### Return type @@ -470,7 +551,7 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -873,75 +954,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -## PersonalQuestionPageGet - -> HandlerRespBody PersonalQuestionPageGet(ctx).Username(username).Order(order).Page(page).Pagesize(pagesize).Execute() - -UserList - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - username := "username_example" // string | username (default to "string") - order := "order_example" // string | order - page := "page_example" // string | page (default to "0") - pagesize := "pagesize_example" // string | pagesize (default to "20") - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.QuestionApi.PersonalQuestionPageGet(context.Background()).Username(username).Order(order).Page(page).Pagesize(pagesize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.PersonalQuestionPageGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PersonalQuestionPageGet`: HandlerRespBody - fmt.Fprintf(os.Stdout, "Response from `QuestionApi.PersonalQuestionPageGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiPersonalQuestionPageGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **string** | username | [default to "string"] - **order** | **string** | order | - **page** | **string** | page | [default to "0"] - **pagesize** | **string** | pagesize | [default to "20"] - -### Return type - -[**HandlerRespBody**](HandlerRespBody.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/RankApi.md b/docs/RankApi.md index 32027ad..97000f4 100644 --- a/docs/RankApi.md +++ b/docs/RankApi.md @@ -1,6 +1,6 @@ # \RankApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/docs/ReasonApi.md b/docs/ReasonApi.md index e08bc41..c5ac41b 100644 --- a/docs/ReasonApi.md +++ b/docs/ReasonApi.md @@ -1,6 +1,6 @@ # \ReasonApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/docs/ReportApi.md b/docs/ReportApi.md index 536ffbe..2a2d6de 100644 --- a/docs/ReportApi.md +++ b/docs/ReportApi.md @@ -1,11 +1,10 @@ # \ReportApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**AnswerApiV1ReportPost**](ReportApi.md#AnswerApiV1ReportPost) | **Post** /answer/api/v1/report | add report -[**AnswerApiV1ReportTypeListGet**](ReportApi.md#AnswerApiV1ReportTypeListGet) | **Get** /answer/api/v1/report/type/list | get report type list @@ -74,69 +73,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -## AnswerApiV1ReportTypeListGet - -> AnswerApiV1ReportTypeListGet200Response AnswerApiV1ReportTypeListGet(ctx).Source(source).Execute() - -get report type list - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" -) - -func main() { - source := "source_example" // string | report source - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ReportApi.AnswerApiV1ReportTypeListGet(context.Background()).Source(source).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ReportApi.AnswerApiV1ReportTypeListGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AnswerApiV1ReportTypeListGet`: AnswerApiV1ReportTypeListGet200Response - fmt.Fprintf(os.Stdout, "Response from `ReportApi.AnswerApiV1ReportTypeListGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiAnswerApiV1ReportTypeListGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **source** | **string** | report source | - -### Return type - -[**AnswerApiV1ReportTypeListGet200Response**](AnswerApiV1ReportTypeListGet200Response.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) - diff --git a/docs/RevisionApi.md b/docs/RevisionApi.md index 39692dd..050628f 100644 --- a/docs/RevisionApi.md +++ b/docs/RevisionApi.md @@ -1,6 +1,6 @@ # \RevisionApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/docs/SchemaAddCommentReq.md b/docs/SchemaAddCommentReq.md index 86458b3..76297ba 100644 --- a/docs/SchemaAddCommentReq.md +++ b/docs/SchemaAddCommentReq.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **MentionUsernameList** | Pointer to **[]string** | @ user id list | [optional] **ObjectId** | **string** | object id | **OriginalText** | **string** | original comment content | @@ -28,6 +30,56 @@ NewSchemaAddCommentReqWithDefaults instantiates a new SchemaAddCommentReq 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 *SchemaAddCommentReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaAddCommentReq) 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 *SchemaAddCommentReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaAddCommentReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaAddCommentReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaAddCommentReq) 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 *SchemaAddCommentReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaAddCommentReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetMentionUsernameList `func (o *SchemaAddCommentReq) GetMentionUsernameList() []string` diff --git a/docs/SchemaAddReportReq.md b/docs/SchemaAddReportReq.md index adf273f..f610e99 100644 --- a/docs/SchemaAddReportReq.md +++ b/docs/SchemaAddReportReq.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **Content** | Pointer to **string** | report content | [optional] **ObjectId** | **string** | object id | **ReportType** | **int32** | report type | @@ -27,6 +29,56 @@ NewSchemaAddReportReqWithDefaults instantiates a new SchemaAddReportReq 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 *SchemaAddReportReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaAddReportReq) 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 *SchemaAddReportReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaAddReportReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaAddReportReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaAddReportReq) 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 *SchemaAddReportReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaAddReportReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetContent `func (o *SchemaAddReportReq) GetContent() string` diff --git a/docs/SchemaAnswerAddReq.md b/docs/SchemaAnswerAddReq.md index e6c584b..e82e2f4 100644 --- a/docs/SchemaAnswerAddReq.md +++ b/docs/SchemaAnswerAddReq.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **Content** | **string** | | **QuestionId** | Pointer to **string** | | [optional] @@ -26,6 +28,56 @@ NewSchemaAnswerAddReqWithDefaults instantiates a new SchemaAnswerAddReq 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 *SchemaAnswerAddReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaAnswerAddReq) 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 *SchemaAnswerAddReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaAnswerAddReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaAnswerAddReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaAnswerAddReq) 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 *SchemaAnswerAddReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaAnswerAddReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetContent `func (o *SchemaAnswerAddReq) GetContent() string` diff --git a/docs/SchemaAnswerUpdateReq.md b/docs/SchemaAnswerUpdateReq.md index 754872b..9c90a13 100644 --- a/docs/SchemaAnswerUpdateReq.md +++ b/docs/SchemaAnswerUpdateReq.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **Content** | **string** | | **EditSummary** | Pointer to **string** | | [optional] **Id** | Pointer to **string** | | [optional] @@ -29,6 +31,56 @@ NewSchemaAnswerUpdateReqWithDefaults instantiates a new SchemaAnswerUpdateReq ob 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 *SchemaAnswerUpdateReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaAnswerUpdateReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaAnswerUpdateReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaAnswerUpdateReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetContent `func (o *SchemaAnswerUpdateReq) GetContent() string` diff --git a/docs/SchemaConfigField.md b/docs/SchemaConfigField.md new file mode 100644 index 0000000..c4dc07d --- /dev/null +++ b/docs/SchemaConfigField.md @@ -0,0 +1,238 @@ +# SchemaConfigField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Options** | Pointer to [**[]SchemaConfigFieldOption**](SchemaConfigFieldOption.md) | | [optional] +**Required** | Pointer to **bool** | | [optional] +**Title** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] +**UiOptions** | Pointer to [**SchemaConfigFieldUIOptions**](SchemaConfigFieldUIOptions.md) | | [optional] +**Value** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewSchemaConfigField + +`func NewSchemaConfigField() *SchemaConfigField` + +NewSchemaConfigField instantiates a new SchemaConfigField 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 + +### NewSchemaConfigFieldWithDefaults + +`func NewSchemaConfigFieldWithDefaults() *SchemaConfigField` + +NewSchemaConfigFieldWithDefaults instantiates a new SchemaConfigField 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 + +### GetDescription + +`func (o *SchemaConfigField) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SchemaConfigField) 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 *SchemaConfigField) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SchemaConfigField) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *SchemaConfigField) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaConfigField) 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 *SchemaConfigField) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SchemaConfigField) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOptions + +`func (o *SchemaConfigField) GetOptions() []SchemaConfigFieldOption` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *SchemaConfigField) GetOptionsOk() (*[]SchemaConfigFieldOption, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *SchemaConfigField) SetOptions(v []SchemaConfigFieldOption)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *SchemaConfigField) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetRequired + +`func (o *SchemaConfigField) GetRequired() bool` + +GetRequired returns the Required field if non-nil, zero value otherwise. + +### GetRequiredOk + +`func (o *SchemaConfigField) GetRequiredOk() (*bool, bool)` + +GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequired + +`func (o *SchemaConfigField) SetRequired(v bool)` + +SetRequired sets Required field to given value. + +### HasRequired + +`func (o *SchemaConfigField) HasRequired() bool` + +HasRequired returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaConfigField) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaConfigField) 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 *SchemaConfigField) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaConfigField) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetType + +`func (o *SchemaConfigField) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SchemaConfigField) 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 *SchemaConfigField) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SchemaConfigField) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUiOptions + +`func (o *SchemaConfigField) GetUiOptions() SchemaConfigFieldUIOptions` + +GetUiOptions returns the UiOptions field if non-nil, zero value otherwise. + +### GetUiOptionsOk + +`func (o *SchemaConfigField) GetUiOptionsOk() (*SchemaConfigFieldUIOptions, bool)` + +GetUiOptionsOk returns a tuple with the UiOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUiOptions + +`func (o *SchemaConfigField) SetUiOptions(v SchemaConfigFieldUIOptions)` + +SetUiOptions sets UiOptions field to given value. + +### HasUiOptions + +`func (o *SchemaConfigField) HasUiOptions() bool` + +HasUiOptions returns a boolean if a field has been set. + +### GetValue + +`func (o *SchemaConfigField) GetValue() map[string]interface{}` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SchemaConfigField) GetValueOk() (*map[string]interface{}, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SchemaConfigField) SetValue(v map[string]interface{})` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *SchemaConfigField) HasValue() bool` + +HasValue 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/SchemaConfigFieldOption.md b/docs/SchemaConfigFieldOption.md new file mode 100644 index 0000000..945f7cd --- /dev/null +++ b/docs/SchemaConfigFieldOption.md @@ -0,0 +1,82 @@ +# SchemaConfigFieldOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Label** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaConfigFieldOption + +`func NewSchemaConfigFieldOption() *SchemaConfigFieldOption` + +NewSchemaConfigFieldOption instantiates a new SchemaConfigFieldOption 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 + +### NewSchemaConfigFieldOptionWithDefaults + +`func NewSchemaConfigFieldOptionWithDefaults() *SchemaConfigFieldOption` + +NewSchemaConfigFieldOptionWithDefaults instantiates a new SchemaConfigFieldOption 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 + +### GetLabel + +`func (o *SchemaConfigFieldOption) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *SchemaConfigFieldOption) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *SchemaConfigFieldOption) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *SchemaConfigFieldOption) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetValue + +`func (o *SchemaConfigFieldOption) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SchemaConfigFieldOption) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *SchemaConfigFieldOption) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *SchemaConfigFieldOption) HasValue() bool` + +HasValue 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/SchemaConfigFieldUIOptions.md b/docs/SchemaConfigFieldUIOptions.md new file mode 100644 index 0000000..1cfbba0 --- /dev/null +++ b/docs/SchemaConfigFieldUIOptions.md @@ -0,0 +1,212 @@ +# SchemaConfigFieldUIOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | Pointer to [**SchemaUIOptionAction**](SchemaUIOptionAction.md) | | [optional] +**InputType** | Pointer to **string** | | [optional] +**Label** | Pointer to **string** | | [optional] +**Placeholder** | Pointer to **string** | | [optional] +**Rows** | Pointer to **string** | | [optional] +**Text** | Pointer to **string** | | [optional] +**Variant** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaConfigFieldUIOptions + +`func NewSchemaConfigFieldUIOptions() *SchemaConfigFieldUIOptions` + +NewSchemaConfigFieldUIOptions instantiates a new SchemaConfigFieldUIOptions 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 + +### NewSchemaConfigFieldUIOptionsWithDefaults + +`func NewSchemaConfigFieldUIOptionsWithDefaults() *SchemaConfigFieldUIOptions` + +NewSchemaConfigFieldUIOptionsWithDefaults instantiates a new SchemaConfigFieldUIOptions 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 + +### GetAction + +`func (o *SchemaConfigFieldUIOptions) GetAction() SchemaUIOptionAction` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *SchemaConfigFieldUIOptions) GetActionOk() (*SchemaUIOptionAction, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *SchemaConfigFieldUIOptions) SetAction(v SchemaUIOptionAction)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *SchemaConfigFieldUIOptions) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetInputType + +`func (o *SchemaConfigFieldUIOptions) GetInputType() string` + +GetInputType returns the InputType field if non-nil, zero value otherwise. + +### GetInputTypeOk + +`func (o *SchemaConfigFieldUIOptions) GetInputTypeOk() (*string, bool)` + +GetInputTypeOk returns a tuple with the InputType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInputType + +`func (o *SchemaConfigFieldUIOptions) SetInputType(v string)` + +SetInputType sets InputType field to given value. + +### HasInputType + +`func (o *SchemaConfigFieldUIOptions) HasInputType() bool` + +HasInputType returns a boolean if a field has been set. + +### GetLabel + +`func (o *SchemaConfigFieldUIOptions) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *SchemaConfigFieldUIOptions) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *SchemaConfigFieldUIOptions) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *SchemaConfigFieldUIOptions) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetPlaceholder + +`func (o *SchemaConfigFieldUIOptions) GetPlaceholder() string` + +GetPlaceholder returns the Placeholder field if non-nil, zero value otherwise. + +### GetPlaceholderOk + +`func (o *SchemaConfigFieldUIOptions) GetPlaceholderOk() (*string, bool)` + +GetPlaceholderOk returns a tuple with the Placeholder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlaceholder + +`func (o *SchemaConfigFieldUIOptions) SetPlaceholder(v string)` + +SetPlaceholder sets Placeholder field to given value. + +### HasPlaceholder + +`func (o *SchemaConfigFieldUIOptions) HasPlaceholder() bool` + +HasPlaceholder returns a boolean if a field has been set. + +### GetRows + +`func (o *SchemaConfigFieldUIOptions) GetRows() string` + +GetRows returns the Rows field if non-nil, zero value otherwise. + +### GetRowsOk + +`func (o *SchemaConfigFieldUIOptions) GetRowsOk() (*string, bool)` + +GetRowsOk returns a tuple with the Rows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRows + +`func (o *SchemaConfigFieldUIOptions) SetRows(v string)` + +SetRows sets Rows field to given value. + +### HasRows + +`func (o *SchemaConfigFieldUIOptions) HasRows() bool` + +HasRows returns a boolean if a field has been set. + +### GetText + +`func (o *SchemaConfigFieldUIOptions) GetText() string` + +GetText returns the Text field if non-nil, zero value otherwise. + +### GetTextOk + +`func (o *SchemaConfigFieldUIOptions) GetTextOk() (*string, bool)` + +GetTextOk returns a tuple with the Text field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetText + +`func (o *SchemaConfigFieldUIOptions) SetText(v string)` + +SetText sets Text field to given value. + +### HasText + +`func (o *SchemaConfigFieldUIOptions) HasText() bool` + +HasText returns a boolean if a field has been set. + +### GetVariant + +`func (o *SchemaConfigFieldUIOptions) GetVariant() string` + +GetVariant returns the Variant field if non-nil, zero value otherwise. + +### GetVariantOk + +`func (o *SchemaConfigFieldUIOptions) GetVariantOk() (*string, bool)` + +GetVariantOk returns a tuple with the Variant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVariant + +`func (o *SchemaConfigFieldUIOptions) SetVariant(v string)` + +SetVariant sets Variant field to given value. + +### HasVariant + +`func (o *SchemaConfigFieldUIOptions) HasVariant() bool` + +HasVariant 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/SchemaConnectorInfoResp.md b/docs/SchemaConnectorInfoResp.md new file mode 100644 index 0000000..fb969b0 --- /dev/null +++ b/docs/SchemaConnectorInfoResp.md @@ -0,0 +1,108 @@ +# SchemaConnectorInfoResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Icon** | Pointer to **string** | | [optional] +**Link** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaConnectorInfoResp + +`func NewSchemaConnectorInfoResp() *SchemaConnectorInfoResp` + +NewSchemaConnectorInfoResp instantiates a new SchemaConnectorInfoResp 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 + +### NewSchemaConnectorInfoRespWithDefaults + +`func NewSchemaConnectorInfoRespWithDefaults() *SchemaConnectorInfoResp` + +NewSchemaConnectorInfoRespWithDefaults instantiates a new SchemaConnectorInfoResp 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 + +### GetIcon + +`func (o *SchemaConnectorInfoResp) GetIcon() string` + +GetIcon returns the Icon field if non-nil, zero value otherwise. + +### GetIconOk + +`func (o *SchemaConnectorInfoResp) GetIconOk() (*string, bool)` + +GetIconOk returns a tuple with the Icon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIcon + +`func (o *SchemaConnectorInfoResp) SetIcon(v string)` + +SetIcon sets Icon field to given value. + +### HasIcon + +`func (o *SchemaConnectorInfoResp) HasIcon() bool` + +HasIcon returns a boolean if a field has been set. + +### GetLink + +`func (o *SchemaConnectorInfoResp) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *SchemaConnectorInfoResp) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *SchemaConnectorInfoResp) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *SchemaConnectorInfoResp) HasLink() bool` + +HasLink returns a boolean if a field has been set. + +### GetName + +`func (o *SchemaConnectorInfoResp) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SchemaConnectorInfoResp) HasName() bool` + +HasName 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/SchemaConnectorUserInfoResp.md b/docs/SchemaConnectorUserInfoResp.md new file mode 100644 index 0000000..aeb247e --- /dev/null +++ b/docs/SchemaConnectorUserInfoResp.md @@ -0,0 +1,160 @@ +# SchemaConnectorUserInfoResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Binding** | Pointer to **bool** | | [optional] +**ExternalId** | Pointer to **string** | | [optional] +**Icon** | Pointer to **string** | | [optional] +**Link** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaConnectorUserInfoResp + +`func NewSchemaConnectorUserInfoResp() *SchemaConnectorUserInfoResp` + +NewSchemaConnectorUserInfoResp instantiates a new SchemaConnectorUserInfoResp 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 + +### NewSchemaConnectorUserInfoRespWithDefaults + +`func NewSchemaConnectorUserInfoRespWithDefaults() *SchemaConnectorUserInfoResp` + +NewSchemaConnectorUserInfoRespWithDefaults instantiates a new SchemaConnectorUserInfoResp 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 + +### GetBinding + +`func (o *SchemaConnectorUserInfoResp) GetBinding() bool` + +GetBinding returns the Binding field if non-nil, zero value otherwise. + +### GetBindingOk + +`func (o *SchemaConnectorUserInfoResp) GetBindingOk() (*bool, bool)` + +GetBindingOk returns a tuple with the Binding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBinding + +`func (o *SchemaConnectorUserInfoResp) SetBinding(v bool)` + +SetBinding sets Binding field to given value. + +### HasBinding + +`func (o *SchemaConnectorUserInfoResp) HasBinding() bool` + +HasBinding returns a boolean if a field has been set. + +### GetExternalId + +`func (o *SchemaConnectorUserInfoResp) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *SchemaConnectorUserInfoResp) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *SchemaConnectorUserInfoResp) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + +### HasExternalId + +`func (o *SchemaConnectorUserInfoResp) HasExternalId() bool` + +HasExternalId returns a boolean if a field has been set. + +### GetIcon + +`func (o *SchemaConnectorUserInfoResp) GetIcon() string` + +GetIcon returns the Icon field if non-nil, zero value otherwise. + +### GetIconOk + +`func (o *SchemaConnectorUserInfoResp) GetIconOk() (*string, bool)` + +GetIconOk returns a tuple with the Icon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIcon + +`func (o *SchemaConnectorUserInfoResp) SetIcon(v string)` + +SetIcon sets Icon field to given value. + +### HasIcon + +`func (o *SchemaConnectorUserInfoResp) HasIcon() bool` + +HasIcon returns a boolean if a field has been set. + +### GetLink + +`func (o *SchemaConnectorUserInfoResp) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *SchemaConnectorUserInfoResp) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *SchemaConnectorUserInfoResp) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *SchemaConnectorUserInfoResp) HasLink() bool` + +HasLink returns a boolean if a field has been set. + +### GetName + +`func (o *SchemaConnectorUserInfoResp) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaConnectorUserInfoResp) 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 *SchemaConnectorUserInfoResp) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SchemaConnectorUserInfoResp) HasName() bool` + +HasName 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/SchemaExternalLoginBindingUserSendEmailReq.md b/docs/SchemaExternalLoginBindingUserSendEmailReq.md new file mode 100644 index 0000000..64ae6ff --- /dev/null +++ b/docs/SchemaExternalLoginBindingUserSendEmailReq.md @@ -0,0 +1,98 @@ +# SchemaExternalLoginBindingUserSendEmailReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BindingKey** | **string** | | +**Email** | **string** | | +**Must** | Pointer to **bool** | If must is true, whatever email if exists, try to bind user. If must is false, when email exist, will only be prompted with a warning. | [optional] + +## Methods + +### NewSchemaExternalLoginBindingUserSendEmailReq + +`func NewSchemaExternalLoginBindingUserSendEmailReq(bindingKey string, email string, ) *SchemaExternalLoginBindingUserSendEmailReq` + +NewSchemaExternalLoginBindingUserSendEmailReq instantiates a new SchemaExternalLoginBindingUserSendEmailReq 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 + +### NewSchemaExternalLoginBindingUserSendEmailReqWithDefaults + +`func NewSchemaExternalLoginBindingUserSendEmailReqWithDefaults() *SchemaExternalLoginBindingUserSendEmailReq` + +NewSchemaExternalLoginBindingUserSendEmailReqWithDefaults instantiates a new SchemaExternalLoginBindingUserSendEmailReq 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 + +### GetBindingKey + +`func (o *SchemaExternalLoginBindingUserSendEmailReq) GetBindingKey() string` + +GetBindingKey returns the BindingKey field if non-nil, zero value otherwise. + +### GetBindingKeyOk + +`func (o *SchemaExternalLoginBindingUserSendEmailReq) GetBindingKeyOk() (*string, bool)` + +GetBindingKeyOk returns a tuple with the BindingKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBindingKey + +`func (o *SchemaExternalLoginBindingUserSendEmailReq) SetBindingKey(v string)` + +SetBindingKey sets BindingKey field to given value. + + +### GetEmail + +`func (o *SchemaExternalLoginBindingUserSendEmailReq) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *SchemaExternalLoginBindingUserSendEmailReq) 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 *SchemaExternalLoginBindingUserSendEmailReq) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetMust + +`func (o *SchemaExternalLoginBindingUserSendEmailReq) GetMust() bool` + +GetMust returns the Must field if non-nil, zero value otherwise. + +### GetMustOk + +`func (o *SchemaExternalLoginBindingUserSendEmailReq) GetMustOk() (*bool, bool)` + +GetMustOk returns a tuple with the Must field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMust + +`func (o *SchemaExternalLoginBindingUserSendEmailReq) SetMust(v bool)` + +SetMust sets Must field to given value. + +### HasMust + +`func (o *SchemaExternalLoginBindingUserSendEmailReq) HasMust() bool` + +HasMust 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/SchemaExternalLoginBindingUserSendEmailResp.md b/docs/SchemaExternalLoginBindingUserSendEmailResp.md new file mode 100644 index 0000000..a7e93f3 --- /dev/null +++ b/docs/SchemaExternalLoginBindingUserSendEmailResp.md @@ -0,0 +1,82 @@ +# SchemaExternalLoginBindingUserSendEmailResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessToken** | Pointer to **string** | | [optional] +**EmailExistAndMustBeConfirmed** | Pointer to **bool** | | [optional] + +## Methods + +### NewSchemaExternalLoginBindingUserSendEmailResp + +`func NewSchemaExternalLoginBindingUserSendEmailResp() *SchemaExternalLoginBindingUserSendEmailResp` + +NewSchemaExternalLoginBindingUserSendEmailResp instantiates a new SchemaExternalLoginBindingUserSendEmailResp 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 + +### NewSchemaExternalLoginBindingUserSendEmailRespWithDefaults + +`func NewSchemaExternalLoginBindingUserSendEmailRespWithDefaults() *SchemaExternalLoginBindingUserSendEmailResp` + +NewSchemaExternalLoginBindingUserSendEmailRespWithDefaults instantiates a new SchemaExternalLoginBindingUserSendEmailResp 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 *SchemaExternalLoginBindingUserSendEmailResp) GetAccessToken() string` + +GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. + +### GetAccessTokenOk + +`func (o *SchemaExternalLoginBindingUserSendEmailResp) 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 *SchemaExternalLoginBindingUserSendEmailResp) SetAccessToken(v string)` + +SetAccessToken sets AccessToken field to given value. + +### HasAccessToken + +`func (o *SchemaExternalLoginBindingUserSendEmailResp) HasAccessToken() bool` + +HasAccessToken returns a boolean if a field has been set. + +### GetEmailExistAndMustBeConfirmed + +`func (o *SchemaExternalLoginBindingUserSendEmailResp) GetEmailExistAndMustBeConfirmed() bool` + +GetEmailExistAndMustBeConfirmed returns the EmailExistAndMustBeConfirmed field if non-nil, zero value otherwise. + +### GetEmailExistAndMustBeConfirmedOk + +`func (o *SchemaExternalLoginBindingUserSendEmailResp) GetEmailExistAndMustBeConfirmedOk() (*bool, bool)` + +GetEmailExistAndMustBeConfirmedOk returns a tuple with the EmailExistAndMustBeConfirmed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailExistAndMustBeConfirmed + +`func (o *SchemaExternalLoginBindingUserSendEmailResp) SetEmailExistAndMustBeConfirmed(v bool)` + +SetEmailExistAndMustBeConfirmed sets EmailExistAndMustBeConfirmed field to given value. + +### HasEmailExistAndMustBeConfirmed + +`func (o *SchemaExternalLoginBindingUserSendEmailResp) HasEmailExistAndMustBeConfirmed() bool` + +HasEmailExistAndMustBeConfirmed 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/SchemaExternalLoginUnbindingReq.md b/docs/SchemaExternalLoginUnbindingReq.md new file mode 100644 index 0000000..51aa8c9 --- /dev/null +++ b/docs/SchemaExternalLoginUnbindingReq.md @@ -0,0 +1,51 @@ +# SchemaExternalLoginUnbindingReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExternalId** | **string** | | + +## Methods + +### NewSchemaExternalLoginUnbindingReq + +`func NewSchemaExternalLoginUnbindingReq(externalId string, ) *SchemaExternalLoginUnbindingReq` + +NewSchemaExternalLoginUnbindingReq instantiates a new SchemaExternalLoginUnbindingReq 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 + +### NewSchemaExternalLoginUnbindingReqWithDefaults + +`func NewSchemaExternalLoginUnbindingReqWithDefaults() *SchemaExternalLoginUnbindingReq` + +NewSchemaExternalLoginUnbindingReqWithDefaults instantiates a new SchemaExternalLoginUnbindingReq 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 + +### GetExternalId + +`func (o *SchemaExternalLoginUnbindingReq) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *SchemaExternalLoginUnbindingReq) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *SchemaExternalLoginUnbindingReq) SetExternalId(v string)` + +SetExternalId sets ExternalId 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/SchemaGetCurrentLoginUserInfoResp.md b/docs/SchemaGetCurrentLoginUserInfoResp.md new file mode 100644 index 0000000..f15dff9 --- /dev/null +++ b/docs/SchemaGetCurrentLoginUserInfoResp.md @@ -0,0 +1,680 @@ +# SchemaGetCurrentLoginUserInfoResp + +## 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] +**HavePassword** | Pointer to **bool** | | [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 + +### NewSchemaGetCurrentLoginUserInfoResp + +`func NewSchemaGetCurrentLoginUserInfoResp() *SchemaGetCurrentLoginUserInfoResp` + +NewSchemaGetCurrentLoginUserInfoResp instantiates a new SchemaGetCurrentLoginUserInfoResp 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 + +### NewSchemaGetCurrentLoginUserInfoRespWithDefaults + +`func NewSchemaGetCurrentLoginUserInfoRespWithDefaults() *SchemaGetCurrentLoginUserInfoResp` + +NewSchemaGetCurrentLoginUserInfoRespWithDefaults instantiates a new SchemaGetCurrentLoginUserInfoResp 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 *SchemaGetCurrentLoginUserInfoResp) GetAccessToken() string` + +GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. + +### GetAccessTokenOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetAccessToken(v string)` + +SetAccessToken sets AccessToken field to given value. + +### HasAccessToken + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasAccessToken() bool` + +HasAccessToken returns a boolean if a field has been set. + +### GetAnswerCount + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetAnswerCount() int32` + +GetAnswerCount returns the AnswerCount field if non-nil, zero value otherwise. + +### GetAnswerCountOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetAnswerCount(v int32)` + +SetAnswerCount sets AnswerCount field to given value. + +### HasAnswerCount + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasAnswerCount() bool` + +HasAnswerCount returns a boolean if a field has been set. + +### GetAuthorityGroup + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetAuthorityGroup() int32` + +GetAuthorityGroup returns the AuthorityGroup field if non-nil, zero value otherwise. + +### GetAuthorityGroupOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetAuthorityGroup(v int32)` + +SetAuthorityGroup sets AuthorityGroup field to given value. + +### HasAuthorityGroup + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasAuthorityGroup() bool` + +HasAuthorityGroup returns a boolean if a field has been set. + +### GetAvatar + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetAvatar() SchemaAvatarInfo` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetAvatar(v SchemaAvatarInfo)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + +### GetBio + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetBio() string` + +GetBio returns the Bio field if non-nil, zero value otherwise. + +### GetBioOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetBio(v string)` + +SetBio sets Bio field to given value. + +### HasBio + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasBio() bool` + +HasBio returns a boolean if a field has been set. + +### GetBioHtml + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetBioHtml() string` + +GetBioHtml returns the BioHtml field if non-nil, zero value otherwise. + +### GetBioHtmlOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetBioHtml(v string)` + +SetBioHtml sets BioHtml field to given value. + +### HasBioHtml + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasBioHtml() bool` + +HasBioHtml returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetEMail + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetEMail() string` + +GetEMail returns the EMail field if non-nil, zero value otherwise. + +### GetEMailOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetEMail(v string)` + +SetEMail sets EMail field to given value. + +### HasEMail + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasEMail() bool` + +HasEMail returns a boolean if a field has been set. + +### GetFollowCount + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetFollowCount() int32` + +GetFollowCount returns the FollowCount field if non-nil, zero value otherwise. + +### GetFollowCountOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetFollowCount(v int32)` + +SetFollowCount sets FollowCount field to given value. + +### HasFollowCount + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasFollowCount() bool` + +HasFollowCount returns a boolean if a field has been set. + +### GetHavePassword + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetHavePassword() bool` + +GetHavePassword returns the HavePassword field if non-nil, zero value otherwise. + +### GetHavePasswordOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetHavePasswordOk() (*bool, bool)` + +GetHavePasswordOk returns a tuple with the HavePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHavePassword + +`func (o *SchemaGetCurrentLoginUserInfoResp) SetHavePassword(v bool)` + +SetHavePassword sets HavePassword field to given value. + +### HasHavePassword + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasHavePassword() bool` + +HasHavePassword returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIpInfo + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetIpInfo() string` + +GetIpInfo returns the IpInfo field if non-nil, zero value otherwise. + +### GetIpInfoOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetIpInfo(v string)` + +SetIpInfo sets IpInfo field to given value. + +### HasIpInfo + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasIpInfo() bool` + +HasIpInfo returns a boolean if a field has been set. + +### GetLanguage + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetLanguage() string` + +GetLanguage returns the Language field if non-nil, zero value otherwise. + +### GetLanguageOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetLanguage(v string)` + +SetLanguage sets Language field to given value. + +### HasLanguage + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasLanguage() bool` + +HasLanguage returns a boolean if a field has been set. + +### GetLastLoginDate + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetLastLoginDate() int32` + +GetLastLoginDate returns the LastLoginDate field if non-nil, zero value otherwise. + +### GetLastLoginDateOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetLastLoginDate(v int32)` + +SetLastLoginDate sets LastLoginDate field to given value. + +### HasLastLoginDate + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasLastLoginDate() bool` + +HasLastLoginDate returns a boolean if a field has been set. + +### GetLocation + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### GetMailStatus + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetMailStatus() int32` + +GetMailStatus returns the MailStatus field if non-nil, zero value otherwise. + +### GetMailStatusOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetMailStatus(v int32)` + +SetMailStatus sets MailStatus field to given value. + +### HasMailStatus + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasMailStatus() bool` + +HasMailStatus returns a boolean if a field has been set. + +### GetMobile + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetMobile() string` + +GetMobile returns the Mobile field if non-nil, zero value otherwise. + +### GetMobileOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetMobile(v string)` + +SetMobile sets Mobile field to given value. + +### HasMobile + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasMobile() bool` + +HasMobile returns a boolean if a field has been set. + +### GetNoticeStatus + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetNoticeStatus() int32` + +GetNoticeStatus returns the NoticeStatus field if non-nil, zero value otherwise. + +### GetNoticeStatusOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetNoticeStatus(v int32)` + +SetNoticeStatus sets NoticeStatus field to given value. + +### HasNoticeStatus + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasNoticeStatus() bool` + +HasNoticeStatus returns a boolean if a field has been set. + +### GetQuestionCount + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetQuestionCount() int32` + +GetQuestionCount returns the QuestionCount field if non-nil, zero value otherwise. + +### GetQuestionCountOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetQuestionCount(v int32)` + +SetQuestionCount sets QuestionCount field to given value. + +### HasQuestionCount + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasQuestionCount() bool` + +HasQuestionCount returns a boolean if a field has been set. + +### GetRank + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetRank() int32` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetRank(v int32)` + +SetRank sets Rank field to given value. + +### HasRank + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasRank() bool` + +HasRank returns a boolean if a field has been set. + +### GetRoleId + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetRoleId() int32` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetRoleId(v int32)` + +SetRoleId sets RoleId field to given value. + +### HasRoleId + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasRoleId() bool` + +HasRoleId returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaGetCurrentLoginUserInfoResp) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetWebsite + +`func (o *SchemaGetCurrentLoginUserInfoResp) GetWebsite() string` + +GetWebsite returns the Website field if non-nil, zero value otherwise. + +### GetWebsiteOk + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetWebsite(v string)` + +SetWebsite sets Website field to given value. + +### HasWebsite + +`func (o *SchemaGetCurrentLoginUserInfoResp) 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/SchemaGetPluginConfigResp.md b/docs/SchemaGetPluginConfigResp.md new file mode 100644 index 0000000..7cb3fc9 --- /dev/null +++ b/docs/SchemaGetPluginConfigResp.md @@ -0,0 +1,160 @@ +# SchemaGetPluginConfigResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigFields** | Pointer to [**[]SchemaConfigField**](SchemaConfigField.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**SlugName** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaGetPluginConfigResp + +`func NewSchemaGetPluginConfigResp() *SchemaGetPluginConfigResp` + +NewSchemaGetPluginConfigResp instantiates a new SchemaGetPluginConfigResp 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 + +### NewSchemaGetPluginConfigRespWithDefaults + +`func NewSchemaGetPluginConfigRespWithDefaults() *SchemaGetPluginConfigResp` + +NewSchemaGetPluginConfigRespWithDefaults instantiates a new SchemaGetPluginConfigResp 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 + +### GetConfigFields + +`func (o *SchemaGetPluginConfigResp) GetConfigFields() []SchemaConfigField` + +GetConfigFields returns the ConfigFields field if non-nil, zero value otherwise. + +### GetConfigFieldsOk + +`func (o *SchemaGetPluginConfigResp) GetConfigFieldsOk() (*[]SchemaConfigField, bool)` + +GetConfigFieldsOk returns a tuple with the ConfigFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigFields + +`func (o *SchemaGetPluginConfigResp) SetConfigFields(v []SchemaConfigField)` + +SetConfigFields sets ConfigFields field to given value. + +### HasConfigFields + +`func (o *SchemaGetPluginConfigResp) HasConfigFields() bool` + +HasConfigFields returns a boolean if a field has been set. + +### GetDescription + +`func (o *SchemaGetPluginConfigResp) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SchemaGetPluginConfigResp) 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 *SchemaGetPluginConfigResp) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SchemaGetPluginConfigResp) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *SchemaGetPluginConfigResp) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaGetPluginConfigResp) 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 *SchemaGetPluginConfigResp) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SchemaGetPluginConfigResp) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlugName + +`func (o *SchemaGetPluginConfigResp) GetSlugName() string` + +GetSlugName returns the SlugName field if non-nil, zero value otherwise. + +### GetSlugNameOk + +`func (o *SchemaGetPluginConfigResp) GetSlugNameOk() (*string, bool)` + +GetSlugNameOk returns a tuple with the SlugName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlugName + +`func (o *SchemaGetPluginConfigResp) SetSlugName(v string)` + +SetSlugName sets SlugName field to given value. + +### HasSlugName + +`func (o *SchemaGetPluginConfigResp) HasSlugName() bool` + +HasSlugName returns a boolean if a field has been set. + +### GetVersion + +`func (o *SchemaGetPluginConfigResp) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SchemaGetPluginConfigResp) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *SchemaGetPluginConfigResp) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *SchemaGetPluginConfigResp) HasVersion() bool` + +HasVersion 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/SchemaGetPluginListResp.md b/docs/SchemaGetPluginListResp.md new file mode 100644 index 0000000..5c4d4d6 --- /dev/null +++ b/docs/SchemaGetPluginListResp.md @@ -0,0 +1,212 @@ +# SchemaGetPluginListResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Enabled** | Pointer to **bool** | | [optional] +**HaveConfig** | Pointer to **bool** | | [optional] +**Link** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**SlugName** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaGetPluginListResp + +`func NewSchemaGetPluginListResp() *SchemaGetPluginListResp` + +NewSchemaGetPluginListResp instantiates a new SchemaGetPluginListResp 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 + +### NewSchemaGetPluginListRespWithDefaults + +`func NewSchemaGetPluginListRespWithDefaults() *SchemaGetPluginListResp` + +NewSchemaGetPluginListRespWithDefaults instantiates a new SchemaGetPluginListResp 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 + +### GetDescription + +`func (o *SchemaGetPluginListResp) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SchemaGetPluginListResp) 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 *SchemaGetPluginListResp) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SchemaGetPluginListResp) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetEnabled + +`func (o *SchemaGetPluginListResp) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SchemaGetPluginListResp) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SchemaGetPluginListResp) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SchemaGetPluginListResp) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetHaveConfig + +`func (o *SchemaGetPluginListResp) GetHaveConfig() bool` + +GetHaveConfig returns the HaveConfig field if non-nil, zero value otherwise. + +### GetHaveConfigOk + +`func (o *SchemaGetPluginListResp) GetHaveConfigOk() (*bool, bool)` + +GetHaveConfigOk returns a tuple with the HaveConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHaveConfig + +`func (o *SchemaGetPluginListResp) SetHaveConfig(v bool)` + +SetHaveConfig sets HaveConfig field to given value. + +### HasHaveConfig + +`func (o *SchemaGetPluginListResp) HasHaveConfig() bool` + +HasHaveConfig returns a boolean if a field has been set. + +### GetLink + +`func (o *SchemaGetPluginListResp) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *SchemaGetPluginListResp) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *SchemaGetPluginListResp) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *SchemaGetPluginListResp) HasLink() bool` + +HasLink returns a boolean if a field has been set. + +### GetName + +`func (o *SchemaGetPluginListResp) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaGetPluginListResp) 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 *SchemaGetPluginListResp) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SchemaGetPluginListResp) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlugName + +`func (o *SchemaGetPluginListResp) GetSlugName() string` + +GetSlugName returns the SlugName field if non-nil, zero value otherwise. + +### GetSlugNameOk + +`func (o *SchemaGetPluginListResp) GetSlugNameOk() (*string, bool)` + +GetSlugNameOk returns a tuple with the SlugName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlugName + +`func (o *SchemaGetPluginListResp) SetSlugName(v string)` + +SetSlugName sets SlugName field to given value. + +### HasSlugName + +`func (o *SchemaGetPluginListResp) HasSlugName() bool` + +HasSlugName returns a boolean if a field has been set. + +### GetVersion + +`func (o *SchemaGetPluginListResp) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SchemaGetPluginListResp) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *SchemaGetPluginListResp) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *SchemaGetPluginListResp) HasVersion() bool` + +HasVersion 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/SchemaGetPrivilegesConfigResp.md b/docs/SchemaGetPrivilegesConfigResp.md new file mode 100644 index 0000000..ef7e73f --- /dev/null +++ b/docs/SchemaGetPrivilegesConfigResp.md @@ -0,0 +1,82 @@ +# SchemaGetPrivilegesConfigResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Options** | Pointer to [**[]SchemaPrivilegeOption**](SchemaPrivilegeOption.md) | | [optional] +**SelectedLevel** | Pointer to [**SchemaPrivilegeLevel**](SchemaPrivilegeLevel.md) | | [optional] + +## Methods + +### NewSchemaGetPrivilegesConfigResp + +`func NewSchemaGetPrivilegesConfigResp() *SchemaGetPrivilegesConfigResp` + +NewSchemaGetPrivilegesConfigResp instantiates a new SchemaGetPrivilegesConfigResp 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 + +### NewSchemaGetPrivilegesConfigRespWithDefaults + +`func NewSchemaGetPrivilegesConfigRespWithDefaults() *SchemaGetPrivilegesConfigResp` + +NewSchemaGetPrivilegesConfigRespWithDefaults instantiates a new SchemaGetPrivilegesConfigResp 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 + +### GetOptions + +`func (o *SchemaGetPrivilegesConfigResp) GetOptions() []SchemaPrivilegeOption` + +GetOptions returns the Options field if non-nil, zero value otherwise. + +### GetOptionsOk + +`func (o *SchemaGetPrivilegesConfigResp) GetOptionsOk() (*[]SchemaPrivilegeOption, bool)` + +GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptions + +`func (o *SchemaGetPrivilegesConfigResp) SetOptions(v []SchemaPrivilegeOption)` + +SetOptions sets Options field to given value. + +### HasOptions + +`func (o *SchemaGetPrivilegesConfigResp) HasOptions() bool` + +HasOptions returns a boolean if a field has been set. + +### GetSelectedLevel + +`func (o *SchemaGetPrivilegesConfigResp) GetSelectedLevel() SchemaPrivilegeLevel` + +GetSelectedLevel returns the SelectedLevel field if non-nil, zero value otherwise. + +### GetSelectedLevelOk + +`func (o *SchemaGetPrivilegesConfigResp) GetSelectedLevelOk() (*SchemaPrivilegeLevel, bool)` + +GetSelectedLevelOk returns a tuple with the SelectedLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelectedLevel + +`func (o *SchemaGetPrivilegesConfigResp) SetSelectedLevel(v SchemaPrivilegeLevel)` + +SetSelectedLevel sets SelectedLevel field to given value. + +### HasSelectedLevel + +`func (o *SchemaGetPrivilegesConfigResp) HasSelectedLevel() bool` + +HasSelectedLevel 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/SchemaGetRankPersonalPageResp.md b/docs/SchemaGetRankPersonalPageResp.md new file mode 100644 index 0000000..49891e4 --- /dev/null +++ b/docs/SchemaGetRankPersonalPageResp.md @@ -0,0 +1,290 @@ +# SchemaGetRankPersonalPageResp + +## 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 + +### NewSchemaGetRankPersonalPageResp + +`func NewSchemaGetRankPersonalPageResp() *SchemaGetRankPersonalPageResp` + +NewSchemaGetRankPersonalPageResp instantiates a new SchemaGetRankPersonalPageResp 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 + +### NewSchemaGetRankPersonalPageRespWithDefaults + +`func NewSchemaGetRankPersonalPageRespWithDefaults() *SchemaGetRankPersonalPageResp` + +NewSchemaGetRankPersonalPageRespWithDefaults instantiates a new SchemaGetRankPersonalPageResp 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 *SchemaGetRankPersonalPageResp) GetAnswerId() string` + +GetAnswerId returns the AnswerId field if non-nil, zero value otherwise. + +### GetAnswerIdOk + +`func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetAnswerId(v string)` + +SetAnswerId sets AnswerId field to given value. + +### HasAnswerId + +`func (o *SchemaGetRankPersonalPageResp) HasAnswerId() bool` + +HasAnswerId returns a boolean if a field has been set. + +### GetContent + +`func (o *SchemaGetRankPersonalPageResp) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *SchemaGetRankPersonalPageResp) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaGetRankPersonalPageResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetRankPersonalPageResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaGetRankPersonalPageResp) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *SchemaGetRankPersonalPageResp) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetObjectType + +`func (o *SchemaGetRankPersonalPageResp) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *SchemaGetRankPersonalPageResp) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetQuestionId + +`func (o *SchemaGetRankPersonalPageResp) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaGetRankPersonalPageResp) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + +### GetRankType + +`func (o *SchemaGetRankPersonalPageResp) GetRankType() string` + +GetRankType returns the RankType field if non-nil, zero value otherwise. + +### GetRankTypeOk + +`func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetRankType(v string)` + +SetRankType sets RankType field to given value. + +### HasRankType + +`func (o *SchemaGetRankPersonalPageResp) HasRankType() bool` + +HasRankType returns a boolean if a field has been set. + +### GetReputation + +`func (o *SchemaGetRankPersonalPageResp) GetReputation() int32` + +GetReputation returns the Reputation field if non-nil, zero value otherwise. + +### GetReputationOk + +`func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetReputation(v int32)` + +SetReputation sets Reputation field to given value. + +### HasReputation + +`func (o *SchemaGetRankPersonalPageResp) HasReputation() bool` + +HasReputation returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaGetRankPersonalPageResp) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaGetRankPersonalPageResp) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetUrlTitle + +`func (o *SchemaGetRankPersonalPageResp) GetUrlTitle() string` + +GetUrlTitle returns the UrlTitle field if non-nil, zero value otherwise. + +### GetUrlTitleOk + +`func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetUrlTitle(v string)` + +SetUrlTitle sets UrlTitle field to given value. + +### HasUrlTitle + +`func (o *SchemaGetRankPersonalPageResp) 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/SchemaGetUserActivationResp.md b/docs/SchemaGetUserActivationResp.md new file mode 100644 index 0000000..a11ee96 --- /dev/null +++ b/docs/SchemaGetUserActivationResp.md @@ -0,0 +1,56 @@ +# SchemaGetUserActivationResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActivationUrl** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaGetUserActivationResp + +`func NewSchemaGetUserActivationResp() *SchemaGetUserActivationResp` + +NewSchemaGetUserActivationResp instantiates a new SchemaGetUserActivationResp 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 + +### NewSchemaGetUserActivationRespWithDefaults + +`func NewSchemaGetUserActivationRespWithDefaults() *SchemaGetUserActivationResp` + +NewSchemaGetUserActivationRespWithDefaults instantiates a new SchemaGetUserActivationResp 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 + +### GetActivationUrl + +`func (o *SchemaGetUserActivationResp) GetActivationUrl() string` + +GetActivationUrl returns the ActivationUrl field if non-nil, zero value otherwise. + +### GetActivationUrlOk + +`func (o *SchemaGetUserActivationResp) GetActivationUrlOk() (*string, bool)` + +GetActivationUrlOk returns a tuple with the ActivationUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActivationUrl + +`func (o *SchemaGetUserActivationResp) SetActivationUrl(v string)` + +SetActivationUrl sets ActivationUrl field to given value. + +### HasActivationUrl + +`func (o *SchemaGetUserActivationResp) HasActivationUrl() bool` + +HasActivationUrl 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/SchemaLoadingAction.md b/docs/SchemaLoadingAction.md new file mode 100644 index 0000000..bd12f90 --- /dev/null +++ b/docs/SchemaLoadingAction.md @@ -0,0 +1,82 @@ +# SchemaLoadingAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**State** | Pointer to **string** | | [optional] +**Text** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaLoadingAction + +`func NewSchemaLoadingAction() *SchemaLoadingAction` + +NewSchemaLoadingAction instantiates a new SchemaLoadingAction 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 + +### NewSchemaLoadingActionWithDefaults + +`func NewSchemaLoadingActionWithDefaults() *SchemaLoadingAction` + +NewSchemaLoadingActionWithDefaults instantiates a new SchemaLoadingAction 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 + +### GetState + +`func (o *SchemaLoadingAction) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *SchemaLoadingAction) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *SchemaLoadingAction) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *SchemaLoadingAction) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetText + +`func (o *SchemaLoadingAction) GetText() string` + +GetText returns the Text field if non-nil, zero value otherwise. + +### GetTextOk + +`func (o *SchemaLoadingAction) GetTextOk() (*string, bool)` + +GetTextOk returns a tuple with the Text field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetText + +`func (o *SchemaLoadingAction) SetText(v string)` + +SetText sets Text field to given value. + +### HasText + +`func (o *SchemaLoadingAction) HasText() bool` + +HasText 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/SchemaOnCompleteAction.md b/docs/SchemaOnCompleteAction.md new file mode 100644 index 0000000..39ea2ea --- /dev/null +++ b/docs/SchemaOnCompleteAction.md @@ -0,0 +1,82 @@ +# SchemaOnCompleteAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RefreshFormConfig** | Pointer to **bool** | | [optional] +**ToastReturnMessage** | Pointer to **bool** | | [optional] + +## Methods + +### NewSchemaOnCompleteAction + +`func NewSchemaOnCompleteAction() *SchemaOnCompleteAction` + +NewSchemaOnCompleteAction instantiates a new SchemaOnCompleteAction 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 + +### NewSchemaOnCompleteActionWithDefaults + +`func NewSchemaOnCompleteActionWithDefaults() *SchemaOnCompleteAction` + +NewSchemaOnCompleteActionWithDefaults instantiates a new SchemaOnCompleteAction 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 + +### GetRefreshFormConfig + +`func (o *SchemaOnCompleteAction) GetRefreshFormConfig() bool` + +GetRefreshFormConfig returns the RefreshFormConfig field if non-nil, zero value otherwise. + +### GetRefreshFormConfigOk + +`func (o *SchemaOnCompleteAction) GetRefreshFormConfigOk() (*bool, bool)` + +GetRefreshFormConfigOk returns a tuple with the RefreshFormConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRefreshFormConfig + +`func (o *SchemaOnCompleteAction) SetRefreshFormConfig(v bool)` + +SetRefreshFormConfig sets RefreshFormConfig field to given value. + +### HasRefreshFormConfig + +`func (o *SchemaOnCompleteAction) HasRefreshFormConfig() bool` + +HasRefreshFormConfig returns a boolean if a field has been set. + +### GetToastReturnMessage + +`func (o *SchemaOnCompleteAction) GetToastReturnMessage() bool` + +GetToastReturnMessage returns the ToastReturnMessage field if non-nil, zero value otherwise. + +### GetToastReturnMessageOk + +`func (o *SchemaOnCompleteAction) GetToastReturnMessageOk() (*bool, bool)` + +GetToastReturnMessageOk returns a tuple with the ToastReturnMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToastReturnMessage + +`func (o *SchemaOnCompleteAction) SetToastReturnMessage(v bool)` + +SetToastReturnMessage sets ToastReturnMessage field to given value. + +### HasToastReturnMessage + +`func (o *SchemaOnCompleteAction) HasToastReturnMessage() bool` + +HasToastReturnMessage 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/SchemaPrivilegeLevel.md b/docs/SchemaPrivilegeLevel.md new file mode 100644 index 0000000..86f076b --- /dev/null +++ b/docs/SchemaPrivilegeLevel.md @@ -0,0 +1,15 @@ +# SchemaPrivilegeLevel + +## Enum + + +* `PrivilegeLevel1` (value: `1`) + +* `PrivilegeLevel2` (value: `2`) + +* `PrivilegeLevel3` (value: `3`) + + +[[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/SchemaPrivilegeOption.md b/docs/SchemaPrivilegeOption.md new file mode 100644 index 0000000..186d720 --- /dev/null +++ b/docs/SchemaPrivilegeOption.md @@ -0,0 +1,108 @@ +# SchemaPrivilegeOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Level** | Pointer to [**SchemaPrivilegeLevel**](SchemaPrivilegeLevel.md) | | [optional] +**LevelDesc** | Pointer to **string** | | [optional] +**Privileges** | Pointer to [**[]ConstantPrivilege**](ConstantPrivilege.md) | | [optional] + +## Methods + +### NewSchemaPrivilegeOption + +`func NewSchemaPrivilegeOption() *SchemaPrivilegeOption` + +NewSchemaPrivilegeOption instantiates a new SchemaPrivilegeOption 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 + +### NewSchemaPrivilegeOptionWithDefaults + +`func NewSchemaPrivilegeOptionWithDefaults() *SchemaPrivilegeOption` + +NewSchemaPrivilegeOptionWithDefaults instantiates a new SchemaPrivilegeOption 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 + +### GetLevel + +`func (o *SchemaPrivilegeOption) GetLevel() SchemaPrivilegeLevel` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *SchemaPrivilegeOption) GetLevelOk() (*SchemaPrivilegeLevel, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *SchemaPrivilegeOption) SetLevel(v SchemaPrivilegeLevel)` + +SetLevel sets Level field to given value. + +### HasLevel + +`func (o *SchemaPrivilegeOption) HasLevel() bool` + +HasLevel returns a boolean if a field has been set. + +### GetLevelDesc + +`func (o *SchemaPrivilegeOption) GetLevelDesc() string` + +GetLevelDesc returns the LevelDesc field if non-nil, zero value otherwise. + +### GetLevelDescOk + +`func (o *SchemaPrivilegeOption) GetLevelDescOk() (*string, bool)` + +GetLevelDescOk returns a tuple with the LevelDesc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevelDesc + +`func (o *SchemaPrivilegeOption) SetLevelDesc(v string)` + +SetLevelDesc sets LevelDesc field to given value. + +### HasLevelDesc + +`func (o *SchemaPrivilegeOption) HasLevelDesc() bool` + +HasLevelDesc returns a boolean if a field has been set. + +### GetPrivileges + +`func (o *SchemaPrivilegeOption) GetPrivileges() []ConstantPrivilege` + +GetPrivileges returns the Privileges field if non-nil, zero value otherwise. + +### GetPrivilegesOk + +`func (o *SchemaPrivilegeOption) GetPrivilegesOk() (*[]ConstantPrivilege, bool)` + +GetPrivilegesOk returns a tuple with the Privileges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivileges + +`func (o *SchemaPrivilegeOption) SetPrivileges(v []ConstantPrivilege)` + +SetPrivileges sets Privileges field to given value. + +### HasPrivileges + +`func (o *SchemaPrivilegeOption) HasPrivileges() bool` + +HasPrivileges 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/SchemaQuestionAdd.md b/docs/SchemaQuestionAdd.md index be34194..48794f6 100644 --- a/docs/SchemaQuestionAdd.md +++ b/docs/SchemaQuestionAdd.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **Content** | **string** | content | **Tags** | [**[]SchemaTagItem**](SchemaTagItem.md) | tags | **Title** | **string** | question title | @@ -27,6 +29,56 @@ NewSchemaQuestionAddWithDefaults instantiates a new SchemaQuestionAdd 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 *SchemaQuestionAdd) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaQuestionAdd) 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 *SchemaQuestionAdd) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaQuestionAdd) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaQuestionAdd) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaQuestionAdd) 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 *SchemaQuestionAdd) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaQuestionAdd) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetContent `func (o *SchemaQuestionAdd) GetContent() string` diff --git a/docs/SchemaQuestionAddByAnswer.md b/docs/SchemaQuestionAddByAnswer.md index 8171c96..14c876e 100644 --- a/docs/SchemaQuestionAddByAnswer.md +++ b/docs/SchemaQuestionAddByAnswer.md @@ -5,7 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AnswerContent** | **string** | | +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **Content** | **string** | content | +**MentionUsernameList** | Pointer to **[]string** | | [optional] **Tags** | [**[]SchemaTagItem**](SchemaTagItem.md) | tags | **Title** | **string** | question title | @@ -48,6 +51,56 @@ and a boolean to check if the value has been set. SetAnswerContent sets AnswerContent field to given value. +### GetCaptchaCode + +`func (o *SchemaQuestionAddByAnswer) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaQuestionAddByAnswer) 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 *SchemaQuestionAddByAnswer) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaQuestionAddByAnswer) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaQuestionAddByAnswer) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaQuestionAddByAnswer) 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 *SchemaQuestionAddByAnswer) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaQuestionAddByAnswer) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetContent `func (o *SchemaQuestionAddByAnswer) GetContent() string` @@ -68,6 +121,31 @@ and a boolean to check if the value has been set. SetContent sets Content field to given value. +### GetMentionUsernameList + +`func (o *SchemaQuestionAddByAnswer) GetMentionUsernameList() []string` + +GetMentionUsernameList returns the MentionUsernameList field if non-nil, zero value otherwise. + +### GetMentionUsernameListOk + +`func (o *SchemaQuestionAddByAnswer) GetMentionUsernameListOk() (*[]string, bool)` + +GetMentionUsernameListOk returns a tuple with the MentionUsernameList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMentionUsernameList + +`func (o *SchemaQuestionAddByAnswer) SetMentionUsernameList(v []string)` + +SetMentionUsernameList sets MentionUsernameList field to given value. + +### HasMentionUsernameList + +`func (o *SchemaQuestionAddByAnswer) HasMentionUsernameList() bool` + +HasMentionUsernameList returns a boolean if a field has been set. + ### GetTags `func (o *SchemaQuestionAddByAnswer) GetTags() []SchemaTagItem` diff --git a/docs/SchemaQuestionUpdate.md b/docs/SchemaQuestionUpdate.md index ec05e83..b9fdc0a 100644 --- a/docs/SchemaQuestionUpdate.md +++ b/docs/SchemaQuestionUpdate.md @@ -4,9 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **Content** | **string** | content | **EditSummary** | Pointer to **string** | edit summary | [optional] **Id** | **string** | question id | +**InviteUser** | Pointer to **[]string** | | [optional] **Tags** | [**[]SchemaTagItem**](SchemaTagItem.md) | tags | **Title** | **string** | question title | @@ -29,6 +32,56 @@ NewSchemaQuestionUpdateWithDefaults instantiates a new SchemaQuestionUpdate obje 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 *SchemaQuestionUpdate) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaQuestionUpdate) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaQuestionUpdate) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaQuestionUpdate) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetContent `func (o *SchemaQuestionUpdate) GetContent() string` @@ -94,6 +147,31 @@ and a boolean to check if the value has been set. SetId sets Id field to given value. +### GetInviteUser + +`func (o *SchemaQuestionUpdate) GetInviteUser() []string` + +GetInviteUser returns the InviteUser field if non-nil, zero value otherwise. + +### GetInviteUserOk + +`func (o *SchemaQuestionUpdate) GetInviteUserOk() (*[]string, bool)` + +GetInviteUserOk returns a tuple with the InviteUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInviteUser + +`func (o *SchemaQuestionUpdate) SetInviteUser(v []string)` + +SetInviteUser sets InviteUser field to given value. + +### HasInviteUser + +`func (o *SchemaQuestionUpdate) HasInviteUser() bool` + +HasInviteUser returns a boolean if a field has been set. + ### GetTags `func (o *SchemaQuestionUpdate) GetTags() []SchemaTagItem` diff --git a/docs/SchemaQuestionUpdateInviteUser.md b/docs/SchemaQuestionUpdateInviteUser.md new file mode 100644 index 0000000..d7aafcb --- /dev/null +++ b/docs/SchemaQuestionUpdateInviteUser.md @@ -0,0 +1,129 @@ +# SchemaQuestionUpdateInviteUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] +**Id** | **string** | | +**InviteUser** | Pointer to **[]string** | | [optional] + +## Methods + +### NewSchemaQuestionUpdateInviteUser + +`func NewSchemaQuestionUpdateInviteUser(id string, ) *SchemaQuestionUpdateInviteUser` + +NewSchemaQuestionUpdateInviteUser instantiates a new SchemaQuestionUpdateInviteUser 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 + +### NewSchemaQuestionUpdateInviteUserWithDefaults + +`func NewSchemaQuestionUpdateInviteUserWithDefaults() *SchemaQuestionUpdateInviteUser` + +NewSchemaQuestionUpdateInviteUserWithDefaults instantiates a new SchemaQuestionUpdateInviteUser 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 *SchemaQuestionUpdateInviteUser) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaQuestionUpdateInviteUser) 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 *SchemaQuestionUpdateInviteUser) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaQuestionUpdateInviteUser) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaQuestionUpdateInviteUser) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaQuestionUpdateInviteUser) 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 *SchemaQuestionUpdateInviteUser) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaQuestionUpdateInviteUser) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaQuestionUpdateInviteUser) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaQuestionUpdateInviteUser) 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 *SchemaQuestionUpdateInviteUser) SetId(v string)` + +SetId sets Id field to given value. + + +### GetInviteUser + +`func (o *SchemaQuestionUpdateInviteUser) GetInviteUser() []string` + +GetInviteUser returns the InviteUser field if non-nil, zero value otherwise. + +### GetInviteUserOk + +`func (o *SchemaQuestionUpdateInviteUser) GetInviteUserOk() (*[]string, bool)` + +GetInviteUserOk returns a tuple with the InviteUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInviteUser + +`func (o *SchemaQuestionUpdateInviteUser) SetInviteUser(v []string)` + +SetInviteUser sets InviteUser field to given value. + +### HasInviteUser + +`func (o *SchemaQuestionUpdateInviteUser) HasInviteUser() bool` + +HasInviteUser 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 9a710f6..4d9c0e9 100644 --- a/docs/SchemaRemoveAnswerReq.md +++ b/docs/SchemaRemoveAnswerReq.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **Id** | **string** | answer id | ## Methods @@ -25,6 +27,56 @@ NewSchemaRemoveAnswerReqWithDefaults instantiates a new SchemaRemoveAnswerReq ob 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 *SchemaRemoveAnswerReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaRemoveAnswerReq) 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 *SchemaRemoveAnswerReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaRemoveAnswerReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaRemoveAnswerReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaRemoveAnswerReq) 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 *SchemaRemoveAnswerReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaRemoveAnswerReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetId `func (o *SchemaRemoveAnswerReq) GetId() string` diff --git a/docs/SchemaRemoveCommentReq.md b/docs/SchemaRemoveCommentReq.md index 45b0b2a..73b0f8b 100644 --- a/docs/SchemaRemoveCommentReq.md +++ b/docs/SchemaRemoveCommentReq.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **CommentId** | **string** | comment id | ## Methods @@ -25,6 +27,56 @@ NewSchemaRemoveCommentReqWithDefaults instantiates a new SchemaRemoveCommentReq 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 *SchemaRemoveCommentReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaRemoveCommentReq) 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 *SchemaRemoveCommentReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaRemoveCommentReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaRemoveCommentReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaRemoveCommentReq) 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 *SchemaRemoveCommentReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaRemoveCommentReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetCommentId `func (o *SchemaRemoveCommentReq) GetCommentId() string` diff --git a/docs/SchemaRemoveQuestionReq.md b/docs/SchemaRemoveQuestionReq.md index 11b56f3..b44a384 100644 --- a/docs/SchemaRemoveQuestionReq.md +++ b/docs/SchemaRemoveQuestionReq.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **Id** | **string** | question id | ## Methods @@ -25,6 +27,56 @@ NewSchemaRemoveQuestionReqWithDefaults instantiates a new SchemaRemoveQuestionRe 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 *SchemaRemoveQuestionReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaRemoveQuestionReq) 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 *SchemaRemoveQuestionReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaRemoveQuestionReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaRemoveQuestionReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaRemoveQuestionReq) 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 *SchemaRemoveQuestionReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaRemoveQuestionReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetId `func (o *SchemaRemoveQuestionReq) GetId() string` diff --git a/docs/SchemaSearchObject.md b/docs/SchemaSearchObject.md index 3242522..c4ae742 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 [**SchemaUserBasicInfo**](SchemaUserBasicInfo.md) | | [optional] +**UserInfo** | Pointer to [**SchemaSearchObjectUserInfo**](SchemaSearchObjectUserInfo.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() SchemaUserBasicInfo` +`func (o *SchemaSearchObject) GetUserInfo() SchemaSearchObjectUserInfo` GetUserInfo returns the UserInfo field if non-nil, zero value otherwise. ### GetUserInfoOk -`func (o *SchemaSearchObject) GetUserInfoOk() (*SchemaUserBasicInfo, bool)` +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetUserInfo(v SchemaUserBasicInfo)` +`func (o *SchemaSearchObject) SetUserInfo(v SchemaSearchObjectUserInfo)` SetUserInfo sets UserInfo field to given value. diff --git a/docs/SchemaSearchObjectUserInfo.md b/docs/SchemaSearchObjectUserInfo.md new file mode 100644 index 0000000..4a50e5b --- /dev/null +++ b/docs/SchemaSearchObjectUserInfo.md @@ -0,0 +1,264 @@ +# 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 81e1f42..233d368 100644 --- a/docs/SchemaSearchResp.md +++ b/docs/SchemaSearchResp.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Object** | Pointer to [**SchemaSearchObject**](SchemaSearchObject.md) | | [optional] +**Object** | Pointer to [**SchemaSearchRespObject**](SchemaSearchRespObject.md) | | [optional] **ObjectType** | Pointer to **string** | object_type | [optional] ## Methods @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetObject -`func (o *SchemaSearchResp) GetObject() SchemaSearchObject` +`func (o *SchemaSearchResp) GetObject() SchemaSearchRespObject` GetObject returns the Object field if non-nil, zero value otherwise. ### GetObjectOk -`func (o *SchemaSearchResp) GetObjectOk() (*SchemaSearchObject, bool)` +`func (o *SchemaSearchResp) GetObjectOk() (*SchemaSearchRespObject, 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 *SchemaSearchResp) SetObject(v SchemaSearchObject)` +`func (o *SchemaSearchResp) SetObject(v SchemaSearchRespObject)` SetObject sets Object field to given value. diff --git a/docs/SchemaSearchRespObject.md b/docs/SchemaSearchRespObject.md new file mode 100644 index 0000000..b59710b --- /dev/null +++ b/docs/SchemaSearchRespObject.md @@ -0,0 +1,316 @@ +# 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/SchemaSendUserActivationReq.md b/docs/SchemaSendUserActivationReq.md new file mode 100644 index 0000000..3eac0ab --- /dev/null +++ b/docs/SchemaSendUserActivationReq.md @@ -0,0 +1,51 @@ +# SchemaSendUserActivationReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **string** | | + +## Methods + +### NewSchemaSendUserActivationReq + +`func NewSchemaSendUserActivationReq(userId string, ) *SchemaSendUserActivationReq` + +NewSchemaSendUserActivationReq instantiates a new SchemaSendUserActivationReq 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 + +### NewSchemaSendUserActivationReqWithDefaults + +`func NewSchemaSendUserActivationReqWithDefaults() *SchemaSendUserActivationReq` + +NewSchemaSendUserActivationReqWithDefaults instantiates a new SchemaSendUserActivationReq 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 + +### GetUserId + +`func (o *SchemaSendUserActivationReq) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *SchemaSendUserActivationReq) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *SchemaSendUserActivationReq) SetUserId(v string)` + +SetUserId sets UserId 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/SchemaSiteCustomCssHTMLReq.md b/docs/SchemaSiteCustomCssHTMLReq.md index fd0d584..406aea4 100644 --- a/docs/SchemaSiteCustomCssHTMLReq.md +++ b/docs/SchemaSiteCustomCssHTMLReq.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CustomFooter** | Pointer to **string** | | [optional] **CustomHead** | Pointer to **string** | | [optional] **CustomHeader** | Pointer to **string** | | [optional] +**CustomSidebar** | Pointer to **string** | | [optional] ## Methods @@ -128,6 +129,31 @@ SetCustomHeader sets CustomHeader field to given value. HasCustomHeader returns a boolean if a field has been set. +### GetCustomSidebar + +`func (o *SchemaSiteCustomCssHTMLReq) GetCustomSidebar() string` + +GetCustomSidebar returns the CustomSidebar field if non-nil, zero value otherwise. + +### GetCustomSidebarOk + +`func (o *SchemaSiteCustomCssHTMLReq) GetCustomSidebarOk() (*string, bool)` + +GetCustomSidebarOk returns a tuple with the CustomSidebar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomSidebar + +`func (o *SchemaSiteCustomCssHTMLReq) SetCustomSidebar(v string)` + +SetCustomSidebar sets CustomSidebar field to given value. + +### HasCustomSidebar + +`func (o *SchemaSiteCustomCssHTMLReq) HasCustomSidebar() bool` + +HasCustomSidebar 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/SchemaSiteCustomCssHTMLResp.md b/docs/SchemaSiteCustomCssHTMLResp.md index cf747e8..2253345 100644 --- a/docs/SchemaSiteCustomCssHTMLResp.md +++ b/docs/SchemaSiteCustomCssHTMLResp.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CustomFooter** | Pointer to **string** | | [optional] **CustomHead** | Pointer to **string** | | [optional] **CustomHeader** | Pointer to **string** | | [optional] +**CustomSidebar** | Pointer to **string** | | [optional] ## Methods @@ -128,6 +129,31 @@ SetCustomHeader sets CustomHeader field to given value. HasCustomHeader returns a boolean if a field has been set. +### GetCustomSidebar + +`func (o *SchemaSiteCustomCssHTMLResp) GetCustomSidebar() string` + +GetCustomSidebar returns the CustomSidebar field if non-nil, zero value otherwise. + +### GetCustomSidebarOk + +`func (o *SchemaSiteCustomCssHTMLResp) GetCustomSidebarOk() (*string, bool)` + +GetCustomSidebarOk returns a tuple with the CustomSidebar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomSidebar + +`func (o *SchemaSiteCustomCssHTMLResp) SetCustomSidebar(v string)` + +SetCustomSidebar sets CustomSidebar field to given value. + +### HasCustomSidebar + +`func (o *SchemaSiteCustomCssHTMLResp) HasCustomSidebar() bool` + +HasCustomSidebar 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/SchemaSiteInfoResp.md b/docs/SchemaSiteInfoResp.md index 9184240..b3a246e 100644 --- a/docs/SchemaSiteInfoResp.md +++ b/docs/SchemaSiteInfoResp.md @@ -10,7 +10,8 @@ Name | Type | Description | Notes **Interface** | Pointer to [**SchemaSiteInterfaceResp**](SchemaSiteInterfaceResp.md) | | [optional] **Login** | Pointer to [**SchemaSiteLoginResp**](SchemaSiteLoginResp.md) | | [optional] **Revision** | Pointer to **string** | | [optional] -**SiteSeo** | Pointer to [**SchemaSiteSeoReq**](SchemaSiteSeoReq.md) | | [optional] +**SiteSeo** | Pointer to [**SchemaSiteSeoResp**](SchemaSiteSeoResp.md) | | [optional] +**SiteUsers** | Pointer to [**SchemaSiteUsersResp**](SchemaSiteUsersResp.md) | | [optional] **Theme** | Pointer to [**SchemaSiteThemeResp**](SchemaSiteThemeResp.md) | | [optional] **Version** | Pointer to **string** | | [optional] @@ -185,20 +186,20 @@ HasRevision returns a boolean if a field has been set. ### GetSiteSeo -`func (o *SchemaSiteInfoResp) GetSiteSeo() SchemaSiteSeoReq` +`func (o *SchemaSiteInfoResp) GetSiteSeo() SchemaSiteSeoResp` GetSiteSeo returns the SiteSeo field if non-nil, zero value otherwise. ### GetSiteSeoOk -`func (o *SchemaSiteInfoResp) GetSiteSeoOk() (*SchemaSiteSeoReq, bool)` +`func (o *SchemaSiteInfoResp) GetSiteSeoOk() (*SchemaSiteSeoResp, bool)` GetSiteSeoOk returns a tuple with the SiteSeo field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSiteSeo -`func (o *SchemaSiteInfoResp) SetSiteSeo(v SchemaSiteSeoReq)` +`func (o *SchemaSiteInfoResp) SetSiteSeo(v SchemaSiteSeoResp)` SetSiteSeo sets SiteSeo field to given value. @@ -208,6 +209,31 @@ SetSiteSeo sets SiteSeo field to given value. HasSiteSeo returns a boolean if a field has been set. +### GetSiteUsers + +`func (o *SchemaSiteInfoResp) GetSiteUsers() SchemaSiteUsersResp` + +GetSiteUsers returns the SiteUsers field if non-nil, zero value otherwise. + +### GetSiteUsersOk + +`func (o *SchemaSiteInfoResp) GetSiteUsersOk() (*SchemaSiteUsersResp, bool)` + +GetSiteUsersOk returns a tuple with the SiteUsers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteUsers + +`func (o *SchemaSiteInfoResp) SetSiteUsers(v SchemaSiteUsersResp)` + +SetSiteUsers sets SiteUsers field to given value. + +### HasSiteUsers + +`func (o *SchemaSiteInfoResp) HasSiteUsers() bool` + +HasSiteUsers returns a boolean if a field has been set. + ### GetTheme `func (o *SchemaSiteInfoResp) GetTheme() SchemaSiteThemeResp` diff --git a/docs/SchemaSiteInterfaceReq.md b/docs/SchemaSiteInterfaceReq.md index 1f5ad23..4dd4cce 100644 --- a/docs/SchemaSiteInterfaceReq.md +++ b/docs/SchemaSiteInterfaceReq.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DefaultAvatar** | **string** | | **Language** | **string** | | **TimeZone** | **string** | | @@ -12,7 +11,7 @@ Name | Type | Description | Notes ### NewSchemaSiteInterfaceReq -`func NewSchemaSiteInterfaceReq(defaultAvatar string, language string, timeZone string, ) *SchemaSiteInterfaceReq` +`func NewSchemaSiteInterfaceReq(language string, timeZone string, ) *SchemaSiteInterfaceReq` NewSchemaSiteInterfaceReq instantiates a new SchemaSiteInterfaceReq object This constructor will assign default values to properties that have it defined, @@ -27,26 +26,6 @@ NewSchemaSiteInterfaceReqWithDefaults instantiates a new SchemaSiteInterfaceReq 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 -### GetDefaultAvatar - -`func (o *SchemaSiteInterfaceReq) GetDefaultAvatar() string` - -GetDefaultAvatar returns the DefaultAvatar field if non-nil, zero value otherwise. - -### GetDefaultAvatarOk - -`func (o *SchemaSiteInterfaceReq) GetDefaultAvatarOk() (*string, bool)` - -GetDefaultAvatarOk returns a tuple with the DefaultAvatar field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefaultAvatar - -`func (o *SchemaSiteInterfaceReq) SetDefaultAvatar(v string)` - -SetDefaultAvatar sets DefaultAvatar field to given value. - - ### GetLanguage `func (o *SchemaSiteInterfaceReq) GetLanguage() string` diff --git a/docs/SchemaSiteInterfaceResp.md b/docs/SchemaSiteInterfaceResp.md index 719f005..b3d494b 100644 --- a/docs/SchemaSiteInterfaceResp.md +++ b/docs/SchemaSiteInterfaceResp.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DefaultAvatar** | **string** | | **Language** | **string** | | **TimeZone** | **string** | | @@ -12,7 +11,7 @@ Name | Type | Description | Notes ### NewSchemaSiteInterfaceResp -`func NewSchemaSiteInterfaceResp(defaultAvatar string, language string, timeZone string, ) *SchemaSiteInterfaceResp` +`func NewSchemaSiteInterfaceResp(language string, timeZone string, ) *SchemaSiteInterfaceResp` NewSchemaSiteInterfaceResp instantiates a new SchemaSiteInterfaceResp object This constructor will assign default values to properties that have it defined, @@ -27,26 +26,6 @@ NewSchemaSiteInterfaceRespWithDefaults instantiates a new SchemaSiteInterfaceRes 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 -### GetDefaultAvatar - -`func (o *SchemaSiteInterfaceResp) GetDefaultAvatar() string` - -GetDefaultAvatar returns the DefaultAvatar field if non-nil, zero value otherwise. - -### GetDefaultAvatarOk - -`func (o *SchemaSiteInterfaceResp) GetDefaultAvatarOk() (*string, bool)` - -GetDefaultAvatarOk returns a tuple with the DefaultAvatar field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefaultAvatar - -`func (o *SchemaSiteInterfaceResp) SetDefaultAvatar(v string)` - -SetDefaultAvatar sets DefaultAvatar field to given value. - - ### GetLanguage `func (o *SchemaSiteInterfaceResp) GetLanguage() string` diff --git a/docs/SchemaSiteLoginReq.md b/docs/SchemaSiteLoginReq.md index 7c9181a..e9943b0 100644 --- a/docs/SchemaSiteLoginReq.md +++ b/docs/SchemaSiteLoginReq.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**AllowEmailDomains** | Pointer to **[]string** | | [optional] +**AllowEmailRegistrations** | Pointer to **bool** | | [optional] **AllowNewRegistrations** | Pointer to **bool** | | [optional] **LoginRequired** | Pointer to **bool** | | [optional] @@ -26,6 +28,56 @@ NewSchemaSiteLoginReqWithDefaults instantiates a new SchemaSiteLoginReq 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 +### GetAllowEmailDomains + +`func (o *SchemaSiteLoginReq) GetAllowEmailDomains() []string` + +GetAllowEmailDomains returns the AllowEmailDomains field if non-nil, zero value otherwise. + +### GetAllowEmailDomainsOk + +`func (o *SchemaSiteLoginReq) GetAllowEmailDomainsOk() (*[]string, bool)` + +GetAllowEmailDomainsOk returns a tuple with the AllowEmailDomains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowEmailDomains + +`func (o *SchemaSiteLoginReq) SetAllowEmailDomains(v []string)` + +SetAllowEmailDomains sets AllowEmailDomains field to given value. + +### HasAllowEmailDomains + +`func (o *SchemaSiteLoginReq) HasAllowEmailDomains() bool` + +HasAllowEmailDomains returns a boolean if a field has been set. + +### GetAllowEmailRegistrations + +`func (o *SchemaSiteLoginReq) GetAllowEmailRegistrations() bool` + +GetAllowEmailRegistrations returns the AllowEmailRegistrations field if non-nil, zero value otherwise. + +### GetAllowEmailRegistrationsOk + +`func (o *SchemaSiteLoginReq) GetAllowEmailRegistrationsOk() (*bool, bool)` + +GetAllowEmailRegistrationsOk returns a tuple with the AllowEmailRegistrations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowEmailRegistrations + +`func (o *SchemaSiteLoginReq) SetAllowEmailRegistrations(v bool)` + +SetAllowEmailRegistrations sets AllowEmailRegistrations field to given value. + +### HasAllowEmailRegistrations + +`func (o *SchemaSiteLoginReq) HasAllowEmailRegistrations() bool` + +HasAllowEmailRegistrations returns a boolean if a field has been set. + ### GetAllowNewRegistrations `func (o *SchemaSiteLoginReq) GetAllowNewRegistrations() bool` diff --git a/docs/SchemaSiteLoginResp.md b/docs/SchemaSiteLoginResp.md index 0075878..ec7f62d 100644 --- a/docs/SchemaSiteLoginResp.md +++ b/docs/SchemaSiteLoginResp.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**AllowEmailDomains** | Pointer to **[]string** | | [optional] +**AllowEmailRegistrations** | Pointer to **bool** | | [optional] **AllowNewRegistrations** | Pointer to **bool** | | [optional] **LoginRequired** | Pointer to **bool** | | [optional] @@ -26,6 +28,56 @@ NewSchemaSiteLoginRespWithDefaults instantiates a new SchemaSiteLoginResp 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 +### GetAllowEmailDomains + +`func (o *SchemaSiteLoginResp) GetAllowEmailDomains() []string` + +GetAllowEmailDomains returns the AllowEmailDomains field if non-nil, zero value otherwise. + +### GetAllowEmailDomainsOk + +`func (o *SchemaSiteLoginResp) GetAllowEmailDomainsOk() (*[]string, bool)` + +GetAllowEmailDomainsOk returns a tuple with the AllowEmailDomains field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowEmailDomains + +`func (o *SchemaSiteLoginResp) SetAllowEmailDomains(v []string)` + +SetAllowEmailDomains sets AllowEmailDomains field to given value. + +### HasAllowEmailDomains + +`func (o *SchemaSiteLoginResp) HasAllowEmailDomains() bool` + +HasAllowEmailDomains returns a boolean if a field has been set. + +### GetAllowEmailRegistrations + +`func (o *SchemaSiteLoginResp) GetAllowEmailRegistrations() bool` + +GetAllowEmailRegistrations returns the AllowEmailRegistrations field if non-nil, zero value otherwise. + +### GetAllowEmailRegistrationsOk + +`func (o *SchemaSiteLoginResp) GetAllowEmailRegistrationsOk() (*bool, bool)` + +GetAllowEmailRegistrationsOk returns a tuple with the AllowEmailRegistrations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowEmailRegistrations + +`func (o *SchemaSiteLoginResp) SetAllowEmailRegistrations(v bool)` + +SetAllowEmailRegistrations sets AllowEmailRegistrations field to given value. + +### HasAllowEmailRegistrations + +`func (o *SchemaSiteLoginResp) HasAllowEmailRegistrations() bool` + +HasAllowEmailRegistrations returns a boolean if a field has been set. + ### GetAllowNewRegistrations `func (o *SchemaSiteLoginResp) GetAllowNewRegistrations() bool` diff --git a/docs/SchemaSiteUsersReq.md b/docs/SchemaSiteUsersReq.md new file mode 100644 index 0000000..f01d1b8 --- /dev/null +++ b/docs/SchemaSiteUsersReq.md @@ -0,0 +1,233 @@ +# SchemaSiteUsersReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowUpdateAvatar** | Pointer to **bool** | | [optional] +**AllowUpdateBio** | Pointer to **bool** | | [optional] +**AllowUpdateDisplayName** | Pointer to **bool** | | [optional] +**AllowUpdateLocation** | Pointer to **bool** | | [optional] +**AllowUpdateUsername** | Pointer to **bool** | | [optional] +**AllowUpdateWebsite** | Pointer to **bool** | | [optional] +**DefaultAvatar** | **string** | | +**GravatarBaseUrl** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaSiteUsersReq + +`func NewSchemaSiteUsersReq(defaultAvatar string, ) *SchemaSiteUsersReq` + +NewSchemaSiteUsersReq instantiates a new SchemaSiteUsersReq 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 + +### NewSchemaSiteUsersReqWithDefaults + +`func NewSchemaSiteUsersReqWithDefaults() *SchemaSiteUsersReq` + +NewSchemaSiteUsersReqWithDefaults instantiates a new SchemaSiteUsersReq 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 + +### GetAllowUpdateAvatar + +`func (o *SchemaSiteUsersReq) GetAllowUpdateAvatar() bool` + +GetAllowUpdateAvatar returns the AllowUpdateAvatar field if non-nil, zero value otherwise. + +### GetAllowUpdateAvatarOk + +`func (o *SchemaSiteUsersReq) GetAllowUpdateAvatarOk() (*bool, bool)` + +GetAllowUpdateAvatarOk returns a tuple with the AllowUpdateAvatar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateAvatar + +`func (o *SchemaSiteUsersReq) SetAllowUpdateAvatar(v bool)` + +SetAllowUpdateAvatar sets AllowUpdateAvatar field to given value. + +### HasAllowUpdateAvatar + +`func (o *SchemaSiteUsersReq) HasAllowUpdateAvatar() bool` + +HasAllowUpdateAvatar returns a boolean if a field has been set. + +### GetAllowUpdateBio + +`func (o *SchemaSiteUsersReq) GetAllowUpdateBio() bool` + +GetAllowUpdateBio returns the AllowUpdateBio field if non-nil, zero value otherwise. + +### GetAllowUpdateBioOk + +`func (o *SchemaSiteUsersReq) GetAllowUpdateBioOk() (*bool, bool)` + +GetAllowUpdateBioOk returns a tuple with the AllowUpdateBio field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateBio + +`func (o *SchemaSiteUsersReq) SetAllowUpdateBio(v bool)` + +SetAllowUpdateBio sets AllowUpdateBio field to given value. + +### HasAllowUpdateBio + +`func (o *SchemaSiteUsersReq) HasAllowUpdateBio() bool` + +HasAllowUpdateBio returns a boolean if a field has been set. + +### GetAllowUpdateDisplayName + +`func (o *SchemaSiteUsersReq) GetAllowUpdateDisplayName() bool` + +GetAllowUpdateDisplayName returns the AllowUpdateDisplayName field if non-nil, zero value otherwise. + +### GetAllowUpdateDisplayNameOk + +`func (o *SchemaSiteUsersReq) GetAllowUpdateDisplayNameOk() (*bool, bool)` + +GetAllowUpdateDisplayNameOk returns a tuple with the AllowUpdateDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateDisplayName + +`func (o *SchemaSiteUsersReq) SetAllowUpdateDisplayName(v bool)` + +SetAllowUpdateDisplayName sets AllowUpdateDisplayName field to given value. + +### HasAllowUpdateDisplayName + +`func (o *SchemaSiteUsersReq) HasAllowUpdateDisplayName() bool` + +HasAllowUpdateDisplayName returns a boolean if a field has been set. + +### GetAllowUpdateLocation + +`func (o *SchemaSiteUsersReq) GetAllowUpdateLocation() bool` + +GetAllowUpdateLocation returns the AllowUpdateLocation field if non-nil, zero value otherwise. + +### GetAllowUpdateLocationOk + +`func (o *SchemaSiteUsersReq) GetAllowUpdateLocationOk() (*bool, bool)` + +GetAllowUpdateLocationOk returns a tuple with the AllowUpdateLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateLocation + +`func (o *SchemaSiteUsersReq) SetAllowUpdateLocation(v bool)` + +SetAllowUpdateLocation sets AllowUpdateLocation field to given value. + +### HasAllowUpdateLocation + +`func (o *SchemaSiteUsersReq) HasAllowUpdateLocation() bool` + +HasAllowUpdateLocation returns a boolean if a field has been set. + +### GetAllowUpdateUsername + +`func (o *SchemaSiteUsersReq) GetAllowUpdateUsername() bool` + +GetAllowUpdateUsername returns the AllowUpdateUsername field if non-nil, zero value otherwise. + +### GetAllowUpdateUsernameOk + +`func (o *SchemaSiteUsersReq) GetAllowUpdateUsernameOk() (*bool, bool)` + +GetAllowUpdateUsernameOk returns a tuple with the AllowUpdateUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateUsername + +`func (o *SchemaSiteUsersReq) SetAllowUpdateUsername(v bool)` + +SetAllowUpdateUsername sets AllowUpdateUsername field to given value. + +### HasAllowUpdateUsername + +`func (o *SchemaSiteUsersReq) HasAllowUpdateUsername() bool` + +HasAllowUpdateUsername returns a boolean if a field has been set. + +### GetAllowUpdateWebsite + +`func (o *SchemaSiteUsersReq) GetAllowUpdateWebsite() bool` + +GetAllowUpdateWebsite returns the AllowUpdateWebsite field if non-nil, zero value otherwise. + +### GetAllowUpdateWebsiteOk + +`func (o *SchemaSiteUsersReq) GetAllowUpdateWebsiteOk() (*bool, bool)` + +GetAllowUpdateWebsiteOk returns a tuple with the AllowUpdateWebsite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateWebsite + +`func (o *SchemaSiteUsersReq) SetAllowUpdateWebsite(v bool)` + +SetAllowUpdateWebsite sets AllowUpdateWebsite field to given value. + +### HasAllowUpdateWebsite + +`func (o *SchemaSiteUsersReq) HasAllowUpdateWebsite() bool` + +HasAllowUpdateWebsite returns a boolean if a field has been set. + +### GetDefaultAvatar + +`func (o *SchemaSiteUsersReq) GetDefaultAvatar() string` + +GetDefaultAvatar returns the DefaultAvatar field if non-nil, zero value otherwise. + +### GetDefaultAvatarOk + +`func (o *SchemaSiteUsersReq) GetDefaultAvatarOk() (*string, bool)` + +GetDefaultAvatarOk returns a tuple with the DefaultAvatar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultAvatar + +`func (o *SchemaSiteUsersReq) SetDefaultAvatar(v string)` + +SetDefaultAvatar sets DefaultAvatar field to given value. + + +### GetGravatarBaseUrl + +`func (o *SchemaSiteUsersReq) GetGravatarBaseUrl() string` + +GetGravatarBaseUrl returns the GravatarBaseUrl field if non-nil, zero value otherwise. + +### GetGravatarBaseUrlOk + +`func (o *SchemaSiteUsersReq) GetGravatarBaseUrlOk() (*string, bool)` + +GetGravatarBaseUrlOk returns a tuple with the GravatarBaseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGravatarBaseUrl + +`func (o *SchemaSiteUsersReq) SetGravatarBaseUrl(v string)` + +SetGravatarBaseUrl sets GravatarBaseUrl field to given value. + +### HasGravatarBaseUrl + +`func (o *SchemaSiteUsersReq) HasGravatarBaseUrl() bool` + +HasGravatarBaseUrl 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/SchemaSiteUsersResp.md b/docs/SchemaSiteUsersResp.md new file mode 100644 index 0000000..7efa5a0 --- /dev/null +++ b/docs/SchemaSiteUsersResp.md @@ -0,0 +1,233 @@ +# SchemaSiteUsersResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowUpdateAvatar** | Pointer to **bool** | | [optional] +**AllowUpdateBio** | Pointer to **bool** | | [optional] +**AllowUpdateDisplayName** | Pointer to **bool** | | [optional] +**AllowUpdateLocation** | Pointer to **bool** | | [optional] +**AllowUpdateUsername** | Pointer to **bool** | | [optional] +**AllowUpdateWebsite** | Pointer to **bool** | | [optional] +**DefaultAvatar** | **string** | | +**GravatarBaseUrl** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaSiteUsersResp + +`func NewSchemaSiteUsersResp(defaultAvatar string, ) *SchemaSiteUsersResp` + +NewSchemaSiteUsersResp instantiates a new SchemaSiteUsersResp 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 + +### NewSchemaSiteUsersRespWithDefaults + +`func NewSchemaSiteUsersRespWithDefaults() *SchemaSiteUsersResp` + +NewSchemaSiteUsersRespWithDefaults instantiates a new SchemaSiteUsersResp 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 + +### GetAllowUpdateAvatar + +`func (o *SchemaSiteUsersResp) GetAllowUpdateAvatar() bool` + +GetAllowUpdateAvatar returns the AllowUpdateAvatar field if non-nil, zero value otherwise. + +### GetAllowUpdateAvatarOk + +`func (o *SchemaSiteUsersResp) GetAllowUpdateAvatarOk() (*bool, bool)` + +GetAllowUpdateAvatarOk returns a tuple with the AllowUpdateAvatar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateAvatar + +`func (o *SchemaSiteUsersResp) SetAllowUpdateAvatar(v bool)` + +SetAllowUpdateAvatar sets AllowUpdateAvatar field to given value. + +### HasAllowUpdateAvatar + +`func (o *SchemaSiteUsersResp) HasAllowUpdateAvatar() bool` + +HasAllowUpdateAvatar returns a boolean if a field has been set. + +### GetAllowUpdateBio + +`func (o *SchemaSiteUsersResp) GetAllowUpdateBio() bool` + +GetAllowUpdateBio returns the AllowUpdateBio field if non-nil, zero value otherwise. + +### GetAllowUpdateBioOk + +`func (o *SchemaSiteUsersResp) GetAllowUpdateBioOk() (*bool, bool)` + +GetAllowUpdateBioOk returns a tuple with the AllowUpdateBio field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateBio + +`func (o *SchemaSiteUsersResp) SetAllowUpdateBio(v bool)` + +SetAllowUpdateBio sets AllowUpdateBio field to given value. + +### HasAllowUpdateBio + +`func (o *SchemaSiteUsersResp) HasAllowUpdateBio() bool` + +HasAllowUpdateBio returns a boolean if a field has been set. + +### GetAllowUpdateDisplayName + +`func (o *SchemaSiteUsersResp) GetAllowUpdateDisplayName() bool` + +GetAllowUpdateDisplayName returns the AllowUpdateDisplayName field if non-nil, zero value otherwise. + +### GetAllowUpdateDisplayNameOk + +`func (o *SchemaSiteUsersResp) GetAllowUpdateDisplayNameOk() (*bool, bool)` + +GetAllowUpdateDisplayNameOk returns a tuple with the AllowUpdateDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateDisplayName + +`func (o *SchemaSiteUsersResp) SetAllowUpdateDisplayName(v bool)` + +SetAllowUpdateDisplayName sets AllowUpdateDisplayName field to given value. + +### HasAllowUpdateDisplayName + +`func (o *SchemaSiteUsersResp) HasAllowUpdateDisplayName() bool` + +HasAllowUpdateDisplayName returns a boolean if a field has been set. + +### GetAllowUpdateLocation + +`func (o *SchemaSiteUsersResp) GetAllowUpdateLocation() bool` + +GetAllowUpdateLocation returns the AllowUpdateLocation field if non-nil, zero value otherwise. + +### GetAllowUpdateLocationOk + +`func (o *SchemaSiteUsersResp) GetAllowUpdateLocationOk() (*bool, bool)` + +GetAllowUpdateLocationOk returns a tuple with the AllowUpdateLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateLocation + +`func (o *SchemaSiteUsersResp) SetAllowUpdateLocation(v bool)` + +SetAllowUpdateLocation sets AllowUpdateLocation field to given value. + +### HasAllowUpdateLocation + +`func (o *SchemaSiteUsersResp) HasAllowUpdateLocation() bool` + +HasAllowUpdateLocation returns a boolean if a field has been set. + +### GetAllowUpdateUsername + +`func (o *SchemaSiteUsersResp) GetAllowUpdateUsername() bool` + +GetAllowUpdateUsername returns the AllowUpdateUsername field if non-nil, zero value otherwise. + +### GetAllowUpdateUsernameOk + +`func (o *SchemaSiteUsersResp) GetAllowUpdateUsernameOk() (*bool, bool)` + +GetAllowUpdateUsernameOk returns a tuple with the AllowUpdateUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateUsername + +`func (o *SchemaSiteUsersResp) SetAllowUpdateUsername(v bool)` + +SetAllowUpdateUsername sets AllowUpdateUsername field to given value. + +### HasAllowUpdateUsername + +`func (o *SchemaSiteUsersResp) HasAllowUpdateUsername() bool` + +HasAllowUpdateUsername returns a boolean if a field has been set. + +### GetAllowUpdateWebsite + +`func (o *SchemaSiteUsersResp) GetAllowUpdateWebsite() bool` + +GetAllowUpdateWebsite returns the AllowUpdateWebsite field if non-nil, zero value otherwise. + +### GetAllowUpdateWebsiteOk + +`func (o *SchemaSiteUsersResp) GetAllowUpdateWebsiteOk() (*bool, bool)` + +GetAllowUpdateWebsiteOk returns a tuple with the AllowUpdateWebsite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowUpdateWebsite + +`func (o *SchemaSiteUsersResp) SetAllowUpdateWebsite(v bool)` + +SetAllowUpdateWebsite sets AllowUpdateWebsite field to given value. + +### HasAllowUpdateWebsite + +`func (o *SchemaSiteUsersResp) HasAllowUpdateWebsite() bool` + +HasAllowUpdateWebsite returns a boolean if a field has been set. + +### GetDefaultAvatar + +`func (o *SchemaSiteUsersResp) GetDefaultAvatar() string` + +GetDefaultAvatar returns the DefaultAvatar field if non-nil, zero value otherwise. + +### GetDefaultAvatarOk + +`func (o *SchemaSiteUsersResp) GetDefaultAvatarOk() (*string, bool)` + +GetDefaultAvatarOk returns a tuple with the DefaultAvatar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultAvatar + +`func (o *SchemaSiteUsersResp) SetDefaultAvatar(v string)` + +SetDefaultAvatar sets DefaultAvatar field to given value. + + +### GetGravatarBaseUrl + +`func (o *SchemaSiteUsersResp) GetGravatarBaseUrl() string` + +GetGravatarBaseUrl returns the GravatarBaseUrl field if non-nil, zero value otherwise. + +### GetGravatarBaseUrlOk + +`func (o *SchemaSiteUsersResp) GetGravatarBaseUrlOk() (*string, bool)` + +GetGravatarBaseUrlOk returns a tuple with the GravatarBaseUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGravatarBaseUrl + +`func (o *SchemaSiteUsersResp) SetGravatarBaseUrl(v string)` + +SetGravatarBaseUrl sets GravatarBaseUrl field to given value. + +### HasGravatarBaseUrl + +`func (o *SchemaSiteUsersResp) HasGravatarBaseUrl() bool` + +HasGravatarBaseUrl 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/SchemaUIOptionAction.md b/docs/SchemaUIOptionAction.md new file mode 100644 index 0000000..41db2d8 --- /dev/null +++ b/docs/SchemaUIOptionAction.md @@ -0,0 +1,134 @@ +# SchemaUIOptionAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Loading** | Pointer to [**SchemaLoadingAction**](SchemaLoadingAction.md) | | [optional] +**Method** | Pointer to **string** | | [optional] +**OnComplete** | Pointer to [**SchemaOnCompleteAction**](SchemaOnCompleteAction.md) | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaUIOptionAction + +`func NewSchemaUIOptionAction() *SchemaUIOptionAction` + +NewSchemaUIOptionAction instantiates a new SchemaUIOptionAction 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 + +### NewSchemaUIOptionActionWithDefaults + +`func NewSchemaUIOptionActionWithDefaults() *SchemaUIOptionAction` + +NewSchemaUIOptionActionWithDefaults instantiates a new SchemaUIOptionAction 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 + +### GetLoading + +`func (o *SchemaUIOptionAction) GetLoading() SchemaLoadingAction` + +GetLoading returns the Loading field if non-nil, zero value otherwise. + +### GetLoadingOk + +`func (o *SchemaUIOptionAction) GetLoadingOk() (*SchemaLoadingAction, bool)` + +GetLoadingOk returns a tuple with the Loading field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoading + +`func (o *SchemaUIOptionAction) SetLoading(v SchemaLoadingAction)` + +SetLoading sets Loading field to given value. + +### HasLoading + +`func (o *SchemaUIOptionAction) HasLoading() bool` + +HasLoading returns a boolean if a field has been set. + +### GetMethod + +`func (o *SchemaUIOptionAction) GetMethod() string` + +GetMethod returns the Method field if non-nil, zero value otherwise. + +### GetMethodOk + +`func (o *SchemaUIOptionAction) GetMethodOk() (*string, bool)` + +GetMethodOk returns a tuple with the Method field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMethod + +`func (o *SchemaUIOptionAction) SetMethod(v string)` + +SetMethod sets Method field to given value. + +### HasMethod + +`func (o *SchemaUIOptionAction) HasMethod() bool` + +HasMethod returns a boolean if a field has been set. + +### GetOnComplete + +`func (o *SchemaUIOptionAction) GetOnComplete() SchemaOnCompleteAction` + +GetOnComplete returns the OnComplete field if non-nil, zero value otherwise. + +### GetOnCompleteOk + +`func (o *SchemaUIOptionAction) GetOnCompleteOk() (*SchemaOnCompleteAction, bool)` + +GetOnCompleteOk returns a tuple with the OnComplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnComplete + +`func (o *SchemaUIOptionAction) SetOnComplete(v SchemaOnCompleteAction)` + +SetOnComplete sets OnComplete field to given value. + +### HasOnComplete + +`func (o *SchemaUIOptionAction) HasOnComplete() bool` + +HasOnComplete returns a boolean if a field has been set. + +### GetUrl + +`func (o *SchemaUIOptionAction) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *SchemaUIOptionAction) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *SchemaUIOptionAction) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *SchemaUIOptionAction) HasUrl() bool` + +HasUrl 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 9223efc..c97d439 100644 --- a/docs/SchemaUpdateCommentReq.md +++ b/docs/SchemaUpdateCommentReq.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **CommentId** | **string** | comment id | **OriginalText** | **string** | original comment content | @@ -26,6 +28,56 @@ NewSchemaUpdateCommentReqWithDefaults instantiates a new SchemaUpdateCommentReq 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 *SchemaUpdateCommentReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaUpdateCommentReq) 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 *SchemaUpdateCommentReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaUpdateCommentReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaUpdateCommentReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaUpdateCommentReq) 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 *SchemaUpdateCommentReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaUpdateCommentReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetCommentId `func (o *SchemaUpdateCommentReq) GetCommentId() string` diff --git a/docs/SchemaUpdateInfoRequest.md b/docs/SchemaUpdateInfoRequest.md index 062cca8..98583cb 100644 --- a/docs/SchemaUpdateInfoRequest.md +++ b/docs/SchemaUpdateInfoRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Avatar** | Pointer to [**SchemaAvatarInfo**](SchemaAvatarInfo.md) | | [optional] +**Avatar** | Pointer to [**SchemaUpdateInfoRequestAvatar**](SchemaUpdateInfoRequestAvatar.md) | | [optional] **Bio** | Pointer to **string** | bio | [optional] -**DisplayName** | **string** | display_name | +**DisplayName** | Pointer to **string** | display_name | [optional] **Location** | Pointer to **string** | location | [optional] **Username** | Pointer to **string** | username | [optional] **Website** | Pointer to **string** | website | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewSchemaUpdateInfoRequest -`func NewSchemaUpdateInfoRequest(displayName string, ) *SchemaUpdateInfoRequest` +`func NewSchemaUpdateInfoRequest() *SchemaUpdateInfoRequest` NewSchemaUpdateInfoRequest instantiates a new SchemaUpdateInfoRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetAvatar -`func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaAvatarInfo` +`func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaUpdateInfoRequestAvatar` GetAvatar returns the Avatar field if non-nil, zero value otherwise. ### GetAvatarOk -`func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaAvatarInfo, bool)` +`func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaUpdateInfoRequestAvatar, 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 SchemaAvatarInfo)` +`func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaUpdateInfoRequestAvatar)` SetAvatar sets Avatar field to given value. @@ -99,6 +99,11 @@ and a boolean to check if the value has been set. SetDisplayName sets DisplayName field to given value. +### HasDisplayName + +`func (o *SchemaUpdateInfoRequest) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. ### GetLocation diff --git a/docs/SchemaUpdateInfoRequestAvatar.md b/docs/SchemaUpdateInfoRequestAvatar.md new file mode 100644 index 0000000..5244730 --- /dev/null +++ b/docs/SchemaUpdateInfoRequestAvatar.md @@ -0,0 +1,108 @@ +# 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/SchemaUpdatePluginConfigReq.md b/docs/SchemaUpdatePluginConfigReq.md new file mode 100644 index 0000000..df9c09f --- /dev/null +++ b/docs/SchemaUpdatePluginConfigReq.md @@ -0,0 +1,77 @@ +# SchemaUpdatePluginConfigReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigFields** | Pointer to **map[string]map[string]interface{}** | | [optional] +**PluginSlugName** | **string** | | + +## Methods + +### NewSchemaUpdatePluginConfigReq + +`func NewSchemaUpdatePluginConfigReq(pluginSlugName string, ) *SchemaUpdatePluginConfigReq` + +NewSchemaUpdatePluginConfigReq instantiates a new SchemaUpdatePluginConfigReq 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 + +### NewSchemaUpdatePluginConfigReqWithDefaults + +`func NewSchemaUpdatePluginConfigReqWithDefaults() *SchemaUpdatePluginConfigReq` + +NewSchemaUpdatePluginConfigReqWithDefaults instantiates a new SchemaUpdatePluginConfigReq 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 + +### GetConfigFields + +`func (o *SchemaUpdatePluginConfigReq) GetConfigFields() map[string]map[string]interface{}` + +GetConfigFields returns the ConfigFields field if non-nil, zero value otherwise. + +### GetConfigFieldsOk + +`func (o *SchemaUpdatePluginConfigReq) GetConfigFieldsOk() (*map[string]map[string]interface{}, bool)` + +GetConfigFieldsOk returns a tuple with the ConfigFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigFields + +`func (o *SchemaUpdatePluginConfigReq) SetConfigFields(v map[string]map[string]interface{})` + +SetConfigFields sets ConfigFields field to given value. + +### HasConfigFields + +`func (o *SchemaUpdatePluginConfigReq) HasConfigFields() bool` + +HasConfigFields returns a boolean if a field has been set. + +### GetPluginSlugName + +`func (o *SchemaUpdatePluginConfigReq) GetPluginSlugName() string` + +GetPluginSlugName returns the PluginSlugName field if non-nil, zero value otherwise. + +### GetPluginSlugNameOk + +`func (o *SchemaUpdatePluginConfigReq) GetPluginSlugNameOk() (*string, bool)` + +GetPluginSlugNameOk returns a tuple with the PluginSlugName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPluginSlugName + +`func (o *SchemaUpdatePluginConfigReq) SetPluginSlugName(v string)` + +SetPluginSlugName sets PluginSlugName 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/SchemaUpdatePluginStatusReq.md b/docs/SchemaUpdatePluginStatusReq.md new file mode 100644 index 0000000..b9d51aa --- /dev/null +++ b/docs/SchemaUpdatePluginStatusReq.md @@ -0,0 +1,77 @@ +# SchemaUpdatePluginStatusReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | Pointer to **bool** | | [optional] +**PluginSlugName** | **string** | | + +## Methods + +### NewSchemaUpdatePluginStatusReq + +`func NewSchemaUpdatePluginStatusReq(pluginSlugName string, ) *SchemaUpdatePluginStatusReq` + +NewSchemaUpdatePluginStatusReq instantiates a new SchemaUpdatePluginStatusReq 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 + +### NewSchemaUpdatePluginStatusReqWithDefaults + +`func NewSchemaUpdatePluginStatusReqWithDefaults() *SchemaUpdatePluginStatusReq` + +NewSchemaUpdatePluginStatusReqWithDefaults instantiates a new SchemaUpdatePluginStatusReq 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 + +### GetEnabled + +`func (o *SchemaUpdatePluginStatusReq) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *SchemaUpdatePluginStatusReq) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *SchemaUpdatePluginStatusReq) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *SchemaUpdatePluginStatusReq) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetPluginSlugName + +`func (o *SchemaUpdatePluginStatusReq) GetPluginSlugName() string` + +GetPluginSlugName returns the PluginSlugName field if non-nil, zero value otherwise. + +### GetPluginSlugNameOk + +`func (o *SchemaUpdatePluginStatusReq) GetPluginSlugNameOk() (*string, bool)` + +GetPluginSlugNameOk returns a tuple with the PluginSlugName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPluginSlugName + +`func (o *SchemaUpdatePluginStatusReq) SetPluginSlugName(v string)` + +SetPluginSlugName sets PluginSlugName 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/SchemaUpdatePrivilegesConfigReq.md b/docs/SchemaUpdatePrivilegesConfigReq.md new file mode 100644 index 0000000..faec00b --- /dev/null +++ b/docs/SchemaUpdatePrivilegesConfigReq.md @@ -0,0 +1,51 @@ +# SchemaUpdatePrivilegesConfigReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Level** | [**SchemaPrivilegeLevel**](SchemaPrivilegeLevel.md) | | + +## Methods + +### NewSchemaUpdatePrivilegesConfigReq + +`func NewSchemaUpdatePrivilegesConfigReq(level SchemaPrivilegeLevel, ) *SchemaUpdatePrivilegesConfigReq` + +NewSchemaUpdatePrivilegesConfigReq instantiates a new SchemaUpdatePrivilegesConfigReq 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 + +### NewSchemaUpdatePrivilegesConfigReqWithDefaults + +`func NewSchemaUpdatePrivilegesConfigReqWithDefaults() *SchemaUpdatePrivilegesConfigReq` + +NewSchemaUpdatePrivilegesConfigReqWithDefaults instantiates a new SchemaUpdatePrivilegesConfigReq 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 + +### GetLevel + +`func (o *SchemaUpdatePrivilegesConfigReq) GetLevel() SchemaPrivilegeLevel` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *SchemaUpdatePrivilegesConfigReq) GetLevelOk() (*SchemaPrivilegeLevel, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *SchemaUpdatePrivilegesConfigReq) SetLevel(v SchemaPrivilegeLevel)` + +SetLevel sets Level 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/SchemaUserChangeEmailSendCodeReq.md b/docs/SchemaUserChangeEmailSendCodeReq.md index e826f71..988c94f 100644 --- a/docs/SchemaUserChangeEmailSendCodeReq.md +++ b/docs/SchemaUserChangeEmailSendCodeReq.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **CaptchaCode** | Pointer to **string** | | [optional] **CaptchaId** | Pointer to **string** | | [optional] **EMail** | **string** | | +**Pass** | Pointer to **string** | | [optional] ## Methods @@ -97,6 +98,31 @@ and a boolean to check if the value has been set. SetEMail sets EMail field to given value. +### GetPass + +`func (o *SchemaUserChangeEmailSendCodeReq) GetPass() string` + +GetPass returns the Pass field if non-nil, zero value otherwise. + +### GetPassOk + +`func (o *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) SetPass(v string)` + +SetPass sets Pass field to given value. + +### HasPass + +`func (o *SchemaUserChangeEmailSendCodeReq) 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/SchemaUserLoginResp.md b/docs/SchemaUserLoginResp.md new file mode 100644 index 0000000..cf6fb98 --- /dev/null +++ b/docs/SchemaUserLoginResp.md @@ -0,0 +1,680 @@ +# SchemaUserLoginResp + +## 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] +**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] +**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 + +### NewSchemaUserLoginResp + +`func NewSchemaUserLoginResp() *SchemaUserLoginResp` + +NewSchemaUserLoginResp instantiates a new SchemaUserLoginResp 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 + +### NewSchemaUserLoginRespWithDefaults + +`func NewSchemaUserLoginRespWithDefaults() *SchemaUserLoginResp` + +NewSchemaUserLoginRespWithDefaults instantiates a new SchemaUserLoginResp 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 *SchemaUserLoginResp) GetAccessToken() string` + +GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. + +### GetAccessTokenOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetAccessToken(v string)` + +SetAccessToken sets AccessToken field to given value. + +### HasAccessToken + +`func (o *SchemaUserLoginResp) HasAccessToken() bool` + +HasAccessToken returns a boolean if a field has been set. + +### GetAnswerCount + +`func (o *SchemaUserLoginResp) GetAnswerCount() int32` + +GetAnswerCount returns the AnswerCount field if non-nil, zero value otherwise. + +### GetAnswerCountOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetAnswerCount(v int32)` + +SetAnswerCount sets AnswerCount field to given value. + +### HasAnswerCount + +`func (o *SchemaUserLoginResp) HasAnswerCount() bool` + +HasAnswerCount returns a boolean if a field has been set. + +### GetAuthorityGroup + +`func (o *SchemaUserLoginResp) GetAuthorityGroup() int32` + +GetAuthorityGroup returns the AuthorityGroup field if non-nil, zero value otherwise. + +### GetAuthorityGroupOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetAuthorityGroup(v int32)` + +SetAuthorityGroup sets AuthorityGroup field to given value. + +### HasAuthorityGroup + +`func (o *SchemaUserLoginResp) HasAuthorityGroup() bool` + +HasAuthorityGroup returns a boolean if a field has been set. + +### GetAvatar + +`func (o *SchemaUserLoginResp) GetAvatar() string` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetAvatar(v string)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *SchemaUserLoginResp) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + +### GetBio + +`func (o *SchemaUserLoginResp) GetBio() string` + +GetBio returns the Bio field if non-nil, zero value otherwise. + +### GetBioOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetBio(v string)` + +SetBio sets Bio field to given value. + +### HasBio + +`func (o *SchemaUserLoginResp) HasBio() bool` + +HasBio returns a boolean if a field has been set. + +### GetBioHtml + +`func (o *SchemaUserLoginResp) GetBioHtml() string` + +GetBioHtml returns the BioHtml field if non-nil, zero value otherwise. + +### GetBioHtmlOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetBioHtml(v string)` + +SetBioHtml sets BioHtml field to given value. + +### HasBioHtml + +`func (o *SchemaUserLoginResp) HasBioHtml() bool` + +HasBioHtml returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaUserLoginResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaUserLoginResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaUserLoginResp) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaUserLoginResp) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetEMail + +`func (o *SchemaUserLoginResp) GetEMail() string` + +GetEMail returns the EMail field if non-nil, zero value otherwise. + +### GetEMailOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetEMail(v string)` + +SetEMail sets EMail field to given value. + +### HasEMail + +`func (o *SchemaUserLoginResp) HasEMail() bool` + +HasEMail returns a boolean if a field has been set. + +### GetFollowCount + +`func (o *SchemaUserLoginResp) GetFollowCount() int32` + +GetFollowCount returns the FollowCount field if non-nil, zero value otherwise. + +### GetFollowCountOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetFollowCount(v int32)` + +SetFollowCount sets FollowCount field to given value. + +### HasFollowCount + +`func (o *SchemaUserLoginResp) HasFollowCount() bool` + +HasFollowCount returns a boolean if a field has been set. + +### GetHavePassword + +`func (o *SchemaUserLoginResp) GetHavePassword() bool` + +GetHavePassword returns the HavePassword field if non-nil, zero value otherwise. + +### GetHavePasswordOk + +`func (o *SchemaUserLoginResp) GetHavePasswordOk() (*bool, bool)` + +GetHavePasswordOk returns a tuple with the HavePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHavePassword + +`func (o *SchemaUserLoginResp) SetHavePassword(v bool)` + +SetHavePassword sets HavePassword field to given value. + +### HasHavePassword + +`func (o *SchemaUserLoginResp) HasHavePassword() bool` + +HasHavePassword returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaUserLoginResp) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaUserLoginResp) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIpInfo + +`func (o *SchemaUserLoginResp) GetIpInfo() string` + +GetIpInfo returns the IpInfo field if non-nil, zero value otherwise. + +### GetIpInfoOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetIpInfo(v string)` + +SetIpInfo sets IpInfo field to given value. + +### HasIpInfo + +`func (o *SchemaUserLoginResp) HasIpInfo() bool` + +HasIpInfo returns a boolean if a field has been set. + +### GetLanguage + +`func (o *SchemaUserLoginResp) GetLanguage() string` + +GetLanguage returns the Language field if non-nil, zero value otherwise. + +### GetLanguageOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetLanguage(v string)` + +SetLanguage sets Language field to given value. + +### HasLanguage + +`func (o *SchemaUserLoginResp) HasLanguage() bool` + +HasLanguage returns a boolean if a field has been set. + +### GetLastLoginDate + +`func (o *SchemaUserLoginResp) GetLastLoginDate() int32` + +GetLastLoginDate returns the LastLoginDate field if non-nil, zero value otherwise. + +### GetLastLoginDateOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetLastLoginDate(v int32)` + +SetLastLoginDate sets LastLoginDate field to given value. + +### HasLastLoginDate + +`func (o *SchemaUserLoginResp) HasLastLoginDate() bool` + +HasLastLoginDate returns a boolean if a field has been set. + +### GetLocation + +`func (o *SchemaUserLoginResp) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *SchemaUserLoginResp) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### GetMailStatus + +`func (o *SchemaUserLoginResp) GetMailStatus() int32` + +GetMailStatus returns the MailStatus field if non-nil, zero value otherwise. + +### GetMailStatusOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetMailStatus(v int32)` + +SetMailStatus sets MailStatus field to given value. + +### HasMailStatus + +`func (o *SchemaUserLoginResp) HasMailStatus() bool` + +HasMailStatus returns a boolean if a field has been set. + +### GetMobile + +`func (o *SchemaUserLoginResp) GetMobile() string` + +GetMobile returns the Mobile field if non-nil, zero value otherwise. + +### GetMobileOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetMobile(v string)` + +SetMobile sets Mobile field to given value. + +### HasMobile + +`func (o *SchemaUserLoginResp) HasMobile() bool` + +HasMobile returns a boolean if a field has been set. + +### GetNoticeStatus + +`func (o *SchemaUserLoginResp) GetNoticeStatus() int32` + +GetNoticeStatus returns the NoticeStatus field if non-nil, zero value otherwise. + +### GetNoticeStatusOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetNoticeStatus(v int32)` + +SetNoticeStatus sets NoticeStatus field to given value. + +### HasNoticeStatus + +`func (o *SchemaUserLoginResp) HasNoticeStatus() bool` + +HasNoticeStatus returns a boolean if a field has been set. + +### GetQuestionCount + +`func (o *SchemaUserLoginResp) GetQuestionCount() int32` + +GetQuestionCount returns the QuestionCount field if non-nil, zero value otherwise. + +### GetQuestionCountOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetQuestionCount(v int32)` + +SetQuestionCount sets QuestionCount field to given value. + +### HasQuestionCount + +`func (o *SchemaUserLoginResp) HasQuestionCount() bool` + +HasQuestionCount returns a boolean if a field has been set. + +### GetRank + +`func (o *SchemaUserLoginResp) GetRank() int32` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetRank(v int32)` + +SetRank sets Rank field to given value. + +### HasRank + +`func (o *SchemaUserLoginResp) HasRank() bool` + +HasRank returns a boolean if a field has been set. + +### GetRoleId + +`func (o *SchemaUserLoginResp) GetRoleId() int32` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetRoleId(v int32)` + +SetRoleId sets RoleId field to given value. + +### HasRoleId + +`func (o *SchemaUserLoginResp) HasRoleId() bool` + +HasRoleId returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaUserLoginResp) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaUserLoginResp) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaUserLoginResp) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaUserLoginResp) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetWebsite + +`func (o *SchemaUserLoginResp) GetWebsite() string` + +GetWebsite returns the Website field if non-nil, zero value otherwise. + +### GetWebsiteOk + +`func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetWebsite(v string)` + +SetWebsite sets Website field to given value. + +### HasWebsite + +`func (o *SchemaUserLoginResp) 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/SchemaUserModifyPasswordReq.md b/docs/SchemaUserModifyPasswordReq.md new file mode 100644 index 0000000..fc261a2 --- /dev/null +++ b/docs/SchemaUserModifyPasswordReq.md @@ -0,0 +1,129 @@ +# SchemaUserModifyPasswordReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | | [optional] +**OldPass** | Pointer to **string** | | [optional] +**Pass** | **string** | | + +## Methods + +### NewSchemaUserModifyPasswordReq + +`func NewSchemaUserModifyPasswordReq(pass string, ) *SchemaUserModifyPasswordReq` + +NewSchemaUserModifyPasswordReq instantiates a new SchemaUserModifyPasswordReq 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 + +### NewSchemaUserModifyPasswordReqWithDefaults + +`func NewSchemaUserModifyPasswordReqWithDefaults() *SchemaUserModifyPasswordReq` + +NewSchemaUserModifyPasswordReqWithDefaults instantiates a new SchemaUserModifyPasswordReq 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 *SchemaUserModifyPasswordReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaUserModifyPasswordReq) 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 *SchemaUserModifyPasswordReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaUserModifyPasswordReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaUserModifyPasswordReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaUserModifyPasswordReq) 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 *SchemaUserModifyPasswordReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaUserModifyPasswordReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + +### GetOldPass + +`func (o *SchemaUserModifyPasswordReq) GetOldPass() string` + +GetOldPass returns the OldPass field if non-nil, zero value otherwise. + +### GetOldPassOk + +`func (o *SchemaUserModifyPasswordReq) 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 *SchemaUserModifyPasswordReq) SetOldPass(v string)` + +SetOldPass sets OldPass field to given value. + +### HasOldPass + +`func (o *SchemaUserModifyPasswordReq) HasOldPass() bool` + +HasOldPass returns a boolean if a field has been set. + +### GetPass + +`func (o *SchemaUserModifyPasswordReq) GetPass() string` + +GetPass returns the Pass field if non-nil, zero value otherwise. + +### GetPassOk + +`func (o *SchemaUserModifyPasswordReq) 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 *SchemaUserModifyPasswordReq) SetPass(v string)` + +SetPass sets Pass 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/SchemaVoteReq.md b/docs/SchemaVoteReq.md index a29b112..69741a9 100644 --- a/docs/SchemaVoteReq.md +++ b/docs/SchemaVoteReq.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] **IsCancel** | Pointer to **bool** | is cancel | [optional] **ObjectId** | **string** | id | @@ -26,6 +28,56 @@ NewSchemaVoteReqWithDefaults instantiates a new SchemaVoteReq 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 *SchemaVoteReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaVoteReq) 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 *SchemaVoteReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaVoteReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaVoteReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaVoteReq) 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 *SchemaVoteReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaVoteReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + ### GetIsCancel `func (o *SchemaVoteReq) GetIsCancel() bool` diff --git a/docs/SearchApi.md b/docs/SearchApi.md index d7c10bc..9d8afa1 100644 --- a/docs/SearchApi.md +++ b/docs/SearchApi.md @@ -1,6 +1,6 @@ # \SearchApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/docs/SiteApi.md b/docs/SiteApi.md index 1fa87fe..d5a17ce 100644 --- a/docs/SiteApi.md +++ b/docs/SiteApi.md @@ -1,6 +1,6 @@ # \SiteApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/docs/TagApi.md b/docs/TagApi.md index 95b9cf0..f874320 100644 --- a/docs/TagApi.md +++ b/docs/TagApi.md @@ -1,6 +1,6 @@ # \TagApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/docs/UploadApi.md b/docs/UploadApi.md index 39f542d..5e1056d 100644 --- a/docs/UploadApi.md +++ b/docs/UploadApi.md @@ -1,6 +1,6 @@ # \UploadApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- diff --git a/docs/UserApi.md b/docs/UserApi.md index 81255e5..bc6dc62 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -1,6 +1,6 @@ # \UserApi -All URIs are relative to *http://127.0.0.1:80* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -13,6 +13,7 @@ Method | HTTP request | Description [**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 @@ -568,7 +569,7 @@ import ( func main() { authorization := "authorization_example" // string | access-token - data := *openapiclient.NewSchemaUpdateInfoRequest("DisplayName_example") // SchemaUpdateInfoRequest | UpdateInfoRequest + data := *openapiclient.NewSchemaUpdateInfoRequest() // SchemaUpdateInfoRequest | UpdateInfoRequest configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -614,6 +615,72 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## AnswerApiV1UserInfoSearchGet + +> AnswerApiV1PersonalUserInfoGet200Response AnswerApiV1UserInfoSearchGet(ctx).Username(username).Execute() + +SearchUserListByName + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + username := "username_example" // string | username + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + 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, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserInfoSearchGet`: AnswerApiV1PersonalUserInfoGet200Response + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInfoSearchGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserInfoSearchGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **string** | username | + +### Return type + +[**AnswerApiV1PersonalUserInfoGet200Response**](AnswerApiV1PersonalUserInfoGet200Response.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) + + ## AnswerApiV1UserInterfacePut > HandlerRespBody AnswerApiV1UserInterfacePut(ctx).Authorization(authorization).Data(data).Execute() @@ -896,7 +963,7 @@ import ( ) func main() { - data := *openapiclient.NewSchemaUserModifyPassWordRequest() // SchemaUserModifyPassWordRequest | UserModifyPassWordRequest + data := *openapiclient.NewSchemaUserModifyPasswordReq("Pass_example") // SchemaUserModifyPasswordReq | UserModifyPasswordReq configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -921,7 +988,7 @@ Other parameters are passed through a pointer to a apiAnswerApiV1UserPasswordPut Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**SchemaUserModifyPassWordRequest**](SchemaUserModifyPassWordRequest.md) | UserModifyPassWordRequest | + **data** | [**SchemaUserModifyPasswordReq**](SchemaUserModifyPasswordReq.md) | UserModifyPasswordReq | ### Return type diff --git a/go.sum b/go.sum index fa4b6e6..c966c8d 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,11 @@ -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= +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= diff --git a/model__answer_admin_api_plugin_config_get_200_response.go b/model__answer_admin_api_plugin_config_get_200_response.go new file mode 100644 index 0000000..05e750a --- /dev/null +++ b/model__answer_admin_api_plugin_config_get_200_response.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 openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiPluginConfigGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiPluginConfigGet200Response{} + +// AnswerAdminApiPluginConfigGet200Response struct for AnswerAdminApiPluginConfigGet200Response +type AnswerAdminApiPluginConfigGet200Response struct { + Data *SchemaGetPluginConfigResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiPluginConfigGet200Response instantiates a new AnswerAdminApiPluginConfigGet200Response 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 NewAnswerAdminApiPluginConfigGet200Response() *AnswerAdminApiPluginConfigGet200Response { + this := AnswerAdminApiPluginConfigGet200Response{} + return &this +} + +// NewAnswerAdminApiPluginConfigGet200ResponseWithDefaults instantiates a new AnswerAdminApiPluginConfigGet200Response 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 NewAnswerAdminApiPluginConfigGet200ResponseWithDefaults() *AnswerAdminApiPluginConfigGet200Response { + this := AnswerAdminApiPluginConfigGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiPluginConfigGet200Response) GetData() SchemaGetPluginConfigResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetPluginConfigResp + 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 *AnswerAdminApiPluginConfigGet200Response) GetDataOk() (*SchemaGetPluginConfigResp, 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 *AnswerAdminApiPluginConfigGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetPluginConfigResp and assigns it to the Data field. +func (o *AnswerAdminApiPluginConfigGet200Response) SetData(v SchemaGetPluginConfigResp) { + 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 + 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 *AnswerAdminApiPluginConfigGet200Response) 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 *AnswerAdminApiPluginConfigGet200Response) 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 *AnswerAdminApiPluginConfigGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiPluginConfigGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiPluginConfigGet200Response) 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 NullableAnswerAdminApiPluginConfigGet200Response struct { + value *AnswerAdminApiPluginConfigGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiPluginConfigGet200Response) Get() *AnswerAdminApiPluginConfigGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiPluginConfigGet200Response) Set(val *AnswerAdminApiPluginConfigGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiPluginConfigGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiPluginConfigGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiPluginConfigGet200Response(val *AnswerAdminApiPluginConfigGet200Response) *NullableAnswerAdminApiPluginConfigGet200Response { + return &NullableAnswerAdminApiPluginConfigGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiPluginConfigGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiPluginConfigGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_plugins_get_200_response.go b/model__answer_admin_api_plugins_get_200_response.go new file mode 100644 index 0000000..2f895c2 --- /dev/null +++ b/model__answer_admin_api_plugins_get_200_response.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 openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiPluginsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiPluginsGet200Response{} + +// AnswerAdminApiPluginsGet200Response struct for AnswerAdminApiPluginsGet200Response +type AnswerAdminApiPluginsGet200Response struct { + Data []SchemaGetPluginListResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiPluginsGet200Response instantiates a new AnswerAdminApiPluginsGet200Response 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 NewAnswerAdminApiPluginsGet200Response() *AnswerAdminApiPluginsGet200Response { + this := AnswerAdminApiPluginsGet200Response{} + return &this +} + +// NewAnswerAdminApiPluginsGet200ResponseWithDefaults instantiates a new AnswerAdminApiPluginsGet200Response 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 NewAnswerAdminApiPluginsGet200ResponseWithDefaults() *AnswerAdminApiPluginsGet200Response { + this := AnswerAdminApiPluginsGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiPluginsGet200Response) GetData() []SchemaGetPluginListResp { + if o == nil || IsNil(o.Data) { + var ret []SchemaGetPluginListResp + 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 *AnswerAdminApiPluginsGet200Response) GetDataOk() ([]SchemaGetPluginListResp, 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 *AnswerAdminApiPluginsGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []SchemaGetPluginListResp and assigns it to the Data field. +func (o *AnswerAdminApiPluginsGet200Response) SetData(v []SchemaGetPluginListResp) { + 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 + 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 *AnswerAdminApiPluginsGet200Response) 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 *AnswerAdminApiPluginsGet200Response) 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 *AnswerAdminApiPluginsGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiPluginsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiPluginsGet200Response) 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 NullableAnswerAdminApiPluginsGet200Response struct { + value *AnswerAdminApiPluginsGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiPluginsGet200Response) Get() *AnswerAdminApiPluginsGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiPluginsGet200Response) Set(val *AnswerAdminApiPluginsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiPluginsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiPluginsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiPluginsGet200Response(val *AnswerAdminApiPluginsGet200Response) *NullableAnswerAdminApiPluginsGet200Response { + return &NullableAnswerAdminApiPluginsGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiPluginsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiPluginsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_roles_get_200_response.go b/model__answer_admin_api_roles_get_200_response.go index aa845ee..585e5b2 100644 --- a/model__answer_admin_api_roles_get_200_response.go +++ b/model__answer_admin_api_roles_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_admin_api_setting_privileges_get_200_response.go b/model__answer_admin_api_setting_privileges_get_200_response.go new file mode 100644 index 0000000..591921a --- /dev/null +++ b/model__answer_admin_api_setting_privileges_get_200_response.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 openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSettingPrivilegesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSettingPrivilegesGet200Response{} + +// AnswerAdminApiSettingPrivilegesGet200Response struct for AnswerAdminApiSettingPrivilegesGet200Response +type AnswerAdminApiSettingPrivilegesGet200Response struct { + Data *SchemaGetPrivilegesConfigResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSettingPrivilegesGet200Response instantiates a new AnswerAdminApiSettingPrivilegesGet200Response 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 NewAnswerAdminApiSettingPrivilegesGet200Response() *AnswerAdminApiSettingPrivilegesGet200Response { + this := AnswerAdminApiSettingPrivilegesGet200Response{} + return &this +} + +// NewAnswerAdminApiSettingPrivilegesGet200ResponseWithDefaults instantiates a new AnswerAdminApiSettingPrivilegesGet200Response 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 NewAnswerAdminApiSettingPrivilegesGet200ResponseWithDefaults() *AnswerAdminApiSettingPrivilegesGet200Response { + this := AnswerAdminApiSettingPrivilegesGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) GetData() SchemaGetPrivilegesConfigResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetPrivilegesConfigResp + 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 *AnswerAdminApiSettingPrivilegesGet200Response) GetDataOk() (*SchemaGetPrivilegesConfigResp, 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 *AnswerAdminApiSettingPrivilegesGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetPrivilegesConfigResp and assigns it to the Data field. +func (o *AnswerAdminApiSettingPrivilegesGet200Response) SetData(v SchemaGetPrivilegesConfigResp) { + 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 + 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 *AnswerAdminApiSettingPrivilegesGet200Response) 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 *AnswerAdminApiSettingPrivilegesGet200Response) 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 *AnswerAdminApiSettingPrivilegesGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSettingPrivilegesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSettingPrivilegesGet200Response) 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 NullableAnswerAdminApiSettingPrivilegesGet200Response struct { + value *AnswerAdminApiSettingPrivilegesGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSettingPrivilegesGet200Response) Get() *AnswerAdminApiSettingPrivilegesGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSettingPrivilegesGet200Response) Set(val *AnswerAdminApiSettingPrivilegesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSettingPrivilegesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSettingPrivilegesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSettingPrivilegesGet200Response(val *AnswerAdminApiSettingPrivilegesGet200Response) *NullableAnswerAdminApiSettingPrivilegesGet200Response { + return &NullableAnswerAdminApiSettingPrivilegesGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSettingPrivilegesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSettingPrivilegesGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + 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 0a7123d..0230b57 100644 --- a/model__answer_admin_api_setting_smtp_get_200_response.go +++ b/model__answer_admin_api_setting_smtp_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 3fb14a1..dbf27b8 100644 --- a/model__answer_admin_api_siteinfo_branding_get_200_response.go +++ b/model__answer_admin_api_siteinfo_branding_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 549f49c..60ec268 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 998cb3f..cd081ad 100644 --- a/model__answer_admin_api_siteinfo_general_get_200_response.go +++ b/model__answer_admin_api_siteinfo_general_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 a9ae880..cba225b 100644 --- a/model__answer_admin_api_siteinfo_interface_get_200_response.go +++ b/model__answer_admin_api_siteinfo_interface_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 73c830c..f3a62ca 100644 --- a/model__answer_admin_api_siteinfo_legal_get_200_response.go +++ b/model__answer_admin_api_siteinfo_legal_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 1c9ebb2..a1d40c4 100644 --- a/model__answer_admin_api_siteinfo_login_get_200_response.go +++ b/model__answer_admin_api_siteinfo_login_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 a788cfc..10647fc 100644 --- a/model__answer_admin_api_siteinfo_seo_get_200_response.go +++ b/model__answer_admin_api_siteinfo_seo_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 367e205..6a55370 100644 --- a/model__answer_admin_api_siteinfo_theme_get_200_response.go +++ b/model__answer_admin_api_siteinfo_theme_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_admin_api_siteinfo_users_get_200_response.go b/model__answer_admin_api_siteinfo_users_get_200_response.go new file mode 100644 index 0000000..7a3a855 --- /dev/null +++ b/model__answer_admin_api_siteinfo_users_get_200_response.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 openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSiteinfoUsersGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSiteinfoUsersGet200Response{} + +// AnswerAdminApiSiteinfoUsersGet200Response struct for AnswerAdminApiSiteinfoUsersGet200Response +type AnswerAdminApiSiteinfoUsersGet200Response struct { + Data *SchemaSiteUsersResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSiteinfoUsersGet200Response instantiates a new AnswerAdminApiSiteinfoUsersGet200Response 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 NewAnswerAdminApiSiteinfoUsersGet200Response() *AnswerAdminApiSiteinfoUsersGet200Response { + this := AnswerAdminApiSiteinfoUsersGet200Response{} + return &this +} + +// NewAnswerAdminApiSiteinfoUsersGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoUsersGet200Response 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 NewAnswerAdminApiSiteinfoUsersGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoUsersGet200Response { + this := AnswerAdminApiSiteinfoUsersGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) GetData() SchemaSiteUsersResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteUsersResp + 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 *AnswerAdminApiSiteinfoUsersGet200Response) GetDataOk() (*SchemaSiteUsersResp, 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 *AnswerAdminApiSiteinfoUsersGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteUsersResp and assigns it to the Data field. +func (o *AnswerAdminApiSiteinfoUsersGet200Response) SetData(v SchemaSiteUsersResp) { + 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 + 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 *AnswerAdminApiSiteinfoUsersGet200Response) 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 *AnswerAdminApiSiteinfoUsersGet200Response) 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 *AnswerAdminApiSiteinfoUsersGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSiteinfoUsersGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSiteinfoUsersGet200Response) 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 NullableAnswerAdminApiSiteinfoUsersGet200Response struct { + value *AnswerAdminApiSiteinfoUsersGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSiteinfoUsersGet200Response) Get() *AnswerAdminApiSiteinfoUsersGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSiteinfoUsersGet200Response) Set(val *AnswerAdminApiSiteinfoUsersGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSiteinfoUsersGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSiteinfoUsersGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSiteinfoUsersGet200Response(val *AnswerAdminApiSiteinfoUsersGet200Response) *NullableAnswerAdminApiSiteinfoUsersGet200Response { + return &NullableAnswerAdminApiSiteinfoUsersGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSiteinfoUsersGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSiteinfoUsersGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + 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 3041708..d912e2a 100644 --- a/model__answer_admin_api_siteinfo_write_get_200_response.go +++ b/model__answer_admin_api_siteinfo_write_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_admin_api_user_activation_get_200_response.go b/model__answer_admin_api_user_activation_get_200_response.go new file mode 100644 index 0000000..4be6fe4 --- /dev/null +++ b/model__answer_admin_api_user_activation_get_200_response.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 openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiUserActivationGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiUserActivationGet200Response{} + +// AnswerAdminApiUserActivationGet200Response struct for AnswerAdminApiUserActivationGet200Response +type AnswerAdminApiUserActivationGet200Response struct { + Data *SchemaGetUserActivationResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiUserActivationGet200Response instantiates a new AnswerAdminApiUserActivationGet200Response 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 NewAnswerAdminApiUserActivationGet200Response() *AnswerAdminApiUserActivationGet200Response { + this := AnswerAdminApiUserActivationGet200Response{} + return &this +} + +// NewAnswerAdminApiUserActivationGet200ResponseWithDefaults instantiates a new AnswerAdminApiUserActivationGet200Response 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 NewAnswerAdminApiUserActivationGet200ResponseWithDefaults() *AnswerAdminApiUserActivationGet200Response { + this := AnswerAdminApiUserActivationGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiUserActivationGet200Response) GetData() SchemaGetUserActivationResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetUserActivationResp + 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 *AnswerAdminApiUserActivationGet200Response) GetDataOk() (*SchemaGetUserActivationResp, 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 *AnswerAdminApiUserActivationGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetUserActivationResp and assigns it to the Data field. +func (o *AnswerAdminApiUserActivationGet200Response) SetData(v SchemaGetUserActivationResp) { + 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 + 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 *AnswerAdminApiUserActivationGet200Response) 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 *AnswerAdminApiUserActivationGet200Response) 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 *AnswerAdminApiUserActivationGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiUserActivationGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiUserActivationGet200Response) 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 NullableAnswerAdminApiUserActivationGet200Response struct { + value *AnswerAdminApiUserActivationGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiUserActivationGet200Response) Get() *AnswerAdminApiUserActivationGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiUserActivationGet200Response) Set(val *AnswerAdminApiUserActivationGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiUserActivationGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiUserActivationGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiUserActivationGet200Response(val *AnswerAdminApiUserActivationGet200Response) *NullableAnswerAdminApiUserActivationGet200Response { + return &NullableAnswerAdminApiUserActivationGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiUserActivationGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiUserActivationGet200Response) 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.go b/model__answer_admin_api_users_page_get_200_response.go index 6b3bcca..ac22685 100644 --- a/model__answer_admin_api_users_page_get_200_response.go +++ b/model__answer_admin_api_users_page_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_admin_api_users_page_get_200_response_data.go b/model__answer_admin_api_users_page_get_200_response_data.go index 70da739..c8e6ce8 100644 --- a/model__answer_admin_api_users_page_get_200_response_data.go +++ b/model__answer_admin_api_users_page_get_200_response_data.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index 1777f5b..4f4d271 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 48815b7..157d22d 100644 --- a/model__answer_api_v1_activity_timeline_get_200_response.go +++ b/model__answer_api_v1_activity_timeline_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 3421541..2789abb 100644 --- a/model__answer_api_v1_collection_switch_post_200_response.go +++ b/model__answer_api_v1_collection_switch_post_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_api_v1_comment_get_200_response.go b/model__answer_api_v1_comment_get_200_response.go index bdd4ec4..d45f42d 100644 --- a/model__answer_api_v1_comment_get_200_response.go +++ b/model__answer_api_v1_comment_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_api_v1_comment_get_200_response_data.go b/model__answer_api_v1_comment_get_200_response_data.go index b270ab5..ab1e56e 100644 --- a/model__answer_api_v1_comment_get_200_response_data.go +++ b/model__answer_api_v1_comment_get_200_response_data.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index 842db52..27e6a77 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_api_v1_comment_post_200_response.go b/model__answer_api_v1_comment_post_200_response.go index a0c3bb9..e3b7407 100644 --- a/model__answer_api_v1_comment_post_200_response.go +++ b/model__answer_api_v1_comment_post_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 new file mode 100644 index 0000000..dd6c382 --- /dev/null +++ b/model__answer_api_v1_connector_binding_email_post_200_response.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 openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1ConnectorBindingEmailPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1ConnectorBindingEmailPost200Response{} + +// AnswerApiV1ConnectorBindingEmailPost200Response struct for AnswerApiV1ConnectorBindingEmailPost200Response +type AnswerApiV1ConnectorBindingEmailPost200Response struct { + Data *SchemaExternalLoginBindingUserSendEmailResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1ConnectorBindingEmailPost200Response instantiates a new AnswerApiV1ConnectorBindingEmailPost200Response 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 NewAnswerApiV1ConnectorBindingEmailPost200Response() *AnswerApiV1ConnectorBindingEmailPost200Response { + this := AnswerApiV1ConnectorBindingEmailPost200Response{} + return &this +} + +// NewAnswerApiV1ConnectorBindingEmailPost200ResponseWithDefaults instantiates a new AnswerApiV1ConnectorBindingEmailPost200Response 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 NewAnswerApiV1ConnectorBindingEmailPost200ResponseWithDefaults() *AnswerApiV1ConnectorBindingEmailPost200Response { + this := AnswerApiV1ConnectorBindingEmailPost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) GetData() SchemaExternalLoginBindingUserSendEmailResp { + if o == nil || IsNil(o.Data) { + var ret SchemaExternalLoginBindingUserSendEmailResp + 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 *AnswerApiV1ConnectorBindingEmailPost200Response) GetDataOk() (*SchemaExternalLoginBindingUserSendEmailResp, 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 *AnswerApiV1ConnectorBindingEmailPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaExternalLoginBindingUserSendEmailResp and assigns it to the Data field. +func (o *AnswerApiV1ConnectorBindingEmailPost200Response) SetData(v SchemaExternalLoginBindingUserSendEmailResp) { + 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 + 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 *AnswerApiV1ConnectorBindingEmailPost200Response) 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 *AnswerApiV1ConnectorBindingEmailPost200Response) 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 *AnswerApiV1ConnectorBindingEmailPost200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1ConnectorBindingEmailPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1ConnectorBindingEmailPost200Response) 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 NullableAnswerApiV1ConnectorBindingEmailPost200Response struct { + value *AnswerApiV1ConnectorBindingEmailPost200Response + isSet bool +} + +func (v NullableAnswerApiV1ConnectorBindingEmailPost200Response) Get() *AnswerApiV1ConnectorBindingEmailPost200Response { + return v.value +} + +func (v *NullableAnswerApiV1ConnectorBindingEmailPost200Response) Set(val *AnswerApiV1ConnectorBindingEmailPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1ConnectorBindingEmailPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1ConnectorBindingEmailPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1ConnectorBindingEmailPost200Response(val *AnswerApiV1ConnectorBindingEmailPost200Response) *NullableAnswerApiV1ConnectorBindingEmailPost200Response { + return &NullableAnswerApiV1ConnectorBindingEmailPost200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1ConnectorBindingEmailPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1ConnectorBindingEmailPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_connector_info_get_200_response.go b/model__answer_api_v1_connector_info_get_200_response.go new file mode 100644 index 0000000..6072ad9 --- /dev/null +++ b/model__answer_api_v1_connector_info_get_200_response.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 openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1ConnectorInfoGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1ConnectorInfoGet200Response{} + +// AnswerApiV1ConnectorInfoGet200Response struct for AnswerApiV1ConnectorInfoGet200Response +type AnswerApiV1ConnectorInfoGet200Response struct { + Data []SchemaConnectorInfoResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1ConnectorInfoGet200Response instantiates a new AnswerApiV1ConnectorInfoGet200Response 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 NewAnswerApiV1ConnectorInfoGet200Response() *AnswerApiV1ConnectorInfoGet200Response { + this := AnswerApiV1ConnectorInfoGet200Response{} + return &this +} + +// NewAnswerApiV1ConnectorInfoGet200ResponseWithDefaults instantiates a new AnswerApiV1ConnectorInfoGet200Response 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 NewAnswerApiV1ConnectorInfoGet200ResponseWithDefaults() *AnswerApiV1ConnectorInfoGet200Response { + this := AnswerApiV1ConnectorInfoGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorInfoGet200Response) GetData() []SchemaConnectorInfoResp { + if o == nil || IsNil(o.Data) { + var ret []SchemaConnectorInfoResp + 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 *AnswerApiV1ConnectorInfoGet200Response) GetDataOk() ([]SchemaConnectorInfoResp, 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 *AnswerApiV1ConnectorInfoGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []SchemaConnectorInfoResp and assigns it to the Data field. +func (o *AnswerApiV1ConnectorInfoGet200Response) SetData(v []SchemaConnectorInfoResp) { + 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 + 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 *AnswerApiV1ConnectorInfoGet200Response) 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 *AnswerApiV1ConnectorInfoGet200Response) 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 *AnswerApiV1ConnectorInfoGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1ConnectorInfoGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1ConnectorInfoGet200Response) 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 NullableAnswerApiV1ConnectorInfoGet200Response struct { + value *AnswerApiV1ConnectorInfoGet200Response + isSet bool +} + +func (v NullableAnswerApiV1ConnectorInfoGet200Response) Get() *AnswerApiV1ConnectorInfoGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1ConnectorInfoGet200Response) Set(val *AnswerApiV1ConnectorInfoGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1ConnectorInfoGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1ConnectorInfoGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1ConnectorInfoGet200Response(val *AnswerApiV1ConnectorInfoGet200Response) *NullableAnswerApiV1ConnectorInfoGet200Response { + return &NullableAnswerApiV1ConnectorInfoGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1ConnectorInfoGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1ConnectorInfoGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + 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 new file mode 100644 index 0000000..410a799 --- /dev/null +++ b/model__answer_api_v1_connector_user_info_get_200_response.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 openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1ConnectorUserInfoGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1ConnectorUserInfoGet200Response{} + +// AnswerApiV1ConnectorUserInfoGet200Response struct for AnswerApiV1ConnectorUserInfoGet200Response +type AnswerApiV1ConnectorUserInfoGet200Response struct { + Data []SchemaConnectorUserInfoResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1ConnectorUserInfoGet200Response instantiates a new AnswerApiV1ConnectorUserInfoGet200Response 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 NewAnswerApiV1ConnectorUserInfoGet200Response() *AnswerApiV1ConnectorUserInfoGet200Response { + this := AnswerApiV1ConnectorUserInfoGet200Response{} + return &this +} + +// NewAnswerApiV1ConnectorUserInfoGet200ResponseWithDefaults instantiates a new AnswerApiV1ConnectorUserInfoGet200Response 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 NewAnswerApiV1ConnectorUserInfoGet200ResponseWithDefaults() *AnswerApiV1ConnectorUserInfoGet200Response { + this := AnswerApiV1ConnectorUserInfoGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) GetData() []SchemaConnectorUserInfoResp { + if o == nil || IsNil(o.Data) { + var ret []SchemaConnectorUserInfoResp + 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 *AnswerApiV1ConnectorUserInfoGet200Response) GetDataOk() ([]SchemaConnectorUserInfoResp, 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 *AnswerApiV1ConnectorUserInfoGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []SchemaConnectorUserInfoResp and assigns it to the Data field. +func (o *AnswerApiV1ConnectorUserInfoGet200Response) SetData(v []SchemaConnectorUserInfoResp) { + 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 + 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 *AnswerApiV1ConnectorUserInfoGet200Response) 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 *AnswerApiV1ConnectorUserInfoGet200Response) 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 *AnswerApiV1ConnectorUserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1ConnectorUserInfoGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1ConnectorUserInfoGet200Response) 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 NullableAnswerApiV1ConnectorUserInfoGet200Response struct { + value *AnswerApiV1ConnectorUserInfoGet200Response + isSet bool +} + +func (v NullableAnswerApiV1ConnectorUserInfoGet200Response) Get() *AnswerApiV1ConnectorUserInfoGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1ConnectorUserInfoGet200Response) Set(val *AnswerApiV1ConnectorUserInfoGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1ConnectorUserInfoGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1ConnectorUserInfoGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1ConnectorUserInfoGet200Response(val *AnswerApiV1ConnectorUserInfoGet200Response) *NullableAnswerApiV1ConnectorUserInfoGet200Response { + return &NullableAnswerApiV1ConnectorUserInfoGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1ConnectorUserInfoGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1ConnectorUserInfoGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_file_post_200_response.go b/model__answer_api_v1_file_post_200_response.go index f2bd258..58fa7a0 100644 --- a/model__answer_api_v1_file_post_200_response.go +++ b/model__answer_api_v1_file_post_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_api_v1_follow_post_200_response.go b/model__answer_api_v1_follow_post_200_response.go index 1c83fb3..92053b5 100644 --- a/model__answer_api_v1_follow_post_200_response.go +++ b/model__answer_api_v1_follow_post_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_api_v1_permission_get_200_response.go b/model__answer_api_v1_permission_get_200_response.go new file mode 100644 index 0000000..2224a36 --- /dev/null +++ b/model__answer_api_v1_permission_get_200_response.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 openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PermissionGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PermissionGet200Response{} + +// AnswerApiV1PermissionGet200Response struct for AnswerApiV1PermissionGet200Response +type AnswerApiV1PermissionGet200Response struct { + Data *map[string]bool `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1PermissionGet200Response instantiates a new AnswerApiV1PermissionGet200Response 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 NewAnswerApiV1PermissionGet200Response() *AnswerApiV1PermissionGet200Response { + this := AnswerApiV1PermissionGet200Response{} + return &this +} + +// NewAnswerApiV1PermissionGet200ResponseWithDefaults instantiates a new AnswerApiV1PermissionGet200Response 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 NewAnswerApiV1PermissionGet200ResponseWithDefaults() *AnswerApiV1PermissionGet200Response { + this := AnswerApiV1PermissionGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1PermissionGet200Response) GetData() map[string]bool { + if o == nil || IsNil(o.Data) { + var ret map[string]bool + 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 *AnswerApiV1PermissionGet200Response) GetDataOk() (*map[string]bool, 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 *AnswerApiV1PermissionGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given map[string]bool and assigns it to the Data field. +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 + 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 *AnswerApiV1PermissionGet200Response) 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 *AnswerApiV1PermissionGet200Response) 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 *AnswerApiV1PermissionGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1PermissionGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PermissionGet200Response) 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 NullableAnswerApiV1PermissionGet200Response struct { + value *AnswerApiV1PermissionGet200Response + isSet bool +} + +func (v NullableAnswerApiV1PermissionGet200Response) Get() *AnswerApiV1PermissionGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1PermissionGet200Response) Set(val *AnswerApiV1PermissionGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PermissionGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PermissionGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PermissionGet200Response(val *AnswerApiV1PermissionGet200Response) *NullableAnswerApiV1PermissionGet200Response { + return &NullableAnswerApiV1PermissionGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PermissionGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PermissionGet200Response) 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.go b/model__answer_api_v1_personal_comment_page_get_200_response.go index a28a85c..01b9b34 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index e081c5e..3ad5043 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index 7aeb564..a4b10c6 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 1a41acf..9b19608 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index f8a5bf8..ae11286 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +18,7 @@ var _ MappedNullable = &AnswerApiV1PersonalRankPageGet200ResponseData{} // AnswerApiV1PersonalRankPageGet200ResponseData struct for AnswerApiV1PersonalRankPageGet200ResponseData type AnswerApiV1PersonalRankPageGet200ResponseData struct { Count *int32 `json:"count,omitempty"` - List []SchemaGetRankPersonalWithPageResp `json:"list,omitempty"` + List []SchemaGetRankPersonalPageResp `json:"list,omitempty"` } // NewAnswerApiV1PersonalRankPageGet200ResponseData instantiates a new AnswerApiV1PersonalRankPageGet200ResponseData object @@ -73,9 +71,9 @@ func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetCount(v int32) { } // GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetList() []SchemaGetRankPersonalWithPageResp { +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetList() []SchemaGetRankPersonalPageResp { if o == nil || IsNil(o.List) { - var ret []SchemaGetRankPersonalWithPageResp + var ret []SchemaGetRankPersonalPageResp return ret } return o.List @@ -83,7 +81,7 @@ func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetList() []SchemaGetRan // 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() ([]SchemaGetRankPersonalWithPageResp, bool) { +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetListOk() ([]SchemaGetRankPersonalPageResp, bool) { if o == nil || IsNil(o.List) { return nil, false } @@ -99,8 +97,8 @@ func (o *AnswerApiV1PersonalRankPageGet200ResponseData) HasList() bool { return false } -// SetList gets a reference to the given []SchemaGetRankPersonalWithPageResp and assigns it to the List field. -func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetList(v []SchemaGetRankPersonalWithPageResp) { +// SetList gets a reference to the given []SchemaGetRankPersonalPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetList(v []SchemaGetRankPersonalPageResp) { o.List = v } 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 index 62b177e..96b3e69 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +17,7 @@ var _ MappedNullable = &AnswerApiV1PersonalRankPageGet200ResponseDataAllOf{} // AnswerApiV1PersonalRankPageGet200ResponseDataAllOf struct for AnswerApiV1PersonalRankPageGet200ResponseDataAllOf type AnswerApiV1PersonalRankPageGet200ResponseDataAllOf struct { - List []SchemaGetRankPersonalWithPageResp `json:"list,omitempty"` + List []SchemaGetRankPersonalPageResp `json:"list,omitempty"` } // NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalRankPageGet200ResponseDataAllOf object @@ -40,9 +38,9 @@ func NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults() *Answer } // GetList returns the List field value if set, zero value otherwise. -func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetList() []SchemaGetRankPersonalWithPageResp { +func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetList() []SchemaGetRankPersonalPageResp { if o == nil || IsNil(o.List) { - var ret []SchemaGetRankPersonalWithPageResp + var ret []SchemaGetRankPersonalPageResp return ret } return o.List @@ -50,7 +48,7 @@ func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetList() []SchemaG // 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() ([]SchemaGetRankPersonalWithPageResp, bool) { +func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetListOk() ([]SchemaGetRankPersonalPageResp, bool) { if o == nil || IsNil(o.List) { return nil, false } @@ -66,8 +64,8 @@ func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) HasList() bool { return false } -// SetList gets a reference to the given []SchemaGetRankPersonalWithPageResp and assigns it to the List field. -func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) SetList(v []SchemaGetRankPersonalWithPageResp) { +// SetList gets a reference to the given []SchemaGetRankPersonalPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) SetList(v []SchemaGetRankPersonalPageResp) { o.List = v } 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 81c89c3..5e04208 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 ea091b9..edd92b4 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index 0ac6038..c923f36 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index 8cda187..a0b7417 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 5cdf095..369c7eb 100644 --- a/model__answer_api_v1_question_page_get_200_response.go +++ b/model__answer_api_v1_question_page_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index 04c39ec..cba8140 100644 --- a/model__answer_api_v1_question_page_get_200_response_data.go +++ b/model__answer_api_v1_question_page_get_200_response_data.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index 0834bd9..513c837 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 76d8690..141bd22 100644 --- a/model__answer_api_v1_question_tags_get_200_response.go +++ b/model__answer_api_v1_question_tags_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_api_v1_revisions_get_200_response.go b/model__answer_api_v1_revisions_get_200_response.go index ff07e3e..eaa8da5 100644 --- a/model__answer_api_v1_revisions_get_200_response.go +++ b/model__answer_api_v1_revisions_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 c5c34fb..1e310d6 100644 --- a/model__answer_api_v1_revisions_unreviewed_get_200_response.go +++ b/model__answer_api_v1_revisions_unreviewed_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index a38483a..5aa5d2d 100644 --- a/model__answer_api_v1_revisions_unreviewed_get_200_response_data.go +++ b/model__answer_api_v1_revisions_unreviewed_get_200_response_data.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index e5411d9..edb496d 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_api_v1_search_get_200_response.go b/model__answer_api_v1_search_get_200_response.go index e77e75d..4e9d660 100644 --- a/model__answer_api_v1_search_get_200_response.go +++ b/model__answer_api_v1_search_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_api_v1_siteinfo_get_200_response.go b/model__answer_api_v1_siteinfo_get_200_response.go index 957bd9c..9d35a03 100644 --- a/model__answer_api_v1_siteinfo_get_200_response.go +++ b/model__answer_api_v1_siteinfo_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 07597d8..fcdde03 100644 --- a/model__answer_api_v1_siteinfo_legal_get_200_response.go +++ b/model__answer_api_v1_siteinfo_legal_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__answer_api_v1_tag_get_200_response.go b/model__answer_api_v1_tag_get_200_response.go index d5ca021..40e8f8d 100644 --- a/model__answer_api_v1_tag_get_200_response.go +++ b/model__answer_api_v1_tag_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 25b766a..b4d4562 100644 --- a/model__answer_api_v1_tag_synonyms_get_200_response.go +++ b/model__answer_api_v1_tag_synonyms_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 05322d8..605a0d1 100644 --- a/model__answer_api_v1_tags_following_get_200_response.go +++ b/model__answer_api_v1_tags_following_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 71e9810..7d8cf36 100644 --- a/model__answer_api_v1_tags_page_get_200_response.go +++ b/model__answer_api_v1_tags_page_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index 9d4600d..84b876b 100644 --- a/model__answer_api_v1_tags_page_get_200_response_data.go +++ b/model__answer_api_v1_tags_page_get_200_response_data.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 index 2512abd..d075bc7 100644 --- 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 d8baf2c..6489623 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 bbc9238..ee5ebb4 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 @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +17,7 @@ var _ MappedNullable = &AnswerApiV1UserEmailVerificationPost200Response{} // AnswerApiV1UserEmailVerificationPost200Response struct for AnswerApiV1UserEmailVerificationPost200Response type AnswerApiV1UserEmailVerificationPost200Response struct { - Data *SchemaGetUserResp `json:"data,omitempty"` + Data *SchemaUserLoginResp `json:"data,omitempty"` HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` } @@ -41,9 +39,9 @@ func NewAnswerApiV1UserEmailVerificationPost200ResponseWithDefaults() *AnswerApi } // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1UserEmailVerificationPost200Response) GetData() SchemaGetUserResp { +func (o *AnswerApiV1UserEmailVerificationPost200Response) GetData() SchemaUserLoginResp { if o == nil || IsNil(o.Data) { - var ret SchemaGetUserResp + var ret SchemaUserLoginResp return ret } return *o.Data @@ -51,7 +49,7 @@ func (o *AnswerApiV1UserEmailVerificationPost200Response) GetData() SchemaGetUse // 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 *AnswerApiV1UserEmailVerificationPost200Response) GetDataOk() (*SchemaGetUserResp, bool) { +func (o *AnswerApiV1UserEmailVerificationPost200Response) GetDataOk() (*SchemaUserLoginResp, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -67,8 +65,8 @@ func (o *AnswerApiV1UserEmailVerificationPost200Response) HasData() bool { return false } -// SetData gets a reference to the given SchemaGetUserResp and assigns it to the Data field. -func (o *AnswerApiV1UserEmailVerificationPost200Response) SetData(v SchemaGetUserResp) { +// SetData gets a reference to the given SchemaUserLoginResp and assigns it to the Data field. +func (o *AnswerApiV1UserEmailVerificationPost200Response) SetData(v SchemaUserLoginResp) { o.Data = &v } 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 0ab9690..e5c4477 100644 --- a/model__answer_api_v1_user_info_get_200_response.go +++ b/model__answer_api_v1_user_info_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +17,7 @@ var _ MappedNullable = &AnswerApiV1UserInfoGet200Response{} // AnswerApiV1UserInfoGet200Response struct for AnswerApiV1UserInfoGet200Response type AnswerApiV1UserInfoGet200Response struct { - Data *SchemaGetUserToSetShowResp `json:"data,omitempty"` + Data *SchemaGetCurrentLoginUserInfoResp `json:"data,omitempty"` HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` } @@ -41,9 +39,9 @@ func NewAnswerApiV1UserInfoGet200ResponseWithDefaults() *AnswerApiV1UserInfoGet2 } // GetData returns the Data field value if set, zero value otherwise. -func (o *AnswerApiV1UserInfoGet200Response) GetData() SchemaGetUserToSetShowResp { +func (o *AnswerApiV1UserInfoGet200Response) GetData() SchemaGetCurrentLoginUserInfoResp { if o == nil || IsNil(o.Data) { - var ret SchemaGetUserToSetShowResp + var ret SchemaGetCurrentLoginUserInfoResp return ret } return *o.Data @@ -51,7 +49,7 @@ func (o *AnswerApiV1UserInfoGet200Response) GetData() SchemaGetUserToSetShowResp // 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 *AnswerApiV1UserInfoGet200Response) GetDataOk() (*SchemaGetUserToSetShowResp, bool) { +func (o *AnswerApiV1UserInfoGet200Response) GetDataOk() (*SchemaGetCurrentLoginUserInfoResp, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -67,8 +65,8 @@ func (o *AnswerApiV1UserInfoGet200Response) HasData() bool { return false } -// SetData gets a reference to the given SchemaGetUserToSetShowResp and assigns it to the Data field. -func (o *AnswerApiV1UserInfoGet200Response) SetData(v SchemaGetUserToSetShowResp) { +// SetData gets a reference to the given SchemaGetCurrentLoginUserInfoResp and assigns it to the Data field. +func (o *AnswerApiV1UserInfoGet200Response) SetData(v SchemaGetCurrentLoginUserInfoResp) { o.Data = &v } 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 index f542629..326dbec 100644 --- a/model__answer_api_v1_user_notice_set_post_200_response.go +++ b/model__answer_api_v1_user_notice_set_post_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 1974535..f1042c5 100644 --- a/model__answer_api_v1_user_ranking_get_200_response.go +++ b/model__answer_api_v1_user_ranking_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 6930fb4..1a3161f 100644 --- a/model__answer_api_v1_vote_down_post_200_response.go +++ b/model__answer_api_v1_vote_down_post_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__installation_config_file_check_post_200_response.go b/model__installation_config_file_check_post_200_response.go index def3de7..2045dc7 100644 --- a/model__installation_config_file_check_post_200_response.go +++ b/model__installation_config_file_check_post_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model__installation_language_options_get_200_response.go b/model__installation_language_options_get_200_response.go index 694404f..d1595a4 100644 --- a/model__installation_language_options_get_200_response.go +++ b/model__installation_language_options_get_200_response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_constant_privilege.go b/model_constant_privilege.go new file mode 100644 index 0000000..8429de1 --- /dev/null +++ b/model_constant_privilege.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 openapi + +import ( + "encoding/json" +) + +// checks if the ConstantPrivilege type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConstantPrivilege{} + +// ConstantPrivilege struct for ConstantPrivilege +type ConstantPrivilege struct { + Key *string `json:"key,omitempty"` + Label *string `json:"label,omitempty"` + Value *int32 `json:"value,omitempty"` +} + +// NewConstantPrivilege instantiates a new ConstantPrivilege 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 NewConstantPrivilege() *ConstantPrivilege { + this := ConstantPrivilege{} + return &this +} + +// NewConstantPrivilegeWithDefaults instantiates a new ConstantPrivilege 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 NewConstantPrivilegeWithDefaults() *ConstantPrivilege { + this := ConstantPrivilege{} + return &this +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *ConstantPrivilege) GetKey() string { + if o == nil || IsNil(o.Key) { + var ret string + 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 *ConstantPrivilege) GetKeyOk() (*string, 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 *ConstantPrivilege) HasKey() bool { + if o != nil && !IsNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *ConstantPrivilege) SetKey(v string) { + o.Key = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *ConstantPrivilege) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConstantPrivilege) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *ConstantPrivilege) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *ConstantPrivilege) SetLabel(v string) { + o.Label = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ConstantPrivilege) GetValue() int32 { + if o == nil || IsNil(o.Value) { + var ret int32 + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConstantPrivilege) GetValueOk() (*int32, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ConstantPrivilege) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given int32 and assigns it to the Value field. +func (o *ConstantPrivilege) SetValue(v int32) { + o.Value = &v +} + +func (o ConstantPrivilege) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ConstantPrivilege) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Key) { + toSerialize["key"] = o.Key + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableConstantPrivilege struct { + value *ConstantPrivilege + isSet bool +} + +func (v NullableConstantPrivilege) Get() *ConstantPrivilege { + return v.value +} + +func (v *NullableConstantPrivilege) Set(val *ConstantPrivilege) { + v.value = val + v.isSet = true +} + +func (v NullableConstantPrivilege) IsSet() bool { + return v.isSet +} + +func (v *NullableConstantPrivilege) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableConstantPrivilege(val *ConstantPrivilege) *NullableConstantPrivilege { + return &NullableConstantPrivilege{value: val, isSet: true} +} + +func (v NullableConstantPrivilege) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableConstantPrivilege) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_handler_resp_body.go b/model_handler_resp_body.go index 5b1bbcf..9e36a1e 100644 --- a/model_handler_resp_body.go +++ b/model_handler_resp_body.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_install_check_config_file_resp.go b/model_install_check_config_file_resp.go index 37548ce..22d9ab7 100644 --- a/model_install_check_config_file_resp.go +++ b/model_install_check_config_file_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_install_check_database_req.go b/model_install_check_database_req.go index 8f2a85e..2ac1d11 100644 --- a/model_install_check_database_req.go +++ b/model_install_check_database_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_install_init_base_info_req.go b/model_install_init_base_info_req.go index 29dfd77..f2b7177 100644 --- a/model_install_init_base_info_req.go +++ b/model_install_init_base_info_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_pager_page_model.go b/model_pager_page_model.go index 934ef0f..ef15f2f 100644 --- a/model_pager_page_model.go +++ b/model_pager_page_model.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_act_object_info.go b/model_schema_act_object_info.go index bfd3860..afcee3c 100644 --- a/model_schema_act_object_info.go +++ b/model_schema_act_object_info.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_act_object_timeline.go b/model_schema_act_object_timeline.go index 744276b..47887e0 100644 --- a/model_schema_act_object_timeline.go +++ b/model_schema_act_object_timeline.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_action_record_resp.go b/model_schema_action_record_resp.go index caf7db5..bb6a998 100644 --- a/model_schema_action_record_resp.go +++ b/model_schema_action_record_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_add_comment_req.go b/model_schema_add_comment_req.go index 3317ab8..77200a8 100644 --- a/model_schema_add_comment_req.go +++ b/model_schema_add_comment_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,9 @@ var _ MappedNullable = &SchemaAddCommentReq{} // SchemaAddCommentReq struct for SchemaAddCommentReq type SchemaAddCommentReq struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` // @ user id list MentionUsernameList []string `json:"mention_username_list,omitempty"` // object id @@ -48,6 +49,70 @@ func NewSchemaAddCommentReqWithDefaults() *SchemaAddCommentReq { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaAddCommentReq) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaAddCommentReq) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaAddCommentReq) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaAddCommentReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaAddCommentReq) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaAddCommentReq) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaAddCommentReq) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaAddCommentReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetMentionUsernameList returns the MentionUsernameList field value if set, zero value otherwise. func (o *SchemaAddCommentReq) GetMentionUsernameList() []string { if o == nil || IsNil(o.MentionUsernameList) { @@ -170,6 +235,12 @@ func (o SchemaAddCommentReq) MarshalJSON() ([]byte, error) { func (o SchemaAddCommentReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } if !IsNil(o.MentionUsernameList) { toSerialize["mention_username_list"] = o.MentionUsernameList } diff --git a/model_schema_add_report_req.go b/model_schema_add_report_req.go index ec677e4..a6b6182 100644 --- a/model_schema_add_report_req.go +++ b/model_schema_add_report_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,9 @@ var _ MappedNullable = &SchemaAddReportReq{} // SchemaAddReportReq struct for SchemaAddReportReq type SchemaAddReportReq struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` // report content Content *string `json:"content,omitempty"` // object id @@ -46,6 +47,70 @@ func NewSchemaAddReportReqWithDefaults() *SchemaAddReportReq { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaAddReportReq) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaAddReportReq) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaAddReportReq) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaAddReportReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaAddReportReq) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaAddReportReq) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaAddReportReq) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaAddReportReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetContent returns the Content field value if set, zero value otherwise. func (o *SchemaAddReportReq) GetContent() string { if o == nil || IsNil(o.Content) { @@ -136,6 +201,12 @@ func (o SchemaAddReportReq) MarshalJSON() ([]byte, error) { func (o SchemaAddReportReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } if !IsNil(o.Content) { toSerialize["content"] = o.Content } diff --git a/model_schema_add_tag_req.go b/model_schema_add_tag_req.go index 2ad839b..4129a85 100644 --- a/model_schema_add_tag_req.go +++ b/model_schema_add_tag_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_add_user_req.go b/model_schema_add_user_req.go index d2d6829..7046511 100644 --- a/model_schema_add_user_req.go +++ b/model_schema_add_user_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_admin_set_answer_status_request.go b/model_schema_admin_set_answer_status_request.go index 57a5c71..50e59ca 100644 --- a/model_schema_admin_set_answer_status_request.go +++ b/model_schema_admin_set_answer_status_request.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_admin_set_question_status_request.go b/model_schema_admin_set_question_status_request.go index 8832844..7dc7351 100644 --- a/model_schema_admin_set_question_status_request.go +++ b/model_schema_admin_set_question_status_request.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_answer_accepted_req.go b/model_schema_answer_accepted_req.go index b3d027c..1c8e2d0 100644 --- a/model_schema_answer_accepted_req.go +++ b/model_schema_answer_accepted_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_answer_add_req.go b/model_schema_answer_add_req.go index 2243d7e..2aa2365 100644 --- a/model_schema_answer_add_req.go +++ b/model_schema_answer_add_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,9 @@ 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"` } @@ -41,6 +42,70 @@ func NewSchemaAnswerAddReqWithDefaults() *SchemaAnswerAddReq { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaAnswerAddReq) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaAnswerAddReq) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaAnswerAddReq) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaAnswerAddReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaAnswerAddReq) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaAnswerAddReq) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaAnswerAddReq) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaAnswerAddReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetContent returns the Content field value func (o *SchemaAnswerAddReq) GetContent() string { if o == nil { @@ -107,6 +172,12 @@ func (o SchemaAnswerAddReq) MarshalJSON() ([]byte, error) { func (o SchemaAnswerAddReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } toSerialize["content"] = o.Content if !IsNil(o.QuestionId) { toSerialize["question_id"] = o.QuestionId diff --git a/model_schema_answer_update_req.go b/model_schema_answer_update_req.go index 678b8a1..bd939ce 100644 --- a/model_schema_answer_update_req.go +++ b/model_schema_answer_update_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,9 @@ 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"` Id *string `json:"id,omitempty"` @@ -44,6 +45,70 @@ func NewSchemaAnswerUpdateReqWithDefaults() *SchemaAnswerUpdateReq { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaAnswerUpdateReq) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaAnswerUpdateReq) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaAnswerUpdateReq) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaAnswerUpdateReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaAnswerUpdateReq) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaAnswerUpdateReq) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaAnswerUpdateReq) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaAnswerUpdateReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetContent returns the Content field value func (o *SchemaAnswerUpdateReq) GetContent() string { if o == nil { @@ -206,6 +271,12 @@ func (o SchemaAnswerUpdateReq) MarshalJSON() ([]byte, error) { func (o SchemaAnswerUpdateReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } toSerialize["content"] = o.Content if !IsNil(o.EditSummary) { toSerialize["edit_summary"] = o.EditSummary diff --git a/model_schema_avatar_info.go b/model_schema_avatar_info.go index df47784..a9b1a3f 100644 --- a/model_schema_avatar_info.go +++ b/model_schema_avatar_info.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_close_question_req.go b/model_schema_close_question_req.go index e218af0..18009d2 100644 --- a/model_schema_close_question_req.go +++ b/model_schema_close_question_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_collection_switch_req.go b/model_schema_collection_switch_req.go index 7d7e04f..023c474 100644 --- a/model_schema_collection_switch_req.go +++ b/model_schema_collection_switch_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_collection_switch_resp.go b/model_schema_collection_switch_resp.go index b4bf89d..0f0f14d 100644 --- a/model_schema_collection_switch_resp.go +++ b/model_schema_collection_switch_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_config_field.go b/model_schema_config_field.go new file mode 100644 index 0000000..8da3fef --- /dev/null +++ b/model_schema_config_field.go @@ -0,0 +1,376 @@ +/* +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 SchemaConfigField type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaConfigField{} + +// SchemaConfigField struct for SchemaConfigField +type SchemaConfigField struct { + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + Options []SchemaConfigFieldOption `json:"options,omitempty"` + Required *bool `json:"required,omitempty"` + Title *string `json:"title,omitempty"` + Type *string `json:"type,omitempty"` + UiOptions *SchemaConfigFieldUIOptions `json:"ui_options,omitempty"` + Value map[string]interface{} `json:"value,omitempty"` +} + +// NewSchemaConfigField instantiates a new SchemaConfigField 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 NewSchemaConfigField() *SchemaConfigField { + this := SchemaConfigField{} + return &this +} + +// NewSchemaConfigFieldWithDefaults instantiates a new SchemaConfigField 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 NewSchemaConfigFieldWithDefaults() *SchemaConfigField { + this := SchemaConfigField{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SchemaConfigField) 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 *SchemaConfigField) 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 *SchemaConfigField) 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 *SchemaConfigField) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SchemaConfigField) 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 *SchemaConfigField) 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 *SchemaConfigField) 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 *SchemaConfigField) SetName(v string) { + o.Name = &v +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *SchemaConfigField) GetOptions() []SchemaConfigFieldOption { + if o == nil || IsNil(o.Options) { + var ret []SchemaConfigFieldOption + return ret + } + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigField) GetOptionsOk() ([]SchemaConfigFieldOption, bool) { + if o == nil || IsNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *SchemaConfigField) HasOptions() bool { + if o != nil && !IsNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given []SchemaConfigFieldOption and assigns it to the Options field. +func (o *SchemaConfigField) SetOptions(v []SchemaConfigFieldOption) { + o.Options = v +} + +// GetRequired returns the Required field value if set, zero value otherwise. +func (o *SchemaConfigField) GetRequired() bool { + if o == nil || IsNil(o.Required) { + var ret bool + return ret + } + return *o.Required +} + +// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigField) GetRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.Required) { + return nil, false + } + return o.Required, true +} + +// HasRequired returns a boolean if a field has been set. +func (o *SchemaConfigField) HasRequired() bool { + if o != nil && !IsNil(o.Required) { + return true + } + + return false +} + +// SetRequired gets a reference to the given bool and assigns it to the Required field. +func (o *SchemaConfigField) SetRequired(v bool) { + o.Required = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaConfigField) 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 *SchemaConfigField) 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 *SchemaConfigField) 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 *SchemaConfigField) SetTitle(v string) { + o.Title = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SchemaConfigField) 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 *SchemaConfigField) 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 *SchemaConfigField) 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 *SchemaConfigField) SetType(v string) { + o.Type = &v +} + +// GetUiOptions returns the UiOptions field value if set, zero value otherwise. +func (o *SchemaConfigField) GetUiOptions() SchemaConfigFieldUIOptions { + if o == nil || IsNil(o.UiOptions) { + var ret SchemaConfigFieldUIOptions + return ret + } + return *o.UiOptions +} + +// GetUiOptionsOk returns a tuple with the UiOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigField) GetUiOptionsOk() (*SchemaConfigFieldUIOptions, bool) { + if o == nil || IsNil(o.UiOptions) { + return nil, false + } + return o.UiOptions, true +} + +// HasUiOptions returns a boolean if a field has been set. +func (o *SchemaConfigField) HasUiOptions() bool { + if o != nil && !IsNil(o.UiOptions) { + return true + } + + return false +} + +// SetUiOptions gets a reference to the given SchemaConfigFieldUIOptions and assigns it to the UiOptions field. +func (o *SchemaConfigField) SetUiOptions(v SchemaConfigFieldUIOptions) { + o.UiOptions = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *SchemaConfigField) GetValue() map[string]interface{} { + if o == nil || IsNil(o.Value) { + var ret map[string]interface{} + return ret + } + return o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigField) GetValueOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Value) { + return map[string]interface{}{}, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *SchemaConfigField) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given map[string]interface{} and assigns it to the Value field. +func (o *SchemaConfigField) SetValue(v map[string]interface{}) { + o.Value = v +} + +func (o SchemaConfigField) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaConfigField) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Options) { + toSerialize["options"] = o.Options + } + if !IsNil(o.Required) { + toSerialize["required"] = o.Required + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UiOptions) { + toSerialize["ui_options"] = o.UiOptions + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableSchemaConfigField struct { + value *SchemaConfigField + isSet bool +} + +func (v NullableSchemaConfigField) Get() *SchemaConfigField { + return v.value +} + +func (v *NullableSchemaConfigField) Set(val *SchemaConfigField) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaConfigField) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaConfigField) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaConfigField(val *SchemaConfigField) *NullableSchemaConfigField { + return &NullableSchemaConfigField{value: val, isSet: true} +} + +func (v NullableSchemaConfigField) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaConfigField) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_config_field_option.go b/model_schema_config_field_option.go new file mode 100644 index 0000000..604f061 --- /dev/null +++ b/model_schema_config_field_option.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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaConfigFieldOption type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaConfigFieldOption{} + +// SchemaConfigFieldOption struct for SchemaConfigFieldOption +type SchemaConfigFieldOption struct { + Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` +} + +// NewSchemaConfigFieldOption instantiates a new SchemaConfigFieldOption 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 NewSchemaConfigFieldOption() *SchemaConfigFieldOption { + this := SchemaConfigFieldOption{} + return &this +} + +// NewSchemaConfigFieldOptionWithDefaults instantiates a new SchemaConfigFieldOption 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 NewSchemaConfigFieldOptionWithDefaults() *SchemaConfigFieldOption { + this := SchemaConfigFieldOption{} + return &this +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *SchemaConfigFieldOption) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigFieldOption) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *SchemaConfigFieldOption) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *SchemaConfigFieldOption) SetLabel(v string) { + o.Label = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *SchemaConfigFieldOption) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigFieldOption) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *SchemaConfigFieldOption) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *SchemaConfigFieldOption) SetValue(v string) { + o.Value = &v +} + +func (o SchemaConfigFieldOption) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaConfigFieldOption) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableSchemaConfigFieldOption struct { + value *SchemaConfigFieldOption + isSet bool +} + +func (v NullableSchemaConfigFieldOption) Get() *SchemaConfigFieldOption { + return v.value +} + +func (v *NullableSchemaConfigFieldOption) Set(val *SchemaConfigFieldOption) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaConfigFieldOption) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaConfigFieldOption) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaConfigFieldOption(val *SchemaConfigFieldOption) *NullableSchemaConfigFieldOption { + return &NullableSchemaConfigFieldOption{value: val, isSet: true} +} + +func (v NullableSchemaConfigFieldOption) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaConfigFieldOption) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_config_field_ui_options.go b/model_schema_config_field_ui_options.go new file mode 100644 index 0000000..188e3e7 --- /dev/null +++ b/model_schema_config_field_ui_options.go @@ -0,0 +1,340 @@ +/* +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 SchemaConfigFieldUIOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaConfigFieldUIOptions{} + +// SchemaConfigFieldUIOptions struct for SchemaConfigFieldUIOptions +type SchemaConfigFieldUIOptions struct { + Action *SchemaUIOptionAction `json:"action,omitempty"` + InputType *string `json:"input_type,omitempty"` + Label *string `json:"label,omitempty"` + Placeholder *string `json:"placeholder,omitempty"` + Rows *string `json:"rows,omitempty"` + Text *string `json:"text,omitempty"` + Variant *string `json:"variant,omitempty"` +} + +// NewSchemaConfigFieldUIOptions instantiates a new SchemaConfigFieldUIOptions 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 NewSchemaConfigFieldUIOptions() *SchemaConfigFieldUIOptions { + this := SchemaConfigFieldUIOptions{} + return &this +} + +// NewSchemaConfigFieldUIOptionsWithDefaults instantiates a new SchemaConfigFieldUIOptions 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 NewSchemaConfigFieldUIOptionsWithDefaults() *SchemaConfigFieldUIOptions { + this := SchemaConfigFieldUIOptions{} + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *SchemaConfigFieldUIOptions) GetAction() SchemaUIOptionAction { + if o == nil || IsNil(o.Action) { + var ret SchemaUIOptionAction + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigFieldUIOptions) GetActionOk() (*SchemaUIOptionAction, bool) { + if o == nil || IsNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *SchemaConfigFieldUIOptions) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given SchemaUIOptionAction and assigns it to the Action field. +func (o *SchemaConfigFieldUIOptions) SetAction(v SchemaUIOptionAction) { + o.Action = &v +} + +// GetInputType returns the InputType field value if set, zero value otherwise. +func (o *SchemaConfigFieldUIOptions) GetInputType() string { + if o == nil || IsNil(o.InputType) { + var ret string + return ret + } + return *o.InputType +} + +// GetInputTypeOk returns a tuple with the InputType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigFieldUIOptions) GetInputTypeOk() (*string, bool) { + if o == nil || IsNil(o.InputType) { + return nil, false + } + return o.InputType, true +} + +// HasInputType returns a boolean if a field has been set. +func (o *SchemaConfigFieldUIOptions) HasInputType() bool { + if o != nil && !IsNil(o.InputType) { + return true + } + + return false +} + +// SetInputType gets a reference to the given string and assigns it to the InputType field. +func (o *SchemaConfigFieldUIOptions) SetInputType(v string) { + o.InputType = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *SchemaConfigFieldUIOptions) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigFieldUIOptions) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *SchemaConfigFieldUIOptions) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *SchemaConfigFieldUIOptions) SetLabel(v string) { + o.Label = &v +} + +// GetPlaceholder returns the Placeholder field value if set, zero value otherwise. +func (o *SchemaConfigFieldUIOptions) GetPlaceholder() string { + if o == nil || IsNil(o.Placeholder) { + var ret string + return ret + } + return *o.Placeholder +} + +// GetPlaceholderOk returns a tuple with the Placeholder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigFieldUIOptions) GetPlaceholderOk() (*string, bool) { + if o == nil || IsNil(o.Placeholder) { + return nil, false + } + return o.Placeholder, true +} + +// HasPlaceholder returns a boolean if a field has been set. +func (o *SchemaConfigFieldUIOptions) HasPlaceholder() bool { + if o != nil && !IsNil(o.Placeholder) { + return true + } + + return false +} + +// SetPlaceholder gets a reference to the given string and assigns it to the Placeholder field. +func (o *SchemaConfigFieldUIOptions) SetPlaceholder(v string) { + o.Placeholder = &v +} + +// GetRows returns the Rows field value if set, zero value otherwise. +func (o *SchemaConfigFieldUIOptions) GetRows() string { + if o == nil || IsNil(o.Rows) { + var ret string + return ret + } + return *o.Rows +} + +// GetRowsOk returns a tuple with the Rows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigFieldUIOptions) GetRowsOk() (*string, bool) { + if o == nil || IsNil(o.Rows) { + return nil, false + } + return o.Rows, true +} + +// HasRows returns a boolean if a field has been set. +func (o *SchemaConfigFieldUIOptions) HasRows() bool { + if o != nil && !IsNil(o.Rows) { + return true + } + + return false +} + +// SetRows gets a reference to the given string and assigns it to the Rows field. +func (o *SchemaConfigFieldUIOptions) SetRows(v string) { + o.Rows = &v +} + +// GetText returns the Text field value if set, zero value otherwise. +func (o *SchemaConfigFieldUIOptions) GetText() string { + if o == nil || IsNil(o.Text) { + var ret string + return ret + } + return *o.Text +} + +// GetTextOk returns a tuple with the Text field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigFieldUIOptions) GetTextOk() (*string, bool) { + if o == nil || IsNil(o.Text) { + return nil, false + } + return o.Text, true +} + +// HasText returns a boolean if a field has been set. +func (o *SchemaConfigFieldUIOptions) HasText() bool { + if o != nil && !IsNil(o.Text) { + return true + } + + return false +} + +// SetText gets a reference to the given string and assigns it to the Text field. +func (o *SchemaConfigFieldUIOptions) SetText(v string) { + o.Text = &v +} + +// GetVariant returns the Variant field value if set, zero value otherwise. +func (o *SchemaConfigFieldUIOptions) GetVariant() string { + if o == nil || IsNil(o.Variant) { + var ret string + return ret + } + return *o.Variant +} + +// GetVariantOk returns a tuple with the Variant field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConfigFieldUIOptions) GetVariantOk() (*string, bool) { + if o == nil || IsNil(o.Variant) { + return nil, false + } + return o.Variant, true +} + +// HasVariant returns a boolean if a field has been set. +func (o *SchemaConfigFieldUIOptions) HasVariant() bool { + if o != nil && !IsNil(o.Variant) { + return true + } + + return false +} + +// SetVariant gets a reference to the given string and assigns it to the Variant field. +func (o *SchemaConfigFieldUIOptions) SetVariant(v string) { + o.Variant = &v +} + +func (o SchemaConfigFieldUIOptions) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaConfigFieldUIOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + if !IsNil(o.InputType) { + toSerialize["input_type"] = o.InputType + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Placeholder) { + toSerialize["placeholder"] = o.Placeholder + } + if !IsNil(o.Rows) { + toSerialize["rows"] = o.Rows + } + if !IsNil(o.Text) { + toSerialize["text"] = o.Text + } + if !IsNil(o.Variant) { + toSerialize["variant"] = o.Variant + } + return toSerialize, nil +} + +type NullableSchemaConfigFieldUIOptions struct { + value *SchemaConfigFieldUIOptions + isSet bool +} + +func (v NullableSchemaConfigFieldUIOptions) Get() *SchemaConfigFieldUIOptions { + return v.value +} + +func (v *NullableSchemaConfigFieldUIOptions) Set(val *SchemaConfigFieldUIOptions) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaConfigFieldUIOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaConfigFieldUIOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaConfigFieldUIOptions(val *SchemaConfigFieldUIOptions) *NullableSchemaConfigFieldUIOptions { + return &NullableSchemaConfigFieldUIOptions{value: val, isSet: true} +} + +func (v NullableSchemaConfigFieldUIOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaConfigFieldUIOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_connector_info_resp.go b/model_schema_connector_info_resp.go new file mode 100644 index 0000000..f1480e5 --- /dev/null +++ b/model_schema_connector_info_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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaConnectorInfoResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaConnectorInfoResp{} + +// SchemaConnectorInfoResp struct for SchemaConnectorInfoResp +type SchemaConnectorInfoResp struct { + Icon *string `json:"icon,omitempty"` + Link *string `json:"link,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewSchemaConnectorInfoResp instantiates a new SchemaConnectorInfoResp 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 NewSchemaConnectorInfoResp() *SchemaConnectorInfoResp { + this := SchemaConnectorInfoResp{} + return &this +} + +// NewSchemaConnectorInfoRespWithDefaults instantiates a new SchemaConnectorInfoResp 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 NewSchemaConnectorInfoRespWithDefaults() *SchemaConnectorInfoResp { + this := SchemaConnectorInfoResp{} + return &this +} + +// GetIcon returns the Icon field value if set, zero value otherwise. +func (o *SchemaConnectorInfoResp) GetIcon() string { + if o == nil || IsNil(o.Icon) { + var ret string + return ret + } + return *o.Icon +} + +// GetIconOk returns a tuple with the Icon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConnectorInfoResp) GetIconOk() (*string, bool) { + if o == nil || IsNil(o.Icon) { + return nil, false + } + return o.Icon, true +} + +// HasIcon returns a boolean if a field has been set. +func (o *SchemaConnectorInfoResp) HasIcon() bool { + if o != nil && !IsNil(o.Icon) { + return true + } + + return false +} + +// SetIcon gets a reference to the given string and assigns it to the Icon field. +func (o *SchemaConnectorInfoResp) SetIcon(v string) { + o.Icon = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *SchemaConnectorInfoResp) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConnectorInfoResp) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *SchemaConnectorInfoResp) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *SchemaConnectorInfoResp) SetLink(v string) { + o.Link = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) 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 *SchemaConnectorInfoResp) SetName(v string) { + o.Name = &v +} + +func (o SchemaConnectorInfoResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaConnectorInfoResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Icon) { + toSerialize["icon"] = o.Icon + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableSchemaConnectorInfoResp struct { + value *SchemaConnectorInfoResp + isSet bool +} + +func (v NullableSchemaConnectorInfoResp) Get() *SchemaConnectorInfoResp { + return v.value +} + +func (v *NullableSchemaConnectorInfoResp) Set(val *SchemaConnectorInfoResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaConnectorInfoResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaConnectorInfoResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaConnectorInfoResp(val *SchemaConnectorInfoResp) *NullableSchemaConnectorInfoResp { + return &NullableSchemaConnectorInfoResp{value: val, isSet: true} +} + +func (v NullableSchemaConnectorInfoResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaConnectorInfoResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_connector_user_info_resp.go b/model_schema_connector_user_info_resp.go new file mode 100644 index 0000000..0c8de93 --- /dev/null +++ b/model_schema_connector_user_info_resp.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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaConnectorUserInfoResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaConnectorUserInfoResp{} + +// SchemaConnectorUserInfoResp struct for SchemaConnectorUserInfoResp +type SchemaConnectorUserInfoResp struct { + Binding *bool `json:"binding,omitempty"` + ExternalId *string `json:"external_id,omitempty"` + Icon *string `json:"icon,omitempty"` + Link *string `json:"link,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewSchemaConnectorUserInfoResp instantiates a new SchemaConnectorUserInfoResp 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 NewSchemaConnectorUserInfoResp() *SchemaConnectorUserInfoResp { + this := SchemaConnectorUserInfoResp{} + return &this +} + +// NewSchemaConnectorUserInfoRespWithDefaults instantiates a new SchemaConnectorUserInfoResp 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 NewSchemaConnectorUserInfoRespWithDefaults() *SchemaConnectorUserInfoResp { + this := SchemaConnectorUserInfoResp{} + return &this +} + +// GetBinding returns the Binding field value if set, zero value otherwise. +func (o *SchemaConnectorUserInfoResp) GetBinding() bool { + if o == nil || IsNil(o.Binding) { + var ret bool + return ret + } + return *o.Binding +} + +// GetBindingOk returns a tuple with the Binding field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConnectorUserInfoResp) GetBindingOk() (*bool, bool) { + if o == nil || IsNil(o.Binding) { + return nil, false + } + return o.Binding, true +} + +// HasBinding returns a boolean if a field has been set. +func (o *SchemaConnectorUserInfoResp) HasBinding() bool { + if o != nil && !IsNil(o.Binding) { + return true + } + + return false +} + +// SetBinding gets a reference to the given bool and assigns it to the Binding field. +func (o *SchemaConnectorUserInfoResp) SetBinding(v bool) { + o.Binding = &v +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *SchemaConnectorUserInfoResp) GetExternalId() string { + if o == nil || IsNil(o.ExternalId) { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConnectorUserInfoResp) GetExternalIdOk() (*string, bool) { + if o == nil || IsNil(o.ExternalId) { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *SchemaConnectorUserInfoResp) HasExternalId() bool { + if o != nil && !IsNil(o.ExternalId) { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *SchemaConnectorUserInfoResp) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetIcon returns the Icon field value if set, zero value otherwise. +func (o *SchemaConnectorUserInfoResp) GetIcon() string { + if o == nil || IsNil(o.Icon) { + var ret string + return ret + } + return *o.Icon +} + +// GetIconOk returns a tuple with the Icon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConnectorUserInfoResp) GetIconOk() (*string, bool) { + if o == nil || IsNil(o.Icon) { + return nil, false + } + return o.Icon, true +} + +// HasIcon returns a boolean if a field has been set. +func (o *SchemaConnectorUserInfoResp) HasIcon() bool { + if o != nil && !IsNil(o.Icon) { + return true + } + + return false +} + +// SetIcon gets a reference to the given string and assigns it to the Icon field. +func (o *SchemaConnectorUserInfoResp) SetIcon(v string) { + o.Icon = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *SchemaConnectorUserInfoResp) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaConnectorUserInfoResp) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *SchemaConnectorUserInfoResp) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *SchemaConnectorUserInfoResp) SetLink(v string) { + o.Link = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SchemaConnectorUserInfoResp) 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 *SchemaConnectorUserInfoResp) 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 *SchemaConnectorUserInfoResp) 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 *SchemaConnectorUserInfoResp) SetName(v string) { + o.Name = &v +} + +func (o SchemaConnectorUserInfoResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaConnectorUserInfoResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Binding) { + toSerialize["binding"] = o.Binding + } + if !IsNil(o.ExternalId) { + toSerialize["external_id"] = o.ExternalId + } + if !IsNil(o.Icon) { + toSerialize["icon"] = o.Icon + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableSchemaConnectorUserInfoResp struct { + value *SchemaConnectorUserInfoResp + isSet bool +} + +func (v NullableSchemaConnectorUserInfoResp) Get() *SchemaConnectorUserInfoResp { + return v.value +} + +func (v *NullableSchemaConnectorUserInfoResp) Set(val *SchemaConnectorUserInfoResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaConnectorUserInfoResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaConnectorUserInfoResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaConnectorUserInfoResp(val *SchemaConnectorUserInfoResp) *NullableSchemaConnectorUserInfoResp { + return &NullableSchemaConnectorUserInfoResp{value: val, isSet: true} +} + +func (v NullableSchemaConnectorUserInfoResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaConnectorUserInfoResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_external_login_binding_user_send_email_req.go b/model_schema_external_login_binding_user_send_email_req.go new file mode 100644 index 0000000..7e84dff --- /dev/null +++ b/model_schema_external_login_binding_user_send_email_req.go @@ -0,0 +1,179 @@ +/* +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 SchemaExternalLoginBindingUserSendEmailReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaExternalLoginBindingUserSendEmailReq{} + +// SchemaExternalLoginBindingUserSendEmailReq struct for SchemaExternalLoginBindingUserSendEmailReq +type SchemaExternalLoginBindingUserSendEmailReq struct { + BindingKey string `json:"binding_key"` + Email string `json:"email"` + // If must is true, whatever email if exists, try to bind user. If must is false, when email exist, will only be prompted with a warning. + Must *bool `json:"must,omitempty"` +} + +// NewSchemaExternalLoginBindingUserSendEmailReq instantiates a new SchemaExternalLoginBindingUserSendEmailReq 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 NewSchemaExternalLoginBindingUserSendEmailReq(bindingKey string, email string) *SchemaExternalLoginBindingUserSendEmailReq { + this := SchemaExternalLoginBindingUserSendEmailReq{} + this.BindingKey = bindingKey + this.Email = email + return &this +} + +// NewSchemaExternalLoginBindingUserSendEmailReqWithDefaults instantiates a new SchemaExternalLoginBindingUserSendEmailReq 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 NewSchemaExternalLoginBindingUserSendEmailReqWithDefaults() *SchemaExternalLoginBindingUserSendEmailReq { + this := SchemaExternalLoginBindingUserSendEmailReq{} + return &this +} + +// GetBindingKey returns the BindingKey field value +func (o *SchemaExternalLoginBindingUserSendEmailReq) GetBindingKey() string { + if o == nil { + var ret string + return ret + } + + return o.BindingKey +} + +// GetBindingKeyOk returns a tuple with the BindingKey field value +// and a boolean to check if the value has been set. +func (o *SchemaExternalLoginBindingUserSendEmailReq) GetBindingKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BindingKey, true +} + +// SetBindingKey sets field value +func (o *SchemaExternalLoginBindingUserSendEmailReq) SetBindingKey(v string) { + o.BindingKey = v +} + +// GetEmail returns the Email field value +func (o *SchemaExternalLoginBindingUserSendEmailReq) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *SchemaExternalLoginBindingUserSendEmailReq) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *SchemaExternalLoginBindingUserSendEmailReq) SetEmail(v string) { + o.Email = v +} + +// GetMust returns the Must field value if set, zero value otherwise. +func (o *SchemaExternalLoginBindingUserSendEmailReq) GetMust() bool { + if o == nil || IsNil(o.Must) { + var ret bool + return ret + } + return *o.Must +} + +// GetMustOk returns a tuple with the Must field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaExternalLoginBindingUserSendEmailReq) GetMustOk() (*bool, bool) { + if o == nil || IsNil(o.Must) { + return nil, false + } + return o.Must, true +} + +// HasMust returns a boolean if a field has been set. +func (o *SchemaExternalLoginBindingUserSendEmailReq) HasMust() bool { + if o != nil && !IsNil(o.Must) { + return true + } + + return false +} + +// SetMust gets a reference to the given bool and assigns it to the Must field. +func (o *SchemaExternalLoginBindingUserSendEmailReq) SetMust(v bool) { + o.Must = &v +} + +func (o SchemaExternalLoginBindingUserSendEmailReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaExternalLoginBindingUserSendEmailReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["binding_key"] = o.BindingKey + toSerialize["email"] = o.Email + if !IsNil(o.Must) { + toSerialize["must"] = o.Must + } + return toSerialize, nil +} + +type NullableSchemaExternalLoginBindingUserSendEmailReq struct { + value *SchemaExternalLoginBindingUserSendEmailReq + isSet bool +} + +func (v NullableSchemaExternalLoginBindingUserSendEmailReq) Get() *SchemaExternalLoginBindingUserSendEmailReq { + return v.value +} + +func (v *NullableSchemaExternalLoginBindingUserSendEmailReq) Set(val *SchemaExternalLoginBindingUserSendEmailReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaExternalLoginBindingUserSendEmailReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaExternalLoginBindingUserSendEmailReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaExternalLoginBindingUserSendEmailReq(val *SchemaExternalLoginBindingUserSendEmailReq) *NullableSchemaExternalLoginBindingUserSendEmailReq { + return &NullableSchemaExternalLoginBindingUserSendEmailReq{value: val, isSet: true} +} + +func (v NullableSchemaExternalLoginBindingUserSendEmailReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaExternalLoginBindingUserSendEmailReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_external_login_binding_user_send_email_resp.go b/model_schema_external_login_binding_user_send_email_resp.go new file mode 100644 index 0000000..9d5f09c --- /dev/null +++ b/model_schema_external_login_binding_user_send_email_resp.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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaExternalLoginBindingUserSendEmailResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaExternalLoginBindingUserSendEmailResp{} + +// SchemaExternalLoginBindingUserSendEmailResp struct for SchemaExternalLoginBindingUserSendEmailResp +type SchemaExternalLoginBindingUserSendEmailResp struct { + AccessToken *string `json:"access_token,omitempty"` + EmailExistAndMustBeConfirmed *bool `json:"email_exist_and_must_be_confirmed,omitempty"` +} + +// NewSchemaExternalLoginBindingUserSendEmailResp instantiates a new SchemaExternalLoginBindingUserSendEmailResp 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 NewSchemaExternalLoginBindingUserSendEmailResp() *SchemaExternalLoginBindingUserSendEmailResp { + this := SchemaExternalLoginBindingUserSendEmailResp{} + return &this +} + +// NewSchemaExternalLoginBindingUserSendEmailRespWithDefaults instantiates a new SchemaExternalLoginBindingUserSendEmailResp 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 NewSchemaExternalLoginBindingUserSendEmailRespWithDefaults() *SchemaExternalLoginBindingUserSendEmailResp { + this := SchemaExternalLoginBindingUserSendEmailResp{} + return &this +} + +// GetAccessToken returns the AccessToken field value if set, zero value otherwise. +func (o *SchemaExternalLoginBindingUserSendEmailResp) 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 *SchemaExternalLoginBindingUserSendEmailResp) 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 *SchemaExternalLoginBindingUserSendEmailResp) 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 *SchemaExternalLoginBindingUserSendEmailResp) SetAccessToken(v string) { + o.AccessToken = &v +} + +// GetEmailExistAndMustBeConfirmed returns the EmailExistAndMustBeConfirmed field value if set, zero value otherwise. +func (o *SchemaExternalLoginBindingUserSendEmailResp) GetEmailExistAndMustBeConfirmed() bool { + if o == nil || IsNil(o.EmailExistAndMustBeConfirmed) { + var ret bool + return ret + } + return *o.EmailExistAndMustBeConfirmed +} + +// GetEmailExistAndMustBeConfirmedOk returns a tuple with the EmailExistAndMustBeConfirmed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaExternalLoginBindingUserSendEmailResp) GetEmailExistAndMustBeConfirmedOk() (*bool, bool) { + if o == nil || IsNil(o.EmailExistAndMustBeConfirmed) { + return nil, false + } + return o.EmailExistAndMustBeConfirmed, true +} + +// HasEmailExistAndMustBeConfirmed returns a boolean if a field has been set. +func (o *SchemaExternalLoginBindingUserSendEmailResp) HasEmailExistAndMustBeConfirmed() bool { + if o != nil && !IsNil(o.EmailExistAndMustBeConfirmed) { + return true + } + + return false +} + +// SetEmailExistAndMustBeConfirmed gets a reference to the given bool and assigns it to the EmailExistAndMustBeConfirmed field. +func (o *SchemaExternalLoginBindingUserSendEmailResp) SetEmailExistAndMustBeConfirmed(v bool) { + o.EmailExistAndMustBeConfirmed = &v +} + +func (o SchemaExternalLoginBindingUserSendEmailResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaExternalLoginBindingUserSendEmailResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccessToken) { + toSerialize["access_token"] = o.AccessToken + } + if !IsNil(o.EmailExistAndMustBeConfirmed) { + toSerialize["email_exist_and_must_be_confirmed"] = o.EmailExistAndMustBeConfirmed + } + return toSerialize, nil +} + +type NullableSchemaExternalLoginBindingUserSendEmailResp struct { + value *SchemaExternalLoginBindingUserSendEmailResp + isSet bool +} + +func (v NullableSchemaExternalLoginBindingUserSendEmailResp) Get() *SchemaExternalLoginBindingUserSendEmailResp { + return v.value +} + +func (v *NullableSchemaExternalLoginBindingUserSendEmailResp) Set(val *SchemaExternalLoginBindingUserSendEmailResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaExternalLoginBindingUserSendEmailResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaExternalLoginBindingUserSendEmailResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaExternalLoginBindingUserSendEmailResp(val *SchemaExternalLoginBindingUserSendEmailResp) *NullableSchemaExternalLoginBindingUserSendEmailResp { + return &NullableSchemaExternalLoginBindingUserSendEmailResp{value: val, isSet: true} +} + +func (v NullableSchemaExternalLoginBindingUserSendEmailResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaExternalLoginBindingUserSendEmailResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_external_login_unbinding_req.go b/model_schema_external_login_unbinding_req.go new file mode 100644 index 0000000..9d019f3 --- /dev/null +++ b/model_schema_external_login_unbinding_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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaExternalLoginUnbindingReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaExternalLoginUnbindingReq{} + +// SchemaExternalLoginUnbindingReq struct for SchemaExternalLoginUnbindingReq +type SchemaExternalLoginUnbindingReq struct { + ExternalId string `json:"external_id"` +} + +// NewSchemaExternalLoginUnbindingReq instantiates a new SchemaExternalLoginUnbindingReq 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 NewSchemaExternalLoginUnbindingReq(externalId string) *SchemaExternalLoginUnbindingReq { + this := SchemaExternalLoginUnbindingReq{} + this.ExternalId = externalId + return &this +} + +// NewSchemaExternalLoginUnbindingReqWithDefaults instantiates a new SchemaExternalLoginUnbindingReq 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 NewSchemaExternalLoginUnbindingReqWithDefaults() *SchemaExternalLoginUnbindingReq { + this := SchemaExternalLoginUnbindingReq{} + return &this +} + +// GetExternalId returns the ExternalId field value +func (o *SchemaExternalLoginUnbindingReq) GetExternalId() string { + if o == nil { + var ret string + return ret + } + + return o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value +// and a boolean to check if the value has been set. +func (o *SchemaExternalLoginUnbindingReq) GetExternalIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ExternalId, true +} + +// SetExternalId sets field value +func (o *SchemaExternalLoginUnbindingReq) SetExternalId(v string) { + o.ExternalId = v +} + +func (o SchemaExternalLoginUnbindingReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaExternalLoginUnbindingReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["external_id"] = o.ExternalId + return toSerialize, nil +} + +type NullableSchemaExternalLoginUnbindingReq struct { + value *SchemaExternalLoginUnbindingReq + isSet bool +} + +func (v NullableSchemaExternalLoginUnbindingReq) Get() *SchemaExternalLoginUnbindingReq { + return v.value +} + +func (v *NullableSchemaExternalLoginUnbindingReq) Set(val *SchemaExternalLoginUnbindingReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaExternalLoginUnbindingReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaExternalLoginUnbindingReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaExternalLoginUnbindingReq(val *SchemaExternalLoginUnbindingReq) *NullableSchemaExternalLoginUnbindingReq { + return &NullableSchemaExternalLoginUnbindingReq{value: val, isSet: true} +} + +func (v NullableSchemaExternalLoginUnbindingReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaExternalLoginUnbindingReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_follow_req.go b/model_schema_follow_req.go index 1bc2170..09cd9d1 100644 --- a/model_schema_follow_req.go +++ b/model_schema_follow_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_follow_resp.go b/model_schema_follow_resp.go index bf98945..f5af988 100644 --- a/model_schema_follow_resp.go +++ b/model_schema_follow_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_comment_personal_with_page_resp.go b/model_schema_get_comment_personal_with_page_resp.go index 499e8da..b35bda4 100644 --- a/model_schema_get_comment_personal_with_page_resp.go +++ b/model_schema_get_comment_personal_with_page_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_comment_resp.go b/model_schema_get_comment_resp.go index 625653c..d6578dc 100644 --- a/model_schema_get_comment_resp.go +++ b/model_schema_get_comment_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_current_login_user_info_resp.go b/model_schema_get_current_login_user_info_resp.go new file mode 100644 index 0000000..86a770a --- /dev/null +++ b/model_schema_get_current_login_user_info_resp.go @@ -0,0 +1,1011 @@ +/* +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 SchemaGetCurrentLoginUserInfoResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetCurrentLoginUserInfoResp{} + +// SchemaGetCurrentLoginUserInfoResp struct for SchemaGetCurrentLoginUserInfoResp +type SchemaGetCurrentLoginUserInfoResp 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"` + HavePassword *bool `json:"have_password,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"` +} + +// NewSchemaGetCurrentLoginUserInfoResp instantiates a new SchemaGetCurrentLoginUserInfoResp 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 NewSchemaGetCurrentLoginUserInfoResp() *SchemaGetCurrentLoginUserInfoResp { + this := SchemaGetCurrentLoginUserInfoResp{} + return &this +} + +// NewSchemaGetCurrentLoginUserInfoRespWithDefaults instantiates a new SchemaGetCurrentLoginUserInfoResp 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 NewSchemaGetCurrentLoginUserInfoRespWithDefaults() *SchemaGetCurrentLoginUserInfoResp { + this := SchemaGetCurrentLoginUserInfoResp{} + return &this +} + +// GetAccessToken returns the AccessToken field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetAccessToken(v string) { + o.AccessToken = &v +} + +// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetAnswerCount(v int32) { + o.AnswerCount = &v +} + +// GetAuthorityGroup returns the AuthorityGroup field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetAuthorityGroup(v int32) { + o.AuthorityGroup = &v +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetAvatar(v SchemaAvatarInfo) { + o.Avatar = &v +} + +// GetBio returns the Bio field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetBio(v string) { + o.Bio = &v +} + +// GetBioHtml returns the BioHtml field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetBioHtml(v string) { + o.BioHtml = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetEMail returns the EMail field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetEMail(v string) { + o.EMail = &v +} + +// GetFollowCount returns the FollowCount field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetFollowCount(v int32) { + o.FollowCount = &v +} + +// GetHavePassword returns the HavePassword field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) GetHavePassword() bool { + if o == nil || IsNil(o.HavePassword) { + var ret bool + return ret + } + return *o.HavePassword +} + +// GetHavePasswordOk returns a tuple with the HavePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCurrentLoginUserInfoResp) GetHavePasswordOk() (*bool, bool) { + if o == nil || IsNil(o.HavePassword) { + return nil, false + } + return o.HavePassword, true +} + +// HasHavePassword returns a boolean if a field has been set. +func (o *SchemaGetCurrentLoginUserInfoResp) HasHavePassword() bool { + if o != nil && !IsNil(o.HavePassword) { + return true + } + + return false +} + +// SetHavePassword gets a reference to the given bool and assigns it to the HavePassword field. +func (o *SchemaGetCurrentLoginUserInfoResp) SetHavePassword(v bool) { + o.HavePassword = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetId(v string) { + o.Id = &v +} + +// GetIpInfo returns the IpInfo field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetIpInfo(v string) { + o.IpInfo = &v +} + +// GetLanguage returns the Language field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetLanguage(v string) { + o.Language = &v +} + +// GetLastLoginDate returns the LastLoginDate field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetLastLoginDate(v int32) { + o.LastLoginDate = &v +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetLocation(v string) { + o.Location = &v +} + +// GetMailStatus returns the MailStatus field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetMailStatus(v int32) { + o.MailStatus = &v +} + +// GetMobile returns the Mobile field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetMobile(v string) { + o.Mobile = &v +} + +// GetNoticeStatus returns the NoticeStatus field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetNoticeStatus(v int32) { + o.NoticeStatus = &v +} + +// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetQuestionCount(v int32) { + o.QuestionCount = &v +} + +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetRank(v int32) { + o.Rank = &v +} + +// GetRoleId returns the RoleId field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetRoleId(v int32) { + o.RoleId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetStatus(v string) { + o.Status = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetUsername(v string) { + o.Username = &v +} + +// GetWebsite returns the Website field value if set, zero value otherwise. +func (o *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) 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 *SchemaGetCurrentLoginUserInfoResp) SetWebsite(v string) { + o.Website = &v +} + +func (o SchemaGetCurrentLoginUserInfoResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetCurrentLoginUserInfoResp) 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.HavePassword) { + toSerialize["have_password"] = o.HavePassword + } + 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 NullableSchemaGetCurrentLoginUserInfoResp struct { + value *SchemaGetCurrentLoginUserInfoResp + isSet bool +} + +func (v NullableSchemaGetCurrentLoginUserInfoResp) Get() *SchemaGetCurrentLoginUserInfoResp { + return v.value +} + +func (v *NullableSchemaGetCurrentLoginUserInfoResp) Set(val *SchemaGetCurrentLoginUserInfoResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetCurrentLoginUserInfoResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetCurrentLoginUserInfoResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetCurrentLoginUserInfoResp(val *SchemaGetCurrentLoginUserInfoResp) *NullableSchemaGetCurrentLoginUserInfoResp { + return &NullableSchemaGetCurrentLoginUserInfoResp{value: val, isSet: true} +} + +func (v NullableSchemaGetCurrentLoginUserInfoResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetCurrentLoginUserInfoResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_following_tags_resp.go b/model_schema_get_following_tags_resp.go index b475663..117d703 100644 --- a/model_schema_get_following_tags_resp.go +++ b/model_schema_get_following_tags_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_object_timeline_resp.go b/model_schema_get_object_timeline_resp.go index 29ac736..6f856c3 100644 --- a/model_schema_get_object_timeline_resp.go +++ b/model_schema_get_object_timeline_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. 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 caf2b3b..0be2c1b 100644 --- a/model_schema_get_other_user_info_by_username_resp.go +++ b/model_schema_get_other_user_info_by_username_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_other_user_info_resp.go b/model_schema_get_other_user_info_resp.go index ded4c59..6aa44e3 100644 --- a/model_schema_get_other_user_info_resp.go +++ b/model_schema_get_other_user_info_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_plugin_config_resp.go b/model_schema_get_plugin_config_resp.go new file mode 100644 index 0000000..d432fed --- /dev/null +++ b/model_schema_get_plugin_config_resp.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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetPluginConfigResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetPluginConfigResp{} + +// SchemaGetPluginConfigResp struct for SchemaGetPluginConfigResp +type SchemaGetPluginConfigResp struct { + ConfigFields []SchemaConfigField `json:"config_fields,omitempty"` + Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + SlugName *string `json:"slug_name,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewSchemaGetPluginConfigResp instantiates a new SchemaGetPluginConfigResp 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 NewSchemaGetPluginConfigResp() *SchemaGetPluginConfigResp { + this := SchemaGetPluginConfigResp{} + return &this +} + +// NewSchemaGetPluginConfigRespWithDefaults instantiates a new SchemaGetPluginConfigResp 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 NewSchemaGetPluginConfigRespWithDefaults() *SchemaGetPluginConfigResp { + this := SchemaGetPluginConfigResp{} + return &this +} + +// GetConfigFields returns the ConfigFields field value if set, zero value otherwise. +func (o *SchemaGetPluginConfigResp) GetConfigFields() []SchemaConfigField { + if o == nil || IsNil(o.ConfigFields) { + var ret []SchemaConfigField + return ret + } + return o.ConfigFields +} + +// GetConfigFieldsOk returns a tuple with the ConfigFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetPluginConfigResp) GetConfigFieldsOk() ([]SchemaConfigField, bool) { + if o == nil || IsNil(o.ConfigFields) { + return nil, false + } + return o.ConfigFields, true +} + +// HasConfigFields returns a boolean if a field has been set. +func (o *SchemaGetPluginConfigResp) HasConfigFields() bool { + if o != nil && !IsNil(o.ConfigFields) { + return true + } + + return false +} + +// SetConfigFields gets a reference to the given []SchemaConfigField and assigns it to the ConfigFields field. +func (o *SchemaGetPluginConfigResp) SetConfigFields(v []SchemaConfigField) { + o.ConfigFields = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SchemaGetPluginConfigResp) 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 *SchemaGetPluginConfigResp) 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 *SchemaGetPluginConfigResp) 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 *SchemaGetPluginConfigResp) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SchemaGetPluginConfigResp) 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 *SchemaGetPluginConfigResp) 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 *SchemaGetPluginConfigResp) 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 *SchemaGetPluginConfigResp) SetName(v string) { + o.Name = &v +} + +// GetSlugName returns the SlugName field value if set, zero value otherwise. +func (o *SchemaGetPluginConfigResp) GetSlugName() string { + if o == nil || IsNil(o.SlugName) { + var ret string + return ret + } + return *o.SlugName +} + +// GetSlugNameOk returns a tuple with the SlugName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetPluginConfigResp) GetSlugNameOk() (*string, bool) { + if o == nil || IsNil(o.SlugName) { + return nil, false + } + return o.SlugName, true +} + +// HasSlugName returns a boolean if a field has been set. +func (o *SchemaGetPluginConfigResp) HasSlugName() bool { + if o != nil && !IsNil(o.SlugName) { + return true + } + + return false +} + +// SetSlugName gets a reference to the given string and assigns it to the SlugName field. +func (o *SchemaGetPluginConfigResp) SetSlugName(v string) { + o.SlugName = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *SchemaGetPluginConfigResp) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetPluginConfigResp) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *SchemaGetPluginConfigResp) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *SchemaGetPluginConfigResp) SetVersion(v string) { + o.Version = &v +} + +func (o SchemaGetPluginConfigResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetPluginConfigResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ConfigFields) { + toSerialize["config_fields"] = o.ConfigFields + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.SlugName) { + toSerialize["slug_name"] = o.SlugName + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableSchemaGetPluginConfigResp struct { + value *SchemaGetPluginConfigResp + isSet bool +} + +func (v NullableSchemaGetPluginConfigResp) Get() *SchemaGetPluginConfigResp { + return v.value +} + +func (v *NullableSchemaGetPluginConfigResp) Set(val *SchemaGetPluginConfigResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetPluginConfigResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetPluginConfigResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetPluginConfigResp(val *SchemaGetPluginConfigResp) *NullableSchemaGetPluginConfigResp { + return &NullableSchemaGetPluginConfigResp{value: val, isSet: true} +} + +func (v NullableSchemaGetPluginConfigResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetPluginConfigResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_plugin_list_resp.go b/model_schema_get_plugin_list_resp.go new file mode 100644 index 0000000..3879da0 --- /dev/null +++ b/model_schema_get_plugin_list_resp.go @@ -0,0 +1,340 @@ +/* +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 SchemaGetPluginListResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetPluginListResp{} + +// SchemaGetPluginListResp struct for SchemaGetPluginListResp +type SchemaGetPluginListResp struct { + Description *string `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + HaveConfig *bool `json:"have_config,omitempty"` + Link *string `json:"link,omitempty"` + Name *string `json:"name,omitempty"` + SlugName *string `json:"slug_name,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewSchemaGetPluginListResp instantiates a new SchemaGetPluginListResp 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 NewSchemaGetPluginListResp() *SchemaGetPluginListResp { + this := SchemaGetPluginListResp{} + return &this +} + +// NewSchemaGetPluginListRespWithDefaults instantiates a new SchemaGetPluginListResp 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 NewSchemaGetPluginListRespWithDefaults() *SchemaGetPluginListResp { + this := SchemaGetPluginListResp{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SchemaGetPluginListResp) 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 *SchemaGetPluginListResp) 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 *SchemaGetPluginListResp) 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 *SchemaGetPluginListResp) SetDescription(v string) { + o.Description = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SchemaGetPluginListResp) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetPluginListResp) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SchemaGetPluginListResp) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SchemaGetPluginListResp) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetHaveConfig returns the HaveConfig field value if set, zero value otherwise. +func (o *SchemaGetPluginListResp) GetHaveConfig() bool { + if o == nil || IsNil(o.HaveConfig) { + var ret bool + return ret + } + return *o.HaveConfig +} + +// GetHaveConfigOk returns a tuple with the HaveConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetPluginListResp) GetHaveConfigOk() (*bool, bool) { + if o == nil || IsNil(o.HaveConfig) { + return nil, false + } + return o.HaveConfig, true +} + +// HasHaveConfig returns a boolean if a field has been set. +func (o *SchemaGetPluginListResp) HasHaveConfig() bool { + if o != nil && !IsNil(o.HaveConfig) { + return true + } + + return false +} + +// SetHaveConfig gets a reference to the given bool and assigns it to the HaveConfig field. +func (o *SchemaGetPluginListResp) SetHaveConfig(v bool) { + o.HaveConfig = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *SchemaGetPluginListResp) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetPluginListResp) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *SchemaGetPluginListResp) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *SchemaGetPluginListResp) SetLink(v string) { + o.Link = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SchemaGetPluginListResp) 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 *SchemaGetPluginListResp) 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 *SchemaGetPluginListResp) 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 *SchemaGetPluginListResp) SetName(v string) { + o.Name = &v +} + +// GetSlugName returns the SlugName field value if set, zero value otherwise. +func (o *SchemaGetPluginListResp) GetSlugName() string { + if o == nil || IsNil(o.SlugName) { + var ret string + return ret + } + return *o.SlugName +} + +// GetSlugNameOk returns a tuple with the SlugName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetPluginListResp) GetSlugNameOk() (*string, bool) { + if o == nil || IsNil(o.SlugName) { + return nil, false + } + return o.SlugName, true +} + +// HasSlugName returns a boolean if a field has been set. +func (o *SchemaGetPluginListResp) HasSlugName() bool { + if o != nil && !IsNil(o.SlugName) { + return true + } + + return false +} + +// SetSlugName gets a reference to the given string and assigns it to the SlugName field. +func (o *SchemaGetPluginListResp) SetSlugName(v string) { + o.SlugName = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *SchemaGetPluginListResp) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetPluginListResp) GetVersionOk() (*string, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *SchemaGetPluginListResp) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *SchemaGetPluginListResp) SetVersion(v string) { + o.Version = &v +} + +func (o SchemaGetPluginListResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetPluginListResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.HaveConfig) { + toSerialize["have_config"] = o.HaveConfig + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.SlugName) { + toSerialize["slug_name"] = o.SlugName + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableSchemaGetPluginListResp struct { + value *SchemaGetPluginListResp + isSet bool +} + +func (v NullableSchemaGetPluginListResp) Get() *SchemaGetPluginListResp { + return v.value +} + +func (v *NullableSchemaGetPluginListResp) Set(val *SchemaGetPluginListResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetPluginListResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetPluginListResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetPluginListResp(val *SchemaGetPluginListResp) *NullableSchemaGetPluginListResp { + return &NullableSchemaGetPluginListResp{value: val, isSet: true} +} + +func (v NullableSchemaGetPluginListResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetPluginListResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_privileges_config_resp.go b/model_schema_get_privileges_config_resp.go new file mode 100644 index 0000000..ab3d000 --- /dev/null +++ b/model_schema_get_privileges_config_resp.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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetPrivilegesConfigResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetPrivilegesConfigResp{} + +// SchemaGetPrivilegesConfigResp struct for SchemaGetPrivilegesConfigResp +type SchemaGetPrivilegesConfigResp struct { + Options []SchemaPrivilegeOption `json:"options,omitempty"` + SelectedLevel *SchemaPrivilegeLevel `json:"selected_level,omitempty"` +} + +// NewSchemaGetPrivilegesConfigResp instantiates a new SchemaGetPrivilegesConfigResp 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 NewSchemaGetPrivilegesConfigResp() *SchemaGetPrivilegesConfigResp { + this := SchemaGetPrivilegesConfigResp{} + return &this +} + +// NewSchemaGetPrivilegesConfigRespWithDefaults instantiates a new SchemaGetPrivilegesConfigResp 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 NewSchemaGetPrivilegesConfigRespWithDefaults() *SchemaGetPrivilegesConfigResp { + this := SchemaGetPrivilegesConfigResp{} + return &this +} + +// GetOptions returns the Options field value if set, zero value otherwise. +func (o *SchemaGetPrivilegesConfigResp) GetOptions() []SchemaPrivilegeOption { + if o == nil || IsNil(o.Options) { + var ret []SchemaPrivilegeOption + return ret + } + return o.Options +} + +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetPrivilegesConfigResp) GetOptionsOk() ([]SchemaPrivilegeOption, bool) { + if o == nil || IsNil(o.Options) { + return nil, false + } + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *SchemaGetPrivilegesConfigResp) HasOptions() bool { + if o != nil && !IsNil(o.Options) { + return true + } + + return false +} + +// SetOptions gets a reference to the given []SchemaPrivilegeOption and assigns it to the Options field. +func (o *SchemaGetPrivilegesConfigResp) SetOptions(v []SchemaPrivilegeOption) { + o.Options = v +} + +// GetSelectedLevel returns the SelectedLevel field value if set, zero value otherwise. +func (o *SchemaGetPrivilegesConfigResp) GetSelectedLevel() SchemaPrivilegeLevel { + if o == nil || IsNil(o.SelectedLevel) { + var ret SchemaPrivilegeLevel + return ret + } + return *o.SelectedLevel +} + +// GetSelectedLevelOk returns a tuple with the SelectedLevel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetPrivilegesConfigResp) GetSelectedLevelOk() (*SchemaPrivilegeLevel, bool) { + if o == nil || IsNil(o.SelectedLevel) { + return nil, false + } + return o.SelectedLevel, true +} + +// HasSelectedLevel returns a boolean if a field has been set. +func (o *SchemaGetPrivilegesConfigResp) HasSelectedLevel() bool { + if o != nil && !IsNil(o.SelectedLevel) { + return true + } + + return false +} + +// SetSelectedLevel gets a reference to the given SchemaPrivilegeLevel and assigns it to the SelectedLevel field. +func (o *SchemaGetPrivilegesConfigResp) SetSelectedLevel(v SchemaPrivilegeLevel) { + o.SelectedLevel = &v +} + +func (o SchemaGetPrivilegesConfigResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetPrivilegesConfigResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Options) { + toSerialize["options"] = o.Options + } + if !IsNil(o.SelectedLevel) { + toSerialize["selected_level"] = o.SelectedLevel + } + return toSerialize, nil +} + +type NullableSchemaGetPrivilegesConfigResp struct { + value *SchemaGetPrivilegesConfigResp + isSet bool +} + +func (v NullableSchemaGetPrivilegesConfigResp) Get() *SchemaGetPrivilegesConfigResp { + return v.value +} + +func (v *NullableSchemaGetPrivilegesConfigResp) Set(val *SchemaGetPrivilegesConfigResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetPrivilegesConfigResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetPrivilegesConfigResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetPrivilegesConfigResp(val *SchemaGetPrivilegesConfigResp) *NullableSchemaGetPrivilegesConfigResp { + return &NullableSchemaGetPrivilegesConfigResp{value: val, isSet: true} +} + +func (v NullableSchemaGetPrivilegesConfigResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetPrivilegesConfigResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_rank_personal_page_resp.go b/model_schema_get_rank_personal_page_resp.go new file mode 100644 index 0000000..5a804ae --- /dev/null +++ b/model_schema_get_rank_personal_page_resp.go @@ -0,0 +1,458 @@ +/* +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 SchemaGetRankPersonalPageResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetRankPersonalPageResp{} + +// SchemaGetRankPersonalPageResp struct for SchemaGetRankPersonalPageResp +type SchemaGetRankPersonalPageResp 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"` +} + +// NewSchemaGetRankPersonalPageResp instantiates a new SchemaGetRankPersonalPageResp 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 NewSchemaGetRankPersonalPageResp() *SchemaGetRankPersonalPageResp { + this := SchemaGetRankPersonalPageResp{} + return &this +} + +// NewSchemaGetRankPersonalPageRespWithDefaults instantiates a new SchemaGetRankPersonalPageResp 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 NewSchemaGetRankPersonalPageRespWithDefaults() *SchemaGetRankPersonalPageResp { + this := SchemaGetRankPersonalPageResp{} + return &this +} + +// GetAnswerId returns the AnswerId field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetAnswerId(v string) { + o.AnswerId = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetContent(v string) { + o.Content = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetObjectId(v string) { + o.ObjectId = &v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetQuestionId(v string) { + o.QuestionId = &v +} + +// GetRankType returns the RankType field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetRankType(v string) { + o.RankType = &v +} + +// GetReputation returns the Reputation field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetReputation(v int32) { + o.Reputation = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetTitle(v string) { + o.Title = &v +} + +// GetUrlTitle returns the UrlTitle field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) 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 *SchemaGetRankPersonalPageResp) SetUrlTitle(v string) { + o.UrlTitle = &v +} + +func (o SchemaGetRankPersonalPageResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetRankPersonalPageResp) 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 NullableSchemaGetRankPersonalPageResp struct { + value *SchemaGetRankPersonalPageResp + isSet bool +} + +func (v NullableSchemaGetRankPersonalPageResp) Get() *SchemaGetRankPersonalPageResp { + return v.value +} + +func (v *NullableSchemaGetRankPersonalPageResp) Set(val *SchemaGetRankPersonalPageResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetRankPersonalPageResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetRankPersonalPageResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetRankPersonalPageResp(val *SchemaGetRankPersonalPageResp) *NullableSchemaGetRankPersonalPageResp { + return &NullableSchemaGetRankPersonalPageResp{value: val, isSet: true} +} + +func (v NullableSchemaGetRankPersonalPageResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetRankPersonalPageResp) 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 301e890..7a636c0 100644 --- a/model_schema_get_revision_resp.go +++ b/model_schema_get_revision_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_role_resp.go b/model_schema_get_role_resp.go index 12ea4fd..70f73e0 100644 --- a/model_schema_get_role_resp.go +++ b/model_schema_get_role_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_site_legal_info_resp.go b/model_schema_get_site_legal_info_resp.go index 27fd741..7cee7c2 100644 --- a/model_schema_get_site_legal_info_resp.go +++ b/model_schema_get_site_legal_info_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_smtp_config_resp.go b/model_schema_get_smtp_config_resp.go index b3e1e1b..94e8d79 100644 --- a/model_schema_get_smtp_config_resp.go +++ b/model_schema_get_smtp_config_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_tag_page_resp.go b/model_schema_get_tag_page_resp.go index 6a45516..f33dd72 100644 --- a/model_schema_get_tag_page_resp.go +++ b/model_schema_get_tag_page_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_tag_resp.go b/model_schema_get_tag_resp.go index b6f584f..ed1fa09 100644 --- a/model_schema_get_tag_resp.go +++ b/model_schema_get_tag_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_tag_synonyms_resp.go b/model_schema_get_tag_synonyms_resp.go index ab2b882..3dc81a5 100644 --- a/model_schema_get_tag_synonyms_resp.go +++ b/model_schema_get_tag_synonyms_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_unreviewed_revision_resp.go b/model_schema_get_unreviewed_revision_resp.go index 97bd17f..586c5a1 100644 --- a/model_schema_get_unreviewed_revision_resp.go +++ b/model_schema_get_unreviewed_revision_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_user_activation_resp.go b/model_schema_get_user_activation_resp.go new file mode 100644 index 0000000..b97a3da --- /dev/null +++ b/model_schema_get_user_activation_resp.go @@ -0,0 +1,124 @@ +/* +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 SchemaGetUserActivationResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetUserActivationResp{} + +// SchemaGetUserActivationResp struct for SchemaGetUserActivationResp +type SchemaGetUserActivationResp struct { + ActivationUrl *string `json:"activation_url,omitempty"` +} + +// NewSchemaGetUserActivationResp instantiates a new SchemaGetUserActivationResp 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 NewSchemaGetUserActivationResp() *SchemaGetUserActivationResp { + this := SchemaGetUserActivationResp{} + return &this +} + +// NewSchemaGetUserActivationRespWithDefaults instantiates a new SchemaGetUserActivationResp 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 NewSchemaGetUserActivationRespWithDefaults() *SchemaGetUserActivationResp { + this := SchemaGetUserActivationResp{} + return &this +} + +// GetActivationUrl returns the ActivationUrl field value if set, zero value otherwise. +func (o *SchemaGetUserActivationResp) GetActivationUrl() string { + if o == nil || IsNil(o.ActivationUrl) { + var ret string + return ret + } + return *o.ActivationUrl +} + +// GetActivationUrlOk returns a tuple with the ActivationUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserActivationResp) GetActivationUrlOk() (*string, bool) { + if o == nil || IsNil(o.ActivationUrl) { + return nil, false + } + return o.ActivationUrl, true +} + +// HasActivationUrl returns a boolean if a field has been set. +func (o *SchemaGetUserActivationResp) HasActivationUrl() bool { + if o != nil && !IsNil(o.ActivationUrl) { + return true + } + + return false +} + +// SetActivationUrl gets a reference to the given string and assigns it to the ActivationUrl field. +func (o *SchemaGetUserActivationResp) SetActivationUrl(v string) { + o.ActivationUrl = &v +} + +func (o SchemaGetUserActivationResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetUserActivationResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ActivationUrl) { + toSerialize["activation_url"] = o.ActivationUrl + } + return toSerialize, nil +} + +type NullableSchemaGetUserActivationResp struct { + value *SchemaGetUserActivationResp + isSet bool +} + +func (v NullableSchemaGetUserActivationResp) Get() *SchemaGetUserActivationResp { + return v.value +} + +func (v *NullableSchemaGetUserActivationResp) Set(val *SchemaGetUserActivationResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetUserActivationResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetUserActivationResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetUserActivationResp(val *SchemaGetUserActivationResp) *NullableSchemaGetUserActivationResp { + return &NullableSchemaGetUserActivationResp{value: val, isSet: true} +} + +func (v NullableSchemaGetUserActivationResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetUserActivationResp) 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 6f8ac5f..a6f1817 100644 --- a/model_schema_get_user_page_resp.go +++ b/model_schema_get_user_page_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_get_vote_with_page_resp.go b/model_schema_get_vote_with_page_resp.go index 24ac11f..0c1720d 100644 --- a/model_schema_get_vote_with_page_resp.go +++ b/model_schema_get_vote_with_page_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_loading_action.go b/model_schema_loading_action.go new file mode 100644 index 0000000..df491b6 --- /dev/null +++ b/model_schema_loading_action.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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaLoadingAction type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaLoadingAction{} + +// SchemaLoadingAction struct for SchemaLoadingAction +type SchemaLoadingAction struct { + State *string `json:"state,omitempty"` + Text *string `json:"text,omitempty"` +} + +// NewSchemaLoadingAction instantiates a new SchemaLoadingAction 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 NewSchemaLoadingAction() *SchemaLoadingAction { + this := SchemaLoadingAction{} + return &this +} + +// NewSchemaLoadingActionWithDefaults instantiates a new SchemaLoadingAction 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 NewSchemaLoadingActionWithDefaults() *SchemaLoadingAction { + this := SchemaLoadingAction{} + return &this +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *SchemaLoadingAction) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaLoadingAction) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *SchemaLoadingAction) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *SchemaLoadingAction) SetState(v string) { + o.State = &v +} + +// GetText returns the Text field value if set, zero value otherwise. +func (o *SchemaLoadingAction) GetText() string { + if o == nil || IsNil(o.Text) { + var ret string + return ret + } + return *o.Text +} + +// GetTextOk returns a tuple with the Text field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaLoadingAction) GetTextOk() (*string, bool) { + if o == nil || IsNil(o.Text) { + return nil, false + } + return o.Text, true +} + +// HasText returns a boolean if a field has been set. +func (o *SchemaLoadingAction) HasText() bool { + if o != nil && !IsNil(o.Text) { + return true + } + + return false +} + +// SetText gets a reference to the given string and assigns it to the Text field. +func (o *SchemaLoadingAction) SetText(v string) { + o.Text = &v +} + +func (o SchemaLoadingAction) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaLoadingAction) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Text) { + toSerialize["text"] = o.Text + } + return toSerialize, nil +} + +type NullableSchemaLoadingAction struct { + value *SchemaLoadingAction + isSet bool +} + +func (v NullableSchemaLoadingAction) Get() *SchemaLoadingAction { + return v.value +} + +func (v *NullableSchemaLoadingAction) Set(val *SchemaLoadingAction) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaLoadingAction) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaLoadingAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaLoadingAction(val *SchemaLoadingAction) *NullableSchemaLoadingAction { + return &NullableSchemaLoadingAction{value: val, isSet: true} +} + +func (v NullableSchemaLoadingAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaLoadingAction) 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 a091e4c..ac40e09 100644 --- a/model_schema_notification_clear_id_request.go +++ b/model_schema_notification_clear_id_request.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_notification_clear_request.go b/model_schema_notification_clear_request.go index 3c33c0e..af309de 100644 --- a/model_schema_notification_clear_request.go +++ b/model_schema_notification_clear_request.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_on_complete_action.go b/model_schema_on_complete_action.go new file mode 100644 index 0000000..5bfda77 --- /dev/null +++ b/model_schema_on_complete_action.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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaOnCompleteAction type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaOnCompleteAction{} + +// SchemaOnCompleteAction struct for SchemaOnCompleteAction +type SchemaOnCompleteAction struct { + RefreshFormConfig *bool `json:"refresh_form_config,omitempty"` + ToastReturnMessage *bool `json:"toast_return_message,omitempty"` +} + +// NewSchemaOnCompleteAction instantiates a new SchemaOnCompleteAction 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 NewSchemaOnCompleteAction() *SchemaOnCompleteAction { + this := SchemaOnCompleteAction{} + return &this +} + +// NewSchemaOnCompleteActionWithDefaults instantiates a new SchemaOnCompleteAction 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 NewSchemaOnCompleteActionWithDefaults() *SchemaOnCompleteAction { + this := SchemaOnCompleteAction{} + return &this +} + +// GetRefreshFormConfig returns the RefreshFormConfig field value if set, zero value otherwise. +func (o *SchemaOnCompleteAction) GetRefreshFormConfig() bool { + if o == nil || IsNil(o.RefreshFormConfig) { + var ret bool + return ret + } + return *o.RefreshFormConfig +} + +// GetRefreshFormConfigOk returns a tuple with the RefreshFormConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaOnCompleteAction) GetRefreshFormConfigOk() (*bool, bool) { + if o == nil || IsNil(o.RefreshFormConfig) { + return nil, false + } + return o.RefreshFormConfig, true +} + +// HasRefreshFormConfig returns a boolean if a field has been set. +func (o *SchemaOnCompleteAction) HasRefreshFormConfig() bool { + if o != nil && !IsNil(o.RefreshFormConfig) { + return true + } + + return false +} + +// SetRefreshFormConfig gets a reference to the given bool and assigns it to the RefreshFormConfig field. +func (o *SchemaOnCompleteAction) SetRefreshFormConfig(v bool) { + o.RefreshFormConfig = &v +} + +// GetToastReturnMessage returns the ToastReturnMessage field value if set, zero value otherwise. +func (o *SchemaOnCompleteAction) GetToastReturnMessage() bool { + if o == nil || IsNil(o.ToastReturnMessage) { + var ret bool + return ret + } + return *o.ToastReturnMessage +} + +// GetToastReturnMessageOk returns a tuple with the ToastReturnMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaOnCompleteAction) GetToastReturnMessageOk() (*bool, bool) { + if o == nil || IsNil(o.ToastReturnMessage) { + return nil, false + } + return o.ToastReturnMessage, true +} + +// HasToastReturnMessage returns a boolean if a field has been set. +func (o *SchemaOnCompleteAction) HasToastReturnMessage() bool { + if o != nil && !IsNil(o.ToastReturnMessage) { + return true + } + + return false +} + +// SetToastReturnMessage gets a reference to the given bool and assigns it to the ToastReturnMessage field. +func (o *SchemaOnCompleteAction) SetToastReturnMessage(v bool) { + o.ToastReturnMessage = &v +} + +func (o SchemaOnCompleteAction) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaOnCompleteAction) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RefreshFormConfig) { + toSerialize["refresh_form_config"] = o.RefreshFormConfig + } + if !IsNil(o.ToastReturnMessage) { + toSerialize["toast_return_message"] = o.ToastReturnMessage + } + return toSerialize, nil +} + +type NullableSchemaOnCompleteAction struct { + value *SchemaOnCompleteAction + isSet bool +} + +func (v NullableSchemaOnCompleteAction) Get() *SchemaOnCompleteAction { + return v.value +} + +func (v *NullableSchemaOnCompleteAction) Set(val *SchemaOnCompleteAction) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaOnCompleteAction) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaOnCompleteAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaOnCompleteAction(val *SchemaOnCompleteAction) *NullableSchemaOnCompleteAction { + return &NullableSchemaOnCompleteAction{value: val, isSet: true} +} + +func (v NullableSchemaOnCompleteAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaOnCompleteAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_operation_question_req.go b/model_schema_operation_question_req.go index f39fea1..a601741 100644 --- a/model_schema_operation_question_req.go +++ b/model_schema_operation_question_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_permission_member_action.go b/model_schema_permission_member_action.go index 4e569ea..d6ad7d6 100644 --- a/model_schema_permission_member_action.go +++ b/model_schema_permission_member_action.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_post_render_req.go b/model_schema_post_render_req.go index 7d604d8..2eb942a 100644 --- a/model_schema_post_render_req.go +++ b/model_schema_post_render_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_privilege_level.go b/model_schema_privilege_level.go new file mode 100644 index 0000000..476b58d --- /dev/null +++ b/model_schema_privilege_level.go @@ -0,0 +1,111 @@ +/* +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" + "fmt" +) + +// SchemaPrivilegeLevel the model 'SchemaPrivilegeLevel' +type SchemaPrivilegeLevel int32 + +// List of schema.PrivilegeLevel +const ( + PrivilegeLevel1 SchemaPrivilegeLevel = 1 + PrivilegeLevel2 SchemaPrivilegeLevel = 2 + PrivilegeLevel3 SchemaPrivilegeLevel = 3 +) + +// All allowed values of SchemaPrivilegeLevel enum +var AllowedSchemaPrivilegeLevelEnumValues = []SchemaPrivilegeLevel{ + 1, + 2, + 3, +} + +func (v *SchemaPrivilegeLevel) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := SchemaPrivilegeLevel(value) + for _, existing := range AllowedSchemaPrivilegeLevelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid SchemaPrivilegeLevel", value) +} + +// NewSchemaPrivilegeLevelFromValue returns a pointer to a valid SchemaPrivilegeLevel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewSchemaPrivilegeLevelFromValue(v int32) (*SchemaPrivilegeLevel, error) { + ev := SchemaPrivilegeLevel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for SchemaPrivilegeLevel: valid values are %v", v, AllowedSchemaPrivilegeLevelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v SchemaPrivilegeLevel) IsValid() bool { + for _, existing := range AllowedSchemaPrivilegeLevelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to schema.PrivilegeLevel value +func (v SchemaPrivilegeLevel) Ptr() *SchemaPrivilegeLevel { + return &v +} + +type NullableSchemaPrivilegeLevel struct { + value *SchemaPrivilegeLevel + isSet bool +} + +func (v NullableSchemaPrivilegeLevel) Get() *SchemaPrivilegeLevel { + return v.value +} + +func (v *NullableSchemaPrivilegeLevel) Set(val *SchemaPrivilegeLevel) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaPrivilegeLevel) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaPrivilegeLevel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaPrivilegeLevel(val *SchemaPrivilegeLevel) *NullableSchemaPrivilegeLevel { + return &NullableSchemaPrivilegeLevel{value: val, isSet: true} +} + +func (v NullableSchemaPrivilegeLevel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaPrivilegeLevel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_schema_privilege_option.go b/model_schema_privilege_option.go new file mode 100644 index 0000000..f6772b3 --- /dev/null +++ b/model_schema_privilege_option.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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaPrivilegeOption type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaPrivilegeOption{} + +// SchemaPrivilegeOption struct for SchemaPrivilegeOption +type SchemaPrivilegeOption struct { + Level *SchemaPrivilegeLevel `json:"level,omitempty"` + LevelDesc *string `json:"level_desc,omitempty"` + Privileges []ConstantPrivilege `json:"privileges,omitempty"` +} + +// NewSchemaPrivilegeOption instantiates a new SchemaPrivilegeOption 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 NewSchemaPrivilegeOption() *SchemaPrivilegeOption { + this := SchemaPrivilegeOption{} + return &this +} + +// NewSchemaPrivilegeOptionWithDefaults instantiates a new SchemaPrivilegeOption 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 NewSchemaPrivilegeOptionWithDefaults() *SchemaPrivilegeOption { + this := SchemaPrivilegeOption{} + return &this +} + +// GetLevel returns the Level field value if set, zero value otherwise. +func (o *SchemaPrivilegeOption) GetLevel() SchemaPrivilegeLevel { + if o == nil || IsNil(o.Level) { + var ret SchemaPrivilegeLevel + return ret + } + return *o.Level +} + +// GetLevelOk returns a tuple with the Level field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaPrivilegeOption) GetLevelOk() (*SchemaPrivilegeLevel, bool) { + if o == nil || IsNil(o.Level) { + return nil, false + } + return o.Level, true +} + +// HasLevel returns a boolean if a field has been set. +func (o *SchemaPrivilegeOption) HasLevel() bool { + if o != nil && !IsNil(o.Level) { + return true + } + + return false +} + +// SetLevel gets a reference to the given SchemaPrivilegeLevel and assigns it to the Level field. +func (o *SchemaPrivilegeOption) SetLevel(v SchemaPrivilegeLevel) { + o.Level = &v +} + +// GetLevelDesc returns the LevelDesc field value if set, zero value otherwise. +func (o *SchemaPrivilegeOption) GetLevelDesc() string { + if o == nil || IsNil(o.LevelDesc) { + var ret string + return ret + } + return *o.LevelDesc +} + +// GetLevelDescOk returns a tuple with the LevelDesc field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaPrivilegeOption) GetLevelDescOk() (*string, bool) { + if o == nil || IsNil(o.LevelDesc) { + return nil, false + } + return o.LevelDesc, true +} + +// HasLevelDesc returns a boolean if a field has been set. +func (o *SchemaPrivilegeOption) HasLevelDesc() bool { + if o != nil && !IsNil(o.LevelDesc) { + return true + } + + return false +} + +// SetLevelDesc gets a reference to the given string and assigns it to the LevelDesc field. +func (o *SchemaPrivilegeOption) SetLevelDesc(v string) { + o.LevelDesc = &v +} + +// GetPrivileges returns the Privileges field value if set, zero value otherwise. +func (o *SchemaPrivilegeOption) GetPrivileges() []ConstantPrivilege { + if o == nil || IsNil(o.Privileges) { + var ret []ConstantPrivilege + return ret + } + return o.Privileges +} + +// GetPrivilegesOk returns a tuple with the Privileges field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaPrivilegeOption) GetPrivilegesOk() ([]ConstantPrivilege, bool) { + if o == nil || IsNil(o.Privileges) { + return nil, false + } + return o.Privileges, true +} + +// HasPrivileges returns a boolean if a field has been set. +func (o *SchemaPrivilegeOption) HasPrivileges() bool { + if o != nil && !IsNil(o.Privileges) { + return true + } + + return false +} + +// SetPrivileges gets a reference to the given []ConstantPrivilege and assigns it to the Privileges field. +func (o *SchemaPrivilegeOption) SetPrivileges(v []ConstantPrivilege) { + o.Privileges = v +} + +func (o SchemaPrivilegeOption) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaPrivilegeOption) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Level) { + toSerialize["level"] = o.Level + } + if !IsNil(o.LevelDesc) { + toSerialize["level_desc"] = o.LevelDesc + } + if !IsNil(o.Privileges) { + toSerialize["privileges"] = o.Privileges + } + return toSerialize, nil +} + +type NullableSchemaPrivilegeOption struct { + value *SchemaPrivilegeOption + isSet bool +} + +func (v NullableSchemaPrivilegeOption) Get() *SchemaPrivilegeOption { + return v.value +} + +func (v *NullableSchemaPrivilegeOption) Set(val *SchemaPrivilegeOption) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaPrivilegeOption) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaPrivilegeOption) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaPrivilegeOption(val *SchemaPrivilegeOption) *NullableSchemaPrivilegeOption { + return &NullableSchemaPrivilegeOption{value: val, isSet: true} +} + +func (v NullableSchemaPrivilegeOption) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaPrivilegeOption) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_question_add.go b/model_schema_question_add.go index 0c201f4..4fe136d 100644 --- a/model_schema_question_add.go +++ b/model_schema_question_add.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,9 @@ var _ MappedNullable = &SchemaQuestionAdd{} // SchemaQuestionAdd struct for SchemaQuestionAdd type SchemaQuestionAdd struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` // content Content string `json:"content"` // tags @@ -47,6 +48,70 @@ func NewSchemaQuestionAddWithDefaults() *SchemaQuestionAdd { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaQuestionAdd) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaQuestionAdd) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaQuestionAdd) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaQuestionAdd) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaQuestionAdd) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaQuestionAdd) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaQuestionAdd) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaQuestionAdd) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetContent returns the Content field value func (o *SchemaQuestionAdd) GetContent() string { if o == nil { @@ -129,6 +194,12 @@ func (o SchemaQuestionAdd) MarshalJSON() ([]byte, error) { func (o SchemaQuestionAdd) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } toSerialize["content"] = o.Content toSerialize["tags"] = o.Tags toSerialize["title"] = o.Title diff --git a/model_schema_question_add_by_answer.go b/model_schema_question_add_by_answer.go index ca977ac..3e147cc 100644 --- a/model_schema_question_add_by_answer.go +++ b/model_schema_question_add_by_answer.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +18,12 @@ var _ MappedNullable = &SchemaQuestionAddByAnswer{} // SchemaQuestionAddByAnswer struct for SchemaQuestionAddByAnswer type SchemaQuestionAddByAnswer struct { AnswerContent string `json:"answer_content"` + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` // content Content string `json:"content"` + MentionUsernameList []string `json:"mention_username_list,omitempty"` // tags Tags []SchemaTagItem `json:"tags"` // question title @@ -73,6 +75,70 @@ func (o *SchemaQuestionAddByAnswer) SetAnswerContent(v string) { o.AnswerContent = v } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaQuestionAddByAnswer) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaQuestionAddByAnswer) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaQuestionAddByAnswer) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaQuestionAddByAnswer) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaQuestionAddByAnswer) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaQuestionAddByAnswer) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaQuestionAddByAnswer) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaQuestionAddByAnswer) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetContent returns the Content field value func (o *SchemaQuestionAddByAnswer) GetContent() string { if o == nil { @@ -97,6 +163,38 @@ func (o *SchemaQuestionAddByAnswer) SetContent(v string) { o.Content = v } +// GetMentionUsernameList returns the MentionUsernameList field value if set, zero value otherwise. +func (o *SchemaQuestionAddByAnswer) GetMentionUsernameList() []string { + if o == nil || IsNil(o.MentionUsernameList) { + var ret []string + return ret + } + return o.MentionUsernameList +} + +// GetMentionUsernameListOk returns a tuple with the MentionUsernameList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionAddByAnswer) GetMentionUsernameListOk() ([]string, bool) { + if o == nil || IsNil(o.MentionUsernameList) { + return nil, false + } + return o.MentionUsernameList, true +} + +// HasMentionUsernameList returns a boolean if a field has been set. +func (o *SchemaQuestionAddByAnswer) HasMentionUsernameList() bool { + if o != nil && !IsNil(o.MentionUsernameList) { + return true + } + + return false +} + +// SetMentionUsernameList gets a reference to the given []string and assigns it to the MentionUsernameList field. +func (o *SchemaQuestionAddByAnswer) SetMentionUsernameList(v []string) { + o.MentionUsernameList = v +} + // GetTags returns the Tags field value func (o *SchemaQuestionAddByAnswer) GetTags() []SchemaTagItem { if o == nil { @@ -156,7 +254,16 @@ func (o SchemaQuestionAddByAnswer) MarshalJSON() ([]byte, error) { func (o SchemaQuestionAddByAnswer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["answer_content"] = o.AnswerContent + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } toSerialize["content"] = o.Content + if !IsNil(o.MentionUsernameList) { + toSerialize["mention_username_list"] = o.MentionUsernameList + } toSerialize["tags"] = o.Tags toSerialize["title"] = o.Title return toSerialize, nil diff --git a/model_schema_question_page_resp.go b/model_schema_question_page_resp.go index acaaf85..331e868 100644 --- a/model_schema_question_page_resp.go +++ b/model_schema_question_page_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_question_page_resp_operator.go b/model_schema_question_page_resp_operator.go index 01a8ca9..d8e1553 100644 --- a/model_schema_question_page_resp_operator.go +++ b/model_schema_question_page_resp_operator.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_question_update.go b/model_schema_question_update.go index e2f5120..e077294 100644 --- a/model_schema_question_update.go +++ b/model_schema_question_update.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +17,16 @@ var _ MappedNullable = &SchemaQuestionUpdate{} // SchemaQuestionUpdate struct for SchemaQuestionUpdate type SchemaQuestionUpdate struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` // content Content string `json:"content"` // edit summary EditSummary *string `json:"edit_summary,omitempty"` // question id Id string `json:"id"` + InviteUser []string `json:"invite_user,omitempty"` // tags Tags []SchemaTagItem `json:"tags"` // question title @@ -52,6 +54,70 @@ func NewSchemaQuestionUpdateWithDefaults() *SchemaQuestionUpdate { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaQuestionUpdate) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaQuestionUpdate) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaQuestionUpdate) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaQuestionUpdate) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaQuestionUpdate) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaQuestionUpdate) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaQuestionUpdate) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaQuestionUpdate) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetContent returns the Content field value func (o *SchemaQuestionUpdate) GetContent() string { if o == nil { @@ -132,6 +198,38 @@ func (o *SchemaQuestionUpdate) SetId(v string) { o.Id = v } +// GetInviteUser returns the InviteUser field value if set, zero value otherwise. +func (o *SchemaQuestionUpdate) GetInviteUser() []string { + if o == nil || IsNil(o.InviteUser) { + var ret []string + return ret + } + return o.InviteUser +} + +// GetInviteUserOk returns a tuple with the InviteUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionUpdate) GetInviteUserOk() ([]string, bool) { + if o == nil || IsNil(o.InviteUser) { + return nil, false + } + return o.InviteUser, true +} + +// HasInviteUser returns a boolean if a field has been set. +func (o *SchemaQuestionUpdate) HasInviteUser() bool { + if o != nil && !IsNil(o.InviteUser) { + return true + } + + return false +} + +// SetInviteUser gets a reference to the given []string and assigns it to the InviteUser field. +func (o *SchemaQuestionUpdate) SetInviteUser(v []string) { + o.InviteUser = v +} + // GetTags returns the Tags field value func (o *SchemaQuestionUpdate) GetTags() []SchemaTagItem { if o == nil { @@ -190,11 +288,20 @@ func (o SchemaQuestionUpdate) MarshalJSON() ([]byte, error) { func (o SchemaQuestionUpdate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } toSerialize["content"] = o.Content if !IsNil(o.EditSummary) { toSerialize["edit_summary"] = o.EditSummary } toSerialize["id"] = o.Id + if !IsNil(o.InviteUser) { + toSerialize["invite_user"] = o.InviteUser + } toSerialize["tags"] = o.Tags toSerialize["title"] = o.Title return toSerialize, nil diff --git a/model_schema_question_update_invite_user.go b/model_schema_question_update_invite_user.go new file mode 100644 index 0000000..0dda80e --- /dev/null +++ b/model_schema_question_update_invite_user.go @@ -0,0 +1,224 @@ +/* +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 SchemaQuestionUpdateInviteUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaQuestionUpdateInviteUser{} + +// SchemaQuestionUpdateInviteUser struct for SchemaQuestionUpdateInviteUser +type SchemaQuestionUpdateInviteUser struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` + Id string `json:"id"` + InviteUser []string `json:"invite_user,omitempty"` +} + +// NewSchemaQuestionUpdateInviteUser instantiates a new SchemaQuestionUpdateInviteUser 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 NewSchemaQuestionUpdateInviteUser(id string) *SchemaQuestionUpdateInviteUser { + this := SchemaQuestionUpdateInviteUser{} + this.Id = id + return &this +} + +// NewSchemaQuestionUpdateInviteUserWithDefaults instantiates a new SchemaQuestionUpdateInviteUser 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 NewSchemaQuestionUpdateInviteUserWithDefaults() *SchemaQuestionUpdateInviteUser { + this := SchemaQuestionUpdateInviteUser{} + return &this +} + +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaQuestionUpdateInviteUser) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaQuestionUpdateInviteUser) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaQuestionUpdateInviteUser) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaQuestionUpdateInviteUser) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaQuestionUpdateInviteUser) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaQuestionUpdateInviteUser) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaQuestionUpdateInviteUser) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaQuestionUpdateInviteUser) SetCaptchaId(v string) { + o.CaptchaId = &v +} + +// GetId returns the Id field value +func (o *SchemaQuestionUpdateInviteUser) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionUpdateInviteUser) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SchemaQuestionUpdateInviteUser) SetId(v string) { + o.Id = v +} + +// GetInviteUser returns the InviteUser field value if set, zero value otherwise. +func (o *SchemaQuestionUpdateInviteUser) GetInviteUser() []string { + if o == nil || IsNil(o.InviteUser) { + var ret []string + return ret + } + return o.InviteUser +} + +// GetInviteUserOk returns a tuple with the InviteUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionUpdateInviteUser) GetInviteUserOk() ([]string, bool) { + if o == nil || IsNil(o.InviteUser) { + return nil, false + } + return o.InviteUser, true +} + +// HasInviteUser returns a boolean if a field has been set. +func (o *SchemaQuestionUpdateInviteUser) HasInviteUser() bool { + if o != nil && !IsNil(o.InviteUser) { + return true + } + + return false +} + +// SetInviteUser gets a reference to the given []string and assigns it to the InviteUser field. +func (o *SchemaQuestionUpdateInviteUser) SetInviteUser(v []string) { + o.InviteUser = v +} + +func (o SchemaQuestionUpdateInviteUser) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaQuestionUpdateInviteUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } + toSerialize["id"] = o.Id + if !IsNil(o.InviteUser) { + toSerialize["invite_user"] = o.InviteUser + } + return toSerialize, nil +} + +type NullableSchemaQuestionUpdateInviteUser struct { + value *SchemaQuestionUpdateInviteUser + isSet bool +} + +func (v NullableSchemaQuestionUpdateInviteUser) Get() *SchemaQuestionUpdateInviteUser { + return v.value +} + +func (v *NullableSchemaQuestionUpdateInviteUser) Set(val *SchemaQuestionUpdateInviteUser) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaQuestionUpdateInviteUser) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaQuestionUpdateInviteUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaQuestionUpdateInviteUser(val *SchemaQuestionUpdateInviteUser) *NullableSchemaQuestionUpdateInviteUser { + return &NullableSchemaQuestionUpdateInviteUser{value: val, isSet: true} +} + +func (v NullableSchemaQuestionUpdateInviteUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaQuestionUpdateInviteUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_remove_answer_req.go b/model_schema_remove_answer_req.go index f9d2b99..61fefde 100644 --- a/model_schema_remove_answer_req.go +++ b/model_schema_remove_answer_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,9 @@ 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"` } @@ -41,6 +42,70 @@ func NewSchemaRemoveAnswerReqWithDefaults() *SchemaRemoveAnswerReq { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaRemoveAnswerReq) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaRemoveAnswerReq) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaRemoveAnswerReq) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaRemoveAnswerReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaRemoveAnswerReq) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaRemoveAnswerReq) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaRemoveAnswerReq) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaRemoveAnswerReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetId returns the Id field value func (o *SchemaRemoveAnswerReq) GetId() string { if o == nil { @@ -75,6 +140,12 @@ func (o SchemaRemoveAnswerReq) MarshalJSON() ([]byte, error) { func (o SchemaRemoveAnswerReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } toSerialize["id"] = o.Id return toSerialize, nil } diff --git a/model_schema_remove_comment_req.go b/model_schema_remove_comment_req.go index 2fdf369..6688821 100644 --- a/model_schema_remove_comment_req.go +++ b/model_schema_remove_comment_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,9 @@ var _ MappedNullable = &SchemaRemoveCommentReq{} // SchemaRemoveCommentReq struct for SchemaRemoveCommentReq type SchemaRemoveCommentReq struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` // comment id CommentId string `json:"comment_id"` } @@ -41,6 +42,70 @@ func NewSchemaRemoveCommentReqWithDefaults() *SchemaRemoveCommentReq { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaRemoveCommentReq) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaRemoveCommentReq) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaRemoveCommentReq) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaRemoveCommentReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaRemoveCommentReq) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaRemoveCommentReq) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaRemoveCommentReq) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaRemoveCommentReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetCommentId returns the CommentId field value func (o *SchemaRemoveCommentReq) GetCommentId() string { if o == nil { @@ -75,6 +140,12 @@ func (o SchemaRemoveCommentReq) MarshalJSON() ([]byte, error) { func (o SchemaRemoveCommentReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } toSerialize["comment_id"] = o.CommentId return toSerialize, nil } diff --git a/model_schema_remove_question_req.go b/model_schema_remove_question_req.go index dc118dd..e5c2095 100644 --- a/model_schema_remove_question_req.go +++ b/model_schema_remove_question_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,9 @@ var _ MappedNullable = &SchemaRemoveQuestionReq{} // SchemaRemoveQuestionReq struct for SchemaRemoveQuestionReq type SchemaRemoveQuestionReq struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` // question id Id string `json:"id"` } @@ -41,6 +42,70 @@ func NewSchemaRemoveQuestionReqWithDefaults() *SchemaRemoveQuestionReq { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaRemoveQuestionReq) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaRemoveQuestionReq) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaRemoveQuestionReq) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaRemoveQuestionReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaRemoveQuestionReq) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaRemoveQuestionReq) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaRemoveQuestionReq) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaRemoveQuestionReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetId returns the Id field value func (o *SchemaRemoveQuestionReq) GetId() string { if o == nil { @@ -75,6 +140,12 @@ func (o SchemaRemoveQuestionReq) MarshalJSON() ([]byte, error) { func (o SchemaRemoveQuestionReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } toSerialize["id"] = o.Id return toSerialize, nil } diff --git a/model_schema_remove_tag_req.go b/model_schema_remove_tag_req.go index ca452ac..cc611e0 100644 --- a/model_schema_remove_tag_req.go +++ b/model_schema_remove_tag_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_reopen_question_req.go b/model_schema_reopen_question_req.go index db1147a..7228ab8 100644 --- a/model_schema_reopen_question_req.go +++ b/model_schema_reopen_question_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_report_handle_req.go b/model_schema_report_handle_req.go index eacccce..cb32c43 100644 --- a/model_schema_report_handle_req.go +++ b/model_schema_report_handle_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_revision_audit_req.go b/model_schema_revision_audit_req.go index 5ff3a39..8319228 100644 --- a/model_schema_revision_audit_req.go +++ b/model_schema_revision_audit_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_search_list_resp.go b/model_schema_search_list_resp.go index 56a5b96..f5d8a6f 100644 --- a/model_schema_search_list_resp.go +++ b/model_schema_search_list_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_search_object.go b/model_schema_search_object.go index 06d9fb6..cd9d6fc 100644 --- a/model_schema_search_object.go +++ b/model_schema_search_object.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,7 +28,7 @@ type SchemaSearchObject struct { // tags Tags []SchemaTagResp `json:"tags,omitempty"` Title *string `json:"title,omitempty"` - UserInfo *SchemaUserBasicInfo `json:"user_info,omitempty"` + UserInfo *SchemaSearchObjectUserInfo `json:"user_info,omitempty"` VoteCount *int32 `json:"vote_count,omitempty"` } @@ -340,9 +338,9 @@ func (o *SchemaSearchObject) SetTitle(v string) { } // GetUserInfo returns the UserInfo field value if set, zero value otherwise. -func (o *SchemaSearchObject) GetUserInfo() SchemaUserBasicInfo { +func (o *SchemaSearchObject) GetUserInfo() SchemaSearchObjectUserInfo { if o == nil || IsNil(o.UserInfo) { - var ret SchemaUserBasicInfo + var ret SchemaSearchObjectUserInfo return ret } return *o.UserInfo @@ -350,7 +348,7 @@ func (o *SchemaSearchObject) GetUserInfo() SchemaUserBasicInfo { // 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() (*SchemaUserBasicInfo, bool) { +func (o *SchemaSearchObject) GetUserInfoOk() (*SchemaSearchObjectUserInfo, bool) { if o == nil || IsNil(o.UserInfo) { return nil, false } @@ -366,8 +364,8 @@ func (o *SchemaSearchObject) HasUserInfo() bool { return false } -// SetUserInfo gets a reference to the given SchemaUserBasicInfo and assigns it to the UserInfo field. -func (o *SchemaSearchObject) SetUserInfo(v SchemaUserBasicInfo) { +// SetUserInfo gets a reference to the given SchemaSearchObjectUserInfo and assigns it to the UserInfo field. +func (o *SchemaSearchObject) SetUserInfo(v SchemaSearchObjectUserInfo) { o.UserInfo = &v } diff --git a/model_schema_search_object_user_info.go b/model_schema_search_object_user_info.go new file mode 100644 index 0000000..84ceed1 --- /dev/null +++ b/model_schema_search_object_user_info.go @@ -0,0 +1,421 @@ +/* +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 882bc16..79b503c 100644 --- a/model_schema_search_resp.go +++ b/model_schema_search_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +17,7 @@ var _ MappedNullable = &SchemaSearchResp{} // SchemaSearchResp struct for SchemaSearchResp type SchemaSearchResp struct { - Object *SchemaSearchObject `json:"object,omitempty"` + Object *SchemaSearchRespObject `json:"object,omitempty"` // object_type ObjectType *string `json:"object_type,omitempty"` } @@ -42,9 +40,9 @@ func NewSchemaSearchRespWithDefaults() *SchemaSearchResp { } // GetObject returns the Object field value if set, zero value otherwise. -func (o *SchemaSearchResp) GetObject() SchemaSearchObject { +func (o *SchemaSearchResp) GetObject() SchemaSearchRespObject { if o == nil || IsNil(o.Object) { - var ret SchemaSearchObject + var ret SchemaSearchRespObject return ret } return *o.Object @@ -52,7 +50,7 @@ func (o *SchemaSearchResp) GetObject() SchemaSearchObject { // 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 *SchemaSearchResp) GetObjectOk() (*SchemaSearchObject, bool) { +func (o *SchemaSearchResp) GetObjectOk() (*SchemaSearchRespObject, bool) { if o == nil || IsNil(o.Object) { return nil, false } @@ -68,8 +66,8 @@ func (o *SchemaSearchResp) HasObject() bool { return false } -// SetObject gets a reference to the given SchemaSearchObject and assigns it to the Object field. -func (o *SchemaSearchResp) SetObject(v SchemaSearchObject) { +// SetObject gets a reference to the given SchemaSearchRespObject and assigns it to the Object field. +func (o *SchemaSearchResp) SetObject(v SchemaSearchRespObject) { o.Object = &v } diff --git a/model_schema_search_resp_object.go b/model_schema_search_resp_object.go new file mode 100644 index 0000000..b1a6ae9 --- /dev/null +++ b/model_schema_search_resp_object.go @@ -0,0 +1,486 @@ +/* +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_send_user_activation_req.go b/model_schema_send_user_activation_req.go new file mode 100644 index 0000000..43b948b --- /dev/null +++ b/model_schema_send_user_activation_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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSendUserActivationReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSendUserActivationReq{} + +// SchemaSendUserActivationReq struct for SchemaSendUserActivationReq +type SchemaSendUserActivationReq struct { + UserId string `json:"user_id"` +} + +// NewSchemaSendUserActivationReq instantiates a new SchemaSendUserActivationReq 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 NewSchemaSendUserActivationReq(userId string) *SchemaSendUserActivationReq { + this := SchemaSendUserActivationReq{} + this.UserId = userId + return &this +} + +// NewSchemaSendUserActivationReqWithDefaults instantiates a new SchemaSendUserActivationReq 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 NewSchemaSendUserActivationReqWithDefaults() *SchemaSendUserActivationReq { + this := SchemaSendUserActivationReq{} + return &this +} + +// GetUserId returns the UserId field value +func (o *SchemaSendUserActivationReq) GetUserId() string { + if o == nil { + var ret string + return ret + } + + return o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value +// and a boolean to check if the value has been set. +func (o *SchemaSendUserActivationReq) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserId, true +} + +// SetUserId sets field value +func (o *SchemaSendUserActivationReq) SetUserId(v string) { + o.UserId = v +} + +func (o SchemaSendUserActivationReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSendUserActivationReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["user_id"] = o.UserId + return toSerialize, nil +} + +type NullableSchemaSendUserActivationReq struct { + value *SchemaSendUserActivationReq + isSet bool +} + +func (v NullableSchemaSendUserActivationReq) Get() *SchemaSendUserActivationReq { + return v.value +} + +func (v *NullableSchemaSendUserActivationReq) Set(val *SchemaSendUserActivationReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSendUserActivationReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSendUserActivationReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSendUserActivationReq(val *SchemaSendUserActivationReq) *NullableSchemaSendUserActivationReq { + return &NullableSchemaSendUserActivationReq{value: val, isSet: true} +} + +func (v NullableSchemaSendUserActivationReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSendUserActivationReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_branding_req.go b/model_schema_site_branding_req.go index d264693..82a0821 100644 --- a/model_schema_site_branding_req.go +++ b/model_schema_site_branding_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_branding_resp.go b/model_schema_site_branding_resp.go index 81a95d8..f8517a5 100644 --- a/model_schema_site_branding_resp.go +++ b/model_schema_site_branding_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_custom_css_html_req.go b/model_schema_site_custom_css_html_req.go index 4544594..6149855 100644 --- a/model_schema_site_custom_css_html_req.go +++ b/model_schema_site_custom_css_html_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +21,7 @@ type SchemaSiteCustomCssHTMLReq struct { CustomFooter *string `json:"custom_footer,omitempty"` CustomHead *string `json:"custom_head,omitempty"` CustomHeader *string `json:"custom_header,omitempty"` + CustomSidebar *string `json:"custom_sidebar,omitempty"` } // NewSchemaSiteCustomCssHTMLReq instantiates a new SchemaSiteCustomCssHTMLReq object @@ -170,6 +169,38 @@ func (o *SchemaSiteCustomCssHTMLReq) SetCustomHeader(v string) { o.CustomHeader = &v } +// GetCustomSidebar returns the CustomSidebar field value if set, zero value otherwise. +func (o *SchemaSiteCustomCssHTMLReq) GetCustomSidebar() string { + if o == nil || IsNil(o.CustomSidebar) { + var ret string + return ret + } + return *o.CustomSidebar +} + +// GetCustomSidebarOk returns a tuple with the CustomSidebar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteCustomCssHTMLReq) GetCustomSidebarOk() (*string, bool) { + if o == nil || IsNil(o.CustomSidebar) { + return nil, false + } + return o.CustomSidebar, true +} + +// HasCustomSidebar returns a boolean if a field has been set. +func (o *SchemaSiteCustomCssHTMLReq) HasCustomSidebar() bool { + if o != nil && !IsNil(o.CustomSidebar) { + return true + } + + return false +} + +// SetCustomSidebar gets a reference to the given string and assigns it to the CustomSidebar field. +func (o *SchemaSiteCustomCssHTMLReq) SetCustomSidebar(v string) { + o.CustomSidebar = &v +} + func (o SchemaSiteCustomCssHTMLReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -192,6 +223,9 @@ func (o SchemaSiteCustomCssHTMLReq) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomHeader) { toSerialize["custom_header"] = o.CustomHeader } + if !IsNil(o.CustomSidebar) { + toSerialize["custom_sidebar"] = o.CustomSidebar + } return toSerialize, nil } diff --git a/model_schema_site_custom_css_html_resp.go b/model_schema_site_custom_css_html_resp.go index dede801..33e4a97 100644 --- a/model_schema_site_custom_css_html_resp.go +++ b/model_schema_site_custom_css_html_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +21,7 @@ type SchemaSiteCustomCssHTMLResp struct { CustomFooter *string `json:"custom_footer,omitempty"` CustomHead *string `json:"custom_head,omitempty"` CustomHeader *string `json:"custom_header,omitempty"` + CustomSidebar *string `json:"custom_sidebar,omitempty"` } // NewSchemaSiteCustomCssHTMLResp instantiates a new SchemaSiteCustomCssHTMLResp object @@ -170,6 +169,38 @@ func (o *SchemaSiteCustomCssHTMLResp) SetCustomHeader(v string) { o.CustomHeader = &v } +// GetCustomSidebar returns the CustomSidebar field value if set, zero value otherwise. +func (o *SchemaSiteCustomCssHTMLResp) GetCustomSidebar() string { + if o == nil || IsNil(o.CustomSidebar) { + var ret string + return ret + } + return *o.CustomSidebar +} + +// GetCustomSidebarOk returns a tuple with the CustomSidebar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteCustomCssHTMLResp) GetCustomSidebarOk() (*string, bool) { + if o == nil || IsNil(o.CustomSidebar) { + return nil, false + } + return o.CustomSidebar, true +} + +// HasCustomSidebar returns a boolean if a field has been set. +func (o *SchemaSiteCustomCssHTMLResp) HasCustomSidebar() bool { + if o != nil && !IsNil(o.CustomSidebar) { + return true + } + + return false +} + +// SetCustomSidebar gets a reference to the given string and assigns it to the CustomSidebar field. +func (o *SchemaSiteCustomCssHTMLResp) SetCustomSidebar(v string) { + o.CustomSidebar = &v +} + func (o SchemaSiteCustomCssHTMLResp) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -192,6 +223,9 @@ func (o SchemaSiteCustomCssHTMLResp) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomHeader) { toSerialize["custom_header"] = o.CustomHeader } + if !IsNil(o.CustomSidebar) { + toSerialize["custom_sidebar"] = o.CustomSidebar + } return toSerialize, nil } diff --git a/model_schema_site_general_req.go b/model_schema_site_general_req.go index c50f70a..a65a616 100644 --- a/model_schema_site_general_req.go +++ b/model_schema_site_general_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_general_resp.go b/model_schema_site_general_resp.go index cef3439..c1e83c8 100644 --- a/model_schema_site_general_resp.go +++ b/model_schema_site_general_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_info_resp.go b/model_schema_site_info_resp.go index a421153..33b6e99 100644 --- a/model_schema_site_info_resp.go +++ b/model_schema_site_info_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,7 +23,8 @@ type SchemaSiteInfoResp struct { Interface *SchemaSiteInterfaceResp `json:"interface,omitempty"` Login *SchemaSiteLoginResp `json:"login,omitempty"` Revision *string `json:"revision,omitempty"` - SiteSeo *SchemaSiteSeoReq `json:"site_seo,omitempty"` + SiteSeo *SchemaSiteSeoResp `json:"site_seo,omitempty"` + SiteUsers *SchemaSiteUsersResp `json:"site_users,omitempty"` Theme *SchemaSiteThemeResp `json:"theme,omitempty"` Version *string `json:"version,omitempty"` } @@ -240,9 +239,9 @@ func (o *SchemaSiteInfoResp) SetRevision(v string) { } // GetSiteSeo returns the SiteSeo field value if set, zero value otherwise. -func (o *SchemaSiteInfoResp) GetSiteSeo() SchemaSiteSeoReq { +func (o *SchemaSiteInfoResp) GetSiteSeo() SchemaSiteSeoResp { if o == nil || IsNil(o.SiteSeo) { - var ret SchemaSiteSeoReq + var ret SchemaSiteSeoResp return ret } return *o.SiteSeo @@ -250,7 +249,7 @@ func (o *SchemaSiteInfoResp) GetSiteSeo() SchemaSiteSeoReq { // GetSiteSeoOk returns a tuple with the SiteSeo field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SchemaSiteInfoResp) GetSiteSeoOk() (*SchemaSiteSeoReq, bool) { +func (o *SchemaSiteInfoResp) GetSiteSeoOk() (*SchemaSiteSeoResp, bool) { if o == nil || IsNil(o.SiteSeo) { return nil, false } @@ -266,11 +265,43 @@ func (o *SchemaSiteInfoResp) HasSiteSeo() bool { return false } -// SetSiteSeo gets a reference to the given SchemaSiteSeoReq and assigns it to the SiteSeo field. -func (o *SchemaSiteInfoResp) SetSiteSeo(v SchemaSiteSeoReq) { +// SetSiteSeo gets a reference to the given SchemaSiteSeoResp and assigns it to the SiteSeo field. +func (o *SchemaSiteInfoResp) SetSiteSeo(v SchemaSiteSeoResp) { o.SiteSeo = &v } +// GetSiteUsers returns the SiteUsers field value if set, zero value otherwise. +func (o *SchemaSiteInfoResp) GetSiteUsers() SchemaSiteUsersResp { + if o == nil || IsNil(o.SiteUsers) { + var ret SchemaSiteUsersResp + return ret + } + return *o.SiteUsers +} + +// GetSiteUsersOk returns a tuple with the SiteUsers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteInfoResp) GetSiteUsersOk() (*SchemaSiteUsersResp, bool) { + if o == nil || IsNil(o.SiteUsers) { + return nil, false + } + return o.SiteUsers, true +} + +// HasSiteUsers returns a boolean if a field has been set. +func (o *SchemaSiteInfoResp) HasSiteUsers() bool { + if o != nil && !IsNil(o.SiteUsers) { + return true + } + + return false +} + +// SetSiteUsers gets a reference to the given SchemaSiteUsersResp and assigns it to the SiteUsers field. +func (o *SchemaSiteInfoResp) SetSiteUsers(v SchemaSiteUsersResp) { + o.SiteUsers = &v +} + // GetTheme returns the Theme field value if set, zero value otherwise. func (o *SchemaSiteInfoResp) GetTheme() SchemaSiteThemeResp { if o == nil || IsNil(o.Theme) { @@ -366,6 +397,9 @@ func (o SchemaSiteInfoResp) ToMap() (map[string]interface{}, error) { if !IsNil(o.SiteSeo) { toSerialize["site_seo"] = o.SiteSeo } + if !IsNil(o.SiteUsers) { + toSerialize["site_users"] = o.SiteUsers + } if !IsNil(o.Theme) { toSerialize["theme"] = o.Theme } diff --git a/model_schema_site_interface_req.go b/model_schema_site_interface_req.go index 81d511c..692fb56 100644 --- a/model_schema_site_interface_req.go +++ b/model_schema_site_interface_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +17,6 @@ var _ MappedNullable = &SchemaSiteInterfaceReq{} // SchemaSiteInterfaceReq struct for SchemaSiteInterfaceReq type SchemaSiteInterfaceReq struct { - DefaultAvatar string `json:"default_avatar"` Language string `json:"language"` TimeZone string `json:"time_zone"` } @@ -28,9 +25,8 @@ type SchemaSiteInterfaceReq struct { // 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 NewSchemaSiteInterfaceReq(defaultAvatar string, language string, timeZone string) *SchemaSiteInterfaceReq { +func NewSchemaSiteInterfaceReq(language string, timeZone string) *SchemaSiteInterfaceReq { this := SchemaSiteInterfaceReq{} - this.DefaultAvatar = defaultAvatar this.Language = language this.TimeZone = timeZone return &this @@ -44,30 +40,6 @@ func NewSchemaSiteInterfaceReqWithDefaults() *SchemaSiteInterfaceReq { return &this } -// GetDefaultAvatar returns the DefaultAvatar field value -func (o *SchemaSiteInterfaceReq) GetDefaultAvatar() string { - if o == nil { - var ret string - return ret - } - - return o.DefaultAvatar -} - -// GetDefaultAvatarOk returns a tuple with the DefaultAvatar field value -// and a boolean to check if the value has been set. -func (o *SchemaSiteInterfaceReq) GetDefaultAvatarOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DefaultAvatar, true -} - -// SetDefaultAvatar sets field value -func (o *SchemaSiteInterfaceReq) SetDefaultAvatar(v string) { - o.DefaultAvatar = v -} - // GetLanguage returns the Language field value func (o *SchemaSiteInterfaceReq) GetLanguage() string { if o == nil { @@ -126,7 +98,6 @@ func (o SchemaSiteInterfaceReq) MarshalJSON() ([]byte, error) { func (o SchemaSiteInterfaceReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["default_avatar"] = o.DefaultAvatar toSerialize["language"] = o.Language toSerialize["time_zone"] = o.TimeZone return toSerialize, nil diff --git a/model_schema_site_interface_resp.go b/model_schema_site_interface_resp.go index 0ca6576..e7f422b 100644 --- a/model_schema_site_interface_resp.go +++ b/model_schema_site_interface_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +17,6 @@ var _ MappedNullable = &SchemaSiteInterfaceResp{} // SchemaSiteInterfaceResp struct for SchemaSiteInterfaceResp type SchemaSiteInterfaceResp struct { - DefaultAvatar string `json:"default_avatar"` Language string `json:"language"` TimeZone string `json:"time_zone"` } @@ -28,9 +25,8 @@ type SchemaSiteInterfaceResp struct { // 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 NewSchemaSiteInterfaceResp(defaultAvatar string, language string, timeZone string) *SchemaSiteInterfaceResp { +func NewSchemaSiteInterfaceResp(language string, timeZone string) *SchemaSiteInterfaceResp { this := SchemaSiteInterfaceResp{} - this.DefaultAvatar = defaultAvatar this.Language = language this.TimeZone = timeZone return &this @@ -44,30 +40,6 @@ func NewSchemaSiteInterfaceRespWithDefaults() *SchemaSiteInterfaceResp { return &this } -// GetDefaultAvatar returns the DefaultAvatar field value -func (o *SchemaSiteInterfaceResp) GetDefaultAvatar() string { - if o == nil { - var ret string - return ret - } - - return o.DefaultAvatar -} - -// GetDefaultAvatarOk returns a tuple with the DefaultAvatar field value -// and a boolean to check if the value has been set. -func (o *SchemaSiteInterfaceResp) GetDefaultAvatarOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DefaultAvatar, true -} - -// SetDefaultAvatar sets field value -func (o *SchemaSiteInterfaceResp) SetDefaultAvatar(v string) { - o.DefaultAvatar = v -} - // GetLanguage returns the Language field value func (o *SchemaSiteInterfaceResp) GetLanguage() string { if o == nil { @@ -126,7 +98,6 @@ func (o SchemaSiteInterfaceResp) MarshalJSON() ([]byte, error) { func (o SchemaSiteInterfaceResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["default_avatar"] = o.DefaultAvatar toSerialize["language"] = o.Language toSerialize["time_zone"] = o.TimeZone return toSerialize, nil diff --git a/model_schema_site_legal_req.go b/model_schema_site_legal_req.go index 53b349a..726dff9 100644 --- a/model_schema_site_legal_req.go +++ b/model_schema_site_legal_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_legal_resp.go b/model_schema_site_legal_resp.go index 0078897..288fe58 100644 --- a/model_schema_site_legal_resp.go +++ b/model_schema_site_legal_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_login_req.go b/model_schema_site_login_req.go index c2a554d..3c8fd44 100644 --- a/model_schema_site_login_req.go +++ b/model_schema_site_login_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,8 @@ var _ MappedNullable = &SchemaSiteLoginReq{} // SchemaSiteLoginReq struct for SchemaSiteLoginReq type SchemaSiteLoginReq struct { + AllowEmailDomains []string `json:"allow_email_domains,omitempty"` + AllowEmailRegistrations *bool `json:"allow_email_registrations,omitempty"` AllowNewRegistrations *bool `json:"allow_new_registrations,omitempty"` LoginRequired *bool `json:"login_required,omitempty"` } @@ -40,6 +40,70 @@ func NewSchemaSiteLoginReqWithDefaults() *SchemaSiteLoginReq { return &this } +// GetAllowEmailDomains returns the AllowEmailDomains field value if set, zero value otherwise. +func (o *SchemaSiteLoginReq) GetAllowEmailDomains() []string { + if o == nil || IsNil(o.AllowEmailDomains) { + var ret []string + return ret + } + return o.AllowEmailDomains +} + +// GetAllowEmailDomainsOk returns a tuple with the AllowEmailDomains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLoginReq) GetAllowEmailDomainsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowEmailDomains) { + return nil, false + } + return o.AllowEmailDomains, true +} + +// HasAllowEmailDomains returns a boolean if a field has been set. +func (o *SchemaSiteLoginReq) HasAllowEmailDomains() bool { + if o != nil && !IsNil(o.AllowEmailDomains) { + return true + } + + return false +} + +// SetAllowEmailDomains gets a reference to the given []string and assigns it to the AllowEmailDomains field. +func (o *SchemaSiteLoginReq) SetAllowEmailDomains(v []string) { + o.AllowEmailDomains = v +} + +// GetAllowEmailRegistrations returns the AllowEmailRegistrations field value if set, zero value otherwise. +func (o *SchemaSiteLoginReq) GetAllowEmailRegistrations() bool { + if o == nil || IsNil(o.AllowEmailRegistrations) { + var ret bool + return ret + } + return *o.AllowEmailRegistrations +} + +// GetAllowEmailRegistrationsOk returns a tuple with the AllowEmailRegistrations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLoginReq) GetAllowEmailRegistrationsOk() (*bool, bool) { + if o == nil || IsNil(o.AllowEmailRegistrations) { + return nil, false + } + return o.AllowEmailRegistrations, true +} + +// HasAllowEmailRegistrations returns a boolean if a field has been set. +func (o *SchemaSiteLoginReq) HasAllowEmailRegistrations() bool { + if o != nil && !IsNil(o.AllowEmailRegistrations) { + return true + } + + return false +} + +// SetAllowEmailRegistrations gets a reference to the given bool and assigns it to the AllowEmailRegistrations field. +func (o *SchemaSiteLoginReq) SetAllowEmailRegistrations(v bool) { + o.AllowEmailRegistrations = &v +} + // GetAllowNewRegistrations returns the AllowNewRegistrations field value if set, zero value otherwise. func (o *SchemaSiteLoginReq) GetAllowNewRegistrations() bool { if o == nil || IsNil(o.AllowNewRegistrations) { @@ -114,6 +178,12 @@ func (o SchemaSiteLoginReq) MarshalJSON() ([]byte, error) { func (o SchemaSiteLoginReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.AllowEmailDomains) { + toSerialize["allow_email_domains"] = o.AllowEmailDomains + } + if !IsNil(o.AllowEmailRegistrations) { + toSerialize["allow_email_registrations"] = o.AllowEmailRegistrations + } if !IsNil(o.AllowNewRegistrations) { toSerialize["allow_new_registrations"] = o.AllowNewRegistrations } diff --git a/model_schema_site_login_resp.go b/model_schema_site_login_resp.go index 2ab81d3..d401fab 100644 --- a/model_schema_site_login_resp.go +++ b/model_schema_site_login_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,8 @@ var _ MappedNullable = &SchemaSiteLoginResp{} // SchemaSiteLoginResp struct for SchemaSiteLoginResp type SchemaSiteLoginResp struct { + AllowEmailDomains []string `json:"allow_email_domains,omitempty"` + AllowEmailRegistrations *bool `json:"allow_email_registrations,omitempty"` AllowNewRegistrations *bool `json:"allow_new_registrations,omitempty"` LoginRequired *bool `json:"login_required,omitempty"` } @@ -40,6 +40,70 @@ func NewSchemaSiteLoginRespWithDefaults() *SchemaSiteLoginResp { return &this } +// GetAllowEmailDomains returns the AllowEmailDomains field value if set, zero value otherwise. +func (o *SchemaSiteLoginResp) GetAllowEmailDomains() []string { + if o == nil || IsNil(o.AllowEmailDomains) { + var ret []string + return ret + } + return o.AllowEmailDomains +} + +// GetAllowEmailDomainsOk returns a tuple with the AllowEmailDomains field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLoginResp) GetAllowEmailDomainsOk() ([]string, bool) { + if o == nil || IsNil(o.AllowEmailDomains) { + return nil, false + } + return o.AllowEmailDomains, true +} + +// HasAllowEmailDomains returns a boolean if a field has been set. +func (o *SchemaSiteLoginResp) HasAllowEmailDomains() bool { + if o != nil && !IsNil(o.AllowEmailDomains) { + return true + } + + return false +} + +// SetAllowEmailDomains gets a reference to the given []string and assigns it to the AllowEmailDomains field. +func (o *SchemaSiteLoginResp) SetAllowEmailDomains(v []string) { + o.AllowEmailDomains = v +} + +// GetAllowEmailRegistrations returns the AllowEmailRegistrations field value if set, zero value otherwise. +func (o *SchemaSiteLoginResp) GetAllowEmailRegistrations() bool { + if o == nil || IsNil(o.AllowEmailRegistrations) { + var ret bool + return ret + } + return *o.AllowEmailRegistrations +} + +// GetAllowEmailRegistrationsOk returns a tuple with the AllowEmailRegistrations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLoginResp) GetAllowEmailRegistrationsOk() (*bool, bool) { + if o == nil || IsNil(o.AllowEmailRegistrations) { + return nil, false + } + return o.AllowEmailRegistrations, true +} + +// HasAllowEmailRegistrations returns a boolean if a field has been set. +func (o *SchemaSiteLoginResp) HasAllowEmailRegistrations() bool { + if o != nil && !IsNil(o.AllowEmailRegistrations) { + return true + } + + return false +} + +// SetAllowEmailRegistrations gets a reference to the given bool and assigns it to the AllowEmailRegistrations field. +func (o *SchemaSiteLoginResp) SetAllowEmailRegistrations(v bool) { + o.AllowEmailRegistrations = &v +} + // GetAllowNewRegistrations returns the AllowNewRegistrations field value if set, zero value otherwise. func (o *SchemaSiteLoginResp) GetAllowNewRegistrations() bool { if o == nil || IsNil(o.AllowNewRegistrations) { @@ -114,6 +178,12 @@ func (o SchemaSiteLoginResp) MarshalJSON() ([]byte, error) { func (o SchemaSiteLoginResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.AllowEmailDomains) { + toSerialize["allow_email_domains"] = o.AllowEmailDomains + } + if !IsNil(o.AllowEmailRegistrations) { + toSerialize["allow_email_registrations"] = o.AllowEmailRegistrations + } if !IsNil(o.AllowNewRegistrations) { toSerialize["allow_new_registrations"] = o.AllowNewRegistrations } diff --git a/model_schema_site_seo_req.go b/model_schema_site_seo_req.go index 641b29f..bf6d0a6 100644 --- a/model_schema_site_seo_req.go +++ b/model_schema_site_seo_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_seo_resp.go b/model_schema_site_seo_resp.go index 04d2e57..c55debd 100644 --- a/model_schema_site_seo_resp.go +++ b/model_schema_site_seo_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_theme_req.go b/model_schema_site_theme_req.go index c1fb7ee..fbc6304 100644 --- a/model_schema_site_theme_req.go +++ b/model_schema_site_theme_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_theme_resp.go b/model_schema_site_theme_resp.go index 356d160..77e154c 100644 --- a/model_schema_site_theme_resp.go +++ b/model_schema_site_theme_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_users_req.go b/model_schema_site_users_req.go new file mode 100644 index 0000000..8e355d4 --- /dev/null +++ b/model_schema_site_users_req.go @@ -0,0 +1,367 @@ +/* +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 SchemaSiteUsersReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteUsersReq{} + +// SchemaSiteUsersReq struct for SchemaSiteUsersReq +type SchemaSiteUsersReq struct { + AllowUpdateAvatar *bool `json:"allow_update_avatar,omitempty"` + AllowUpdateBio *bool `json:"allow_update_bio,omitempty"` + AllowUpdateDisplayName *bool `json:"allow_update_display_name,omitempty"` + AllowUpdateLocation *bool `json:"allow_update_location,omitempty"` + AllowUpdateUsername *bool `json:"allow_update_username,omitempty"` + AllowUpdateWebsite *bool `json:"allow_update_website,omitempty"` + DefaultAvatar string `json:"default_avatar"` + GravatarBaseUrl *string `json:"gravatar_base_url,omitempty"` +} + +// NewSchemaSiteUsersReq instantiates a new SchemaSiteUsersReq 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 NewSchemaSiteUsersReq(defaultAvatar string) *SchemaSiteUsersReq { + this := SchemaSiteUsersReq{} + this.DefaultAvatar = defaultAvatar + return &this +} + +// NewSchemaSiteUsersReqWithDefaults instantiates a new SchemaSiteUsersReq 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 NewSchemaSiteUsersReqWithDefaults() *SchemaSiteUsersReq { + this := SchemaSiteUsersReq{} + return &this +} + +// GetAllowUpdateAvatar returns the AllowUpdateAvatar field value if set, zero value otherwise. +func (o *SchemaSiteUsersReq) GetAllowUpdateAvatar() bool { + if o == nil || IsNil(o.AllowUpdateAvatar) { + var ret bool + return ret + } + return *o.AllowUpdateAvatar +} + +// GetAllowUpdateAvatarOk returns a tuple with the AllowUpdateAvatar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersReq) GetAllowUpdateAvatarOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateAvatar) { + return nil, false + } + return o.AllowUpdateAvatar, true +} + +// HasAllowUpdateAvatar returns a boolean if a field has been set. +func (o *SchemaSiteUsersReq) HasAllowUpdateAvatar() bool { + if o != nil && !IsNil(o.AllowUpdateAvatar) { + return true + } + + return false +} + +// SetAllowUpdateAvatar gets a reference to the given bool and assigns it to the AllowUpdateAvatar field. +func (o *SchemaSiteUsersReq) SetAllowUpdateAvatar(v bool) { + o.AllowUpdateAvatar = &v +} + +// GetAllowUpdateBio returns the AllowUpdateBio field value if set, zero value otherwise. +func (o *SchemaSiteUsersReq) GetAllowUpdateBio() bool { + if o == nil || IsNil(o.AllowUpdateBio) { + var ret bool + return ret + } + return *o.AllowUpdateBio +} + +// GetAllowUpdateBioOk returns a tuple with the AllowUpdateBio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersReq) GetAllowUpdateBioOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateBio) { + return nil, false + } + return o.AllowUpdateBio, true +} + +// HasAllowUpdateBio returns a boolean if a field has been set. +func (o *SchemaSiteUsersReq) HasAllowUpdateBio() bool { + if o != nil && !IsNil(o.AllowUpdateBio) { + return true + } + + return false +} + +// SetAllowUpdateBio gets a reference to the given bool and assigns it to the AllowUpdateBio field. +func (o *SchemaSiteUsersReq) SetAllowUpdateBio(v bool) { + o.AllowUpdateBio = &v +} + +// GetAllowUpdateDisplayName returns the AllowUpdateDisplayName field value if set, zero value otherwise. +func (o *SchemaSiteUsersReq) GetAllowUpdateDisplayName() bool { + if o == nil || IsNil(o.AllowUpdateDisplayName) { + var ret bool + return ret + } + return *o.AllowUpdateDisplayName +} + +// GetAllowUpdateDisplayNameOk returns a tuple with the AllowUpdateDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersReq) GetAllowUpdateDisplayNameOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateDisplayName) { + return nil, false + } + return o.AllowUpdateDisplayName, true +} + +// HasAllowUpdateDisplayName returns a boolean if a field has been set. +func (o *SchemaSiteUsersReq) HasAllowUpdateDisplayName() bool { + if o != nil && !IsNil(o.AllowUpdateDisplayName) { + return true + } + + return false +} + +// SetAllowUpdateDisplayName gets a reference to the given bool and assigns it to the AllowUpdateDisplayName field. +func (o *SchemaSiteUsersReq) SetAllowUpdateDisplayName(v bool) { + o.AllowUpdateDisplayName = &v +} + +// GetAllowUpdateLocation returns the AllowUpdateLocation field value if set, zero value otherwise. +func (o *SchemaSiteUsersReq) GetAllowUpdateLocation() bool { + if o == nil || IsNil(o.AllowUpdateLocation) { + var ret bool + return ret + } + return *o.AllowUpdateLocation +} + +// GetAllowUpdateLocationOk returns a tuple with the AllowUpdateLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersReq) GetAllowUpdateLocationOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateLocation) { + return nil, false + } + return o.AllowUpdateLocation, true +} + +// HasAllowUpdateLocation returns a boolean if a field has been set. +func (o *SchemaSiteUsersReq) HasAllowUpdateLocation() bool { + if o != nil && !IsNil(o.AllowUpdateLocation) { + return true + } + + return false +} + +// SetAllowUpdateLocation gets a reference to the given bool and assigns it to the AllowUpdateLocation field. +func (o *SchemaSiteUsersReq) SetAllowUpdateLocation(v bool) { + o.AllowUpdateLocation = &v +} + +// GetAllowUpdateUsername returns the AllowUpdateUsername field value if set, zero value otherwise. +func (o *SchemaSiteUsersReq) GetAllowUpdateUsername() bool { + if o == nil || IsNil(o.AllowUpdateUsername) { + var ret bool + return ret + } + return *o.AllowUpdateUsername +} + +// GetAllowUpdateUsernameOk returns a tuple with the AllowUpdateUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersReq) GetAllowUpdateUsernameOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateUsername) { + return nil, false + } + return o.AllowUpdateUsername, true +} + +// HasAllowUpdateUsername returns a boolean if a field has been set. +func (o *SchemaSiteUsersReq) HasAllowUpdateUsername() bool { + if o != nil && !IsNil(o.AllowUpdateUsername) { + return true + } + + return false +} + +// SetAllowUpdateUsername gets a reference to the given bool and assigns it to the AllowUpdateUsername field. +func (o *SchemaSiteUsersReq) SetAllowUpdateUsername(v bool) { + o.AllowUpdateUsername = &v +} + +// GetAllowUpdateWebsite returns the AllowUpdateWebsite field value if set, zero value otherwise. +func (o *SchemaSiteUsersReq) GetAllowUpdateWebsite() bool { + if o == nil || IsNil(o.AllowUpdateWebsite) { + var ret bool + return ret + } + return *o.AllowUpdateWebsite +} + +// GetAllowUpdateWebsiteOk returns a tuple with the AllowUpdateWebsite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersReq) GetAllowUpdateWebsiteOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateWebsite) { + return nil, false + } + return o.AllowUpdateWebsite, true +} + +// HasAllowUpdateWebsite returns a boolean if a field has been set. +func (o *SchemaSiteUsersReq) HasAllowUpdateWebsite() bool { + if o != nil && !IsNil(o.AllowUpdateWebsite) { + return true + } + + return false +} + +// SetAllowUpdateWebsite gets a reference to the given bool and assigns it to the AllowUpdateWebsite field. +func (o *SchemaSiteUsersReq) SetAllowUpdateWebsite(v bool) { + o.AllowUpdateWebsite = &v +} + +// GetDefaultAvatar returns the DefaultAvatar field value +func (o *SchemaSiteUsersReq) GetDefaultAvatar() string { + if o == nil { + var ret string + return ret + } + + return o.DefaultAvatar +} + +// GetDefaultAvatarOk returns a tuple with the DefaultAvatar field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersReq) GetDefaultAvatarOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefaultAvatar, true +} + +// SetDefaultAvatar sets field value +func (o *SchemaSiteUsersReq) SetDefaultAvatar(v string) { + o.DefaultAvatar = v +} + +// GetGravatarBaseUrl returns the GravatarBaseUrl field value if set, zero value otherwise. +func (o *SchemaSiteUsersReq) GetGravatarBaseUrl() string { + if o == nil || IsNil(o.GravatarBaseUrl) { + var ret string + return ret + } + return *o.GravatarBaseUrl +} + +// GetGravatarBaseUrlOk returns a tuple with the GravatarBaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersReq) GetGravatarBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.GravatarBaseUrl) { + return nil, false + } + return o.GravatarBaseUrl, true +} + +// HasGravatarBaseUrl returns a boolean if a field has been set. +func (o *SchemaSiteUsersReq) HasGravatarBaseUrl() bool { + if o != nil && !IsNil(o.GravatarBaseUrl) { + return true + } + + return false +} + +// SetGravatarBaseUrl gets a reference to the given string and assigns it to the GravatarBaseUrl field. +func (o *SchemaSiteUsersReq) SetGravatarBaseUrl(v string) { + o.GravatarBaseUrl = &v +} + +func (o SchemaSiteUsersReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteUsersReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AllowUpdateAvatar) { + toSerialize["allow_update_avatar"] = o.AllowUpdateAvatar + } + if !IsNil(o.AllowUpdateBio) { + toSerialize["allow_update_bio"] = o.AllowUpdateBio + } + if !IsNil(o.AllowUpdateDisplayName) { + toSerialize["allow_update_display_name"] = o.AllowUpdateDisplayName + } + if !IsNil(o.AllowUpdateLocation) { + toSerialize["allow_update_location"] = o.AllowUpdateLocation + } + if !IsNil(o.AllowUpdateUsername) { + toSerialize["allow_update_username"] = o.AllowUpdateUsername + } + if !IsNil(o.AllowUpdateWebsite) { + toSerialize["allow_update_website"] = o.AllowUpdateWebsite + } + toSerialize["default_avatar"] = o.DefaultAvatar + if !IsNil(o.GravatarBaseUrl) { + toSerialize["gravatar_base_url"] = o.GravatarBaseUrl + } + return toSerialize, nil +} + +type NullableSchemaSiteUsersReq struct { + value *SchemaSiteUsersReq + isSet bool +} + +func (v NullableSchemaSiteUsersReq) Get() *SchemaSiteUsersReq { + return v.value +} + +func (v *NullableSchemaSiteUsersReq) Set(val *SchemaSiteUsersReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteUsersReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteUsersReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteUsersReq(val *SchemaSiteUsersReq) *NullableSchemaSiteUsersReq { + return &NullableSchemaSiteUsersReq{value: val, isSet: true} +} + +func (v NullableSchemaSiteUsersReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteUsersReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_users_resp.go b/model_schema_site_users_resp.go new file mode 100644 index 0000000..586a5e5 --- /dev/null +++ b/model_schema_site_users_resp.go @@ -0,0 +1,367 @@ +/* +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 SchemaSiteUsersResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteUsersResp{} + +// SchemaSiteUsersResp struct for SchemaSiteUsersResp +type SchemaSiteUsersResp struct { + AllowUpdateAvatar *bool `json:"allow_update_avatar,omitempty"` + AllowUpdateBio *bool `json:"allow_update_bio,omitempty"` + AllowUpdateDisplayName *bool `json:"allow_update_display_name,omitempty"` + AllowUpdateLocation *bool `json:"allow_update_location,omitempty"` + AllowUpdateUsername *bool `json:"allow_update_username,omitempty"` + AllowUpdateWebsite *bool `json:"allow_update_website,omitempty"` + DefaultAvatar string `json:"default_avatar"` + GravatarBaseUrl *string `json:"gravatar_base_url,omitempty"` +} + +// NewSchemaSiteUsersResp instantiates a new SchemaSiteUsersResp 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 NewSchemaSiteUsersResp(defaultAvatar string) *SchemaSiteUsersResp { + this := SchemaSiteUsersResp{} + this.DefaultAvatar = defaultAvatar + return &this +} + +// NewSchemaSiteUsersRespWithDefaults instantiates a new SchemaSiteUsersResp 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 NewSchemaSiteUsersRespWithDefaults() *SchemaSiteUsersResp { + this := SchemaSiteUsersResp{} + return &this +} + +// GetAllowUpdateAvatar returns the AllowUpdateAvatar field value if set, zero value otherwise. +func (o *SchemaSiteUsersResp) GetAllowUpdateAvatar() bool { + if o == nil || IsNil(o.AllowUpdateAvatar) { + var ret bool + return ret + } + return *o.AllowUpdateAvatar +} + +// GetAllowUpdateAvatarOk returns a tuple with the AllowUpdateAvatar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersResp) GetAllowUpdateAvatarOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateAvatar) { + return nil, false + } + return o.AllowUpdateAvatar, true +} + +// HasAllowUpdateAvatar returns a boolean if a field has been set. +func (o *SchemaSiteUsersResp) HasAllowUpdateAvatar() bool { + if o != nil && !IsNil(o.AllowUpdateAvatar) { + return true + } + + return false +} + +// SetAllowUpdateAvatar gets a reference to the given bool and assigns it to the AllowUpdateAvatar field. +func (o *SchemaSiteUsersResp) SetAllowUpdateAvatar(v bool) { + o.AllowUpdateAvatar = &v +} + +// GetAllowUpdateBio returns the AllowUpdateBio field value if set, zero value otherwise. +func (o *SchemaSiteUsersResp) GetAllowUpdateBio() bool { + if o == nil || IsNil(o.AllowUpdateBio) { + var ret bool + return ret + } + return *o.AllowUpdateBio +} + +// GetAllowUpdateBioOk returns a tuple with the AllowUpdateBio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersResp) GetAllowUpdateBioOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateBio) { + return nil, false + } + return o.AllowUpdateBio, true +} + +// HasAllowUpdateBio returns a boolean if a field has been set. +func (o *SchemaSiteUsersResp) HasAllowUpdateBio() bool { + if o != nil && !IsNil(o.AllowUpdateBio) { + return true + } + + return false +} + +// SetAllowUpdateBio gets a reference to the given bool and assigns it to the AllowUpdateBio field. +func (o *SchemaSiteUsersResp) SetAllowUpdateBio(v bool) { + o.AllowUpdateBio = &v +} + +// GetAllowUpdateDisplayName returns the AllowUpdateDisplayName field value if set, zero value otherwise. +func (o *SchemaSiteUsersResp) GetAllowUpdateDisplayName() bool { + if o == nil || IsNil(o.AllowUpdateDisplayName) { + var ret bool + return ret + } + return *o.AllowUpdateDisplayName +} + +// GetAllowUpdateDisplayNameOk returns a tuple with the AllowUpdateDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersResp) GetAllowUpdateDisplayNameOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateDisplayName) { + return nil, false + } + return o.AllowUpdateDisplayName, true +} + +// HasAllowUpdateDisplayName returns a boolean if a field has been set. +func (o *SchemaSiteUsersResp) HasAllowUpdateDisplayName() bool { + if o != nil && !IsNil(o.AllowUpdateDisplayName) { + return true + } + + return false +} + +// SetAllowUpdateDisplayName gets a reference to the given bool and assigns it to the AllowUpdateDisplayName field. +func (o *SchemaSiteUsersResp) SetAllowUpdateDisplayName(v bool) { + o.AllowUpdateDisplayName = &v +} + +// GetAllowUpdateLocation returns the AllowUpdateLocation field value if set, zero value otherwise. +func (o *SchemaSiteUsersResp) GetAllowUpdateLocation() bool { + if o == nil || IsNil(o.AllowUpdateLocation) { + var ret bool + return ret + } + return *o.AllowUpdateLocation +} + +// GetAllowUpdateLocationOk returns a tuple with the AllowUpdateLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersResp) GetAllowUpdateLocationOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateLocation) { + return nil, false + } + return o.AllowUpdateLocation, true +} + +// HasAllowUpdateLocation returns a boolean if a field has been set. +func (o *SchemaSiteUsersResp) HasAllowUpdateLocation() bool { + if o != nil && !IsNil(o.AllowUpdateLocation) { + return true + } + + return false +} + +// SetAllowUpdateLocation gets a reference to the given bool and assigns it to the AllowUpdateLocation field. +func (o *SchemaSiteUsersResp) SetAllowUpdateLocation(v bool) { + o.AllowUpdateLocation = &v +} + +// GetAllowUpdateUsername returns the AllowUpdateUsername field value if set, zero value otherwise. +func (o *SchemaSiteUsersResp) GetAllowUpdateUsername() bool { + if o == nil || IsNil(o.AllowUpdateUsername) { + var ret bool + return ret + } + return *o.AllowUpdateUsername +} + +// GetAllowUpdateUsernameOk returns a tuple with the AllowUpdateUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersResp) GetAllowUpdateUsernameOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateUsername) { + return nil, false + } + return o.AllowUpdateUsername, true +} + +// HasAllowUpdateUsername returns a boolean if a field has been set. +func (o *SchemaSiteUsersResp) HasAllowUpdateUsername() bool { + if o != nil && !IsNil(o.AllowUpdateUsername) { + return true + } + + return false +} + +// SetAllowUpdateUsername gets a reference to the given bool and assigns it to the AllowUpdateUsername field. +func (o *SchemaSiteUsersResp) SetAllowUpdateUsername(v bool) { + o.AllowUpdateUsername = &v +} + +// GetAllowUpdateWebsite returns the AllowUpdateWebsite field value if set, zero value otherwise. +func (o *SchemaSiteUsersResp) GetAllowUpdateWebsite() bool { + if o == nil || IsNil(o.AllowUpdateWebsite) { + var ret bool + return ret + } + return *o.AllowUpdateWebsite +} + +// GetAllowUpdateWebsiteOk returns a tuple with the AllowUpdateWebsite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersResp) GetAllowUpdateWebsiteOk() (*bool, bool) { + if o == nil || IsNil(o.AllowUpdateWebsite) { + return nil, false + } + return o.AllowUpdateWebsite, true +} + +// HasAllowUpdateWebsite returns a boolean if a field has been set. +func (o *SchemaSiteUsersResp) HasAllowUpdateWebsite() bool { + if o != nil && !IsNil(o.AllowUpdateWebsite) { + return true + } + + return false +} + +// SetAllowUpdateWebsite gets a reference to the given bool and assigns it to the AllowUpdateWebsite field. +func (o *SchemaSiteUsersResp) SetAllowUpdateWebsite(v bool) { + o.AllowUpdateWebsite = &v +} + +// GetDefaultAvatar returns the DefaultAvatar field value +func (o *SchemaSiteUsersResp) GetDefaultAvatar() string { + if o == nil { + var ret string + return ret + } + + return o.DefaultAvatar +} + +// GetDefaultAvatarOk returns a tuple with the DefaultAvatar field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersResp) GetDefaultAvatarOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DefaultAvatar, true +} + +// SetDefaultAvatar sets field value +func (o *SchemaSiteUsersResp) SetDefaultAvatar(v string) { + o.DefaultAvatar = v +} + +// GetGravatarBaseUrl returns the GravatarBaseUrl field value if set, zero value otherwise. +func (o *SchemaSiteUsersResp) GetGravatarBaseUrl() string { + if o == nil || IsNil(o.GravatarBaseUrl) { + var ret string + return ret + } + return *o.GravatarBaseUrl +} + +// GetGravatarBaseUrlOk returns a tuple with the GravatarBaseUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteUsersResp) GetGravatarBaseUrlOk() (*string, bool) { + if o == nil || IsNil(o.GravatarBaseUrl) { + return nil, false + } + return o.GravatarBaseUrl, true +} + +// HasGravatarBaseUrl returns a boolean if a field has been set. +func (o *SchemaSiteUsersResp) HasGravatarBaseUrl() bool { + if o != nil && !IsNil(o.GravatarBaseUrl) { + return true + } + + return false +} + +// SetGravatarBaseUrl gets a reference to the given string and assigns it to the GravatarBaseUrl field. +func (o *SchemaSiteUsersResp) SetGravatarBaseUrl(v string) { + o.GravatarBaseUrl = &v +} + +func (o SchemaSiteUsersResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteUsersResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AllowUpdateAvatar) { + toSerialize["allow_update_avatar"] = o.AllowUpdateAvatar + } + if !IsNil(o.AllowUpdateBio) { + toSerialize["allow_update_bio"] = o.AllowUpdateBio + } + if !IsNil(o.AllowUpdateDisplayName) { + toSerialize["allow_update_display_name"] = o.AllowUpdateDisplayName + } + if !IsNil(o.AllowUpdateLocation) { + toSerialize["allow_update_location"] = o.AllowUpdateLocation + } + if !IsNil(o.AllowUpdateUsername) { + toSerialize["allow_update_username"] = o.AllowUpdateUsername + } + if !IsNil(o.AllowUpdateWebsite) { + toSerialize["allow_update_website"] = o.AllowUpdateWebsite + } + toSerialize["default_avatar"] = o.DefaultAvatar + if !IsNil(o.GravatarBaseUrl) { + toSerialize["gravatar_base_url"] = o.GravatarBaseUrl + } + return toSerialize, nil +} + +type NullableSchemaSiteUsersResp struct { + value *SchemaSiteUsersResp + isSet bool +} + +func (v NullableSchemaSiteUsersResp) Get() *SchemaSiteUsersResp { + return v.value +} + +func (v *NullableSchemaSiteUsersResp) Set(val *SchemaSiteUsersResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteUsersResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteUsersResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteUsersResp(val *SchemaSiteUsersResp) *NullableSchemaSiteUsersResp { + return &NullableSchemaSiteUsersResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteUsersResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteUsersResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_write_req.go b/model_schema_site_write_req.go index 1149e3f..61103ad 100644 --- a/model_schema_site_write_req.go +++ b/model_schema_site_write_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_site_write_resp.go b/model_schema_site_write_resp.go index 97e8ee7..848fca5 100644 --- a/model_schema_site_write_resp.go +++ b/model_schema_site_write_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_tag_item.go b/model_schema_tag_item.go index 7249b74..4feb409 100644 --- a/model_schema_tag_item.go +++ b/model_schema_tag_item.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_tag_resp.go b/model_schema_tag_resp.go index e34d7c8..ce1a03f 100644 --- a/model_schema_tag_resp.go +++ b/model_schema_tag_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_tag_synonym.go b/model_schema_tag_synonym.go index d6f28a9..e453e51 100644 --- a/model_schema_tag_synonym.go +++ b/model_schema_tag_synonym.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_theme_option.go b/model_schema_theme_option.go index c4493de..a6c96ce 100644 --- a/model_schema_theme_option.go +++ b/model_schema_theme_option.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_ui_option_action.go b/model_schema_ui_option_action.go new file mode 100644 index 0000000..6ee76b4 --- /dev/null +++ b/model_schema_ui_option_action.go @@ -0,0 +1,232 @@ +/* +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 SchemaUIOptionAction type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUIOptionAction{} + +// SchemaUIOptionAction struct for SchemaUIOptionAction +type SchemaUIOptionAction struct { + Loading *SchemaLoadingAction `json:"loading,omitempty"` + Method *string `json:"method,omitempty"` + OnComplete *SchemaOnCompleteAction `json:"on_complete,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewSchemaUIOptionAction instantiates a new SchemaUIOptionAction 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 NewSchemaUIOptionAction() *SchemaUIOptionAction { + this := SchemaUIOptionAction{} + return &this +} + +// NewSchemaUIOptionActionWithDefaults instantiates a new SchemaUIOptionAction 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 NewSchemaUIOptionActionWithDefaults() *SchemaUIOptionAction { + this := SchemaUIOptionAction{} + return &this +} + +// GetLoading returns the Loading field value if set, zero value otherwise. +func (o *SchemaUIOptionAction) GetLoading() SchemaLoadingAction { + if o == nil || IsNil(o.Loading) { + var ret SchemaLoadingAction + return ret + } + return *o.Loading +} + +// GetLoadingOk returns a tuple with the Loading field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUIOptionAction) GetLoadingOk() (*SchemaLoadingAction, bool) { + if o == nil || IsNil(o.Loading) { + return nil, false + } + return o.Loading, true +} + +// HasLoading returns a boolean if a field has been set. +func (o *SchemaUIOptionAction) HasLoading() bool { + if o != nil && !IsNil(o.Loading) { + return true + } + + return false +} + +// SetLoading gets a reference to the given SchemaLoadingAction and assigns it to the Loading field. +func (o *SchemaUIOptionAction) SetLoading(v SchemaLoadingAction) { + o.Loading = &v +} + +// GetMethod returns the Method field value if set, zero value otherwise. +func (o *SchemaUIOptionAction) GetMethod() string { + if o == nil || IsNil(o.Method) { + var ret string + return ret + } + return *o.Method +} + +// GetMethodOk returns a tuple with the Method field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUIOptionAction) GetMethodOk() (*string, bool) { + if o == nil || IsNil(o.Method) { + return nil, false + } + return o.Method, true +} + +// HasMethod returns a boolean if a field has been set. +func (o *SchemaUIOptionAction) HasMethod() bool { + if o != nil && !IsNil(o.Method) { + return true + } + + return false +} + +// SetMethod gets a reference to the given string and assigns it to the Method field. +func (o *SchemaUIOptionAction) SetMethod(v string) { + o.Method = &v +} + +// GetOnComplete returns the OnComplete field value if set, zero value otherwise. +func (o *SchemaUIOptionAction) GetOnComplete() SchemaOnCompleteAction { + if o == nil || IsNil(o.OnComplete) { + var ret SchemaOnCompleteAction + return ret + } + return *o.OnComplete +} + +// GetOnCompleteOk returns a tuple with the OnComplete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUIOptionAction) GetOnCompleteOk() (*SchemaOnCompleteAction, bool) { + if o == nil || IsNil(o.OnComplete) { + return nil, false + } + return o.OnComplete, true +} + +// HasOnComplete returns a boolean if a field has been set. +func (o *SchemaUIOptionAction) HasOnComplete() bool { + if o != nil && !IsNil(o.OnComplete) { + return true + } + + return false +} + +// SetOnComplete gets a reference to the given SchemaOnCompleteAction and assigns it to the OnComplete field. +func (o *SchemaUIOptionAction) SetOnComplete(v SchemaOnCompleteAction) { + o.OnComplete = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *SchemaUIOptionAction) GetUrl() string { + if o == nil || IsNil(o.Url) { + var ret string + return ret + } + return *o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUIOptionAction) GetUrlOk() (*string, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *SchemaUIOptionAction) HasUrl() bool { + if o != nil && !IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given string and assigns it to the Url field. +func (o *SchemaUIOptionAction) SetUrl(v string) { + o.Url = &v +} + +func (o SchemaUIOptionAction) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUIOptionAction) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Loading) { + toSerialize["loading"] = o.Loading + } + if !IsNil(o.Method) { + toSerialize["method"] = o.Method + } + if !IsNil(o.OnComplete) { + toSerialize["on_complete"] = o.OnComplete + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableSchemaUIOptionAction struct { + value *SchemaUIOptionAction + isSet bool +} + +func (v NullableSchemaUIOptionAction) Get() *SchemaUIOptionAction { + return v.value +} + +func (v *NullableSchemaUIOptionAction) Set(val *SchemaUIOptionAction) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUIOptionAction) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUIOptionAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUIOptionAction(val *SchemaUIOptionAction) *NullableSchemaUIOptionAction { + return &NullableSchemaUIOptionAction{value: val, isSet: true} +} + +func (v NullableSchemaUIOptionAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUIOptionAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_unreviewed_revision_info_info.go b/model_schema_unreviewed_revision_info_info.go index 5771e77..77e0ad7 100644 --- a/model_schema_unreviewed_revision_info_info.go +++ b/model_schema_unreviewed_revision_info_info.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_update_comment_req.go b/model_schema_update_comment_req.go index 3675b78..c5b6d6e 100644 --- a/model_schema_update_comment_req.go +++ b/model_schema_update_comment_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,9 @@ var _ MappedNullable = &SchemaUpdateCommentReq{} // SchemaUpdateCommentReq struct for SchemaUpdateCommentReq type SchemaUpdateCommentReq struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` // comment id CommentId string `json:"comment_id"` // original comment content @@ -44,6 +45,70 @@ func NewSchemaUpdateCommentReqWithDefaults() *SchemaUpdateCommentReq { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaUpdateCommentReq) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaUpdateCommentReq) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaUpdateCommentReq) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaUpdateCommentReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaUpdateCommentReq) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaUpdateCommentReq) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaUpdateCommentReq) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaUpdateCommentReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetCommentId returns the CommentId field value func (o *SchemaUpdateCommentReq) GetCommentId() string { if o == nil { @@ -102,6 +167,12 @@ func (o SchemaUpdateCommentReq) MarshalJSON() ([]byte, error) { func (o SchemaUpdateCommentReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } toSerialize["comment_id"] = o.CommentId toSerialize["original_text"] = o.OriginalText return toSerialize, nil diff --git a/model_schema_update_follow_tags_req.go b/model_schema_update_follow_tags_req.go index a6dc3b3..9a1910c 100644 --- a/model_schema_update_follow_tags_req.go +++ b/model_schema_update_follow_tags_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_update_info_request.go b/model_schema_update_info_request.go index 8d9e172..778e3df 100644 --- a/model_schema_update_info_request.go +++ b/model_schema_update_info_request.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +17,11 @@ var _ MappedNullable = &SchemaUpdateInfoRequest{} // SchemaUpdateInfoRequest struct for SchemaUpdateInfoRequest type SchemaUpdateInfoRequest struct { - Avatar *SchemaAvatarInfo `json:"avatar,omitempty"` + Avatar *SchemaUpdateInfoRequestAvatar `json:"avatar,omitempty"` // bio Bio *string `json:"bio,omitempty"` // display_name - DisplayName string `json:"display_name"` + DisplayName *string `json:"display_name,omitempty"` // location Location *string `json:"location,omitempty"` // username @@ -36,9 +34,8 @@ type SchemaUpdateInfoRequest struct { // 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 NewSchemaUpdateInfoRequest(displayName string) *SchemaUpdateInfoRequest { +func NewSchemaUpdateInfoRequest() *SchemaUpdateInfoRequest { this := SchemaUpdateInfoRequest{} - this.DisplayName = displayName return &this } @@ -51,9 +48,9 @@ func NewSchemaUpdateInfoRequestWithDefaults() *SchemaUpdateInfoRequest { } // GetAvatar returns the Avatar field value if set, zero value otherwise. -func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaAvatarInfo { +func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaUpdateInfoRequestAvatar { if o == nil || IsNil(o.Avatar) { - var ret SchemaAvatarInfo + var ret SchemaUpdateInfoRequestAvatar return ret } return *o.Avatar @@ -61,7 +58,7 @@ func (o *SchemaUpdateInfoRequest) GetAvatar() SchemaAvatarInfo { // 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() (*SchemaAvatarInfo, bool) { +func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaUpdateInfoRequestAvatar, bool) { if o == nil || IsNil(o.Avatar) { return nil, false } @@ -77,8 +74,8 @@ func (o *SchemaUpdateInfoRequest) HasAvatar() bool { return false } -// SetAvatar gets a reference to the given SchemaAvatarInfo and assigns it to the Avatar field. -func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaAvatarInfo) { +// SetAvatar gets a reference to the given SchemaUpdateInfoRequestAvatar and assigns it to the Avatar field. +func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaUpdateInfoRequestAvatar) { o.Avatar = &v } @@ -114,28 +111,36 @@ func (o *SchemaUpdateInfoRequest) SetBio(v string) { o.Bio = &v } -// GetDisplayName returns the DisplayName field value +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. func (o *SchemaUpdateInfoRequest) GetDisplayName() string { - if o == nil { + if o == nil || IsNil(o.DisplayName) { var ret string return ret } - - return o.DisplayName + return *o.DisplayName } -// GetDisplayNameOk returns a tuple with the DisplayName field value +// 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 *SchemaUpdateInfoRequest) GetDisplayNameOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.DisplayName) { return nil, false } - return &o.DisplayName, true + return o.DisplayName, true } -// SetDisplayName sets field value +// HasDisplayName returns a boolean if a field has been set. +func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetDisplayName(v string) { - o.DisplayName = v + o.DisplayName = &v } // GetLocation returns the Location field value if set, zero value otherwise. @@ -250,7 +255,9 @@ func (o SchemaUpdateInfoRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Bio) { toSerialize["bio"] = o.Bio } - toSerialize["display_name"] = o.DisplayName + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } if !IsNil(o.Location) { toSerialize["location"] = o.Location } diff --git a/model_schema_update_info_request_avatar.go b/model_schema_update_info_request_avatar.go new file mode 100644 index 0000000..fea12f5 --- /dev/null +++ b/model_schema_update_info_request_avatar.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 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 new file mode 100644 index 0000000..035b5e5 --- /dev/null +++ b/model_schema_update_plugin_config_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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdatePluginConfigReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdatePluginConfigReq{} + +// SchemaUpdatePluginConfigReq struct for SchemaUpdatePluginConfigReq +type SchemaUpdatePluginConfigReq struct { + ConfigFields map[string]map[string]interface{} `json:"config_fields,omitempty"` + PluginSlugName string `json:"plugin_slug_name"` +} + +// NewSchemaUpdatePluginConfigReq instantiates a new SchemaUpdatePluginConfigReq 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 NewSchemaUpdatePluginConfigReq(pluginSlugName string) *SchemaUpdatePluginConfigReq { + this := SchemaUpdatePluginConfigReq{} + this.PluginSlugName = pluginSlugName + return &this +} + +// NewSchemaUpdatePluginConfigReqWithDefaults instantiates a new SchemaUpdatePluginConfigReq 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 NewSchemaUpdatePluginConfigReqWithDefaults() *SchemaUpdatePluginConfigReq { + this := SchemaUpdatePluginConfigReq{} + return &this +} + +// GetConfigFields returns the ConfigFields field value if set, zero value otherwise. +func (o *SchemaUpdatePluginConfigReq) GetConfigFields() map[string]map[string]interface{} { + if o == nil || IsNil(o.ConfigFields) { + var ret map[string]map[string]interface{} + return ret + } + return o.ConfigFields +} + +// GetConfigFieldsOk returns a tuple with the ConfigFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdatePluginConfigReq) GetConfigFieldsOk() (map[string]map[string]interface{}, bool) { + if o == nil || IsNil(o.ConfigFields) { + return map[string]map[string]interface{}{}, false + } + return o.ConfigFields, true +} + +// HasConfigFields returns a boolean if a field has been set. +func (o *SchemaUpdatePluginConfigReq) HasConfigFields() bool { + if o != nil && !IsNil(o.ConfigFields) { + return true + } + + return false +} + +// SetConfigFields gets a reference to the given map[string]map[string]interface{} and assigns it to the ConfigFields field. +func (o *SchemaUpdatePluginConfigReq) SetConfigFields(v map[string]map[string]interface{}) { + o.ConfigFields = v +} + +// GetPluginSlugName returns the PluginSlugName field value +func (o *SchemaUpdatePluginConfigReq) GetPluginSlugName() string { + if o == nil { + var ret string + return ret + } + + return o.PluginSlugName +} + +// GetPluginSlugNameOk returns a tuple with the PluginSlugName field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdatePluginConfigReq) GetPluginSlugNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PluginSlugName, true +} + +// SetPluginSlugName sets field value +func (o *SchemaUpdatePluginConfigReq) SetPluginSlugName(v string) { + o.PluginSlugName = v +} + +func (o SchemaUpdatePluginConfigReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdatePluginConfigReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ConfigFields) { + toSerialize["config_fields"] = o.ConfigFields + } + toSerialize["plugin_slug_name"] = o.PluginSlugName + return toSerialize, nil +} + +type NullableSchemaUpdatePluginConfigReq struct { + value *SchemaUpdatePluginConfigReq + isSet bool +} + +func (v NullableSchemaUpdatePluginConfigReq) Get() *SchemaUpdatePluginConfigReq { + return v.value +} + +func (v *NullableSchemaUpdatePluginConfigReq) Set(val *SchemaUpdatePluginConfigReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdatePluginConfigReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdatePluginConfigReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdatePluginConfigReq(val *SchemaUpdatePluginConfigReq) *NullableSchemaUpdatePluginConfigReq { + return &NullableSchemaUpdatePluginConfigReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdatePluginConfigReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdatePluginConfigReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_plugin_status_req.go b/model_schema_update_plugin_status_req.go new file mode 100644 index 0000000..7e7cbb6 --- /dev/null +++ b/model_schema_update_plugin_status_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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdatePluginStatusReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdatePluginStatusReq{} + +// SchemaUpdatePluginStatusReq struct for SchemaUpdatePluginStatusReq +type SchemaUpdatePluginStatusReq struct { + Enabled *bool `json:"enabled,omitempty"` + PluginSlugName string `json:"plugin_slug_name"` +} + +// NewSchemaUpdatePluginStatusReq instantiates a new SchemaUpdatePluginStatusReq 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 NewSchemaUpdatePluginStatusReq(pluginSlugName string) *SchemaUpdatePluginStatusReq { + this := SchemaUpdatePluginStatusReq{} + this.PluginSlugName = pluginSlugName + return &this +} + +// NewSchemaUpdatePluginStatusReqWithDefaults instantiates a new SchemaUpdatePluginStatusReq 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 NewSchemaUpdatePluginStatusReqWithDefaults() *SchemaUpdatePluginStatusReq { + this := SchemaUpdatePluginStatusReq{} + return &this +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *SchemaUpdatePluginStatusReq) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdatePluginStatusReq) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *SchemaUpdatePluginStatusReq) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *SchemaUpdatePluginStatusReq) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetPluginSlugName returns the PluginSlugName field value +func (o *SchemaUpdatePluginStatusReq) GetPluginSlugName() string { + if o == nil { + var ret string + return ret + } + + return o.PluginSlugName +} + +// GetPluginSlugNameOk returns a tuple with the PluginSlugName field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdatePluginStatusReq) GetPluginSlugNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PluginSlugName, true +} + +// SetPluginSlugName sets field value +func (o *SchemaUpdatePluginStatusReq) SetPluginSlugName(v string) { + o.PluginSlugName = v +} + +func (o SchemaUpdatePluginStatusReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdatePluginStatusReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + toSerialize["plugin_slug_name"] = o.PluginSlugName + return toSerialize, nil +} + +type NullableSchemaUpdatePluginStatusReq struct { + value *SchemaUpdatePluginStatusReq + isSet bool +} + +func (v NullableSchemaUpdatePluginStatusReq) Get() *SchemaUpdatePluginStatusReq { + return v.value +} + +func (v *NullableSchemaUpdatePluginStatusReq) Set(val *SchemaUpdatePluginStatusReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdatePluginStatusReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdatePluginStatusReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdatePluginStatusReq(val *SchemaUpdatePluginStatusReq) *NullableSchemaUpdatePluginStatusReq { + return &NullableSchemaUpdatePluginStatusReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdatePluginStatusReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdatePluginStatusReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_privileges_config_req.go b/model_schema_update_privileges_config_req.go new file mode 100644 index 0000000..70e16f6 --- /dev/null +++ b/model_schema_update_privileges_config_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 openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdatePrivilegesConfigReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdatePrivilegesConfigReq{} + +// SchemaUpdatePrivilegesConfigReq struct for SchemaUpdatePrivilegesConfigReq +type SchemaUpdatePrivilegesConfigReq struct { + Level SchemaPrivilegeLevel `json:"level"` +} + +// NewSchemaUpdatePrivilegesConfigReq instantiates a new SchemaUpdatePrivilegesConfigReq 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 NewSchemaUpdatePrivilegesConfigReq(level SchemaPrivilegeLevel) *SchemaUpdatePrivilegesConfigReq { + this := SchemaUpdatePrivilegesConfigReq{} + this.Level = level + return &this +} + +// NewSchemaUpdatePrivilegesConfigReqWithDefaults instantiates a new SchemaUpdatePrivilegesConfigReq 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 NewSchemaUpdatePrivilegesConfigReqWithDefaults() *SchemaUpdatePrivilegesConfigReq { + this := SchemaUpdatePrivilegesConfigReq{} + return &this +} + +// GetLevel returns the Level field value +func (o *SchemaUpdatePrivilegesConfigReq) GetLevel() SchemaPrivilegeLevel { + if o == nil { + var ret SchemaPrivilegeLevel + return ret + } + + return o.Level +} + +// GetLevelOk returns a tuple with the Level field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdatePrivilegesConfigReq) GetLevelOk() (*SchemaPrivilegeLevel, bool) { + if o == nil { + return nil, false + } + return &o.Level, true +} + +// SetLevel sets field value +func (o *SchemaUpdatePrivilegesConfigReq) SetLevel(v SchemaPrivilegeLevel) { + o.Level = v +} + +func (o SchemaUpdatePrivilegesConfigReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdatePrivilegesConfigReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["level"] = o.Level + return toSerialize, nil +} + +type NullableSchemaUpdatePrivilegesConfigReq struct { + value *SchemaUpdatePrivilegesConfigReq + isSet bool +} + +func (v NullableSchemaUpdatePrivilegesConfigReq) Get() *SchemaUpdatePrivilegesConfigReq { + return v.value +} + +func (v *NullableSchemaUpdatePrivilegesConfigReq) Set(val *SchemaUpdatePrivilegesConfigReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdatePrivilegesConfigReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdatePrivilegesConfigReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdatePrivilegesConfigReq(val *SchemaUpdatePrivilegesConfigReq) *NullableSchemaUpdatePrivilegesConfigReq { + return &NullableSchemaUpdatePrivilegesConfigReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdatePrivilegesConfigReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdatePrivilegesConfigReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_smtp_config_req.go b/model_schema_update_smtp_config_req.go index 4fe4ffa..4af9729 100644 --- a/model_schema_update_smtp_config_req.go +++ b/model_schema_update_smtp_config_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_update_tag_req.go b/model_schema_update_tag_req.go index 75d8df6..9a8e09d 100644 --- a/model_schema_update_tag_req.go +++ b/model_schema_update_tag_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_update_tag_synonym_req.go b/model_schema_update_tag_synonym_req.go index 131ce50..25021e6 100644 --- a/model_schema_update_tag_synonym_req.go +++ b/model_schema_update_tag_synonym_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_update_user_interface_request.go b/model_schema_update_user_interface_request.go index 03b40a5..9ce70e1 100644 --- a/model_schema_update_user_interface_request.go +++ b/model_schema_update_user_interface_request.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_update_user_password_req.go b/model_schema_update_user_password_req.go index 86c677e..0606066 100644 --- a/model_schema_update_user_password_req.go +++ b/model_schema_update_user_password_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_update_user_role_req.go b/model_schema_update_user_role_req.go index b4a475d..be769d5 100644 --- a/model_schema_update_user_role_req.go +++ b/model_schema_update_user_role_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_update_user_status_req.go b/model_schema_update_user_status_req.go index d911408..cf2529c 100644 --- a/model_schema_update_user_status_req.go +++ b/model_schema_update_user_status_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_user_basic_info.go b/model_schema_user_basic_info.go index bf1fe18..3124b32 100644 --- a/model_schema_user_basic_info.go +++ b/model_schema_user_basic_info.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_user_change_email_send_code_req.go b/model_schema_user_change_email_send_code_req.go index 1b870bc..5c7002d 100644 --- a/model_schema_user_change_email_send_code_req.go +++ b/model_schema_user_change_email_send_code_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +20,7 @@ type SchemaUserChangeEmailSendCodeReq struct { CaptchaCode *string `json:"captcha_code,omitempty"` CaptchaId *string `json:"captcha_id,omitempty"` EMail string `json:"e_mail"` + Pass *string `json:"pass,omitempty"` } // NewSchemaUserChangeEmailSendCodeReq instantiates a new SchemaUserChangeEmailSendCodeReq object @@ -130,6 +129,38 @@ func (o *SchemaUserChangeEmailSendCodeReq) SetEMail(v string) { o.EMail = v } +// GetPass returns the Pass field value if set, zero value otherwise. +func (o *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) SetPass(v string) { + o.Pass = &v +} + func (o SchemaUserChangeEmailSendCodeReq) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -147,6 +178,9 @@ func (o SchemaUserChangeEmailSendCodeReq) ToMap() (map[string]interface{}, error toSerialize["captcha_id"] = o.CaptchaId } toSerialize["e_mail"] = o.EMail + if !IsNil(o.Pass) { + toSerialize["pass"] = o.Pass + } return toSerialize, nil } diff --git a/model_schema_user_change_email_verify_req.go b/model_schema_user_change_email_verify_req.go index a900429..850c4fa 100644 --- a/model_schema_user_change_email_verify_req.go +++ b/model_schema_user_change_email_verify_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_user_email_login.go b/model_schema_user_email_login.go index d0b3455..6486970 100644 --- a/model_schema_user_email_login.go +++ b/model_schema_user_email_login.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_user_login_resp.go b/model_schema_user_login_resp.go new file mode 100644 index 0000000..af02bd9 --- /dev/null +++ b/model_schema_user_login_resp.go @@ -0,0 +1,1013 @@ +/* +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 SchemaUserLoginResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserLoginResp{} + +// SchemaUserLoginResp struct for SchemaUserLoginResp +type SchemaUserLoginResp 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 have password + HavePassword *bool `json:"have_password,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"` +} + +// NewSchemaUserLoginResp instantiates a new SchemaUserLoginResp 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 NewSchemaUserLoginResp() *SchemaUserLoginResp { + this := SchemaUserLoginResp{} + return &this +} + +// NewSchemaUserLoginRespWithDefaults instantiates a new SchemaUserLoginResp 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 NewSchemaUserLoginRespWithDefaults() *SchemaUserLoginResp { + this := SchemaUserLoginResp{} + return &this +} + +// GetAccessToken returns the AccessToken field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetAccessToken(v string) { + o.AccessToken = &v +} + +// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetAnswerCount(v int32) { + o.AnswerCount = &v +} + +// GetAuthorityGroup returns the AuthorityGroup field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetAuthorityGroup(v int32) { + o.AuthorityGroup = &v +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetAvatar(v string) { + o.Avatar = &v +} + +// GetBio returns the Bio field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetBio(v string) { + o.Bio = &v +} + +// GetBioHtml returns the BioHtml field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetBioHtml(v string) { + o.BioHtml = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetEMail returns the EMail field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetEMail(v string) { + o.EMail = &v +} + +// GetFollowCount returns the FollowCount field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetFollowCount(v int32) { + o.FollowCount = &v +} + +// GetHavePassword returns the HavePassword field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) GetHavePassword() bool { + if o == nil || IsNil(o.HavePassword) { + var ret bool + return ret + } + return *o.HavePassword +} + +// GetHavePasswordOk returns a tuple with the HavePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUserLoginResp) GetHavePasswordOk() (*bool, bool) { + if o == nil || IsNil(o.HavePassword) { + return nil, false + } + return o.HavePassword, true +} + +// HasHavePassword returns a boolean if a field has been set. +func (o *SchemaUserLoginResp) HasHavePassword() bool { + if o != nil && !IsNil(o.HavePassword) { + return true + } + + return false +} + +// SetHavePassword gets a reference to the given bool and assigns it to the HavePassword field. +func (o *SchemaUserLoginResp) SetHavePassword(v bool) { + o.HavePassword = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetId(v string) { + o.Id = &v +} + +// GetIpInfo returns the IpInfo field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetIpInfo(v string) { + o.IpInfo = &v +} + +// GetLanguage returns the Language field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetLanguage(v string) { + o.Language = &v +} + +// GetLastLoginDate returns the LastLoginDate field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetLastLoginDate(v int32) { + o.LastLoginDate = &v +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetLocation(v string) { + o.Location = &v +} + +// GetMailStatus returns the MailStatus field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetMailStatus(v int32) { + o.MailStatus = &v +} + +// GetMobile returns the Mobile field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetMobile(v string) { + o.Mobile = &v +} + +// GetNoticeStatus returns the NoticeStatus field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetNoticeStatus(v int32) { + o.NoticeStatus = &v +} + +// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetQuestionCount(v int32) { + o.QuestionCount = &v +} + +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetRank(v int32) { + o.Rank = &v +} + +// GetRoleId returns the RoleId field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetRoleId(v int32) { + o.RoleId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetStatus(v string) { + o.Status = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetUsername(v string) { + o.Username = &v +} + +// GetWebsite returns the Website field value if set, zero value otherwise. +func (o *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) 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 *SchemaUserLoginResp) SetWebsite(v string) { + o.Website = &v +} + +func (o SchemaUserLoginResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserLoginResp) 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.HavePassword) { + toSerialize["have_password"] = o.HavePassword + } + 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 NullableSchemaUserLoginResp struct { + value *SchemaUserLoginResp + isSet bool +} + +func (v NullableSchemaUserLoginResp) Get() *SchemaUserLoginResp { + return v.value +} + +func (v *NullableSchemaUserLoginResp) Set(val *SchemaUserLoginResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserLoginResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserLoginResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserLoginResp(val *SchemaUserLoginResp) *NullableSchemaUserLoginResp { + return &NullableSchemaUserLoginResp{value: val, isSet: true} +} + +func (v NullableSchemaUserLoginResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserLoginResp) 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 new file mode 100644 index 0000000..1467cd6 --- /dev/null +++ b/model_schema_user_modify_password_req.go @@ -0,0 +1,223 @@ +/* +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 SchemaUserModifyPasswordReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserModifyPasswordReq{} + +// SchemaUserModifyPasswordReq struct for SchemaUserModifyPasswordReq +type SchemaUserModifyPasswordReq struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + CaptchaId *string `json:"captcha_id,omitempty"` + OldPass *string `json:"old_pass,omitempty"` + Pass string `json:"pass"` +} + +// NewSchemaUserModifyPasswordReq instantiates a new SchemaUserModifyPasswordReq 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 NewSchemaUserModifyPasswordReq(pass string) *SchemaUserModifyPasswordReq { + this := SchemaUserModifyPasswordReq{} + this.Pass = pass + return &this +} + +// NewSchemaUserModifyPasswordReqWithDefaults instantiates a new SchemaUserModifyPasswordReq 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 NewSchemaUserModifyPasswordReqWithDefaults() *SchemaUserModifyPasswordReq { + this := SchemaUserModifyPasswordReq{} + return &this +} + +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaUserModifyPasswordReq) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaUserModifyPasswordReq) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaUserModifyPasswordReq) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaUserModifyPasswordReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaUserModifyPasswordReq) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaUserModifyPasswordReq) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaUserModifyPasswordReq) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaUserModifyPasswordReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + +// GetOldPass returns the OldPass field value if set, zero value otherwise. +func (o *SchemaUserModifyPasswordReq) 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 *SchemaUserModifyPasswordReq) 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 *SchemaUserModifyPasswordReq) 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 *SchemaUserModifyPasswordReq) SetOldPass(v string) { + o.OldPass = &v +} + +// GetPass returns the Pass field value +func (o *SchemaUserModifyPasswordReq) GetPass() string { + if o == nil { + var ret string + return ret + } + + return o.Pass +} + +// GetPassOk returns a tuple with the Pass field value +// and a boolean to check if the value has been set. +func (o *SchemaUserModifyPasswordReq) GetPassOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Pass, true +} + +// SetPass sets field value +func (o *SchemaUserModifyPasswordReq) SetPass(v string) { + o.Pass = v +} + +func (o SchemaUserModifyPasswordReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserModifyPasswordReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } + if !IsNil(o.OldPass) { + toSerialize["old_pass"] = o.OldPass + } + toSerialize["pass"] = o.Pass + return toSerialize, nil +} + +type NullableSchemaUserModifyPasswordReq struct { + value *SchemaUserModifyPasswordReq + isSet bool +} + +func (v NullableSchemaUserModifyPasswordReq) Get() *SchemaUserModifyPasswordReq { + return v.value +} + +func (v *NullableSchemaUserModifyPasswordReq) Set(val *SchemaUserModifyPasswordReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserModifyPasswordReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserModifyPasswordReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserModifyPasswordReq(val *SchemaUserModifyPasswordReq) *NullableSchemaUserModifyPasswordReq { + return &NullableSchemaUserModifyPasswordReq{value: val, isSet: true} +} + +func (v NullableSchemaUserModifyPasswordReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserModifyPasswordReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_notice_set_request.go b/model_schema_user_notice_set_request.go index 02eecb5..a7308e0 100644 --- a/model_schema_user_notice_set_request.go +++ b/model_schema_user_notice_set_request.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_user_notice_set_resp.go b/model_schema_user_notice_set_resp.go index 49fbb16..3bcaae7 100644 --- a/model_schema_user_notice_set_resp.go +++ b/model_schema_user_notice_set_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_user_ranking_resp.go b/model_schema_user_ranking_resp.go index 0f54360..6062298 100644 --- a/model_schema_user_ranking_resp.go +++ b/model_schema_user_ranking_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_user_ranking_simple_info.go b/model_schema_user_ranking_simple_info.go index 51fd173..bdddf37 100644 --- a/model_schema_user_ranking_simple_info.go +++ b/model_schema_user_ranking_simple_info.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_user_re_pass_word_request.go b/model_schema_user_re_pass_word_request.go index 67b4c19..5da7ac4 100644 --- a/model_schema_user_re_pass_word_request.go +++ b/model_schema_user_re_pass_word_request.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_user_register_req.go b/model_schema_user_register_req.go index 61df49e..dc4613a 100644 --- a/model_schema_user_register_req.go +++ b/model_schema_user_register_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_user_retrieve_pass_word_request.go b/model_schema_user_retrieve_pass_word_request.go index ee412bb..25f0b24 100644 --- a/model_schema_user_retrieve_pass_word_request.go +++ b/model_schema_user_retrieve_pass_word_request.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_vote_req.go b/model_schema_vote_req.go index 474f12d..b695085 100644 --- a/model_schema_vote_req.go +++ b/model_schema_vote_req.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +17,9 @@ var _ MappedNullable = &SchemaVoteReq{} // SchemaVoteReq struct for SchemaVoteReq type SchemaVoteReq struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` // is cancel IsCancel *bool `json:"is_cancel,omitempty"` // id @@ -43,6 +44,70 @@ func NewSchemaVoteReqWithDefaults() *SchemaVoteReq { return &this } +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaVoteReq) GetCaptchaCode() string { + if o == nil || IsNil(o.CaptchaCode) { + var ret string + return ret + } + return *o.CaptchaCode +} + +// 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 *SchemaVoteReq) GetCaptchaCodeOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaCode) { + return nil, false + } + return o.CaptchaCode, true +} + +// HasCaptchaCode returns a boolean if a field has been set. +func (o *SchemaVoteReq) HasCaptchaCode() bool { + if o != nil && !IsNil(o.CaptchaCode) { + return true + } + + return false +} + +// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field. +func (o *SchemaVoteReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaVoteReq) GetCaptchaId() string { + if o == nil || IsNil(o.CaptchaId) { + var ret string + return ret + } + return *o.CaptchaId +} + +// 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 *SchemaVoteReq) GetCaptchaIdOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaId) { + return nil, false + } + return o.CaptchaId, true +} + +// HasCaptchaId returns a boolean if a field has been set. +func (o *SchemaVoteReq) HasCaptchaId() bool { + if o != nil && !IsNil(o.CaptchaId) { + return true + } + + return false +} + +// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field. +func (o *SchemaVoteReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + // GetIsCancel returns the IsCancel field value if set, zero value otherwise. func (o *SchemaVoteReq) GetIsCancel() bool { if o == nil || IsNil(o.IsCancel) { @@ -109,6 +174,12 @@ func (o SchemaVoteReq) MarshalJSON() ([]byte, error) { func (o SchemaVoteReq) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaCode) { + toSerialize["captcha_code"] = o.CaptchaCode + } + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } if !IsNil(o.IsCancel) { toSerialize["is_cancel"] = o.IsCancel } diff --git a/model_schema_vote_resp.go b/model_schema_vote_resp.go index 36913e0..342d1ed 100644 --- a/model_schema_vote_resp.go +++ b/model_schema_vote_resp.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_translator_lang_option.go b/model_translator_lang_option.go index baf4cf5..0c8d8b5 100644 --- a/model_translator_lang_option.go +++ b/model_translator_lang_option.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index af5770f..ca9aa2b 100644 --- a/response.go +++ b/response.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_admin_plugin_test.go b/test/api_admin_plugin_test.go new file mode 100644 index 0000000..9a5296a --- /dev/null +++ b/test/api_admin_plugin_test.go @@ -0,0 +1,72 @@ +/* + +Testing AdminPluginApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_openapi_AdminPluginApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_permission_test.go b/test/api_permission_test.go new file mode 100644 index 0000000..fdbcfa7 --- /dev/null +++ b/test/api_permission_test.go @@ -0,0 +1,36 @@ +/* + +Testing PermissionApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_openapi_PermissionApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_personal_test.go b/test/api_personal_test.go new file mode 100644 index 0000000..38f2825 --- /dev/null +++ b/test/api_personal_test.go @@ -0,0 +1,48 @@ +/* + +Testing PersonalApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_openapi_PersonalApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_plugin_connector_test.go b/test/api_plugin_connector_test.go new file mode 100644 index 0000000..02dbf81 --- /dev/null +++ b/test/api_plugin_connector_test.go @@ -0,0 +1,72 @@ +/* + +Testing PluginConnectorApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func Test_openapi_PluginConnectorApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + 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() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/utils.go b/utils.go index 1438060..d9315f5 100644 --- a/utils.go +++ b/utils.go @@ -1,9 +1,7 @@ /* -answer +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -answer api - -API version: v0.0.1 +API version: 1.0.0 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.