commit c3f06b456f251df6291d0fb2b445f460ad652816 Author: fghwett <1058178245@qq.com> Date: Fri Aug 18 10:03:31 2023 +0800 first version diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..59610b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,26 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof + +.idea \ No newline at end of file diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES new file mode 100644 index 0000000..60f1af0 --- /dev/null +++ b/.openapi-generator/FILES @@ -0,0 +1,408 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_activity.go +api_admin.go +api_api_answer.go +api_collection.go +api_comment.go +api_installation.go +api_lang.go +api_notification.go +api_question.go +api_rank.go +api_reason.go +api_report.go +api_revision.go +api_search.go +api_site.go +api_tag.go +api_upload.go +api_user.go +client.go +configuration.go +docs/ActivityApi.md +docs/AdminApi.md +docs/AnswerAdminApiRolesGet200Response.md +docs/AnswerAdminApiSettingSmtpGet200Response.md +docs/AnswerAdminApiSiteinfoBrandingGet200Response.md +docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md +docs/AnswerAdminApiSiteinfoGeneralGet200Response.md +docs/AnswerAdminApiSiteinfoInterfaceGet200Response.md +docs/AnswerAdminApiSiteinfoLegalGet200Response.md +docs/AnswerAdminApiSiteinfoLoginGet200Response.md +docs/AnswerAdminApiSiteinfoSeoGet200Response.md +docs/AnswerAdminApiSiteinfoThemeGet200Response.md +docs/AnswerAdminApiSiteinfoWriteGet200Response.md +docs/AnswerAdminApiUsersPageGet200Response.md +docs/AnswerAdminApiUsersPageGet200ResponseData.md +docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md +docs/AnswerApiV1ActivityTimelineGet200Response.md +docs/AnswerApiV1CollectionSwitchPost200Response.md +docs/AnswerApiV1CommentGet200Response.md +docs/AnswerApiV1CommentGet200ResponseData.md +docs/AnswerApiV1CommentGet200ResponseDataAllOf.md +docs/AnswerApiV1CommentPost200Response.md +docs/AnswerApiV1FilePost200Response.md +docs/AnswerApiV1FollowPost200Response.md +docs/AnswerApiV1PersonalCommentPageGet200Response.md +docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md +docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md +docs/AnswerApiV1PersonalRankPageGet200Response.md +docs/AnswerApiV1PersonalRankPageGet200ResponseData.md +docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md +docs/AnswerApiV1PersonalUserInfoGet200Response.md +docs/AnswerApiV1PersonalVotePageGet200Response.md +docs/AnswerApiV1PersonalVotePageGet200ResponseData.md +docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md +docs/AnswerApiV1QuestionPageGet200Response.md +docs/AnswerApiV1QuestionPageGet200ResponseData.md +docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md +docs/AnswerApiV1QuestionTagsGet200Response.md +docs/AnswerApiV1ReportTypeListGet200Response.md +docs/AnswerApiV1RevisionsGet200Response.md +docs/AnswerApiV1RevisionsUnreviewedGet200Response.md +docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md +docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md +docs/AnswerApiV1SearchGet200Response.md +docs/AnswerApiV1SiteinfoGet200Response.md +docs/AnswerApiV1SiteinfoLegalGet200Response.md +docs/AnswerApiV1TagGet200Response.md +docs/AnswerApiV1TagSynonymsGet200Response.md +docs/AnswerApiV1TagsFollowingGet200Response.md +docs/AnswerApiV1TagsPageGet200Response.md +docs/AnswerApiV1TagsPageGet200ResponseData.md +docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md +docs/AnswerApiV1UserActionRecordGet200Response.md +docs/AnswerApiV1UserEmailVerificationPost200Response.md +docs/AnswerApiV1UserInfoGet200Response.md +docs/AnswerApiV1UserNoticeSetPost200Response.md +docs/AnswerApiV1UserRankingGet200Response.md +docs/AnswerApiV1VoteDownPost200Response.md +docs/ApiAnswerApi.md +docs/CollectionApi.md +docs/CommentApi.md +docs/HandlerRespBody.md +docs/InstallCheckConfigFileResp.md +docs/InstallCheckDatabaseReq.md +docs/InstallInitBaseInfoReq.md +docs/InstallationApi.md +docs/InstallationConfigFileCheckPost200Response.md +docs/InstallationLanguageOptionsGet200Response.md +docs/LangApi.md +docs/NotificationApi.md +docs/PagerPageModel.md +docs/QuestionApi.md +docs/RankApi.md +docs/ReasonApi.md +docs/ReportApi.md +docs/RevisionApi.md +docs/SchemaActObjectInfo.md +docs/SchemaActObjectTimeline.md +docs/SchemaActionRecordResp.md +docs/SchemaAddCommentReq.md +docs/SchemaAddReportReq.md +docs/SchemaAddTagReq.md +docs/SchemaAddUserReq.md +docs/SchemaAdminSetAnswerStatusRequest.md +docs/SchemaAdminSetQuestionStatusRequest.md +docs/SchemaAnswerAcceptedReq.md +docs/SchemaAnswerAddReq.md +docs/SchemaAnswerUpdateReq.md +docs/SchemaAvatarInfo.md +docs/SchemaCloseQuestionReq.md +docs/SchemaCollectionSwitchReq.md +docs/SchemaCollectionSwitchResp.md +docs/SchemaFollowReq.md +docs/SchemaFollowResp.md +docs/SchemaGetCommentPersonalWithPageResp.md +docs/SchemaGetCommentResp.md +docs/SchemaGetFollowingTagsResp.md +docs/SchemaGetObjectTimelineResp.md +docs/SchemaGetOtherUserInfoByUsernameResp.md +docs/SchemaGetOtherUserInfoResp.md +docs/SchemaGetRankPersonalWithPageResp.md +docs/SchemaGetReportTypeResp.md +docs/SchemaGetRevisionResp.md +docs/SchemaGetRoleResp.md +docs/SchemaGetSMTPConfigResp.md +docs/SchemaGetSiteLegalInfoResp.md +docs/SchemaGetTagPageResp.md +docs/SchemaGetTagResp.md +docs/SchemaGetTagSynonymsResp.md +docs/SchemaGetUnreviewedRevisionResp.md +docs/SchemaGetUserPageResp.md +docs/SchemaGetUserResp.md +docs/SchemaGetUserToSetShowResp.md +docs/SchemaGetVoteWithPageResp.md +docs/SchemaNotificationClearIDRequest.md +docs/SchemaNotificationClearRequest.md +docs/SchemaOperationQuestionReq.md +docs/SchemaPermissionMemberAction.md +docs/SchemaPostRenderReq.md +docs/SchemaQuestionAdd.md +docs/SchemaQuestionAddByAnswer.md +docs/SchemaQuestionPageReq.md +docs/SchemaQuestionPageResp.md +docs/SchemaQuestionPageRespOperator.md +docs/SchemaQuestionUpdate.md +docs/SchemaRemoveAnswerReq.md +docs/SchemaRemoveCommentReq.md +docs/SchemaRemoveQuestionReq.md +docs/SchemaRemoveTagReq.md +docs/SchemaReopenQuestionReq.md +docs/SchemaReportHandleReq.md +docs/SchemaRevisionAuditReq.md +docs/SchemaSearchListResp.md +docs/SchemaSearchObject.md +docs/SchemaSearchResp.md +docs/SchemaSiteBrandingReq.md +docs/SchemaSiteBrandingResp.md +docs/SchemaSiteCustomCssHTMLReq.md +docs/SchemaSiteCustomCssHTMLResp.md +docs/SchemaSiteGeneralReq.md +docs/SchemaSiteGeneralResp.md +docs/SchemaSiteInfoResp.md +docs/SchemaSiteInterfaceReq.md +docs/SchemaSiteInterfaceResp.md +docs/SchemaSiteLegalReq.md +docs/SchemaSiteLegalResp.md +docs/SchemaSiteLoginReq.md +docs/SchemaSiteLoginResp.md +docs/SchemaSiteSeoReq.md +docs/SchemaSiteSeoResp.md +docs/SchemaSiteThemeReq.md +docs/SchemaSiteThemeResp.md +docs/SchemaSiteWriteReq.md +docs/SchemaSiteWriteResp.md +docs/SchemaTagItem.md +docs/SchemaTagResp.md +docs/SchemaTagSynonym.md +docs/SchemaThemeOption.md +docs/SchemaUnreviewedRevisionInfoInfo.md +docs/SchemaUpdateCommentReq.md +docs/SchemaUpdateFollowTagsReq.md +docs/SchemaUpdateInfoRequest.md +docs/SchemaUpdateSMTPConfigReq.md +docs/SchemaUpdateTagReq.md +docs/SchemaUpdateTagSynonymReq.md +docs/SchemaUpdateUserInterfaceRequest.md +docs/SchemaUpdateUserPasswordReq.md +docs/SchemaUpdateUserRoleReq.md +docs/SchemaUpdateUserStatusReq.md +docs/SchemaUserBasicInfo.md +docs/SchemaUserChangeEmailSendCodeReq.md +docs/SchemaUserChangeEmailVerifyReq.md +docs/SchemaUserEmailLogin.md +docs/SchemaUserModifyPassWordRequest.md +docs/SchemaUserNoticeSetRequest.md +docs/SchemaUserNoticeSetResp.md +docs/SchemaUserRankingResp.md +docs/SchemaUserRankingSimpleInfo.md +docs/SchemaUserRePassWordRequest.md +docs/SchemaUserRegisterReq.md +docs/SchemaUserRetrievePassWordRequest.md +docs/SchemaVoteReq.md +docs/SchemaVoteResp.md +docs/SearchApi.md +docs/SiteApi.md +docs/TagApi.md +docs/TranslatorLangOption.md +docs/UploadApi.md +docs/UserApi.md +git_push.sh +go.mod +go.sum +model__answer_admin_api_roles_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 +model__answer_admin_api_siteinfo_general_get_200_response.go +model__answer_admin_api_siteinfo_interface_get_200_response.go +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_write_get_200_response.go +model__answer_admin_api_users_page_get_200_response.go +model__answer_admin_api_users_page_get_200_response_data.go +model__answer_admin_api_users_page_get_200_response_data_all_of.go +model__answer_api_v1_activity_timeline_get_200_response.go +model__answer_api_v1_collection_switch_post_200_response.go +model__answer_api_v1_comment_get_200_response.go +model__answer_api_v1_comment_get_200_response_data.go +model__answer_api_v1_comment_get_200_response_data_all_of.go +model__answer_api_v1_comment_post_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_personal_comment_page_get_200_response.go +model__answer_api_v1_personal_comment_page_get_200_response_data.go +model__answer_api_v1_personal_comment_page_get_200_response_data_all_of.go +model__answer_api_v1_personal_rank_page_get_200_response.go +model__answer_api_v1_personal_rank_page_get_200_response_data.go +model__answer_api_v1_personal_rank_page_get_200_response_data_all_of.go +model__answer_api_v1_personal_user_info_get_200_response.go +model__answer_api_v1_personal_vote_page_get_200_response.go +model__answer_api_v1_personal_vote_page_get_200_response_data.go +model__answer_api_v1_personal_vote_page_get_200_response_data_all_of.go +model__answer_api_v1_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 +model__answer_api_v1_revisions_unreviewed_get_200_response_data_all_of.go +model__answer_api_v1_search_get_200_response.go +model__answer_api_v1_siteinfo_get_200_response.go +model__answer_api_v1_siteinfo_legal_get_200_response.go +model__answer_api_v1_tag_get_200_response.go +model__answer_api_v1_tag_synonyms_get_200_response.go +model__answer_api_v1_tags_following_get_200_response.go +model__answer_api_v1_tags_page_get_200_response.go +model__answer_api_v1_tags_page_get_200_response_data.go +model__answer_api_v1_tags_page_get_200_response_data_all_of.go +model__answer_api_v1_user_action_record_get_200_response.go +model__answer_api_v1_user_email_verification_post_200_response.go +model__answer_api_v1_user_info_get_200_response.go +model__answer_api_v1_user_notice_set_post_200_response.go +model__answer_api_v1_user_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_handler_resp_body.go +model_install_check_config_file_resp.go +model_install_check_database_req.go +model_install_init_base_info_req.go +model_pager_page_model.go +model_schema_act_object_info.go +model_schema_act_object_timeline.go +model_schema_action_record_resp.go +model_schema_add_comment_req.go +model_schema_add_report_req.go +model_schema_add_tag_req.go +model_schema_add_user_req.go +model_schema_admin_set_answer_status_request.go +model_schema_admin_set_question_status_request.go +model_schema_answer_accepted_req.go +model_schema_answer_add_req.go +model_schema_answer_update_req.go +model_schema_avatar_info.go +model_schema_close_question_req.go +model_schema_collection_switch_req.go +model_schema_collection_switch_resp.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_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_revision_resp.go +model_schema_get_role_resp.go +model_schema_get_site_legal_info_resp.go +model_schema_get_smtp_config_resp.go +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_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_notification_clear_id_request.go +model_schema_notification_clear_request.go +model_schema_operation_question_req.go +model_schema_permission_member_action.go +model_schema_post_render_req.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_remove_answer_req.go +model_schema_remove_comment_req.go +model_schema_remove_question_req.go +model_schema_remove_tag_req.go +model_schema_reopen_question_req.go +model_schema_report_handle_req.go +model_schema_revision_audit_req.go +model_schema_search_list_resp.go +model_schema_search_object.go +model_schema_search_resp.go +model_schema_site_branding_req.go +model_schema_site_branding_resp.go +model_schema_site_custom_css_html_req.go +model_schema_site_custom_css_html_resp.go +model_schema_site_general_req.go +model_schema_site_general_resp.go +model_schema_site_info_resp.go +model_schema_site_interface_req.go +model_schema_site_interface_resp.go +model_schema_site_legal_req.go +model_schema_site_legal_resp.go +model_schema_site_login_req.go +model_schema_site_login_resp.go +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_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_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_smtp_config_req.go +model_schema_update_tag_req.go +model_schema_update_tag_synonym_req.go +model_schema_update_user_interface_request.go +model_schema_update_user_password_req.go +model_schema_update_user_role_req.go +model_schema_update_user_status_req.go +model_schema_user_basic_info.go +model_schema_user_change_email_send_code_req.go +model_schema_user_change_email_verify_req.go +model_schema_user_email_login.go +model_schema_user_modify_pass_word_request.go +model_schema_user_notice_set_request.go +model_schema_user_notice_set_resp.go +model_schema_user_ranking_resp.go +model_schema_user_ranking_simple_info.go +model_schema_user_re_pass_word_request.go +model_schema_user_register_req.go +model_schema_user_retrieve_pass_word_request.go +model_schema_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 +utils.go diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 0000000..cd802a1 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.6.0 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/README.md b/README.md new file mode 100644 index 0000000..147fa65 --- /dev/null +++ b/README.md @@ -0,0 +1,418 @@ +# Go API client for openapi + +answer api + +## 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 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import openapi "github.com/GIT_USER_ID/GIT_REPO_ID" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +## Configuration of Server URL + +Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. + +### Select Server Configuration + +For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{ + "basePath": "v2", +}) +``` + +Note, enum values are always validated and all unused variables are silently ignored. + +### URLs Configuration per Operation + +Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. +An operation is uniquely identified by `"{classname}Service.{nickname}"` string. +Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://127.0.0.1:80* + +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* | [**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* | [**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* | [**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* | [**AnswerAdminApiSettingSmtpGet**](docs/AdminApi.md#answeradminapisettingsmtpget) | **Get** /answer/admin/api/setting/smtp | GetSMTPConfig get smtp config +*AdminApi* | [**AnswerAdminApiSettingSmtpPut**](docs/AdminApi.md#answeradminapisettingsmtpput) | **Put** /answer/admin/api/setting/smtp | update smtp config +*AdminApi* | [**AnswerAdminApiSiteinfoBrandingGet**](docs/AdminApi.md#answeradminapisiteinfobrandingget) | **Get** /answer/admin/api/siteinfo/branding | get site interface +*AdminApi* | [**AnswerAdminApiSiteinfoBrandingPut**](docs/AdminApi.md#answeradminapisiteinfobrandingput) | **Put** /answer/admin/api/siteinfo/branding | update site info branding +*AdminApi* | [**AnswerAdminApiSiteinfoCustomCssHtmlGet**](docs/AdminApi.md#answeradminapisiteinfocustomcsshtmlget) | **Get** /answer/admin/api/siteinfo/custom-css-html | get site info custom html css config +*AdminApi* | [**AnswerAdminApiSiteinfoCustomCssHtmlPut**](docs/AdminApi.md#answeradminapisiteinfocustomcsshtmlput) | **Put** /answer/admin/api/siteinfo/custom-css-html | update site custom css html config +*AdminApi* | [**AnswerAdminApiSiteinfoGeneralGet**](docs/AdminApi.md#answeradminapisiteinfogeneralget) | **Get** /answer/admin/api/siteinfo/general | get site general information +*AdminApi* | [**AnswerAdminApiSiteinfoGeneralPut**](docs/AdminApi.md#answeradminapisiteinfogeneralput) | **Put** /answer/admin/api/siteinfo/general | update site general information +*AdminApi* | [**AnswerAdminApiSiteinfoInterfaceGet**](docs/AdminApi.md#answeradminapisiteinfointerfaceget) | **Get** /answer/admin/api/siteinfo/interface | get site interface +*AdminApi* | [**AnswerAdminApiSiteinfoInterfacePut**](docs/AdminApi.md#answeradminapisiteinfointerfaceput) | **Put** /answer/admin/api/siteinfo/interface | update site info interface +*AdminApi* | [**AnswerAdminApiSiteinfoLegalGet**](docs/AdminApi.md#answeradminapisiteinfolegalget) | **Get** /answer/admin/api/siteinfo/legal | Set the legal information for the site +*AdminApi* | [**AnswerAdminApiSiteinfoLegalPut**](docs/AdminApi.md#answeradminapisiteinfolegalput) | **Put** /answer/admin/api/siteinfo/legal | update site legal info +*AdminApi* | [**AnswerAdminApiSiteinfoLoginGet**](docs/AdminApi.md#answeradminapisiteinfologinget) | **Get** /answer/admin/api/siteinfo/login | get site info login config +*AdminApi* | [**AnswerAdminApiSiteinfoLoginPut**](docs/AdminApi.md#answeradminapisiteinfologinput) | **Put** /answer/admin/api/siteinfo/login | update site login +*AdminApi* | [**AnswerAdminApiSiteinfoSeoGet**](docs/AdminApi.md#answeradminapisiteinfoseoget) | **Get** /answer/admin/api/siteinfo/seo | get site seo information +*AdminApi* | [**AnswerAdminApiSiteinfoSeoPut**](docs/AdminApi.md#answeradminapisiteinfoseoput) | **Put** /answer/admin/api/siteinfo/seo | update site seo information +*AdminApi* | [**AnswerAdminApiSiteinfoThemeGet**](docs/AdminApi.md#answeradminapisiteinfothemeget) | **Get** /answer/admin/api/siteinfo/theme | get site info theme config +*AdminApi* | [**AnswerAdminApiSiteinfoThemePut**](docs/AdminApi.md#answeradminapisiteinfothemeput) | **Put** /answer/admin/api/siteinfo/theme | update site custom css html config +*AdminApi* | [**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* | [**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* | [**AnswerAdminApiUsersPageGet**](docs/AdminApi.md#answeradminapiuserspageget) | **Get** /answer/admin/api/users/page | get user page +*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 +*CommentApi* | [**AnswerApiV1ActivityTimelineDetailGet**](docs/CommentApi.md#answerapiv1activitytimelinedetailget) | **Get** /answer/api/v1/activity/timeline/detail | get object timeline detail +*CommentApi* | [**AnswerApiV1ActivityTimelineGet**](docs/CommentApi.md#answerapiv1activitytimelineget) | **Get** /answer/api/v1/activity/timeline | get object timeline +*CommentApi* | [**AnswerApiV1CommentDelete**](docs/CommentApi.md#answerapiv1commentdelete) | **Delete** /answer/api/v1/comment | remove comment +*CommentApi* | [**AnswerApiV1CommentGet**](docs/CommentApi.md#answerapiv1commentget) | **Get** /answer/api/v1/comment | get comment by id +*CommentApi* | [**AnswerApiV1CommentPageGet**](docs/CommentApi.md#answerapiv1commentpageget) | **Get** /answer/api/v1/comment/page | get comment page +*CommentApi* | [**AnswerApiV1CommentPost**](docs/CommentApi.md#answerapiv1commentpost) | **Post** /answer/api/v1/comment | add comment +*CommentApi* | [**AnswerApiV1CommentPut**](docs/CommentApi.md#answerapiv1commentput) | **Put** /answer/api/v1/comment | update comment +*CommentApi* | [**AnswerApiV1PersonalCommentPageGet**](docs/CommentApi.md#answerapiv1personalcommentpageget) | **Get** /answer/api/v1/personal/comment/page | user personal comment list +*InstallationApi* | [**InstallationBaseInfoPost**](docs/InstallationApi.md#installationbaseinfopost) | **Post** /installation/base-info | init base info +*InstallationApi* | [**InstallationConfigFileCheckPost**](docs/InstallationApi.md#installationconfigfilecheckpost) | **Post** /installation/config-file/check | check config file if exist when installation +*InstallationApi* | [**InstallationDbCheckPost**](docs/InstallationApi.md#installationdbcheckpost) | **Post** /installation/db/check | check database if exist when installation +*InstallationApi* | [**InstallationInitPost**](docs/InstallationApi.md#installationinitpost) | **Post** /installation/init | init environment +*InstallationApi* | [**RootGet**](docs/InstallationApi.md#rootget) | **Get** / | if config file not exist try to redirect to install page +*LangApi* | [**AnswerAdminApiLanguageOptionsGet**](docs/LangApi.md#answeradminapilanguageoptionsget) | **Get** /answer/admin/api/language/options | Get language options +*LangApi* | [**AnswerApiV1LanguageConfigGet**](docs/LangApi.md#answerapiv1languageconfigget) | **Get** /answer/api/v1/language/config | get language config mapping +*LangApi* | [**AnswerApiV1LanguageOptionsGet**](docs/LangApi.md#answerapiv1languageoptionsget) | **Get** /answer/api/v1/language/options | Get language options +*LangApi* | [**InstallationLanguageOptionsGet**](docs/LangApi.md#installationlanguageoptionsget) | **Get** /installation/language/options | get installation language options +*NotificationApi* | [**AnswerApiV1NotificationPageGet**](docs/NotificationApi.md#answerapiv1notificationpageget) | **Get** /answer/api/v1/notification/page | get notification list +*NotificationApi* | [**AnswerApiV1NotificationReadStateAllPut**](docs/NotificationApi.md#answerapiv1notificationreadstateallput) | **Put** /answer/api/v1/notification/read/state/all | ClearUnRead +*NotificationApi* | [**AnswerApiV1NotificationReadStatePut**](docs/NotificationApi.md#answerapiv1notificationreadstateput) | **Put** /answer/api/v1/notification/read/state | ClearUnRead +*NotificationApi* | [**AnswerApiV1NotificationStatusGet**](docs/NotificationApi.md#answerapiv1notificationstatusget) | **Get** /answer/api/v1/notification/status | GetRedDot +*NotificationApi* | [**AnswerApiV1NotificationStatusPut**](docs/NotificationApi.md#answerapiv1notificationstatusput) | **Put** /answer/api/v1/notification/status | DelRedDot +*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* | [**AnswerApiV1QuestionOperationPut**](docs/QuestionApi.md#answerapiv1questionoperationput) | **Put** /answer/api/v1/question/operation | Operation question +*QuestionApi* | [**AnswerApiV1QuestionPageGet**](docs/QuestionApi.md#answerapiv1questionpageget) | **Get** /answer/api/v1/question/page | get questions by page +*QuestionApi* | [**AnswerApiV1QuestionPost**](docs/QuestionApi.md#answerapiv1questionpost) | **Post** /answer/api/v1/question | add question +*QuestionApi* | [**AnswerApiV1QuestionPut**](docs/QuestionApi.md#answerapiv1questionput) | **Put** /answer/api/v1/question | update question +*QuestionApi* | [**AnswerApiV1QuestionReopenPut**](docs/QuestionApi.md#answerapiv1questionreopenput) | **Put** /answer/api/v1/question/reopen | reopen question +*QuestionApi* | [**AnswerApiV1QuestionSimilarGet**](docs/QuestionApi.md#answerapiv1questionsimilarget) | **Get** /answer/api/v1/question/similar | add question title like +*QuestionApi* | [**AnswerApiV1QuestionSimilarTagGet**](docs/QuestionApi.md#answerapiv1questionsimilartagget) | **Get** /answer/api/v1/question/similar/tag | Search Similar Question +*QuestionApi* | [**AnswerApiV1QuestionStatusPut**](docs/QuestionApi.md#answerapiv1questionstatusput) | **Put** /answer/api/v1/question/status | Close question +*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 +*RevisionApi* | [**AnswerApiV1RevisionsUnreviewedGet**](docs/RevisionApi.md#answerapiv1revisionsunreviewedget) | **Get** /answer/api/v1/revisions/unreviewed | get unreviewed revision list +*SearchApi* | [**AnswerApiV1SearchGet**](docs/SearchApi.md#answerapiv1searchget) | **Get** /answer/api/v1/search | search object +*SiteApi* | [**AnswerApiV1SiteinfoGet**](docs/SiteApi.md#answerapiv1siteinfoget) | **Get** /answer/api/v1/siteinfo | get site info +*SiteApi* | [**AnswerApiV1SiteinfoLegalGet**](docs/SiteApi.md#answerapiv1siteinfolegalget) | **Get** /answer/api/v1/siteinfo/legal | get site legal info +*SiteApi* | [**CustomCssGet**](docs/SiteApi.md#customcssget) | **Get** /custom.css | get site robots information +*SiteApi* | [**RobotsTxtGet**](docs/SiteApi.md#robotstxtget) | **Get** /robots.txt | get site robots information +*TagApi* | [**AnswerApiV1QuestionTagsGet**](docs/TagApi.md#answerapiv1questiontagsget) | **Get** /answer/api/v1/question/tags | get tag list +*TagApi* | [**AnswerApiV1TagDelete**](docs/TagApi.md#answerapiv1tagdelete) | **Delete** /answer/api/v1/tag | delete tag +*TagApi* | [**AnswerApiV1TagGet**](docs/TagApi.md#answerapiv1tagget) | **Get** /answer/api/v1/tag | get tag one +*TagApi* | [**AnswerApiV1TagPost**](docs/TagApi.md#answerapiv1tagpost) | **Post** /answer/api/v1/tag | add tag +*TagApi* | [**AnswerApiV1TagPut**](docs/TagApi.md#answerapiv1tagput) | **Put** /answer/api/v1/tag | update tag +*TagApi* | [**AnswerApiV1TagSynonymPut**](docs/TagApi.md#answerapiv1tagsynonymput) | **Put** /answer/api/v1/tag/synonym | update tag +*TagApi* | [**AnswerApiV1TagSynonymsGet**](docs/TagApi.md#answerapiv1tagsynonymsget) | **Get** /answer/api/v1/tag/synonyms | get tag synonyms +*TagApi* | [**AnswerApiV1TagsFollowingGet**](docs/TagApi.md#answerapiv1tagsfollowingget) | **Get** /answer/api/v1/tags/following | get following tag list +*TagApi* | [**AnswerApiV1TagsGet**](docs/TagApi.md#answerapiv1tagsget) | **Get** /answer/api/v1/tags | get tags list +*TagApi* | [**AnswerApiV1TagsPageGet**](docs/TagApi.md#answerapiv1tagspageget) | **Get** /answer/api/v1/tags/page | get tag page +*UploadApi* | [**AnswerApiV1FilePost**](docs/UploadApi.md#answerapiv1filepost) | **Post** /answer/api/v1/file | upload file +*UploadApi* | [**AnswerApiV1PostRenderPost**](docs/UploadApi.md#answerapiv1postrenderpost) | **Post** /answer/api/v1/post/render | render post content +*UserApi* | [**AnswerApiV1PersonalUserInfoGet**](docs/UserApi.md#answerapiv1personaluserinfoget) | **Get** /answer/api/v1/personal/user/info | GetOtherUserInfoByUsername +*UserApi* | [**AnswerApiV1UserActionRecordGet**](docs/UserApi.md#answerapiv1useractionrecordget) | **Get** /answer/api/v1/user/action/record | ActionRecord +*UserApi* | [**AnswerApiV1UserEmailChangeCodePost**](docs/UserApi.md#answerapiv1useremailchangecodepost) | **Post** /answer/api/v1/user/email/change/code | send email to the user email then change their email +*UserApi* | [**AnswerApiV1UserEmailNotificationPut**](docs/UserApi.md#answerapiv1useremailnotificationput) | **Put** /answer/api/v1/user/email/notification | unsubscribe email notification +*UserApi* | [**AnswerApiV1UserEmailPut**](docs/UserApi.md#answerapiv1useremailput) | **Put** /answer/api/v1/user/email | user change email verification +*UserApi* | [**AnswerApiV1UserEmailVerificationPost**](docs/UserApi.md#answerapiv1useremailverificationpost) | **Post** /answer/api/v1/user/email/verification | UserVerifyEmail +*UserApi* | [**AnswerApiV1UserEmailVerificationSendPost**](docs/UserApi.md#answerapiv1useremailverificationsendpost) | **Post** /answer/api/v1/user/email/verification/send | UserVerifyEmailSend +*UserApi* | [**AnswerApiV1UserInfoGet**](docs/UserApi.md#answerapiv1userinfoget) | **Get** /answer/api/v1/user/info | GetUserInfoByUserID +*UserApi* | [**AnswerApiV1UserInfoPut**](docs/UserApi.md#answerapiv1userinfoput) | **Put** /answer/api/v1/user/info | UserUpdateInfo update user info +*UserApi* | [**AnswerApiV1UserInterfacePut**](docs/UserApi.md#answerapiv1userinterfaceput) | **Put** /answer/api/v1/user/interface | UserUpdateInterface update user interface config +*UserApi* | [**AnswerApiV1UserLoginEmailPost**](docs/UserApi.md#answerapiv1userloginemailpost) | **Post** /answer/api/v1/user/login/email | UserEmailLogin +*UserApi* | [**AnswerApiV1UserLogoutGet**](docs/UserApi.md#answerapiv1userlogoutget) | **Get** /answer/api/v1/user/logout | user logout +*UserApi* | [**AnswerApiV1UserNoticeSetPost**](docs/UserApi.md#answerapiv1usernoticesetpost) | **Post** /answer/api/v1/user/notice/set | UserNoticeSet +*UserApi* | [**AnswerApiV1UserPasswordPut**](docs/UserApi.md#answerapiv1userpasswordput) | **Put** /answer/api/v1/user/password | UserModifyPassWord +*UserApi* | [**AnswerApiV1UserPasswordReplacementPost**](docs/UserApi.md#answerapiv1userpasswordreplacementpost) | **Post** /answer/api/v1/user/password/replacement | UseRePassWord +*UserApi* | [**AnswerApiV1UserPasswordResetPost**](docs/UserApi.md#answerapiv1userpasswordresetpost) | **Post** /answer/api/v1/user/password/reset | RetrievePassWord +*UserApi* | [**AnswerApiV1UserRankingGet**](docs/UserApi.md#answerapiv1userrankingget) | **Get** /answer/api/v1/user/ranking | get user ranking +*UserApi* | [**AnswerApiV1UserRegisterCaptchaGet**](docs/UserApi.md#answerapiv1userregistercaptchaget) | **Get** /answer/api/v1/user/register/captcha | UserRegisterCaptcha +*UserApi* | [**AnswerApiV1UserRegisterEmailPost**](docs/UserApi.md#answerapiv1userregisteremailpost) | **Post** /answer/api/v1/user/register/email | UserRegisterByEmail + + +## Documentation For Models + + - [AnswerAdminApiRolesGet200Response](docs/AnswerAdminApiRolesGet200Response.md) + - [AnswerAdminApiSettingSmtpGet200Response](docs/AnswerAdminApiSettingSmtpGet200Response.md) + - [AnswerAdminApiSiteinfoBrandingGet200Response](docs/AnswerAdminApiSiteinfoBrandingGet200Response.md) + - [AnswerAdminApiSiteinfoCustomCssHtmlGet200Response](docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md) + - [AnswerAdminApiSiteinfoGeneralGet200Response](docs/AnswerAdminApiSiteinfoGeneralGet200Response.md) + - [AnswerAdminApiSiteinfoInterfaceGet200Response](docs/AnswerAdminApiSiteinfoInterfaceGet200Response.md) + - [AnswerAdminApiSiteinfoLegalGet200Response](docs/AnswerAdminApiSiteinfoLegalGet200Response.md) + - [AnswerAdminApiSiteinfoLoginGet200Response](docs/AnswerAdminApiSiteinfoLoginGet200Response.md) + - [AnswerAdminApiSiteinfoSeoGet200Response](docs/AnswerAdminApiSiteinfoSeoGet200Response.md) + - [AnswerAdminApiSiteinfoThemeGet200Response](docs/AnswerAdminApiSiteinfoThemeGet200Response.md) + - [AnswerAdminApiSiteinfoWriteGet200Response](docs/AnswerAdminApiSiteinfoWriteGet200Response.md) + - [AnswerAdminApiUsersPageGet200Response](docs/AnswerAdminApiUsersPageGet200Response.md) + - [AnswerAdminApiUsersPageGet200ResponseData](docs/AnswerAdminApiUsersPageGet200ResponseData.md) + - [AnswerAdminApiUsersPageGet200ResponseDataAllOf](docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md) + - [AnswerApiV1ActivityTimelineGet200Response](docs/AnswerApiV1ActivityTimelineGet200Response.md) + - [AnswerApiV1CollectionSwitchPost200Response](docs/AnswerApiV1CollectionSwitchPost200Response.md) + - [AnswerApiV1CommentGet200Response](docs/AnswerApiV1CommentGet200Response.md) + - [AnswerApiV1CommentGet200ResponseData](docs/AnswerApiV1CommentGet200ResponseData.md) + - [AnswerApiV1CommentGet200ResponseDataAllOf](docs/AnswerApiV1CommentGet200ResponseDataAllOf.md) + - [AnswerApiV1CommentPost200Response](docs/AnswerApiV1CommentPost200Response.md) + - [AnswerApiV1FilePost200Response](docs/AnswerApiV1FilePost200Response.md) + - [AnswerApiV1FollowPost200Response](docs/AnswerApiV1FollowPost200Response.md) + - [AnswerApiV1PersonalCommentPageGet200Response](docs/AnswerApiV1PersonalCommentPageGet200Response.md) + - [AnswerApiV1PersonalCommentPageGet200ResponseData](docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md) + - [AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf](docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md) + - [AnswerApiV1PersonalRankPageGet200Response](docs/AnswerApiV1PersonalRankPageGet200Response.md) + - [AnswerApiV1PersonalRankPageGet200ResponseData](docs/AnswerApiV1PersonalRankPageGet200ResponseData.md) + - [AnswerApiV1PersonalRankPageGet200ResponseDataAllOf](docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md) + - [AnswerApiV1PersonalUserInfoGet200Response](docs/AnswerApiV1PersonalUserInfoGet200Response.md) + - [AnswerApiV1PersonalVotePageGet200Response](docs/AnswerApiV1PersonalVotePageGet200Response.md) + - [AnswerApiV1PersonalVotePageGet200ResponseData](docs/AnswerApiV1PersonalVotePageGet200ResponseData.md) + - [AnswerApiV1PersonalVotePageGet200ResponseDataAllOf](docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md) + - [AnswerApiV1QuestionPageGet200Response](docs/AnswerApiV1QuestionPageGet200Response.md) + - [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) + - [AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf](docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md) + - [AnswerApiV1SearchGet200Response](docs/AnswerApiV1SearchGet200Response.md) + - [AnswerApiV1SiteinfoGet200Response](docs/AnswerApiV1SiteinfoGet200Response.md) + - [AnswerApiV1SiteinfoLegalGet200Response](docs/AnswerApiV1SiteinfoLegalGet200Response.md) + - [AnswerApiV1TagGet200Response](docs/AnswerApiV1TagGet200Response.md) + - [AnswerApiV1TagSynonymsGet200Response](docs/AnswerApiV1TagSynonymsGet200Response.md) + - [AnswerApiV1TagsFollowingGet200Response](docs/AnswerApiV1TagsFollowingGet200Response.md) + - [AnswerApiV1TagsPageGet200Response](docs/AnswerApiV1TagsPageGet200Response.md) + - [AnswerApiV1TagsPageGet200ResponseData](docs/AnswerApiV1TagsPageGet200ResponseData.md) + - [AnswerApiV1TagsPageGet200ResponseDataAllOf](docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md) + - [AnswerApiV1UserActionRecordGet200Response](docs/AnswerApiV1UserActionRecordGet200Response.md) + - [AnswerApiV1UserEmailVerificationPost200Response](docs/AnswerApiV1UserEmailVerificationPost200Response.md) + - [AnswerApiV1UserInfoGet200Response](docs/AnswerApiV1UserInfoGet200Response.md) + - [AnswerApiV1UserNoticeSetPost200Response](docs/AnswerApiV1UserNoticeSetPost200Response.md) + - [AnswerApiV1UserRankingGet200Response](docs/AnswerApiV1UserRankingGet200Response.md) + - [AnswerApiV1VoteDownPost200Response](docs/AnswerApiV1VoteDownPost200Response.md) + - [HandlerRespBody](docs/HandlerRespBody.md) + - [InstallCheckConfigFileResp](docs/InstallCheckConfigFileResp.md) + - [InstallCheckDatabaseReq](docs/InstallCheckDatabaseReq.md) + - [InstallInitBaseInfoReq](docs/InstallInitBaseInfoReq.md) + - [InstallationConfigFileCheckPost200Response](docs/InstallationConfigFileCheckPost200Response.md) + - [InstallationLanguageOptionsGet200Response](docs/InstallationLanguageOptionsGet200Response.md) + - [PagerPageModel](docs/PagerPageModel.md) + - [SchemaActObjectInfo](docs/SchemaActObjectInfo.md) + - [SchemaActObjectTimeline](docs/SchemaActObjectTimeline.md) + - [SchemaActionRecordResp](docs/SchemaActionRecordResp.md) + - [SchemaAddCommentReq](docs/SchemaAddCommentReq.md) + - [SchemaAddReportReq](docs/SchemaAddReportReq.md) + - [SchemaAddTagReq](docs/SchemaAddTagReq.md) + - [SchemaAddUserReq](docs/SchemaAddUserReq.md) + - [SchemaAdminSetAnswerStatusRequest](docs/SchemaAdminSetAnswerStatusRequest.md) + - [SchemaAdminSetQuestionStatusRequest](docs/SchemaAdminSetQuestionStatusRequest.md) + - [SchemaAnswerAcceptedReq](docs/SchemaAnswerAcceptedReq.md) + - [SchemaAnswerAddReq](docs/SchemaAnswerAddReq.md) + - [SchemaAnswerUpdateReq](docs/SchemaAnswerUpdateReq.md) + - [SchemaAvatarInfo](docs/SchemaAvatarInfo.md) + - [SchemaCloseQuestionReq](docs/SchemaCloseQuestionReq.md) + - [SchemaCollectionSwitchReq](docs/SchemaCollectionSwitchReq.md) + - [SchemaCollectionSwitchResp](docs/SchemaCollectionSwitchResp.md) + - [SchemaFollowReq](docs/SchemaFollowReq.md) + - [SchemaFollowResp](docs/SchemaFollowResp.md) + - [SchemaGetCommentPersonalWithPageResp](docs/SchemaGetCommentPersonalWithPageResp.md) + - [SchemaGetCommentResp](docs/SchemaGetCommentResp.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) + - [SchemaGetRevisionResp](docs/SchemaGetRevisionResp.md) + - [SchemaGetRoleResp](docs/SchemaGetRoleResp.md) + - [SchemaGetSMTPConfigResp](docs/SchemaGetSMTPConfigResp.md) + - [SchemaGetSiteLegalInfoResp](docs/SchemaGetSiteLegalInfoResp.md) + - [SchemaGetTagPageResp](docs/SchemaGetTagPageResp.md) + - [SchemaGetTagResp](docs/SchemaGetTagResp.md) + - [SchemaGetTagSynonymsResp](docs/SchemaGetTagSynonymsResp.md) + - [SchemaGetUnreviewedRevisionResp](docs/SchemaGetUnreviewedRevisionResp.md) + - [SchemaGetUserPageResp](docs/SchemaGetUserPageResp.md) + - [SchemaGetUserResp](docs/SchemaGetUserResp.md) + - [SchemaGetUserToSetShowResp](docs/SchemaGetUserToSetShowResp.md) + - [SchemaGetVoteWithPageResp](docs/SchemaGetVoteWithPageResp.md) + - [SchemaNotificationClearIDRequest](docs/SchemaNotificationClearIDRequest.md) + - [SchemaNotificationClearRequest](docs/SchemaNotificationClearRequest.md) + - [SchemaOperationQuestionReq](docs/SchemaOperationQuestionReq.md) + - [SchemaPermissionMemberAction](docs/SchemaPermissionMemberAction.md) + - [SchemaPostRenderReq](docs/SchemaPostRenderReq.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) + - [SchemaRemoveAnswerReq](docs/SchemaRemoveAnswerReq.md) + - [SchemaRemoveCommentReq](docs/SchemaRemoveCommentReq.md) + - [SchemaRemoveQuestionReq](docs/SchemaRemoveQuestionReq.md) + - [SchemaRemoveTagReq](docs/SchemaRemoveTagReq.md) + - [SchemaReopenQuestionReq](docs/SchemaReopenQuestionReq.md) + - [SchemaReportHandleReq](docs/SchemaReportHandleReq.md) + - [SchemaRevisionAuditReq](docs/SchemaRevisionAuditReq.md) + - [SchemaSearchListResp](docs/SchemaSearchListResp.md) + - [SchemaSearchObject](docs/SchemaSearchObject.md) + - [SchemaSearchResp](docs/SchemaSearchResp.md) + - [SchemaSiteBrandingReq](docs/SchemaSiteBrandingReq.md) + - [SchemaSiteBrandingResp](docs/SchemaSiteBrandingResp.md) + - [SchemaSiteCustomCssHTMLReq](docs/SchemaSiteCustomCssHTMLReq.md) + - [SchemaSiteCustomCssHTMLResp](docs/SchemaSiteCustomCssHTMLResp.md) + - [SchemaSiteGeneralReq](docs/SchemaSiteGeneralReq.md) + - [SchemaSiteGeneralResp](docs/SchemaSiteGeneralResp.md) + - [SchemaSiteInfoResp](docs/SchemaSiteInfoResp.md) + - [SchemaSiteInterfaceReq](docs/SchemaSiteInterfaceReq.md) + - [SchemaSiteInterfaceResp](docs/SchemaSiteInterfaceResp.md) + - [SchemaSiteLegalReq](docs/SchemaSiteLegalReq.md) + - [SchemaSiteLegalResp](docs/SchemaSiteLegalResp.md) + - [SchemaSiteLoginReq](docs/SchemaSiteLoginReq.md) + - [SchemaSiteLoginResp](docs/SchemaSiteLoginResp.md) + - [SchemaSiteSeoReq](docs/SchemaSiteSeoReq.md) + - [SchemaSiteSeoResp](docs/SchemaSiteSeoResp.md) + - [SchemaSiteThemeReq](docs/SchemaSiteThemeReq.md) + - [SchemaSiteThemeResp](docs/SchemaSiteThemeResp.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) + - [SchemaUnreviewedRevisionInfoInfo](docs/SchemaUnreviewedRevisionInfoInfo.md) + - [SchemaUpdateCommentReq](docs/SchemaUpdateCommentReq.md) + - [SchemaUpdateFollowTagsReq](docs/SchemaUpdateFollowTagsReq.md) + - [SchemaUpdateInfoRequest](docs/SchemaUpdateInfoRequest.md) + - [SchemaUpdateSMTPConfigReq](docs/SchemaUpdateSMTPConfigReq.md) + - [SchemaUpdateTagReq](docs/SchemaUpdateTagReq.md) + - [SchemaUpdateTagSynonymReq](docs/SchemaUpdateTagSynonymReq.md) + - [SchemaUpdateUserInterfaceRequest](docs/SchemaUpdateUserInterfaceRequest.md) + - [SchemaUpdateUserPasswordReq](docs/SchemaUpdateUserPasswordReq.md) + - [SchemaUpdateUserRoleReq](docs/SchemaUpdateUserRoleReq.md) + - [SchemaUpdateUserStatusReq](docs/SchemaUpdateUserStatusReq.md) + - [SchemaUserBasicInfo](docs/SchemaUserBasicInfo.md) + - [SchemaUserChangeEmailSendCodeReq](docs/SchemaUserChangeEmailSendCodeReq.md) + - [SchemaUserChangeEmailVerifyReq](docs/SchemaUserChangeEmailVerifyReq.md) + - [SchemaUserEmailLogin](docs/SchemaUserEmailLogin.md) + - [SchemaUserModifyPassWordRequest](docs/SchemaUserModifyPassWordRequest.md) + - [SchemaUserNoticeSetRequest](docs/SchemaUserNoticeSetRequest.md) + - [SchemaUserNoticeSetResp](docs/SchemaUserNoticeSetResp.md) + - [SchemaUserRankingResp](docs/SchemaUserRankingResp.md) + - [SchemaUserRankingSimpleInfo](docs/SchemaUserRankingSimpleInfo.md) + - [SchemaUserRePassWordRequest](docs/SchemaUserRePassWordRequest.md) + - [SchemaUserRegisterReq](docs/SchemaUserRegisterReq.md) + - [SchemaUserRetrievePassWordRequest](docs/SchemaUserRetrievePassWordRequest.md) + - [SchemaVoteReq](docs/SchemaVoteReq.md) + - [SchemaVoteResp](docs/SchemaVoteResp.md) + - [TranslatorLangOption](docs/TranslatorLangOption.md) + + +## Documentation For Authorization + + +Authentication schemes defined for the API: +### ApiKeyAuth + +- **Type**: API key +- **API key parameter name**: Authorization +- **Location**: HTTP header + +Note, each API key must be added to a map of `map[string]APIKey` where the key is: Authorization and passed in as the auth context for each request. + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` + +## Author + + + diff --git a/api/openapi.yaml b/api/openapi.yaml new file mode 100644 index 0000000..16a3237 --- /dev/null +++ b/api/openapi.yaml @@ -0,0 +1,6712 @@ +openapi: 3.0.1 +info: + contact: {} + description: answer api + title: answer + version: v0.0.1 +servers: +- url: //127.0.0.1:80/ +paths: + /: + get: + description: if config file not exist try to redirect to install page + summary: if config file not exist try to redirect to install page + tags: + - installation + /answer/admin/api/answer/page: + get: + description: "Status:[available,deleted]" + parameters: + - description: page size + in: query + name: page + schema: + type: integer + - description: page size + in: query + name: page_size + schema: + type: integer + - description: user status + in: query + name: status + schema: + enum: + - available + - deleted + type: string + - description: answer id or question title + in: query + name: query + schema: + type: string + - description: question id + in: query + name: question_id + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: AdminSearchAnswerList + tags: + - admin + /answer/admin/api/answer/status: + put: + description: "Status:[available,deleted]" + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.AdminSetAnswerStatusRequest' + description: AdminSetAnswerStatusRequest + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: AdminSetAnswerStatus + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/dashboard: + get: + description: DashboardInfo + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: DashboardInfo + tags: + - admin + /answer/admin/api/language/options: + get: + description: Get language options + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: Get language options + tags: + - Lang + /answer/admin/api/question/page: + get: + description: "Status:[available,closed,deleted]" + parameters: + - description: page size + in: query + name: page + schema: + type: integer + - description: page size + in: query + name: page_size + schema: + type: integer + - description: user status + in: query + name: status + schema: + enum: + - available + - closed + - deleted + type: string + - description: question id or title + in: query + name: query + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: AdminSearchList + tags: + - admin + /answer/admin/api/question/status: + put: + description: "Status:[available,closed,deleted]" + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.AdminSetQuestionStatusRequest' + description: AdminSetQuestionStatusRequest + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: AdminSetQuestionStatus + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/reasons: + get: + description: get reasons by object type and action + parameters: + - description: object_type + in: query + name: object_type + required: true + schema: + enum: + - question + - answer + - comment + - user + type: string + - description: action + in: query + name: action + required: true + schema: + enum: + - status + - close + - flag + - review + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: get reasons by object type and action + tags: + - reason + /answer/admin/api/report/: + put: + description: handle flag + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.ReportHandleReq' + description: flag + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + - ApiKeyAuth: [] + summary: handle flag + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/reports/page: + get: + description: list report records + parameters: + - description: status + in: query + name: status + required: true + schema: + enum: + - pending + - completed + type: string + - description: object_type + in: query + name: object_type + required: true + schema: + enum: + - all + - question + - answer + - comment + type: string + - description: page size + in: query + name: page + schema: + type: integer + - description: page size + in: query + name: page_size + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + - ApiKeyAuth: [] + summary: list report page + tags: + - admin + /answer/admin/api/roles: + get: + description: get role list + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_roles_get_200_response' + description: OK + summary: get role list + tags: + - admin + /answer/admin/api/setting/smtp: + get: + description: GetSMTPConfig get smtp config + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_setting_smtp_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: GetSMTPConfig get smtp config + tags: + - admin + put: + description: update smtp config + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.UpdateSMTPConfigReq' + description: smtp config + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update smtp config + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/siteinfo/branding: + get: + description: get site interface + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_siteinfo_branding_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get site interface + tags: + - admin + put: + description: update site info branding + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SiteBrandingReq' + description: branding info + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update site info branding + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/siteinfo/custom-css-html: + get: + description: get site info custom html css config + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_siteinfo_custom_css_html_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get site info custom html css config + tags: + - admin + put: + description: update site custom css html config + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SiteCustomCssHTMLReq' + description: login info + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update site custom css html config + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/siteinfo/general: + get: + description: get site general information + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_siteinfo_general_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get site general information + tags: + - admin + put: + description: update site general information + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SiteGeneralReq' + description: general + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update site general information + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/siteinfo/interface: + get: + description: get site interface + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_siteinfo_interface_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get site interface + tags: + - admin + put: + description: update site info interface + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SiteInterfaceReq' + description: general + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update site info interface + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/siteinfo/legal: + get: + description: Set the legal information for the site + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_siteinfo_legal_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: Set the legal information for the site + tags: + - admin + put: + description: update site legal info + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SiteLegalReq' + description: write info + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update site legal info + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/siteinfo/login: + get: + description: get site info login config + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_siteinfo_login_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get site info login config + tags: + - admin + put: + description: update site login + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SiteLoginReq' + description: login info + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update site login + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/siteinfo/seo: + get: + description: get site seo information + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_siteinfo_seo_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get site seo information + tags: + - admin + put: + description: update site seo information + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SiteSeoReq' + description: seo + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update site seo information + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/siteinfo/theme: + get: + description: get site info theme config + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_siteinfo_theme_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get site info theme config + tags: + - admin + put: + description: update site custom css html config + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SiteThemeReq' + description: login info + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update site custom css html config + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/siteinfo/write: + get: + description: get site interface + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_siteinfo_write_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get site interface + tags: + - admin + put: + description: update site write info + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.SiteWriteReq' + description: write info + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update site write info + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/theme/options: + get: + description: Get theme options + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: Get theme options + tags: + - admin + /answer/admin/api/user: + post: + description: add user + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.AddUserReq' + description: user + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: add user + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/user/password: + put: + description: update user password + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdateUserPasswordReq' + description: user + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update user password + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/user/role: + put: + description: update user role + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdateUserRoleReq' + description: user + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update user role + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/user/status: + put: + description: update user + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdateUserStatusReq' + description: user + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update user + tags: + - admin + x-codegen-request-body-name: data + /answer/admin/api/users/page: + get: + description: get user page + parameters: + - description: page size + in: query + name: page + schema: + type: integer + - description: page size + in: query + name: page_size + schema: + type: integer + - description: "search query: email, username or id:[id]" + in: query + name: query + schema: + type: string + - description: staff user + in: query + name: staff + schema: + type: boolean + - description: user status + in: query + name: status + schema: + enum: + - suspended + - deleted + - inactive + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_admin_api_users_page_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get user page + tags: + - admin + /answer/api/v1/activity/timeline: + get: + description: get object timeline + parameters: + - description: object id + in: query + name: object_id + schema: + type: string + - description: tag slug name + in: query + name: tag_slug_name + schema: + type: string + - description: object type + in: query + name: object_type + schema: + enum: + - question + - answer + - tag + type: string + - description: is show vote + in: query + name: show_vote + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_activity_timeline_get_200_response' + description: OK + summary: get object timeline + tags: + - Comment + /answer/api/v1/activity/timeline/detail: + get: + description: get object timeline detail + parameters: + - description: revision id + in: query + name: revision_id + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_activity_timeline_get_200_response' + description: OK + summary: get object timeline detail + tags: + - Comment + /answer/api/v1/answer: + delete: + description: delete answer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.RemoveAnswerReq' + description: answer + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: delete answer + tags: + - api-answer + x-codegen-request-body-name: data + post: + description: Insert Answer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.AnswerAddReq' + description: AnswerAddReq + required: true + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + security: + - ApiKeyAuth: [] + summary: Insert Answer + tags: + - api-answer + x-codegen-request-body-name: data + put: + description: Update Answer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.AnswerUpdateReq' + description: AnswerUpdateReq + required: true + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + security: + - ApiKeyAuth: [] + summary: Update Answer + tags: + - api-answer + x-codegen-request-body-name: data + /answer/api/v1/answer/acceptance: + post: + description: Accepted + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.AnswerAcceptedReq' + description: AnswerAcceptedReq + required: true + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + security: + - ApiKeyAuth: [] + summary: Accepted + tags: + - api-answer + x-codegen-request-body-name: data + /answer/api/v1/answer/info: + get: + description: Get Answer + parameters: + - description: Answer TagID + in: query + name: id + required: true + schema: + default: "1" + type: string + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + summary: Get Answer + tags: + - api-answer + /answer/api/v1/answer/page: + get: + description: AnswerList
order (default or updated) + parameters: + - description: question_id + in: query + name: question_id + required: true + schema: + type: string + - description: order + in: query + name: order + required: true + schema: + type: string + - description: page + in: query + name: page + required: true + schema: + type: string + - description: page_size + in: query + name: page_size + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + security: + - ApiKeyAuth: [] + summary: AnswerList + tags: + - api-answer + /answer/api/v1/collection/switch: + post: + description: add collection + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.CollectionSwitchReq' + description: collection + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_collection_switch_post_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: add collection + tags: + - Collection + x-codegen-request-body-name: data + /answer/api/v1/comment: + delete: + description: remove comment + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.RemoveCommentReq' + description: comment + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: remove comment + tags: + - Comment + x-codegen-request-body-name: data + get: + description: get comment by id + parameters: + - description: id + in: query + name: id + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_comment_get_200_response' + description: OK + summary: get comment by id + tags: + - Comment + post: + description: add comment + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.AddCommentReq' + description: comment + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_comment_post_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: add comment + tags: + - Comment + x-codegen-request-body-name: data + put: + description: update comment + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdateCommentReq' + description: comment + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update comment + tags: + - Comment + x-codegen-request-body-name: data + /answer/api/v1/comment/page: + get: + description: get comment page + parameters: + - description: page + in: query + name: page + schema: + type: integer + - description: page size + in: query + name: page_size + schema: + type: integer + - description: object id + in: query + name: object_id + required: true + schema: + type: string + - description: query condition + in: query + name: query_cond + schema: + enum: + - vote + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_comment_get_200_response' + description: OK + summary: get comment page + tags: + - Comment + /answer/api/v1/file: + post: + description: upload file + requestBody: + content: + multipart/form-data: + schema: + $ref: '#/components/schemas/_answer_api_v1_file_post_request' + required: true + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/_answer_api_v1_file_post_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: upload file + tags: + - Upload + /answer/api/v1/follow: + post: + description: follow object or cancel follow operation + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.FollowReq' + description: follow + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_follow_post_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: follow object or cancel follow operation + tags: + - Activity + x-codegen-request-body-name: data + /answer/api/v1/follow/tags: + put: + description: update user follow tags + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdateFollowTagsReq' + description: follow + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update user follow tags + tags: + - Activity + x-codegen-request-body-name: data + /answer/api/v1/language/config: + get: + description: get language config mapping + parameters: + - description: Accept-Language + in: header + name: Accept-Language + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: get language config mapping + tags: + - Lang + /answer/api/v1/language/options: + get: + description: Get language options + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: Get language options + tags: + - Lang + /answer/api/v1/notification/page: + get: + description: get notification list + parameters: + - description: page size + in: query + name: page + schema: + type: integer + - description: page size + in: query + name: page_size + schema: + type: integer + - description: type + in: query + name: type + required: true + schema: + enum: + - inbox + - achievement + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: get notification list + tags: + - Notification + /answer/api/v1/notification/read/state: + put: + description: ClearUnRead + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.NotificationClearIDRequest' + description: NotificationClearIDRequest + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: ClearUnRead + tags: + - Notification + x-codegen-request-body-name: data + /answer/api/v1/notification/read/state/all: + put: + description: ClearUnRead + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.NotificationClearRequest' + description: NotificationClearRequest + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: ClearUnRead + tags: + - Notification + x-codegen-request-body-name: data + /answer/api/v1/notification/status: + get: + description: GetRedDot + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: GetRedDot + tags: + - Notification + put: + description: DelRedDot + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.NotificationClearRequest' + description: NotificationClearRequest + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: DelRedDot + tags: + - Notification + x-codegen-request-body-name: data + /answer/api/v1/personal/answer/page: + get: + description: UserAnswerList + parameters: + - description: username + in: query + name: username + required: true + schema: + default: string + type: string + - description: order + in: query + name: order + required: true + schema: + enum: + - newest + - score + type: string + - description: page + in: query + name: page + required: true + schema: + default: "0" + type: string + - description: pagesize + in: query + name: pagesize + required: true + schema: + default: "20" + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: UserAnswerList + tags: + - api-answer + /answer/api/v1/personal/collection/page: + get: + description: UserCollectionList + parameters: + - description: page + in: query + name: page + required: true + schema: + default: "0" + type: string + - description: pagesize + in: query + name: pagesize + required: true + schema: + default: "20" + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: UserCollectionList + tags: + - Collection + /answer/api/v1/personal/comment/page: + get: + description: user personal comment list + parameters: + - description: page + in: query + name: page + schema: + type: integer + - description: page size + in: query + name: page_size + schema: + type: integer + - description: username + in: query + name: username + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_personal_comment_page_get_200_response' + description: OK + summary: user personal comment list + tags: + - Comment + /answer/api/v1/personal/qa/top: + get: + description: UserTop + parameters: + - description: username + in: query + name: username + required: true + schema: + default: string + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: UserTop + tags: + - Question + /answer/api/v1/personal/rank/page: + get: + description: user personal rank list + parameters: + - description: page + in: query + name: page + schema: + type: integer + - description: page size + in: query + name: page_size + schema: + type: integer + - description: username + in: query + name: username + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_personal_rank_page_get_200_response' + description: OK + summary: user personal rank list + tags: + - Rank + /answer/api/v1/personal/user/info: + get: + description: GetOtherUserInfoByUsername + 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: GetOtherUserInfoByUsername + tags: + - User + /answer/api/v1/personal/vote/page: + get: + description: user's vote + parameters: + - description: page size + in: query + name: page + schema: + type: integer + - description: page size + in: query + name: page_size + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_personal_vote_page_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: user's votes + tags: + - Activity + /answer/api/v1/post/render: + post: + description: render post content + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.PostRenderReq' + description: PostRenderReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: render post content + tags: + - Upload + x-codegen-request-body-name: data + /answer/api/v1/question: + delete: + description: delete question + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.RemoveQuestionReq' + description: question + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: delete question + tags: + - Question + x-codegen-request-body-name: data + post: + description: add question + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.QuestionAdd' + description: question + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: add question + tags: + - Question + x-codegen-request-body-name: data + put: + description: update question + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.QuestionUpdate' + description: question + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: update question + tags: + - Question + x-codegen-request-body-name: data + /answer/api/v1/question/answer: + post: + description: add question and answer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.QuestionAddByAnswer' + description: question + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: add question and answer + 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 + parameters: + - description: Question TagID + 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 details + tags: + - Question + /answer/api/v1/question/operation: + put: + description: "Operation question \\n operation [pin unpin hide show]" + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.OperationQuestionReq' + description: question + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: Operation question + tags: + - Question + x-codegen-request-body-name: data + /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 + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_question_page_get_200_response' + description: OK + summary: get questions by page + tags: + - Question + x-codegen-request-body-name: data + /answer/api/v1/question/reopen: + put: + description: reopen question + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.ReopenQuestionReq' + description: question + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: reopen question + tags: + - Question + x-codegen-request-body-name: data + /answer/api/v1/question/similar: + get: + description: add question title like + parameters: + - description: title + in: query + name: title + required: true + schema: + default: string + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: add question title like + tags: + - Question + /answer/api/v1/question/similar/tag: + get: + description: Search Similar Question + parameters: + - description: question_id + in: query + name: question_id + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + summary: Search Similar Question + tags: + - Question + /answer/api/v1/question/status: + put: + description: Close question + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.CloseQuestionReq' + description: question + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: Close question + tags: + - Question + x-codegen-request-body-name: data + /answer/api/v1/question/tags: + get: + description: get tag list + parameters: + - description: tag + in: query + name: tag + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_question_tags_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get tag list + tags: + - Tag + /answer/api/v1/reasons: + get: + description: get reasons by object type and action + parameters: + - description: object_type + in: query + name: object_type + required: true + schema: + enum: + - question + - answer + - comment + - user + type: string + - description: action + in: query + name: action + required: true + schema: + enum: + - status + - close + - flag + - review + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: get reasons by object type and action + tags: + - reason + /answer/api/v1/report: + post: + description: "add report
source (question, answer, comment, user)" + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.AddReportReq' + description: report + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + - ApiKeyAuth: [] + summary: add report + 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 + parameters: + - description: object id + in: query + name: object_id + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_revisions_get_200_response' + description: OK + summary: get revision list + tags: + - Revision + /answer/api/v1/revisions/audit: + put: + description: revision audit operation:approve or reject + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/schema.RevisionAuditReq' + description: audit + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: revision audit + tags: + - Revision + x-codegen-request-body-name: data + /answer/api/v1/revisions/edit/check: + get: + description: check can update revision + parameters: + - description: id + in: query + name: id + required: true + schema: + default: string + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: check can update revision + tags: + - Revision + /answer/api/v1/revisions/unreviewed: + get: + description: get unreviewed revision list + parameters: + - description: page id + in: query + name: page + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_revisions_unreviewed_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get unreviewed revision list + tags: + - Revision + /answer/api/v1/search: + get: + description: search object + parameters: + - description: query string + in: query + name: q + required: true + schema: + type: string + - description: order + in: query + name: order + required: true + schema: + enum: + - newest + - active + - score + - relevance + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_search_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: search object + tags: + - Search + /answer/api/v1/siteinfo: + get: + description: get site info + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_siteinfo_get_200_response' + description: OK + summary: get site info + tags: + - site + /answer/api/v1/siteinfo/legal: + get: + description: get site legal info + parameters: + - description: legal information type + in: query + name: info_type + required: true + schema: + enum: + - tos + - privacy + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_siteinfo_legal_get_200_response' + description: OK + summary: get site legal info + tags: + - site + /answer/api/v1/tag: + delete: + description: delete tag + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.RemoveTagReq' + description: tag + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: delete tag + tags: + - Tag + x-codegen-request-body-name: data + get: + description: get tag one + parameters: + - description: tag id + in: query + name: tag_id + required: true + schema: + type: string + - description: tag name + in: query + name: tag_name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_tag_get_200_response' + description: OK + summary: get tag one + tags: + - Tag + post: + description: add tag + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.AddTagReq' + description: tag + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: add tag + tags: + - Tag + x-codegen-request-body-name: data + put: + description: update tag + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdateTagReq' + description: tag + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: update tag + tags: + - Tag + x-codegen-request-body-name: data + /answer/api/v1/tag/synonym: + put: + description: update tag + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdateTagSynonymReq' + description: tag + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: update tag + tags: + - Tag + x-codegen-request-body-name: data + /answer/api/v1/tag/synonyms: + get: + description: get tag synonyms + parameters: + - description: tag id + in: query + name: tag_id + required: true + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_tag_synonyms_get_200_response' + description: OK + summary: get tag synonyms + tags: + - Tag + /answer/api/v1/tags: + get: + description: get tags list + parameters: + - description: string collection + explode: false + in: query + name: tags + schema: + items: + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: get tags list + tags: + - Tag + /answer/api/v1/tags/following: + get: + description: get following tag list + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_tags_following_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get following tag list + tags: + - Tag + /answer/api/v1/tags/page: + get: + description: get tag page + parameters: + - description: page size + in: query + name: page + schema: + type: integer + - description: page size + in: query + name: page_size + schema: + type: integer + - description: slug_name + in: query + name: slug_name + schema: + type: string + - description: query condition + in: query + name: query_cond + schema: + enum: + - popular + - name + - newest + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_tags_page_get_200_response' + description: OK + summary: get tag page + tags: + - Tag + /answer/api/v1/user/action/record: + get: + description: ActionRecord + parameters: + - description: action + in: query + name: action + required: true + schema: + enum: + - login + - e_mail + - find_pass + type: string + responses: + "200": + content: + '*/*': + schema: + $ref: '#/components/schemas/_answer_api_v1_user_action_record_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: ActionRecord + tags: + - User + /answer/api/v1/user/email: + put: + description: user change email verification + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UserChangeEmailVerifyReq' + description: UserChangeEmailVerifyReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: user change email verification + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/user/email/change/code: + post: + description: send email to the user email then change their email + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UserChangeEmailSendCodeReq' + description: UserChangeEmailSendCodeReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: send email to the user email then change their email + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/user/email/notification: + put: + description: unsubscribe email notification + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: unsubscribe email notification + tags: + - User + /answer/api/v1/user/email/verification: + post: + description: UserVerifyEmail + parameters: + - description: code + in: query + name: code + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_user_email_verification_post_200_response' + description: OK + summary: UserVerifyEmail + tags: + - User + /answer/api/v1/user/email/verification/send: + post: + description: UserVerifyEmailSend + parameters: + - description: captcha_id + in: query + name: captcha_id + schema: + type: string + - description: captcha_code + in: query + name: captcha_code + schema: + type: string + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + security: + - ApiKeyAuth: [] + summary: UserVerifyEmailSend + tags: + - User + /answer/api/v1/user/info: + get: + description: "get user info, if user no login response http code is 200, but\ + \ user info is null" + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_user_info_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: GetUserInfoByUserID + tags: + - User + put: + description: UserUpdateInfo update user info + parameters: + - description: access-token + in: header + name: Authorization + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdateInfoRequest' + description: UpdateInfoRequest + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: UserUpdateInfo update user info + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/user/interface: + put: + description: UserUpdateInterface update user interface config + parameters: + - description: access-token + in: header + name: Authorization + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UpdateUserInterfaceRequest' + description: UpdateInfoRequest + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: UserUpdateInterface update user interface config + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/user/login/email: + post: + description: UserEmailLogin + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UserEmailLogin' + description: UserEmailLogin + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_user_email_verification_post_200_response' + description: OK + summary: UserEmailLogin + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/user/logout: + get: + description: user logout + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: user logout + tags: + - User + /answer/api/v1/user/notice/set: + post: + description: UserNoticeSet + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UserNoticeSetRequest' + description: UserNoticeSetRequest + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_user_notice_set_post_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: UserNoticeSet + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/user/password: + put: + description: UserModifyPassWord + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UserModifyPassWordRequest' + description: UserModifyPassWordRequest + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: UserModifyPassWord + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/user/password/replacement: + post: + description: UseRePassWord + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UserRePassWordRequest' + description: UserRePassWordRequest + required: true + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + summary: UseRePassWord + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/user/password/reset: + post: + description: RetrievePassWord + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UserRetrievePassWordRequest' + description: UserRetrievePassWordRequest + required: true + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + summary: RetrievePassWord + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/user/ranking: + get: + description: get user ranking + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_user_ranking_get_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: get user ranking + tags: + - User + /answer/api/v1/user/register/captcha: + get: + description: UserRegisterCaptcha + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_user_email_verification_post_200_response' + description: OK + summary: UserRegisterCaptcha + tags: + - User + /answer/api/v1/user/register/email: + post: + description: UserRegisterByEmail + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.UserRegisterReq' + description: UserRegisterReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_user_email_verification_post_200_response' + description: OK + summary: UserRegisterByEmail + tags: + - User + x-codegen-request-body-name: data + /answer/api/v1/vote/down: + post: + description: add vote + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.VoteReq' + description: vote + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_vote_down_post_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: vote down + tags: + - Activity + x-codegen-request-body-name: data + /answer/api/v1/vote/up: + post: + description: add vote + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/schema.VoteReq' + description: vote + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_answer_api_v1_vote_down_post_200_response' + description: OK + security: + - ApiKeyAuth: [] + summary: vote up + tags: + - Activity + x-codegen-request-body-name: data + /custom.css: + get: + description: get site robots information + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + summary: get site robots information + tags: + - site + /installation/base-info: + post: + description: init base info + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/install.InitBaseInfoReq' + description: InitBaseInfoReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: init base info + tags: + - installation + x-codegen-request-body-name: data + /installation/config-file/check: + post: + description: check config file if exist when installation + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_installation_config_file_check_post_200_response' + description: OK + summary: check config file if exist when installation + tags: + - installation + /installation/db/check: + post: + description: check database if exist when installation + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/install.CheckDatabaseReq' + description: CheckDatabaseReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_installation_config_file_check_post_200_response' + description: OK + summary: check database if exist when installation + tags: + - installation + x-codegen-request-body-name: data + /installation/init: + post: + description: init environment + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/install.CheckDatabaseReq' + description: CheckDatabaseReq + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + summary: init environment + tags: + - installation + x-codegen-request-body-name: data + /installation/language/options: + get: + description: get installation language options + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/_installation_language_options_get_200_response' + description: OK + summary: get installation language options + tags: + - Lang + /personal/question/page: + get: + description: UserList + parameters: + - description: username + in: query + name: username + required: true + schema: + default: string + type: string + - description: order + in: query + name: order + required: true + schema: + enum: + - newest + - score + type: string + - description: page + in: query + name: page + required: true + schema: + default: "0" + type: string + - description: pagesize + in: query + name: pagesize + required: true + schema: + default: "20" + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/handler.RespBody' + description: OK + security: + - ApiKeyAuth: [] + summary: UserList + tags: + - Question + /robots.txt: + get: + description: get site robots information + responses: + "200": + content: + application/json: + schema: + type: string + description: OK + summary: get site robots information + tags: + - site +components: + schemas: + handler.RespBody: + example: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + code: + description: http code + type: integer + data: + description: response data + type: object + msg: + description: response message + type: string + reason: + description: reason key + type: string + type: object + install.CheckConfigFileResp: + example: + db_connection_success: true + db_table_exist: true + config_file_exist: true + properties: + config_file_exist: + type: boolean + db_connection_success: + type: boolean + db_table_exist: + type: boolean + type: object + install.CheckDatabaseReq: + properties: + db_file: + type: string + db_host: + type: string + db_name: + type: string + db_password: + type: string + db_type: + enum: + - postgres + - sqlite3 + - mysql + type: string + db_username: + type: string + required: + - db_type + type: object + install.InitBaseInfoReq: + properties: + contact_email: + maxLength: 500 + type: string + email: + maxLength: 500 + type: string + lang: + maxLength: 30 + type: string + name: + maxLength: 30 + type: string + password: + maxLength: 32 + minLength: 8 + type: string + site_name: + maxLength: 30 + type: string + site_url: + maxLength: 512 + type: string + required: + - contact_email + - email + - lang + - name + - password + - site_name + - site_url + type: object + pager.PageModel: + properties: + count: + type: integer + list: + type: object + type: object + schema.ActObjectInfo: + example: + object_type: object_type + main_tag_slug_name: main_tag_slug_name + display_name: display_name + title: title + answer_id: answer_id + question_id: question_id + username: username + properties: + answer_id: + type: string + display_name: + type: string + main_tag_slug_name: + type: string + object_type: + type: string + question_id: + type: string + title: + type: string + username: + type: string + type: object + schema.ActObjectTimeline: + example: + cancelled_at: 0 + object_type: object_type + activity_type: activity_type + activity_id: activity_id + cancelled: true + created_at: 6 + comment: comment + id: id + object_id: object_id + user_display_name: user_display_name + revision_id: revision_id + username: username + properties: + activity_id: + type: string + activity_type: + type: string + cancelled: + type: boolean + cancelled_at: + type: integer + comment: + type: string + created_at: + type: integer + id: + type: string + object_id: + type: string + object_type: + type: string + revision_id: + type: string + user_display_name: + type: string + username: + type: string + type: object + schema.ActionRecordResp: + example: + captcha_id: captcha_id + verify: true + captcha_img: captcha_img + properties: + captcha_id: + type: string + captcha_img: + type: string + verify: + type: boolean + type: object + schema.AddCommentReq: + properties: + mention_username_list: + description: '@ user id list' + items: + type: string + type: array + object_id: + description: object id + type: string + original_text: + description: original comment content + maxLength: 600 + minLength: 2 + type: string + reply_comment_id: + description: reply comment id + type: string + required: + - object_id + - original_text + type: object + schema.AddReportReq: + properties: + content: + description: report content + maxLength: 500 + type: string + object_id: + description: object id + maxLength: 20 + type: string + report_type: + description: report type + type: integer + required: + - object_id + - report_type + type: object + schema.AddTagReq: + properties: + display_name: + description: display_name + maxLength: 35 + type: string + original_text: + description: original text + maxLength: 65536 + type: string + slug_name: + description: slug_name + maxLength: 35 + type: string + required: + - display_name + - original_text + - slug_name + type: object + schema.AddUserReq: + properties: + display_name: + maxLength: 30 + type: string + email: + maxLength: 500 + type: string + password: + maxLength: 32 + minLength: 8 + type: string + required: + - display_name + - email + - password + type: object + schema.AdminSetAnswerStatusRequest: + properties: + answer_id: + type: string + status: + type: string + type: object + schema.AdminSetQuestionStatusRequest: + properties: + question_id: + type: string + status: + type: string + type: object + schema.AnswerAcceptedReq: + properties: + answer_id: + type: string + question_id: + type: string + type: object + schema.AnswerAddReq: + properties: + content: + maxLength: 65535 + minLength: 6 + type: string + question_id: + type: string + required: + - content + type: object + schema.AnswerUpdateReq: + properties: + content: + maxLength: 65535 + minLength: 6 + type: string + edit_summary: + type: string + id: + type: string + question_id: + type: string + title: + type: string + required: + - content + type: object + schema.AvatarInfo: + example: + gravatar: gravatar + custom: custom + type: type + properties: + custom: + maxLength: 200 + type: string + gravatar: + maxLength: 200 + type: string + type: + maxLength: 100 + type: string + type: object + schema.CloseQuestionReq: + properties: + close_msg: + description: close_type + type: string + close_type: + description: close_type + type: integer + id: + type: string + required: + - id + type: object + schema.CollectionSwitchReq: + properties: + group_id: + description: user collection group TagID + type: string + object_id: + description: object TagID + type: string + required: + - group_id + - object_id + type: object + schema.CollectionSwitchResp: + example: + object_id: object_id + object_collection_count: object_collection_count + switch: true + properties: + object_collection_count: + type: string + object_id: + type: string + switch: + type: boolean + type: object + schema.FollowReq: + properties: + is_cancel: + description: is cancel + type: boolean + object_id: + description: object id + type: string + required: + - object_id + type: object + schema.FollowResp: + example: + follows: 0 + is_followed: true + properties: + follows: + description: the followers of object + type: integer + is_followed: + description: "if user is followed object will be true,otherwise false" + type: boolean + type: object + schema.GetCommentPersonalWithPageResp: + properties: + answer_id: + description: answer id + type: string + comment_id: + description: comment id + type: string + content: + description: content + type: string + created_at: + description: create time + type: integer + object_id: + description: object id + type: string + object_type: + description: object type + enum: + - question + - answer + - tag + - comment + type: string + question_id: + description: question id + type: string + title: + description: title + type: string + url_title: + description: url title + type: string + type: object + schema.GetCommentResp: + example: + user_avatar: user_avatar + user_status: user_status + is_vote: true + reply_username: reply_username + reply_user_id: reply_user_id + created_at: 0 + member_actions: + - name: name + action: action + type: type + - name: name + action: action + type: type + original_text: original_text + comment_id: comment_id + object_id: object_id + reply_user_display_name: reply_user_display_name + reply_comment_id: reply_comment_id + reply_user_status: reply_user_status + user_id: user_id + parsed_text: parsed_text + user_display_name: user_display_name + vote_count: 6 + username: username + properties: + comment_id: + description: comment id + type: string + created_at: + description: create time + type: integer + is_vote: + description: current user if already vote this comment + type: boolean + member_actions: + description: MemberActions + items: + $ref: '#/components/schemas/schema.PermissionMemberAction' + type: array + object_id: + description: object id + type: string + original_text: + description: original comment content + type: string + parsed_text: + description: parsed comment content + type: string + reply_comment_id: + description: reply comment id + type: string + reply_user_display_name: + description: reply user display name + type: string + reply_user_id: + description: reply user id + type: string + reply_user_status: + description: reply user status + type: string + reply_username: + description: reply user username + type: string + user_avatar: + description: user avatar + type: string + user_display_name: + description: user display name + type: string + user_id: + description: user id + type: string + user_status: + description: user status + type: string + username: + description: username + type: string + vote_count: + description: user vote amount + type: integer + type: object + schema.GetFollowingTagsResp: + example: + reserved: true + slug_name: slug_name + tag_id: tag_id + main_tag_slug_name: main_tag_slug_name + recommend: true + display_name: display_name + properties: + display_name: + description: display name + type: string + main_tag_slug_name: + description: "if main tag slug name is not empty, this tag is synonymous\ + \ with the main tag" + type: string + recommend: + type: boolean + reserved: + type: boolean + slug_name: + description: slug name + type: string + tag_id: + description: tag id + type: string + type: object + schema.GetObjectTimelineResp: + example: + object_info: + object_type: object_type + main_tag_slug_name: main_tag_slug_name + display_name: display_name + title: title + answer_id: answer_id + question_id: question_id + username: username + timeline: + - cancelled_at: 0 + object_type: object_type + activity_type: activity_type + activity_id: activity_id + cancelled: true + created_at: 6 + comment: comment + id: id + object_id: object_id + user_display_name: user_display_name + revision_id: revision_id + username: username + - cancelled_at: 0 + object_type: object_type + activity_type: activity_type + activity_id: activity_id + cancelled: true + created_at: 6 + comment: comment + id: id + object_id: object_id + user_display_name: user_display_name + revision_id: revision_id + username: username + properties: + object_info: + $ref: '#/components/schemas/schema.ActObjectInfo' + timeline: + items: + $ref: '#/components/schemas/schema.ActObjectTimeline' + type: array + type: object + schema.GetOtherUserInfoByUsernameResp: + example: + website: website + mobile: mobile + bio: bio + created_at: 6 + avatar: avatar + answer_count: 0 + display_name: display_name + last_login_date: 5 + question_count: 5 + bio_html: bio_html + follow_count: 1 + rank: 2 + status_msg: status_msg + location: location + id: id + status: status + username: username + properties: + answer_count: + description: answer count + 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 + follow_count: + description: |- + email + follow count + type: integer + id: + description: user id + type: string + last_login_date: + description: last login date + type: integer + location: + description: location + type: string + mobile: + description: mobile + type: string + question_count: + description: question count + type: integer + rank: + description: rank + type: integer + status: + type: string + status_msg: + type: string + username: + description: username + type: string + website: + description: website + type: string + type: object + schema.GetOtherUserInfoResp: + example: + info: + website: website + mobile: mobile + bio: bio + created_at: 6 + avatar: avatar + answer_count: 0 + display_name: display_name + last_login_date: 5 + question_count: 5 + bio_html: bio_html + follow_count: 1 + rank: 2 + status_msg: status_msg + location: location + id: id + status: status + username: username + properties: + info: + $ref: '#/components/schemas/schema.GetOtherUserInfoByUsernameResp' + type: object + schema.GetRankPersonalWithPageResp: + properties: + answer_id: + description: answer id + type: string + content: + description: content + type: string + created_at: + description: create time + type: integer + object_id: + description: object id + type: string + object_type: + description: object type + enum: + - question + - answer + - tag + - comment + type: string + question_id: + description: question id + type: string + rank_type: + description: rank type + type: string + reputation: + description: reputation + type: integer + title: + description: title + type: string + url_title: + 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 + user_info: + website: website + rank: 1 + location: location + avatar: avatar + id: id + display_name: display_name + ip_info: ip_info + status: status + username: username + use_id: use_id + id: id + create_at: 0 + title: title + object_id: object_id + content: "{}" + status: 6 + properties: + content: + description: content parsed + type: object + create_at: + type: integer + id: + description: id + type: string + object_id: + description: object id + type: string + reason: + type: string + status: + description: "revision status(normal: 1; delete 2)" + type: integer + title: + description: title + type: string + use_id: + description: user id + type: string + user_info: + $ref: '#/components/schemas/schema.UserBasicInfo' + type: object + schema.GetRoleResp: + example: + name: name + description: description + id: 0 + properties: + description: + type: string + id: + type: integer + name: + type: string + type: object + schema.GetSMTPConfigResp: + example: + from_email: from_email + encryption: encryption + smtp_authentication: true + smtp_password: smtp_password + smtp_port: 0 + smtp_host: smtp_host + from_name: from_name + smtp_username: smtp_username + properties: + encryption: + description: '"" SSL' + type: string + from_email: + type: string + from_name: + type: string + smtp_authentication: + type: boolean + smtp_host: + type: string + smtp_password: + type: string + smtp_port: + type: integer + smtp_username: + type: string + type: object + schema.GetSiteLegalInfoResp: + example: + privacy_policy_parsed_text: privacy_policy_parsed_text + privacy_policy_original_text: privacy_policy_original_text + terms_of_service_original_text: terms_of_service_original_text + terms_of_service_parsed_text: terms_of_service_parsed_text + properties: + privacy_policy_original_text: + type: string + privacy_policy_parsed_text: + type: string + terms_of_service_original_text: + type: string + terms_of_service_parsed_text: + type: string + type: object + schema.GetTagPageResp: + properties: + created_at: + description: created time + type: integer + description: + description: description + type: string + display_name: + description: display_name + type: string + excerpt: + description: excerpt + type: string + follow_count: + description: follower amount + type: integer + is_follower: + description: is follower + type: boolean + original_text: + description: original text + type: string + parsed_text: + description: parsed_text + type: string + question_count: + description: question amount + type: integer + recommend: + type: boolean + reserved: + type: boolean + slug_name: + description: slug_name + type: string + tag_id: + description: tag_id + type: string + updated_at: + description: updated time + type: integer + type: object + schema.GetTagResp: + example: + created_at: 0 + description: description + main_tag_slug_name: main_tag_slug_name + recommend: true + member_actions: + - name: name + action: action + type: type + - name: name + action: action + type: type + original_text: original_text + display_name: display_name + question_count: 1 + updated_at: 5 + reserved: true + follow_count: 6 + parsed_text: parsed_text + slug_name: slug_name + tag_id: tag_id + excerpt: excerpt + is_follower: true + properties: + created_at: + description: created time + type: integer + description: + description: description text + type: string + display_name: + description: display name + type: string + excerpt: + description: excerpt + type: string + follow_count: + description: follower amount + type: integer + is_follower: + description: is follower + type: boolean + main_tag_slug_name: + description: "if main tag slug name is not empty, this tag is synonymous\ + \ with the main tag" + type: string + member_actions: + description: MemberActions + items: + $ref: '#/components/schemas/schema.PermissionMemberAction' + type: array + original_text: + description: original text + type: string + parsed_text: + description: parsed text + type: string + question_count: + description: question amount + type: integer + recommend: + type: boolean + reserved: + type: boolean + slug_name: + description: slug name + type: string + tag_id: + description: tag id + type: string + updated_at: + description: updated time + type: integer + type: object + schema.GetTagSynonymsResp: + example: + synonyms: + - slug_name: slug_name + tag_id: tag_id + main_tag_slug_name: main_tag_slug_name + display_name: display_name + - slug_name: slug_name + tag_id: tag_id + main_tag_slug_name: main_tag_slug_name + display_name: display_name + member_actions: + - name: name + action: action + type: type + - name: name + action: action + type: type + properties: + member_actions: + description: MemberActions + items: + $ref: '#/components/schemas/schema.PermissionMemberAction' + type: array + synonyms: + description: synonyms + items: + $ref: '#/components/schemas/schema.TagSynonym' + type: array + type: object + schema.GetUnreviewedRevisionResp: + properties: + info: + $ref: '#/components/schemas/schema.UnreviewedRevisionInfoInfo' + type: + type: string + unreviewed_info: + $ref: '#/components/schemas/schema.GetRevisionResp' + type: object + schema.GetUserPageResp: + properties: + avatar: + description: avatar + type: string + created_at: + description: create time + type: integer + deleted_at: + description: delete time + type: integer + display_name: + description: display name + type: string + e_mail: + description: email + type: string + rank: + description: rank + type: integer + role_id: + description: role id + type: integer + role_name: + description: role name + type: string + status: + description: "user status(normal,suspended,deleted,inactive)" + type: string + suspended_at: + description: suspended time + type: integer + user_id: + description: user id + type: string + username: + 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: + description: answer id + type: string + content: + description: content + type: string + created_at: + description: create time + type: integer + object_id: + description: object id + type: string + object_type: + description: object type + enum: + - question + - answer + - tag + - comment + type: string + question_id: + description: question id + type: string + title: + description: title + type: string + url_title: + description: url title + type: string + vote_type: + description: vote type + type: string + type: object + schema.NotificationClearIDRequest: + properties: + id: + type: string + type: object + schema.NotificationClearRequest: + properties: + type: + description: inbox achievement + type: string + type: object + schema.OperationQuestionReq: + properties: + id: + type: string + operation: + description: "operation [pin unpin hide show]" + type: string + required: + - id + type: object + schema.PermissionMemberAction: + example: + name: name + action: action + type: type + properties: + action: + type: string + name: + type: string + type: + type: string + type: object + schema.PostRenderReq: + properties: + content: + type: string + type: object + schema.QuestionAdd: + properties: + content: + description: content + maxLength: 65535 + minLength: 6 + type: string + tags: + description: tags + items: + $ref: '#/components/schemas/schema.TagItem' + type: array + title: + description: question title + maxLength: 150 + minLength: 6 + type: string + required: + - content + - tags + - title + type: object + schema.QuestionAddByAnswer: + properties: + answer_content: + maxLength: 65535 + minLength: 6 + type: string + content: + description: content + maxLength: 65535 + minLength: 6 + type: string + tags: + description: tags + items: + $ref: '#/components/schemas/schema.TagItem' + type: array + title: + description: question title + maxLength: 150 + minLength: 6 + type: string + required: + - answer_content + - content + - 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: + description: answer information + type: string + answer_count: + type: integer + collection_count: + type: integer + created_at: + type: integer + description: + type: string + follow_count: + type: integer + id: + type: string + last_answer_id: + type: string + operated_at: + description: operator information + type: integer + operation_type: + type: string + operator: + $ref: '#/components/schemas/schema.QuestionPageRespOperator' + pin: + description: "1: unpin, 2: pin" + type: integer + show: + description: "0: show, 1: hide" + type: integer + status: + type: integer + tags: + items: + $ref: '#/components/schemas/schema.TagResp' + type: array + title: + type: string + unique_view_count: + type: integer + url_title: + type: string + view_count: + description: question statistical information + type: integer + vote_count: + type: integer + type: object + schema.QuestionPageRespOperator: + properties: + display_name: + type: string + id: + type: string + rank: + type: integer + username: + type: string + type: object + schema.QuestionUpdate: + properties: + content: + description: content + maxLength: 65535 + minLength: 6 + type: string + edit_summary: + description: edit summary + type: string + id: + description: question id + type: string + tags: + description: tags + items: + $ref: '#/components/schemas/schema.TagItem' + type: array + title: + description: question title + maxLength: 150 + minLength: 6 + type: string + required: + - content + - id + - tags + - title + type: object + schema.RemoveAnswerReq: + properties: + id: + description: answer id + type: string + required: + - id + type: object + schema.RemoveCommentReq: + properties: + comment_id: + description: comment id + type: string + required: + - comment_id + type: object + schema.RemoveQuestionReq: + properties: + id: + description: question id + type: string + required: + - id + type: object + schema.RemoveTagReq: + properties: + tag_id: + description: tag_id + type: string + required: + - tag_id + type: object + schema.ReopenQuestionReq: + properties: + question_id: + type: string + type: object + schema.ReportHandleReq: + properties: + flagged_content: + type: string + flagged_type: + type: integer + id: + type: string + required: + - flagged_type + - id + type: object + schema.RevisionAuditReq: + properties: + id: + description: object id + type: string + operation: + description: approve or reject + type: string + required: + - id + - operation + type: object + schema.SearchListResp: + example: + extra: "{}" + 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_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 + properties: + count: + type: integer + extra: + description: extra fields + type: object + list: + description: search response + items: + $ref: '#/components/schemas/schema.SearchResp' + type: array + type: object + schema.SearchObject: + 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 + answer_count: + type: integer + created_at: + type: integer + excerpt: + type: string + id: + type: string + question_id: + type: string + status: + description: Status + type: string + tags: + description: tags + items: + $ref: '#/components/schemas/schema.TagResp' + type: array + title: + type: string + user_info: + $ref: '#/components/schemas/schema.UserBasicInfo' + 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 + properties: + object: + $ref: '#/components/schemas/schema.SearchObject' + object_type: + description: object_type + type: string + type: object + schema.SiteBrandingReq: + properties: + favicon: + maxLength: 512 + type: string + logo: + maxLength: 512 + type: string + mobile_logo: + maxLength: 512 + type: string + square_icon: + maxLength: 512 + type: string + type: object + schema.SiteBrandingResp: + example: + square_icon: square_icon + favicon: favicon + mobile_logo: mobile_logo + logo: logo + properties: + favicon: + maxLength: 512 + type: string + logo: + maxLength: 512 + type: string + mobile_logo: + maxLength: 512 + type: string + square_icon: + maxLength: 512 + type: string + type: object + schema.SiteCustomCssHTMLReq: + properties: + custom_css: + maxLength: 65536 + type: string + custom_footer: + maxLength: 65536 + type: string + custom_head: + maxLength: 65536 + type: string + custom_header: + maxLength: 65536 + type: string + type: object + schema.SiteCustomCssHTMLResp: + example: + custom_footer: custom_footer + custom_head: custom_head + custom_css: custom_css + custom_header: custom_header + properties: + custom_css: + maxLength: 65536 + type: string + custom_footer: + maxLength: 65536 + type: string + custom_head: + maxLength: 65536 + type: string + custom_header: + maxLength: 65536 + type: string + type: object + schema.SiteGeneralReq: + properties: + contact_email: + maxLength: 512 + type: string + description: + maxLength: 2000 + type: string + name: + maxLength: 128 + type: string + short_description: + maxLength: 255 + type: string + site_url: + maxLength: 512 + type: string + required: + - contact_email + - name + - site_url + type: object + schema.SiteGeneralResp: + example: + short_description: short_description + site_url: site_url + name: name + description: description + contact_email: contact_email + properties: + contact_email: + maxLength: 512 + type: string + description: + maxLength: 2000 + type: string + name: + maxLength: 128 + type: string + short_description: + maxLength: 255 + type: string + site_url: + maxLength: 512 + type: string + required: + - contact_email + - name + - site_url + type: object + schema.SiteInfoResp: + example: + general: + short_description: short_description + site_url: site_url + name: name + description: description + contact_email: contact_email + site_seo: + robots: robots + permalink: 0 + branding: + square_icon: square_icon + favicon: favicon + mobile_logo: mobile_logo + logo: logo + custom_css_html: + custom_footer: custom_footer + custom_head: custom_head + custom_css: custom_css + custom_header: custom_header + theme: + theme_config: "{}" + theme_options: + - label: label + value: value + - label: label + value: value + theme: theme + interface: + default_avatar: system + language: language + time_zone: time_zone + login: + login_required: true + allow_new_registrations: true + version: version + revision: revision + properties: + branding: + $ref: '#/components/schemas/schema.SiteBrandingResp' + custom_css_html: + $ref: '#/components/schemas/schema.SiteCustomCssHTMLResp' + general: + $ref: '#/components/schemas/schema.SiteGeneralResp' + interface: + $ref: '#/components/schemas/schema.SiteInterfaceResp' + login: + $ref: '#/components/schemas/schema.SiteLoginResp' + revision: + type: string + site_seo: + $ref: '#/components/schemas/schema.SiteSeoReq' + theme: + $ref: '#/components/schemas/schema.SiteThemeResp' + version: + type: string + type: object + schema.SiteInterfaceReq: + properties: + default_avatar: + enum: + - system + - gravatar + type: string + language: + maxLength: 128 + type: string + time_zone: + 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 + time_zone: + maxLength: 128 + type: string + required: + - default_avatar + - language + - time_zone + type: object + schema.SiteLegalReq: + properties: + privacy_policy_original_text: + type: string + privacy_policy_parsed_text: + type: string + terms_of_service_original_text: + type: string + terms_of_service_parsed_text: + type: string + type: object + schema.SiteLegalResp: + example: + privacy_policy_parsed_text: privacy_policy_parsed_text + privacy_policy_original_text: privacy_policy_original_text + terms_of_service_original_text: terms_of_service_original_text + terms_of_service_parsed_text: terms_of_service_parsed_text + properties: + privacy_policy_original_text: + type: string + privacy_policy_parsed_text: + type: string + terms_of_service_original_text: + type: string + terms_of_service_parsed_text: + type: string + type: object + schema.SiteLoginReq: + properties: + allow_new_registrations: + type: boolean + login_required: + type: boolean + type: object + schema.SiteLoginResp: + example: + login_required: true + allow_new_registrations: true + properties: + allow_new_registrations: + type: boolean + login_required: + type: boolean + type: object + schema.SiteSeoReq: + example: + robots: robots + permalink: 0 + properties: + permalink: + maximum: 4 + minimum: 0 + type: integer + robots: + type: string + required: + - permalink + - robots + type: object + schema.SiteSeoResp: + example: + robots: robots + permalink: 0 + properties: + permalink: + maximum: 4 + minimum: 0 + type: integer + robots: + type: string + required: + - permalink + - robots + type: object + schema.SiteThemeReq: + properties: + theme: + maxLength: 255 + type: string + theme_config: + properties: {} + type: object + required: + - theme + type: object + schema.SiteThemeResp: + example: + theme_config: "{}" + theme_options: + - label: label + value: value + - label: label + value: value + theme: theme + properties: + theme: + type: string + theme_config: + properties: {} + type: object + theme_options: + items: + $ref: '#/components/schemas/schema.ThemeOption' + type: array + type: object + schema.SiteWriteReq: + properties: + recommend_tags: + items: + type: string + type: array + required_tag: + type: boolean + reserved_tags: + items: + type: string + type: array + type: object + schema.SiteWriteResp: + example: + reserved_tags: + - reserved_tags + - reserved_tags + required_tag: true + recommend_tags: + - recommend_tags + - recommend_tags + properties: + recommend_tags: + items: + type: string + type: array + required_tag: + type: boolean + reserved_tags: + items: + type: string + type: array + type: object + schema.TagItem: + properties: + display_name: + description: display_name + maxLength: 35 + type: string + original_text: + description: original text + type: string + slug_name: + description: slug_name + maxLength: 35 + 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 + main_tag_slug_name: + description: "if main tag slug name is not empty, this tag is synonymous\ + \ with the main tag" + type: string + recommend: + type: boolean + reserved: + type: boolean + slug_name: + type: string + type: object + schema.TagSynonym: + example: + slug_name: slug_name + tag_id: tag_id + main_tag_slug_name: main_tag_slug_name + display_name: display_name + properties: + display_name: + description: display name + type: string + main_tag_slug_name: + description: "if main tag slug name is not empty, this tag is synonymous\ + \ with the main tag" + type: string + slug_name: + description: slug name + type: string + tag_id: + description: tag id + type: string + type: object + schema.ThemeOption: + example: + label: label + value: value + properties: + label: + type: string + value: + type: string + type: object + schema.UnreviewedRevisionInfoInfo: + properties: + content: + type: string + html: + type: string + object_id: + type: string + tags: + items: + $ref: '#/components/schemas/schema.TagResp' + type: array + title: + type: string + type: object + schema.UpdateCommentReq: + properties: + comment_id: + description: comment id + type: string + original_text: + description: original comment content + maxLength: 600 + minLength: 2 + type: string + required: + - comment_id + - original_text + type: object + schema.UpdateFollowTagsReq: + properties: + slug_name_list: + description: tag slug name list + items: + type: string + type: array + type: object + schema.UpdateInfoRequest: + properties: + avatar: + $ref: '#/components/schemas/schema.AvatarInfo' + bio: + description: bio + maxLength: 4096 + type: string + display_name: + description: display_name + maxLength: 30 + type: string + location: + description: location + maxLength: 100 + type: string + username: + description: username + maxLength: 30 + type: string + website: + description: website + maxLength: 500 + type: string + required: + - display_name + type: object + schema.UpdateSMTPConfigReq: + properties: + encryption: + description: '"" SSL' + enum: + - SSL + type: string + from_email: + maxLength: 256 + type: string + from_name: + maxLength: 256 + type: string + smtp_authentication: + type: boolean + smtp_host: + maxLength: 256 + type: string + smtp_password: + maxLength: 256 + type: string + smtp_port: + maximum: 65535 + minimum: 1 + type: integer + smtp_username: + maxLength: 256 + type: string + test_email_recipient: + type: string + type: object + schema.UpdateTagReq: + properties: + display_name: + description: display_name + maxLength: 35 + type: string + edit_summary: + description: edit summary + type: string + original_text: + description: original text + type: string + slug_name: + description: slug_name + maxLength: 35 + type: string + tag_id: + description: tag_id + type: string + required: + - tag_id + type: object + schema.UpdateTagSynonymReq: + properties: + synonym_tag_list: + description: synonym tag list + items: + $ref: '#/components/schemas/schema.TagItem' + type: array + tag_id: + description: tag_id + type: string + required: + - synonym_tag_list + - tag_id + type: object + schema.UpdateUserInterfaceRequest: + properties: + language: + description: language + maxLength: 100 + type: string + required: + - language + type: object + schema.UpdateUserPasswordReq: + properties: + password: + maxLength: 32 + minLength: 8 + type: string + user_id: + type: string + required: + - password + - user_id + type: object + schema.UpdateUserRoleReq: + properties: + role_id: + description: role id + type: integer + user_id: + description: user id + type: string + required: + - role_id + - user_id + type: object + schema.UpdateUserStatusReq: + properties: + status: + enum: + - normal + - suspended + - deleted + - inactive + type: string + user_id: + type: string + required: + - status + - user_id + type: object + schema.UserBasicInfo: + example: + website: website + rank: 1 + location: location + avatar: avatar + id: id + display_name: display_name + ip_info: ip_info + status: status + username: username + properties: + avatar: + description: avatar + type: string + display_name: + description: display_name + type: string + id: + description: user_id + type: string + ip_info: + description: ip info + type: string + location: + description: location + type: string + rank: + description: rank + type: integer + status: + description: status + type: string + username: + description: name + type: string + website: + description: website + type: string + type: object + schema.UserChangeEmailSendCodeReq: + properties: + captcha_code: + maxLength: 500 + type: string + captcha_id: + maxLength: 500 + type: string + e_mail: + maxLength: 500 + type: string + required: + - e_mail + type: object + schema.UserChangeEmailVerifyReq: + properties: + code: + maxLength: 500 + type: string + required: + - code + type: object + schema.UserEmailLogin: + properties: + captcha_code: + description: captcha_code + type: string + captcha_id: + description: captcha_id + type: string + e_mail: + description: e_mail + maxLength: 500 + type: string + pass: + description: password + maxLength: 32 + minLength: 8 + type: string + required: + - e_mail + - pass + type: object + schema.UserModifyPassWordRequest: + properties: + old_pass: + description: old password + type: string + pass: + description: password + type: string + type: object + schema.UserNoticeSetRequest: + properties: + notice_switch: + type: boolean + type: object + schema.UserNoticeSetResp: + example: + notice_switch: true + properties: + notice_switch: + type: boolean + type: object + schema.UserRankingResp: + example: + users_with_the_most_reputation: + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + users_with_the_most_vote: + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + staffs: + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + properties: + staffs: + items: + $ref: '#/components/schemas/schema.UserRankingSimpleInfo' + type: array + users_with_the_most_reputation: + items: + $ref: '#/components/schemas/schema.UserRankingSimpleInfo' + type: array + users_with_the_most_vote: + items: + $ref: '#/components/schemas/schema.UserRankingSimpleInfo' + type: array + type: object + schema.UserRankingSimpleInfo: + example: + rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + properties: + avatar: + description: avatar + type: string + display_name: + description: display name + type: string + rank: + description: rank + type: integer + username: + description: username + type: string + vote_count: + description: vote + type: integer + type: object + schema.UserRePassWordRequest: + properties: + code: + description: code + maxLength: 100 + type: string + pass: + description: Password + maxLength: 32 + type: string + required: + - code + - pass + type: object + schema.UserRegisterReq: + properties: + captcha_code: + description: captcha_code + type: string + captcha_id: + description: captcha_id + type: string + e_mail: + description: email + maxLength: 500 + type: string + name: + description: name + maxLength: 30 + type: string + pass: + description: password + maxLength: 32 + minLength: 8 + type: string + required: + - e_mail + - name + - pass + type: object + schema.UserRetrievePassWordRequest: + properties: + captcha_code: + description: captcha_code + type: string + captcha_id: + description: captcha_id + type: string + e_mail: + description: e_mail + maxLength: 500 + type: string + required: + - e_mail + type: object + schema.VoteReq: + properties: + is_cancel: + description: is cancel + type: boolean + object_id: + description: id + type: string + required: + - object_id + type: object + schema.VoteResp: + example: + up_votes: 6 + down_votes: 0 + votes: 1 + vote_status: vote_status + properties: + down_votes: + type: integer + up_votes: + type: integer + vote_status: + type: string + votes: + type: integer + type: object + translator.LangOption: + example: + progress: 0 + label: label + value: value + properties: + label: + type: string + progress: + description: Translation completion percentage + type: integer + value: + type: string + type: object + _answer_admin_api_roles_get_200_response: + example: + data: + - name: name + description: description + id: 0 + - name: name + description: description + id: 0 + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + items: + $ref: '#/components/schemas/schema.GetRoleResp' + type: array + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_setting_smtp_get_200_response: + example: + data: + from_email: from_email + encryption: encryption + smtp_authentication: true + smtp_password: smtp_password + smtp_port: 0 + smtp_host: smtp_host + from_name: from_name + smtp_username: smtp_username + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.GetSMTPConfigResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_siteinfo_branding_get_200_response: + example: + data: + square_icon: square_icon + favicon: favicon + mobile_logo: mobile_logo + logo: logo + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SiteBrandingResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_siteinfo_custom_css_html_get_200_response: + example: + data: + custom_footer: custom_footer + custom_head: custom_head + custom_css: custom_css + custom_header: custom_header + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SiteCustomCssHTMLResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_siteinfo_general_get_200_response: + example: + data: + short_description: short_description + site_url: site_url + name: name + description: description + contact_email: contact_email + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SiteGeneralResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_siteinfo_interface_get_200_response: + example: + data: + default_avatar: system + language: language + time_zone: time_zone + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SiteInterfaceResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_siteinfo_legal_get_200_response: + example: + data: + privacy_policy_parsed_text: privacy_policy_parsed_text + privacy_policy_original_text: privacy_policy_original_text + terms_of_service_original_text: terms_of_service_original_text + terms_of_service_parsed_text: terms_of_service_parsed_text + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SiteLegalResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_siteinfo_login_get_200_response: + example: + data: + login_required: true + allow_new_registrations: true + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SiteLoginResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_siteinfo_seo_get_200_response: + example: + data: + robots: robots + permalink: 0 + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SiteSeoResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_siteinfo_theme_get_200_response: + example: + data: + theme_config: "{}" + theme_options: + - label: label + value: value + - label: label + value: value + theme: theme + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SiteThemeResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_siteinfo_write_get_200_response: + example: + data: + reserved_tags: + - reserved_tags + - reserved_tags + required_tag: true + recommend_tags: + - recommend_tags + - recommend_tags + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SiteWriteResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_admin_api_users_page_get_200_response_data_allOf: + properties: + records: + items: + $ref: '#/definitions/schema.GetUserPageResp' + type: array + type: object + _answer_admin_api_users_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/pager.PageModel' + - $ref: '#/components/schemas/_answer_admin_api_users_page_get_200_response_data_allOf' + type: object + _answer_admin_api_users_page_get_200_response: + example: + data: null + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/_answer_admin_api_users_page_get_200_response_data' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_activity_timeline_get_200_response: + example: + data: + object_info: + object_type: object_type + main_tag_slug_name: main_tag_slug_name + display_name: display_name + title: title + answer_id: answer_id + question_id: question_id + username: username + timeline: + - cancelled_at: 0 + object_type: object_type + activity_type: activity_type + activity_id: activity_id + cancelled: true + created_at: 6 + comment: comment + id: id + object_id: object_id + user_display_name: user_display_name + revision_id: revision_id + username: username + - cancelled_at: 0 + object_type: object_type + activity_type: activity_type + activity_id: activity_id + cancelled: true + created_at: 6 + comment: comment + id: id + object_id: object_id + user_display_name: user_display_name + revision_id: revision_id + username: username + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.GetObjectTimelineResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_collection_switch_post_200_response: + example: + data: + object_id: object_id + object_collection_count: object_collection_count + switch: true + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.CollectionSwitchResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_comment_get_200_response_data_allOf: + properties: + list: + items: + $ref: '#/definitions/schema.GetCommentResp' + type: array + type: object + _answer_api_v1_comment_get_200_response_data: + allOf: + - $ref: '#/components/schemas/pager.PageModel' + - $ref: '#/components/schemas/_answer_api_v1_comment_get_200_response_data_allOf' + type: object + _answer_api_v1_comment_get_200_response: + example: + data: null + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/_answer_api_v1_comment_get_200_response_data' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_comment_post_200_response: + example: + data: + user_avatar: user_avatar + user_status: user_status + is_vote: true + reply_username: reply_username + reply_user_id: reply_user_id + created_at: 0 + member_actions: + - name: name + action: action + type: type + - name: name + action: action + type: type + original_text: original_text + comment_id: comment_id + object_id: object_id + reply_user_display_name: reply_user_display_name + reply_comment_id: reply_comment_id + reply_user_status: reply_user_status + user_id: user_id + parsed_text: parsed_text + user_display_name: user_display_name + vote_count: 6 + username: username + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.GetCommentResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_file_post_request: + properties: + source: + description: identify the source of the file upload + enum: + - post + - avatar + - branding + type: string + file: + description: file + format: binary + type: string + required: + - file + - source + type: object + _answer_api_v1_file_post_200_response: + example: + data: data + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + type: string + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_follow_post_200_response: + example: + data: + follows: 0 + is_followed: true + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.FollowResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_personal_comment_page_get_200_response_data_allOf: + properties: + list: + items: + $ref: '#/definitions/schema.GetCommentPersonalWithPageResp' + type: array + type: object + _answer_api_v1_personal_comment_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/pager.PageModel' + - $ref: '#/components/schemas/_answer_api_v1_personal_comment_page_get_200_response_data_allOf' + type: object + _answer_api_v1_personal_comment_page_get_200_response: + example: + data: null + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/_answer_api_v1_personal_comment_page_get_200_response_data' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_personal_rank_page_get_200_response_data_allOf: + properties: + list: + items: + $ref: '#/definitions/schema.GetRankPersonalWithPageResp' + type: array + type: object + _answer_api_v1_personal_rank_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/pager.PageModel' + - $ref: '#/components/schemas/_answer_api_v1_personal_rank_page_get_200_response_data_allOf' + type: object + _answer_api_v1_personal_rank_page_get_200_response: + example: + data: null + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/_answer_api_v1_personal_rank_page_get_200_response_data' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_personal_user_info_get_200_response: + example: + data: + info: + website: website + mobile: mobile + bio: bio + created_at: 6 + avatar: avatar + answer_count: 0 + display_name: display_name + last_login_date: 5 + question_count: 5 + bio_html: bio_html + follow_count: 1 + rank: 2 + status_msg: status_msg + location: location + id: id + status: status + username: username + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.GetOtherUserInfoResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_personal_vote_page_get_200_response_data_allOf: + properties: + list: + items: + $ref: '#/definitions/schema.GetVoteWithPageResp' + type: array + type: object + _answer_api_v1_personal_vote_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/pager.PageModel' + - $ref: '#/components/schemas/_answer_api_v1_personal_vote_page_get_200_response_data_allOf' + type: object + _answer_api_v1_personal_vote_page_get_200_response: + example: + data: null + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/_answer_api_v1_personal_vote_page_get_200_response_data' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_question_page_get_200_response_data_allOf: + properties: + list: + items: + $ref: '#/definitions/schema.QuestionPageResp' + type: array + type: object + _answer_api_v1_question_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/pager.PageModel' + - $ref: '#/components/schemas/_answer_api_v1_question_page_get_200_response_data_allOf' + type: object + _answer_api_v1_question_page_get_200_response: + example: + data: null + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/_answer_api_v1_question_page_get_200_response_data' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_question_tags_get_200_response: + example: + data: + - created_at: 0 + description: description + main_tag_slug_name: main_tag_slug_name + recommend: true + member_actions: + - name: name + action: action + type: type + - name: name + action: action + type: type + original_text: original_text + display_name: display_name + question_count: 1 + updated_at: 5 + reserved: true + follow_count: 6 + parsed_text: parsed_text + slug_name: slug_name + tag_id: tag_id + excerpt: excerpt + is_follower: true + - created_at: 0 + description: description + main_tag_slug_name: main_tag_slug_name + recommend: true + member_actions: + - name: name + action: action + type: type + - name: name + action: action + type: type + original_text: original_text + display_name: display_name + question_count: 1 + updated_at: 5 + reserved: true + follow_count: 6 + parsed_text: parsed_text + slug_name: slug_name + tag_id: tag_id + excerpt: excerpt + is_follower: true + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + items: + $ref: '#/components/schemas/schema.GetTagResp' + type: array + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _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: + - reason: reason + user_info: + website: website + rank: 1 + location: location + avatar: avatar + id: id + display_name: display_name + ip_info: ip_info + status: status + username: username + use_id: use_id + id: id + create_at: 0 + title: title + object_id: object_id + content: "{}" + status: 6 + - reason: reason + user_info: + website: website + rank: 1 + location: location + avatar: avatar + id: id + display_name: display_name + ip_info: ip_info + status: status + username: username + use_id: use_id + id: id + create_at: 0 + title: title + object_id: object_id + content: "{}" + status: 6 + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + items: + $ref: '#/components/schemas/schema.GetRevisionResp' + type: array + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_revisions_unreviewed_get_200_response_data_allOf: + properties: + list: + items: + $ref: '#/definitions/schema.GetUnreviewedRevisionResp' + type: array + type: object + _answer_api_v1_revisions_unreviewed_get_200_response_data: + allOf: + - $ref: '#/components/schemas/pager.PageModel' + - $ref: '#/components/schemas/_answer_api_v1_revisions_unreviewed_get_200_response_data_allOf' + type: object + _answer_api_v1_revisions_unreviewed_get_200_response: + example: + data: null + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/_answer_api_v1_revisions_unreviewed_get_200_response_data' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_search_get_200_response: + example: + data: + extra: "{}" + 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_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 + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SearchListResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_siteinfo_get_200_response: + example: + data: + general: + short_description: short_description + site_url: site_url + name: name + description: description + contact_email: contact_email + site_seo: + robots: robots + permalink: 0 + branding: + square_icon: square_icon + favicon: favicon + mobile_logo: mobile_logo + logo: logo + custom_css_html: + custom_footer: custom_footer + custom_head: custom_head + custom_css: custom_css + custom_header: custom_header + theme: + theme_config: "{}" + theme_options: + - label: label + value: value + - label: label + value: value + theme: theme + interface: + default_avatar: system + language: language + time_zone: time_zone + login: + login_required: true + allow_new_registrations: true + version: version + revision: revision + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.SiteInfoResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_siteinfo_legal_get_200_response: + example: + data: + privacy_policy_parsed_text: privacy_policy_parsed_text + privacy_policy_original_text: privacy_policy_original_text + terms_of_service_original_text: terms_of_service_original_text + terms_of_service_parsed_text: terms_of_service_parsed_text + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.GetSiteLegalInfoResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_tag_get_200_response: + example: + data: + created_at: 0 + description: description + main_tag_slug_name: main_tag_slug_name + recommend: true + member_actions: + - name: name + action: action + type: type + - name: name + action: action + type: type + original_text: original_text + display_name: display_name + question_count: 1 + updated_at: 5 + reserved: true + follow_count: 6 + parsed_text: parsed_text + slug_name: slug_name + tag_id: tag_id + excerpt: excerpt + is_follower: true + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.GetTagResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_tag_synonyms_get_200_response: + example: + data: + synonyms: + - slug_name: slug_name + tag_id: tag_id + main_tag_slug_name: main_tag_slug_name + display_name: display_name + - slug_name: slug_name + tag_id: tag_id + main_tag_slug_name: main_tag_slug_name + display_name: display_name + member_actions: + - name: name + action: action + type: type + - name: name + action: action + type: type + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.GetTagSynonymsResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_tags_following_get_200_response: + example: + data: + - reserved: true + slug_name: slug_name + tag_id: tag_id + main_tag_slug_name: main_tag_slug_name + recommend: true + display_name: display_name + - reserved: true + slug_name: slug_name + tag_id: tag_id + main_tag_slug_name: main_tag_slug_name + recommend: true + display_name: display_name + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + items: + $ref: '#/components/schemas/schema.GetFollowingTagsResp' + type: array + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_tags_page_get_200_response_data_allOf: + properties: + list: + items: + $ref: '#/definitions/schema.GetTagPageResp' + type: array + type: object + _answer_api_v1_tags_page_get_200_response_data: + allOf: + - $ref: '#/components/schemas/pager.PageModel' + - $ref: '#/components/schemas/_answer_api_v1_tags_page_get_200_response_data_allOf' + type: object + _answer_api_v1_tags_page_get_200_response: + example: + data: null + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/_answer_api_v1_tags_page_get_200_response_data' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_user_action_record_get_200_response: + example: + data: + captcha_id: captcha_id + verify: true + captcha_img: captcha_img + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.ActionRecordResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _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 + 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 + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.GetUserResp' + 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 + 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 + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.GetUserToSetShowResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_user_notice_set_post_200_response: + example: + data: + notice_switch: true + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.UserNoticeSetResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_user_ranking_get_200_response: + example: + data: + users_with_the_most_reputation: + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + users_with_the_most_vote: + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + staffs: + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + - rank: 0 + avatar: avatar + display_name: display_name + vote_count: 6 + username: username + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.UserRankingResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _answer_api_v1_vote_down_post_200_response: + example: + data: + up_votes: 6 + down_votes: 0 + votes: 1 + vote_status: vote_status + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/schema.VoteResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _installation_config_file_check_post_200_response: + example: + data: + db_connection_success: true + db_table_exist: true + config_file_exist: true + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + $ref: '#/components/schemas/install.CheckConfigFileResp' + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + _installation_language_options_get_200_response: + example: + data: + - progress: 0 + label: label + value: value + - progress: 0 + label: label + value: value + handler.RespBody: + msg: msg + reason: reason + code: 0 + data: "{}" + properties: + data: + items: + $ref: '#/components/schemas/translator.LangOption' + type: array + handler.RespBody: + $ref: '#/components/schemas/handler.RespBody' + type: object + securitySchemes: + ApiKeyAuth: + in: header + name: Authorization + type: apiKey +x-original-swagger-version: "2.0" diff --git a/api_activity.go b/api_activity.go new file mode 100644 index 0000000..4a977c3 --- /dev/null +++ b/api_activity.go @@ -0,0 +1,656 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// ActivityApiService ActivityApi service +type ActivityApiService service + +type ApiAnswerApiV1FollowPostRequest struct { + ctx context.Context + ApiService *ActivityApiService + data *SchemaFollowReq +} + +// follow +func (r ApiAnswerApiV1FollowPostRequest) Data(data SchemaFollowReq) ApiAnswerApiV1FollowPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1FollowPostRequest) Execute() (*AnswerApiV1FollowPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1FollowPostExecute(r) +} + +/* +AnswerApiV1FollowPost follow object or cancel follow operation + +follow object or cancel follow operation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1FollowPostRequest +*/ +func (a *ActivityApiService) AnswerApiV1FollowPost(ctx context.Context) ApiAnswerApiV1FollowPostRequest { + return ApiAnswerApiV1FollowPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1FollowPost200Response +func (a *ActivityApiService) AnswerApiV1FollowPostExecute(r ApiAnswerApiV1FollowPostRequest) (*AnswerApiV1FollowPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1FollowPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1FollowPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/follow" + + 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 ApiAnswerApiV1FollowTagsPutRequest struct { + ctx context.Context + ApiService *ActivityApiService + data *SchemaUpdateFollowTagsReq +} + +// follow +func (r ApiAnswerApiV1FollowTagsPutRequest) Data(data SchemaUpdateFollowTagsReq) ApiAnswerApiV1FollowTagsPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1FollowTagsPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1FollowTagsPutExecute(r) +} + +/* +AnswerApiV1FollowTagsPut update user follow tags + +update user follow tags + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1FollowTagsPutRequest +*/ +func (a *ActivityApiService) AnswerApiV1FollowTagsPut(ctx context.Context) ApiAnswerApiV1FollowTagsPutRequest { + return ApiAnswerApiV1FollowTagsPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *ActivityApiService) AnswerApiV1FollowTagsPutExecute(r ApiAnswerApiV1FollowTagsPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1FollowTagsPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/follow/tags" + + 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 ApiAnswerApiV1PersonalVotePageGetRequest struct { + ctx context.Context + ApiService *ActivityApiService + page *int32 + pageSize *int32 +} + +// page size +func (r ApiAnswerApiV1PersonalVotePageGetRequest) Page(page int32) ApiAnswerApiV1PersonalVotePageGetRequest { + r.page = &page + return r +} + +// page size +func (r ApiAnswerApiV1PersonalVotePageGetRequest) PageSize(pageSize int32) ApiAnswerApiV1PersonalVotePageGetRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiAnswerApiV1PersonalVotePageGetRequest) Execute() (*AnswerApiV1PersonalVotePageGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1PersonalVotePageGetExecute(r) +} + +/* +AnswerApiV1PersonalVotePageGet user's votes + +user's vote + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1PersonalVotePageGetRequest +*/ +func (a *ActivityApiService) AnswerApiV1PersonalVotePageGet(ctx context.Context) ApiAnswerApiV1PersonalVotePageGetRequest { + return ApiAnswerApiV1PersonalVotePageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1PersonalVotePageGet200Response +func (a *ActivityApiService) AnswerApiV1PersonalVotePageGetExecute(r ApiAnswerApiV1PersonalVotePageGetRequest) (*AnswerApiV1PersonalVotePageGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1PersonalVotePageGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1PersonalVotePageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/personal/vote/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + } + if r.pageSize != nil { + 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 ApiAnswerApiV1VoteDownPostRequest struct { + ctx context.Context + ApiService *ActivityApiService + data *SchemaVoteReq +} + +// vote +func (r ApiAnswerApiV1VoteDownPostRequest) Data(data SchemaVoteReq) ApiAnswerApiV1VoteDownPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1VoteDownPostRequest) Execute() (*AnswerApiV1VoteDownPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1VoteDownPostExecute(r) +} + +/* +AnswerApiV1VoteDownPost vote down + +add vote + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1VoteDownPostRequest +*/ +func (a *ActivityApiService) AnswerApiV1VoteDownPost(ctx context.Context) ApiAnswerApiV1VoteDownPostRequest { + return ApiAnswerApiV1VoteDownPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1VoteDownPost200Response +func (a *ActivityApiService) AnswerApiV1VoteDownPostExecute(r ApiAnswerApiV1VoteDownPostRequest) (*AnswerApiV1VoteDownPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1VoteDownPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1VoteDownPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/vote/down" + + 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 ApiAnswerApiV1VoteUpPostRequest struct { + ctx context.Context + ApiService *ActivityApiService + data *SchemaVoteReq +} + +// vote +func (r ApiAnswerApiV1VoteUpPostRequest) Data(data SchemaVoteReq) ApiAnswerApiV1VoteUpPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1VoteUpPostRequest) Execute() (*AnswerApiV1VoteDownPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1VoteUpPostExecute(r) +} + +/* +AnswerApiV1VoteUpPost vote up + +add vote + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1VoteUpPostRequest +*/ +func (a *ActivityApiService) AnswerApiV1VoteUpPost(ctx context.Context) ApiAnswerApiV1VoteUpPostRequest { + return ApiAnswerApiV1VoteUpPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1VoteDownPost200Response +func (a *ActivityApiService) AnswerApiV1VoteUpPostExecute(r ApiAnswerApiV1VoteUpPostRequest) (*AnswerApiV1VoteDownPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1VoteDownPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1VoteUpPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/vote/up" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.data == nil { + return localVarReturnValue, nil, reportError("data is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.data + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["ApiKeyAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_admin.go b/api_admin.go new file mode 100644 index 0000000..f6a098d --- /dev/null +++ b/api_admin.go @@ -0,0 +1,4237 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// AdminApiService AdminApi service +type AdminApiService service + +type ApiAnswerAdminApiAnswerPageGetRequest struct { + ctx context.Context + ApiService *AdminApiService + page *int32 + pageSize *int32 + status *string + query *string + questionId *string +} + +// page size +func (r ApiAnswerAdminApiAnswerPageGetRequest) Page(page int32) ApiAnswerAdminApiAnswerPageGetRequest { + r.page = &page + return r +} + +// page size +func (r ApiAnswerAdminApiAnswerPageGetRequest) PageSize(pageSize int32) ApiAnswerAdminApiAnswerPageGetRequest { + r.pageSize = &pageSize + return r +} + +// user status +func (r ApiAnswerAdminApiAnswerPageGetRequest) Status(status string) ApiAnswerAdminApiAnswerPageGetRequest { + r.status = &status + return r +} + +// answer id or question title +func (r ApiAnswerAdminApiAnswerPageGetRequest) Query(query string) ApiAnswerAdminApiAnswerPageGetRequest { + r.query = &query + return r +} + +// question id +func (r ApiAnswerAdminApiAnswerPageGetRequest) QuestionId(questionId string) ApiAnswerAdminApiAnswerPageGetRequest { + r.questionId = &questionId + return r +} + +func (r ApiAnswerAdminApiAnswerPageGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiAnswerPageGetExecute(r) +} + +/* +AnswerAdminApiAnswerPageGet AdminSearchAnswerList + +Status:[available,deleted] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiAnswerPageGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiAnswerPageGet(ctx context.Context) ApiAnswerAdminApiAnswerPageGetRequest { + return ApiAnswerAdminApiAnswerPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiAnswerPageGetExecute(r ApiAnswerAdminApiAnswerPageGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiAnswerPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/answer/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + } + if r.query != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "query", r.query, "") + } + if r.questionId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "question_id", r.questionId, "") + } + // 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 ApiAnswerAdminApiAnswerStatusPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaAdminSetAnswerStatusRequest +} + +// AdminSetAnswerStatusRequest +func (r ApiAnswerAdminApiAnswerStatusPutRequest) Data(data SchemaAdminSetAnswerStatusRequest) ApiAnswerAdminApiAnswerStatusPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiAnswerStatusPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiAnswerStatusPutExecute(r) +} + +/* +AnswerAdminApiAnswerStatusPut AdminSetAnswerStatus + +Status:[available,deleted] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiAnswerStatusPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiAnswerStatusPut(ctx context.Context) ApiAnswerAdminApiAnswerStatusPutRequest { + return ApiAnswerAdminApiAnswerStatusPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiAnswerStatusPutExecute(r ApiAnswerAdminApiAnswerStatusPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiAnswerStatusPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/answer/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 ApiAnswerAdminApiDashboardGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiDashboardGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiDashboardGetExecute(r) +} + +/* +AnswerAdminApiDashboardGet DashboardInfo + +DashboardInfo + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiDashboardGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiDashboardGet(ctx context.Context) ApiAnswerAdminApiDashboardGetRequest { + return ApiAnswerAdminApiDashboardGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiDashboardGetExecute(r ApiAnswerAdminApiDashboardGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiDashboardGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/dashboard" + + 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 ApiAnswerAdminApiQuestionPageGetRequest struct { + ctx context.Context + ApiService *AdminApiService + page *int32 + pageSize *int32 + status *string + query *string +} + +// page size +func (r ApiAnswerAdminApiQuestionPageGetRequest) Page(page int32) ApiAnswerAdminApiQuestionPageGetRequest { + r.page = &page + return r +} + +// page size +func (r ApiAnswerAdminApiQuestionPageGetRequest) PageSize(pageSize int32) ApiAnswerAdminApiQuestionPageGetRequest { + r.pageSize = &pageSize + return r +} + +// user status +func (r ApiAnswerAdminApiQuestionPageGetRequest) Status(status string) ApiAnswerAdminApiQuestionPageGetRequest { + r.status = &status + return r +} + +// question id or title +func (r ApiAnswerAdminApiQuestionPageGetRequest) Query(query string) ApiAnswerAdminApiQuestionPageGetRequest { + r.query = &query + return r +} + +func (r ApiAnswerAdminApiQuestionPageGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiQuestionPageGetExecute(r) +} + +/* +AnswerAdminApiQuestionPageGet AdminSearchList + +Status:[available,closed,deleted] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiQuestionPageGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiQuestionPageGet(ctx context.Context) ApiAnswerAdminApiQuestionPageGetRequest { + return ApiAnswerAdminApiQuestionPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiQuestionPageGetExecute(r ApiAnswerAdminApiQuestionPageGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiQuestionPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/question/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + } + if r.query != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "query", r.query, "") + } + // 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 ApiAnswerAdminApiQuestionStatusPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaAdminSetQuestionStatusRequest +} + +// AdminSetQuestionStatusRequest +func (r ApiAnswerAdminApiQuestionStatusPutRequest) Data(data SchemaAdminSetQuestionStatusRequest) ApiAnswerAdminApiQuestionStatusPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiQuestionStatusPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiQuestionStatusPutExecute(r) +} + +/* +AnswerAdminApiQuestionStatusPut AdminSetQuestionStatus + +Status:[available,closed,deleted] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiQuestionStatusPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiQuestionStatusPut(ctx context.Context) ApiAnswerAdminApiQuestionStatusPutRequest { + return ApiAnswerAdminApiQuestionStatusPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiQuestionStatusPutExecute(r ApiAnswerAdminApiQuestionStatusPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiQuestionStatusPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/question/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 ApiAnswerAdminApiReportPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaReportHandleReq +} + +// flag +func (r ApiAnswerAdminApiReportPutRequest) Data(data SchemaReportHandleReq) ApiAnswerAdminApiReportPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiReportPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiReportPutExecute(r) +} + +/* +AnswerAdminApiReportPut handle flag + +handle flag + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiReportPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiReportPut(ctx context.Context) ApiAnswerAdminApiReportPutRequest { + return ApiAnswerAdminApiReportPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiReportPutExecute(r ApiAnswerAdminApiReportPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiReportPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/report/" + + 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 ApiAnswerAdminApiReportsPageGetRequest struct { + ctx context.Context + ApiService *AdminApiService + status *string + objectType *string + page *int32 + pageSize *int32 +} + +// status +func (r ApiAnswerAdminApiReportsPageGetRequest) Status(status string) ApiAnswerAdminApiReportsPageGetRequest { + r.status = &status + return r +} + +// object_type +func (r ApiAnswerAdminApiReportsPageGetRequest) ObjectType(objectType string) ApiAnswerAdminApiReportsPageGetRequest { + r.objectType = &objectType + return r +} + +// page size +func (r ApiAnswerAdminApiReportsPageGetRequest) Page(page int32) ApiAnswerAdminApiReportsPageGetRequest { + r.page = &page + return r +} + +// page size +func (r ApiAnswerAdminApiReportsPageGetRequest) PageSize(pageSize int32) ApiAnswerAdminApiReportsPageGetRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiAnswerAdminApiReportsPageGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiReportsPageGetExecute(r) +} + +/* +AnswerAdminApiReportsPageGet list report page + +list report records + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiReportsPageGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiReportsPageGet(ctx context.Context) ApiAnswerAdminApiReportsPageGetRequest { + return ApiAnswerAdminApiReportsPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiReportsPageGetExecute(r ApiAnswerAdminApiReportsPageGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiReportsPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/reports/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.status == nil { + return localVarReturnValue, nil, reportError("status is required and must be specified") + } + if r.objectType == nil { + return localVarReturnValue, nil, reportError("objectType is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + } + if r.pageSize != nil { + 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 ApiAnswerAdminApiRolesGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiRolesGetRequest) Execute() (*AnswerAdminApiRolesGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiRolesGetExecute(r) +} + +/* +AnswerAdminApiRolesGet get role list + +get role list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiRolesGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiRolesGet(ctx context.Context) ApiAnswerAdminApiRolesGetRequest { + return ApiAnswerAdminApiRolesGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiRolesGet200Response +func (a *AdminApiService) AnswerAdminApiRolesGetExecute(r ApiAnswerAdminApiRolesGetRequest) (*AnswerAdminApiRolesGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiRolesGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiRolesGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/roles" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerAdminApiSettingSmtpGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSettingSmtpGetRequest) Execute() (*AnswerAdminApiSettingSmtpGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSettingSmtpGetExecute(r) +} + +/* +AnswerAdminApiSettingSmtpGet GetSMTPConfig get smtp config + +GetSMTPConfig get smtp config + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSettingSmtpGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiSettingSmtpGet(ctx context.Context) ApiAnswerAdminApiSettingSmtpGetRequest { + return ApiAnswerAdminApiSettingSmtpGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSettingSmtpGet200Response +func (a *AdminApiService) AnswerAdminApiSettingSmtpGetExecute(r ApiAnswerAdminApiSettingSmtpGetRequest) (*AnswerAdminApiSettingSmtpGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSettingSmtpGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSettingSmtpGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/setting/smtp" + + 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 ApiAnswerAdminApiSettingSmtpPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaUpdateSMTPConfigReq +} + +// smtp config +func (r ApiAnswerAdminApiSettingSmtpPutRequest) Data(data SchemaUpdateSMTPConfigReq) ApiAnswerAdminApiSettingSmtpPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSettingSmtpPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSettingSmtpPutExecute(r) +} + +/* +AnswerAdminApiSettingSmtpPut update smtp config + +update smtp config + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSettingSmtpPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiSettingSmtpPut(ctx context.Context) ApiAnswerAdminApiSettingSmtpPutRequest { + return ApiAnswerAdminApiSettingSmtpPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSettingSmtpPutExecute(r ApiAnswerAdminApiSettingSmtpPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSettingSmtpPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/setting/smtp" + + 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 ApiAnswerAdminApiSiteinfoBrandingGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSiteinfoBrandingGetRequest) Execute() (*AnswerAdminApiSiteinfoBrandingGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoBrandingGetExecute(r) +} + +/* +AnswerAdminApiSiteinfoBrandingGet get site interface + +get site interface + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoBrandingGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingGet(ctx context.Context) ApiAnswerAdminApiSiteinfoBrandingGetRequest { + return ApiAnswerAdminApiSiteinfoBrandingGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSiteinfoBrandingGet200Response +func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingGetExecute(r ApiAnswerAdminApiSiteinfoBrandingGetRequest) (*AnswerAdminApiSiteinfoBrandingGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSiteinfoBrandingGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoBrandingGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/branding" + + 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 ApiAnswerAdminApiSiteinfoBrandingPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSiteBrandingReq +} + +// branding info +func (r ApiAnswerAdminApiSiteinfoBrandingPutRequest) Data(data SchemaSiteBrandingReq) ApiAnswerAdminApiSiteinfoBrandingPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSiteinfoBrandingPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoBrandingPutExecute(r) +} + +/* +AnswerAdminApiSiteinfoBrandingPut update site info branding + +update site info branding + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoBrandingPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingPut(ctx context.Context) ApiAnswerAdminApiSiteinfoBrandingPutRequest { + return ApiAnswerAdminApiSiteinfoBrandingPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSiteinfoBrandingPutExecute(r ApiAnswerAdminApiSiteinfoBrandingPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoBrandingPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/branding" + + 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 ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest) Execute() (*AnswerAdminApiSiteinfoCustomCssHtmlGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoCustomCssHtmlGetExecute(r) +} + +/* +AnswerAdminApiSiteinfoCustomCssHtmlGet get site info custom html css config + +get site info custom html css config + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlGet(ctx context.Context) ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest { + return ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSiteinfoCustomCssHtmlGet200Response +func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlGetExecute(r ApiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest) (*AnswerAdminApiSiteinfoCustomCssHtmlGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoCustomCssHtmlGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/custom-css-html" + + 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 ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSiteCustomCssHTMLReq +} + +// login info +func (r ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest) Data(data SchemaSiteCustomCssHTMLReq) ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoCustomCssHtmlPutExecute(r) +} + +/* +AnswerAdminApiSiteinfoCustomCssHtmlPut update site custom css html config + +update site custom css html config + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlPut(ctx context.Context) ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest { + return ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSiteinfoCustomCssHtmlPutExecute(r ApiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoCustomCssHtmlPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/custom-css-html" + + 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 ApiAnswerAdminApiSiteinfoGeneralGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSiteinfoGeneralGetRequest) Execute() (*AnswerAdminApiSiteinfoGeneralGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoGeneralGetExecute(r) +} + +/* +AnswerAdminApiSiteinfoGeneralGet get site general information + +get site general information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoGeneralGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralGet(ctx context.Context) ApiAnswerAdminApiSiteinfoGeneralGetRequest { + return ApiAnswerAdminApiSiteinfoGeneralGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSiteinfoGeneralGet200Response +func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralGetExecute(r ApiAnswerAdminApiSiteinfoGeneralGetRequest) (*AnswerAdminApiSiteinfoGeneralGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSiteinfoGeneralGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoGeneralGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/general" + + 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 ApiAnswerAdminApiSiteinfoGeneralPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSiteGeneralReq +} + +// general +func (r ApiAnswerAdminApiSiteinfoGeneralPutRequest) Data(data SchemaSiteGeneralReq) ApiAnswerAdminApiSiteinfoGeneralPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSiteinfoGeneralPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoGeneralPutExecute(r) +} + +/* +AnswerAdminApiSiteinfoGeneralPut update site general information + +update site general information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoGeneralPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralPut(ctx context.Context) ApiAnswerAdminApiSiteinfoGeneralPutRequest { + return ApiAnswerAdminApiSiteinfoGeneralPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSiteinfoGeneralPutExecute(r ApiAnswerAdminApiSiteinfoGeneralPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoGeneralPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/general" + + 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 ApiAnswerAdminApiSiteinfoInterfaceGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSiteinfoInterfaceGetRequest) Execute() (*AnswerAdminApiSiteinfoInterfaceGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoInterfaceGetExecute(r) +} + +/* +AnswerAdminApiSiteinfoInterfaceGet get site interface + +get site interface + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoInterfaceGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoInterfaceGet(ctx context.Context) ApiAnswerAdminApiSiteinfoInterfaceGetRequest { + return ApiAnswerAdminApiSiteinfoInterfaceGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSiteinfoInterfaceGet200Response +func (a *AdminApiService) AnswerAdminApiSiteinfoInterfaceGetExecute(r ApiAnswerAdminApiSiteinfoInterfaceGetRequest) (*AnswerAdminApiSiteinfoInterfaceGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSiteinfoInterfaceGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoInterfaceGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/interface" + + 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 ApiAnswerAdminApiSiteinfoInterfacePutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSiteInterfaceReq +} + +// general +func (r ApiAnswerAdminApiSiteinfoInterfacePutRequest) Data(data SchemaSiteInterfaceReq) ApiAnswerAdminApiSiteinfoInterfacePutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSiteinfoInterfacePutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoInterfacePutExecute(r) +} + +/* +AnswerAdminApiSiteinfoInterfacePut update site info interface + +update site info interface + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoInterfacePutRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoInterfacePut(ctx context.Context) ApiAnswerAdminApiSiteinfoInterfacePutRequest { + return ApiAnswerAdminApiSiteinfoInterfacePutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSiteinfoInterfacePutExecute(r ApiAnswerAdminApiSiteinfoInterfacePutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoInterfacePut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/interface" + + 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 ApiAnswerAdminApiSiteinfoLegalGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSiteinfoLegalGetRequest) Execute() (*AnswerAdminApiSiteinfoLegalGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoLegalGetExecute(r) +} + +/* +AnswerAdminApiSiteinfoLegalGet Set the legal information for the site + +Set the legal information for the site + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoLegalGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoLegalGet(ctx context.Context) ApiAnswerAdminApiSiteinfoLegalGetRequest { + return ApiAnswerAdminApiSiteinfoLegalGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSiteinfoLegalGet200Response +func (a *AdminApiService) AnswerAdminApiSiteinfoLegalGetExecute(r ApiAnswerAdminApiSiteinfoLegalGetRequest) (*AnswerAdminApiSiteinfoLegalGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSiteinfoLegalGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoLegalGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/legal" + + 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 ApiAnswerAdminApiSiteinfoLegalPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSiteLegalReq +} + +// write info +func (r ApiAnswerAdminApiSiteinfoLegalPutRequest) Data(data SchemaSiteLegalReq) ApiAnswerAdminApiSiteinfoLegalPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSiteinfoLegalPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoLegalPutExecute(r) +} + +/* +AnswerAdminApiSiteinfoLegalPut update site legal info + +update site legal info + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoLegalPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoLegalPut(ctx context.Context) ApiAnswerAdminApiSiteinfoLegalPutRequest { + return ApiAnswerAdminApiSiteinfoLegalPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSiteinfoLegalPutExecute(r ApiAnswerAdminApiSiteinfoLegalPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoLegalPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/legal" + + 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 ApiAnswerAdminApiSiteinfoLoginGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSiteinfoLoginGetRequest) Execute() (*AnswerAdminApiSiteinfoLoginGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoLoginGetExecute(r) +} + +/* +AnswerAdminApiSiteinfoLoginGet get site info login config + +get site info login config + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoLoginGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoLoginGet(ctx context.Context) ApiAnswerAdminApiSiteinfoLoginGetRequest { + return ApiAnswerAdminApiSiteinfoLoginGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSiteinfoLoginGet200Response +func (a *AdminApiService) AnswerAdminApiSiteinfoLoginGetExecute(r ApiAnswerAdminApiSiteinfoLoginGetRequest) (*AnswerAdminApiSiteinfoLoginGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSiteinfoLoginGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoLoginGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/login" + + 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 ApiAnswerAdminApiSiteinfoLoginPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSiteLoginReq +} + +// login info +func (r ApiAnswerAdminApiSiteinfoLoginPutRequest) Data(data SchemaSiteLoginReq) ApiAnswerAdminApiSiteinfoLoginPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSiteinfoLoginPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoLoginPutExecute(r) +} + +/* +AnswerAdminApiSiteinfoLoginPut update site login + +update site login + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoLoginPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoLoginPut(ctx context.Context) ApiAnswerAdminApiSiteinfoLoginPutRequest { + return ApiAnswerAdminApiSiteinfoLoginPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSiteinfoLoginPutExecute(r ApiAnswerAdminApiSiteinfoLoginPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoLoginPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/login" + + 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 ApiAnswerAdminApiSiteinfoSeoGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSiteinfoSeoGetRequest) Execute() (*AnswerAdminApiSiteinfoSeoGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoSeoGetExecute(r) +} + +/* +AnswerAdminApiSiteinfoSeoGet get site seo information + +get site seo information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoSeoGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoSeoGet(ctx context.Context) ApiAnswerAdminApiSiteinfoSeoGetRequest { + return ApiAnswerAdminApiSiteinfoSeoGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSiteinfoSeoGet200Response +func (a *AdminApiService) AnswerAdminApiSiteinfoSeoGetExecute(r ApiAnswerAdminApiSiteinfoSeoGetRequest) (*AnswerAdminApiSiteinfoSeoGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSiteinfoSeoGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoSeoGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/seo" + + 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 ApiAnswerAdminApiSiteinfoSeoPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSiteSeoReq +} + +// seo +func (r ApiAnswerAdminApiSiteinfoSeoPutRequest) Data(data SchemaSiteSeoReq) ApiAnswerAdminApiSiteinfoSeoPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSiteinfoSeoPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoSeoPutExecute(r) +} + +/* +AnswerAdminApiSiteinfoSeoPut update site seo information + +update site seo information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoSeoPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoSeoPut(ctx context.Context) ApiAnswerAdminApiSiteinfoSeoPutRequest { + return ApiAnswerAdminApiSiteinfoSeoPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSiteinfoSeoPutExecute(r ApiAnswerAdminApiSiteinfoSeoPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoSeoPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/seo" + + 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 ApiAnswerAdminApiSiteinfoThemeGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiSiteinfoThemeGetRequest) Execute() (*AnswerAdminApiSiteinfoThemeGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoThemeGetExecute(r) +} + +/* +AnswerAdminApiSiteinfoThemeGet get site info theme config + +get site info theme config + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoThemeGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoThemeGet(ctx context.Context) ApiAnswerAdminApiSiteinfoThemeGetRequest { + return ApiAnswerAdminApiSiteinfoThemeGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSiteinfoThemeGet200Response +func (a *AdminApiService) AnswerAdminApiSiteinfoThemeGetExecute(r ApiAnswerAdminApiSiteinfoThemeGetRequest) (*AnswerAdminApiSiteinfoThemeGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSiteinfoThemeGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoThemeGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/theme" + + 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 ApiAnswerAdminApiSiteinfoThemePutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSiteThemeReq +} + +// login info +func (r ApiAnswerAdminApiSiteinfoThemePutRequest) Data(data SchemaSiteThemeReq) ApiAnswerAdminApiSiteinfoThemePutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSiteinfoThemePutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoThemePutExecute(r) +} + +/* +AnswerAdminApiSiteinfoThemePut update site custom css html config + +update site custom css html config + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoThemePutRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoThemePut(ctx context.Context) ApiAnswerAdminApiSiteinfoThemePutRequest { + return ApiAnswerAdminApiSiteinfoThemePutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSiteinfoThemePutExecute(r ApiAnswerAdminApiSiteinfoThemePutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoThemePut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/theme" + + 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 +} + +func (r ApiAnswerAdminApiSiteinfoWriteGetRequest) Execute() (*AnswerAdminApiSiteinfoWriteGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoWriteGetExecute(r) +} + +/* +AnswerAdminApiSiteinfoWriteGet get site interface + +get site interface + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoWriteGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoWriteGet(ctx context.Context) ApiAnswerAdminApiSiteinfoWriteGetRequest { + return ApiAnswerAdminApiSiteinfoWriteGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiSiteinfoWriteGet200Response +func (a *AdminApiService) AnswerAdminApiSiteinfoWriteGetExecute(r ApiAnswerAdminApiSiteinfoWriteGetRequest) (*AnswerAdminApiSiteinfoWriteGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiSiteinfoWriteGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoWriteGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/write" + + 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 ApiAnswerAdminApiSiteinfoWritePutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaSiteWriteReq +} + +// write info +func (r ApiAnswerAdminApiSiteinfoWritePutRequest) Data(data SchemaSiteWriteReq) ApiAnswerAdminApiSiteinfoWritePutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiSiteinfoWritePutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiSiteinfoWritePutExecute(r) +} + +/* +AnswerAdminApiSiteinfoWritePut update site write info + +update site write info + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiSiteinfoWritePutRequest +*/ +func (a *AdminApiService) AnswerAdminApiSiteinfoWritePut(ctx context.Context) ApiAnswerAdminApiSiteinfoWritePutRequest { + return ApiAnswerAdminApiSiteinfoWritePutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiSiteinfoWritePutExecute(r ApiAnswerAdminApiSiteinfoWritePutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiSiteinfoWritePut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/siteinfo/write" + + 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 ApiAnswerAdminApiThemeOptionsGetRequest struct { + ctx context.Context + ApiService *AdminApiService +} + +func (r ApiAnswerAdminApiThemeOptionsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiThemeOptionsGetExecute(r) +} + +/* +AnswerAdminApiThemeOptionsGet Get theme options + +Get theme options + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiThemeOptionsGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiThemeOptionsGet(ctx context.Context) ApiAnswerAdminApiThemeOptionsGetRequest { + return ApiAnswerAdminApiThemeOptionsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiThemeOptionsGetExecute(r ApiAnswerAdminApiThemeOptionsGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiThemeOptionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/theme/options" + + 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 ApiAnswerAdminApiUserPasswordPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaUpdateUserPasswordReq +} + +// user +func (r ApiAnswerAdminApiUserPasswordPutRequest) Data(data SchemaUpdateUserPasswordReq) ApiAnswerAdminApiUserPasswordPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiUserPasswordPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiUserPasswordPutExecute(r) +} + +/* +AnswerAdminApiUserPasswordPut update user password + +update user password + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiUserPasswordPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiUserPasswordPut(ctx context.Context) ApiAnswerAdminApiUserPasswordPutRequest { + return ApiAnswerAdminApiUserPasswordPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiUserPasswordPutExecute(r ApiAnswerAdminApiUserPasswordPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUserPasswordPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/user/password" + + 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 ApiAnswerAdminApiUserPostRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaAddUserReq +} + +// user +func (r ApiAnswerAdminApiUserPostRequest) Data(data SchemaAddUserReq) ApiAnswerAdminApiUserPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiUserPostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiUserPostExecute(r) +} + +/* +AnswerAdminApiUserPost add user + +add user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiUserPostRequest +*/ +func (a *AdminApiService) AnswerAdminApiUserPost(ctx context.Context) ApiAnswerAdminApiUserPostRequest { + return ApiAnswerAdminApiUserPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiUserPostExecute(r ApiAnswerAdminApiUserPostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUserPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/user" + + 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 ApiAnswerAdminApiUserRolePutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaUpdateUserRoleReq +} + +// user +func (r ApiAnswerAdminApiUserRolePutRequest) Data(data SchemaUpdateUserRoleReq) ApiAnswerAdminApiUserRolePutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiUserRolePutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiUserRolePutExecute(r) +} + +/* +AnswerAdminApiUserRolePut update user role + +update user role + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiUserRolePutRequest +*/ +func (a *AdminApiService) AnswerAdminApiUserRolePut(ctx context.Context) ApiAnswerAdminApiUserRolePutRequest { + return ApiAnswerAdminApiUserRolePutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiUserRolePutExecute(r ApiAnswerAdminApiUserRolePutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUserRolePut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/user/role" + + 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 ApiAnswerAdminApiUserStatusPutRequest struct { + ctx context.Context + ApiService *AdminApiService + data *SchemaUpdateUserStatusReq +} + +// user +func (r ApiAnswerAdminApiUserStatusPutRequest) Data(data SchemaUpdateUserStatusReq) ApiAnswerAdminApiUserStatusPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerAdminApiUserStatusPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiUserStatusPutExecute(r) +} + +/* +AnswerAdminApiUserStatusPut update user + +update user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiUserStatusPutRequest +*/ +func (a *AdminApiService) AnswerAdminApiUserStatusPut(ctx context.Context) ApiAnswerAdminApiUserStatusPutRequest { + return ApiAnswerAdminApiUserStatusPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *AdminApiService) AnswerAdminApiUserStatusPutExecute(r ApiAnswerAdminApiUserStatusPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUserStatusPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/user/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 ApiAnswerAdminApiUsersPageGetRequest struct { + ctx context.Context + ApiService *AdminApiService + page *int32 + pageSize *int32 + query *string + staff *bool + status *string +} + +// page size +func (r ApiAnswerAdminApiUsersPageGetRequest) Page(page int32) ApiAnswerAdminApiUsersPageGetRequest { + r.page = &page + return r +} + +// page size +func (r ApiAnswerAdminApiUsersPageGetRequest) PageSize(pageSize int32) ApiAnswerAdminApiUsersPageGetRequest { + r.pageSize = &pageSize + return r +} + +// search query: email, username or id:[id] +func (r ApiAnswerAdminApiUsersPageGetRequest) Query(query string) ApiAnswerAdminApiUsersPageGetRequest { + r.query = &query + return r +} + +// staff user +func (r ApiAnswerAdminApiUsersPageGetRequest) Staff(staff bool) ApiAnswerAdminApiUsersPageGetRequest { + r.staff = &staff + return r +} + +// user status +func (r ApiAnswerAdminApiUsersPageGetRequest) Status(status string) ApiAnswerAdminApiUsersPageGetRequest { + r.status = &status + return r +} + +func (r ApiAnswerAdminApiUsersPageGetRequest) Execute() (*AnswerAdminApiUsersPageGet200Response, *http.Response, error) { + return r.ApiService.AnswerAdminApiUsersPageGetExecute(r) +} + +/* +AnswerAdminApiUsersPageGet get user page + +get user page + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiUsersPageGetRequest +*/ +func (a *AdminApiService) AnswerAdminApiUsersPageGet(ctx context.Context) ApiAnswerAdminApiUsersPageGetRequest { + return ApiAnswerAdminApiUsersPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerAdminApiUsersPageGet200Response +func (a *AdminApiService) AnswerAdminApiUsersPageGetExecute(r ApiAnswerAdminApiUsersPageGetRequest) (*AnswerAdminApiUsersPageGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerAdminApiUsersPageGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminApiService.AnswerAdminApiUsersPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/users/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + } + if r.query != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "query", r.query, "") + } + if r.staff != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "staff", r.staff, "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + } + // 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 new file mode 100644 index 0000000..8da78a3 --- /dev/null +++ b/api_api_answer.go @@ -0,0 +1,947 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// ApiAnswerApiService ApiAnswerApi service +type ApiAnswerApiService service + +type ApiAnswerApiV1AnswerAcceptancePostRequest struct { + ctx context.Context + ApiService *ApiAnswerApiService + data *SchemaAnswerAcceptedReq +} + +// AnswerAcceptedReq +func (r ApiAnswerApiV1AnswerAcceptancePostRequest) Data(data SchemaAnswerAcceptedReq) ApiAnswerApiV1AnswerAcceptancePostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1AnswerAcceptancePostRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1AnswerAcceptancePostExecute(r) +} + +/* +AnswerApiV1AnswerAcceptancePost Accepted + +Accepted + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1AnswerAcceptancePostRequest +*/ +func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePost(ctx context.Context) ApiAnswerApiV1AnswerAcceptancePostRequest { + return ApiAnswerApiV1AnswerAcceptancePostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePostExecute(r ApiAnswerApiV1AnswerAcceptancePostRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerAcceptancePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/answer/acceptance" + + 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 ApiAnswerApiV1AnswerDeleteRequest struct { + ctx context.Context + ApiService *ApiAnswerApiService + data *SchemaRemoveAnswerReq +} + +// answer +func (r ApiAnswerApiV1AnswerDeleteRequest) Data(data SchemaRemoveAnswerReq) ApiAnswerApiV1AnswerDeleteRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1AnswerDeleteRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1AnswerDeleteExecute(r) +} + +/* +AnswerApiV1AnswerDelete delete answer + +delete answer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1AnswerDeleteRequest +*/ +func (a *ApiAnswerApiService) AnswerApiV1AnswerDelete(ctx context.Context) ApiAnswerApiV1AnswerDeleteRequest { + return ApiAnswerApiV1AnswerDeleteRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *ApiAnswerApiService) AnswerApiV1AnswerDeleteExecute(r ApiAnswerApiV1AnswerDeleteRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/answer" + + 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 ApiAnswerApiV1AnswerInfoGetRequest struct { + ctx context.Context + ApiService *ApiAnswerApiService + id *string +} + +// Answer TagID +func (r ApiAnswerApiV1AnswerInfoGetRequest) Id(id string) ApiAnswerApiV1AnswerInfoGetRequest { + r.id = &id + return r +} + +func (r ApiAnswerApiV1AnswerInfoGetRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1AnswerInfoGetExecute(r) +} + +/* +AnswerApiV1AnswerInfoGet Get Answer + +Get Answer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1AnswerInfoGetRequest +*/ +func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGet(ctx context.Context) ApiAnswerApiV1AnswerInfoGetRequest { + return ApiAnswerApiV1AnswerInfoGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGetExecute(r ApiAnswerApiV1AnswerInfoGetRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerInfoGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/answer/info" + + 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 + } + 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 ApiAnswerApiV1AnswerPageGetRequest struct { + ctx context.Context + ApiService *ApiAnswerApiService + questionId *string + order *string + page *string + pageSize *string +} + +// question_id +func (r ApiAnswerApiV1AnswerPageGetRequest) QuestionId(questionId string) ApiAnswerApiV1AnswerPageGetRequest { + r.questionId = &questionId + return r +} + +// order +func (r ApiAnswerApiV1AnswerPageGetRequest) Order(order string) ApiAnswerApiV1AnswerPageGetRequest { + r.order = &order + return r +} + +// page +func (r ApiAnswerApiV1AnswerPageGetRequest) Page(page string) ApiAnswerApiV1AnswerPageGetRequest { + r.page = &page + return r +} + +// page_size +func (r ApiAnswerApiV1AnswerPageGetRequest) PageSize(pageSize string) ApiAnswerApiV1AnswerPageGetRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiAnswerApiV1AnswerPageGetRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1AnswerPageGetExecute(r) +} + +/* +AnswerApiV1AnswerPageGet AnswerList + +AnswerList
order (default or updated) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1AnswerPageGetRequest +*/ +func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGet(ctx context.Context) ApiAnswerApiV1AnswerPageGetRequest { + return ApiAnswerApiV1AnswerPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGetExecute(r ApiAnswerApiV1AnswerPageGetRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/answer/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.questionId == nil { + return localVarReturnValue, nil, reportError("questionId 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, "question_id", r.questionId, "") + 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 ApiAnswerApiV1AnswerPostRequest struct { + ctx context.Context + ApiService *ApiAnswerApiService + data *SchemaAnswerAddReq +} + +// AnswerAddReq +func (r ApiAnswerApiV1AnswerPostRequest) Data(data SchemaAnswerAddReq) ApiAnswerApiV1AnswerPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1AnswerPostRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1AnswerPostExecute(r) +} + +/* +AnswerApiV1AnswerPost Insert Answer + +Insert Answer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1AnswerPostRequest +*/ +func (a *ApiAnswerApiService) AnswerApiV1AnswerPost(ctx context.Context) ApiAnswerApiV1AnswerPostRequest { + return ApiAnswerApiV1AnswerPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *ApiAnswerApiService) AnswerApiV1AnswerPostExecute(r ApiAnswerApiV1AnswerPostRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/answer" + + 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 ApiAnswerApiV1AnswerPutRequest struct { + ctx context.Context + ApiService *ApiAnswerApiService + data *SchemaAnswerUpdateReq +} + +// AnswerUpdateReq +func (r ApiAnswerApiV1AnswerPutRequest) Data(data SchemaAnswerUpdateReq) ApiAnswerApiV1AnswerPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1AnswerPutRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1AnswerPutExecute(r) +} + +/* +AnswerApiV1AnswerPut Update Answer + +Update Answer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1AnswerPutRequest +*/ +func (a *ApiAnswerApiService) AnswerApiV1AnswerPut(ctx context.Context) ApiAnswerApiV1AnswerPutRequest { + return ApiAnswerApiV1AnswerPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *ApiAnswerApiService) AnswerApiV1AnswerPutExecute(r ApiAnswerApiV1AnswerPutRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/answer" + + 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 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 new file mode 100644 index 0000000..8d1b443 --- /dev/null +++ b/api_collection.go @@ -0,0 +1,283 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// CollectionApiService CollectionApi service +type CollectionApiService service + +type ApiAnswerApiV1CollectionSwitchPostRequest struct { + ctx context.Context + ApiService *CollectionApiService + data *SchemaCollectionSwitchReq +} + +// collection +func (r ApiAnswerApiV1CollectionSwitchPostRequest) Data(data SchemaCollectionSwitchReq) ApiAnswerApiV1CollectionSwitchPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1CollectionSwitchPostRequest) Execute() (*AnswerApiV1CollectionSwitchPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1CollectionSwitchPostExecute(r) +} + +/* +AnswerApiV1CollectionSwitchPost add collection + +add collection + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1CollectionSwitchPostRequest +*/ +func (a *CollectionApiService) AnswerApiV1CollectionSwitchPost(ctx context.Context) ApiAnswerApiV1CollectionSwitchPostRequest { + return ApiAnswerApiV1CollectionSwitchPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1CollectionSwitchPost200Response +func (a *CollectionApiService) AnswerApiV1CollectionSwitchPostExecute(r ApiAnswerApiV1CollectionSwitchPostRequest) (*AnswerApiV1CollectionSwitchPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1CollectionSwitchPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CollectionApiService.AnswerApiV1CollectionSwitchPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/collection/switch" + + 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 ApiAnswerApiV1PersonalCollectionPageGetRequest struct { + ctx context.Context + ApiService *CollectionApiService + page *string + pagesize *string +} + +// page +func (r ApiAnswerApiV1PersonalCollectionPageGetRequest) Page(page string) ApiAnswerApiV1PersonalCollectionPageGetRequest { + r.page = &page + return r +} + +// pagesize +func (r ApiAnswerApiV1PersonalCollectionPageGetRequest) Pagesize(pagesize string) ApiAnswerApiV1PersonalCollectionPageGetRequest { + r.pagesize = &pagesize + return r +} + +func (r ApiAnswerApiV1PersonalCollectionPageGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1PersonalCollectionPageGetExecute(r) +} + +/* +AnswerApiV1PersonalCollectionPageGet UserCollectionList + +UserCollectionList + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1PersonalCollectionPageGetRequest +*/ +func (a *CollectionApiService) AnswerApiV1PersonalCollectionPageGet(ctx context.Context) ApiAnswerApiV1PersonalCollectionPageGetRequest { + return ApiAnswerApiV1PersonalCollectionPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *CollectionApiService) AnswerApiV1PersonalCollectionPageGetExecute(r ApiAnswerApiV1PersonalCollectionPageGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CollectionApiService.AnswerApiV1PersonalCollectionPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/personal/collection/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + 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, "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_comment.go b/api_comment.go new file mode 100644 index 0000000..0100960 --- /dev/null +++ b/api_comment.go @@ -0,0 +1,1026 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// CommentApiService CommentApi service +type CommentApiService service + +type ApiAnswerApiV1ActivityTimelineDetailGetRequest struct { + ctx context.Context + ApiService *CommentApiService + revisionId *string +} + +// revision id +func (r ApiAnswerApiV1ActivityTimelineDetailGetRequest) RevisionId(revisionId string) ApiAnswerApiV1ActivityTimelineDetailGetRequest { + r.revisionId = &revisionId + return r +} + +func (r ApiAnswerApiV1ActivityTimelineDetailGetRequest) Execute() (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1ActivityTimelineDetailGetExecute(r) +} + +/* +AnswerApiV1ActivityTimelineDetailGet get object timeline detail + +get object timeline detail + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1ActivityTimelineDetailGetRequest +*/ +func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGet(ctx context.Context) ApiAnswerApiV1ActivityTimelineDetailGetRequest { + return ApiAnswerApiV1ActivityTimelineDetailGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1ActivityTimelineGet200Response +func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGetExecute(r ApiAnswerApiV1ActivityTimelineDetailGetRequest) (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1ActivityTimelineGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1ActivityTimelineDetailGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/activity/timeline/detail" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.revisionId == nil { + return localVarReturnValue, nil, reportError("revisionId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "revision_id", r.revisionId, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1ActivityTimelineGetRequest struct { + ctx context.Context + ApiService *CommentApiService + objectId *string + tagSlugName *string + objectType *string + showVote *bool +} + +// object id +func (r ApiAnswerApiV1ActivityTimelineGetRequest) ObjectId(objectId string) ApiAnswerApiV1ActivityTimelineGetRequest { + r.objectId = &objectId + return r +} + +// tag slug name +func (r ApiAnswerApiV1ActivityTimelineGetRequest) TagSlugName(tagSlugName string) ApiAnswerApiV1ActivityTimelineGetRequest { + r.tagSlugName = &tagSlugName + return r +} + +// object type +func (r ApiAnswerApiV1ActivityTimelineGetRequest) ObjectType(objectType string) ApiAnswerApiV1ActivityTimelineGetRequest { + r.objectType = &objectType + return r +} + +// is show vote +func (r ApiAnswerApiV1ActivityTimelineGetRequest) ShowVote(showVote bool) ApiAnswerApiV1ActivityTimelineGetRequest { + r.showVote = &showVote + return r +} + +func (r ApiAnswerApiV1ActivityTimelineGetRequest) Execute() (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1ActivityTimelineGetExecute(r) +} + +/* +AnswerApiV1ActivityTimelineGet get object timeline + +get object timeline + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1ActivityTimelineGetRequest +*/ +func (a *CommentApiService) AnswerApiV1ActivityTimelineGet(ctx context.Context) ApiAnswerApiV1ActivityTimelineGetRequest { + return ApiAnswerApiV1ActivityTimelineGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1ActivityTimelineGet200Response +func (a *CommentApiService) AnswerApiV1ActivityTimelineGetExecute(r ApiAnswerApiV1ActivityTimelineGetRequest) (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1ActivityTimelineGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1ActivityTimelineGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/activity/timeline" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.objectId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", r.objectId, "") + } + if r.tagSlugName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_slug_name", r.tagSlugName, "") + } + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + } + if r.showVote != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "show_vote", r.showVote, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1CommentDeleteRequest struct { + ctx context.Context + ApiService *CommentApiService + data *SchemaRemoveCommentReq +} + +// comment +func (r ApiAnswerApiV1CommentDeleteRequest) Data(data SchemaRemoveCommentReq) ApiAnswerApiV1CommentDeleteRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1CommentDeleteRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1CommentDeleteExecute(r) +} + +/* +AnswerApiV1CommentDelete remove comment + +remove comment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1CommentDeleteRequest +*/ +func (a *CommentApiService) AnswerApiV1CommentDelete(ctx context.Context) ApiAnswerApiV1CommentDeleteRequest { + return ApiAnswerApiV1CommentDeleteRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *CommentApiService) AnswerApiV1CommentDeleteExecute(r ApiAnswerApiV1CommentDeleteRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/comment" + + 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 ApiAnswerApiV1CommentGetRequest struct { + ctx context.Context + ApiService *CommentApiService + id *string +} + +// id +func (r ApiAnswerApiV1CommentGetRequest) Id(id string) ApiAnswerApiV1CommentGetRequest { + r.id = &id + return r +} + +func (r ApiAnswerApiV1CommentGetRequest) Execute() (*AnswerApiV1CommentGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1CommentGetExecute(r) +} + +/* +AnswerApiV1CommentGet get comment by id + +get comment by id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1CommentGetRequest +*/ +func (a *CommentApiService) AnswerApiV1CommentGet(ctx context.Context) ApiAnswerApiV1CommentGetRequest { + return ApiAnswerApiV1CommentGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1CommentGet200Response +func (a *CommentApiService) AnswerApiV1CommentGetExecute(r ApiAnswerApiV1CommentGetRequest) (*AnswerApiV1CommentGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1CommentGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/comment" + + 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 + } + 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 ApiAnswerApiV1CommentPageGetRequest struct { + ctx context.Context + ApiService *CommentApiService + objectId *string + page *int32 + pageSize *int32 + queryCond *string +} + +// object id +func (r ApiAnswerApiV1CommentPageGetRequest) ObjectId(objectId string) ApiAnswerApiV1CommentPageGetRequest { + r.objectId = &objectId + return r +} + +// page +func (r ApiAnswerApiV1CommentPageGetRequest) Page(page int32) ApiAnswerApiV1CommentPageGetRequest { + r.page = &page + return r +} + +// page size +func (r ApiAnswerApiV1CommentPageGetRequest) PageSize(pageSize int32) ApiAnswerApiV1CommentPageGetRequest { + r.pageSize = &pageSize + return r +} + +// query condition +func (r ApiAnswerApiV1CommentPageGetRequest) QueryCond(queryCond string) ApiAnswerApiV1CommentPageGetRequest { + r.queryCond = &queryCond + return r +} + +func (r ApiAnswerApiV1CommentPageGetRequest) Execute() (*AnswerApiV1CommentGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1CommentPageGetExecute(r) +} + +/* +AnswerApiV1CommentPageGet get comment page + +get comment page + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1CommentPageGetRequest +*/ +func (a *CommentApiService) AnswerApiV1CommentPageGet(ctx context.Context) ApiAnswerApiV1CommentPageGetRequest { + return ApiAnswerApiV1CommentPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1CommentGet200Response +func (a *CommentApiService) AnswerApiV1CommentPageGetExecute(r ApiAnswerApiV1CommentPageGetRequest) (*AnswerApiV1CommentGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1CommentGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/comment/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.objectId == nil { + return localVarReturnValue, nil, reportError("objectId 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, "") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", r.objectId, "") + if r.queryCond != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "query_cond", r.queryCond, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1CommentPostRequest struct { + ctx context.Context + ApiService *CommentApiService + data *SchemaAddCommentReq +} + +// comment +func (r ApiAnswerApiV1CommentPostRequest) Data(data SchemaAddCommentReq) ApiAnswerApiV1CommentPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1CommentPostRequest) Execute() (*AnswerApiV1CommentPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1CommentPostExecute(r) +} + +/* +AnswerApiV1CommentPost add comment + +add comment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1CommentPostRequest +*/ +func (a *CommentApiService) AnswerApiV1CommentPost(ctx context.Context) ApiAnswerApiV1CommentPostRequest { + return ApiAnswerApiV1CommentPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1CommentPost200Response +func (a *CommentApiService) AnswerApiV1CommentPostExecute(r ApiAnswerApiV1CommentPostRequest) (*AnswerApiV1CommentPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1CommentPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/comment" + + 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 ApiAnswerApiV1CommentPutRequest struct { + ctx context.Context + ApiService *CommentApiService + data *SchemaUpdateCommentReq +} + +// comment +func (r ApiAnswerApiV1CommentPutRequest) Data(data SchemaUpdateCommentReq) ApiAnswerApiV1CommentPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1CommentPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1CommentPutExecute(r) +} + +/* +AnswerApiV1CommentPut update comment + +update comment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1CommentPutRequest +*/ +func (a *CommentApiService) AnswerApiV1CommentPut(ctx context.Context) ApiAnswerApiV1CommentPutRequest { + return ApiAnswerApiV1CommentPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *CommentApiService) AnswerApiV1CommentPutExecute(r ApiAnswerApiV1CommentPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/comment" + + 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 ApiAnswerApiV1PersonalCommentPageGetRequest struct { + ctx context.Context + ApiService *CommentApiService + page *int32 + pageSize *int32 + username *string +} + +// page +func (r ApiAnswerApiV1PersonalCommentPageGetRequest) Page(page int32) ApiAnswerApiV1PersonalCommentPageGetRequest { + r.page = &page + return r +} + +// page size +func (r ApiAnswerApiV1PersonalCommentPageGetRequest) PageSize(pageSize int32) ApiAnswerApiV1PersonalCommentPageGetRequest { + r.pageSize = &pageSize + return r +} + +// username +func (r ApiAnswerApiV1PersonalCommentPageGetRequest) Username(username string) ApiAnswerApiV1PersonalCommentPageGetRequest { + r.username = &username + return r +} + +func (r ApiAnswerApiV1PersonalCommentPageGetRequest) Execute() (*AnswerApiV1PersonalCommentPageGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1PersonalCommentPageGetExecute(r) +} + +/* +AnswerApiV1PersonalCommentPageGet user personal comment list + +user personal comment list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1PersonalCommentPageGetRequest +*/ +func (a *CommentApiService) AnswerApiV1PersonalCommentPageGet(ctx context.Context) ApiAnswerApiV1PersonalCommentPageGetRequest { + return ApiAnswerApiV1PersonalCommentPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1PersonalCommentPageGet200Response +func (a *CommentApiService) AnswerApiV1PersonalCommentPageGetExecute(r ApiAnswerApiV1PersonalCommentPageGetRequest) (*AnswerApiV1PersonalCommentPageGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1PersonalCommentPageGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1PersonalCommentPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/personal/comment/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + } + if r.username != nil { + 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 + } + 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_installation.go b/api_installation.go new file mode 100644 index 0000000..d973241 --- /dev/null +++ b/api_installation.go @@ -0,0 +1,543 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// InstallationApiService InstallationApi service +type InstallationApiService service + +type ApiInstallationBaseInfoPostRequest struct { + ctx context.Context + ApiService *InstallationApiService + data *InstallInitBaseInfoReq +} + +// InitBaseInfoReq +func (r ApiInstallationBaseInfoPostRequest) Data(data InstallInitBaseInfoReq) ApiInstallationBaseInfoPostRequest { + r.data = &data + return r +} + +func (r ApiInstallationBaseInfoPostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.InstallationBaseInfoPostExecute(r) +} + +/* +InstallationBaseInfoPost init base info + +init base info + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInstallationBaseInfoPostRequest +*/ +func (a *InstallationApiService) InstallationBaseInfoPost(ctx context.Context) ApiInstallationBaseInfoPostRequest { + return ApiInstallationBaseInfoPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *InstallationApiService) InstallationBaseInfoPostExecute(r ApiInstallationBaseInfoPostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationBaseInfoPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/installation/base-info" + + 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 ApiInstallationConfigFileCheckPostRequest struct { + ctx context.Context + ApiService *InstallationApiService +} + +func (r ApiInstallationConfigFileCheckPostRequest) Execute() (*InstallationConfigFileCheckPost200Response, *http.Response, error) { + return r.ApiService.InstallationConfigFileCheckPostExecute(r) +} + +/* +InstallationConfigFileCheckPost check config file if exist when installation + +check config file if exist when installation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInstallationConfigFileCheckPostRequest +*/ +func (a *InstallationApiService) InstallationConfigFileCheckPost(ctx context.Context) ApiInstallationConfigFileCheckPostRequest { + return ApiInstallationConfigFileCheckPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InstallationConfigFileCheckPost200Response +func (a *InstallationApiService) InstallationConfigFileCheckPostExecute(r ApiInstallationConfigFileCheckPostRequest) (*InstallationConfigFileCheckPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InstallationConfigFileCheckPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationConfigFileCheckPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/installation/config-file/check" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInstallationDbCheckPostRequest struct { + ctx context.Context + ApiService *InstallationApiService + data *InstallCheckDatabaseReq +} + +// CheckDatabaseReq +func (r ApiInstallationDbCheckPostRequest) Data(data InstallCheckDatabaseReq) ApiInstallationDbCheckPostRequest { + r.data = &data + return r +} + +func (r ApiInstallationDbCheckPostRequest) Execute() (*InstallationConfigFileCheckPost200Response, *http.Response, error) { + return r.ApiService.InstallationDbCheckPostExecute(r) +} + +/* +InstallationDbCheckPost check database if exist when installation + +check database if exist when installation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInstallationDbCheckPostRequest +*/ +func (a *InstallationApiService) InstallationDbCheckPost(ctx context.Context) ApiInstallationDbCheckPostRequest { + return ApiInstallationDbCheckPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InstallationConfigFileCheckPost200Response +func (a *InstallationApiService) InstallationDbCheckPostExecute(r ApiInstallationDbCheckPostRequest) (*InstallationConfigFileCheckPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InstallationConfigFileCheckPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationDbCheckPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/installation/db/check" + + 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 ApiInstallationInitPostRequest struct { + ctx context.Context + ApiService *InstallationApiService + data *InstallCheckDatabaseReq +} + +// CheckDatabaseReq +func (r ApiInstallationInitPostRequest) Data(data InstallCheckDatabaseReq) ApiInstallationInitPostRequest { + r.data = &data + return r +} + +func (r ApiInstallationInitPostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.InstallationInitPostExecute(r) +} + +/* +InstallationInitPost init environment + +init environment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInstallationInitPostRequest +*/ +func (a *InstallationApiService) InstallationInitPost(ctx context.Context) ApiInstallationInitPostRequest { + return ApiInstallationInitPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *InstallationApiService) InstallationInitPostExecute(r ApiInstallationInitPostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationInitPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/installation/init" + + 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 ApiRootGetRequest struct { + ctx context.Context + ApiService *InstallationApiService +} + +func (r ApiRootGetRequest) Execute() (*http.Response, error) { + return r.ApiService.RootGetExecute(r) +} + +/* +RootGet if config file not exist try to redirect to install page + +if config file not exist try to redirect to install page + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRootGetRequest +*/ +func (a *InstallationApiService) RootGet(ctx context.Context) ApiRootGetRequest { + return ApiRootGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *InstallationApiService) RootGetExecute(r ApiRootGetRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.RootGet") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/" + + 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{} + + // 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 nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_lang.go b/api_lang.go new file mode 100644 index 0000000..61df907 --- /dev/null +++ b/api_lang.go @@ -0,0 +1,430 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// LangApiService LangApi service +type LangApiService service + +type ApiAnswerAdminApiLanguageOptionsGetRequest struct { + ctx context.Context + ApiService *LangApiService +} + +func (r ApiAnswerAdminApiLanguageOptionsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiLanguageOptionsGetExecute(r) +} + +/* +AnswerAdminApiLanguageOptionsGet Get language options + +Get language options + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiLanguageOptionsGetRequest +*/ +func (a *LangApiService) AnswerAdminApiLanguageOptionsGet(ctx context.Context) ApiAnswerAdminApiLanguageOptionsGetRequest { + return ApiAnswerAdminApiLanguageOptionsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *LangApiService) AnswerAdminApiLanguageOptionsGetExecute(r ApiAnswerAdminApiLanguageOptionsGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.AnswerAdminApiLanguageOptionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/language/options" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1LanguageConfigGetRequest struct { + ctx context.Context + ApiService *LangApiService + acceptLanguage *string +} + +// Accept-Language +func (r ApiAnswerApiV1LanguageConfigGetRequest) AcceptLanguage(acceptLanguage string) ApiAnswerApiV1LanguageConfigGetRequest { + r.acceptLanguage = &acceptLanguage + return r +} + +func (r ApiAnswerApiV1LanguageConfigGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1LanguageConfigGetExecute(r) +} + +/* +AnswerApiV1LanguageConfigGet get language config mapping + +get language config mapping + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1LanguageConfigGetRequest +*/ +func (a *LangApiService) AnswerApiV1LanguageConfigGet(ctx context.Context) ApiAnswerApiV1LanguageConfigGetRequest { + return ApiAnswerApiV1LanguageConfigGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *LangApiService) AnswerApiV1LanguageConfigGetExecute(r ApiAnswerApiV1LanguageConfigGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.AnswerApiV1LanguageConfigGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/language/config" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.acceptLanguage == nil { + return localVarReturnValue, nil, reportError("acceptLanguage 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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Accept-Language", r.acceptLanguage, "") + 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 ApiAnswerApiV1LanguageOptionsGetRequest struct { + ctx context.Context + ApiService *LangApiService +} + +func (r ApiAnswerApiV1LanguageOptionsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1LanguageOptionsGetExecute(r) +} + +/* +AnswerApiV1LanguageOptionsGet Get language options + +Get language options + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1LanguageOptionsGetRequest +*/ +func (a *LangApiService) AnswerApiV1LanguageOptionsGet(ctx context.Context) ApiAnswerApiV1LanguageOptionsGetRequest { + return ApiAnswerApiV1LanguageOptionsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *LangApiService) AnswerApiV1LanguageOptionsGetExecute(r ApiAnswerApiV1LanguageOptionsGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.AnswerApiV1LanguageOptionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/language/options" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiInstallationLanguageOptionsGetRequest struct { + ctx context.Context + ApiService *LangApiService +} + +func (r ApiInstallationLanguageOptionsGetRequest) Execute() (*InstallationLanguageOptionsGet200Response, *http.Response, error) { + return r.ApiService.InstallationLanguageOptionsGetExecute(r) +} + +/* +InstallationLanguageOptionsGet get installation language options + +get installation language options + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInstallationLanguageOptionsGetRequest +*/ +func (a *LangApiService) InstallationLanguageOptionsGet(ctx context.Context) ApiInstallationLanguageOptionsGetRequest { + return ApiInstallationLanguageOptionsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return InstallationLanguageOptionsGet200Response +func (a *LangApiService) InstallationLanguageOptionsGetExecute(r ApiInstallationLanguageOptionsGetRequest) (*InstallationLanguageOptionsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InstallationLanguageOptionsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.InstallationLanguageOptionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/installation/language/options" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_notification.go b/api_notification.go new file mode 100644 index 0000000..2b66b2c --- /dev/null +++ b/api_notification.go @@ -0,0 +1,655 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// NotificationApiService NotificationApi service +type NotificationApiService service + +type ApiAnswerApiV1NotificationPageGetRequest struct { + ctx context.Context + ApiService *NotificationApiService + type_ *string + page *int32 + pageSize *int32 +} + +// type +func (r ApiAnswerApiV1NotificationPageGetRequest) Type_(type_ string) ApiAnswerApiV1NotificationPageGetRequest { + r.type_ = &type_ + return r +} + +// page size +func (r ApiAnswerApiV1NotificationPageGetRequest) Page(page int32) ApiAnswerApiV1NotificationPageGetRequest { + r.page = &page + return r +} + +// page size +func (r ApiAnswerApiV1NotificationPageGetRequest) PageSize(pageSize int32) ApiAnswerApiV1NotificationPageGetRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiAnswerApiV1NotificationPageGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1NotificationPageGetExecute(r) +} + +/* +AnswerApiV1NotificationPageGet get notification list + +get notification list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1NotificationPageGetRequest +*/ +func (a *NotificationApiService) AnswerApiV1NotificationPageGet(ctx context.Context) ApiAnswerApiV1NotificationPageGetRequest { + return ApiAnswerApiV1NotificationPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *NotificationApiService) AnswerApiV1NotificationPageGetExecute(r ApiAnswerApiV1NotificationPageGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/notification/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.type_ == nil { + return localVarReturnValue, nil, reportError("type_ 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, "") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") + // 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 ApiAnswerApiV1NotificationReadStateAllPutRequest struct { + ctx context.Context + ApiService *NotificationApiService + data *SchemaNotificationClearRequest +} + +// NotificationClearRequest +func (r ApiAnswerApiV1NotificationReadStateAllPutRequest) Data(data SchemaNotificationClearRequest) ApiAnswerApiV1NotificationReadStateAllPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1NotificationReadStateAllPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1NotificationReadStateAllPutExecute(r) +} + +/* +AnswerApiV1NotificationReadStateAllPut ClearUnRead + +ClearUnRead + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1NotificationReadStateAllPutRequest +*/ +func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPut(ctx context.Context) ApiAnswerApiV1NotificationReadStateAllPutRequest { + return ApiAnswerApiV1NotificationReadStateAllPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPutExecute(r ApiAnswerApiV1NotificationReadStateAllPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationReadStateAllPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/notification/read/state/all" + + 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 ApiAnswerApiV1NotificationReadStatePutRequest struct { + ctx context.Context + ApiService *NotificationApiService + data *SchemaNotificationClearIDRequest +} + +// NotificationClearIDRequest +func (r ApiAnswerApiV1NotificationReadStatePutRequest) Data(data SchemaNotificationClearIDRequest) ApiAnswerApiV1NotificationReadStatePutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1NotificationReadStatePutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1NotificationReadStatePutExecute(r) +} + +/* +AnswerApiV1NotificationReadStatePut ClearUnRead + +ClearUnRead + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1NotificationReadStatePutRequest +*/ +func (a *NotificationApiService) AnswerApiV1NotificationReadStatePut(ctx context.Context) ApiAnswerApiV1NotificationReadStatePutRequest { + return ApiAnswerApiV1NotificationReadStatePutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *NotificationApiService) AnswerApiV1NotificationReadStatePutExecute(r ApiAnswerApiV1NotificationReadStatePutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationReadStatePut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/notification/read/state" + + 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 ApiAnswerApiV1NotificationStatusGetRequest struct { + ctx context.Context + ApiService *NotificationApiService +} + +func (r ApiAnswerApiV1NotificationStatusGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1NotificationStatusGetExecute(r) +} + +/* +AnswerApiV1NotificationStatusGet GetRedDot + +GetRedDot + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1NotificationStatusGetRequest +*/ +func (a *NotificationApiService) AnswerApiV1NotificationStatusGet(ctx context.Context) ApiAnswerApiV1NotificationStatusGetRequest { + return ApiAnswerApiV1NotificationStatusGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *NotificationApiService) AnswerApiV1NotificationStatusGetExecute(r ApiAnswerApiV1NotificationStatusGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationStatusGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/notification/status" + + 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 ApiAnswerApiV1NotificationStatusPutRequest struct { + ctx context.Context + ApiService *NotificationApiService + data *SchemaNotificationClearRequest +} + +// NotificationClearRequest +func (r ApiAnswerApiV1NotificationStatusPutRequest) Data(data SchemaNotificationClearRequest) ApiAnswerApiV1NotificationStatusPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1NotificationStatusPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1NotificationStatusPutExecute(r) +} + +/* +AnswerApiV1NotificationStatusPut DelRedDot + +DelRedDot + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1NotificationStatusPutRequest +*/ +func (a *NotificationApiService) AnswerApiV1NotificationStatusPut(ctx context.Context) ApiAnswerApiV1NotificationStatusPutRequest { + return ApiAnswerApiV1NotificationStatusPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *NotificationApiService) AnswerApiV1NotificationStatusPutExecute(r ApiAnswerApiV1NotificationStatusPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationStatusPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/notification/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 +} diff --git a/api_question.go b/api_question.go new file mode 100644 index 0000000..3a9917d --- /dev/null +++ b/api_question.go @@ -0,0 +1,1761 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// QuestionApiService QuestionApi service +type QuestionApiService service + +type ApiAnswerApiV1PersonalQaTopGetRequest struct { + ctx context.Context + ApiService *QuestionApiService + username *string +} + +// username +func (r ApiAnswerApiV1PersonalQaTopGetRequest) Username(username string) ApiAnswerApiV1PersonalQaTopGetRequest { + r.username = &username + return r +} + +func (r ApiAnswerApiV1PersonalQaTopGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1PersonalQaTopGetExecute(r) +} + +/* +AnswerApiV1PersonalQaTopGet UserTop + +UserTop + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1PersonalQaTopGetRequest +*/ +func (a *QuestionApiService) AnswerApiV1PersonalQaTopGet(ctx context.Context) ApiAnswerApiV1PersonalQaTopGetRequest { + return ApiAnswerApiV1PersonalQaTopGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *QuestionApiService) AnswerApiV1PersonalQaTopGetExecute(r ApiAnswerApiV1PersonalQaTopGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1PersonalQaTopGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/personal/qa/top" + + 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 ApiAnswerApiV1QuestionAnswerPostRequest struct { + ctx context.Context + ApiService *QuestionApiService + data *SchemaQuestionAddByAnswer +} + +// question +func (r ApiAnswerApiV1QuestionAnswerPostRequest) Data(data SchemaQuestionAddByAnswer) ApiAnswerApiV1QuestionAnswerPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1QuestionAnswerPostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionAnswerPostExecute(r) +} + +/* +AnswerApiV1QuestionAnswerPost add question and answer + +add question and answer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionAnswerPostRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionAnswerPost(ctx context.Context) ApiAnswerApiV1QuestionAnswerPostRequest { + return ApiAnswerApiV1QuestionAnswerPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *QuestionApiService) AnswerApiV1QuestionAnswerPostExecute(r ApiAnswerApiV1QuestionAnswerPostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionAnswerPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/answer" + + 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 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 + data *SchemaRemoveQuestionReq +} + +// question +func (r ApiAnswerApiV1QuestionDeleteRequest) Data(data SchemaRemoveQuestionReq) ApiAnswerApiV1QuestionDeleteRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1QuestionDeleteRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionDeleteExecute(r) +} + +/* +AnswerApiV1QuestionDelete delete question + +delete question + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionDeleteRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionDelete(ctx context.Context) ApiAnswerApiV1QuestionDeleteRequest { + return ApiAnswerApiV1QuestionDeleteRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *QuestionApiService) AnswerApiV1QuestionDeleteExecute(r ApiAnswerApiV1QuestionDeleteRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question" + + 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 ApiAnswerApiV1QuestionInfoGetRequest struct { + ctx context.Context + ApiService *QuestionApiService + id *string +} + +// Question TagID +func (r ApiAnswerApiV1QuestionInfoGetRequest) Id(id string) ApiAnswerApiV1QuestionInfoGetRequest { + r.id = &id + return r +} + +func (r ApiAnswerApiV1QuestionInfoGetRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionInfoGetExecute(r) +} + +/* +AnswerApiV1QuestionInfoGet get question details + +get question details + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionInfoGetRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionInfoGet(ctx context.Context) ApiAnswerApiV1QuestionInfoGetRequest { + return ApiAnswerApiV1QuestionInfoGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *QuestionApiService) AnswerApiV1QuestionInfoGetExecute(r ApiAnswerApiV1QuestionInfoGetRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionInfoGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/info" + + 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 ApiAnswerApiV1QuestionOperationPutRequest struct { + ctx context.Context + ApiService *QuestionApiService + data *SchemaOperationQuestionReq +} + +// question +func (r ApiAnswerApiV1QuestionOperationPutRequest) Data(data SchemaOperationQuestionReq) ApiAnswerApiV1QuestionOperationPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1QuestionOperationPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionOperationPutExecute(r) +} + +/* +AnswerApiV1QuestionOperationPut Operation question + +Operation question \n operation [pin unpin hide show] + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionOperationPutRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionOperationPut(ctx context.Context) ApiAnswerApiV1QuestionOperationPutRequest { + return ApiAnswerApiV1QuestionOperationPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *QuestionApiService) AnswerApiV1QuestionOperationPutExecute(r ApiAnswerApiV1QuestionOperationPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionOperationPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/operation" + + 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 ApiAnswerApiV1QuestionPageGetRequest struct { + ctx context.Context + ApiService *QuestionApiService + data *SchemaQuestionPageReq +} + +// QuestionPageReq +func (r ApiAnswerApiV1QuestionPageGetRequest) Data(data SchemaQuestionPageReq) ApiAnswerApiV1QuestionPageGetRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1QuestionPageGetRequest) Execute() (*AnswerApiV1QuestionPageGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionPageGetExecute(r) +} + +/* +AnswerApiV1QuestionPageGet get questions by page + +get questions by page + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionPageGetRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionPageGet(ctx context.Context) ApiAnswerApiV1QuestionPageGetRequest { + return ApiAnswerApiV1QuestionPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1QuestionPageGet200Response +func (a *QuestionApiService) AnswerApiV1QuestionPageGetExecute(r ApiAnswerApiV1QuestionPageGetRequest) (*AnswerApiV1QuestionPageGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1QuestionPageGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/page" + + 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 ApiAnswerApiV1QuestionPostRequest struct { + ctx context.Context + ApiService *QuestionApiService + data *SchemaQuestionAdd +} + +// question +func (r ApiAnswerApiV1QuestionPostRequest) Data(data SchemaQuestionAdd) ApiAnswerApiV1QuestionPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1QuestionPostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionPostExecute(r) +} + +/* +AnswerApiV1QuestionPost add question + +add question + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionPostRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionPost(ctx context.Context) ApiAnswerApiV1QuestionPostRequest { + return ApiAnswerApiV1QuestionPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *QuestionApiService) AnswerApiV1QuestionPostExecute(r ApiAnswerApiV1QuestionPostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question" + + 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 ApiAnswerApiV1QuestionPutRequest struct { + ctx context.Context + ApiService *QuestionApiService + data *SchemaQuestionUpdate +} + +// question +func (r ApiAnswerApiV1QuestionPutRequest) Data(data SchemaQuestionUpdate) ApiAnswerApiV1QuestionPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1QuestionPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionPutExecute(r) +} + +/* +AnswerApiV1QuestionPut update question + +update question + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionPutRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionPut(ctx context.Context) ApiAnswerApiV1QuestionPutRequest { + return ApiAnswerApiV1QuestionPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *QuestionApiService) AnswerApiV1QuestionPutExecute(r ApiAnswerApiV1QuestionPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question" + + 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 ApiAnswerApiV1QuestionReopenPutRequest struct { + ctx context.Context + ApiService *QuestionApiService + data *SchemaReopenQuestionReq +} + +// question +func (r ApiAnswerApiV1QuestionReopenPutRequest) Data(data SchemaReopenQuestionReq) ApiAnswerApiV1QuestionReopenPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1QuestionReopenPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionReopenPutExecute(r) +} + +/* +AnswerApiV1QuestionReopenPut reopen question + +reopen question + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionReopenPutRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionReopenPut(ctx context.Context) ApiAnswerApiV1QuestionReopenPutRequest { + return ApiAnswerApiV1QuestionReopenPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *QuestionApiService) AnswerApiV1QuestionReopenPutExecute(r ApiAnswerApiV1QuestionReopenPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionReopenPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/reopen" + + 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 ApiAnswerApiV1QuestionSimilarGetRequest struct { + ctx context.Context + ApiService *QuestionApiService + title *string +} + +// title +func (r ApiAnswerApiV1QuestionSimilarGetRequest) Title(title string) ApiAnswerApiV1QuestionSimilarGetRequest { + r.title = &title + return r +} + +func (r ApiAnswerApiV1QuestionSimilarGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionSimilarGetExecute(r) +} + +/* +AnswerApiV1QuestionSimilarGet add question title like + +add question title like + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionSimilarGetRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionSimilarGet(ctx context.Context) ApiAnswerApiV1QuestionSimilarGetRequest { + return ApiAnswerApiV1QuestionSimilarGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *QuestionApiService) AnswerApiV1QuestionSimilarGetExecute(r ApiAnswerApiV1QuestionSimilarGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionSimilarGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/similar" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.title == nil { + return localVarReturnValue, nil, reportError("title is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "title", r.title, "") + // 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 ApiAnswerApiV1QuestionSimilarTagGetRequest struct { + ctx context.Context + ApiService *QuestionApiService + questionId *string +} + +// question_id +func (r ApiAnswerApiV1QuestionSimilarTagGetRequest) QuestionId(questionId string) ApiAnswerApiV1QuestionSimilarTagGetRequest { + r.questionId = &questionId + return r +} + +func (r ApiAnswerApiV1QuestionSimilarTagGetRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionSimilarTagGetExecute(r) +} + +/* +AnswerApiV1QuestionSimilarTagGet Search Similar Question + +Search Similar Question + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionSimilarTagGetRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionSimilarTagGet(ctx context.Context) ApiAnswerApiV1QuestionSimilarTagGetRequest { + return ApiAnswerApiV1QuestionSimilarTagGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *QuestionApiService) AnswerApiV1QuestionSimilarTagGetExecute(r ApiAnswerApiV1QuestionSimilarTagGetRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionSimilarTagGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/similar/tag" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.questionId == nil { + return localVarReturnValue, nil, reportError("questionId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "question_id", r.questionId, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1QuestionStatusPutRequest struct { + ctx context.Context + ApiService *QuestionApiService + data *SchemaCloseQuestionReq +} + +// question +func (r ApiAnswerApiV1QuestionStatusPutRequest) Data(data SchemaCloseQuestionReq) ApiAnswerApiV1QuestionStatusPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1QuestionStatusPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionStatusPutExecute(r) +} + +/* +AnswerApiV1QuestionStatusPut Close question + +Close question + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionStatusPutRequest +*/ +func (a *QuestionApiService) AnswerApiV1QuestionStatusPut(ctx context.Context) ApiAnswerApiV1QuestionStatusPutRequest { + return ApiAnswerApiV1QuestionStatusPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *QuestionApiService) AnswerApiV1QuestionStatusPutExecute(r ApiAnswerApiV1QuestionStatusPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "QuestionApiService.AnswerApiV1QuestionStatusPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/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 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 new file mode 100644 index 0000000..bb632ec --- /dev/null +++ b/api_rank.go @@ -0,0 +1,152 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// RankApiService RankApi service +type RankApiService service + +type ApiAnswerApiV1PersonalRankPageGetRequest struct { + ctx context.Context + ApiService *RankApiService + page *int32 + pageSize *int32 + username *string +} + +// page +func (r ApiAnswerApiV1PersonalRankPageGetRequest) Page(page int32) ApiAnswerApiV1PersonalRankPageGetRequest { + r.page = &page + return r +} + +// page size +func (r ApiAnswerApiV1PersonalRankPageGetRequest) PageSize(pageSize int32) ApiAnswerApiV1PersonalRankPageGetRequest { + r.pageSize = &pageSize + return r +} + +// username +func (r ApiAnswerApiV1PersonalRankPageGetRequest) Username(username string) ApiAnswerApiV1PersonalRankPageGetRequest { + r.username = &username + return r +} + +func (r ApiAnswerApiV1PersonalRankPageGetRequest) Execute() (*AnswerApiV1PersonalRankPageGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1PersonalRankPageGetExecute(r) +} + +/* +AnswerApiV1PersonalRankPageGet user personal rank list + +user personal rank list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1PersonalRankPageGetRequest +*/ +func (a *RankApiService) AnswerApiV1PersonalRankPageGet(ctx context.Context) ApiAnswerApiV1PersonalRankPageGetRequest { + return ApiAnswerApiV1PersonalRankPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1PersonalRankPageGet200Response +func (a *RankApiService) AnswerApiV1PersonalRankPageGetExecute(r ApiAnswerApiV1PersonalRankPageGetRequest) (*AnswerApiV1PersonalRankPageGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1PersonalRankPageGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RankApiService.AnswerApiV1PersonalRankPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/personal/rank/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + } + if r.username != nil { + 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 + } + 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_reason.go b/api_reason.go new file mode 100644 index 0000000..72f7c34 --- /dev/null +++ b/api_reason.go @@ -0,0 +1,293 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// ReasonApiService ReasonApi service +type ReasonApiService service + +type ApiAnswerAdminApiReasonsGetRequest struct { + ctx context.Context + ApiService *ReasonApiService + objectType *string + action *string +} + +// object_type +func (r ApiAnswerAdminApiReasonsGetRequest) ObjectType(objectType string) ApiAnswerAdminApiReasonsGetRequest { + r.objectType = &objectType + return r +} + +// action +func (r ApiAnswerAdminApiReasonsGetRequest) Action(action string) ApiAnswerAdminApiReasonsGetRequest { + r.action = &action + return r +} + +func (r ApiAnswerAdminApiReasonsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerAdminApiReasonsGetExecute(r) +} + +/* +AnswerAdminApiReasonsGet get reasons by object type and action + +get reasons by object type and action + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerAdminApiReasonsGetRequest +*/ +func (a *ReasonApiService) AnswerAdminApiReasonsGet(ctx context.Context) ApiAnswerAdminApiReasonsGetRequest { + return ApiAnswerAdminApiReasonsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *ReasonApiService) AnswerAdminApiReasonsGetExecute(r ApiAnswerAdminApiReasonsGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReasonApiService.AnswerAdminApiReasonsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/admin/api/reasons" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.objectType == nil { + return localVarReturnValue, nil, reportError("objectType is required and must be specified") + } + if r.action == nil { + return localVarReturnValue, nil, reportError("action is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + 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 + } + 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 ApiAnswerApiV1ReasonsGetRequest struct { + ctx context.Context + ApiService *ReasonApiService + objectType *string + action *string +} + +// object_type +func (r ApiAnswerApiV1ReasonsGetRequest) ObjectType(objectType string) ApiAnswerApiV1ReasonsGetRequest { + r.objectType = &objectType + return r +} + +// action +func (r ApiAnswerApiV1ReasonsGetRequest) Action(action string) ApiAnswerApiV1ReasonsGetRequest { + r.action = &action + return r +} + +func (r ApiAnswerApiV1ReasonsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1ReasonsGetExecute(r) +} + +/* +AnswerApiV1ReasonsGet get reasons by object type and action + +get reasons by object type and action + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1ReasonsGetRequest +*/ +func (a *ReasonApiService) AnswerApiV1ReasonsGet(ctx context.Context) ApiAnswerApiV1ReasonsGetRequest { + return ApiAnswerApiV1ReasonsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *ReasonApiService) AnswerApiV1ReasonsGetExecute(r ApiAnswerApiV1ReasonsGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReasonApiService.AnswerApiV1ReasonsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/reasons" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.objectType == nil { + return localVarReturnValue, nil, reportError("objectType is required and must be specified") + } + if r.action == nil { + return localVarReturnValue, nil, reportError("action is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + 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 + } + 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_report.go b/api_report.go new file mode 100644 index 0000000..8837e8b --- /dev/null +++ b/api_report.go @@ -0,0 +1,258 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// ReportApiService ReportApi service +type ReportApiService service + +type ApiAnswerApiV1ReportPostRequest struct { + ctx context.Context + ApiService *ReportApiService + data *SchemaAddReportReq +} + +// report +func (r ApiAnswerApiV1ReportPostRequest) Data(data SchemaAddReportReq) ApiAnswerApiV1ReportPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1ReportPostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1ReportPostExecute(r) +} + +/* +AnswerApiV1ReportPost add report + +add report
source (question, answer, comment, user) + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1ReportPostRequest +*/ +func (a *ReportApiService) AnswerApiV1ReportPost(ctx context.Context) ApiAnswerApiV1ReportPostRequest { + return ApiAnswerApiV1ReportPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *ReportApiService) AnswerApiV1ReportPostExecute(r ApiAnswerApiV1ReportPostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReportApiService.AnswerApiV1ReportPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/report" + + 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 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 new file mode 100644 index 0000000..bf2c30e --- /dev/null +++ b/api_revision.go @@ -0,0 +1,506 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// RevisionApiService RevisionApi service +type RevisionApiService service + +type ApiAnswerApiV1RevisionsAuditPutRequest struct { + ctx context.Context + ApiService *RevisionApiService + data *SchemaRevisionAuditReq +} + +// audit +func (r ApiAnswerApiV1RevisionsAuditPutRequest) Data(data SchemaRevisionAuditReq) ApiAnswerApiV1RevisionsAuditPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1RevisionsAuditPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1RevisionsAuditPutExecute(r) +} + +/* +AnswerApiV1RevisionsAuditPut revision audit + +revision audit operation:approve or reject + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1RevisionsAuditPutRequest +*/ +func (a *RevisionApiService) AnswerApiV1RevisionsAuditPut(ctx context.Context) ApiAnswerApiV1RevisionsAuditPutRequest { + return ApiAnswerApiV1RevisionsAuditPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *RevisionApiService) AnswerApiV1RevisionsAuditPutExecute(r ApiAnswerApiV1RevisionsAuditPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionApiService.AnswerApiV1RevisionsAuditPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/revisions/audit" + + 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 ApiAnswerApiV1RevisionsEditCheckGetRequest struct { + ctx context.Context + ApiService *RevisionApiService + id *string +} + +// id +func (r ApiAnswerApiV1RevisionsEditCheckGetRequest) Id(id string) ApiAnswerApiV1RevisionsEditCheckGetRequest { + r.id = &id + return r +} + +func (r ApiAnswerApiV1RevisionsEditCheckGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1RevisionsEditCheckGetExecute(r) +} + +/* +AnswerApiV1RevisionsEditCheckGet check can update revision + +check can update revision + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1RevisionsEditCheckGetRequest +*/ +func (a *RevisionApiService) AnswerApiV1RevisionsEditCheckGet(ctx context.Context) ApiAnswerApiV1RevisionsEditCheckGetRequest { + return ApiAnswerApiV1RevisionsEditCheckGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *RevisionApiService) AnswerApiV1RevisionsEditCheckGetExecute(r ApiAnswerApiV1RevisionsEditCheckGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionApiService.AnswerApiV1RevisionsEditCheckGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/revisions/edit/check" + + 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 ApiAnswerApiV1RevisionsGetRequest struct { + ctx context.Context + ApiService *RevisionApiService + objectId *string +} + +// object id +func (r ApiAnswerApiV1RevisionsGetRequest) ObjectId(objectId string) ApiAnswerApiV1RevisionsGetRequest { + r.objectId = &objectId + return r +} + +func (r ApiAnswerApiV1RevisionsGetRequest) Execute() (*AnswerApiV1RevisionsGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1RevisionsGetExecute(r) +} + +/* +AnswerApiV1RevisionsGet get revision list + +get revision list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1RevisionsGetRequest +*/ +func (a *RevisionApiService) AnswerApiV1RevisionsGet(ctx context.Context) ApiAnswerApiV1RevisionsGetRequest { + return ApiAnswerApiV1RevisionsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1RevisionsGet200Response +func (a *RevisionApiService) AnswerApiV1RevisionsGetExecute(r ApiAnswerApiV1RevisionsGetRequest) (*AnswerApiV1RevisionsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1RevisionsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionApiService.AnswerApiV1RevisionsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/revisions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.objectId == nil { + return localVarReturnValue, nil, reportError("objectId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", r.objectId, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1RevisionsUnreviewedGetRequest struct { + ctx context.Context + ApiService *RevisionApiService + page *string +} + +// page id +func (r ApiAnswerApiV1RevisionsUnreviewedGetRequest) Page(page string) ApiAnswerApiV1RevisionsUnreviewedGetRequest { + r.page = &page + return r +} + +func (r ApiAnswerApiV1RevisionsUnreviewedGetRequest) Execute() (*AnswerApiV1RevisionsUnreviewedGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1RevisionsUnreviewedGetExecute(r) +} + +/* +AnswerApiV1RevisionsUnreviewedGet get unreviewed revision list + +get unreviewed revision list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1RevisionsUnreviewedGetRequest +*/ +func (a *RevisionApiService) AnswerApiV1RevisionsUnreviewedGet(ctx context.Context) ApiAnswerApiV1RevisionsUnreviewedGetRequest { + return ApiAnswerApiV1RevisionsUnreviewedGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1RevisionsUnreviewedGet200Response +func (a *RevisionApiService) AnswerApiV1RevisionsUnreviewedGetExecute(r ApiAnswerApiV1RevisionsUnreviewedGetRequest) (*AnswerApiV1RevisionsUnreviewedGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1RevisionsUnreviewedGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RevisionApiService.AnswerApiV1RevisionsUnreviewedGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/revisions/unreviewed" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.page == nil { + return localVarReturnValue, nil, reportError("page is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + // 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_search.go b/api_search.go new file mode 100644 index 0000000..cbb3dbf --- /dev/null +++ b/api_search.go @@ -0,0 +1,158 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// SearchApiService SearchApi service +type SearchApiService service + +type ApiAnswerApiV1SearchGetRequest struct { + ctx context.Context + ApiService *SearchApiService + q *string + order *string +} + +// query string +func (r ApiAnswerApiV1SearchGetRequest) Q(q string) ApiAnswerApiV1SearchGetRequest { + r.q = &q + return r +} + +// order +func (r ApiAnswerApiV1SearchGetRequest) Order(order string) ApiAnswerApiV1SearchGetRequest { + r.order = &order + return r +} + +func (r ApiAnswerApiV1SearchGetRequest) Execute() (*AnswerApiV1SearchGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1SearchGetExecute(r) +} + +/* +AnswerApiV1SearchGet search object + +search object + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1SearchGetRequest +*/ +func (a *SearchApiService) AnswerApiV1SearchGet(ctx context.Context) ApiAnswerApiV1SearchGetRequest { + return ApiAnswerApiV1SearchGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1SearchGet200Response +func (a *SearchApiService) AnswerApiV1SearchGetExecute(r ApiAnswerApiV1SearchGetRequest) (*AnswerApiV1SearchGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1SearchGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SearchApiService.AnswerApiV1SearchGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/search" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.q == nil { + return localVarReturnValue, nil, reportError("q is required and must be specified") + } + if r.order == nil { + return localVarReturnValue, nil, reportError("order is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "order", r.order, "") + // 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_site.go b/api_site.go new file mode 100644 index 0000000..94b0139 --- /dev/null +++ b/api_site.go @@ -0,0 +1,430 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// SiteApiService SiteApi service +type SiteApiService service + +type ApiAnswerApiV1SiteinfoGetRequest struct { + ctx context.Context + ApiService *SiteApiService +} + +func (r ApiAnswerApiV1SiteinfoGetRequest) Execute() (*AnswerApiV1SiteinfoGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1SiteinfoGetExecute(r) +} + +/* +AnswerApiV1SiteinfoGet get site info + +get site info + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1SiteinfoGetRequest +*/ +func (a *SiteApiService) AnswerApiV1SiteinfoGet(ctx context.Context) ApiAnswerApiV1SiteinfoGetRequest { + return ApiAnswerApiV1SiteinfoGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1SiteinfoGet200Response +func (a *SiteApiService) AnswerApiV1SiteinfoGetExecute(r ApiAnswerApiV1SiteinfoGetRequest) (*AnswerApiV1SiteinfoGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1SiteinfoGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteApiService.AnswerApiV1SiteinfoGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/siteinfo" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1SiteinfoLegalGetRequest struct { + ctx context.Context + ApiService *SiteApiService + infoType *string +} + +// legal information type +func (r ApiAnswerApiV1SiteinfoLegalGetRequest) InfoType(infoType string) ApiAnswerApiV1SiteinfoLegalGetRequest { + r.infoType = &infoType + return r +} + +func (r ApiAnswerApiV1SiteinfoLegalGetRequest) Execute() (*AnswerApiV1SiteinfoLegalGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1SiteinfoLegalGetExecute(r) +} + +/* +AnswerApiV1SiteinfoLegalGet get site legal info + +get site legal info + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1SiteinfoLegalGetRequest +*/ +func (a *SiteApiService) AnswerApiV1SiteinfoLegalGet(ctx context.Context) ApiAnswerApiV1SiteinfoLegalGetRequest { + return ApiAnswerApiV1SiteinfoLegalGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1SiteinfoLegalGet200Response +func (a *SiteApiService) AnswerApiV1SiteinfoLegalGetExecute(r ApiAnswerApiV1SiteinfoLegalGetRequest) (*AnswerApiV1SiteinfoLegalGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1SiteinfoLegalGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteApiService.AnswerApiV1SiteinfoLegalGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/siteinfo/legal" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.infoType == nil { + return localVarReturnValue, nil, reportError("infoType is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "info_type", r.infoType, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCustomCssGetRequest struct { + ctx context.Context + ApiService *SiteApiService +} + +func (r ApiCustomCssGetRequest) Execute() (string, *http.Response, error) { + return r.ApiService.CustomCssGetExecute(r) +} + +/* +CustomCssGet get site robots information + +get site robots information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCustomCssGetRequest +*/ +func (a *SiteApiService) CustomCssGet(ctx context.Context) ApiCustomCssGetRequest { + return ApiCustomCssGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *SiteApiService) CustomCssGetExecute(r ApiCustomCssGetRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteApiService.CustomCssGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/custom.css" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiRobotsTxtGetRequest struct { + ctx context.Context + ApiService *SiteApiService +} + +func (r ApiRobotsTxtGetRequest) Execute() (string, *http.Response, error) { + return r.ApiService.RobotsTxtGetExecute(r) +} + +/* +RobotsTxtGet get site robots information + +get site robots information + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRobotsTxtGetRequest +*/ +func (a *SiteApiService) RobotsTxtGet(ctx context.Context) ApiRobotsTxtGetRequest { + return ApiRobotsTxtGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *SiteApiService) RobotsTxtGetExecute(r ApiRobotsTxtGetRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SiteApiService.RobotsTxtGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/robots.txt" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_tag.go b/api_tag.go new file mode 100644 index 0000000..b7eb629 --- /dev/null +++ b/api_tag.go @@ -0,0 +1,1182 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// TagApiService TagApi service +type TagApiService service + +type ApiAnswerApiV1QuestionTagsGetRequest struct { + ctx context.Context + ApiService *TagApiService + tag *string +} + +// tag +func (r ApiAnswerApiV1QuestionTagsGetRequest) Tag(tag string) ApiAnswerApiV1QuestionTagsGetRequest { + r.tag = &tag + return r +} + +func (r ApiAnswerApiV1QuestionTagsGetRequest) Execute() (*AnswerApiV1QuestionTagsGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1QuestionTagsGetExecute(r) +} + +/* +AnswerApiV1QuestionTagsGet get tag list + +get tag list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1QuestionTagsGetRequest +*/ +func (a *TagApiService) AnswerApiV1QuestionTagsGet(ctx context.Context) ApiAnswerApiV1QuestionTagsGetRequest { + return ApiAnswerApiV1QuestionTagsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1QuestionTagsGet200Response +func (a *TagApiService) AnswerApiV1QuestionTagsGetExecute(r ApiAnswerApiV1QuestionTagsGetRequest) (*AnswerApiV1QuestionTagsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1QuestionTagsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1QuestionTagsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/question/tags" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.tag != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", r.tag, "") + } + // 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 ApiAnswerApiV1TagDeleteRequest struct { + ctx context.Context + ApiService *TagApiService + data *SchemaRemoveTagReq +} + +// tag +func (r ApiAnswerApiV1TagDeleteRequest) Data(data SchemaRemoveTagReq) ApiAnswerApiV1TagDeleteRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1TagDeleteRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1TagDeleteExecute(r) +} + +/* +AnswerApiV1TagDelete delete tag + +delete tag + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1TagDeleteRequest +*/ +func (a *TagApiService) AnswerApiV1TagDelete(ctx context.Context) ApiAnswerApiV1TagDeleteRequest { + return ApiAnswerApiV1TagDeleteRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *TagApiService) AnswerApiV1TagDeleteExecute(r ApiAnswerApiV1TagDeleteRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/tag" + + 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 ApiAnswerApiV1TagGetRequest struct { + ctx context.Context + ApiService *TagApiService + tagId *string + tagName *string +} + +// tag id +func (r ApiAnswerApiV1TagGetRequest) TagId(tagId string) ApiAnswerApiV1TagGetRequest { + r.tagId = &tagId + return r +} + +// tag name +func (r ApiAnswerApiV1TagGetRequest) TagName(tagName string) ApiAnswerApiV1TagGetRequest { + r.tagName = &tagName + return r +} + +func (r ApiAnswerApiV1TagGetRequest) Execute() (*AnswerApiV1TagGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1TagGetExecute(r) +} + +/* +AnswerApiV1TagGet get tag one + +get tag one + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1TagGetRequest +*/ +func (a *TagApiService) AnswerApiV1TagGet(ctx context.Context) ApiAnswerApiV1TagGetRequest { + return ApiAnswerApiV1TagGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1TagGet200Response +func (a *TagApiService) AnswerApiV1TagGetExecute(r ApiAnswerApiV1TagGetRequest) (*AnswerApiV1TagGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1TagGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/tag" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.tagId == nil { + return localVarReturnValue, nil, reportError("tagId is required and must be specified") + } + if r.tagName == nil { + return localVarReturnValue, nil, reportError("tagName is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", r.tagId, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_name", r.tagName, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1TagPostRequest struct { + ctx context.Context + ApiService *TagApiService + data *SchemaAddTagReq +} + +// tag +func (r ApiAnswerApiV1TagPostRequest) Data(data SchemaAddTagReq) ApiAnswerApiV1TagPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1TagPostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1TagPostExecute(r) +} + +/* +AnswerApiV1TagPost add tag + +add tag + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1TagPostRequest +*/ +func (a *TagApiService) AnswerApiV1TagPost(ctx context.Context) ApiAnswerApiV1TagPostRequest { + return ApiAnswerApiV1TagPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *TagApiService) AnswerApiV1TagPostExecute(r ApiAnswerApiV1TagPostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/tag" + + 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 ApiAnswerApiV1TagPutRequest struct { + ctx context.Context + ApiService *TagApiService + data *SchemaUpdateTagReq +} + +// tag +func (r ApiAnswerApiV1TagPutRequest) Data(data SchemaUpdateTagReq) ApiAnswerApiV1TagPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1TagPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1TagPutExecute(r) +} + +/* +AnswerApiV1TagPut update tag + +update tag + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1TagPutRequest +*/ +func (a *TagApiService) AnswerApiV1TagPut(ctx context.Context) ApiAnswerApiV1TagPutRequest { + return ApiAnswerApiV1TagPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *TagApiService) AnswerApiV1TagPutExecute(r ApiAnswerApiV1TagPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/tag" + + 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 ApiAnswerApiV1TagSynonymPutRequest struct { + ctx context.Context + ApiService *TagApiService + data *SchemaUpdateTagSynonymReq +} + +// tag +func (r ApiAnswerApiV1TagSynonymPutRequest) Data(data SchemaUpdateTagSynonymReq) ApiAnswerApiV1TagSynonymPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1TagSynonymPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1TagSynonymPutExecute(r) +} + +/* +AnswerApiV1TagSynonymPut update tag + +update tag + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1TagSynonymPutRequest +*/ +func (a *TagApiService) AnswerApiV1TagSynonymPut(ctx context.Context) ApiAnswerApiV1TagSynonymPutRequest { + return ApiAnswerApiV1TagSynonymPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *TagApiService) AnswerApiV1TagSynonymPutExecute(r ApiAnswerApiV1TagSynonymPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagSynonymPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/tag/synonym" + + 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 ApiAnswerApiV1TagSynonymsGetRequest struct { + ctx context.Context + ApiService *TagApiService + tagId *int32 +} + +// tag id +func (r ApiAnswerApiV1TagSynonymsGetRequest) TagId(tagId int32) ApiAnswerApiV1TagSynonymsGetRequest { + r.tagId = &tagId + return r +} + +func (r ApiAnswerApiV1TagSynonymsGetRequest) Execute() (*AnswerApiV1TagSynonymsGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1TagSynonymsGetExecute(r) +} + +/* +AnswerApiV1TagSynonymsGet get tag synonyms + +get tag synonyms + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1TagSynonymsGetRequest +*/ +func (a *TagApiService) AnswerApiV1TagSynonymsGet(ctx context.Context) ApiAnswerApiV1TagSynonymsGetRequest { + return ApiAnswerApiV1TagSynonymsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1TagSynonymsGet200Response +func (a *TagApiService) AnswerApiV1TagSynonymsGetExecute(r ApiAnswerApiV1TagSynonymsGetRequest) (*AnswerApiV1TagSynonymsGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1TagSynonymsGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagSynonymsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/tag/synonyms" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.tagId == nil { + return localVarReturnValue, nil, reportError("tagId is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", r.tagId, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1TagsFollowingGetRequest struct { + ctx context.Context + ApiService *TagApiService +} + +func (r ApiAnswerApiV1TagsFollowingGetRequest) Execute() (*AnswerApiV1TagsFollowingGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1TagsFollowingGetExecute(r) +} + +/* +AnswerApiV1TagsFollowingGet get following tag list + +get following tag list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1TagsFollowingGetRequest +*/ +func (a *TagApiService) AnswerApiV1TagsFollowingGet(ctx context.Context) ApiAnswerApiV1TagsFollowingGetRequest { + return ApiAnswerApiV1TagsFollowingGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1TagsFollowingGet200Response +func (a *TagApiService) AnswerApiV1TagsFollowingGetExecute(r ApiAnswerApiV1TagsFollowingGetRequest) (*AnswerApiV1TagsFollowingGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1TagsFollowingGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagsFollowingGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/tags/following" + + 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 ApiAnswerApiV1TagsGetRequest struct { + ctx context.Context + ApiService *TagApiService + tags *[]string +} + +// string collection +func (r ApiAnswerApiV1TagsGetRequest) Tags(tags []string) ApiAnswerApiV1TagsGetRequest { + r.tags = &tags + return r +} + +func (r ApiAnswerApiV1TagsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1TagsGetExecute(r) +} + +/* +AnswerApiV1TagsGet get tags list + +get tags list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1TagsGetRequest +*/ +func (a *TagApiService) AnswerApiV1TagsGet(ctx context.Context) ApiAnswerApiV1TagsGetRequest { + return ApiAnswerApiV1TagsGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *TagApiService) AnswerApiV1TagsGetExecute(r ApiAnswerApiV1TagsGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/tags" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.tags != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tags", r.tags, "csv") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1TagsPageGetRequest struct { + ctx context.Context + ApiService *TagApiService + page *int32 + pageSize *int32 + slugName *string + queryCond *string +} + +// page size +func (r ApiAnswerApiV1TagsPageGetRequest) Page(page int32) ApiAnswerApiV1TagsPageGetRequest { + r.page = &page + return r +} + +// page size +func (r ApiAnswerApiV1TagsPageGetRequest) PageSize(pageSize int32) ApiAnswerApiV1TagsPageGetRequest { + r.pageSize = &pageSize + return r +} + +// slug_name +func (r ApiAnswerApiV1TagsPageGetRequest) SlugName(slugName string) ApiAnswerApiV1TagsPageGetRequest { + r.slugName = &slugName + return r +} + +// query condition +func (r ApiAnswerApiV1TagsPageGetRequest) QueryCond(queryCond string) ApiAnswerApiV1TagsPageGetRequest { + r.queryCond = &queryCond + return r +} + +func (r ApiAnswerApiV1TagsPageGetRequest) Execute() (*AnswerApiV1TagsPageGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1TagsPageGetExecute(r) +} + +/* +AnswerApiV1TagsPageGet get tag page + +get tag page + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1TagsPageGetRequest +*/ +func (a *TagApiService) AnswerApiV1TagsPageGet(ctx context.Context) ApiAnswerApiV1TagsPageGetRequest { + return ApiAnswerApiV1TagsPageGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1TagsPageGet200Response +func (a *TagApiService) AnswerApiV1TagsPageGetExecute(r ApiAnswerApiV1TagsPageGetRequest) (*AnswerApiV1TagsPageGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1TagsPageGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagsPageGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/tags/page" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.page != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + } + if r.slugName != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug_name", r.slugName, "") + } + if r.queryCond != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "query_cond", r.queryCond, "") + } + // 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_upload.go b/api_upload.go new file mode 100644 index 0000000..59760e4 --- /dev/null +++ b/api_upload.go @@ -0,0 +1,300 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "os" +) + + +// UploadApiService UploadApi service +type UploadApiService service + +type ApiAnswerApiV1FilePostRequest struct { + ctx context.Context + ApiService *UploadApiService + source *string + file *os.File +} + +// identify the source of the file upload +func (r ApiAnswerApiV1FilePostRequest) Source(source string) ApiAnswerApiV1FilePostRequest { + r.source = &source + return r +} + +// file +func (r ApiAnswerApiV1FilePostRequest) File(file *os.File) ApiAnswerApiV1FilePostRequest { + r.file = file + return r +} + +func (r ApiAnswerApiV1FilePostRequest) Execute() (*AnswerApiV1FilePost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1FilePostExecute(r) +} + +/* +AnswerApiV1FilePost upload file + +upload file + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1FilePostRequest +*/ +func (a *UploadApiService) AnswerApiV1FilePost(ctx context.Context) ApiAnswerApiV1FilePostRequest { + return ApiAnswerApiV1FilePostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1FilePost200Response +func (a *UploadApiService) AnswerApiV1FilePostExecute(r ApiAnswerApiV1FilePostRequest) (*AnswerApiV1FilePost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1FilePost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadApiService.AnswerApiV1FilePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/file" + + 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") + } + if r.file == nil { + return localVarReturnValue, nil, reportError("file is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"*/*"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarFormParams, "source", r.source, "") + var fileLocalVarFormFileName string + var fileLocalVarFileName string + var fileLocalVarFileBytes []byte + + fileLocalVarFormFileName = "file" + + + fileLocalVarFile := r.file + + if fileLocalVarFile != nil { + fbs, _ := io.ReadAll(fileLocalVarFile) + + fileLocalVarFileBytes = fbs + fileLocalVarFileName = fileLocalVarFile.Name() + fileLocalVarFile.Close() + formFiles = append(formFiles, formFile{fileBytes: fileLocalVarFileBytes, fileName: fileLocalVarFileName, formFileName: fileLocalVarFormFileName}) + } + 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 ApiAnswerApiV1PostRenderPostRequest struct { + ctx context.Context + ApiService *UploadApiService + data *SchemaPostRenderReq +} + +// PostRenderReq +func (r ApiAnswerApiV1PostRenderPostRequest) Data(data SchemaPostRenderReq) ApiAnswerApiV1PostRenderPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1PostRenderPostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1PostRenderPostExecute(r) +} + +/* +AnswerApiV1PostRenderPost render post content + +render post content + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1PostRenderPostRequest +*/ +func (a *UploadApiService) AnswerApiV1PostRenderPost(ctx context.Context) ApiAnswerApiV1PostRenderPostRequest { + return ApiAnswerApiV1PostRenderPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *UploadApiService) AnswerApiV1PostRenderPostExecute(r ApiAnswerApiV1PostRenderPostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadApiService.AnswerApiV1PostRenderPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/post/render" + + 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_user.go b/api_user.go new file mode 100644 index 0000000..7415770 --- /dev/null +++ b/api_user.go @@ -0,0 +1,2239 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// UserApiService UserApi service +type UserApiService service + +type ApiAnswerApiV1PersonalUserInfoGetRequest struct { + ctx context.Context + ApiService *UserApiService + username *string +} + +// username +func (r ApiAnswerApiV1PersonalUserInfoGetRequest) Username(username string) ApiAnswerApiV1PersonalUserInfoGetRequest { + r.username = &username + return r +} + +func (r ApiAnswerApiV1PersonalUserInfoGetRequest) Execute() (*AnswerApiV1PersonalUserInfoGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1PersonalUserInfoGetExecute(r) +} + +/* +AnswerApiV1PersonalUserInfoGet GetOtherUserInfoByUsername + +GetOtherUserInfoByUsername + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1PersonalUserInfoGetRequest +*/ +func (a *UserApiService) AnswerApiV1PersonalUserInfoGet(ctx context.Context) ApiAnswerApiV1PersonalUserInfoGetRequest { + return ApiAnswerApiV1PersonalUserInfoGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1PersonalUserInfoGet200Response +func (a *UserApiService) AnswerApiV1PersonalUserInfoGetExecute(r ApiAnswerApiV1PersonalUserInfoGetRequest) (*AnswerApiV1PersonalUserInfoGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1PersonalUserInfoGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1PersonalUserInfoGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/personal/user/info" + + 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 ApiAnswerApiV1UserActionRecordGetRequest struct { + ctx context.Context + ApiService *UserApiService + action *string +} + +// action +func (r ApiAnswerApiV1UserActionRecordGetRequest) Action(action string) ApiAnswerApiV1UserActionRecordGetRequest { + r.action = &action + return r +} + +func (r ApiAnswerApiV1UserActionRecordGetRequest) Execute() (*AnswerApiV1UserActionRecordGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1UserActionRecordGetExecute(r) +} + +/* +AnswerApiV1UserActionRecordGet ActionRecord + +ActionRecord + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserActionRecordGetRequest +*/ +func (a *UserApiService) AnswerApiV1UserActionRecordGet(ctx context.Context) ApiAnswerApiV1UserActionRecordGetRequest { + return ApiAnswerApiV1UserActionRecordGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1UserActionRecordGet200Response +func (a *UserApiService) AnswerApiV1UserActionRecordGetExecute(r ApiAnswerApiV1UserActionRecordGetRequest) (*AnswerApiV1UserActionRecordGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1UserActionRecordGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserActionRecordGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/action/record" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + 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{"*/*"} + + // 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 ApiAnswerApiV1UserEmailChangeCodePostRequest struct { + ctx context.Context + ApiService *UserApiService + data *SchemaUserChangeEmailSendCodeReq +} + +// UserChangeEmailSendCodeReq +func (r ApiAnswerApiV1UserEmailChangeCodePostRequest) Data(data SchemaUserChangeEmailSendCodeReq) ApiAnswerApiV1UserEmailChangeCodePostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserEmailChangeCodePostRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1UserEmailChangeCodePostExecute(r) +} + +/* +AnswerApiV1UserEmailChangeCodePost send email to the user email then change their email + +send email to the user email then change their email + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserEmailChangeCodePostRequest +*/ +func (a *UserApiService) AnswerApiV1UserEmailChangeCodePost(ctx context.Context) ApiAnswerApiV1UserEmailChangeCodePostRequest { + return ApiAnswerApiV1UserEmailChangeCodePostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *UserApiService) AnswerApiV1UserEmailChangeCodePostExecute(r ApiAnswerApiV1UserEmailChangeCodePostRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserEmailChangeCodePost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/email/change/code" + + 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 ApiAnswerApiV1UserEmailNotificationPutRequest struct { + ctx context.Context + ApiService *UserApiService +} + +func (r ApiAnswerApiV1UserEmailNotificationPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1UserEmailNotificationPutExecute(r) +} + +/* +AnswerApiV1UserEmailNotificationPut unsubscribe email notification + +unsubscribe email notification + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserEmailNotificationPutRequest +*/ +func (a *UserApiService) AnswerApiV1UserEmailNotificationPut(ctx context.Context) ApiAnswerApiV1UserEmailNotificationPutRequest { + return ApiAnswerApiV1UserEmailNotificationPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *UserApiService) AnswerApiV1UserEmailNotificationPutExecute(r ApiAnswerApiV1UserEmailNotificationPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserEmailNotificationPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/email/notification" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1UserEmailPutRequest struct { + ctx context.Context + ApiService *UserApiService + data *SchemaUserChangeEmailVerifyReq +} + +// UserChangeEmailVerifyReq +func (r ApiAnswerApiV1UserEmailPutRequest) Data(data SchemaUserChangeEmailVerifyReq) ApiAnswerApiV1UserEmailPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserEmailPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1UserEmailPutExecute(r) +} + +/* +AnswerApiV1UserEmailPut user change email verification + +user change email verification + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserEmailPutRequest +*/ +func (a *UserApiService) AnswerApiV1UserEmailPut(ctx context.Context) ApiAnswerApiV1UserEmailPutRequest { + return ApiAnswerApiV1UserEmailPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *UserApiService) AnswerApiV1UserEmailPutExecute(r ApiAnswerApiV1UserEmailPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserEmailPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/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 + 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 ApiAnswerApiV1UserEmailVerificationPostRequest struct { + ctx context.Context + ApiService *UserApiService + code *string +} + +// code +func (r ApiAnswerApiV1UserEmailVerificationPostRequest) Code(code string) ApiAnswerApiV1UserEmailVerificationPostRequest { + r.code = &code + return r +} + +func (r ApiAnswerApiV1UserEmailVerificationPostRequest) Execute() (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1UserEmailVerificationPostExecute(r) +} + +/* +AnswerApiV1UserEmailVerificationPost UserVerifyEmail + +UserVerifyEmail + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserEmailVerificationPostRequest +*/ +func (a *UserApiService) AnswerApiV1UserEmailVerificationPost(ctx context.Context) ApiAnswerApiV1UserEmailVerificationPostRequest { + return ApiAnswerApiV1UserEmailVerificationPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1UserEmailVerificationPost200Response +func (a *UserApiService) AnswerApiV1UserEmailVerificationPostExecute(r ApiAnswerApiV1UserEmailVerificationPostRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1UserEmailVerificationPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserEmailVerificationPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/email/verification" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.code == nil { + return localVarReturnValue, nil, reportError("code is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "code", r.code, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1UserEmailVerificationSendPostRequest struct { + ctx context.Context + ApiService *UserApiService + captchaId *string + captchaCode *string +} + +// captcha_id +func (r ApiAnswerApiV1UserEmailVerificationSendPostRequest) CaptchaId(captchaId string) ApiAnswerApiV1UserEmailVerificationSendPostRequest { + r.captchaId = &captchaId + return r +} + +// captcha_code +func (r ApiAnswerApiV1UserEmailVerificationSendPostRequest) CaptchaCode(captchaCode string) ApiAnswerApiV1UserEmailVerificationSendPostRequest { + r.captchaCode = &captchaCode + return r +} + +func (r ApiAnswerApiV1UserEmailVerificationSendPostRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1UserEmailVerificationSendPostExecute(r) +} + +/* +AnswerApiV1UserEmailVerificationSendPost UserVerifyEmailSend + +UserVerifyEmailSend + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserEmailVerificationSendPostRequest +*/ +func (a *UserApiService) AnswerApiV1UserEmailVerificationSendPost(ctx context.Context) ApiAnswerApiV1UserEmailVerificationSendPostRequest { + return ApiAnswerApiV1UserEmailVerificationSendPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *UserApiService) AnswerApiV1UserEmailVerificationSendPostExecute(r ApiAnswerApiV1UserEmailVerificationSendPostRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserEmailVerificationSendPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/email/verification/send" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.captchaId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "captcha_id", r.captchaId, "") + } + if r.captchaCode != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "captcha_code", r.captchaCode, "") + } + // 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 ApiAnswerApiV1UserInfoGetRequest struct { + ctx context.Context + ApiService *UserApiService +} + +func (r ApiAnswerApiV1UserInfoGetRequest) Execute() (*AnswerApiV1UserInfoGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1UserInfoGetExecute(r) +} + +/* +AnswerApiV1UserInfoGet GetUserInfoByUserID + +get user info, if user no login response http code is 200, but user info is null + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserInfoGetRequest +*/ +func (a *UserApiService) AnswerApiV1UserInfoGet(ctx context.Context) ApiAnswerApiV1UserInfoGetRequest { + return ApiAnswerApiV1UserInfoGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1UserInfoGet200Response +func (a *UserApiService) AnswerApiV1UserInfoGetExecute(r ApiAnswerApiV1UserInfoGetRequest) (*AnswerApiV1UserInfoGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1UserInfoGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserInfoGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/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 ApiAnswerApiV1UserInfoPutRequest struct { + ctx context.Context + ApiService *UserApiService + authorization *string + data *SchemaUpdateInfoRequest +} + +// access-token +func (r ApiAnswerApiV1UserInfoPutRequest) Authorization(authorization string) ApiAnswerApiV1UserInfoPutRequest { + r.authorization = &authorization + return r +} + +// UpdateInfoRequest +func (r ApiAnswerApiV1UserInfoPutRequest) Data(data SchemaUpdateInfoRequest) ApiAnswerApiV1UserInfoPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserInfoPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1UserInfoPutExecute(r) +} + +/* +AnswerApiV1UserInfoPut UserUpdateInfo update user info + +UserUpdateInfo update user info + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserInfoPutRequest +*/ +func (a *UserApiService) AnswerApiV1UserInfoPut(ctx context.Context) ApiAnswerApiV1UserInfoPutRequest { + return ApiAnswerApiV1UserInfoPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *UserApiService) AnswerApiV1UserInfoPutExecute(r ApiAnswerApiV1UserInfoPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserInfoPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/info" + + 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.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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // 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 ApiAnswerApiV1UserInterfacePutRequest struct { + ctx context.Context + ApiService *UserApiService + authorization *string + data *SchemaUpdateUserInterfaceRequest +} + +// access-token +func (r ApiAnswerApiV1UserInterfacePutRequest) Authorization(authorization string) ApiAnswerApiV1UserInterfacePutRequest { + r.authorization = &authorization + return r +} + +// UpdateInfoRequest +func (r ApiAnswerApiV1UserInterfacePutRequest) Data(data SchemaUpdateUserInterfaceRequest) ApiAnswerApiV1UserInterfacePutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserInterfacePutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1UserInterfacePutExecute(r) +} + +/* +AnswerApiV1UserInterfacePut UserUpdateInterface update user interface config + +UserUpdateInterface update user interface config + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserInterfacePutRequest +*/ +func (a *UserApiService) AnswerApiV1UserInterfacePut(ctx context.Context) ApiAnswerApiV1UserInterfacePutRequest { + return ApiAnswerApiV1UserInterfacePutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *UserApiService) AnswerApiV1UserInterfacePutExecute(r ApiAnswerApiV1UserInterfacePutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserInterfacePut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/interface" + + 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.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 + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "Authorization", r.authorization, "") + // 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 ApiAnswerApiV1UserLoginEmailPostRequest struct { + ctx context.Context + ApiService *UserApiService + data *SchemaUserEmailLogin +} + +// UserEmailLogin +func (r ApiAnswerApiV1UserLoginEmailPostRequest) Data(data SchemaUserEmailLogin) ApiAnswerApiV1UserLoginEmailPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserLoginEmailPostRequest) Execute() (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1UserLoginEmailPostExecute(r) +} + +/* +AnswerApiV1UserLoginEmailPost UserEmailLogin + +UserEmailLogin + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserLoginEmailPostRequest +*/ +func (a *UserApiService) AnswerApiV1UserLoginEmailPost(ctx context.Context) ApiAnswerApiV1UserLoginEmailPostRequest { + return ApiAnswerApiV1UserLoginEmailPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1UserEmailVerificationPost200Response +func (a *UserApiService) AnswerApiV1UserLoginEmailPostExecute(r ApiAnswerApiV1UserLoginEmailPostRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1UserEmailVerificationPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserLoginEmailPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/login/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 ApiAnswerApiV1UserLogoutGetRequest struct { + ctx context.Context + ApiService *UserApiService +} + +func (r ApiAnswerApiV1UserLogoutGetRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1UserLogoutGetExecute(r) +} + +/* +AnswerApiV1UserLogoutGet user logout + +user logout + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserLogoutGetRequest +*/ +func (a *UserApiService) AnswerApiV1UserLogoutGet(ctx context.Context) ApiAnswerApiV1UserLogoutGetRequest { + return ApiAnswerApiV1UserLogoutGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *UserApiService) AnswerApiV1UserLogoutGetExecute(r ApiAnswerApiV1UserLogoutGetRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserLogoutGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/logout" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1UserNoticeSetPostRequest struct { + ctx context.Context + ApiService *UserApiService + data *SchemaUserNoticeSetRequest +} + +// UserNoticeSetRequest +func (r ApiAnswerApiV1UserNoticeSetPostRequest) Data(data SchemaUserNoticeSetRequest) ApiAnswerApiV1UserNoticeSetPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserNoticeSetPostRequest) Execute() (*AnswerApiV1UserNoticeSetPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1UserNoticeSetPostExecute(r) +} + +/* +AnswerApiV1UserNoticeSetPost UserNoticeSet + +UserNoticeSet + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserNoticeSetPostRequest +*/ +func (a *UserApiService) AnswerApiV1UserNoticeSetPost(ctx context.Context) ApiAnswerApiV1UserNoticeSetPostRequest { + return ApiAnswerApiV1UserNoticeSetPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1UserNoticeSetPost200Response +func (a *UserApiService) AnswerApiV1UserNoticeSetPostExecute(r ApiAnswerApiV1UserNoticeSetPostRequest) (*AnswerApiV1UserNoticeSetPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1UserNoticeSetPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserNoticeSetPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/notice/set" + + 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 ApiAnswerApiV1UserPasswordPutRequest struct { + ctx context.Context + ApiService *UserApiService + data *SchemaUserModifyPassWordRequest +} + +// UserModifyPassWordRequest +func (r ApiAnswerApiV1UserPasswordPutRequest) Data(data SchemaUserModifyPassWordRequest) ApiAnswerApiV1UserPasswordPutRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserPasswordPutRequest) Execute() (*HandlerRespBody, *http.Response, error) { + return r.ApiService.AnswerApiV1UserPasswordPutExecute(r) +} + +/* +AnswerApiV1UserPasswordPut UserModifyPassWord + +UserModifyPassWord + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserPasswordPutRequest +*/ +func (a *UserApiService) AnswerApiV1UserPasswordPut(ctx context.Context) ApiAnswerApiV1UserPasswordPutRequest { + return ApiAnswerApiV1UserPasswordPutRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return HandlerRespBody +func (a *UserApiService) AnswerApiV1UserPasswordPutExecute(r ApiAnswerApiV1UserPasswordPutRequest) (*HandlerRespBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *HandlerRespBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserPasswordPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/password" + + 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 ApiAnswerApiV1UserPasswordReplacementPostRequest struct { + ctx context.Context + ApiService *UserApiService + data *SchemaUserRePassWordRequest +} + +// UserRePassWordRequest +func (r ApiAnswerApiV1UserPasswordReplacementPostRequest) Data(data SchemaUserRePassWordRequest) ApiAnswerApiV1UserPasswordReplacementPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserPasswordReplacementPostRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1UserPasswordReplacementPostExecute(r) +} + +/* +AnswerApiV1UserPasswordReplacementPost UseRePassWord + +UseRePassWord + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserPasswordReplacementPostRequest +*/ +func (a *UserApiService) AnswerApiV1UserPasswordReplacementPost(ctx context.Context) ApiAnswerApiV1UserPasswordReplacementPostRequest { + return ApiAnswerApiV1UserPasswordReplacementPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *UserApiService) AnswerApiV1UserPasswordReplacementPostExecute(r ApiAnswerApiV1UserPasswordReplacementPostRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserPasswordReplacementPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/password/replacement" + + 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 ApiAnswerApiV1UserPasswordResetPostRequest struct { + ctx context.Context + ApiService *UserApiService + data *SchemaUserRetrievePassWordRequest +} + +// UserRetrievePassWordRequest +func (r ApiAnswerApiV1UserPasswordResetPostRequest) Data(data SchemaUserRetrievePassWordRequest) ApiAnswerApiV1UserPasswordResetPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserPasswordResetPostRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AnswerApiV1UserPasswordResetPostExecute(r) +} + +/* +AnswerApiV1UserPasswordResetPost RetrievePassWord + +RetrievePassWord + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserPasswordResetPostRequest +*/ +func (a *UserApiService) AnswerApiV1UserPasswordResetPost(ctx context.Context) ApiAnswerApiV1UserPasswordResetPostRequest { + return ApiAnswerApiV1UserPasswordResetPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return string +func (a *UserApiService) AnswerApiV1UserPasswordResetPostExecute(r ApiAnswerApiV1UserPasswordResetPostRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserPasswordResetPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/password/reset" + + 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 ApiAnswerApiV1UserRankingGetRequest struct { + ctx context.Context + ApiService *UserApiService +} + +func (r ApiAnswerApiV1UserRankingGetRequest) Execute() (*AnswerApiV1UserRankingGet200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1UserRankingGetExecute(r) +} + +/* +AnswerApiV1UserRankingGet get user ranking + +get user ranking + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserRankingGetRequest +*/ +func (a *UserApiService) AnswerApiV1UserRankingGet(ctx context.Context) ApiAnswerApiV1UserRankingGetRequest { + return ApiAnswerApiV1UserRankingGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1UserRankingGet200Response +func (a *UserApiService) AnswerApiV1UserRankingGetExecute(r ApiAnswerApiV1UserRankingGetRequest) (*AnswerApiV1UserRankingGet200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1UserRankingGet200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserRankingGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/ranking" + + 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 ApiAnswerApiV1UserRegisterCaptchaGetRequest struct { + ctx context.Context + ApiService *UserApiService +} + +func (r ApiAnswerApiV1UserRegisterCaptchaGetRequest) Execute() (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1UserRegisterCaptchaGetExecute(r) +} + +/* +AnswerApiV1UserRegisterCaptchaGet UserRegisterCaptcha + +UserRegisterCaptcha + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserRegisterCaptchaGetRequest +*/ +func (a *UserApiService) AnswerApiV1UserRegisterCaptchaGet(ctx context.Context) ApiAnswerApiV1UserRegisterCaptchaGetRequest { + return ApiAnswerApiV1UserRegisterCaptchaGetRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1UserEmailVerificationPost200Response +func (a *UserApiService) AnswerApiV1UserRegisterCaptchaGetExecute(r ApiAnswerApiV1UserRegisterCaptchaGetRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1UserEmailVerificationPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserRegisterCaptchaGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/register/captcha" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiAnswerApiV1UserRegisterEmailPostRequest struct { + ctx context.Context + ApiService *UserApiService + data *SchemaUserRegisterReq +} + +// UserRegisterReq +func (r ApiAnswerApiV1UserRegisterEmailPostRequest) Data(data SchemaUserRegisterReq) ApiAnswerApiV1UserRegisterEmailPostRequest { + r.data = &data + return r +} + +func (r ApiAnswerApiV1UserRegisterEmailPostRequest) Execute() (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { + return r.ApiService.AnswerApiV1UserRegisterEmailPostExecute(r) +} + +/* +AnswerApiV1UserRegisterEmailPost UserRegisterByEmail + +UserRegisterByEmail + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnswerApiV1UserRegisterEmailPostRequest +*/ +func (a *UserApiService) AnswerApiV1UserRegisterEmailPost(ctx context.Context) ApiAnswerApiV1UserRegisterEmailPostRequest { + return ApiAnswerApiV1UserRegisterEmailPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AnswerApiV1UserEmailVerificationPost200Response +func (a *UserApiService) AnswerApiV1UserRegisterEmailPostExecute(r ApiAnswerApiV1UserRegisterEmailPostRequest) (*AnswerApiV1UserEmailVerificationPost200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AnswerApiV1UserEmailVerificationPost200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserApiService.AnswerApiV1UserRegisterEmailPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/answer/api/v1/user/register/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 +} diff --git a/client.go b/client.go new file mode 100644 index 0000000..605f252 --- /dev/null +++ b/client.go @@ -0,0 +1,707 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) +) + +// APIClient manages communication with the answer API vv0.0.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + ActivityApi *ActivityApiService + + AdminApi *AdminApiService + + ApiAnswerApi *ApiAnswerApiService + + CollectionApi *CollectionApiService + + CommentApi *CommentApiService + + InstallationApi *InstallationApiService + + LangApi *LangApiService + + NotificationApi *NotificationApiService + + QuestionApi *QuestionApiService + + RankApi *RankApiService + + ReasonApi *ReasonApiService + + ReportApi *ReportApiService + + RevisionApi *RevisionApiService + + SearchApi *SearchApiService + + SiteApi *SiteApiService + + TagApi *TagApiService + + UploadApi *UploadApiService + + UserApi *UserApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.ActivityApi = (*ActivityApiService)(&c.common) + c.AdminApi = (*AdminApiService)(&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.QuestionApi = (*QuestionApiService)(&c.common) + c.RankApi = (*RankApiService)(&c.common) + c.ReasonApi = (*ReasonApiService)(&c.common) + c.ReportApi = (*ReportApiService)(&c.common) + c.RevisionApi = (*RevisionApiService)(&c.common) + c.SearchApi = (*SearchApiService)(&c.common) + c.SiteApi = (*SiteApiService)(&c.common) + c.TagApi = (*TagApiService)(&c.common) + c.UploadApi = (*UploadApiService)(&c.common) + c.UserApi = (*UserApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + err = file.Close() + if err != nil { + return err + } + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/configuration.go b/configuration.go new file mode 100644 index 0000000..cb90062 --- /dev/null +++ b/configuration.go @@ -0,0 +1,218 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "context" + "fmt" + "net/http" + "strings" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") + + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") + + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") + + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +// ServerVariable stores the information about a server variable +type ServerVariable struct { + Description string + DefaultValue string + EnumValues []string +} + +// ServerConfiguration stores the information about a server +type ServerConfiguration struct { + URL string + Description string + Variables map[string]ServerVariable +} + +// ServerConfigurations stores multiple ServerConfiguration items +type ServerConfigurations []ServerConfiguration + +// Configuration stores the configuration of the API client +type Configuration struct { + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client +} + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *Configuration { + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Servers: ServerConfigurations{ + { + URL: "//127.0.0.1:80", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{ + }, + } + return cfg +} + +// AddDefaultHeader adds a new HTTP header to the default header in the request +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} + +// URL formats template on a index using given variables +func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil +} + +// ServerURL returns URL based on server settings +func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { + return c.Servers.URL(index, variables) +} + +func getServerIndex(ctx context.Context) (int, error) { + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, reportError("Invalid type %T should be int", si) + } + return 0, nil +} + +func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, reportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) +} + +func getServerVariables(ctx context.Context) (map[string]string, error) { + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil +} + +func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) +} + +// ServerURLWithContext returns a new server URL given an endpoint +func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) +} diff --git a/docs/ActivityApi.md b/docs/ActivityApi.md new file mode 100644 index 0000000..044f5b1 --- /dev/null +++ b/docs/ActivityApi.md @@ -0,0 +1,345 @@ +# \ActivityApi + +All URIs are relative to *http://127.0.0.1:80* + +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 +[**AnswerApiV1VoteDownPost**](ActivityApi.md#AnswerApiV1VoteDownPost) | **Post** /answer/api/v1/vote/down | vote down +[**AnswerApiV1VoteUpPost**](ActivityApi.md#AnswerApiV1VoteUpPost) | **Post** /answer/api/v1/vote/up | vote up + + + +## AnswerApiV1FollowPost + +> AnswerApiV1FollowPost200Response AnswerApiV1FollowPost(ctx).Data(data).Execute() + +follow object or cancel follow operation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaFollowReq("ObjectId_example") // SchemaFollowReq | follow + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ActivityApi.AnswerApiV1FollowPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.AnswerApiV1FollowPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1FollowPost`: AnswerApiV1FollowPost200Response + fmt.Fprintf(os.Stdout, "Response from `ActivityApi.AnswerApiV1FollowPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1FollowPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaFollowReq**](SchemaFollowReq.md) | follow | + +### Return type + +[**AnswerApiV1FollowPost200Response**](AnswerApiV1FollowPost200Response.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) + + +## AnswerApiV1FollowTagsPut + +> HandlerRespBody AnswerApiV1FollowTagsPut(ctx).Data(data).Execute() + +update user follow tags + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdateFollowTagsReq() // SchemaUpdateFollowTagsReq | follow + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ActivityApi.AnswerApiV1FollowTagsPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.AnswerApiV1FollowTagsPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1FollowTagsPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `ActivityApi.AnswerApiV1FollowTagsPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1FollowTagsPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdateFollowTagsReq**](SchemaUpdateFollowTagsReq.md) | follow | + +### 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) + + +## AnswerApiV1PersonalVotePageGet + +> AnswerApiV1PersonalVotePageGet200Response AnswerApiV1PersonalVotePageGet(ctx).Page(page).PageSize(pageSize).Execute() + +user's votes + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + 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.ActivityApi.AnswerApiV1PersonalVotePageGet(context.Background()).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.AnswerApiV1PersonalVotePageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1PersonalVotePageGet`: AnswerApiV1PersonalVotePageGet200Response + fmt.Fprintf(os.Stdout, "Response from `ActivityApi.AnswerApiV1PersonalVotePageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1PersonalVotePageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | page size | + **pageSize** | **int32** | page size | + +### Return type + +[**AnswerApiV1PersonalVotePageGet200Response**](AnswerApiV1PersonalVotePageGet200Response.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) + + +## AnswerApiV1VoteDownPost + +> AnswerApiV1VoteDownPost200Response AnswerApiV1VoteDownPost(ctx).Data(data).Execute() + +vote down + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaVoteReq("ObjectId_example") // SchemaVoteReq | vote + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ActivityApi.AnswerApiV1VoteDownPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.AnswerApiV1VoteDownPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1VoteDownPost`: AnswerApiV1VoteDownPost200Response + fmt.Fprintf(os.Stdout, "Response from `ActivityApi.AnswerApiV1VoteDownPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1VoteDownPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaVoteReq**](SchemaVoteReq.md) | vote | + +### Return type + +[**AnswerApiV1VoteDownPost200Response**](AnswerApiV1VoteDownPost200Response.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) + + +## AnswerApiV1VoteUpPost + +> AnswerApiV1VoteDownPost200Response AnswerApiV1VoteUpPost(ctx).Data(data).Execute() + +vote up + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaVoteReq("ObjectId_example") // SchemaVoteReq | vote + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ActivityApi.AnswerApiV1VoteUpPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.AnswerApiV1VoteUpPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1VoteUpPost`: AnswerApiV1VoteDownPost200Response + fmt.Fprintf(os.Stdout, "Response from `ActivityApi.AnswerApiV1VoteUpPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1VoteUpPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaVoteReq**](SchemaVoteReq.md) | vote | + +### Return type + +[**AnswerApiV1VoteDownPost200Response**](AnswerApiV1VoteDownPost200Response.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/AdminApi.md b/docs/AdminApi.md new file mode 100644 index 0000000..8023147 --- /dev/null +++ b/docs/AdminApi.md @@ -0,0 +1,2249 @@ +# \AdminApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerAdminApiAnswerPageGet**](AdminApi.md#AnswerAdminApiAnswerPageGet) | **Get** /answer/admin/api/answer/page | AdminSearchAnswerList +[**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 +[**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 +[**AnswerAdminApiSettingSmtpGet**](AdminApi.md#AnswerAdminApiSettingSmtpGet) | **Get** /answer/admin/api/setting/smtp | GetSMTPConfig get smtp config +[**AnswerAdminApiSettingSmtpPut**](AdminApi.md#AnswerAdminApiSettingSmtpPut) | **Put** /answer/admin/api/setting/smtp | update smtp config +[**AnswerAdminApiSiteinfoBrandingGet**](AdminApi.md#AnswerAdminApiSiteinfoBrandingGet) | **Get** /answer/admin/api/siteinfo/branding | get site interface +[**AnswerAdminApiSiteinfoBrandingPut**](AdminApi.md#AnswerAdminApiSiteinfoBrandingPut) | **Put** /answer/admin/api/siteinfo/branding | update site info branding +[**AnswerAdminApiSiteinfoCustomCssHtmlGet**](AdminApi.md#AnswerAdminApiSiteinfoCustomCssHtmlGet) | **Get** /answer/admin/api/siteinfo/custom-css-html | get site info custom html css config +[**AnswerAdminApiSiteinfoCustomCssHtmlPut**](AdminApi.md#AnswerAdminApiSiteinfoCustomCssHtmlPut) | **Put** /answer/admin/api/siteinfo/custom-css-html | update site custom css html config +[**AnswerAdminApiSiteinfoGeneralGet**](AdminApi.md#AnswerAdminApiSiteinfoGeneralGet) | **Get** /answer/admin/api/siteinfo/general | get site general information +[**AnswerAdminApiSiteinfoGeneralPut**](AdminApi.md#AnswerAdminApiSiteinfoGeneralPut) | **Put** /answer/admin/api/siteinfo/general | update site general information +[**AnswerAdminApiSiteinfoInterfaceGet**](AdminApi.md#AnswerAdminApiSiteinfoInterfaceGet) | **Get** /answer/admin/api/siteinfo/interface | get site interface +[**AnswerAdminApiSiteinfoInterfacePut**](AdminApi.md#AnswerAdminApiSiteinfoInterfacePut) | **Put** /answer/admin/api/siteinfo/interface | update site info interface +[**AnswerAdminApiSiteinfoLegalGet**](AdminApi.md#AnswerAdminApiSiteinfoLegalGet) | **Get** /answer/admin/api/siteinfo/legal | Set the legal information for the site +[**AnswerAdminApiSiteinfoLegalPut**](AdminApi.md#AnswerAdminApiSiteinfoLegalPut) | **Put** /answer/admin/api/siteinfo/legal | update site legal info +[**AnswerAdminApiSiteinfoLoginGet**](AdminApi.md#AnswerAdminApiSiteinfoLoginGet) | **Get** /answer/admin/api/siteinfo/login | get site info login config +[**AnswerAdminApiSiteinfoLoginPut**](AdminApi.md#AnswerAdminApiSiteinfoLoginPut) | **Put** /answer/admin/api/siteinfo/login | update site login +[**AnswerAdminApiSiteinfoSeoGet**](AdminApi.md#AnswerAdminApiSiteinfoSeoGet) | **Get** /answer/admin/api/siteinfo/seo | get site seo information +[**AnswerAdminApiSiteinfoSeoPut**](AdminApi.md#AnswerAdminApiSiteinfoSeoPut) | **Put** /answer/admin/api/siteinfo/seo | update site seo information +[**AnswerAdminApiSiteinfoThemeGet**](AdminApi.md#AnswerAdminApiSiteinfoThemeGet) | **Get** /answer/admin/api/siteinfo/theme | get site info theme config +[**AnswerAdminApiSiteinfoThemePut**](AdminApi.md#AnswerAdminApiSiteinfoThemePut) | **Put** /answer/admin/api/siteinfo/theme | update site custom css html config +[**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 +[**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 +[**AnswerAdminApiUsersPageGet**](AdminApi.md#AnswerAdminApiUsersPageGet) | **Get** /answer/admin/api/users/page | get user page + + + +## AnswerAdminApiAnswerPageGet + +> HandlerRespBody AnswerAdminApiAnswerPageGet(ctx).Page(page).PageSize(pageSize).Status(status).Query(query).QuestionId(questionId).Execute() + +AdminSearchAnswerList + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + page := int32(56) // int32 | page size (optional) + pageSize := int32(56) // int32 | page size (optional) + status := "status_example" // string | user status (optional) + query := "query_example" // string | answer id or question title (optional) + questionId := "questionId_example" // string | question id (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiAnswerPageGet(context.Background()).Page(page).PageSize(pageSize).Status(status).Query(query).QuestionId(questionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiAnswerPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiAnswerPageGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiAnswerPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiAnswerPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | page size | + **pageSize** | **int32** | page size | + **status** | **string** | user status | + **query** | **string** | answer id or question title | + **questionId** | **string** | question id | + +### 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) + + +## AnswerAdminApiAnswerStatusPut + +> HandlerRespBody AnswerAdminApiAnswerStatusPut(ctx).Data(data).Execute() + +AdminSetAnswerStatus + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaAdminSetAnswerStatusRequest() // SchemaAdminSetAnswerStatusRequest | AdminSetAnswerStatusRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiAnswerStatusPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiAnswerStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiAnswerStatusPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiAnswerStatusPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiAnswerStatusPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaAdminSetAnswerStatusRequest**](SchemaAdminSetAnswerStatusRequest.md) | AdminSetAnswerStatusRequest | + +### 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) + + +## AnswerAdminApiDashboardGet + +> HandlerRespBody AnswerAdminApiDashboardGet(ctx).Execute() + +DashboardInfo + + + +### 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.AnswerAdminApiDashboardGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiDashboardGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiDashboardGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiDashboardGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiDashboardGetRequest 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) + + +## AnswerAdminApiQuestionPageGet + +> HandlerRespBody AnswerAdminApiQuestionPageGet(ctx).Page(page).PageSize(pageSize).Status(status).Query(query).Execute() + +AdminSearchList + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + page := int32(56) // int32 | page size (optional) + pageSize := int32(56) // int32 | page size (optional) + status := "status_example" // string | user status (optional) + query := "query_example" // string | question id or title (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiQuestionPageGet(context.Background()).Page(page).PageSize(pageSize).Status(status).Query(query).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiQuestionPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiQuestionPageGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiQuestionPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiQuestionPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | page size | + **pageSize** | **int32** | page size | + **status** | **string** | user status | + **query** | **string** | question id or title | + +### 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) + + +## AnswerAdminApiQuestionStatusPut + +> HandlerRespBody AnswerAdminApiQuestionStatusPut(ctx).Data(data).Execute() + +AdminSetQuestionStatus + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaAdminSetQuestionStatusRequest() // SchemaAdminSetQuestionStatusRequest | AdminSetQuestionStatusRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiQuestionStatusPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiQuestionStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiQuestionStatusPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiQuestionStatusPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiQuestionStatusPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaAdminSetQuestionStatusRequest**](SchemaAdminSetQuestionStatusRequest.md) | AdminSetQuestionStatusRequest | + +### 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) + + +## AnswerAdminApiReportPut + +> HandlerRespBody AnswerAdminApiReportPut(ctx).Data(data).Execute() + +handle flag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaReportHandleReq(int32(123), "Id_example") // SchemaReportHandleReq | flag + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiReportPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiReportPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiReportPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiReportPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiReportPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaReportHandleReq**](SchemaReportHandleReq.md) | flag | + +### 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) + + +## AnswerAdminApiReportsPageGet + +> HandlerRespBody AnswerAdminApiReportsPageGet(ctx).Status(status).ObjectType(objectType).Page(page).PageSize(pageSize).Execute() + +list report page + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + status := "status_example" // string | status + objectType := "objectType_example" // string | object_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.AdminApi.AnswerAdminApiReportsPageGet(context.Background()).Status(status).ObjectType(objectType).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiReportsPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiReportsPageGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiReportsPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiReportsPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **string** | status | + **objectType** | **string** | object_type | + **page** | **int32** | page size | + **pageSize** | **int32** | page size | + +### 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) + + +## AnswerAdminApiRolesGet + +> AnswerAdminApiRolesGet200Response AnswerAdminApiRolesGet(ctx).Execute() + +get role 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.AdminApi.AnswerAdminApiRolesGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiRolesGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiRolesGet`: AnswerAdminApiRolesGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiRolesGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiRolesGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiRolesGet200Response**](AnswerAdminApiRolesGet200Response.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) + + +## AnswerAdminApiSettingSmtpGet + +> AnswerAdminApiSettingSmtpGet200Response AnswerAdminApiSettingSmtpGet(ctx).Execute() + +GetSMTPConfig get smtp 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.AnswerAdminApiSettingSmtpGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSettingSmtpGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSettingSmtpGet`: AnswerAdminApiSettingSmtpGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSettingSmtpGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSettingSmtpGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSettingSmtpGet200Response**](AnswerAdminApiSettingSmtpGet200Response.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) + + +## AnswerAdminApiSettingSmtpPut + +> HandlerRespBody AnswerAdminApiSettingSmtpPut(ctx).Data(data).Execute() + +update smtp config + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdateSMTPConfigReq() // SchemaUpdateSMTPConfigReq | smtp config + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiSettingSmtpPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSettingSmtpPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSettingSmtpPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSettingSmtpPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSettingSmtpPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdateSMTPConfigReq**](SchemaUpdateSMTPConfigReq.md) | smtp 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) + + +## AnswerAdminApiSiteinfoBrandingGet + +> AnswerAdminApiSiteinfoBrandingGet200Response AnswerAdminApiSiteinfoBrandingGet(ctx).Execute() + +get site interface + + + +### 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.AnswerAdminApiSiteinfoBrandingGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoBrandingGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoBrandingGet`: AnswerAdminApiSiteinfoBrandingGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoBrandingGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoBrandingGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSiteinfoBrandingGet200Response**](AnswerAdminApiSiteinfoBrandingGet200Response.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) + + +## AnswerAdminApiSiteinfoBrandingPut + +> HandlerRespBody AnswerAdminApiSiteinfoBrandingPut(ctx).Data(data).Execute() + +update site info branding + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSiteBrandingReq() // SchemaSiteBrandingReq | branding info + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoBrandingPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoBrandingPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoBrandingPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoBrandingPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoBrandingPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSiteBrandingReq**](SchemaSiteBrandingReq.md) | branding 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) + + +## AnswerAdminApiSiteinfoCustomCssHtmlGet + +> AnswerAdminApiSiteinfoCustomCssHtmlGet200Response AnswerAdminApiSiteinfoCustomCssHtmlGet(ctx).Execute() + +get site info custom html css 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.AnswerAdminApiSiteinfoCustomCssHtmlGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoCustomCssHtmlGet`: AnswerAdminApiSiteinfoCustomCssHtmlGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoCustomCssHtmlGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSiteinfoCustomCssHtmlGet200Response**](AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.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) + + +## AnswerAdminApiSiteinfoCustomCssHtmlPut + +> HandlerRespBody AnswerAdminApiSiteinfoCustomCssHtmlPut(ctx).Data(data).Execute() + +update site custom css html config + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSiteCustomCssHTMLReq() // SchemaSiteCustomCssHTMLReq | login info + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoCustomCssHtmlPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoCustomCssHtmlPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSiteCustomCssHTMLReq**](SchemaSiteCustomCssHTMLReq.md) | login 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) + + +## AnswerAdminApiSiteinfoGeneralGet + +> AnswerAdminApiSiteinfoGeneralGet200Response AnswerAdminApiSiteinfoGeneralGet(ctx).Execute() + +get site general information + + + +### 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.AnswerAdminApiSiteinfoGeneralGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoGeneralGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoGeneralGet`: AnswerAdminApiSiteinfoGeneralGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoGeneralGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoGeneralGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSiteinfoGeneralGet200Response**](AnswerAdminApiSiteinfoGeneralGet200Response.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) + + +## AnswerAdminApiSiteinfoGeneralPut + +> HandlerRespBody AnswerAdminApiSiteinfoGeneralPut(ctx).Data(data).Execute() + +update site general information + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSiteGeneralReq("ContactEmail_example", "Name_example", "SiteUrl_example") // SchemaSiteGeneralReq | general + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoGeneralPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoGeneralPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoGeneralPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoGeneralPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoGeneralPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSiteGeneralReq**](SchemaSiteGeneralReq.md) | general | + +### 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) + + +## AnswerAdminApiSiteinfoInterfaceGet + +> AnswerAdminApiSiteinfoInterfaceGet200Response AnswerAdminApiSiteinfoInterfaceGet(ctx).Execute() + +get site interface + + + +### 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.AnswerAdminApiSiteinfoInterfaceGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoInterfaceGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoInterfaceGet`: AnswerAdminApiSiteinfoInterfaceGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoInterfaceGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoInterfaceGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSiteinfoInterfaceGet200Response**](AnswerAdminApiSiteinfoInterfaceGet200Response.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) + + +## AnswerAdminApiSiteinfoInterfacePut + +> HandlerRespBody AnswerAdminApiSiteinfoInterfacePut(ctx).Data(data).Execute() + +update site info interface + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSiteInterfaceReq("DefaultAvatar_example", "Language_example", "TimeZone_example") // SchemaSiteInterfaceReq | general + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoInterfacePut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoInterfacePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoInterfacePut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoInterfacePut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoInterfacePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSiteInterfaceReq**](SchemaSiteInterfaceReq.md) | general | + +### 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) + + +## AnswerAdminApiSiteinfoLegalGet + +> AnswerAdminApiSiteinfoLegalGet200Response AnswerAdminApiSiteinfoLegalGet(ctx).Execute() + +Set the legal information for the site + + + +### 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.AnswerAdminApiSiteinfoLegalGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLegalGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoLegalGet`: AnswerAdminApiSiteinfoLegalGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLegalGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoLegalGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSiteinfoLegalGet200Response**](AnswerAdminApiSiteinfoLegalGet200Response.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) + + +## AnswerAdminApiSiteinfoLegalPut + +> HandlerRespBody AnswerAdminApiSiteinfoLegalPut(ctx).Data(data).Execute() + +update site legal info + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSiteLegalReq() // SchemaSiteLegalReq | write info + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLegalPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLegalPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoLegalPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLegalPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoLegalPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSiteLegalReq**](SchemaSiteLegalReq.md) | write 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) + + +## AnswerAdminApiSiteinfoLoginGet + +> AnswerAdminApiSiteinfoLoginGet200Response AnswerAdminApiSiteinfoLoginGet(ctx).Execute() + +get site info login 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.AnswerAdminApiSiteinfoLoginGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLoginGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoLoginGet`: AnswerAdminApiSiteinfoLoginGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLoginGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoLoginGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSiteinfoLoginGet200Response**](AnswerAdminApiSiteinfoLoginGet200Response.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) + + +## AnswerAdminApiSiteinfoLoginPut + +> HandlerRespBody AnswerAdminApiSiteinfoLoginPut(ctx).Data(data).Execute() + +update site login + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSiteLoginReq() // SchemaSiteLoginReq | login info + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLoginPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoLoginPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoLoginPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoLoginPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoLoginPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSiteLoginReq**](SchemaSiteLoginReq.md) | login 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) + + +## AnswerAdminApiSiteinfoSeoGet + +> AnswerAdminApiSiteinfoSeoGet200Response AnswerAdminApiSiteinfoSeoGet(ctx).Execute() + +get site seo information + + + +### 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.AnswerAdminApiSiteinfoSeoGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoSeoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoSeoGet`: AnswerAdminApiSiteinfoSeoGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoSeoGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoSeoGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSiteinfoSeoGet200Response**](AnswerAdminApiSiteinfoSeoGet200Response.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) + + +## AnswerAdminApiSiteinfoSeoPut + +> HandlerRespBody AnswerAdminApiSiteinfoSeoPut(ctx).Data(data).Execute() + +update site seo information + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSiteSeoReq(int32(123), "Robots_example") // SchemaSiteSeoReq | seo + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoSeoPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoSeoPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoSeoPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoSeoPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoSeoPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSiteSeoReq**](SchemaSiteSeoReq.md) | seo | + +### 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) + + +## AnswerAdminApiSiteinfoThemeGet + +> AnswerAdminApiSiteinfoThemeGet200Response AnswerAdminApiSiteinfoThemeGet(ctx).Execute() + +get site info theme 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.AnswerAdminApiSiteinfoThemeGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoThemeGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoThemeGet`: AnswerAdminApiSiteinfoThemeGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoThemeGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoThemeGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSiteinfoThemeGet200Response**](AnswerAdminApiSiteinfoThemeGet200Response.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) + + +## AnswerAdminApiSiteinfoThemePut + +> HandlerRespBody AnswerAdminApiSiteinfoThemePut(ctx).Data(data).Execute() + +update site custom css html config + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSiteThemeReq("Theme_example") // SchemaSiteThemeReq | login info + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoThemePut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoThemePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoThemePut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoThemePut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoThemePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSiteThemeReq**](SchemaSiteThemeReq.md) | login 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() + +get site interface + + + +### 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.AnswerAdminApiSiteinfoWriteGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoWriteGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoWriteGet`: AnswerAdminApiSiteinfoWriteGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoWriteGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoWriteGetRequest struct via the builder pattern + + +### Return type + +[**AnswerAdminApiSiteinfoWriteGet200Response**](AnswerAdminApiSiteinfoWriteGet200Response.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) + + +## AnswerAdminApiSiteinfoWritePut + +> HandlerRespBody AnswerAdminApiSiteinfoWritePut(ctx).Data(data).Execute() + +update site write info + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaSiteWriteReq() // SchemaSiteWriteReq | write info + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiSiteinfoWritePut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiSiteinfoWritePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiSiteinfoWritePut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiSiteinfoWritePut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiSiteinfoWritePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaSiteWriteReq**](SchemaSiteWriteReq.md) | write 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) + + +## AnswerAdminApiThemeOptionsGet + +> HandlerRespBody AnswerAdminApiThemeOptionsGet(ctx).Execute() + +Get theme options + + + +### 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.AnswerAdminApiThemeOptionsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiThemeOptionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiThemeOptionsGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiThemeOptionsGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiThemeOptionsGetRequest 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) + + +## AnswerAdminApiUserPasswordPut + +> HandlerRespBody AnswerAdminApiUserPasswordPut(ctx).Data(data).Execute() + +update user password + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdateUserPasswordReq("Password_example", "UserId_example") // SchemaUpdateUserPasswordReq | user + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiUserPasswordPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserPasswordPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiUserPasswordPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserPasswordPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiUserPasswordPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdateUserPasswordReq**](SchemaUpdateUserPasswordReq.md) | user | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerAdminApiUserPost + +> HandlerRespBody AnswerAdminApiUserPost(ctx).Data(data).Execute() + +add user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaAddUserReq("DisplayName_example", "Email_example", "Password_example") // SchemaAddUserReq | user + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiUserPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiUserPost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiUserPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaAddUserReq**](SchemaAddUserReq.md) | user | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerAdminApiUserRolePut + +> HandlerRespBody AnswerAdminApiUserRolePut(ctx).Data(data).Execute() + +update user role + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdateUserRoleReq(int32(123), "UserId_example") // SchemaUpdateUserRoleReq | user + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiUserRolePut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserRolePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiUserRolePut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserRolePut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiUserRolePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdateUserRoleReq**](SchemaUpdateUserRoleReq.md) | user | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerAdminApiUserStatusPut + +> HandlerRespBody AnswerAdminApiUserStatusPut(ctx).Data(data).Execute() + +update user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdateUserStatusReq("Status_example", "UserId_example") // SchemaUpdateUserStatusReq | user + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiUserStatusPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUserStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiUserStatusPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUserStatusPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiUserStatusPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdateUserStatusReq**](SchemaUpdateUserStatusReq.md) | user | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerAdminApiUsersPageGet + +> AnswerAdminApiUsersPageGet200Response AnswerAdminApiUsersPageGet(ctx).Page(page).PageSize(pageSize).Query(query).Staff(staff).Status(status).Execute() + +get user page + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + page := int32(56) // int32 | page size (optional) + pageSize := int32(56) // int32 | page size (optional) + query := "query_example" // string | search query: email, username or id:[id] (optional) + staff := true // bool | staff user (optional) + status := "status_example" // string | user status (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AdminApi.AnswerAdminApiUsersPageGet(context.Background()).Page(page).PageSize(pageSize).Query(query).Staff(staff).Status(status).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.AnswerAdminApiUsersPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiUsersPageGet`: AnswerAdminApiUsersPageGet200Response + fmt.Fprintf(os.Stdout, "Response from `AdminApi.AnswerAdminApiUsersPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiUsersPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | page size | + **pageSize** | **int32** | page size | + **query** | **string** | search query: email, username or id:[id] | + **staff** | **bool** | staff user | + **status** | **string** | user status | + +### Return type + +[**AnswerAdminApiUsersPageGet200Response**](AnswerAdminApiUsersPageGet200Response.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/AnswerAdminApiRolesGet200Response.md b/docs/AnswerAdminApiRolesGet200Response.md new file mode 100644 index 0000000..5549730 --- /dev/null +++ b/docs/AnswerAdminApiRolesGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiRolesGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]SchemaGetRoleResp**](SchemaGetRoleResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiRolesGet200Response + +`func NewAnswerAdminApiRolesGet200Response() *AnswerAdminApiRolesGet200Response` + +NewAnswerAdminApiRolesGet200Response instantiates a new AnswerAdminApiRolesGet200Response 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 + +### NewAnswerAdminApiRolesGet200ResponseWithDefaults + +`func NewAnswerAdminApiRolesGet200ResponseWithDefaults() *AnswerAdminApiRolesGet200Response` + +NewAnswerAdminApiRolesGet200ResponseWithDefaults instantiates a new AnswerAdminApiRolesGet200Response 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 *AnswerAdminApiRolesGet200Response) GetData() []SchemaGetRoleResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiRolesGet200Response) GetDataOk() (*[]SchemaGetRoleResp, 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 *AnswerAdminApiRolesGet200Response) SetData(v []SchemaGetRoleResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiRolesGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiRolesGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiRolesGet200Response) 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/AnswerAdminApiSettingSmtpGet200Response.md b/docs/AnswerAdminApiSettingSmtpGet200Response.md new file mode 100644 index 0000000..2874cb9 --- /dev/null +++ b/docs/AnswerAdminApiSettingSmtpGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSettingSmtpGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetSMTPConfigResp**](SchemaGetSMTPConfigResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSettingSmtpGet200Response + +`func NewAnswerAdminApiSettingSmtpGet200Response() *AnswerAdminApiSettingSmtpGet200Response` + +NewAnswerAdminApiSettingSmtpGet200Response instantiates a new AnswerAdminApiSettingSmtpGet200Response 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 + +### NewAnswerAdminApiSettingSmtpGet200ResponseWithDefaults + +`func NewAnswerAdminApiSettingSmtpGet200ResponseWithDefaults() *AnswerAdminApiSettingSmtpGet200Response` + +NewAnswerAdminApiSettingSmtpGet200ResponseWithDefaults instantiates a new AnswerAdminApiSettingSmtpGet200Response 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 *AnswerAdminApiSettingSmtpGet200Response) GetData() SchemaGetSMTPConfigResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSettingSmtpGet200Response) GetDataOk() (*SchemaGetSMTPConfigResp, 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 *AnswerAdminApiSettingSmtpGet200Response) SetData(v SchemaGetSMTPConfigResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSettingSmtpGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSettingSmtpGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSettingSmtpGet200Response) 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 *AnswerAdminApiSettingSmtpGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSettingSmtpGet200Response) 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/AnswerAdminApiSiteinfoBrandingGet200Response.md b/docs/AnswerAdminApiSiteinfoBrandingGet200Response.md new file mode 100644 index 0000000..95316be --- /dev/null +++ b/docs/AnswerAdminApiSiteinfoBrandingGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSiteinfoBrandingGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteBrandingResp**](SchemaSiteBrandingResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSiteinfoBrandingGet200Response + +`func NewAnswerAdminApiSiteinfoBrandingGet200Response() *AnswerAdminApiSiteinfoBrandingGet200Response` + +NewAnswerAdminApiSiteinfoBrandingGet200Response instantiates a new AnswerAdminApiSiteinfoBrandingGet200Response 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 + +### NewAnswerAdminApiSiteinfoBrandingGet200ResponseWithDefaults + +`func NewAnswerAdminApiSiteinfoBrandingGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoBrandingGet200Response` + +NewAnswerAdminApiSiteinfoBrandingGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoBrandingGet200Response 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 *AnswerAdminApiSiteinfoBrandingGet200Response) GetData() SchemaSiteBrandingResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetDataOk() (*SchemaSiteBrandingResp, 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 *AnswerAdminApiSiteinfoBrandingGet200Response) SetData(v SchemaSiteBrandingResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) 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 *AnswerAdminApiSiteinfoBrandingGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoBrandingGet200Response) 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/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md b/docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md new file mode 100644 index 0000000..8f28443 --- /dev/null +++ b/docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSiteinfoCustomCssHtmlGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteCustomCssHTMLResp**](SchemaSiteCustomCssHTMLResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSiteinfoCustomCssHtmlGet200Response + +`func NewAnswerAdminApiSiteinfoCustomCssHtmlGet200Response() *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response` + +NewAnswerAdminApiSiteinfoCustomCssHtmlGet200Response instantiates a new AnswerAdminApiSiteinfoCustomCssHtmlGet200Response 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 + +### NewAnswerAdminApiSiteinfoCustomCssHtmlGet200ResponseWithDefaults + +`func NewAnswerAdminApiSiteinfoCustomCssHtmlGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response` + +NewAnswerAdminApiSiteinfoCustomCssHtmlGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoCustomCssHtmlGet200Response 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 *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetData() SchemaSiteCustomCssHTMLResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetDataOk() (*SchemaSiteCustomCssHTMLResp, 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 *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetData(v SchemaSiteCustomCssHTMLResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) 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 *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) 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/AnswerAdminApiSiteinfoGeneralGet200Response.md b/docs/AnswerAdminApiSiteinfoGeneralGet200Response.md new file mode 100644 index 0000000..ec16837 --- /dev/null +++ b/docs/AnswerAdminApiSiteinfoGeneralGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSiteinfoGeneralGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteGeneralResp**](SchemaSiteGeneralResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSiteinfoGeneralGet200Response + +`func NewAnswerAdminApiSiteinfoGeneralGet200Response() *AnswerAdminApiSiteinfoGeneralGet200Response` + +NewAnswerAdminApiSiteinfoGeneralGet200Response instantiates a new AnswerAdminApiSiteinfoGeneralGet200Response 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 + +### NewAnswerAdminApiSiteinfoGeneralGet200ResponseWithDefaults + +`func NewAnswerAdminApiSiteinfoGeneralGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoGeneralGet200Response` + +NewAnswerAdminApiSiteinfoGeneralGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoGeneralGet200Response 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 *AnswerAdminApiSiteinfoGeneralGet200Response) GetData() SchemaSiteGeneralResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetDataOk() (*SchemaSiteGeneralResp, 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 *AnswerAdminApiSiteinfoGeneralGet200Response) SetData(v SchemaSiteGeneralResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) 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 *AnswerAdminApiSiteinfoGeneralGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoGeneralGet200Response) 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/AnswerAdminApiSiteinfoInterfaceGet200Response.md b/docs/AnswerAdminApiSiteinfoInterfaceGet200Response.md new file mode 100644 index 0000000..2b72385 --- /dev/null +++ b/docs/AnswerAdminApiSiteinfoInterfaceGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSiteinfoInterfaceGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteInterfaceResp**](SchemaSiteInterfaceResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSiteinfoInterfaceGet200Response + +`func NewAnswerAdminApiSiteinfoInterfaceGet200Response() *AnswerAdminApiSiteinfoInterfaceGet200Response` + +NewAnswerAdminApiSiteinfoInterfaceGet200Response instantiates a new AnswerAdminApiSiteinfoInterfaceGet200Response 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 + +### NewAnswerAdminApiSiteinfoInterfaceGet200ResponseWithDefaults + +`func NewAnswerAdminApiSiteinfoInterfaceGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoInterfaceGet200Response` + +NewAnswerAdminApiSiteinfoInterfaceGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoInterfaceGet200Response 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 *AnswerAdminApiSiteinfoInterfaceGet200Response) GetData() SchemaSiteInterfaceResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetDataOk() (*SchemaSiteInterfaceResp, 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 *AnswerAdminApiSiteinfoInterfaceGet200Response) SetData(v SchemaSiteInterfaceResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) 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 *AnswerAdminApiSiteinfoInterfaceGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) 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/AnswerAdminApiSiteinfoLegalGet200Response.md b/docs/AnswerAdminApiSiteinfoLegalGet200Response.md new file mode 100644 index 0000000..e6b4f52 --- /dev/null +++ b/docs/AnswerAdminApiSiteinfoLegalGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSiteinfoLegalGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteLegalResp**](SchemaSiteLegalResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSiteinfoLegalGet200Response + +`func NewAnswerAdminApiSiteinfoLegalGet200Response() *AnswerAdminApiSiteinfoLegalGet200Response` + +NewAnswerAdminApiSiteinfoLegalGet200Response instantiates a new AnswerAdminApiSiteinfoLegalGet200Response 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 + +### NewAnswerAdminApiSiteinfoLegalGet200ResponseWithDefaults + +`func NewAnswerAdminApiSiteinfoLegalGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoLegalGet200Response` + +NewAnswerAdminApiSiteinfoLegalGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoLegalGet200Response 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 *AnswerAdminApiSiteinfoLegalGet200Response) GetData() SchemaSiteLegalResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetDataOk() (*SchemaSiteLegalResp, 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 *AnswerAdminApiSiteinfoLegalGet200Response) SetData(v SchemaSiteLegalResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) 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 *AnswerAdminApiSiteinfoLegalGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoLegalGet200Response) 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/AnswerAdminApiSiteinfoLoginGet200Response.md b/docs/AnswerAdminApiSiteinfoLoginGet200Response.md new file mode 100644 index 0000000..fd38014 --- /dev/null +++ b/docs/AnswerAdminApiSiteinfoLoginGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSiteinfoLoginGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteLoginResp**](SchemaSiteLoginResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSiteinfoLoginGet200Response + +`func NewAnswerAdminApiSiteinfoLoginGet200Response() *AnswerAdminApiSiteinfoLoginGet200Response` + +NewAnswerAdminApiSiteinfoLoginGet200Response instantiates a new AnswerAdminApiSiteinfoLoginGet200Response 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 + +### NewAnswerAdminApiSiteinfoLoginGet200ResponseWithDefaults + +`func NewAnswerAdminApiSiteinfoLoginGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoLoginGet200Response` + +NewAnswerAdminApiSiteinfoLoginGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoLoginGet200Response 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 *AnswerAdminApiSiteinfoLoginGet200Response) GetData() SchemaSiteLoginResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetDataOk() (*SchemaSiteLoginResp, 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 *AnswerAdminApiSiteinfoLoginGet200Response) SetData(v SchemaSiteLoginResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) 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 *AnswerAdminApiSiteinfoLoginGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoLoginGet200Response) 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/AnswerAdminApiSiteinfoSeoGet200Response.md b/docs/AnswerAdminApiSiteinfoSeoGet200Response.md new file mode 100644 index 0000000..320bc8b --- /dev/null +++ b/docs/AnswerAdminApiSiteinfoSeoGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSiteinfoSeoGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteSeoResp**](SchemaSiteSeoResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSiteinfoSeoGet200Response + +`func NewAnswerAdminApiSiteinfoSeoGet200Response() *AnswerAdminApiSiteinfoSeoGet200Response` + +NewAnswerAdminApiSiteinfoSeoGet200Response instantiates a new AnswerAdminApiSiteinfoSeoGet200Response 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 + +### NewAnswerAdminApiSiteinfoSeoGet200ResponseWithDefaults + +`func NewAnswerAdminApiSiteinfoSeoGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoSeoGet200Response` + +NewAnswerAdminApiSiteinfoSeoGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoSeoGet200Response 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 *AnswerAdminApiSiteinfoSeoGet200Response) GetData() SchemaSiteSeoResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetDataOk() (*SchemaSiteSeoResp, 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 *AnswerAdminApiSiteinfoSeoGet200Response) SetData(v SchemaSiteSeoResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) 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 *AnswerAdminApiSiteinfoSeoGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoSeoGet200Response) 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/AnswerAdminApiSiteinfoThemeGet200Response.md b/docs/AnswerAdminApiSiteinfoThemeGet200Response.md new file mode 100644 index 0000000..2d743db --- /dev/null +++ b/docs/AnswerAdminApiSiteinfoThemeGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSiteinfoThemeGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteThemeResp**](SchemaSiteThemeResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSiteinfoThemeGet200Response + +`func NewAnswerAdminApiSiteinfoThemeGet200Response() *AnswerAdminApiSiteinfoThemeGet200Response` + +NewAnswerAdminApiSiteinfoThemeGet200Response instantiates a new AnswerAdminApiSiteinfoThemeGet200Response 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 + +### NewAnswerAdminApiSiteinfoThemeGet200ResponseWithDefaults + +`func NewAnswerAdminApiSiteinfoThemeGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoThemeGet200Response` + +NewAnswerAdminApiSiteinfoThemeGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoThemeGet200Response 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 *AnswerAdminApiSiteinfoThemeGet200Response) GetData() SchemaSiteThemeResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetDataOk() (*SchemaSiteThemeResp, 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 *AnswerAdminApiSiteinfoThemeGet200Response) SetData(v SchemaSiteThemeResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) 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 *AnswerAdminApiSiteinfoThemeGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoThemeGet200Response) 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/AnswerAdminApiSiteinfoWriteGet200Response.md b/docs/AnswerAdminApiSiteinfoWriteGet200Response.md new file mode 100644 index 0000000..cae171f --- /dev/null +++ b/docs/AnswerAdminApiSiteinfoWriteGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiSiteinfoWriteGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteWriteResp**](SchemaSiteWriteResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiSiteinfoWriteGet200Response + +`func NewAnswerAdminApiSiteinfoWriteGet200Response() *AnswerAdminApiSiteinfoWriteGet200Response` + +NewAnswerAdminApiSiteinfoWriteGet200Response instantiates a new AnswerAdminApiSiteinfoWriteGet200Response 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 + +### NewAnswerAdminApiSiteinfoWriteGet200ResponseWithDefaults + +`func NewAnswerAdminApiSiteinfoWriteGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoWriteGet200Response` + +NewAnswerAdminApiSiteinfoWriteGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoWriteGet200Response 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 *AnswerAdminApiSiteinfoWriteGet200Response) GetData() SchemaSiteWriteResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetDataOk() (*SchemaSiteWriteResp, 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 *AnswerAdminApiSiteinfoWriteGet200Response) SetData(v SchemaSiteWriteResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) 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 *AnswerAdminApiSiteinfoWriteGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiSiteinfoWriteGet200Response) 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/AnswerAdminApiUsersPageGet200Response.md b/docs/AnswerAdminApiUsersPageGet200Response.md new file mode 100644 index 0000000..103d895 --- /dev/null +++ b/docs/AnswerAdminApiUsersPageGet200Response.md @@ -0,0 +1,82 @@ +# AnswerAdminApiUsersPageGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**AnswerAdminApiUsersPageGet200ResponseData**](AnswerAdminApiUsersPageGet200ResponseData.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerAdminApiUsersPageGet200Response + +`func NewAnswerAdminApiUsersPageGet200Response() *AnswerAdminApiUsersPageGet200Response` + +NewAnswerAdminApiUsersPageGet200Response instantiates a new AnswerAdminApiUsersPageGet200Response 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 + +### NewAnswerAdminApiUsersPageGet200ResponseWithDefaults + +`func NewAnswerAdminApiUsersPageGet200ResponseWithDefaults() *AnswerAdminApiUsersPageGet200Response` + +NewAnswerAdminApiUsersPageGet200ResponseWithDefaults instantiates a new AnswerAdminApiUsersPageGet200Response 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 *AnswerAdminApiUsersPageGet200Response) GetData() AnswerAdminApiUsersPageGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerAdminApiUsersPageGet200Response) GetDataOk() (*AnswerAdminApiUsersPageGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerAdminApiUsersPageGet200Response) SetData(v AnswerAdminApiUsersPageGet200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerAdminApiUsersPageGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerAdminApiUsersPageGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerAdminApiUsersPageGet200Response) 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 *AnswerAdminApiUsersPageGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerAdminApiUsersPageGet200Response) 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/AnswerAdminApiUsersPageGet200ResponseData.md b/docs/AnswerAdminApiUsersPageGet200ResponseData.md new file mode 100644 index 0000000..98c770a --- /dev/null +++ b/docs/AnswerAdminApiUsersPageGet200ResponseData.md @@ -0,0 +1,108 @@ +# AnswerAdminApiUsersPageGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**List** | Pointer to **map[string]interface{}** | | [optional] +**Records** | Pointer to [**[]SchemaGetUserPageResp**](SchemaGetUserPageResp.md) | | [optional] + +## Methods + +### NewAnswerAdminApiUsersPageGet200ResponseData + +`func NewAnswerAdminApiUsersPageGet200ResponseData() *AnswerAdminApiUsersPageGet200ResponseData` + +NewAnswerAdminApiUsersPageGet200ResponseData instantiates a new AnswerAdminApiUsersPageGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerAdminApiUsersPageGet200ResponseDataWithDefaults + +`func NewAnswerAdminApiUsersPageGet200ResponseDataWithDefaults() *AnswerAdminApiUsersPageGet200ResponseData` + +NewAnswerAdminApiUsersPageGet200ResponseDataWithDefaults instantiates a new AnswerAdminApiUsersPageGet200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetList + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetList() map[string]interface{}` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetListOk() (*map[string]interface{}, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) SetList(v map[string]interface{})` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) HasList() bool` + +HasList returns a boolean if a field has been set. + +### GetRecords + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetRecords() []SchemaGetUserPageResp` + +GetRecords returns the Records field if non-nil, zero value otherwise. + +### GetRecordsOk + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) GetRecordsOk() (*[]SchemaGetUserPageResp, bool)` + +GetRecordsOk returns a tuple with the Records field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecords + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) SetRecords(v []SchemaGetUserPageResp)` + +SetRecords sets Records field to given value. + +### HasRecords + +`func (o *AnswerAdminApiUsersPageGet200ResponseData) HasRecords() bool` + +HasRecords returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md b/docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md new file mode 100644 index 0000000..d99c221 --- /dev/null +++ b/docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md @@ -0,0 +1,56 @@ +# AnswerAdminApiUsersPageGet200ResponseDataAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Records** | Pointer to [**[]SchemaGetUserPageResp**](SchemaGetUserPageResp.md) | | [optional] + +## Methods + +### NewAnswerAdminApiUsersPageGet200ResponseDataAllOf + +`func NewAnswerAdminApiUsersPageGet200ResponseDataAllOf() *AnswerAdminApiUsersPageGet200ResponseDataAllOf` + +NewAnswerAdminApiUsersPageGet200ResponseDataAllOf instantiates a new AnswerAdminApiUsersPageGet200ResponseDataAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerAdminApiUsersPageGet200ResponseDataAllOfWithDefaults + +`func NewAnswerAdminApiUsersPageGet200ResponseDataAllOfWithDefaults() *AnswerAdminApiUsersPageGet200ResponseDataAllOf` + +NewAnswerAdminApiUsersPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerAdminApiUsersPageGet200ResponseDataAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRecords + +`func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) GetRecords() []SchemaGetUserPageResp` + +GetRecords returns the Records field if non-nil, zero value otherwise. + +### GetRecordsOk + +`func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) GetRecordsOk() (*[]SchemaGetUserPageResp, bool)` + +GetRecordsOk returns a tuple with the Records field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecords + +`func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) SetRecords(v []SchemaGetUserPageResp)` + +SetRecords sets Records field to given value. + +### HasRecords + +`func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) HasRecords() bool` + +HasRecords returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1ActivityTimelineGet200Response.md b/docs/AnswerApiV1ActivityTimelineGet200Response.md new file mode 100644 index 0000000..c549303 --- /dev/null +++ b/docs/AnswerApiV1ActivityTimelineGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1ActivityTimelineGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetObjectTimelineResp**](SchemaGetObjectTimelineResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1ActivityTimelineGet200Response + +`func NewAnswerApiV1ActivityTimelineGet200Response() *AnswerApiV1ActivityTimelineGet200Response` + +NewAnswerApiV1ActivityTimelineGet200Response instantiates a new AnswerApiV1ActivityTimelineGet200Response 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 + +### NewAnswerApiV1ActivityTimelineGet200ResponseWithDefaults + +`func NewAnswerApiV1ActivityTimelineGet200ResponseWithDefaults() *AnswerApiV1ActivityTimelineGet200Response` + +NewAnswerApiV1ActivityTimelineGet200ResponseWithDefaults instantiates a new AnswerApiV1ActivityTimelineGet200Response 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 *AnswerApiV1ActivityTimelineGet200Response) GetData() SchemaGetObjectTimelineResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1ActivityTimelineGet200Response) GetDataOk() (*SchemaGetObjectTimelineResp, 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 *AnswerApiV1ActivityTimelineGet200Response) SetData(v SchemaGetObjectTimelineResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1ActivityTimelineGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1ActivityTimelineGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1ActivityTimelineGet200Response) 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 *AnswerApiV1ActivityTimelineGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1ActivityTimelineGet200Response) 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/AnswerApiV1CollectionSwitchPost200Response.md b/docs/AnswerApiV1CollectionSwitchPost200Response.md new file mode 100644 index 0000000..0f97de5 --- /dev/null +++ b/docs/AnswerApiV1CollectionSwitchPost200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1CollectionSwitchPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaCollectionSwitchResp**](SchemaCollectionSwitchResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1CollectionSwitchPost200Response + +`func NewAnswerApiV1CollectionSwitchPost200Response() *AnswerApiV1CollectionSwitchPost200Response` + +NewAnswerApiV1CollectionSwitchPost200Response instantiates a new AnswerApiV1CollectionSwitchPost200Response 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 + +### NewAnswerApiV1CollectionSwitchPost200ResponseWithDefaults + +`func NewAnswerApiV1CollectionSwitchPost200ResponseWithDefaults() *AnswerApiV1CollectionSwitchPost200Response` + +NewAnswerApiV1CollectionSwitchPost200ResponseWithDefaults instantiates a new AnswerApiV1CollectionSwitchPost200Response 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 *AnswerApiV1CollectionSwitchPost200Response) GetData() SchemaCollectionSwitchResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1CollectionSwitchPost200Response) GetDataOk() (*SchemaCollectionSwitchResp, 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 *AnswerApiV1CollectionSwitchPost200Response) SetData(v SchemaCollectionSwitchResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1CollectionSwitchPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1CollectionSwitchPost200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1CollectionSwitchPost200Response) 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 *AnswerApiV1CollectionSwitchPost200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1CollectionSwitchPost200Response) 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/AnswerApiV1CommentGet200Response.md b/docs/AnswerApiV1CommentGet200Response.md new file mode 100644 index 0000000..264257b --- /dev/null +++ b/docs/AnswerApiV1CommentGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1CommentGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**AnswerApiV1CommentGet200ResponseData**](AnswerApiV1CommentGet200ResponseData.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1CommentGet200Response + +`func NewAnswerApiV1CommentGet200Response() *AnswerApiV1CommentGet200Response` + +NewAnswerApiV1CommentGet200Response instantiates a new AnswerApiV1CommentGet200Response 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 + +### NewAnswerApiV1CommentGet200ResponseWithDefaults + +`func NewAnswerApiV1CommentGet200ResponseWithDefaults() *AnswerApiV1CommentGet200Response` + +NewAnswerApiV1CommentGet200ResponseWithDefaults instantiates a new AnswerApiV1CommentGet200Response 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 *AnswerApiV1CommentGet200Response) GetData() AnswerApiV1CommentGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1CommentGet200Response) GetDataOk() (*AnswerApiV1CommentGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1CommentGet200Response) SetData(v AnswerApiV1CommentGet200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1CommentGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1CommentGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1CommentGet200Response) 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 *AnswerApiV1CommentGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1CommentGet200Response) 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/AnswerApiV1CommentGet200ResponseData.md b/docs/AnswerApiV1CommentGet200ResponseData.md new file mode 100644 index 0000000..19e3469 --- /dev/null +++ b/docs/AnswerApiV1CommentGet200ResponseData.md @@ -0,0 +1,82 @@ +# AnswerApiV1CommentGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**List** | Pointer to [**[]SchemaGetCommentResp**](SchemaGetCommentResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1CommentGet200ResponseData + +`func NewAnswerApiV1CommentGet200ResponseData() *AnswerApiV1CommentGet200ResponseData` + +NewAnswerApiV1CommentGet200ResponseData instantiates a new AnswerApiV1CommentGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1CommentGet200ResponseDataWithDefaults + +`func NewAnswerApiV1CommentGet200ResponseDataWithDefaults() *AnswerApiV1CommentGet200ResponseData` + +NewAnswerApiV1CommentGet200ResponseDataWithDefaults instantiates a new AnswerApiV1CommentGet200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *AnswerApiV1CommentGet200ResponseData) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *AnswerApiV1CommentGet200ResponseData) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *AnswerApiV1CommentGet200ResponseData) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *AnswerApiV1CommentGet200ResponseData) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetList + +`func (o *AnswerApiV1CommentGet200ResponseData) GetList() []SchemaGetCommentResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1CommentGet200ResponseData) GetListOk() (*[]SchemaGetCommentResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1CommentGet200ResponseData) SetList(v []SchemaGetCommentResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1CommentGet200ResponseData) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1CommentGet200ResponseDataAllOf.md b/docs/AnswerApiV1CommentGet200ResponseDataAllOf.md new file mode 100644 index 0000000..5943e39 --- /dev/null +++ b/docs/AnswerApiV1CommentGet200ResponseDataAllOf.md @@ -0,0 +1,56 @@ +# AnswerApiV1CommentGet200ResponseDataAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**List** | Pointer to [**[]SchemaGetCommentResp**](SchemaGetCommentResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1CommentGet200ResponseDataAllOf + +`func NewAnswerApiV1CommentGet200ResponseDataAllOf() *AnswerApiV1CommentGet200ResponseDataAllOf` + +NewAnswerApiV1CommentGet200ResponseDataAllOf instantiates a new AnswerApiV1CommentGet200ResponseDataAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1CommentGet200ResponseDataAllOfWithDefaults + +`func NewAnswerApiV1CommentGet200ResponseDataAllOfWithDefaults() *AnswerApiV1CommentGet200ResponseDataAllOf` + +NewAnswerApiV1CommentGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1CommentGet200ResponseDataAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetList + +`func (o *AnswerApiV1CommentGet200ResponseDataAllOf) GetList() []SchemaGetCommentResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1CommentGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetCommentResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1CommentGet200ResponseDataAllOf) SetList(v []SchemaGetCommentResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1CommentGet200ResponseDataAllOf) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1CommentPost200Response.md b/docs/AnswerApiV1CommentPost200Response.md new file mode 100644 index 0000000..d8a0ae7 --- /dev/null +++ b/docs/AnswerApiV1CommentPost200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1CommentPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetCommentResp**](SchemaGetCommentResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1CommentPost200Response + +`func NewAnswerApiV1CommentPost200Response() *AnswerApiV1CommentPost200Response` + +NewAnswerApiV1CommentPost200Response instantiates a new AnswerApiV1CommentPost200Response 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 + +### NewAnswerApiV1CommentPost200ResponseWithDefaults + +`func NewAnswerApiV1CommentPost200ResponseWithDefaults() *AnswerApiV1CommentPost200Response` + +NewAnswerApiV1CommentPost200ResponseWithDefaults instantiates a new AnswerApiV1CommentPost200Response 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 *AnswerApiV1CommentPost200Response) GetData() SchemaGetCommentResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1CommentPost200Response) GetDataOk() (*SchemaGetCommentResp, 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 *AnswerApiV1CommentPost200Response) SetData(v SchemaGetCommentResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1CommentPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1CommentPost200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1CommentPost200Response) 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 *AnswerApiV1CommentPost200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1CommentPost200Response) 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/AnswerApiV1FilePost200Response.md b/docs/AnswerApiV1FilePost200Response.md new file mode 100644 index 0000000..378119b --- /dev/null +++ b/docs/AnswerApiV1FilePost200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1FilePost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **string** | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1FilePost200Response + +`func NewAnswerApiV1FilePost200Response() *AnswerApiV1FilePost200Response` + +NewAnswerApiV1FilePost200Response instantiates a new AnswerApiV1FilePost200Response 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 + +### NewAnswerApiV1FilePost200ResponseWithDefaults + +`func NewAnswerApiV1FilePost200ResponseWithDefaults() *AnswerApiV1FilePost200Response` + +NewAnswerApiV1FilePost200ResponseWithDefaults instantiates a new AnswerApiV1FilePost200Response 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 *AnswerApiV1FilePost200Response) GetData() string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1FilePost200Response) GetDataOk() (*string, 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 *AnswerApiV1FilePost200Response) SetData(v string)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1FilePost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1FilePost200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1FilePost200Response) 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 *AnswerApiV1FilePost200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1FilePost200Response) 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/AnswerApiV1FollowPost200Response.md b/docs/AnswerApiV1FollowPost200Response.md new file mode 100644 index 0000000..e670a17 --- /dev/null +++ b/docs/AnswerApiV1FollowPost200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1FollowPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaFollowResp**](SchemaFollowResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1FollowPost200Response + +`func NewAnswerApiV1FollowPost200Response() *AnswerApiV1FollowPost200Response` + +NewAnswerApiV1FollowPost200Response instantiates a new AnswerApiV1FollowPost200Response 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 + +### NewAnswerApiV1FollowPost200ResponseWithDefaults + +`func NewAnswerApiV1FollowPost200ResponseWithDefaults() *AnswerApiV1FollowPost200Response` + +NewAnswerApiV1FollowPost200ResponseWithDefaults instantiates a new AnswerApiV1FollowPost200Response 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 *AnswerApiV1FollowPost200Response) GetData() SchemaFollowResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1FollowPost200Response) GetDataOk() (*SchemaFollowResp, 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 *AnswerApiV1FollowPost200Response) SetData(v SchemaFollowResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1FollowPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1FollowPost200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1FollowPost200Response) 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 *AnswerApiV1FollowPost200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1FollowPost200Response) 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/AnswerApiV1PersonalCommentPageGet200Response.md b/docs/AnswerApiV1PersonalCommentPageGet200Response.md new file mode 100644 index 0000000..944fb1b --- /dev/null +++ b/docs/AnswerApiV1PersonalCommentPageGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1PersonalCommentPageGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**AnswerApiV1PersonalCommentPageGet200ResponseData**](AnswerApiV1PersonalCommentPageGet200ResponseData.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1PersonalCommentPageGet200Response + +`func NewAnswerApiV1PersonalCommentPageGet200Response() *AnswerApiV1PersonalCommentPageGet200Response` + +NewAnswerApiV1PersonalCommentPageGet200Response instantiates a new AnswerApiV1PersonalCommentPageGet200Response 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 + +### NewAnswerApiV1PersonalCommentPageGet200ResponseWithDefaults + +`func NewAnswerApiV1PersonalCommentPageGet200ResponseWithDefaults() *AnswerApiV1PersonalCommentPageGet200Response` + +NewAnswerApiV1PersonalCommentPageGet200ResponseWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200Response 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 *AnswerApiV1PersonalCommentPageGet200Response) GetData() AnswerApiV1PersonalCommentPageGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetDataOk() (*AnswerApiV1PersonalCommentPageGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) SetData(v AnswerApiV1PersonalCommentPageGet200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) 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 *AnswerApiV1PersonalCommentPageGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1PersonalCommentPageGet200Response) 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/AnswerApiV1PersonalCommentPageGet200ResponseData.md b/docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md new file mode 100644 index 0000000..02ea835 --- /dev/null +++ b/docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md @@ -0,0 +1,82 @@ +# AnswerApiV1PersonalCommentPageGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**List** | Pointer to [**[]SchemaGetCommentPersonalWithPageResp**](SchemaGetCommentPersonalWithPageResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1PersonalCommentPageGet200ResponseData + +`func NewAnswerApiV1PersonalCommentPageGet200ResponseData() *AnswerApiV1PersonalCommentPageGet200ResponseData` + +NewAnswerApiV1PersonalCommentPageGet200ResponseData instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1PersonalCommentPageGet200ResponseDataWithDefaults + +`func NewAnswerApiV1PersonalCommentPageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalCommentPageGet200ResponseData` + +NewAnswerApiV1PersonalCommentPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetList + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetList() []SchemaGetCommentPersonalWithPageResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetListOk() (*[]SchemaGetCommentPersonalWithPageResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) SetList(v []SchemaGetCommentPersonalWithPageResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md b/docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md new file mode 100644 index 0000000..3e6af57 --- /dev/null +++ b/docs/AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf.md @@ -0,0 +1,56 @@ +# AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**List** | Pointer to [**[]SchemaGetCommentPersonalWithPageResp**](SchemaGetCommentPersonalWithPageResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf + +`func NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf() *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf` + +NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOfWithDefaults + +`func NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf` + +NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetList + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) GetList() []SchemaGetCommentPersonalWithPageResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetCommentPersonalWithPageResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) SetList(v []SchemaGetCommentPersonalWithPageResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1PersonalRankPageGet200Response.md b/docs/AnswerApiV1PersonalRankPageGet200Response.md new file mode 100644 index 0000000..69d4456 --- /dev/null +++ b/docs/AnswerApiV1PersonalRankPageGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1PersonalRankPageGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**AnswerApiV1PersonalRankPageGet200ResponseData**](AnswerApiV1PersonalRankPageGet200ResponseData.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1PersonalRankPageGet200Response + +`func NewAnswerApiV1PersonalRankPageGet200Response() *AnswerApiV1PersonalRankPageGet200Response` + +NewAnswerApiV1PersonalRankPageGet200Response instantiates a new AnswerApiV1PersonalRankPageGet200Response 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 + +### NewAnswerApiV1PersonalRankPageGet200ResponseWithDefaults + +`func NewAnswerApiV1PersonalRankPageGet200ResponseWithDefaults() *AnswerApiV1PersonalRankPageGet200Response` + +NewAnswerApiV1PersonalRankPageGet200ResponseWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200Response 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 *AnswerApiV1PersonalRankPageGet200Response) GetData() AnswerApiV1PersonalRankPageGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1PersonalRankPageGet200Response) GetDataOk() (*AnswerApiV1PersonalRankPageGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1PersonalRankPageGet200Response) SetData(v AnswerApiV1PersonalRankPageGet200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1PersonalRankPageGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1PersonalRankPageGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1PersonalRankPageGet200Response) 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 *AnswerApiV1PersonalRankPageGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1PersonalRankPageGet200Response) 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 new file mode 100644 index 0000000..9d8bf68 --- /dev/null +++ b/docs/AnswerApiV1PersonalRankPageGet200ResponseData.md @@ -0,0 +1,82 @@ +# AnswerApiV1PersonalRankPageGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**List** | Pointer to [**[]SchemaGetRankPersonalWithPageResp**](SchemaGetRankPersonalWithPageResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1PersonalRankPageGet200ResponseData + +`func NewAnswerApiV1PersonalRankPageGet200ResponseData() *AnswerApiV1PersonalRankPageGet200ResponseData` + +NewAnswerApiV1PersonalRankPageGet200ResponseData instantiates a new AnswerApiV1PersonalRankPageGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1PersonalRankPageGet200ResponseDataWithDefaults + +`func NewAnswerApiV1PersonalRankPageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalRankPageGet200ResponseData` + +NewAnswerApiV1PersonalRankPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetList + +`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetList() []SchemaGetRankPersonalWithPageResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetListOk() (*[]SchemaGetRankPersonalWithPageResp, 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)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1PersonalRankPageGet200ResponseData) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md b/docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md new file mode 100644 index 0000000..8beeebc --- /dev/null +++ b/docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md @@ -0,0 +1,56 @@ +# AnswerApiV1PersonalRankPageGet200ResponseDataAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**List** | Pointer to [**[]SchemaGetRankPersonalWithPageResp**](SchemaGetRankPersonalWithPageResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf + +`func NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf() *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf` + +NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalRankPageGet200ResponseDataAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults + +`func NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf` + +NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200ResponseDataAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetList + +`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetList() []SchemaGetRankPersonalWithPageResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetRankPersonalWithPageResp, 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)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1PersonalUserInfoGet200Response.md b/docs/AnswerApiV1PersonalUserInfoGet200Response.md new file mode 100644 index 0000000..fceee07 --- /dev/null +++ b/docs/AnswerApiV1PersonalUserInfoGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1PersonalUserInfoGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetOtherUserInfoResp**](SchemaGetOtherUserInfoResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1PersonalUserInfoGet200Response + +`func NewAnswerApiV1PersonalUserInfoGet200Response() *AnswerApiV1PersonalUserInfoGet200Response` + +NewAnswerApiV1PersonalUserInfoGet200Response instantiates a new AnswerApiV1PersonalUserInfoGet200Response 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 + +### NewAnswerApiV1PersonalUserInfoGet200ResponseWithDefaults + +`func NewAnswerApiV1PersonalUserInfoGet200ResponseWithDefaults() *AnswerApiV1PersonalUserInfoGet200Response` + +NewAnswerApiV1PersonalUserInfoGet200ResponseWithDefaults instantiates a new AnswerApiV1PersonalUserInfoGet200Response 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 *AnswerApiV1PersonalUserInfoGet200Response) GetData() SchemaGetOtherUserInfoResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) GetDataOk() (*SchemaGetOtherUserInfoResp, 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 *AnswerApiV1PersonalUserInfoGet200Response) SetData(v SchemaGetOtherUserInfoResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) 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 *AnswerApiV1PersonalUserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1PersonalUserInfoGet200Response) 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/AnswerApiV1PersonalVotePageGet200Response.md b/docs/AnswerApiV1PersonalVotePageGet200Response.md new file mode 100644 index 0000000..04ee036 --- /dev/null +++ b/docs/AnswerApiV1PersonalVotePageGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1PersonalVotePageGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**AnswerApiV1PersonalVotePageGet200ResponseData**](AnswerApiV1PersonalVotePageGet200ResponseData.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1PersonalVotePageGet200Response + +`func NewAnswerApiV1PersonalVotePageGet200Response() *AnswerApiV1PersonalVotePageGet200Response` + +NewAnswerApiV1PersonalVotePageGet200Response instantiates a new AnswerApiV1PersonalVotePageGet200Response 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 + +### NewAnswerApiV1PersonalVotePageGet200ResponseWithDefaults + +`func NewAnswerApiV1PersonalVotePageGet200ResponseWithDefaults() *AnswerApiV1PersonalVotePageGet200Response` + +NewAnswerApiV1PersonalVotePageGet200ResponseWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200Response 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 *AnswerApiV1PersonalVotePageGet200Response) GetData() AnswerApiV1PersonalVotePageGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1PersonalVotePageGet200Response) GetDataOk() (*AnswerApiV1PersonalVotePageGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1PersonalVotePageGet200Response) SetData(v AnswerApiV1PersonalVotePageGet200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1PersonalVotePageGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1PersonalVotePageGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1PersonalVotePageGet200Response) 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 *AnswerApiV1PersonalVotePageGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1PersonalVotePageGet200Response) 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/AnswerApiV1PersonalVotePageGet200ResponseData.md b/docs/AnswerApiV1PersonalVotePageGet200ResponseData.md new file mode 100644 index 0000000..8ccd691 --- /dev/null +++ b/docs/AnswerApiV1PersonalVotePageGet200ResponseData.md @@ -0,0 +1,82 @@ +# AnswerApiV1PersonalVotePageGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**List** | Pointer to [**[]SchemaGetVoteWithPageResp**](SchemaGetVoteWithPageResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1PersonalVotePageGet200ResponseData + +`func NewAnswerApiV1PersonalVotePageGet200ResponseData() *AnswerApiV1PersonalVotePageGet200ResponseData` + +NewAnswerApiV1PersonalVotePageGet200ResponseData instantiates a new AnswerApiV1PersonalVotePageGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1PersonalVotePageGet200ResponseDataWithDefaults + +`func NewAnswerApiV1PersonalVotePageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalVotePageGet200ResponseData` + +NewAnswerApiV1PersonalVotePageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetList + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetList() []SchemaGetVoteWithPageResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetListOk() (*[]SchemaGetVoteWithPageResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) SetList(v []SchemaGetVoteWithPageResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseData) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md b/docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md new file mode 100644 index 0000000..5ba4449 --- /dev/null +++ b/docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md @@ -0,0 +1,56 @@ +# AnswerApiV1PersonalVotePageGet200ResponseDataAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**List** | Pointer to [**[]SchemaGetVoteWithPageResp**](SchemaGetVoteWithPageResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOf + +`func NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOf() *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf` + +NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalVotePageGet200ResponseDataAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOfWithDefaults + +`func NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf` + +NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200ResponseDataAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetList + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) GetList() []SchemaGetVoteWithPageResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetVoteWithPageResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) SetList(v []SchemaGetVoteWithPageResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1QuestionPageGet200Response.md b/docs/AnswerApiV1QuestionPageGet200Response.md new file mode 100644 index 0000000..196eea1 --- /dev/null +++ b/docs/AnswerApiV1QuestionPageGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1QuestionPageGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**AnswerApiV1QuestionPageGet200ResponseData**](AnswerApiV1QuestionPageGet200ResponseData.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1QuestionPageGet200Response + +`func NewAnswerApiV1QuestionPageGet200Response() *AnswerApiV1QuestionPageGet200Response` + +NewAnswerApiV1QuestionPageGet200Response instantiates a new AnswerApiV1QuestionPageGet200Response 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 + +### NewAnswerApiV1QuestionPageGet200ResponseWithDefaults + +`func NewAnswerApiV1QuestionPageGet200ResponseWithDefaults() *AnswerApiV1QuestionPageGet200Response` + +NewAnswerApiV1QuestionPageGet200ResponseWithDefaults instantiates a new AnswerApiV1QuestionPageGet200Response 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 *AnswerApiV1QuestionPageGet200Response) GetData() AnswerApiV1QuestionPageGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1QuestionPageGet200Response) GetDataOk() (*AnswerApiV1QuestionPageGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1QuestionPageGet200Response) SetData(v AnswerApiV1QuestionPageGet200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1QuestionPageGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1QuestionPageGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1QuestionPageGet200Response) 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 *AnswerApiV1QuestionPageGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1QuestionPageGet200Response) 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/AnswerApiV1QuestionPageGet200ResponseData.md b/docs/AnswerApiV1QuestionPageGet200ResponseData.md new file mode 100644 index 0000000..cde7bde --- /dev/null +++ b/docs/AnswerApiV1QuestionPageGet200ResponseData.md @@ -0,0 +1,82 @@ +# AnswerApiV1QuestionPageGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**List** | Pointer to [**[]SchemaQuestionPageResp**](SchemaQuestionPageResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1QuestionPageGet200ResponseData + +`func NewAnswerApiV1QuestionPageGet200ResponseData() *AnswerApiV1QuestionPageGet200ResponseData` + +NewAnswerApiV1QuestionPageGet200ResponseData instantiates a new AnswerApiV1QuestionPageGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1QuestionPageGet200ResponseDataWithDefaults + +`func NewAnswerApiV1QuestionPageGet200ResponseDataWithDefaults() *AnswerApiV1QuestionPageGet200ResponseData` + +NewAnswerApiV1QuestionPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1QuestionPageGet200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *AnswerApiV1QuestionPageGet200ResponseData) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *AnswerApiV1QuestionPageGet200ResponseData) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *AnswerApiV1QuestionPageGet200ResponseData) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *AnswerApiV1QuestionPageGet200ResponseData) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetList + +`func (o *AnswerApiV1QuestionPageGet200ResponseData) GetList() []SchemaQuestionPageResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1QuestionPageGet200ResponseData) GetListOk() (*[]SchemaQuestionPageResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1QuestionPageGet200ResponseData) SetList(v []SchemaQuestionPageResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1QuestionPageGet200ResponseData) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md b/docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md new file mode 100644 index 0000000..e853426 --- /dev/null +++ b/docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md @@ -0,0 +1,56 @@ +# AnswerApiV1QuestionPageGet200ResponseDataAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**List** | Pointer to [**[]SchemaQuestionPageResp**](SchemaQuestionPageResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1QuestionPageGet200ResponseDataAllOf + +`func NewAnswerApiV1QuestionPageGet200ResponseDataAllOf() *AnswerApiV1QuestionPageGet200ResponseDataAllOf` + +NewAnswerApiV1QuestionPageGet200ResponseDataAllOf instantiates a new AnswerApiV1QuestionPageGet200ResponseDataAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1QuestionPageGet200ResponseDataAllOfWithDefaults + +`func NewAnswerApiV1QuestionPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1QuestionPageGet200ResponseDataAllOf` + +NewAnswerApiV1QuestionPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1QuestionPageGet200ResponseDataAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetList + +`func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) GetList() []SchemaQuestionPageResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) GetListOk() (*[]SchemaQuestionPageResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) SetList(v []SchemaQuestionPageResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1QuestionTagsGet200Response.md b/docs/AnswerApiV1QuestionTagsGet200Response.md new file mode 100644 index 0000000..a0e55b7 --- /dev/null +++ b/docs/AnswerApiV1QuestionTagsGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1QuestionTagsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]SchemaGetTagResp**](SchemaGetTagResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1QuestionTagsGet200Response + +`func NewAnswerApiV1QuestionTagsGet200Response() *AnswerApiV1QuestionTagsGet200Response` + +NewAnswerApiV1QuestionTagsGet200Response instantiates a new AnswerApiV1QuestionTagsGet200Response 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 + +### NewAnswerApiV1QuestionTagsGet200ResponseWithDefaults + +`func NewAnswerApiV1QuestionTagsGet200ResponseWithDefaults() *AnswerApiV1QuestionTagsGet200Response` + +NewAnswerApiV1QuestionTagsGet200ResponseWithDefaults instantiates a new AnswerApiV1QuestionTagsGet200Response 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 *AnswerApiV1QuestionTagsGet200Response) GetData() []SchemaGetTagResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1QuestionTagsGet200Response) GetDataOk() (*[]SchemaGetTagResp, 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 *AnswerApiV1QuestionTagsGet200Response) SetData(v []SchemaGetTagResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1QuestionTagsGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1QuestionTagsGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1QuestionTagsGet200Response) 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 *AnswerApiV1QuestionTagsGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1QuestionTagsGet200Response) 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/AnswerApiV1ReportTypeListGet200Response.md b/docs/AnswerApiV1ReportTypeListGet200Response.md new file mode 100644 index 0000000..cdadcc1 --- /dev/null +++ b/docs/AnswerApiV1ReportTypeListGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1ReportTypeListGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]SchemaGetReportTypeResp**](SchemaGetReportTypeResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1ReportTypeListGet200Response + +`func NewAnswerApiV1ReportTypeListGet200Response() *AnswerApiV1ReportTypeListGet200Response` + +NewAnswerApiV1ReportTypeListGet200Response instantiates a new AnswerApiV1ReportTypeListGet200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1ReportTypeListGet200ResponseWithDefaults + +`func NewAnswerApiV1ReportTypeListGet200ResponseWithDefaults() *AnswerApiV1ReportTypeListGet200Response` + +NewAnswerApiV1ReportTypeListGet200ResponseWithDefaults instantiates a new AnswerApiV1ReportTypeListGet200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *AnswerApiV1ReportTypeListGet200Response) GetData() []SchemaGetReportTypeResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1ReportTypeListGet200Response) GetDataOk() (*[]SchemaGetReportTypeResp, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1ReportTypeListGet200Response) SetData(v []SchemaGetReportTypeResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1ReportTypeListGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1ReportTypeListGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1ReportTypeListGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` + +GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHandlerRespBody + +`func (o *AnswerApiV1ReportTypeListGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1ReportTypeListGet200Response) HasHandlerRespBody() bool` + +HasHandlerRespBody returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1RevisionsGet200Response.md b/docs/AnswerApiV1RevisionsGet200Response.md new file mode 100644 index 0000000..80032e9 --- /dev/null +++ b/docs/AnswerApiV1RevisionsGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1RevisionsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]SchemaGetRevisionResp**](SchemaGetRevisionResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1RevisionsGet200Response + +`func NewAnswerApiV1RevisionsGet200Response() *AnswerApiV1RevisionsGet200Response` + +NewAnswerApiV1RevisionsGet200Response instantiates a new AnswerApiV1RevisionsGet200Response 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 + +### NewAnswerApiV1RevisionsGet200ResponseWithDefaults + +`func NewAnswerApiV1RevisionsGet200ResponseWithDefaults() *AnswerApiV1RevisionsGet200Response` + +NewAnswerApiV1RevisionsGet200ResponseWithDefaults instantiates a new AnswerApiV1RevisionsGet200Response 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 *AnswerApiV1RevisionsGet200Response) GetData() []SchemaGetRevisionResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1RevisionsGet200Response) GetDataOk() (*[]SchemaGetRevisionResp, 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 *AnswerApiV1RevisionsGet200Response) SetData(v []SchemaGetRevisionResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1RevisionsGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1RevisionsGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1RevisionsGet200Response) 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 *AnswerApiV1RevisionsGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1RevisionsGet200Response) 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/AnswerApiV1RevisionsUnreviewedGet200Response.md b/docs/AnswerApiV1RevisionsUnreviewedGet200Response.md new file mode 100644 index 0000000..3b6d5a2 --- /dev/null +++ b/docs/AnswerApiV1RevisionsUnreviewedGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1RevisionsUnreviewedGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**AnswerApiV1RevisionsUnreviewedGet200ResponseData**](AnswerApiV1RevisionsUnreviewedGet200ResponseData.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1RevisionsUnreviewedGet200Response + +`func NewAnswerApiV1RevisionsUnreviewedGet200Response() *AnswerApiV1RevisionsUnreviewedGet200Response` + +NewAnswerApiV1RevisionsUnreviewedGet200Response instantiates a new AnswerApiV1RevisionsUnreviewedGet200Response 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 + +### NewAnswerApiV1RevisionsUnreviewedGet200ResponseWithDefaults + +`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200Response` + +NewAnswerApiV1RevisionsUnreviewedGet200ResponseWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200Response 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 *AnswerApiV1RevisionsUnreviewedGet200Response) GetData() AnswerApiV1RevisionsUnreviewedGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetDataOk() (*AnswerApiV1RevisionsUnreviewedGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetData(v AnswerApiV1RevisionsUnreviewedGet200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) 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 *AnswerApiV1RevisionsUnreviewedGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1RevisionsUnreviewedGet200Response) 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/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md b/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md new file mode 100644 index 0000000..12607f6 --- /dev/null +++ b/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md @@ -0,0 +1,82 @@ +# AnswerApiV1RevisionsUnreviewedGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**List** | Pointer to [**[]SchemaGetUnreviewedRevisionResp**](SchemaGetUnreviewedRevisionResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1RevisionsUnreviewedGet200ResponseData + +`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseData() *AnswerApiV1RevisionsUnreviewedGet200ResponseData` + +NewAnswerApiV1RevisionsUnreviewedGet200ResponseData instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataWithDefaults + +`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200ResponseData` + +NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetList + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetList() []SchemaGetUnreviewedRevisionResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetListOk() (*[]SchemaGetUnreviewedRevisionResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) SetList(v []SchemaGetUnreviewedRevisionResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md b/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md new file mode 100644 index 0000000..c323ed9 --- /dev/null +++ b/docs/AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf.md @@ -0,0 +1,56 @@ +# AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**List** | Pointer to [**[]SchemaGetUnreviewedRevisionResp**](SchemaGetUnreviewedRevisionResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf + +`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf() *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf` + +NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOfWithDefaults + +`func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOfWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf` + +NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetList + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) GetList() []SchemaGetUnreviewedRevisionResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetUnreviewedRevisionResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) SetList(v []SchemaGetUnreviewedRevisionResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1SearchGet200Response.md b/docs/AnswerApiV1SearchGet200Response.md new file mode 100644 index 0000000..86a9979 --- /dev/null +++ b/docs/AnswerApiV1SearchGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1SearchGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSearchListResp**](SchemaSearchListResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1SearchGet200Response + +`func NewAnswerApiV1SearchGet200Response() *AnswerApiV1SearchGet200Response` + +NewAnswerApiV1SearchGet200Response instantiates a new AnswerApiV1SearchGet200Response 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 + +### NewAnswerApiV1SearchGet200ResponseWithDefaults + +`func NewAnswerApiV1SearchGet200ResponseWithDefaults() *AnswerApiV1SearchGet200Response` + +NewAnswerApiV1SearchGet200ResponseWithDefaults instantiates a new AnswerApiV1SearchGet200Response 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 *AnswerApiV1SearchGet200Response) GetData() SchemaSearchListResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1SearchGet200Response) GetDataOk() (*SchemaSearchListResp, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1SearchGet200Response) SetData(v SchemaSearchListResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1SearchGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1SearchGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1SearchGet200Response) 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 *AnswerApiV1SearchGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1SearchGet200Response) 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/AnswerApiV1SiteinfoGet200Response.md b/docs/AnswerApiV1SiteinfoGet200Response.md new file mode 100644 index 0000000..9234f31 --- /dev/null +++ b/docs/AnswerApiV1SiteinfoGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1SiteinfoGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaSiteInfoResp**](SchemaSiteInfoResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1SiteinfoGet200Response + +`func NewAnswerApiV1SiteinfoGet200Response() *AnswerApiV1SiteinfoGet200Response` + +NewAnswerApiV1SiteinfoGet200Response instantiates a new AnswerApiV1SiteinfoGet200Response 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 + +### NewAnswerApiV1SiteinfoGet200ResponseWithDefaults + +`func NewAnswerApiV1SiteinfoGet200ResponseWithDefaults() *AnswerApiV1SiteinfoGet200Response` + +NewAnswerApiV1SiteinfoGet200ResponseWithDefaults instantiates a new AnswerApiV1SiteinfoGet200Response 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 *AnswerApiV1SiteinfoGet200Response) GetData() SchemaSiteInfoResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1SiteinfoGet200Response) GetDataOk() (*SchemaSiteInfoResp, 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 *AnswerApiV1SiteinfoGet200Response) SetData(v SchemaSiteInfoResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1SiteinfoGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1SiteinfoGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1SiteinfoGet200Response) 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 *AnswerApiV1SiteinfoGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1SiteinfoGet200Response) 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/AnswerApiV1SiteinfoLegalGet200Response.md b/docs/AnswerApiV1SiteinfoLegalGet200Response.md new file mode 100644 index 0000000..6cbf2ae --- /dev/null +++ b/docs/AnswerApiV1SiteinfoLegalGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1SiteinfoLegalGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetSiteLegalInfoResp**](SchemaGetSiteLegalInfoResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1SiteinfoLegalGet200Response + +`func NewAnswerApiV1SiteinfoLegalGet200Response() *AnswerApiV1SiteinfoLegalGet200Response` + +NewAnswerApiV1SiteinfoLegalGet200Response instantiates a new AnswerApiV1SiteinfoLegalGet200Response 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 + +### NewAnswerApiV1SiteinfoLegalGet200ResponseWithDefaults + +`func NewAnswerApiV1SiteinfoLegalGet200ResponseWithDefaults() *AnswerApiV1SiteinfoLegalGet200Response` + +NewAnswerApiV1SiteinfoLegalGet200ResponseWithDefaults instantiates a new AnswerApiV1SiteinfoLegalGet200Response 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 *AnswerApiV1SiteinfoLegalGet200Response) GetData() SchemaGetSiteLegalInfoResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) GetDataOk() (*SchemaGetSiteLegalInfoResp, 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 *AnswerApiV1SiteinfoLegalGet200Response) SetData(v SchemaGetSiteLegalInfoResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) 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 *AnswerApiV1SiteinfoLegalGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1SiteinfoLegalGet200Response) 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/AnswerApiV1TagGet200Response.md b/docs/AnswerApiV1TagGet200Response.md new file mode 100644 index 0000000..9eccdd2 --- /dev/null +++ b/docs/AnswerApiV1TagGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1TagGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetTagResp**](SchemaGetTagResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1TagGet200Response + +`func NewAnswerApiV1TagGet200Response() *AnswerApiV1TagGet200Response` + +NewAnswerApiV1TagGet200Response instantiates a new AnswerApiV1TagGet200Response 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 + +### NewAnswerApiV1TagGet200ResponseWithDefaults + +`func NewAnswerApiV1TagGet200ResponseWithDefaults() *AnswerApiV1TagGet200Response` + +NewAnswerApiV1TagGet200ResponseWithDefaults instantiates a new AnswerApiV1TagGet200Response 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 *AnswerApiV1TagGet200Response) GetData() SchemaGetTagResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1TagGet200Response) GetDataOk() (*SchemaGetTagResp, 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 *AnswerApiV1TagGet200Response) SetData(v SchemaGetTagResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1TagGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1TagGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1TagGet200Response) 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 *AnswerApiV1TagGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1TagGet200Response) 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/AnswerApiV1TagSynonymsGet200Response.md b/docs/AnswerApiV1TagSynonymsGet200Response.md new file mode 100644 index 0000000..29f20b8 --- /dev/null +++ b/docs/AnswerApiV1TagSynonymsGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1TagSynonymsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetTagSynonymsResp**](SchemaGetTagSynonymsResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1TagSynonymsGet200Response + +`func NewAnswerApiV1TagSynonymsGet200Response() *AnswerApiV1TagSynonymsGet200Response` + +NewAnswerApiV1TagSynonymsGet200Response instantiates a new AnswerApiV1TagSynonymsGet200Response 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 + +### NewAnswerApiV1TagSynonymsGet200ResponseWithDefaults + +`func NewAnswerApiV1TagSynonymsGet200ResponseWithDefaults() *AnswerApiV1TagSynonymsGet200Response` + +NewAnswerApiV1TagSynonymsGet200ResponseWithDefaults instantiates a new AnswerApiV1TagSynonymsGet200Response 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 *AnswerApiV1TagSynonymsGet200Response) GetData() SchemaGetTagSynonymsResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1TagSynonymsGet200Response) GetDataOk() (*SchemaGetTagSynonymsResp, 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 *AnswerApiV1TagSynonymsGet200Response) SetData(v SchemaGetTagSynonymsResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1TagSynonymsGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1TagSynonymsGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1TagSynonymsGet200Response) 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 *AnswerApiV1TagSynonymsGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1TagSynonymsGet200Response) 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/AnswerApiV1TagsFollowingGet200Response.md b/docs/AnswerApiV1TagsFollowingGet200Response.md new file mode 100644 index 0000000..55e3288 --- /dev/null +++ b/docs/AnswerApiV1TagsFollowingGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1TagsFollowingGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]SchemaGetFollowingTagsResp**](SchemaGetFollowingTagsResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1TagsFollowingGet200Response + +`func NewAnswerApiV1TagsFollowingGet200Response() *AnswerApiV1TagsFollowingGet200Response` + +NewAnswerApiV1TagsFollowingGet200Response instantiates a new AnswerApiV1TagsFollowingGet200Response 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 + +### NewAnswerApiV1TagsFollowingGet200ResponseWithDefaults + +`func NewAnswerApiV1TagsFollowingGet200ResponseWithDefaults() *AnswerApiV1TagsFollowingGet200Response` + +NewAnswerApiV1TagsFollowingGet200ResponseWithDefaults instantiates a new AnswerApiV1TagsFollowingGet200Response 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 *AnswerApiV1TagsFollowingGet200Response) GetData() []SchemaGetFollowingTagsResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1TagsFollowingGet200Response) GetDataOk() (*[]SchemaGetFollowingTagsResp, 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 *AnswerApiV1TagsFollowingGet200Response) SetData(v []SchemaGetFollowingTagsResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1TagsFollowingGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1TagsFollowingGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1TagsFollowingGet200Response) 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 *AnswerApiV1TagsFollowingGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1TagsFollowingGet200Response) 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/AnswerApiV1TagsPageGet200Response.md b/docs/AnswerApiV1TagsPageGet200Response.md new file mode 100644 index 0000000..cf07799 --- /dev/null +++ b/docs/AnswerApiV1TagsPageGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1TagsPageGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**AnswerApiV1TagsPageGet200ResponseData**](AnswerApiV1TagsPageGet200ResponseData.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1TagsPageGet200Response + +`func NewAnswerApiV1TagsPageGet200Response() *AnswerApiV1TagsPageGet200Response` + +NewAnswerApiV1TagsPageGet200Response instantiates a new AnswerApiV1TagsPageGet200Response 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 + +### NewAnswerApiV1TagsPageGet200ResponseWithDefaults + +`func NewAnswerApiV1TagsPageGet200ResponseWithDefaults() *AnswerApiV1TagsPageGet200Response` + +NewAnswerApiV1TagsPageGet200ResponseWithDefaults instantiates a new AnswerApiV1TagsPageGet200Response 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 *AnswerApiV1TagsPageGet200Response) GetData() AnswerApiV1TagsPageGet200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1TagsPageGet200Response) GetDataOk() (*AnswerApiV1TagsPageGet200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1TagsPageGet200Response) SetData(v AnswerApiV1TagsPageGet200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1TagsPageGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1TagsPageGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1TagsPageGet200Response) 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 *AnswerApiV1TagsPageGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1TagsPageGet200Response) 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/AnswerApiV1TagsPageGet200ResponseData.md b/docs/AnswerApiV1TagsPageGet200ResponseData.md new file mode 100644 index 0000000..247b677 --- /dev/null +++ b/docs/AnswerApiV1TagsPageGet200ResponseData.md @@ -0,0 +1,82 @@ +# AnswerApiV1TagsPageGet200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**List** | Pointer to [**[]SchemaGetTagPageResp**](SchemaGetTagPageResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1TagsPageGet200ResponseData + +`func NewAnswerApiV1TagsPageGet200ResponseData() *AnswerApiV1TagsPageGet200ResponseData` + +NewAnswerApiV1TagsPageGet200ResponseData instantiates a new AnswerApiV1TagsPageGet200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1TagsPageGet200ResponseDataWithDefaults + +`func NewAnswerApiV1TagsPageGet200ResponseDataWithDefaults() *AnswerApiV1TagsPageGet200ResponseData` + +NewAnswerApiV1TagsPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1TagsPageGet200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *AnswerApiV1TagsPageGet200ResponseData) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *AnswerApiV1TagsPageGet200ResponseData) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *AnswerApiV1TagsPageGet200ResponseData) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *AnswerApiV1TagsPageGet200ResponseData) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetList + +`func (o *AnswerApiV1TagsPageGet200ResponseData) GetList() []SchemaGetTagPageResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1TagsPageGet200ResponseData) GetListOk() (*[]SchemaGetTagPageResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1TagsPageGet200ResponseData) SetList(v []SchemaGetTagPageResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1TagsPageGet200ResponseData) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md b/docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md new file mode 100644 index 0000000..ddaf367 --- /dev/null +++ b/docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md @@ -0,0 +1,56 @@ +# AnswerApiV1TagsPageGet200ResponseDataAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**List** | Pointer to [**[]SchemaGetTagPageResp**](SchemaGetTagPageResp.md) | | [optional] + +## Methods + +### NewAnswerApiV1TagsPageGet200ResponseDataAllOf + +`func NewAnswerApiV1TagsPageGet200ResponseDataAllOf() *AnswerApiV1TagsPageGet200ResponseDataAllOf` + +NewAnswerApiV1TagsPageGet200ResponseDataAllOf instantiates a new AnswerApiV1TagsPageGet200ResponseDataAllOf object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1TagsPageGet200ResponseDataAllOfWithDefaults + +`func NewAnswerApiV1TagsPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1TagsPageGet200ResponseDataAllOf` + +NewAnswerApiV1TagsPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1TagsPageGet200ResponseDataAllOf object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetList + +`func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) GetList() []SchemaGetTagPageResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) GetListOk() (*[]SchemaGetTagPageResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) SetList(v []SchemaGetTagPageResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1UserActionRecordGet200Response.md b/docs/AnswerApiV1UserActionRecordGet200Response.md new file mode 100644 index 0000000..51b98e7 --- /dev/null +++ b/docs/AnswerApiV1UserActionRecordGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1UserActionRecordGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaActionRecordResp**](SchemaActionRecordResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1UserActionRecordGet200Response + +`func NewAnswerApiV1UserActionRecordGet200Response() *AnswerApiV1UserActionRecordGet200Response` + +NewAnswerApiV1UserActionRecordGet200Response instantiates a new AnswerApiV1UserActionRecordGet200Response 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 + +### NewAnswerApiV1UserActionRecordGet200ResponseWithDefaults + +`func NewAnswerApiV1UserActionRecordGet200ResponseWithDefaults() *AnswerApiV1UserActionRecordGet200Response` + +NewAnswerApiV1UserActionRecordGet200ResponseWithDefaults instantiates a new AnswerApiV1UserActionRecordGet200Response 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 *AnswerApiV1UserActionRecordGet200Response) GetData() SchemaActionRecordResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1UserActionRecordGet200Response) GetDataOk() (*SchemaActionRecordResp, 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 *AnswerApiV1UserActionRecordGet200Response) SetData(v SchemaActionRecordResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1UserActionRecordGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1UserActionRecordGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1UserActionRecordGet200Response) 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 *AnswerApiV1UserActionRecordGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1UserActionRecordGet200Response) 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/AnswerApiV1UserEmailVerificationPost200Response.md b/docs/AnswerApiV1UserEmailVerificationPost200Response.md new file mode 100644 index 0000000..e250955 --- /dev/null +++ b/docs/AnswerApiV1UserEmailVerificationPost200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1UserEmailVerificationPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetUserResp**](SchemaGetUserResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1UserEmailVerificationPost200Response + +`func NewAnswerApiV1UserEmailVerificationPost200Response() *AnswerApiV1UserEmailVerificationPost200Response` + +NewAnswerApiV1UserEmailVerificationPost200Response instantiates a new AnswerApiV1UserEmailVerificationPost200Response 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 + +### NewAnswerApiV1UserEmailVerificationPost200ResponseWithDefaults + +`func NewAnswerApiV1UserEmailVerificationPost200ResponseWithDefaults() *AnswerApiV1UserEmailVerificationPost200Response` + +NewAnswerApiV1UserEmailVerificationPost200ResponseWithDefaults instantiates a new AnswerApiV1UserEmailVerificationPost200Response 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 *AnswerApiV1UserEmailVerificationPost200Response) GetData() SchemaGetUserResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetDataOk() (*SchemaGetUserResp, 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)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) 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 *AnswerApiV1UserEmailVerificationPost200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1UserEmailVerificationPost200Response) 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/AnswerApiV1UserInfoGet200Response.md b/docs/AnswerApiV1UserInfoGet200Response.md new file mode 100644 index 0000000..b2402c9 --- /dev/null +++ b/docs/AnswerApiV1UserInfoGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1UserInfoGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaGetUserToSetShowResp**](SchemaGetUserToSetShowResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1UserInfoGet200Response + +`func NewAnswerApiV1UserInfoGet200Response() *AnswerApiV1UserInfoGet200Response` + +NewAnswerApiV1UserInfoGet200Response instantiates a new AnswerApiV1UserInfoGet200Response 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 + +### NewAnswerApiV1UserInfoGet200ResponseWithDefaults + +`func NewAnswerApiV1UserInfoGet200ResponseWithDefaults() *AnswerApiV1UserInfoGet200Response` + +NewAnswerApiV1UserInfoGet200ResponseWithDefaults instantiates a new AnswerApiV1UserInfoGet200Response 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 *AnswerApiV1UserInfoGet200Response) GetData() SchemaGetUserToSetShowResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1UserInfoGet200Response) GetDataOk() (*SchemaGetUserToSetShowResp, 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)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1UserInfoGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1UserInfoGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1UserInfoGet200Response) 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 *AnswerApiV1UserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1UserInfoGet200Response) 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/AnswerApiV1UserNoticeSetPost200Response.md b/docs/AnswerApiV1UserNoticeSetPost200Response.md new file mode 100644 index 0000000..f3ab6b7 --- /dev/null +++ b/docs/AnswerApiV1UserNoticeSetPost200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1UserNoticeSetPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaUserNoticeSetResp**](SchemaUserNoticeSetResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1UserNoticeSetPost200Response + +`func NewAnswerApiV1UserNoticeSetPost200Response() *AnswerApiV1UserNoticeSetPost200Response` + +NewAnswerApiV1UserNoticeSetPost200Response instantiates a new AnswerApiV1UserNoticeSetPost200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAnswerApiV1UserNoticeSetPost200ResponseWithDefaults + +`func NewAnswerApiV1UserNoticeSetPost200ResponseWithDefaults() *AnswerApiV1UserNoticeSetPost200Response` + +NewAnswerApiV1UserNoticeSetPost200ResponseWithDefaults instantiates a new AnswerApiV1UserNoticeSetPost200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *AnswerApiV1UserNoticeSetPost200Response) GetData() SchemaUserNoticeSetResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1UserNoticeSetPost200Response) GetDataOk() (*SchemaUserNoticeSetResp, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AnswerApiV1UserNoticeSetPost200Response) SetData(v SchemaUserNoticeSetResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1UserNoticeSetPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1UserNoticeSetPost200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1UserNoticeSetPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool)` + +GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHandlerRespBody + +`func (o *AnswerApiV1UserNoticeSetPost200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1UserNoticeSetPost200Response) HasHandlerRespBody() bool` + +HasHandlerRespBody returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AnswerApiV1UserRankingGet200Response.md b/docs/AnswerApiV1UserRankingGet200Response.md new file mode 100644 index 0000000..8fe9871 --- /dev/null +++ b/docs/AnswerApiV1UserRankingGet200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1UserRankingGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaUserRankingResp**](SchemaUserRankingResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1UserRankingGet200Response + +`func NewAnswerApiV1UserRankingGet200Response() *AnswerApiV1UserRankingGet200Response` + +NewAnswerApiV1UserRankingGet200Response instantiates a new AnswerApiV1UserRankingGet200Response 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 + +### NewAnswerApiV1UserRankingGet200ResponseWithDefaults + +`func NewAnswerApiV1UserRankingGet200ResponseWithDefaults() *AnswerApiV1UserRankingGet200Response` + +NewAnswerApiV1UserRankingGet200ResponseWithDefaults instantiates a new AnswerApiV1UserRankingGet200Response 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 *AnswerApiV1UserRankingGet200Response) GetData() SchemaUserRankingResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1UserRankingGet200Response) GetDataOk() (*SchemaUserRankingResp, 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 *AnswerApiV1UserRankingGet200Response) SetData(v SchemaUserRankingResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1UserRankingGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1UserRankingGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1UserRankingGet200Response) 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 *AnswerApiV1UserRankingGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1UserRankingGet200Response) 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/AnswerApiV1VoteDownPost200Response.md b/docs/AnswerApiV1VoteDownPost200Response.md new file mode 100644 index 0000000..ef54eb2 --- /dev/null +++ b/docs/AnswerApiV1VoteDownPost200Response.md @@ -0,0 +1,82 @@ +# AnswerApiV1VoteDownPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**SchemaVoteResp**](SchemaVoteResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewAnswerApiV1VoteDownPost200Response + +`func NewAnswerApiV1VoteDownPost200Response() *AnswerApiV1VoteDownPost200Response` + +NewAnswerApiV1VoteDownPost200Response instantiates a new AnswerApiV1VoteDownPost200Response 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 + +### NewAnswerApiV1VoteDownPost200ResponseWithDefaults + +`func NewAnswerApiV1VoteDownPost200ResponseWithDefaults() *AnswerApiV1VoteDownPost200Response` + +NewAnswerApiV1VoteDownPost200ResponseWithDefaults instantiates a new AnswerApiV1VoteDownPost200Response 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 *AnswerApiV1VoteDownPost200Response) GetData() SchemaVoteResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AnswerApiV1VoteDownPost200Response) GetDataOk() (*SchemaVoteResp, 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 *AnswerApiV1VoteDownPost200Response) SetData(v SchemaVoteResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AnswerApiV1VoteDownPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *AnswerApiV1VoteDownPost200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *AnswerApiV1VoteDownPost200Response) 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 *AnswerApiV1VoteDownPost200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *AnswerApiV1VoteDownPost200Response) 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/ApiAnswerApi.md b/docs/ApiAnswerApi.md new file mode 100644 index 0000000..52191e2 --- /dev/null +++ b/docs/ApiAnswerApi.md @@ -0,0 +1,489 @@ +# \ApiAnswerApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1AnswerAcceptancePost**](ApiAnswerApi.md#AnswerApiV1AnswerAcceptancePost) | **Post** /answer/api/v1/answer/acceptance | Accepted +[**AnswerApiV1AnswerDelete**](ApiAnswerApi.md#AnswerApiV1AnswerDelete) | **Delete** /answer/api/v1/answer | delete answer +[**AnswerApiV1AnswerInfoGet**](ApiAnswerApi.md#AnswerApiV1AnswerInfoGet) | **Get** /answer/api/v1/answer/info | Get Answer +[**AnswerApiV1AnswerPageGet**](ApiAnswerApi.md#AnswerApiV1AnswerPageGet) | **Get** /answer/api/v1/answer/page | AnswerList +[**AnswerApiV1AnswerPost**](ApiAnswerApi.md#AnswerApiV1AnswerPost) | **Post** /answer/api/v1/answer | Insert Answer +[**AnswerApiV1AnswerPut**](ApiAnswerApi.md#AnswerApiV1AnswerPut) | **Put** /answer/api/v1/answer | Update Answer +[**AnswerApiV1PersonalAnswerPageGet**](ApiAnswerApi.md#AnswerApiV1PersonalAnswerPageGet) | **Get** /answer/api/v1/personal/answer/page | UserAnswerList + + + +## AnswerApiV1AnswerAcceptancePost + +> string AnswerApiV1AnswerAcceptancePost(ctx).Data(data).Execute() + +Accepted + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaAnswerAcceptedReq() // SchemaAnswerAcceptedReq | AnswerAcceptedReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerAcceptancePost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerAcceptancePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1AnswerAcceptancePost`: string + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerAcceptancePost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1AnswerAcceptancePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaAnswerAcceptedReq**](SchemaAnswerAcceptedReq.md) | AnswerAcceptedReq | + +### Return type + +**string** + +### 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) + + +## AnswerApiV1AnswerDelete + +> HandlerRespBody AnswerApiV1AnswerDelete(ctx).Data(data).Execute() + +delete answer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaRemoveAnswerReq("Id_example") // SchemaRemoveAnswerReq | answer + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerDelete(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1AnswerDelete`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerDelete`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1AnswerDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaRemoveAnswerReq**](SchemaRemoveAnswerReq.md) | answer | + +### 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) + + +## AnswerApiV1AnswerInfoGet + +> string AnswerApiV1AnswerInfoGet(ctx).Id(id).Execute() + +Get Answer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + id := "id_example" // string | Answer TagID (default to "1") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerInfoGet(context.Background()).Id(id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerInfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1AnswerInfoGet`: string + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerInfoGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1AnswerInfoGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string** | Answer TagID | [default to "1"] + +### Return type + +**string** + +### 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) + + +## AnswerApiV1AnswerPageGet + +> string AnswerApiV1AnswerPageGet(ctx).QuestionId(questionId).Order(order).Page(page).PageSize(pageSize).Execute() + +AnswerList + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + questionId := "questionId_example" // string | question_id + order := "order_example" // string | order + page := "page_example" // string | page + pageSize := "pageSize_example" // string | page_size + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPageGet(context.Background()).QuestionId(questionId).Order(order).Page(page).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1AnswerPageGet`: string + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1AnswerPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **questionId** | **string** | question_id | + **order** | **string** | order | + **page** | **string** | page | + **pageSize** | **string** | page_size | + +### 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) + + +## AnswerApiV1AnswerPost + +> string AnswerApiV1AnswerPost(ctx).Data(data).Execute() + +Insert Answer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaAnswerAddReq("Content_example") // SchemaAnswerAddReq | AnswerAddReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1AnswerPost`: string + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1AnswerPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaAnswerAddReq**](SchemaAnswerAddReq.md) | AnswerAddReq | + +### Return type + +**string** + +### 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) + + +## AnswerApiV1AnswerPut + +> string AnswerApiV1AnswerPut(ctx).Data(data).Execute() + +Update Answer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaAnswerUpdateReq("Content_example") // SchemaAnswerUpdateReq | AnswerUpdateReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1AnswerPut`: string + fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1AnswerPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaAnswerUpdateReq**](SchemaAnswerUpdateReq.md) | AnswerUpdateReq | + +### Return type + +**string** + +### 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) + + +## 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 new file mode 100644 index 0000000..db6482c --- /dev/null +++ b/docs/CollectionApi.md @@ -0,0 +1,144 @@ +# \CollectionApi + +All URIs are relative to *http://127.0.0.1:80* + +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 + + + +## AnswerApiV1CollectionSwitchPost + +> AnswerApiV1CollectionSwitchPost200Response AnswerApiV1CollectionSwitchPost(ctx).Data(data).Execute() + +add collection + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaCollectionSwitchReq("GroupId_example", "ObjectId_example") // SchemaCollectionSwitchReq | collection + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CollectionApi.AnswerApiV1CollectionSwitchPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CollectionApi.AnswerApiV1CollectionSwitchPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1CollectionSwitchPost`: AnswerApiV1CollectionSwitchPost200Response + fmt.Fprintf(os.Stdout, "Response from `CollectionApi.AnswerApiV1CollectionSwitchPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1CollectionSwitchPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaCollectionSwitchReq**](SchemaCollectionSwitchReq.md) | collection | + +### Return type + +[**AnswerApiV1CollectionSwitchPost200Response**](AnswerApiV1CollectionSwitchPost200Response.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) + + +## AnswerApiV1PersonalCollectionPageGet + +> HandlerRespBody AnswerApiV1PersonalCollectionPageGet(ctx).Page(page).Pagesize(pagesize).Execute() + +UserCollectionList + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + 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.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) + } + // response from `AnswerApiV1PersonalCollectionPageGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `CollectionApi.AnswerApiV1PersonalCollectionPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1PersonalCollectionPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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/CommentApi.md b/docs/CommentApi.md new file mode 100644 index 0000000..b485ef5 --- /dev/null +++ b/docs/CommentApi.md @@ -0,0 +1,560 @@ +# \CommentApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1ActivityTimelineDetailGet**](CommentApi.md#AnswerApiV1ActivityTimelineDetailGet) | **Get** /answer/api/v1/activity/timeline/detail | get object timeline detail +[**AnswerApiV1ActivityTimelineGet**](CommentApi.md#AnswerApiV1ActivityTimelineGet) | **Get** /answer/api/v1/activity/timeline | get object timeline +[**AnswerApiV1CommentDelete**](CommentApi.md#AnswerApiV1CommentDelete) | **Delete** /answer/api/v1/comment | remove comment +[**AnswerApiV1CommentGet**](CommentApi.md#AnswerApiV1CommentGet) | **Get** /answer/api/v1/comment | get comment by id +[**AnswerApiV1CommentPageGet**](CommentApi.md#AnswerApiV1CommentPageGet) | **Get** /answer/api/v1/comment/page | get comment page +[**AnswerApiV1CommentPost**](CommentApi.md#AnswerApiV1CommentPost) | **Post** /answer/api/v1/comment | add comment +[**AnswerApiV1CommentPut**](CommentApi.md#AnswerApiV1CommentPut) | **Put** /answer/api/v1/comment | update comment +[**AnswerApiV1PersonalCommentPageGet**](CommentApi.md#AnswerApiV1PersonalCommentPageGet) | **Get** /answer/api/v1/personal/comment/page | user personal comment list + + + +## AnswerApiV1ActivityTimelineDetailGet + +> AnswerApiV1ActivityTimelineGet200Response AnswerApiV1ActivityTimelineDetailGet(ctx).RevisionId(revisionId).Execute() + +get object timeline detail + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + revisionId := "revisionId_example" // string | revision id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineDetailGet(context.Background()).RevisionId(revisionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1ActivityTimelineDetailGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1ActivityTimelineDetailGet`: AnswerApiV1ActivityTimelineGet200Response + fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1ActivityTimelineDetailGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1ActivityTimelineDetailGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **revisionId** | **string** | revision id | + +### Return type + +[**AnswerApiV1ActivityTimelineGet200Response**](AnswerApiV1ActivityTimelineGet200Response.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) + + +## AnswerApiV1ActivityTimelineGet + +> AnswerApiV1ActivityTimelineGet200Response AnswerApiV1ActivityTimelineGet(ctx).ObjectId(objectId).TagSlugName(tagSlugName).ObjectType(objectType).ShowVote(showVote).Execute() + +get object timeline + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + objectId := "objectId_example" // string | object id (optional) + tagSlugName := "tagSlugName_example" // string | tag slug name (optional) + objectType := "objectType_example" // string | object type (optional) + showVote := true // bool | is show vote (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineGet(context.Background()).ObjectId(objectId).TagSlugName(tagSlugName).ObjectType(objectType).ShowVote(showVote).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1ActivityTimelineGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1ActivityTimelineGet`: AnswerApiV1ActivityTimelineGet200Response + fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1ActivityTimelineGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1ActivityTimelineGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **objectId** | **string** | object id | + **tagSlugName** | **string** | tag slug name | + **objectType** | **string** | object type | + **showVote** | **bool** | is show vote | + +### Return type + +[**AnswerApiV1ActivityTimelineGet200Response**](AnswerApiV1ActivityTimelineGet200Response.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) + + +## AnswerApiV1CommentDelete + +> HandlerRespBody AnswerApiV1CommentDelete(ctx).Data(data).Execute() + +remove comment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaRemoveCommentReq("CommentId_example") // SchemaRemoveCommentReq | comment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CommentApi.AnswerApiV1CommentDelete(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1CommentDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1CommentDelete`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1CommentDelete`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1CommentDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaRemoveCommentReq**](SchemaRemoveCommentReq.md) | comment | + +### 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) + + +## AnswerApiV1CommentGet + +> AnswerApiV1CommentGet200Response AnswerApiV1CommentGet(ctx).Id(id).Execute() + +get comment by id + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + id := "id_example" // string | id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CommentApi.AnswerApiV1CommentGet(context.Background()).Id(id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1CommentGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1CommentGet`: AnswerApiV1CommentGet200Response + fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1CommentGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1CommentGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string** | id | + +### Return type + +[**AnswerApiV1CommentGet200Response**](AnswerApiV1CommentGet200Response.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) + + +## AnswerApiV1CommentPageGet + +> AnswerApiV1CommentGet200Response AnswerApiV1CommentPageGet(ctx).ObjectId(objectId).Page(page).PageSize(pageSize).QueryCond(queryCond).Execute() + +get comment page + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + objectId := "objectId_example" // string | object id + page := int32(56) // int32 | page (optional) + pageSize := int32(56) // int32 | page size (optional) + queryCond := "queryCond_example" // string | query condition (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CommentApi.AnswerApiV1CommentPageGet(context.Background()).ObjectId(objectId).Page(page).PageSize(pageSize).QueryCond(queryCond).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1CommentPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1CommentPageGet`: AnswerApiV1CommentGet200Response + fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1CommentPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1CommentPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **objectId** | **string** | object id | + **page** | **int32** | page | + **pageSize** | **int32** | page size | + **queryCond** | **string** | query condition | + +### Return type + +[**AnswerApiV1CommentGet200Response**](AnswerApiV1CommentGet200Response.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) + + +## AnswerApiV1CommentPost + +> AnswerApiV1CommentPost200Response AnswerApiV1CommentPost(ctx).Data(data).Execute() + +add comment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaAddCommentReq("ObjectId_example", "OriginalText_example") // SchemaAddCommentReq | comment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CommentApi.AnswerApiV1CommentPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1CommentPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1CommentPost`: AnswerApiV1CommentPost200Response + fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1CommentPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1CommentPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaAddCommentReq**](SchemaAddCommentReq.md) | comment | + +### Return type + +[**AnswerApiV1CommentPost200Response**](AnswerApiV1CommentPost200Response.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) + + +## AnswerApiV1CommentPut + +> HandlerRespBody AnswerApiV1CommentPut(ctx).Data(data).Execute() + +update comment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdateCommentReq("CommentId_example", "OriginalText_example") // SchemaUpdateCommentReq | comment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CommentApi.AnswerApiV1CommentPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1CommentPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1CommentPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1CommentPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1CommentPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdateCommentReq**](SchemaUpdateCommentReq.md) | comment | + +### 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) + + +## AnswerApiV1PersonalCommentPageGet + +> AnswerApiV1PersonalCommentPageGet200Response AnswerApiV1PersonalCommentPageGet(ctx).Page(page).PageSize(pageSize).Username(username).Execute() + +user personal comment list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + page := int32(56) // int32 | page (optional) + pageSize := int32(56) // int32 | page size (optional) + username := "username_example" // string | username (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CommentApi.AnswerApiV1PersonalCommentPageGet(context.Background()).Page(page).PageSize(pageSize).Username(username).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CommentApi.AnswerApiV1PersonalCommentPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1PersonalCommentPageGet`: AnswerApiV1PersonalCommentPageGet200Response + fmt.Fprintf(os.Stdout, "Response from `CommentApi.AnswerApiV1PersonalCommentPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1PersonalCommentPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | page | + **pageSize** | **int32** | page size | + **username** | **string** | username | + +### Return type + +[**AnswerApiV1PersonalCommentPageGet200Response**](AnswerApiV1PersonalCommentPageGet200Response.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/HandlerRespBody.md b/docs/HandlerRespBody.md new file mode 100644 index 0000000..a810f55 --- /dev/null +++ b/docs/HandlerRespBody.md @@ -0,0 +1,134 @@ +# HandlerRespBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | Pointer to **int32** | http code | [optional] +**Data** | Pointer to **map[string]interface{}** | response data | [optional] +**Msg** | Pointer to **string** | response message | [optional] +**Reason** | Pointer to **string** | reason key | [optional] + +## Methods + +### NewHandlerRespBody + +`func NewHandlerRespBody() *HandlerRespBody` + +NewHandlerRespBody instantiates a new HandlerRespBody 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 + +### NewHandlerRespBodyWithDefaults + +`func NewHandlerRespBodyWithDefaults() *HandlerRespBody` + +NewHandlerRespBodyWithDefaults instantiates a new HandlerRespBody object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *HandlerRespBody) GetCode() int32` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *HandlerRespBody) GetCodeOk() (*int32, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *HandlerRespBody) SetCode(v int32)` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *HandlerRespBody) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### GetData + +`func (o *HandlerRespBody) GetData() map[string]interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *HandlerRespBody) GetDataOk() (*map[string]interface{}, 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 *HandlerRespBody) SetData(v map[string]interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *HandlerRespBody) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetMsg + +`func (o *HandlerRespBody) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *HandlerRespBody) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *HandlerRespBody) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *HandlerRespBody) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + +### GetReason + +`func (o *HandlerRespBody) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *HandlerRespBody) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *HandlerRespBody) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *HandlerRespBody) HasReason() bool` + +HasReason returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InstallCheckConfigFileResp.md b/docs/InstallCheckConfigFileResp.md new file mode 100644 index 0000000..33a64d7 --- /dev/null +++ b/docs/InstallCheckConfigFileResp.md @@ -0,0 +1,108 @@ +# InstallCheckConfigFileResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigFileExist** | Pointer to **bool** | | [optional] +**DbConnectionSuccess** | Pointer to **bool** | | [optional] +**DbTableExist** | Pointer to **bool** | | [optional] + +## Methods + +### NewInstallCheckConfigFileResp + +`func NewInstallCheckConfigFileResp() *InstallCheckConfigFileResp` + +NewInstallCheckConfigFileResp instantiates a new InstallCheckConfigFileResp 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 + +### NewInstallCheckConfigFileRespWithDefaults + +`func NewInstallCheckConfigFileRespWithDefaults() *InstallCheckConfigFileResp` + +NewInstallCheckConfigFileRespWithDefaults instantiates a new InstallCheckConfigFileResp 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 + +### GetConfigFileExist + +`func (o *InstallCheckConfigFileResp) GetConfigFileExist() bool` + +GetConfigFileExist returns the ConfigFileExist field if non-nil, zero value otherwise. + +### GetConfigFileExistOk + +`func (o *InstallCheckConfigFileResp) GetConfigFileExistOk() (*bool, bool)` + +GetConfigFileExistOk returns a tuple with the ConfigFileExist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigFileExist + +`func (o *InstallCheckConfigFileResp) SetConfigFileExist(v bool)` + +SetConfigFileExist sets ConfigFileExist field to given value. + +### HasConfigFileExist + +`func (o *InstallCheckConfigFileResp) HasConfigFileExist() bool` + +HasConfigFileExist returns a boolean if a field has been set. + +### GetDbConnectionSuccess + +`func (o *InstallCheckConfigFileResp) GetDbConnectionSuccess() bool` + +GetDbConnectionSuccess returns the DbConnectionSuccess field if non-nil, zero value otherwise. + +### GetDbConnectionSuccessOk + +`func (o *InstallCheckConfigFileResp) GetDbConnectionSuccessOk() (*bool, bool)` + +GetDbConnectionSuccessOk returns a tuple with the DbConnectionSuccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbConnectionSuccess + +`func (o *InstallCheckConfigFileResp) SetDbConnectionSuccess(v bool)` + +SetDbConnectionSuccess sets DbConnectionSuccess field to given value. + +### HasDbConnectionSuccess + +`func (o *InstallCheckConfigFileResp) HasDbConnectionSuccess() bool` + +HasDbConnectionSuccess returns a boolean if a field has been set. + +### GetDbTableExist + +`func (o *InstallCheckConfigFileResp) GetDbTableExist() bool` + +GetDbTableExist returns the DbTableExist field if non-nil, zero value otherwise. + +### GetDbTableExistOk + +`func (o *InstallCheckConfigFileResp) GetDbTableExistOk() (*bool, bool)` + +GetDbTableExistOk returns a tuple with the DbTableExist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbTableExist + +`func (o *InstallCheckConfigFileResp) SetDbTableExist(v bool)` + +SetDbTableExist sets DbTableExist field to given value. + +### HasDbTableExist + +`func (o *InstallCheckConfigFileResp) HasDbTableExist() bool` + +HasDbTableExist 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/InstallCheckDatabaseReq.md b/docs/InstallCheckDatabaseReq.md new file mode 100644 index 0000000..7925fca --- /dev/null +++ b/docs/InstallCheckDatabaseReq.md @@ -0,0 +1,181 @@ +# InstallCheckDatabaseReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DbFile** | Pointer to **string** | | [optional] +**DbHost** | Pointer to **string** | | [optional] +**DbName** | Pointer to **string** | | [optional] +**DbPassword** | Pointer to **string** | | [optional] +**DbType** | **string** | | +**DbUsername** | Pointer to **string** | | [optional] + +## Methods + +### NewInstallCheckDatabaseReq + +`func NewInstallCheckDatabaseReq(dbType string, ) *InstallCheckDatabaseReq` + +NewInstallCheckDatabaseReq instantiates a new InstallCheckDatabaseReq 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 + +### NewInstallCheckDatabaseReqWithDefaults + +`func NewInstallCheckDatabaseReqWithDefaults() *InstallCheckDatabaseReq` + +NewInstallCheckDatabaseReqWithDefaults instantiates a new InstallCheckDatabaseReq 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 + +### GetDbFile + +`func (o *InstallCheckDatabaseReq) GetDbFile() string` + +GetDbFile returns the DbFile field if non-nil, zero value otherwise. + +### GetDbFileOk + +`func (o *InstallCheckDatabaseReq) GetDbFileOk() (*string, bool)` + +GetDbFileOk returns a tuple with the DbFile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbFile + +`func (o *InstallCheckDatabaseReq) SetDbFile(v string)` + +SetDbFile sets DbFile field to given value. + +### HasDbFile + +`func (o *InstallCheckDatabaseReq) HasDbFile() bool` + +HasDbFile returns a boolean if a field has been set. + +### GetDbHost + +`func (o *InstallCheckDatabaseReq) GetDbHost() string` + +GetDbHost returns the DbHost field if non-nil, zero value otherwise. + +### GetDbHostOk + +`func (o *InstallCheckDatabaseReq) GetDbHostOk() (*string, bool)` + +GetDbHostOk returns a tuple with the DbHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbHost + +`func (o *InstallCheckDatabaseReq) SetDbHost(v string)` + +SetDbHost sets DbHost field to given value. + +### HasDbHost + +`func (o *InstallCheckDatabaseReq) HasDbHost() bool` + +HasDbHost returns a boolean if a field has been set. + +### GetDbName + +`func (o *InstallCheckDatabaseReq) GetDbName() string` + +GetDbName returns the DbName field if non-nil, zero value otherwise. + +### GetDbNameOk + +`func (o *InstallCheckDatabaseReq) GetDbNameOk() (*string, bool)` + +GetDbNameOk returns a tuple with the DbName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbName + +`func (o *InstallCheckDatabaseReq) SetDbName(v string)` + +SetDbName sets DbName field to given value. + +### HasDbName + +`func (o *InstallCheckDatabaseReq) HasDbName() bool` + +HasDbName returns a boolean if a field has been set. + +### GetDbPassword + +`func (o *InstallCheckDatabaseReq) GetDbPassword() string` + +GetDbPassword returns the DbPassword field if non-nil, zero value otherwise. + +### GetDbPasswordOk + +`func (o *InstallCheckDatabaseReq) GetDbPasswordOk() (*string, bool)` + +GetDbPasswordOk returns a tuple with the DbPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbPassword + +`func (o *InstallCheckDatabaseReq) SetDbPassword(v string)` + +SetDbPassword sets DbPassword field to given value. + +### HasDbPassword + +`func (o *InstallCheckDatabaseReq) HasDbPassword() bool` + +HasDbPassword returns a boolean if a field has been set. + +### GetDbType + +`func (o *InstallCheckDatabaseReq) GetDbType() string` + +GetDbType returns the DbType field if non-nil, zero value otherwise. + +### GetDbTypeOk + +`func (o *InstallCheckDatabaseReq) GetDbTypeOk() (*string, bool)` + +GetDbTypeOk returns a tuple with the DbType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbType + +`func (o *InstallCheckDatabaseReq) SetDbType(v string)` + +SetDbType sets DbType field to given value. + + +### GetDbUsername + +`func (o *InstallCheckDatabaseReq) GetDbUsername() string` + +GetDbUsername returns the DbUsername field if non-nil, zero value otherwise. + +### GetDbUsernameOk + +`func (o *InstallCheckDatabaseReq) GetDbUsernameOk() (*string, bool)` + +GetDbUsernameOk returns a tuple with the DbUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDbUsername + +`func (o *InstallCheckDatabaseReq) SetDbUsername(v string)` + +SetDbUsername sets DbUsername field to given value. + +### HasDbUsername + +`func (o *InstallCheckDatabaseReq) HasDbUsername() bool` + +HasDbUsername 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/InstallInitBaseInfoReq.md b/docs/InstallInitBaseInfoReq.md new file mode 100644 index 0000000..ce798c3 --- /dev/null +++ b/docs/InstallInitBaseInfoReq.md @@ -0,0 +1,177 @@ +# InstallInitBaseInfoReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContactEmail** | **string** | | +**Email** | **string** | | +**Lang** | **string** | | +**Name** | **string** | | +**Password** | **string** | | +**SiteName** | **string** | | +**SiteUrl** | **string** | | + +## Methods + +### NewInstallInitBaseInfoReq + +`func NewInstallInitBaseInfoReq(contactEmail string, email string, lang string, name string, password string, siteName string, siteUrl string, ) *InstallInitBaseInfoReq` + +NewInstallInitBaseInfoReq instantiates a new InstallInitBaseInfoReq 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 + +### NewInstallInitBaseInfoReqWithDefaults + +`func NewInstallInitBaseInfoReqWithDefaults() *InstallInitBaseInfoReq` + +NewInstallInitBaseInfoReqWithDefaults instantiates a new InstallInitBaseInfoReq 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 + +### GetContactEmail + +`func (o *InstallInitBaseInfoReq) GetContactEmail() string` + +GetContactEmail returns the ContactEmail field if non-nil, zero value otherwise. + +### GetContactEmailOk + +`func (o *InstallInitBaseInfoReq) GetContactEmailOk() (*string, bool)` + +GetContactEmailOk returns a tuple with the ContactEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContactEmail + +`func (o *InstallInitBaseInfoReq) SetContactEmail(v string)` + +SetContactEmail sets ContactEmail field to given value. + + +### GetEmail + +`func (o *InstallInitBaseInfoReq) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *InstallInitBaseInfoReq) 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 *InstallInitBaseInfoReq) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetLang + +`func (o *InstallInitBaseInfoReq) GetLang() string` + +GetLang returns the Lang field if non-nil, zero value otherwise. + +### GetLangOk + +`func (o *InstallInitBaseInfoReq) GetLangOk() (*string, bool)` + +GetLangOk returns a tuple with the Lang field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLang + +`func (o *InstallInitBaseInfoReq) SetLang(v string)` + +SetLang sets Lang field to given value. + + +### GetName + +`func (o *InstallInitBaseInfoReq) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *InstallInitBaseInfoReq) 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 *InstallInitBaseInfoReq) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPassword + +`func (o *InstallInitBaseInfoReq) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *InstallInitBaseInfoReq) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *InstallInitBaseInfoReq) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetSiteName + +`func (o *InstallInitBaseInfoReq) GetSiteName() string` + +GetSiteName returns the SiteName field if non-nil, zero value otherwise. + +### GetSiteNameOk + +`func (o *InstallInitBaseInfoReq) GetSiteNameOk() (*string, bool)` + +GetSiteNameOk returns a tuple with the SiteName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteName + +`func (o *InstallInitBaseInfoReq) SetSiteName(v string)` + +SetSiteName sets SiteName field to given value. + + +### GetSiteUrl + +`func (o *InstallInitBaseInfoReq) GetSiteUrl() string` + +GetSiteUrl returns the SiteUrl field if non-nil, zero value otherwise. + +### GetSiteUrlOk + +`func (o *InstallInitBaseInfoReq) GetSiteUrlOk() (*string, bool)` + +GetSiteUrlOk returns a tuple with the SiteUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteUrl + +`func (o *InstallInitBaseInfoReq) SetSiteUrl(v string)` + +SetSiteUrl sets SiteUrl 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/InstallationApi.md b/docs/InstallationApi.md new file mode 100644 index 0000000..9f3580b --- /dev/null +++ b/docs/InstallationApi.md @@ -0,0 +1,331 @@ +# \InstallationApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**InstallationBaseInfoPost**](InstallationApi.md#InstallationBaseInfoPost) | **Post** /installation/base-info | init base info +[**InstallationConfigFileCheckPost**](InstallationApi.md#InstallationConfigFileCheckPost) | **Post** /installation/config-file/check | check config file if exist when installation +[**InstallationDbCheckPost**](InstallationApi.md#InstallationDbCheckPost) | **Post** /installation/db/check | check database if exist when installation +[**InstallationInitPost**](InstallationApi.md#InstallationInitPost) | **Post** /installation/init | init environment +[**RootGet**](InstallationApi.md#RootGet) | **Get** / | if config file not exist try to redirect to install page + + + +## InstallationBaseInfoPost + +> HandlerRespBody InstallationBaseInfoPost(ctx).Data(data).Execute() + +init base info + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewInstallInitBaseInfoReq("ContactEmail_example", "Email_example", "Lang_example", "Name_example", "Password_example", "SiteName_example", "SiteUrl_example") // InstallInitBaseInfoReq | InitBaseInfoReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InstallationApi.InstallationBaseInfoPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InstallationApi.InstallationBaseInfoPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InstallationBaseInfoPost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `InstallationApi.InstallationBaseInfoPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInstallationBaseInfoPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**InstallInitBaseInfoReq**](InstallInitBaseInfoReq.md) | InitBaseInfoReq | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InstallationConfigFileCheckPost + +> InstallationConfigFileCheckPost200Response InstallationConfigFileCheckPost(ctx).Execute() + +check config file if exist when installation + + + +### 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.InstallationApi.InstallationConfigFileCheckPost(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InstallationApi.InstallationConfigFileCheckPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InstallationConfigFileCheckPost`: InstallationConfigFileCheckPost200Response + fmt.Fprintf(os.Stdout, "Response from `InstallationApi.InstallationConfigFileCheckPost`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiInstallationConfigFileCheckPostRequest struct via the builder pattern + + +### Return type + +[**InstallationConfigFileCheckPost200Response**](InstallationConfigFileCheckPost200Response.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) + + +## InstallationDbCheckPost + +> InstallationConfigFileCheckPost200Response InstallationDbCheckPost(ctx).Data(data).Execute() + +check database if exist when installation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewInstallCheckDatabaseReq("DbType_example") // InstallCheckDatabaseReq | CheckDatabaseReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InstallationApi.InstallationDbCheckPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InstallationApi.InstallationDbCheckPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InstallationDbCheckPost`: InstallationConfigFileCheckPost200Response + fmt.Fprintf(os.Stdout, "Response from `InstallationApi.InstallationDbCheckPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInstallationDbCheckPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**InstallCheckDatabaseReq**](InstallCheckDatabaseReq.md) | CheckDatabaseReq | + +### Return type + +[**InstallationConfigFileCheckPost200Response**](InstallationConfigFileCheckPost200Response.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) + + +## InstallationInitPost + +> HandlerRespBody InstallationInitPost(ctx).Data(data).Execute() + +init environment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewInstallCheckDatabaseReq("DbType_example") // InstallCheckDatabaseReq | CheckDatabaseReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.InstallationApi.InstallationInitPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InstallationApi.InstallationInitPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InstallationInitPost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `InstallationApi.InstallationInitPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiInstallationInitPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**InstallCheckDatabaseReq**](InstallCheckDatabaseReq.md) | CheckDatabaseReq | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RootGet + +> RootGet(ctx).Execute() + +if config file not exist try to redirect to install page + + + +### 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) + r, err := apiClient.InstallationApi.RootGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InstallationApi.RootGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiRootGetRequest struct via the builder pattern + + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[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/InstallationConfigFileCheckPost200Response.md b/docs/InstallationConfigFileCheckPost200Response.md new file mode 100644 index 0000000..94f052c --- /dev/null +++ b/docs/InstallationConfigFileCheckPost200Response.md @@ -0,0 +1,82 @@ +# InstallationConfigFileCheckPost200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**InstallCheckConfigFileResp**](InstallCheckConfigFileResp.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewInstallationConfigFileCheckPost200Response + +`func NewInstallationConfigFileCheckPost200Response() *InstallationConfigFileCheckPost200Response` + +NewInstallationConfigFileCheckPost200Response instantiates a new InstallationConfigFileCheckPost200Response 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 + +### NewInstallationConfigFileCheckPost200ResponseWithDefaults + +`func NewInstallationConfigFileCheckPost200ResponseWithDefaults() *InstallationConfigFileCheckPost200Response` + +NewInstallationConfigFileCheckPost200ResponseWithDefaults instantiates a new InstallationConfigFileCheckPost200Response 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 *InstallationConfigFileCheckPost200Response) GetData() InstallCheckConfigFileResp` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *InstallationConfigFileCheckPost200Response) GetDataOk() (*InstallCheckConfigFileResp, 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 *InstallationConfigFileCheckPost200Response) SetData(v InstallCheckConfigFileResp)` + +SetData sets Data field to given value. + +### HasData + +`func (o *InstallationConfigFileCheckPost200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *InstallationConfigFileCheckPost200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *InstallationConfigFileCheckPost200Response) 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 *InstallationConfigFileCheckPost200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *InstallationConfigFileCheckPost200Response) 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/InstallationLanguageOptionsGet200Response.md b/docs/InstallationLanguageOptionsGet200Response.md new file mode 100644 index 0000000..983cc97 --- /dev/null +++ b/docs/InstallationLanguageOptionsGet200Response.md @@ -0,0 +1,82 @@ +# InstallationLanguageOptionsGet200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]TranslatorLangOption**](TranslatorLangOption.md) | | [optional] +**HandlerRespBody** | Pointer to [**HandlerRespBody**](HandlerRespBody.md) | | [optional] + +## Methods + +### NewInstallationLanguageOptionsGet200Response + +`func NewInstallationLanguageOptionsGet200Response() *InstallationLanguageOptionsGet200Response` + +NewInstallationLanguageOptionsGet200Response instantiates a new InstallationLanguageOptionsGet200Response 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 + +### NewInstallationLanguageOptionsGet200ResponseWithDefaults + +`func NewInstallationLanguageOptionsGet200ResponseWithDefaults() *InstallationLanguageOptionsGet200Response` + +NewInstallationLanguageOptionsGet200ResponseWithDefaults instantiates a new InstallationLanguageOptionsGet200Response 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 *InstallationLanguageOptionsGet200Response) GetData() []TranslatorLangOption` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *InstallationLanguageOptionsGet200Response) GetDataOk() (*[]TranslatorLangOption, 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 *InstallationLanguageOptionsGet200Response) SetData(v []TranslatorLangOption)` + +SetData sets Data field to given value. + +### HasData + +`func (o *InstallationLanguageOptionsGet200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetHandlerRespBody + +`func (o *InstallationLanguageOptionsGet200Response) GetHandlerRespBody() HandlerRespBody` + +GetHandlerRespBody returns the HandlerRespBody field if non-nil, zero value otherwise. + +### GetHandlerRespBodyOk + +`func (o *InstallationLanguageOptionsGet200Response) 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 *InstallationLanguageOptionsGet200Response) SetHandlerRespBody(v HandlerRespBody)` + +SetHandlerRespBody sets HandlerRespBody field to given value. + +### HasHandlerRespBody + +`func (o *InstallationLanguageOptionsGet200Response) 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/LangApi.md b/docs/LangApi.md new file mode 100644 index 0000000..69da7c9 --- /dev/null +++ b/docs/LangApi.md @@ -0,0 +1,261 @@ +# \LangApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerAdminApiLanguageOptionsGet**](LangApi.md#AnswerAdminApiLanguageOptionsGet) | **Get** /answer/admin/api/language/options | Get language options +[**AnswerApiV1LanguageConfigGet**](LangApi.md#AnswerApiV1LanguageConfigGet) | **Get** /answer/api/v1/language/config | get language config mapping +[**AnswerApiV1LanguageOptionsGet**](LangApi.md#AnswerApiV1LanguageOptionsGet) | **Get** /answer/api/v1/language/options | Get language options +[**InstallationLanguageOptionsGet**](LangApi.md#InstallationLanguageOptionsGet) | **Get** /installation/language/options | get installation language options + + + +## AnswerAdminApiLanguageOptionsGet + +> HandlerRespBody AnswerAdminApiLanguageOptionsGet(ctx).Execute() + +Get language options + + + +### 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.LangApi.AnswerAdminApiLanguageOptionsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LangApi.AnswerAdminApiLanguageOptionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiLanguageOptionsGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `LangApi.AnswerAdminApiLanguageOptionsGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiLanguageOptionsGetRequest struct via the builder pattern + + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1LanguageConfigGet + +> HandlerRespBody AnswerApiV1LanguageConfigGet(ctx).AcceptLanguage(acceptLanguage).Execute() + +get language config mapping + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + acceptLanguage := "acceptLanguage_example" // string | Accept-Language + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LangApi.AnswerApiV1LanguageConfigGet(context.Background()).AcceptLanguage(acceptLanguage).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LangApi.AnswerApiV1LanguageConfigGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1LanguageConfigGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `LangApi.AnswerApiV1LanguageConfigGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1LanguageConfigGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **acceptLanguage** | **string** | Accept-Language | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1LanguageOptionsGet + +> HandlerRespBody AnswerApiV1LanguageOptionsGet(ctx).Execute() + +Get language options + + + +### 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.LangApi.AnswerApiV1LanguageOptionsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LangApi.AnswerApiV1LanguageOptionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1LanguageOptionsGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `LangApi.AnswerApiV1LanguageOptionsGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1LanguageOptionsGetRequest struct via the builder pattern + + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## InstallationLanguageOptionsGet + +> InstallationLanguageOptionsGet200Response InstallationLanguageOptionsGet(ctx).Execute() + +get installation language options + + + +### 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.LangApi.InstallationLanguageOptionsGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LangApi.InstallationLanguageOptionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `InstallationLanguageOptionsGet`: InstallationLanguageOptionsGet200Response + fmt.Fprintf(os.Stdout, "Response from `LangApi.InstallationLanguageOptionsGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiInstallationLanguageOptionsGetRequest struct via the builder pattern + + +### Return type + +[**InstallationLanguageOptionsGet200Response**](InstallationLanguageOptionsGet200Response.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/NotificationApi.md b/docs/NotificationApi.md new file mode 100644 index 0000000..924a767 --- /dev/null +++ b/docs/NotificationApi.md @@ -0,0 +1,342 @@ +# \NotificationApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1NotificationPageGet**](NotificationApi.md#AnswerApiV1NotificationPageGet) | **Get** /answer/api/v1/notification/page | get notification list +[**AnswerApiV1NotificationReadStateAllPut**](NotificationApi.md#AnswerApiV1NotificationReadStateAllPut) | **Put** /answer/api/v1/notification/read/state/all | ClearUnRead +[**AnswerApiV1NotificationReadStatePut**](NotificationApi.md#AnswerApiV1NotificationReadStatePut) | **Put** /answer/api/v1/notification/read/state | ClearUnRead +[**AnswerApiV1NotificationStatusGet**](NotificationApi.md#AnswerApiV1NotificationStatusGet) | **Get** /answer/api/v1/notification/status | GetRedDot +[**AnswerApiV1NotificationStatusPut**](NotificationApi.md#AnswerApiV1NotificationStatusPut) | **Put** /answer/api/v1/notification/status | DelRedDot + + + +## AnswerApiV1NotificationPageGet + +> HandlerRespBody AnswerApiV1NotificationPageGet(ctx).Type_(type_).Page(page).PageSize(pageSize).Execute() + +get notification list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + type_ := "type__example" // string | 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() + 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) + } + // response from `AnswerApiV1NotificationPageGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `NotificationApi.AnswerApiV1NotificationPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1NotificationPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type_** | **string** | type | + **page** | **int32** | page size | + **pageSize** | **int32** | page size | + +### 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) + + +## AnswerApiV1NotificationReadStateAllPut + +> HandlerRespBody AnswerApiV1NotificationReadStateAllPut(ctx).Data(data).Execute() + +ClearUnRead + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaNotificationClearRequest() // SchemaNotificationClearRequest | NotificationClearRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NotificationApi.AnswerApiV1NotificationReadStateAllPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationApi.AnswerApiV1NotificationReadStateAllPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1NotificationReadStateAllPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `NotificationApi.AnswerApiV1NotificationReadStateAllPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1NotificationReadStateAllPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaNotificationClearRequest**](SchemaNotificationClearRequest.md) | NotificationClearRequest | + +### 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) + + +## AnswerApiV1NotificationReadStatePut + +> HandlerRespBody AnswerApiV1NotificationReadStatePut(ctx).Data(data).Execute() + +ClearUnRead + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaNotificationClearIDRequest() // SchemaNotificationClearIDRequest | NotificationClearIDRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NotificationApi.AnswerApiV1NotificationReadStatePut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationApi.AnswerApiV1NotificationReadStatePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1NotificationReadStatePut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `NotificationApi.AnswerApiV1NotificationReadStatePut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1NotificationReadStatePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaNotificationClearIDRequest**](SchemaNotificationClearIDRequest.md) | NotificationClearIDRequest | + +### 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) + + +## AnswerApiV1NotificationStatusGet + +> HandlerRespBody AnswerApiV1NotificationStatusGet(ctx).Execute() + +GetRedDot + + + +### 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.NotificationApi.AnswerApiV1NotificationStatusGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationApi.AnswerApiV1NotificationStatusGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1NotificationStatusGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `NotificationApi.AnswerApiV1NotificationStatusGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1NotificationStatusGetRequest 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) + + +## AnswerApiV1NotificationStatusPut + +> HandlerRespBody AnswerApiV1NotificationStatusPut(ctx).Data(data).Execute() + +DelRedDot + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaNotificationClearRequest() // SchemaNotificationClearRequest | NotificationClearRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NotificationApi.AnswerApiV1NotificationStatusPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NotificationApi.AnswerApiV1NotificationStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1NotificationStatusPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `NotificationApi.AnswerApiV1NotificationStatusPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1NotificationStatusPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaNotificationClearRequest**](SchemaNotificationClearRequest.md) | NotificationClearRequest | + +### 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/PagerPageModel.md b/docs/PagerPageModel.md new file mode 100644 index 0000000..37c8b4a --- /dev/null +++ b/docs/PagerPageModel.md @@ -0,0 +1,82 @@ +# PagerPageModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**List** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPagerPageModel + +`func NewPagerPageModel() *PagerPageModel` + +NewPagerPageModel instantiates a new PagerPageModel 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 + +### NewPagerPageModelWithDefaults + +`func NewPagerPageModelWithDefaults() *PagerPageModel` + +NewPagerPageModelWithDefaults instantiates a new PagerPageModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PagerPageModel) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PagerPageModel) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PagerPageModel) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *PagerPageModel) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetList + +`func (o *PagerPageModel) GetList() map[string]interface{}` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *PagerPageModel) GetListOk() (*map[string]interface{}, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *PagerPageModel) SetList(v map[string]interface{})` + +SetList sets List field to given value. + +### HasList + +`func (o *PagerPageModel) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QuestionApi.md b/docs/QuestionApi.md new file mode 100644 index 0000000..4962b46 --- /dev/null +++ b/docs/QuestionApi.md @@ -0,0 +1,947 @@ +# \QuestionApi + +All URIs are relative to *http://127.0.0.1:80* + +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 +[**AnswerApiV1QuestionOperationPut**](QuestionApi.md#AnswerApiV1QuestionOperationPut) | **Put** /answer/api/v1/question/operation | Operation question +[**AnswerApiV1QuestionPageGet**](QuestionApi.md#AnswerApiV1QuestionPageGet) | **Get** /answer/api/v1/question/page | get questions by page +[**AnswerApiV1QuestionPost**](QuestionApi.md#AnswerApiV1QuestionPost) | **Post** /answer/api/v1/question | add question +[**AnswerApiV1QuestionPut**](QuestionApi.md#AnswerApiV1QuestionPut) | **Put** /answer/api/v1/question | update question +[**AnswerApiV1QuestionReopenPut**](QuestionApi.md#AnswerApiV1QuestionReopenPut) | **Put** /answer/api/v1/question/reopen | reopen question +[**AnswerApiV1QuestionSimilarGet**](QuestionApi.md#AnswerApiV1QuestionSimilarGet) | **Get** /answer/api/v1/question/similar | add question title like +[**AnswerApiV1QuestionSimilarTagGet**](QuestionApi.md#AnswerApiV1QuestionSimilarTagGet) | **Get** /answer/api/v1/question/similar/tag | Search Similar Question +[**AnswerApiV1QuestionStatusPut**](QuestionApi.md#AnswerApiV1QuestionStatusPut) | **Put** /answer/api/v1/question/status | Close question +[**PersonalQuestionPageGet**](QuestionApi.md#PersonalQuestionPageGet) | **Get** /personal/question/page | UserList + + + +## AnswerApiV1PersonalQaTopGet + +> HandlerRespBody AnswerApiV1PersonalQaTopGet(ctx).Username(username).Execute() + +UserTop + + + +### 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") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1PersonalQaTopGet(context.Background()).Username(username).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1PersonalQaTopGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1PersonalQaTopGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1PersonalQaTopGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1PersonalQaTopGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **username** | **string** | username | [default to "string"] + +### 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) + + +## AnswerApiV1QuestionAnswerPost + +> HandlerRespBody AnswerApiV1QuestionAnswerPost(ctx).Data(data).Execute() + +add question and answer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaQuestionAddByAnswer("AnswerContent_example", "Content_example", []openapiclient.SchemaTagItem{*openapiclient.NewSchemaTagItem()}, "Title_example") // SchemaQuestionAddByAnswer | question + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionAnswerPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionAnswerPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionAnswerPost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionAnswerPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionAnswerPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaQuestionAddByAnswer**](SchemaQuestionAddByAnswer.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) + + +## 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() + +delete question + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaRemoveQuestionReq("Id_example") // SchemaRemoveQuestionReq | question + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionDelete(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionDelete`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionDelete`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaRemoveQuestionReq**](SchemaRemoveQuestionReq.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) + + +## AnswerApiV1QuestionInfoGet + +> string AnswerApiV1QuestionInfoGet(ctx).Id(id).Execute() + +get question details + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + id := "id_example" // string | Question TagID (default to "1") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionInfoGet(context.Background()).Id(id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionInfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionInfoGet`: string + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionInfoGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionInfoGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string** | Question TagID | [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) + + +## AnswerApiV1QuestionOperationPut + +> HandlerRespBody AnswerApiV1QuestionOperationPut(ctx).Data(data).Execute() + +Operation question + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaOperationQuestionReq("Id_example") // SchemaOperationQuestionReq | question + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionOperationPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionOperationPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionOperationPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionOperationPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionOperationPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaOperationQuestionReq**](SchemaOperationQuestionReq.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) + + +## AnswerApiV1QuestionPageGet + +> AnswerApiV1QuestionPageGet200Response AnswerApiV1QuestionPageGet(ctx).Data(data).Execute() + +get questions by page + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaQuestionPageReq() // SchemaQuestionPageReq | QuestionPageReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionPageGet(context.Background()).Data(data).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) + } + // response from `AnswerApiV1QuestionPageGet`: AnswerApiV1QuestionPageGet200Response + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaQuestionPageReq**](SchemaQuestionPageReq.md) | QuestionPageReq | + +### Return type + +[**AnswerApiV1QuestionPageGet200Response**](AnswerApiV1QuestionPageGet200Response.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) + + +## AnswerApiV1QuestionPost + +> HandlerRespBody AnswerApiV1QuestionPost(ctx).Data(data).Execute() + +add question + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaQuestionAdd("Content_example", []openapiclient.SchemaTagItem{*openapiclient.NewSchemaTagItem()}, "Title_example") // SchemaQuestionAdd | question + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionPost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaQuestionAdd**](SchemaQuestionAdd.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) + + +## AnswerApiV1QuestionPut + +> HandlerRespBody AnswerApiV1QuestionPut(ctx).Data(data).Execute() + +update question + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaQuestionUpdate("Content_example", "Id_example", []openapiclient.SchemaTagItem{*openapiclient.NewSchemaTagItem()}, "Title_example") // SchemaQuestionUpdate | question + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaQuestionUpdate**](SchemaQuestionUpdate.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) + + +## AnswerApiV1QuestionReopenPut + +> HandlerRespBody AnswerApiV1QuestionReopenPut(ctx).Data(data).Execute() + +reopen question + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaReopenQuestionReq() // SchemaReopenQuestionReq | question + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionReopenPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionReopenPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionReopenPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionReopenPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionReopenPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaReopenQuestionReq**](SchemaReopenQuestionReq.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) + + +## AnswerApiV1QuestionSimilarGet + +> HandlerRespBody AnswerApiV1QuestionSimilarGet(ctx).Title(title).Execute() + +add question title like + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + title := "title_example" // string | title (default to "string") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionSimilarGet(context.Background()).Title(title).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionSimilarGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionSimilarGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionSimilarGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionSimilarGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **title** | **string** | title | [default to "string"] + +### 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) + + +## AnswerApiV1QuestionSimilarTagGet + +> string AnswerApiV1QuestionSimilarTagGet(ctx).QuestionId(questionId).Execute() + +Search Similar Question + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + questionId := "questionId_example" // string | question_id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionSimilarTagGet(context.Background()).QuestionId(questionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionSimilarTagGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionSimilarTagGet`: string + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionSimilarTagGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionSimilarTagGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **questionId** | **string** | question_id | + +### Return type + +**string** + +### 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) + + +## AnswerApiV1QuestionStatusPut + +> HandlerRespBody AnswerApiV1QuestionStatusPut(ctx).Data(data).Execute() + +Close question + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaCloseQuestionReq("Id_example") // SchemaCloseQuestionReq | question + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionStatusPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionStatusPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionStatusPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionStatusPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionStatusPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaCloseQuestionReq**](SchemaCloseQuestionReq.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) + + +## 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 new file mode 100644 index 0000000..32027ad --- /dev/null +++ b/docs/RankApi.md @@ -0,0 +1,79 @@ +# \RankApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1PersonalRankPageGet**](RankApi.md#AnswerApiV1PersonalRankPageGet) | **Get** /answer/api/v1/personal/rank/page | user personal rank list + + + +## AnswerApiV1PersonalRankPageGet + +> AnswerApiV1PersonalRankPageGet200Response AnswerApiV1PersonalRankPageGet(ctx).Page(page).PageSize(pageSize).Username(username).Execute() + +user personal rank list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + page := int32(56) // int32 | page (optional) + pageSize := int32(56) // int32 | page size (optional) + username := "username_example" // string | username (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RankApi.AnswerApiV1PersonalRankPageGet(context.Background()).Page(page).PageSize(pageSize).Username(username).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RankApi.AnswerApiV1PersonalRankPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1PersonalRankPageGet`: AnswerApiV1PersonalRankPageGet200Response + fmt.Fprintf(os.Stdout, "Response from `RankApi.AnswerApiV1PersonalRankPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1PersonalRankPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | page | + **pageSize** | **int32** | page size | + **username** | **string** | username | + +### Return type + +[**AnswerApiV1PersonalRankPageGet200Response**](AnswerApiV1PersonalRankPageGet200Response.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/ReasonApi.md b/docs/ReasonApi.md new file mode 100644 index 0000000..e08bc41 --- /dev/null +++ b/docs/ReasonApi.md @@ -0,0 +1,146 @@ +# \ReasonApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerAdminApiReasonsGet**](ReasonApi.md#AnswerAdminApiReasonsGet) | **Get** /answer/admin/api/reasons | get reasons by object type and action +[**AnswerApiV1ReasonsGet**](ReasonApi.md#AnswerApiV1ReasonsGet) | **Get** /answer/api/v1/reasons | get reasons by object type and action + + + +## AnswerAdminApiReasonsGet + +> HandlerRespBody AnswerAdminApiReasonsGet(ctx).ObjectType(objectType).Action(action).Execute() + +get reasons by object type and action + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + objectType := "objectType_example" // string | object_type + action := "action_example" // string | action + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReasonApi.AnswerAdminApiReasonsGet(context.Background()).ObjectType(objectType).Action(action).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReasonApi.AnswerAdminApiReasonsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerAdminApiReasonsGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `ReasonApi.AnswerAdminApiReasonsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerAdminApiReasonsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **objectType** | **string** | object_type | + **action** | **string** | action | + +### 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) + + +## AnswerApiV1ReasonsGet + +> HandlerRespBody AnswerApiV1ReasonsGet(ctx).ObjectType(objectType).Action(action).Execute() + +get reasons by object type and action + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + objectType := "objectType_example" // string | object_type + action := "action_example" // string | action + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReasonApi.AnswerApiV1ReasonsGet(context.Background()).ObjectType(objectType).Action(action).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReasonApi.AnswerApiV1ReasonsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1ReasonsGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `ReasonApi.AnswerApiV1ReasonsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1ReasonsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **objectType** | **string** | object_type | + **action** | **string** | action | + +### 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/ReportApi.md b/docs/ReportApi.md new file mode 100644 index 0000000..536ffbe --- /dev/null +++ b/docs/ReportApi.md @@ -0,0 +1,142 @@ +# \ReportApi + +All URIs are relative to *http://127.0.0.1:80* + +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 + + + +## AnswerApiV1ReportPost + +> HandlerRespBody AnswerApiV1ReportPost(ctx).Data(data).Execute() + +add report + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaAddReportReq("ObjectId_example", int32(123)) // SchemaAddReportReq | report + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReportApi.AnswerApiV1ReportPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReportApi.AnswerApiV1ReportPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1ReportPost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `ReportApi.AnswerApiV1ReportPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1ReportPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaAddReportReq**](SchemaAddReportReq.md) | report | + +### 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) + + +## 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 new file mode 100644 index 0000000..39692dd --- /dev/null +++ b/docs/RevisionApi.md @@ -0,0 +1,276 @@ +# \RevisionApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1RevisionsAuditPut**](RevisionApi.md#AnswerApiV1RevisionsAuditPut) | **Put** /answer/api/v1/revisions/audit | revision audit +[**AnswerApiV1RevisionsEditCheckGet**](RevisionApi.md#AnswerApiV1RevisionsEditCheckGet) | **Get** /answer/api/v1/revisions/edit/check | check can update revision +[**AnswerApiV1RevisionsGet**](RevisionApi.md#AnswerApiV1RevisionsGet) | **Get** /answer/api/v1/revisions | get revision list +[**AnswerApiV1RevisionsUnreviewedGet**](RevisionApi.md#AnswerApiV1RevisionsUnreviewedGet) | **Get** /answer/api/v1/revisions/unreviewed | get unreviewed revision list + + + +## AnswerApiV1RevisionsAuditPut + +> HandlerRespBody AnswerApiV1RevisionsAuditPut(ctx).Data(data).Execute() + +revision audit + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaRevisionAuditReq("Id_example", "Operation_example") // SchemaRevisionAuditReq | audit + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsAuditPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsAuditPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1RevisionsAuditPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsAuditPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1RevisionsAuditPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaRevisionAuditReq**](SchemaRevisionAuditReq.md) | audit | + +### 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) + + +## AnswerApiV1RevisionsEditCheckGet + +> HandlerRespBody AnswerApiV1RevisionsEditCheckGet(ctx).Id(id).Execute() + +check can update revision + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + id := "id_example" // string | id (default to "string") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsEditCheckGet(context.Background()).Id(id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsEditCheckGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1RevisionsEditCheckGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsEditCheckGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1RevisionsEditCheckGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string** | id | [default to "string"] + +### 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) + + +## AnswerApiV1RevisionsGet + +> AnswerApiV1RevisionsGet200Response AnswerApiV1RevisionsGet(ctx).ObjectId(objectId).Execute() + +get revision list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + objectId := "objectId_example" // string | object id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsGet(context.Background()).ObjectId(objectId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1RevisionsGet`: AnswerApiV1RevisionsGet200Response + fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1RevisionsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **objectId** | **string** | object id | + +### Return type + +[**AnswerApiV1RevisionsGet200Response**](AnswerApiV1RevisionsGet200Response.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) + + +## AnswerApiV1RevisionsUnreviewedGet + +> AnswerApiV1RevisionsUnreviewedGet200Response AnswerApiV1RevisionsUnreviewedGet(ctx).Page(page).Execute() + +get unreviewed revision list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + page := "page_example" // string | page id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RevisionApi.AnswerApiV1RevisionsUnreviewedGet(context.Background()).Page(page).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RevisionApi.AnswerApiV1RevisionsUnreviewedGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1RevisionsUnreviewedGet`: AnswerApiV1RevisionsUnreviewedGet200Response + fmt.Fprintf(os.Stdout, "Response from `RevisionApi.AnswerApiV1RevisionsUnreviewedGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1RevisionsUnreviewedGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **string** | page id | + +### Return type + +[**AnswerApiV1RevisionsUnreviewedGet200Response**](AnswerApiV1RevisionsUnreviewedGet200Response.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/SchemaActObjectInfo.md b/docs/SchemaActObjectInfo.md new file mode 100644 index 0000000..32f1a0d --- /dev/null +++ b/docs/SchemaActObjectInfo.md @@ -0,0 +1,212 @@ +# SchemaActObjectInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnswerId** | Pointer to **string** | | [optional] +**DisplayName** | Pointer to **string** | | [optional] +**MainTagSlugName** | Pointer to **string** | | [optional] +**ObjectType** | Pointer to **string** | | [optional] +**QuestionId** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaActObjectInfo + +`func NewSchemaActObjectInfo() *SchemaActObjectInfo` + +NewSchemaActObjectInfo instantiates a new SchemaActObjectInfo 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 + +### NewSchemaActObjectInfoWithDefaults + +`func NewSchemaActObjectInfoWithDefaults() *SchemaActObjectInfo` + +NewSchemaActObjectInfoWithDefaults instantiates a new SchemaActObjectInfo 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 *SchemaActObjectInfo) GetAnswerId() string` + +GetAnswerId returns the AnswerId field if non-nil, zero value otherwise. + +### GetAnswerIdOk + +`func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetAnswerId(v string)` + +SetAnswerId sets AnswerId field to given value. + +### HasAnswerId + +`func (o *SchemaActObjectInfo) HasAnswerId() bool` + +HasAnswerId returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaActObjectInfo) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaActObjectInfo) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetMainTagSlugName + +`func (o *SchemaActObjectInfo) GetMainTagSlugName() string` + +GetMainTagSlugName returns the MainTagSlugName field if non-nil, zero value otherwise. + +### GetMainTagSlugNameOk + +`func (o *SchemaActObjectInfo) GetMainTagSlugNameOk() (*string, bool)` + +GetMainTagSlugNameOk returns a tuple with the MainTagSlugName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMainTagSlugName + +`func (o *SchemaActObjectInfo) SetMainTagSlugName(v string)` + +SetMainTagSlugName sets MainTagSlugName field to given value. + +### HasMainTagSlugName + +`func (o *SchemaActObjectInfo) HasMainTagSlugName() bool` + +HasMainTagSlugName returns a boolean if a field has been set. + +### GetObjectType + +`func (o *SchemaActObjectInfo) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *SchemaActObjectInfo) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetQuestionId + +`func (o *SchemaActObjectInfo) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaActObjectInfo) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaActObjectInfo) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaActObjectInfo) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaActObjectInfo) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaActObjectInfo) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaActObjectTimeline.md b/docs/SchemaActObjectTimeline.md new file mode 100644 index 0000000..8b67f4a --- /dev/null +++ b/docs/SchemaActObjectTimeline.md @@ -0,0 +1,342 @@ +# SchemaActObjectTimeline + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActivityId** | Pointer to **string** | | [optional] +**ActivityType** | Pointer to **string** | | [optional] +**Cancelled** | Pointer to **bool** | | [optional] +**CancelledAt** | Pointer to **int32** | | [optional] +**Comment** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **int32** | | [optional] +**Id** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **string** | | [optional] +**ObjectType** | Pointer to **string** | | [optional] +**RevisionId** | Pointer to **string** | | [optional] +**UserDisplayName** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaActObjectTimeline + +`func NewSchemaActObjectTimeline() *SchemaActObjectTimeline` + +NewSchemaActObjectTimeline instantiates a new SchemaActObjectTimeline 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 + +### NewSchemaActObjectTimelineWithDefaults + +`func NewSchemaActObjectTimelineWithDefaults() *SchemaActObjectTimeline` + +NewSchemaActObjectTimelineWithDefaults instantiates a new SchemaActObjectTimeline 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 + +### GetActivityId + +`func (o *SchemaActObjectTimeline) GetActivityId() string` + +GetActivityId returns the ActivityId field if non-nil, zero value otherwise. + +### GetActivityIdOk + +`func (o *SchemaActObjectTimeline) GetActivityIdOk() (*string, bool)` + +GetActivityIdOk returns a tuple with the ActivityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActivityId + +`func (o *SchemaActObjectTimeline) SetActivityId(v string)` + +SetActivityId sets ActivityId field to given value. + +### HasActivityId + +`func (o *SchemaActObjectTimeline) HasActivityId() bool` + +HasActivityId returns a boolean if a field has been set. + +### GetActivityType + +`func (o *SchemaActObjectTimeline) GetActivityType() string` + +GetActivityType returns the ActivityType field if non-nil, zero value otherwise. + +### GetActivityTypeOk + +`func (o *SchemaActObjectTimeline) GetActivityTypeOk() (*string, bool)` + +GetActivityTypeOk returns a tuple with the ActivityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActivityType + +`func (o *SchemaActObjectTimeline) SetActivityType(v string)` + +SetActivityType sets ActivityType field to given value. + +### HasActivityType + +`func (o *SchemaActObjectTimeline) HasActivityType() bool` + +HasActivityType returns a boolean if a field has been set. + +### GetCancelled + +`func (o *SchemaActObjectTimeline) GetCancelled() bool` + +GetCancelled returns the Cancelled field if non-nil, zero value otherwise. + +### GetCancelledOk + +`func (o *SchemaActObjectTimeline) GetCancelledOk() (*bool, bool)` + +GetCancelledOk returns a tuple with the Cancelled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCancelled + +`func (o *SchemaActObjectTimeline) SetCancelled(v bool)` + +SetCancelled sets Cancelled field to given value. + +### HasCancelled + +`func (o *SchemaActObjectTimeline) HasCancelled() bool` + +HasCancelled returns a boolean if a field has been set. + +### GetCancelledAt + +`func (o *SchemaActObjectTimeline) GetCancelledAt() int32` + +GetCancelledAt returns the CancelledAt field if non-nil, zero value otherwise. + +### GetCancelledAtOk + +`func (o *SchemaActObjectTimeline) GetCancelledAtOk() (*int32, bool)` + +GetCancelledAtOk returns a tuple with the CancelledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCancelledAt + +`func (o *SchemaActObjectTimeline) SetCancelledAt(v int32)` + +SetCancelledAt sets CancelledAt field to given value. + +### HasCancelledAt + +`func (o *SchemaActObjectTimeline) HasCancelledAt() bool` + +HasCancelledAt returns a boolean if a field has been set. + +### GetComment + +`func (o *SchemaActObjectTimeline) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *SchemaActObjectTimeline) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *SchemaActObjectTimeline) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *SchemaActObjectTimeline) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaActObjectTimeline) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaActObjectTimeline) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaActObjectTimeline) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaActObjectTimeline) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaActObjectTimeline) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *SchemaActObjectTimeline) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetObjectType + +`func (o *SchemaActObjectTimeline) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *SchemaActObjectTimeline) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetRevisionId + +`func (o *SchemaActObjectTimeline) GetRevisionId() string` + +GetRevisionId returns the RevisionId field if non-nil, zero value otherwise. + +### GetRevisionIdOk + +`func (o *SchemaActObjectTimeline) GetRevisionIdOk() (*string, bool)` + +GetRevisionIdOk returns a tuple with the RevisionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevisionId + +`func (o *SchemaActObjectTimeline) SetRevisionId(v string)` + +SetRevisionId sets RevisionId field to given value. + +### HasRevisionId + +`func (o *SchemaActObjectTimeline) HasRevisionId() bool` + +HasRevisionId returns a boolean if a field has been set. + +### GetUserDisplayName + +`func (o *SchemaActObjectTimeline) GetUserDisplayName() string` + +GetUserDisplayName returns the UserDisplayName field if non-nil, zero value otherwise. + +### GetUserDisplayNameOk + +`func (o *SchemaActObjectTimeline) GetUserDisplayNameOk() (*string, bool)` + +GetUserDisplayNameOk returns a tuple with the UserDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserDisplayName + +`func (o *SchemaActObjectTimeline) SetUserDisplayName(v string)` + +SetUserDisplayName sets UserDisplayName field to given value. + +### HasUserDisplayName + +`func (o *SchemaActObjectTimeline) HasUserDisplayName() bool` + +HasUserDisplayName returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaActObjectTimeline) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaActObjectTimeline) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaActionRecordResp.md b/docs/SchemaActionRecordResp.md new file mode 100644 index 0000000..e093939 --- /dev/null +++ b/docs/SchemaActionRecordResp.md @@ -0,0 +1,108 @@ +# SchemaActionRecordResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CaptchaId** | Pointer to **string** | | [optional] +**CaptchaImg** | Pointer to **string** | | [optional] +**Verify** | Pointer to **bool** | | [optional] + +## Methods + +### NewSchemaActionRecordResp + +`func NewSchemaActionRecordResp() *SchemaActionRecordResp` + +NewSchemaActionRecordResp instantiates a new SchemaActionRecordResp 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 + +### NewSchemaActionRecordRespWithDefaults + +`func NewSchemaActionRecordRespWithDefaults() *SchemaActionRecordResp` + +NewSchemaActionRecordRespWithDefaults instantiates a new SchemaActionRecordResp 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 + +### GetCaptchaId + +`func (o *SchemaActionRecordResp) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaActionRecordResp) 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 *SchemaActionRecordResp) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaActionRecordResp) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + +### GetCaptchaImg + +`func (o *SchemaActionRecordResp) GetCaptchaImg() string` + +GetCaptchaImg returns the CaptchaImg field if non-nil, zero value otherwise. + +### GetCaptchaImgOk + +`func (o *SchemaActionRecordResp) GetCaptchaImgOk() (*string, bool)` + +GetCaptchaImgOk returns a tuple with the CaptchaImg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaptchaImg + +`func (o *SchemaActionRecordResp) SetCaptchaImg(v string)` + +SetCaptchaImg sets CaptchaImg field to given value. + +### HasCaptchaImg + +`func (o *SchemaActionRecordResp) HasCaptchaImg() bool` + +HasCaptchaImg returns a boolean if a field has been set. + +### GetVerify + +`func (o *SchemaActionRecordResp) GetVerify() bool` + +GetVerify returns the Verify field if non-nil, zero value otherwise. + +### GetVerifyOk + +`func (o *SchemaActionRecordResp) GetVerifyOk() (*bool, bool)` + +GetVerifyOk returns a tuple with the Verify field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerify + +`func (o *SchemaActionRecordResp) SetVerify(v bool)` + +SetVerify sets Verify field to given value. + +### HasVerify + +`func (o *SchemaActionRecordResp) HasVerify() bool` + +HasVerify 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/SchemaAddCommentReq.md b/docs/SchemaAddCommentReq.md new file mode 100644 index 0000000..86458b3 --- /dev/null +++ b/docs/SchemaAddCommentReq.md @@ -0,0 +1,124 @@ +# SchemaAddCommentReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MentionUsernameList** | Pointer to **[]string** | @ user id list | [optional] +**ObjectId** | **string** | object id | +**OriginalText** | **string** | original comment content | +**ReplyCommentId** | Pointer to **string** | reply comment id | [optional] + +## Methods + +### NewSchemaAddCommentReq + +`func NewSchemaAddCommentReq(objectId string, originalText string, ) *SchemaAddCommentReq` + +NewSchemaAddCommentReq instantiates a new SchemaAddCommentReq 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 + +### NewSchemaAddCommentReqWithDefaults + +`func NewSchemaAddCommentReqWithDefaults() *SchemaAddCommentReq` + +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 + +### GetMentionUsernameList + +`func (o *SchemaAddCommentReq) GetMentionUsernameList() []string` + +GetMentionUsernameList returns the MentionUsernameList field if non-nil, zero value otherwise. + +### GetMentionUsernameListOk + +`func (o *SchemaAddCommentReq) 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 *SchemaAddCommentReq) SetMentionUsernameList(v []string)` + +SetMentionUsernameList sets MentionUsernameList field to given value. + +### HasMentionUsernameList + +`func (o *SchemaAddCommentReq) HasMentionUsernameList() bool` + +HasMentionUsernameList returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaAddCommentReq) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaAddCommentReq) 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 *SchemaAddCommentReq) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + + +### GetOriginalText + +`func (o *SchemaAddCommentReq) GetOriginalText() string` + +GetOriginalText returns the OriginalText field if non-nil, zero value otherwise. + +### GetOriginalTextOk + +`func (o *SchemaAddCommentReq) GetOriginalTextOk() (*string, bool)` + +GetOriginalTextOk returns a tuple with the OriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalText + +`func (o *SchemaAddCommentReq) SetOriginalText(v string)` + +SetOriginalText sets OriginalText field to given value. + + +### GetReplyCommentId + +`func (o *SchemaAddCommentReq) GetReplyCommentId() string` + +GetReplyCommentId returns the ReplyCommentId field if non-nil, zero value otherwise. + +### GetReplyCommentIdOk + +`func (o *SchemaAddCommentReq) GetReplyCommentIdOk() (*string, bool)` + +GetReplyCommentIdOk returns a tuple with the ReplyCommentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplyCommentId + +`func (o *SchemaAddCommentReq) SetReplyCommentId(v string)` + +SetReplyCommentId sets ReplyCommentId field to given value. + +### HasReplyCommentId + +`func (o *SchemaAddCommentReq) HasReplyCommentId() bool` + +HasReplyCommentId 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/SchemaAddReportReq.md b/docs/SchemaAddReportReq.md new file mode 100644 index 0000000..adf273f --- /dev/null +++ b/docs/SchemaAddReportReq.md @@ -0,0 +1,98 @@ +# SchemaAddReportReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | Pointer to **string** | report content | [optional] +**ObjectId** | **string** | object id | +**ReportType** | **int32** | report type | + +## Methods + +### NewSchemaAddReportReq + +`func NewSchemaAddReportReq(objectId string, reportType int32, ) *SchemaAddReportReq` + +NewSchemaAddReportReq instantiates a new SchemaAddReportReq 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 + +### NewSchemaAddReportReqWithDefaults + +`func NewSchemaAddReportReqWithDefaults() *SchemaAddReportReq` + +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 + +### GetContent + +`func (o *SchemaAddReportReq) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaAddReportReq) 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 *SchemaAddReportReq) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *SchemaAddReportReq) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaAddReportReq) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaAddReportReq) 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 *SchemaAddReportReq) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + + +### GetReportType + +`func (o *SchemaAddReportReq) GetReportType() int32` + +GetReportType returns the ReportType field if non-nil, zero value otherwise. + +### GetReportTypeOk + +`func (o *SchemaAddReportReq) GetReportTypeOk() (*int32, bool)` + +GetReportTypeOk returns a tuple with the ReportType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportType + +`func (o *SchemaAddReportReq) SetReportType(v int32)` + +SetReportType sets ReportType 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/SchemaAddTagReq.md b/docs/SchemaAddTagReq.md new file mode 100644 index 0000000..f7caa25 --- /dev/null +++ b/docs/SchemaAddTagReq.md @@ -0,0 +1,93 @@ +# SchemaAddTagReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | display_name | +**OriginalText** | **string** | original text | +**SlugName** | **string** | slug_name | + +## Methods + +### NewSchemaAddTagReq + +`func NewSchemaAddTagReq(displayName string, originalText string, slugName string, ) *SchemaAddTagReq` + +NewSchemaAddTagReq instantiates a new SchemaAddTagReq 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 + +### NewSchemaAddTagReqWithDefaults + +`func NewSchemaAddTagReqWithDefaults() *SchemaAddTagReq` + +NewSchemaAddTagReqWithDefaults instantiates a new SchemaAddTagReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *SchemaAddTagReq) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaAddTagReq) 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 *SchemaAddTagReq) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetOriginalText + +`func (o *SchemaAddTagReq) GetOriginalText() string` + +GetOriginalText returns the OriginalText field if non-nil, zero value otherwise. + +### GetOriginalTextOk + +`func (o *SchemaAddTagReq) GetOriginalTextOk() (*string, bool)` + +GetOriginalTextOk returns a tuple with the OriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalText + +`func (o *SchemaAddTagReq) SetOriginalText(v string)` + +SetOriginalText sets OriginalText field to given value. + + +### GetSlugName + +`func (o *SchemaAddTagReq) GetSlugName() string` + +GetSlugName returns the SlugName field if non-nil, zero value otherwise. + +### GetSlugNameOk + +`func (o *SchemaAddTagReq) 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 *SchemaAddTagReq) SetSlugName(v string)` + +SetSlugName sets SlugName 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/SchemaAddUserReq.md b/docs/SchemaAddUserReq.md new file mode 100644 index 0000000..b2f708a --- /dev/null +++ b/docs/SchemaAddUserReq.md @@ -0,0 +1,93 @@ +# SchemaAddUserReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | **string** | | +**Email** | **string** | | +**Password** | **string** | | + +## Methods + +### NewSchemaAddUserReq + +`func NewSchemaAddUserReq(displayName string, email string, password string, ) *SchemaAddUserReq` + +NewSchemaAddUserReq instantiates a new SchemaAddUserReq 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 + +### NewSchemaAddUserReqWithDefaults + +`func NewSchemaAddUserReqWithDefaults() *SchemaAddUserReq` + +NewSchemaAddUserReqWithDefaults instantiates a new SchemaAddUserReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *SchemaAddUserReq) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaAddUserReq) 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 *SchemaAddUserReq) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetEmail + +`func (o *SchemaAddUserReq) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *SchemaAddUserReq) 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 *SchemaAddUserReq) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetPassword + +`func (o *SchemaAddUserReq) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *SchemaAddUserReq) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *SchemaAddUserReq) SetPassword(v string)` + +SetPassword sets Password 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/SchemaAdminSetAnswerStatusRequest.md b/docs/SchemaAdminSetAnswerStatusRequest.md new file mode 100644 index 0000000..06cde11 --- /dev/null +++ b/docs/SchemaAdminSetAnswerStatusRequest.md @@ -0,0 +1,82 @@ +# SchemaAdminSetAnswerStatusRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnswerId** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaAdminSetAnswerStatusRequest + +`func NewSchemaAdminSetAnswerStatusRequest() *SchemaAdminSetAnswerStatusRequest` + +NewSchemaAdminSetAnswerStatusRequest instantiates a new SchemaAdminSetAnswerStatusRequest 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 + +### NewSchemaAdminSetAnswerStatusRequestWithDefaults + +`func NewSchemaAdminSetAnswerStatusRequestWithDefaults() *SchemaAdminSetAnswerStatusRequest` + +NewSchemaAdminSetAnswerStatusRequestWithDefaults instantiates a new SchemaAdminSetAnswerStatusRequest 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 *SchemaAdminSetAnswerStatusRequest) GetAnswerId() string` + +GetAnswerId returns the AnswerId field if non-nil, zero value otherwise. + +### GetAnswerIdOk + +`func (o *SchemaAdminSetAnswerStatusRequest) 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 *SchemaAdminSetAnswerStatusRequest) SetAnswerId(v string)` + +SetAnswerId sets AnswerId field to given value. + +### HasAnswerId + +`func (o *SchemaAdminSetAnswerStatusRequest) HasAnswerId() bool` + +HasAnswerId returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaAdminSetAnswerStatusRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaAdminSetAnswerStatusRequest) 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 *SchemaAdminSetAnswerStatusRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaAdminSetAnswerStatusRequest) HasStatus() bool` + +HasStatus 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/SchemaAdminSetQuestionStatusRequest.md b/docs/SchemaAdminSetQuestionStatusRequest.md new file mode 100644 index 0000000..10c29d6 --- /dev/null +++ b/docs/SchemaAdminSetQuestionStatusRequest.md @@ -0,0 +1,82 @@ +# SchemaAdminSetQuestionStatusRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QuestionId** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaAdminSetQuestionStatusRequest + +`func NewSchemaAdminSetQuestionStatusRequest() *SchemaAdminSetQuestionStatusRequest` + +NewSchemaAdminSetQuestionStatusRequest instantiates a new SchemaAdminSetQuestionStatusRequest 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 + +### NewSchemaAdminSetQuestionStatusRequestWithDefaults + +`func NewSchemaAdminSetQuestionStatusRequestWithDefaults() *SchemaAdminSetQuestionStatusRequest` + +NewSchemaAdminSetQuestionStatusRequestWithDefaults instantiates a new SchemaAdminSetQuestionStatusRequest 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 + +### GetQuestionId + +`func (o *SchemaAdminSetQuestionStatusRequest) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaAdminSetQuestionStatusRequest) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaAdminSetQuestionStatusRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaAdminSetQuestionStatusRequest) HasStatus() bool` + +HasStatus 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/SchemaAnswerAcceptedReq.md b/docs/SchemaAnswerAcceptedReq.md new file mode 100644 index 0000000..47412d4 --- /dev/null +++ b/docs/SchemaAnswerAcceptedReq.md @@ -0,0 +1,82 @@ +# SchemaAnswerAcceptedReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnswerId** | Pointer to **string** | | [optional] +**QuestionId** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaAnswerAcceptedReq + +`func NewSchemaAnswerAcceptedReq() *SchemaAnswerAcceptedReq` + +NewSchemaAnswerAcceptedReq instantiates a new SchemaAnswerAcceptedReq object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaAnswerAcceptedReqWithDefaults + +`func NewSchemaAnswerAcceptedReqWithDefaults() *SchemaAnswerAcceptedReq` + +NewSchemaAnswerAcceptedReqWithDefaults instantiates a new SchemaAnswerAcceptedReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnswerId + +`func (o *SchemaAnswerAcceptedReq) GetAnswerId() string` + +GetAnswerId returns the AnswerId field if non-nil, zero value otherwise. + +### GetAnswerIdOk + +`func (o *SchemaAnswerAcceptedReq) GetAnswerIdOk() (*string, bool)` + +GetAnswerIdOk returns a tuple with the AnswerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnswerId + +`func (o *SchemaAnswerAcceptedReq) SetAnswerId(v string)` + +SetAnswerId sets AnswerId field to given value. + +### HasAnswerId + +`func (o *SchemaAnswerAcceptedReq) HasAnswerId() bool` + +HasAnswerId returns a boolean if a field has been set. + +### GetQuestionId + +`func (o *SchemaAnswerAcceptedReq) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaAnswerAcceptedReq) GetQuestionIdOk() (*string, bool)` + +GetQuestionIdOk returns a tuple with the QuestionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuestionId + +`func (o *SchemaAnswerAcceptedReq) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaAnswerAcceptedReq) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaAnswerAddReq.md b/docs/SchemaAnswerAddReq.md new file mode 100644 index 0000000..e6c584b --- /dev/null +++ b/docs/SchemaAnswerAddReq.md @@ -0,0 +1,77 @@ +# SchemaAnswerAddReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | **string** | | +**QuestionId** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaAnswerAddReq + +`func NewSchemaAnswerAddReq(content string, ) *SchemaAnswerAddReq` + +NewSchemaAnswerAddReq instantiates a new SchemaAnswerAddReq 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 + +### NewSchemaAnswerAddReqWithDefaults + +`func NewSchemaAnswerAddReqWithDefaults() *SchemaAnswerAddReq` + +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 + +### GetContent + +`func (o *SchemaAnswerAddReq) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaAnswerAddReq) 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 *SchemaAnswerAddReq) SetContent(v string)` + +SetContent sets Content field to given value. + + +### GetQuestionId + +`func (o *SchemaAnswerAddReq) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaAnswerAddReq) 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 *SchemaAnswerAddReq) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaAnswerAddReq) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaAnswerUpdateReq.md b/docs/SchemaAnswerUpdateReq.md new file mode 100644 index 0000000..754872b --- /dev/null +++ b/docs/SchemaAnswerUpdateReq.md @@ -0,0 +1,155 @@ +# SchemaAnswerUpdateReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | **string** | | +**EditSummary** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**QuestionId** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaAnswerUpdateReq + +`func NewSchemaAnswerUpdateReq(content string, ) *SchemaAnswerUpdateReq` + +NewSchemaAnswerUpdateReq instantiates a new SchemaAnswerUpdateReq 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 + +### NewSchemaAnswerUpdateReqWithDefaults + +`func NewSchemaAnswerUpdateReqWithDefaults() *SchemaAnswerUpdateReq` + +NewSchemaAnswerUpdateReqWithDefaults instantiates a new SchemaAnswerUpdateReq 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 + +### GetContent + +`func (o *SchemaAnswerUpdateReq) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) SetContent(v string)` + +SetContent sets Content field to given value. + + +### GetEditSummary + +`func (o *SchemaAnswerUpdateReq) GetEditSummary() string` + +GetEditSummary returns the EditSummary field if non-nil, zero value otherwise. + +### GetEditSummaryOk + +`func (o *SchemaAnswerUpdateReq) GetEditSummaryOk() (*string, bool)` + +GetEditSummaryOk returns a tuple with the EditSummary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEditSummary + +`func (o *SchemaAnswerUpdateReq) SetEditSummary(v string)` + +SetEditSummary sets EditSummary field to given value. + +### HasEditSummary + +`func (o *SchemaAnswerUpdateReq) HasEditSummary() bool` + +HasEditSummary returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaAnswerUpdateReq) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaAnswerUpdateReq) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetQuestionId + +`func (o *SchemaAnswerUpdateReq) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaAnswerUpdateReq) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaAnswerUpdateReq) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaAnswerUpdateReq) HasTitle() bool` + +HasTitle 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/SchemaAvatarInfo.md b/docs/SchemaAvatarInfo.md new file mode 100644 index 0000000..d01113a --- /dev/null +++ b/docs/SchemaAvatarInfo.md @@ -0,0 +1,108 @@ +# SchemaAvatarInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Custom** | Pointer to **string** | | [optional] +**Gravatar** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaAvatarInfo + +`func NewSchemaAvatarInfo() *SchemaAvatarInfo` + +NewSchemaAvatarInfo instantiates a new SchemaAvatarInfo 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 + +### NewSchemaAvatarInfoWithDefaults + +`func NewSchemaAvatarInfoWithDefaults() *SchemaAvatarInfo` + +NewSchemaAvatarInfoWithDefaults instantiates a new SchemaAvatarInfo 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 *SchemaAvatarInfo) GetCustom() string` + +GetCustom returns the Custom field if non-nil, zero value otherwise. + +### GetCustomOk + +`func (o *SchemaAvatarInfo) 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 *SchemaAvatarInfo) SetCustom(v string)` + +SetCustom sets Custom field to given value. + +### HasCustom + +`func (o *SchemaAvatarInfo) HasCustom() bool` + +HasCustom returns a boolean if a field has been set. + +### GetGravatar + +`func (o *SchemaAvatarInfo) GetGravatar() string` + +GetGravatar returns the Gravatar field if non-nil, zero value otherwise. + +### GetGravatarOk + +`func (o *SchemaAvatarInfo) 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 *SchemaAvatarInfo) SetGravatar(v string)` + +SetGravatar sets Gravatar field to given value. + +### HasGravatar + +`func (o *SchemaAvatarInfo) HasGravatar() bool` + +HasGravatar returns a boolean if a field has been set. + +### GetType + +`func (o *SchemaAvatarInfo) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SchemaAvatarInfo) 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 *SchemaAvatarInfo) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SchemaAvatarInfo) 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/SchemaCloseQuestionReq.md b/docs/SchemaCloseQuestionReq.md new file mode 100644 index 0000000..38d9ca9 --- /dev/null +++ b/docs/SchemaCloseQuestionReq.md @@ -0,0 +1,103 @@ +# SchemaCloseQuestionReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloseMsg** | Pointer to **string** | close_type | [optional] +**CloseType** | Pointer to **int32** | close_type | [optional] +**Id** | **string** | | + +## Methods + +### NewSchemaCloseQuestionReq + +`func NewSchemaCloseQuestionReq(id string, ) *SchemaCloseQuestionReq` + +NewSchemaCloseQuestionReq instantiates a new SchemaCloseQuestionReq 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 + +### NewSchemaCloseQuestionReqWithDefaults + +`func NewSchemaCloseQuestionReqWithDefaults() *SchemaCloseQuestionReq` + +NewSchemaCloseQuestionReqWithDefaults instantiates a new SchemaCloseQuestionReq 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 + +### GetCloseMsg + +`func (o *SchemaCloseQuestionReq) GetCloseMsg() string` + +GetCloseMsg returns the CloseMsg field if non-nil, zero value otherwise. + +### GetCloseMsgOk + +`func (o *SchemaCloseQuestionReq) GetCloseMsgOk() (*string, bool)` + +GetCloseMsgOk returns a tuple with the CloseMsg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloseMsg + +`func (o *SchemaCloseQuestionReq) SetCloseMsg(v string)` + +SetCloseMsg sets CloseMsg field to given value. + +### HasCloseMsg + +`func (o *SchemaCloseQuestionReq) HasCloseMsg() bool` + +HasCloseMsg returns a boolean if a field has been set. + +### GetCloseType + +`func (o *SchemaCloseQuestionReq) GetCloseType() int32` + +GetCloseType returns the CloseType field if non-nil, zero value otherwise. + +### GetCloseTypeOk + +`func (o *SchemaCloseQuestionReq) GetCloseTypeOk() (*int32, bool)` + +GetCloseTypeOk returns a tuple with the CloseType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloseType + +`func (o *SchemaCloseQuestionReq) SetCloseType(v int32)` + +SetCloseType sets CloseType field to given value. + +### HasCloseType + +`func (o *SchemaCloseQuestionReq) HasCloseType() bool` + +HasCloseType returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaCloseQuestionReq) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaCloseQuestionReq) 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 *SchemaCloseQuestionReq) SetId(v string)` + +SetId sets Id 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/SchemaCollectionSwitchReq.md b/docs/SchemaCollectionSwitchReq.md new file mode 100644 index 0000000..dc4f322 --- /dev/null +++ b/docs/SchemaCollectionSwitchReq.md @@ -0,0 +1,72 @@ +# SchemaCollectionSwitchReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | user collection group TagID | +**ObjectId** | **string** | object TagID | + +## Methods + +### NewSchemaCollectionSwitchReq + +`func NewSchemaCollectionSwitchReq(groupId string, objectId string, ) *SchemaCollectionSwitchReq` + +NewSchemaCollectionSwitchReq instantiates a new SchemaCollectionSwitchReq 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 + +### NewSchemaCollectionSwitchReqWithDefaults + +`func NewSchemaCollectionSwitchReqWithDefaults() *SchemaCollectionSwitchReq` + +NewSchemaCollectionSwitchReqWithDefaults instantiates a new SchemaCollectionSwitchReq 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 + +### GetGroupId + +`func (o *SchemaCollectionSwitchReq) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *SchemaCollectionSwitchReq) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *SchemaCollectionSwitchReq) SetGroupId(v string)` + +SetGroupId sets GroupId field to given value. + + +### GetObjectId + +`func (o *SchemaCollectionSwitchReq) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaCollectionSwitchReq) 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 *SchemaCollectionSwitchReq) SetObjectId(v string)` + +SetObjectId sets ObjectId 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/SchemaCollectionSwitchResp.md b/docs/SchemaCollectionSwitchResp.md new file mode 100644 index 0000000..27acaf8 --- /dev/null +++ b/docs/SchemaCollectionSwitchResp.md @@ -0,0 +1,108 @@ +# SchemaCollectionSwitchResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectCollectionCount** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **string** | | [optional] +**Switch** | Pointer to **bool** | | [optional] + +## Methods + +### NewSchemaCollectionSwitchResp + +`func NewSchemaCollectionSwitchResp() *SchemaCollectionSwitchResp` + +NewSchemaCollectionSwitchResp instantiates a new SchemaCollectionSwitchResp 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 + +### NewSchemaCollectionSwitchRespWithDefaults + +`func NewSchemaCollectionSwitchRespWithDefaults() *SchemaCollectionSwitchResp` + +NewSchemaCollectionSwitchRespWithDefaults instantiates a new SchemaCollectionSwitchResp 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 + +### GetObjectCollectionCount + +`func (o *SchemaCollectionSwitchResp) GetObjectCollectionCount() string` + +GetObjectCollectionCount returns the ObjectCollectionCount field if non-nil, zero value otherwise. + +### GetObjectCollectionCountOk + +`func (o *SchemaCollectionSwitchResp) GetObjectCollectionCountOk() (*string, bool)` + +GetObjectCollectionCountOk returns a tuple with the ObjectCollectionCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectCollectionCount + +`func (o *SchemaCollectionSwitchResp) SetObjectCollectionCount(v string)` + +SetObjectCollectionCount sets ObjectCollectionCount field to given value. + +### HasObjectCollectionCount + +`func (o *SchemaCollectionSwitchResp) HasObjectCollectionCount() bool` + +HasObjectCollectionCount returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaCollectionSwitchResp) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaCollectionSwitchResp) 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 *SchemaCollectionSwitchResp) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *SchemaCollectionSwitchResp) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetSwitch + +`func (o *SchemaCollectionSwitchResp) GetSwitch() bool` + +GetSwitch returns the Switch field if non-nil, zero value otherwise. + +### GetSwitchOk + +`func (o *SchemaCollectionSwitchResp) GetSwitchOk() (*bool, bool)` + +GetSwitchOk returns a tuple with the Switch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSwitch + +`func (o *SchemaCollectionSwitchResp) SetSwitch(v bool)` + +SetSwitch sets Switch field to given value. + +### HasSwitch + +`func (o *SchemaCollectionSwitchResp) HasSwitch() bool` + +HasSwitch 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/SchemaFollowReq.md b/docs/SchemaFollowReq.md new file mode 100644 index 0000000..279591c --- /dev/null +++ b/docs/SchemaFollowReq.md @@ -0,0 +1,77 @@ +# SchemaFollowReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsCancel** | Pointer to **bool** | is cancel | [optional] +**ObjectId** | **string** | object id | + +## Methods + +### NewSchemaFollowReq + +`func NewSchemaFollowReq(objectId string, ) *SchemaFollowReq` + +NewSchemaFollowReq instantiates a new SchemaFollowReq 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 + +### NewSchemaFollowReqWithDefaults + +`func NewSchemaFollowReqWithDefaults() *SchemaFollowReq` + +NewSchemaFollowReqWithDefaults instantiates a new SchemaFollowReq 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 + +### GetIsCancel + +`func (o *SchemaFollowReq) GetIsCancel() bool` + +GetIsCancel returns the IsCancel field if non-nil, zero value otherwise. + +### GetIsCancelOk + +`func (o *SchemaFollowReq) GetIsCancelOk() (*bool, bool)` + +GetIsCancelOk returns a tuple with the IsCancel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsCancel + +`func (o *SchemaFollowReq) SetIsCancel(v bool)` + +SetIsCancel sets IsCancel field to given value. + +### HasIsCancel + +`func (o *SchemaFollowReq) HasIsCancel() bool` + +HasIsCancel returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaFollowReq) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaFollowReq) 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 *SchemaFollowReq) SetObjectId(v string)` + +SetObjectId sets ObjectId 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/SchemaFollowResp.md b/docs/SchemaFollowResp.md new file mode 100644 index 0000000..59ebe23 --- /dev/null +++ b/docs/SchemaFollowResp.md @@ -0,0 +1,82 @@ +# SchemaFollowResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Follows** | Pointer to **int32** | the followers of object | [optional] +**IsFollowed** | Pointer to **bool** | if user is followed object will be true,otherwise false | [optional] + +## Methods + +### NewSchemaFollowResp + +`func NewSchemaFollowResp() *SchemaFollowResp` + +NewSchemaFollowResp instantiates a new SchemaFollowResp 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 + +### NewSchemaFollowRespWithDefaults + +`func NewSchemaFollowRespWithDefaults() *SchemaFollowResp` + +NewSchemaFollowRespWithDefaults instantiates a new SchemaFollowResp 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 + +### GetFollows + +`func (o *SchemaFollowResp) GetFollows() int32` + +GetFollows returns the Follows field if non-nil, zero value otherwise. + +### GetFollowsOk + +`func (o *SchemaFollowResp) GetFollowsOk() (*int32, bool)` + +GetFollowsOk returns a tuple with the Follows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFollows + +`func (o *SchemaFollowResp) SetFollows(v int32)` + +SetFollows sets Follows field to given value. + +### HasFollows + +`func (o *SchemaFollowResp) HasFollows() bool` + +HasFollows returns a boolean if a field has been set. + +### GetIsFollowed + +`func (o *SchemaFollowResp) GetIsFollowed() bool` + +GetIsFollowed returns the IsFollowed field if non-nil, zero value otherwise. + +### GetIsFollowedOk + +`func (o *SchemaFollowResp) GetIsFollowedOk() (*bool, bool)` + +GetIsFollowedOk returns a tuple with the IsFollowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFollowed + +`func (o *SchemaFollowResp) SetIsFollowed(v bool)` + +SetIsFollowed sets IsFollowed field to given value. + +### HasIsFollowed + +`func (o *SchemaFollowResp) HasIsFollowed() bool` + +HasIsFollowed 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/SchemaGetCommentPersonalWithPageResp.md b/docs/SchemaGetCommentPersonalWithPageResp.md new file mode 100644 index 0000000..df8705e --- /dev/null +++ b/docs/SchemaGetCommentPersonalWithPageResp.md @@ -0,0 +1,264 @@ +# SchemaGetCommentPersonalWithPageResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnswerId** | Pointer to **string** | answer id | [optional] +**CommentId** | Pointer to **string** | comment 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] +**Title** | Pointer to **string** | title | [optional] +**UrlTitle** | Pointer to **string** | url title | [optional] + +## Methods + +### NewSchemaGetCommentPersonalWithPageResp + +`func NewSchemaGetCommentPersonalWithPageResp() *SchemaGetCommentPersonalWithPageResp` + +NewSchemaGetCommentPersonalWithPageResp instantiates a new SchemaGetCommentPersonalWithPageResp 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 + +### NewSchemaGetCommentPersonalWithPageRespWithDefaults + +`func NewSchemaGetCommentPersonalWithPageRespWithDefaults() *SchemaGetCommentPersonalWithPageResp` + +NewSchemaGetCommentPersonalWithPageRespWithDefaults instantiates a new SchemaGetCommentPersonalWithPageResp 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 *SchemaGetCommentPersonalWithPageResp) GetAnswerId() string` + +GetAnswerId returns the AnswerId field if non-nil, zero value otherwise. + +### GetAnswerIdOk + +`func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetAnswerId(v string)` + +SetAnswerId sets AnswerId field to given value. + +### HasAnswerId + +`func (o *SchemaGetCommentPersonalWithPageResp) HasAnswerId() bool` + +HasAnswerId returns a boolean if a field has been set. + +### GetCommentId + +`func (o *SchemaGetCommentPersonalWithPageResp) GetCommentId() string` + +GetCommentId returns the CommentId field if non-nil, zero value otherwise. + +### GetCommentIdOk + +`func (o *SchemaGetCommentPersonalWithPageResp) GetCommentIdOk() (*string, bool)` + +GetCommentIdOk returns a tuple with the CommentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentId + +`func (o *SchemaGetCommentPersonalWithPageResp) SetCommentId(v string)` + +SetCommentId sets CommentId field to given value. + +### HasCommentId + +`func (o *SchemaGetCommentPersonalWithPageResp) HasCommentId() bool` + +HasCommentId returns a boolean if a field has been set. + +### GetContent + +`func (o *SchemaGetCommentPersonalWithPageResp) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *SchemaGetCommentPersonalWithPageResp) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaGetCommentPersonalWithPageResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetCommentPersonalWithPageResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaGetCommentPersonalWithPageResp) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *SchemaGetCommentPersonalWithPageResp) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetObjectType + +`func (o *SchemaGetCommentPersonalWithPageResp) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *SchemaGetCommentPersonalWithPageResp) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetQuestionId + +`func (o *SchemaGetCommentPersonalWithPageResp) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaGetCommentPersonalWithPageResp) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaGetCommentPersonalWithPageResp) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaGetCommentPersonalWithPageResp) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetUrlTitle + +`func (o *SchemaGetCommentPersonalWithPageResp) GetUrlTitle() string` + +GetUrlTitle returns the UrlTitle field if non-nil, zero value otherwise. + +### GetUrlTitleOk + +`func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetUrlTitle(v string)` + +SetUrlTitle sets UrlTitle field to given value. + +### HasUrlTitle + +`func (o *SchemaGetCommentPersonalWithPageResp) 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/SchemaGetCommentResp.md b/docs/SchemaGetCommentResp.md new file mode 100644 index 0000000..edfaf4b --- /dev/null +++ b/docs/SchemaGetCommentResp.md @@ -0,0 +1,498 @@ +# SchemaGetCommentResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommentId** | Pointer to **string** | comment id | [optional] +**CreatedAt** | Pointer to **int32** | create time | [optional] +**IsVote** | Pointer to **bool** | current user if already vote this comment | [optional] +**MemberActions** | Pointer to [**[]SchemaPermissionMemberAction**](SchemaPermissionMemberAction.md) | MemberActions | [optional] +**ObjectId** | Pointer to **string** | object id | [optional] +**OriginalText** | Pointer to **string** | original comment content | [optional] +**ParsedText** | Pointer to **string** | parsed comment content | [optional] +**ReplyCommentId** | Pointer to **string** | reply comment id | [optional] +**ReplyUserDisplayName** | Pointer to **string** | reply user display name | [optional] +**ReplyUserId** | Pointer to **string** | reply user id | [optional] +**ReplyUserStatus** | Pointer to **string** | reply user status | [optional] +**ReplyUsername** | Pointer to **string** | reply user username | [optional] +**UserAvatar** | Pointer to **string** | user avatar | [optional] +**UserDisplayName** | Pointer to **string** | user display name | [optional] +**UserId** | Pointer to **string** | user id | [optional] +**UserStatus** | Pointer to **string** | user status | [optional] +**Username** | Pointer to **string** | username | [optional] +**VoteCount** | Pointer to **int32** | user vote amount | [optional] + +## Methods + +### NewSchemaGetCommentResp + +`func NewSchemaGetCommentResp() *SchemaGetCommentResp` + +NewSchemaGetCommentResp instantiates a new SchemaGetCommentResp 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 + +### NewSchemaGetCommentRespWithDefaults + +`func NewSchemaGetCommentRespWithDefaults() *SchemaGetCommentResp` + +NewSchemaGetCommentRespWithDefaults instantiates a new SchemaGetCommentResp 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 + +### GetCommentId + +`func (o *SchemaGetCommentResp) GetCommentId() string` + +GetCommentId returns the CommentId field if non-nil, zero value otherwise. + +### GetCommentIdOk + +`func (o *SchemaGetCommentResp) GetCommentIdOk() (*string, bool)` + +GetCommentIdOk returns a tuple with the CommentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentId + +`func (o *SchemaGetCommentResp) SetCommentId(v string)` + +SetCommentId sets CommentId field to given value. + +### HasCommentId + +`func (o *SchemaGetCommentResp) HasCommentId() bool` + +HasCommentId returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaGetCommentResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetCommentResp) 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 *SchemaGetCommentResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetCommentResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetIsVote + +`func (o *SchemaGetCommentResp) GetIsVote() bool` + +GetIsVote returns the IsVote field if non-nil, zero value otherwise. + +### GetIsVoteOk + +`func (o *SchemaGetCommentResp) GetIsVoteOk() (*bool, bool)` + +GetIsVoteOk returns a tuple with the IsVote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsVote + +`func (o *SchemaGetCommentResp) SetIsVote(v bool)` + +SetIsVote sets IsVote field to given value. + +### HasIsVote + +`func (o *SchemaGetCommentResp) HasIsVote() bool` + +HasIsVote returns a boolean if a field has been set. + +### GetMemberActions + +`func (o *SchemaGetCommentResp) GetMemberActions() []SchemaPermissionMemberAction` + +GetMemberActions returns the MemberActions field if non-nil, zero value otherwise. + +### GetMemberActionsOk + +`func (o *SchemaGetCommentResp) GetMemberActionsOk() (*[]SchemaPermissionMemberAction, bool)` + +GetMemberActionsOk returns a tuple with the MemberActions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberActions + +`func (o *SchemaGetCommentResp) SetMemberActions(v []SchemaPermissionMemberAction)` + +SetMemberActions sets MemberActions field to given value. + +### HasMemberActions + +`func (o *SchemaGetCommentResp) HasMemberActions() bool` + +HasMemberActions returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaGetCommentResp) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaGetCommentResp) 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 *SchemaGetCommentResp) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *SchemaGetCommentResp) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetOriginalText + +`func (o *SchemaGetCommentResp) GetOriginalText() string` + +GetOriginalText returns the OriginalText field if non-nil, zero value otherwise. + +### GetOriginalTextOk + +`func (o *SchemaGetCommentResp) GetOriginalTextOk() (*string, bool)` + +GetOriginalTextOk returns a tuple with the OriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalText + +`func (o *SchemaGetCommentResp) SetOriginalText(v string)` + +SetOriginalText sets OriginalText field to given value. + +### HasOriginalText + +`func (o *SchemaGetCommentResp) HasOriginalText() bool` + +HasOriginalText returns a boolean if a field has been set. + +### GetParsedText + +`func (o *SchemaGetCommentResp) GetParsedText() string` + +GetParsedText returns the ParsedText field if non-nil, zero value otherwise. + +### GetParsedTextOk + +`func (o *SchemaGetCommentResp) GetParsedTextOk() (*string, bool)` + +GetParsedTextOk returns a tuple with the ParsedText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParsedText + +`func (o *SchemaGetCommentResp) SetParsedText(v string)` + +SetParsedText sets ParsedText field to given value. + +### HasParsedText + +`func (o *SchemaGetCommentResp) HasParsedText() bool` + +HasParsedText returns a boolean if a field has been set. + +### GetReplyCommentId + +`func (o *SchemaGetCommentResp) GetReplyCommentId() string` + +GetReplyCommentId returns the ReplyCommentId field if non-nil, zero value otherwise. + +### GetReplyCommentIdOk + +`func (o *SchemaGetCommentResp) GetReplyCommentIdOk() (*string, bool)` + +GetReplyCommentIdOk returns a tuple with the ReplyCommentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplyCommentId + +`func (o *SchemaGetCommentResp) SetReplyCommentId(v string)` + +SetReplyCommentId sets ReplyCommentId field to given value. + +### HasReplyCommentId + +`func (o *SchemaGetCommentResp) HasReplyCommentId() bool` + +HasReplyCommentId returns a boolean if a field has been set. + +### GetReplyUserDisplayName + +`func (o *SchemaGetCommentResp) GetReplyUserDisplayName() string` + +GetReplyUserDisplayName returns the ReplyUserDisplayName field if non-nil, zero value otherwise. + +### GetReplyUserDisplayNameOk + +`func (o *SchemaGetCommentResp) GetReplyUserDisplayNameOk() (*string, bool)` + +GetReplyUserDisplayNameOk returns a tuple with the ReplyUserDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplyUserDisplayName + +`func (o *SchemaGetCommentResp) SetReplyUserDisplayName(v string)` + +SetReplyUserDisplayName sets ReplyUserDisplayName field to given value. + +### HasReplyUserDisplayName + +`func (o *SchemaGetCommentResp) HasReplyUserDisplayName() bool` + +HasReplyUserDisplayName returns a boolean if a field has been set. + +### GetReplyUserId + +`func (o *SchemaGetCommentResp) GetReplyUserId() string` + +GetReplyUserId returns the ReplyUserId field if non-nil, zero value otherwise. + +### GetReplyUserIdOk + +`func (o *SchemaGetCommentResp) GetReplyUserIdOk() (*string, bool)` + +GetReplyUserIdOk returns a tuple with the ReplyUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplyUserId + +`func (o *SchemaGetCommentResp) SetReplyUserId(v string)` + +SetReplyUserId sets ReplyUserId field to given value. + +### HasReplyUserId + +`func (o *SchemaGetCommentResp) HasReplyUserId() bool` + +HasReplyUserId returns a boolean if a field has been set. + +### GetReplyUserStatus + +`func (o *SchemaGetCommentResp) GetReplyUserStatus() string` + +GetReplyUserStatus returns the ReplyUserStatus field if non-nil, zero value otherwise. + +### GetReplyUserStatusOk + +`func (o *SchemaGetCommentResp) GetReplyUserStatusOk() (*string, bool)` + +GetReplyUserStatusOk returns a tuple with the ReplyUserStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplyUserStatus + +`func (o *SchemaGetCommentResp) SetReplyUserStatus(v string)` + +SetReplyUserStatus sets ReplyUserStatus field to given value. + +### HasReplyUserStatus + +`func (o *SchemaGetCommentResp) HasReplyUserStatus() bool` + +HasReplyUserStatus returns a boolean if a field has been set. + +### GetReplyUsername + +`func (o *SchemaGetCommentResp) GetReplyUsername() string` + +GetReplyUsername returns the ReplyUsername field if non-nil, zero value otherwise. + +### GetReplyUsernameOk + +`func (o *SchemaGetCommentResp) GetReplyUsernameOk() (*string, bool)` + +GetReplyUsernameOk returns a tuple with the ReplyUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReplyUsername + +`func (o *SchemaGetCommentResp) SetReplyUsername(v string)` + +SetReplyUsername sets ReplyUsername field to given value. + +### HasReplyUsername + +`func (o *SchemaGetCommentResp) HasReplyUsername() bool` + +HasReplyUsername returns a boolean if a field has been set. + +### GetUserAvatar + +`func (o *SchemaGetCommentResp) GetUserAvatar() string` + +GetUserAvatar returns the UserAvatar field if non-nil, zero value otherwise. + +### GetUserAvatarOk + +`func (o *SchemaGetCommentResp) GetUserAvatarOk() (*string, bool)` + +GetUserAvatarOk returns a tuple with the UserAvatar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserAvatar + +`func (o *SchemaGetCommentResp) SetUserAvatar(v string)` + +SetUserAvatar sets UserAvatar field to given value. + +### HasUserAvatar + +`func (o *SchemaGetCommentResp) HasUserAvatar() bool` + +HasUserAvatar returns a boolean if a field has been set. + +### GetUserDisplayName + +`func (o *SchemaGetCommentResp) GetUserDisplayName() string` + +GetUserDisplayName returns the UserDisplayName field if non-nil, zero value otherwise. + +### GetUserDisplayNameOk + +`func (o *SchemaGetCommentResp) GetUserDisplayNameOk() (*string, bool)` + +GetUserDisplayNameOk returns a tuple with the UserDisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserDisplayName + +`func (o *SchemaGetCommentResp) SetUserDisplayName(v string)` + +SetUserDisplayName sets UserDisplayName field to given value. + +### HasUserDisplayName + +`func (o *SchemaGetCommentResp) HasUserDisplayName() bool` + +HasUserDisplayName returns a boolean if a field has been set. + +### GetUserId + +`func (o *SchemaGetCommentResp) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *SchemaGetCommentResp) 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 *SchemaGetCommentResp) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *SchemaGetCommentResp) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### GetUserStatus + +`func (o *SchemaGetCommentResp) GetUserStatus() string` + +GetUserStatus returns the UserStatus field if non-nil, zero value otherwise. + +### GetUserStatusOk + +`func (o *SchemaGetCommentResp) GetUserStatusOk() (*string, bool)` + +GetUserStatusOk returns a tuple with the UserStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserStatus + +`func (o *SchemaGetCommentResp) SetUserStatus(v string)` + +SetUserStatus sets UserStatus field to given value. + +### HasUserStatus + +`func (o *SchemaGetCommentResp) HasUserStatus() bool` + +HasUserStatus returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaGetCommentResp) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaGetCommentResp) 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 *SchemaGetCommentResp) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaGetCommentResp) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetVoteCount + +`func (o *SchemaGetCommentResp) GetVoteCount() int32` + +GetVoteCount returns the VoteCount field if non-nil, zero value otherwise. + +### GetVoteCountOk + +`func (o *SchemaGetCommentResp) 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 *SchemaGetCommentResp) SetVoteCount(v int32)` + +SetVoteCount sets VoteCount field to given value. + +### HasVoteCount + +`func (o *SchemaGetCommentResp) 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/SchemaGetFollowingTagsResp.md b/docs/SchemaGetFollowingTagsResp.md new file mode 100644 index 0000000..b194001 --- /dev/null +++ b/docs/SchemaGetFollowingTagsResp.md @@ -0,0 +1,186 @@ +# SchemaGetFollowingTagsResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | display name | [optional] +**MainTagSlugName** | Pointer to **string** | if main tag slug name is not empty, this tag is synonymous with the main tag | [optional] +**Recommend** | Pointer to **bool** | | [optional] +**Reserved** | Pointer to **bool** | | [optional] +**SlugName** | Pointer to **string** | slug name | [optional] +**TagId** | Pointer to **string** | tag id | [optional] + +## Methods + +### NewSchemaGetFollowingTagsResp + +`func NewSchemaGetFollowingTagsResp() *SchemaGetFollowingTagsResp` + +NewSchemaGetFollowingTagsResp instantiates a new SchemaGetFollowingTagsResp 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 + +### NewSchemaGetFollowingTagsRespWithDefaults + +`func NewSchemaGetFollowingTagsRespWithDefaults() *SchemaGetFollowingTagsResp` + +NewSchemaGetFollowingTagsRespWithDefaults instantiates a new SchemaGetFollowingTagsResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *SchemaGetFollowingTagsResp) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaGetFollowingTagsResp) 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 *SchemaGetFollowingTagsResp) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaGetFollowingTagsResp) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetMainTagSlugName + +`func (o *SchemaGetFollowingTagsResp) GetMainTagSlugName() string` + +GetMainTagSlugName returns the MainTagSlugName field if non-nil, zero value otherwise. + +### GetMainTagSlugNameOk + +`func (o *SchemaGetFollowingTagsResp) GetMainTagSlugNameOk() (*string, bool)` + +GetMainTagSlugNameOk returns a tuple with the MainTagSlugName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMainTagSlugName + +`func (o *SchemaGetFollowingTagsResp) SetMainTagSlugName(v string)` + +SetMainTagSlugName sets MainTagSlugName field to given value. + +### HasMainTagSlugName + +`func (o *SchemaGetFollowingTagsResp) HasMainTagSlugName() bool` + +HasMainTagSlugName returns a boolean if a field has been set. + +### GetRecommend + +`func (o *SchemaGetFollowingTagsResp) GetRecommend() bool` + +GetRecommend returns the Recommend field if non-nil, zero value otherwise. + +### GetRecommendOk + +`func (o *SchemaGetFollowingTagsResp) GetRecommendOk() (*bool, bool)` + +GetRecommendOk returns a tuple with the Recommend field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecommend + +`func (o *SchemaGetFollowingTagsResp) SetRecommend(v bool)` + +SetRecommend sets Recommend field to given value. + +### HasRecommend + +`func (o *SchemaGetFollowingTagsResp) HasRecommend() bool` + +HasRecommend returns a boolean if a field has been set. + +### GetReserved + +`func (o *SchemaGetFollowingTagsResp) GetReserved() bool` + +GetReserved returns the Reserved field if non-nil, zero value otherwise. + +### GetReservedOk + +`func (o *SchemaGetFollowingTagsResp) GetReservedOk() (*bool, bool)` + +GetReservedOk returns a tuple with the Reserved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReserved + +`func (o *SchemaGetFollowingTagsResp) SetReserved(v bool)` + +SetReserved sets Reserved field to given value. + +### HasReserved + +`func (o *SchemaGetFollowingTagsResp) HasReserved() bool` + +HasReserved returns a boolean if a field has been set. + +### GetSlugName + +`func (o *SchemaGetFollowingTagsResp) GetSlugName() string` + +GetSlugName returns the SlugName field if non-nil, zero value otherwise. + +### GetSlugNameOk + +`func (o *SchemaGetFollowingTagsResp) 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 *SchemaGetFollowingTagsResp) SetSlugName(v string)` + +SetSlugName sets SlugName field to given value. + +### HasSlugName + +`func (o *SchemaGetFollowingTagsResp) HasSlugName() bool` + +HasSlugName returns a boolean if a field has been set. + +### GetTagId + +`func (o *SchemaGetFollowingTagsResp) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *SchemaGetFollowingTagsResp) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *SchemaGetFollowingTagsResp) SetTagId(v string)` + +SetTagId sets TagId field to given value. + +### HasTagId + +`func (o *SchemaGetFollowingTagsResp) HasTagId() bool` + +HasTagId 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/SchemaGetObjectTimelineResp.md b/docs/SchemaGetObjectTimelineResp.md new file mode 100644 index 0000000..aab70db --- /dev/null +++ b/docs/SchemaGetObjectTimelineResp.md @@ -0,0 +1,82 @@ +# SchemaGetObjectTimelineResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectInfo** | Pointer to [**SchemaActObjectInfo**](SchemaActObjectInfo.md) | | [optional] +**Timeline** | Pointer to [**[]SchemaActObjectTimeline**](SchemaActObjectTimeline.md) | | [optional] + +## Methods + +### NewSchemaGetObjectTimelineResp + +`func NewSchemaGetObjectTimelineResp() *SchemaGetObjectTimelineResp` + +NewSchemaGetObjectTimelineResp instantiates a new SchemaGetObjectTimelineResp 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 + +### NewSchemaGetObjectTimelineRespWithDefaults + +`func NewSchemaGetObjectTimelineRespWithDefaults() *SchemaGetObjectTimelineResp` + +NewSchemaGetObjectTimelineRespWithDefaults instantiates a new SchemaGetObjectTimelineResp 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 + +### GetObjectInfo + +`func (o *SchemaGetObjectTimelineResp) GetObjectInfo() SchemaActObjectInfo` + +GetObjectInfo returns the ObjectInfo field if non-nil, zero value otherwise. + +### GetObjectInfoOk + +`func (o *SchemaGetObjectTimelineResp) GetObjectInfoOk() (*SchemaActObjectInfo, bool)` + +GetObjectInfoOk returns a tuple with the ObjectInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectInfo + +`func (o *SchemaGetObjectTimelineResp) SetObjectInfo(v SchemaActObjectInfo)` + +SetObjectInfo sets ObjectInfo field to given value. + +### HasObjectInfo + +`func (o *SchemaGetObjectTimelineResp) HasObjectInfo() bool` + +HasObjectInfo returns a boolean if a field has been set. + +### GetTimeline + +`func (o *SchemaGetObjectTimelineResp) GetTimeline() []SchemaActObjectTimeline` + +GetTimeline returns the Timeline field if non-nil, zero value otherwise. + +### GetTimelineOk + +`func (o *SchemaGetObjectTimelineResp) GetTimelineOk() (*[]SchemaActObjectTimeline, bool)` + +GetTimelineOk returns a tuple with the Timeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeline + +`func (o *SchemaGetObjectTimelineResp) SetTimeline(v []SchemaActObjectTimeline)` + +SetTimeline sets Timeline field to given value. + +### HasTimeline + +`func (o *SchemaGetObjectTimelineResp) HasTimeline() bool` + +HasTimeline 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/SchemaGetOtherUserInfoByUsernameResp.md b/docs/SchemaGetOtherUserInfoByUsernameResp.md new file mode 100644 index 0000000..69b3770 --- /dev/null +++ b/docs/SchemaGetOtherUserInfoByUsernameResp.md @@ -0,0 +1,472 @@ +# SchemaGetOtherUserInfoByUsernameResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnswerCount** | Pointer to **int32** | answer count | [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] +**FollowCount** | Pointer to **int32** | email follow count | [optional] +**Id** | Pointer to **string** | user id | [optional] +**LastLoginDate** | Pointer to **int32** | last login date | [optional] +**Location** | Pointer to **string** | location | [optional] +**Mobile** | Pointer to **string** | mobile | [optional] +**QuestionCount** | Pointer to **int32** | question count | [optional] +**Rank** | Pointer to **int32** | rank | [optional] +**Status** | Pointer to **string** | | [optional] +**StatusMsg** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | username | [optional] +**Website** | Pointer to **string** | website | [optional] + +## Methods + +### NewSchemaGetOtherUserInfoByUsernameResp + +`func NewSchemaGetOtherUserInfoByUsernameResp() *SchemaGetOtherUserInfoByUsernameResp` + +NewSchemaGetOtherUserInfoByUsernameResp instantiates a new SchemaGetOtherUserInfoByUsernameResp 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 + +### NewSchemaGetOtherUserInfoByUsernameRespWithDefaults + +`func NewSchemaGetOtherUserInfoByUsernameRespWithDefaults() *SchemaGetOtherUserInfoByUsernameResp` + +NewSchemaGetOtherUserInfoByUsernameRespWithDefaults instantiates a new SchemaGetOtherUserInfoByUsernameResp 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 + +### GetAnswerCount + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetAnswerCount() int32` + +GetAnswerCount returns the AnswerCount field if non-nil, zero value otherwise. + +### GetAnswerCountOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetAnswerCount(v int32)` + +SetAnswerCount sets AnswerCount field to given value. + +### HasAnswerCount + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasAnswerCount() bool` + +HasAnswerCount returns a boolean if a field has been set. + +### GetAvatar + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetAvatar() string` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetAvatar(v string)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + +### GetBio + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetBio() string` + +GetBio returns the Bio field if non-nil, zero value otherwise. + +### GetBioOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetBio(v string)` + +SetBio sets Bio field to given value. + +### HasBio + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasBio() bool` + +HasBio returns a boolean if a field has been set. + +### GetBioHtml + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetBioHtml() string` + +GetBioHtml returns the BioHtml field if non-nil, zero value otherwise. + +### GetBioHtmlOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetBioHtml(v string)` + +SetBioHtml sets BioHtml field to given value. + +### HasBioHtml + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasBioHtml() bool` + +HasBioHtml returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetFollowCount + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetFollowCount() int32` + +GetFollowCount returns the FollowCount field if non-nil, zero value otherwise. + +### GetFollowCountOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetFollowCount(v int32)` + +SetFollowCount sets FollowCount field to given value. + +### HasFollowCount + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasFollowCount() bool` + +HasFollowCount returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLastLoginDate + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetLastLoginDate() int32` + +GetLastLoginDate returns the LastLoginDate field if non-nil, zero value otherwise. + +### GetLastLoginDateOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetLastLoginDate(v int32)` + +SetLastLoginDate sets LastLoginDate field to given value. + +### HasLastLoginDate + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasLastLoginDate() bool` + +HasLastLoginDate returns a boolean if a field has been set. + +### GetLocation + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### GetMobile + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetMobile() string` + +GetMobile returns the Mobile field if non-nil, zero value otherwise. + +### GetMobileOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetMobile(v string)` + +SetMobile sets Mobile field to given value. + +### HasMobile + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasMobile() bool` + +HasMobile returns a boolean if a field has been set. + +### GetQuestionCount + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetQuestionCount() int32` + +GetQuestionCount returns the QuestionCount field if non-nil, zero value otherwise. + +### GetQuestionCountOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetQuestionCount(v int32)` + +SetQuestionCount sets QuestionCount field to given value. + +### HasQuestionCount + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasQuestionCount() bool` + +HasQuestionCount returns a boolean if a field has been set. + +### GetRank + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetRank() int32` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetRank(v int32)` + +SetRank sets Rank field to given value. + +### HasRank + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasRank() bool` + +HasRank returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusMsg + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetStatusMsg() string` + +GetStatusMsg returns the StatusMsg field if non-nil, zero value otherwise. + +### GetStatusMsgOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetStatusMsgOk() (*string, bool)` + +GetStatusMsgOk returns a tuple with the StatusMsg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusMsg + +`func (o *SchemaGetOtherUserInfoByUsernameResp) SetStatusMsg(v string)` + +SetStatusMsg sets StatusMsg field to given value. + +### HasStatusMsg + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasStatusMsg() bool` + +HasStatusMsg returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaGetOtherUserInfoByUsernameResp) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetWebsite + +`func (o *SchemaGetOtherUserInfoByUsernameResp) GetWebsite() string` + +GetWebsite returns the Website field if non-nil, zero value otherwise. + +### GetWebsiteOk + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetWebsite(v string)` + +SetWebsite sets Website field to given value. + +### HasWebsite + +`func (o *SchemaGetOtherUserInfoByUsernameResp) 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/SchemaGetOtherUserInfoResp.md b/docs/SchemaGetOtherUserInfoResp.md new file mode 100644 index 0000000..9458d30 --- /dev/null +++ b/docs/SchemaGetOtherUserInfoResp.md @@ -0,0 +1,56 @@ +# SchemaGetOtherUserInfoResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Info** | Pointer to [**SchemaGetOtherUserInfoByUsernameResp**](SchemaGetOtherUserInfoByUsernameResp.md) | | [optional] + +## Methods + +### NewSchemaGetOtherUserInfoResp + +`func NewSchemaGetOtherUserInfoResp() *SchemaGetOtherUserInfoResp` + +NewSchemaGetOtherUserInfoResp instantiates a new SchemaGetOtherUserInfoResp 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 + +### NewSchemaGetOtherUserInfoRespWithDefaults + +`func NewSchemaGetOtherUserInfoRespWithDefaults() *SchemaGetOtherUserInfoResp` + +NewSchemaGetOtherUserInfoRespWithDefaults instantiates a new SchemaGetOtherUserInfoResp 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 + +### GetInfo + +`func (o *SchemaGetOtherUserInfoResp) GetInfo() SchemaGetOtherUserInfoByUsernameResp` + +GetInfo returns the Info field if non-nil, zero value otherwise. + +### GetInfoOk + +`func (o *SchemaGetOtherUserInfoResp) GetInfoOk() (*SchemaGetOtherUserInfoByUsernameResp, bool)` + +GetInfoOk returns a tuple with the Info field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInfo + +`func (o *SchemaGetOtherUserInfoResp) SetInfo(v SchemaGetOtherUserInfoByUsernameResp)` + +SetInfo sets Info field to given value. + +### HasInfo + +`func (o *SchemaGetOtherUserInfoResp) HasInfo() bool` + +HasInfo 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/SchemaGetRankPersonalWithPageResp.md b/docs/SchemaGetRankPersonalWithPageResp.md new file mode 100644 index 0000000..9b7adac --- /dev/null +++ b/docs/SchemaGetRankPersonalWithPageResp.md @@ -0,0 +1,290 @@ +# SchemaGetRankPersonalWithPageResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnswerId** | Pointer to **string** | answer id | [optional] +**Content** | Pointer to **string** | content | [optional] +**CreatedAt** | Pointer to **int32** | create time | [optional] +**ObjectId** | Pointer to **string** | object id | [optional] +**ObjectType** | Pointer to **string** | object type | [optional] +**QuestionId** | Pointer to **string** | question id | [optional] +**RankType** | Pointer to **string** | rank type | [optional] +**Reputation** | Pointer to **int32** | reputation | [optional] +**Title** | Pointer to **string** | title | [optional] +**UrlTitle** | Pointer to **string** | url title | [optional] + +## Methods + +### NewSchemaGetRankPersonalWithPageResp + +`func NewSchemaGetRankPersonalWithPageResp() *SchemaGetRankPersonalWithPageResp` + +NewSchemaGetRankPersonalWithPageResp instantiates a new SchemaGetRankPersonalWithPageResp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaGetRankPersonalWithPageRespWithDefaults + +`func NewSchemaGetRankPersonalWithPageRespWithDefaults() *SchemaGetRankPersonalWithPageResp` + +NewSchemaGetRankPersonalWithPageRespWithDefaults instantiates a new SchemaGetRankPersonalWithPageResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAnswerId + +`func (o *SchemaGetRankPersonalWithPageResp) GetAnswerId() string` + +GetAnswerId returns the AnswerId field if non-nil, zero value otherwise. + +### GetAnswerIdOk + +`func (o *SchemaGetRankPersonalWithPageResp) GetAnswerIdOk() (*string, bool)` + +GetAnswerIdOk returns a tuple with the AnswerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnswerId + +`func (o *SchemaGetRankPersonalWithPageResp) SetAnswerId(v string)` + +SetAnswerId sets AnswerId field to given value. + +### HasAnswerId + +`func (o *SchemaGetRankPersonalWithPageResp) HasAnswerId() bool` + +HasAnswerId returns a boolean if a field has been set. + +### GetContent + +`func (o *SchemaGetRankPersonalWithPageResp) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaGetRankPersonalWithPageResp) GetContentOk() (*string, bool)` + +GetContentOk returns a tuple with the Content field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContent + +`func (o *SchemaGetRankPersonalWithPageResp) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *SchemaGetRankPersonalWithPageResp) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaGetRankPersonalWithPageResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetRankPersonalWithPageResp) GetCreatedAtOk() (*int32, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SchemaGetRankPersonalWithPageResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetRankPersonalWithPageResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaGetRankPersonalWithPageResp) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaGetRankPersonalWithPageResp) GetObjectIdOk() (*string, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *SchemaGetRankPersonalWithPageResp) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *SchemaGetRankPersonalWithPageResp) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetObjectType + +`func (o *SchemaGetRankPersonalWithPageResp) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SchemaGetRankPersonalWithPageResp) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *SchemaGetRankPersonalWithPageResp) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *SchemaGetRankPersonalWithPageResp) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetQuestionId + +`func (o *SchemaGetRankPersonalWithPageResp) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaGetRankPersonalWithPageResp) GetQuestionIdOk() (*string, bool)` + +GetQuestionIdOk returns a tuple with the QuestionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuestionId + +`func (o *SchemaGetRankPersonalWithPageResp) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaGetRankPersonalWithPageResp) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + +### GetRankType + +`func (o *SchemaGetRankPersonalWithPageResp) GetRankType() string` + +GetRankType returns the RankType field if non-nil, zero value otherwise. + +### GetRankTypeOk + +`func (o *SchemaGetRankPersonalWithPageResp) GetRankTypeOk() (*string, bool)` + +GetRankTypeOk returns a tuple with the RankType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRankType + +`func (o *SchemaGetRankPersonalWithPageResp) SetRankType(v string)` + +SetRankType sets RankType field to given value. + +### HasRankType + +`func (o *SchemaGetRankPersonalWithPageResp) HasRankType() bool` + +HasRankType returns a boolean if a field has been set. + +### GetReputation + +`func (o *SchemaGetRankPersonalWithPageResp) GetReputation() int32` + +GetReputation returns the Reputation field if non-nil, zero value otherwise. + +### GetReputationOk + +`func (o *SchemaGetRankPersonalWithPageResp) GetReputationOk() (*int32, bool)` + +GetReputationOk returns a tuple with the Reputation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReputation + +`func (o *SchemaGetRankPersonalWithPageResp) SetReputation(v int32)` + +SetReputation sets Reputation field to given value. + +### HasReputation + +`func (o *SchemaGetRankPersonalWithPageResp) HasReputation() bool` + +HasReputation returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaGetRankPersonalWithPageResp) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaGetRankPersonalWithPageResp) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *SchemaGetRankPersonalWithPageResp) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaGetRankPersonalWithPageResp) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetUrlTitle + +`func (o *SchemaGetRankPersonalWithPageResp) GetUrlTitle() string` + +GetUrlTitle returns the UrlTitle field if non-nil, zero value otherwise. + +### GetUrlTitleOk + +`func (o *SchemaGetRankPersonalWithPageResp) GetUrlTitleOk() (*string, bool)` + +GetUrlTitleOk returns a tuple with the UrlTitle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrlTitle + +`func (o *SchemaGetRankPersonalWithPageResp) SetUrlTitle(v string)` + +SetUrlTitle sets UrlTitle field to given value. + +### HasUrlTitle + +`func (o *SchemaGetRankPersonalWithPageResp) HasUrlTitle() bool` + +HasUrlTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaGetReportTypeResp.md b/docs/SchemaGetReportTypeResp.md new file mode 100644 index 0000000..5a98a75 --- /dev/null +++ b/docs/SchemaGetReportTypeResp.md @@ -0,0 +1,186 @@ +# SchemaGetReportTypeResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContentType** | Pointer to **string** | content type | [optional] +**Description** | Pointer to **string** | report description | [optional] +**HaveContent** | Pointer to **bool** | is have content | [optional] +**Name** | Pointer to **string** | report name | [optional] +**Source** | Pointer to **string** | report source | [optional] +**Type** | Pointer to **int32** | report type | [optional] + +## Methods + +### NewSchemaGetReportTypeResp + +`func NewSchemaGetReportTypeResp() *SchemaGetReportTypeResp` + +NewSchemaGetReportTypeResp instantiates a new SchemaGetReportTypeResp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaGetReportTypeRespWithDefaults + +`func NewSchemaGetReportTypeRespWithDefaults() *SchemaGetReportTypeResp` + +NewSchemaGetReportTypeRespWithDefaults instantiates a new SchemaGetReportTypeResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContentType + +`func (o *SchemaGetReportTypeResp) GetContentType() string` + +GetContentType returns the ContentType field if non-nil, zero value otherwise. + +### GetContentTypeOk + +`func (o *SchemaGetReportTypeResp) GetContentTypeOk() (*string, bool)` + +GetContentTypeOk returns a tuple with the ContentType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContentType + +`func (o *SchemaGetReportTypeResp) SetContentType(v string)` + +SetContentType sets ContentType field to given value. + +### HasContentType + +`func (o *SchemaGetReportTypeResp) HasContentType() bool` + +HasContentType returns a boolean if a field has been set. + +### GetDescription + +`func (o *SchemaGetReportTypeResp) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SchemaGetReportTypeResp) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *SchemaGetReportTypeResp) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SchemaGetReportTypeResp) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetHaveContent + +`func (o *SchemaGetReportTypeResp) GetHaveContent() bool` + +GetHaveContent returns the HaveContent field if non-nil, zero value otherwise. + +### GetHaveContentOk + +`func (o *SchemaGetReportTypeResp) GetHaveContentOk() (*bool, bool)` + +GetHaveContentOk returns a tuple with the HaveContent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHaveContent + +`func (o *SchemaGetReportTypeResp) SetHaveContent(v bool)` + +SetHaveContent sets HaveContent field to given value. + +### HasHaveContent + +`func (o *SchemaGetReportTypeResp) HasHaveContent() bool` + +HasHaveContent returns a boolean if a field has been set. + +### GetName + +`func (o *SchemaGetReportTypeResp) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaGetReportTypeResp) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SchemaGetReportTypeResp) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SchemaGetReportTypeResp) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSource + +`func (o *SchemaGetReportTypeResp) GetSource() string` + +GetSource returns the Source field if non-nil, zero value otherwise. + +### GetSourceOk + +`func (o *SchemaGetReportTypeResp) GetSourceOk() (*string, bool)` + +GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSource + +`func (o *SchemaGetReportTypeResp) SetSource(v string)` + +SetSource sets Source field to given value. + +### HasSource + +`func (o *SchemaGetReportTypeResp) HasSource() bool` + +HasSource returns a boolean if a field has been set. + +### GetType + +`func (o *SchemaGetReportTypeResp) GetType() int32` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SchemaGetReportTypeResp) GetTypeOk() (*int32, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *SchemaGetReportTypeResp) SetType(v int32)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SchemaGetReportTypeResp) HasType() bool` + +HasType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaGetRevisionResp.md b/docs/SchemaGetRevisionResp.md new file mode 100644 index 0000000..939d532 --- /dev/null +++ b/docs/SchemaGetRevisionResp.md @@ -0,0 +1,264 @@ +# SchemaGetRevisionResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | Pointer to **map[string]interface{}** | content parsed | [optional] +**CreateAt** | Pointer to **int32** | | [optional] +**Id** | Pointer to **string** | id | [optional] +**ObjectId** | Pointer to **string** | object id | [optional] +**Reason** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | revision status(normal: 1; delete 2) | [optional] +**Title** | Pointer to **string** | title | [optional] +**UseId** | Pointer to **string** | user id | [optional] +**UserInfo** | Pointer to [**SchemaUserBasicInfo**](SchemaUserBasicInfo.md) | | [optional] + +## Methods + +### NewSchemaGetRevisionResp + +`func NewSchemaGetRevisionResp() *SchemaGetRevisionResp` + +NewSchemaGetRevisionResp instantiates a new SchemaGetRevisionResp 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 + +### NewSchemaGetRevisionRespWithDefaults + +`func NewSchemaGetRevisionRespWithDefaults() *SchemaGetRevisionResp` + +NewSchemaGetRevisionRespWithDefaults instantiates a new SchemaGetRevisionResp 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 + +### GetContent + +`func (o *SchemaGetRevisionResp) GetContent() map[string]interface{}` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaGetRevisionResp) GetContentOk() (*map[string]interface{}, 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 *SchemaGetRevisionResp) SetContent(v map[string]interface{})` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *SchemaGetRevisionResp) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetCreateAt + +`func (o *SchemaGetRevisionResp) GetCreateAt() int32` + +GetCreateAt returns the CreateAt field if non-nil, zero value otherwise. + +### GetCreateAtOk + +`func (o *SchemaGetRevisionResp) GetCreateAtOk() (*int32, bool)` + +GetCreateAtOk returns a tuple with the CreateAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreateAt + +`func (o *SchemaGetRevisionResp) SetCreateAt(v int32)` + +SetCreateAt sets CreateAt field to given value. + +### HasCreateAt + +`func (o *SchemaGetRevisionResp) HasCreateAt() bool` + +HasCreateAt returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaGetRevisionResp) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaGetRevisionResp) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaGetRevisionResp) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *SchemaGetRevisionResp) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetReason + +`func (o *SchemaGetRevisionResp) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *SchemaGetRevisionResp) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *SchemaGetRevisionResp) SetReason(v string)` + +SetReason sets Reason field to given value. + +### HasReason + +`func (o *SchemaGetRevisionResp) HasReason() bool` + +HasReason returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaGetRevisionResp) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaGetRevisionResp) GetStatusOk() (*int32, 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 *SchemaGetRevisionResp) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaGetRevisionResp) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaGetRevisionResp) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaGetRevisionResp) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetUseId + +`func (o *SchemaGetRevisionResp) GetUseId() string` + +GetUseId returns the UseId field if non-nil, zero value otherwise. + +### GetUseIdOk + +`func (o *SchemaGetRevisionResp) GetUseIdOk() (*string, bool)` + +GetUseIdOk returns a tuple with the UseId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseId + +`func (o *SchemaGetRevisionResp) SetUseId(v string)` + +SetUseId sets UseId field to given value. + +### HasUseId + +`func (o *SchemaGetRevisionResp) HasUseId() bool` + +HasUseId returns a boolean if a field has been set. + +### GetUserInfo + +`func (o *SchemaGetRevisionResp) GetUserInfo() SchemaUserBasicInfo` + +GetUserInfo returns the UserInfo field if non-nil, zero value otherwise. + +### GetUserInfoOk + +`func (o *SchemaGetRevisionResp) GetUserInfoOk() (*SchemaUserBasicInfo, 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 *SchemaGetRevisionResp) SetUserInfo(v SchemaUserBasicInfo)` + +SetUserInfo sets UserInfo field to given value. + +### HasUserInfo + +`func (o *SchemaGetRevisionResp) HasUserInfo() bool` + +HasUserInfo 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/SchemaGetRoleResp.md b/docs/SchemaGetRoleResp.md new file mode 100644 index 0000000..fc84e20 --- /dev/null +++ b/docs/SchemaGetRoleResp.md @@ -0,0 +1,108 @@ +# SchemaGetRoleResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**Id** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaGetRoleResp + +`func NewSchemaGetRoleResp() *SchemaGetRoleResp` + +NewSchemaGetRoleResp instantiates a new SchemaGetRoleResp 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 + +### NewSchemaGetRoleRespWithDefaults + +`func NewSchemaGetRoleRespWithDefaults() *SchemaGetRoleResp` + +NewSchemaGetRoleRespWithDefaults instantiates a new SchemaGetRoleResp 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 *SchemaGetRoleResp) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SchemaGetRoleResp) 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 *SchemaGetRoleResp) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SchemaGetRoleResp) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaGetRoleResp) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaGetRoleResp) GetIdOk() (*int32, 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 *SchemaGetRoleResp) SetId(v int32)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaGetRoleResp) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *SchemaGetRoleResp) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaGetRoleResp) 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 *SchemaGetRoleResp) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SchemaGetRoleResp) 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/SchemaGetSMTPConfigResp.md b/docs/SchemaGetSMTPConfigResp.md new file mode 100644 index 0000000..3751a84 --- /dev/null +++ b/docs/SchemaGetSMTPConfigResp.md @@ -0,0 +1,238 @@ +# SchemaGetSMTPConfigResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Encryption** | Pointer to **string** | \"\" SSL | [optional] +**FromEmail** | Pointer to **string** | | [optional] +**FromName** | Pointer to **string** | | [optional] +**SmtpAuthentication** | Pointer to **bool** | | [optional] +**SmtpHost** | Pointer to **string** | | [optional] +**SmtpPassword** | Pointer to **string** | | [optional] +**SmtpPort** | Pointer to **int32** | | [optional] +**SmtpUsername** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaGetSMTPConfigResp + +`func NewSchemaGetSMTPConfigResp() *SchemaGetSMTPConfigResp` + +NewSchemaGetSMTPConfigResp instantiates a new SchemaGetSMTPConfigResp 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 + +### NewSchemaGetSMTPConfigRespWithDefaults + +`func NewSchemaGetSMTPConfigRespWithDefaults() *SchemaGetSMTPConfigResp` + +NewSchemaGetSMTPConfigRespWithDefaults instantiates a new SchemaGetSMTPConfigResp 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 + +### GetEncryption + +`func (o *SchemaGetSMTPConfigResp) GetEncryption() string` + +GetEncryption returns the Encryption field if non-nil, zero value otherwise. + +### GetEncryptionOk + +`func (o *SchemaGetSMTPConfigResp) GetEncryptionOk() (*string, bool)` + +GetEncryptionOk returns a tuple with the Encryption field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncryption + +`func (o *SchemaGetSMTPConfigResp) SetEncryption(v string)` + +SetEncryption sets Encryption field to given value. + +### HasEncryption + +`func (o *SchemaGetSMTPConfigResp) HasEncryption() bool` + +HasEncryption returns a boolean if a field has been set. + +### GetFromEmail + +`func (o *SchemaGetSMTPConfigResp) GetFromEmail() string` + +GetFromEmail returns the FromEmail field if non-nil, zero value otherwise. + +### GetFromEmailOk + +`func (o *SchemaGetSMTPConfigResp) GetFromEmailOk() (*string, bool)` + +GetFromEmailOk returns a tuple with the FromEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFromEmail + +`func (o *SchemaGetSMTPConfigResp) SetFromEmail(v string)` + +SetFromEmail sets FromEmail field to given value. + +### HasFromEmail + +`func (o *SchemaGetSMTPConfigResp) HasFromEmail() bool` + +HasFromEmail returns a boolean if a field has been set. + +### GetFromName + +`func (o *SchemaGetSMTPConfigResp) GetFromName() string` + +GetFromName returns the FromName field if non-nil, zero value otherwise. + +### GetFromNameOk + +`func (o *SchemaGetSMTPConfigResp) GetFromNameOk() (*string, bool)` + +GetFromNameOk returns a tuple with the FromName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFromName + +`func (o *SchemaGetSMTPConfigResp) SetFromName(v string)` + +SetFromName sets FromName field to given value. + +### HasFromName + +`func (o *SchemaGetSMTPConfigResp) HasFromName() bool` + +HasFromName returns a boolean if a field has been set. + +### GetSmtpAuthentication + +`func (o *SchemaGetSMTPConfigResp) GetSmtpAuthentication() bool` + +GetSmtpAuthentication returns the SmtpAuthentication field if non-nil, zero value otherwise. + +### GetSmtpAuthenticationOk + +`func (o *SchemaGetSMTPConfigResp) GetSmtpAuthenticationOk() (*bool, bool)` + +GetSmtpAuthenticationOk returns a tuple with the SmtpAuthentication field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpAuthentication + +`func (o *SchemaGetSMTPConfigResp) SetSmtpAuthentication(v bool)` + +SetSmtpAuthentication sets SmtpAuthentication field to given value. + +### HasSmtpAuthentication + +`func (o *SchemaGetSMTPConfigResp) HasSmtpAuthentication() bool` + +HasSmtpAuthentication returns a boolean if a field has been set. + +### GetSmtpHost + +`func (o *SchemaGetSMTPConfigResp) GetSmtpHost() string` + +GetSmtpHost returns the SmtpHost field if non-nil, zero value otherwise. + +### GetSmtpHostOk + +`func (o *SchemaGetSMTPConfigResp) GetSmtpHostOk() (*string, bool)` + +GetSmtpHostOk returns a tuple with the SmtpHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpHost + +`func (o *SchemaGetSMTPConfigResp) SetSmtpHost(v string)` + +SetSmtpHost sets SmtpHost field to given value. + +### HasSmtpHost + +`func (o *SchemaGetSMTPConfigResp) HasSmtpHost() bool` + +HasSmtpHost returns a boolean if a field has been set. + +### GetSmtpPassword + +`func (o *SchemaGetSMTPConfigResp) GetSmtpPassword() string` + +GetSmtpPassword returns the SmtpPassword field if non-nil, zero value otherwise. + +### GetSmtpPasswordOk + +`func (o *SchemaGetSMTPConfigResp) GetSmtpPasswordOk() (*string, bool)` + +GetSmtpPasswordOk returns a tuple with the SmtpPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpPassword + +`func (o *SchemaGetSMTPConfigResp) SetSmtpPassword(v string)` + +SetSmtpPassword sets SmtpPassword field to given value. + +### HasSmtpPassword + +`func (o *SchemaGetSMTPConfigResp) HasSmtpPassword() bool` + +HasSmtpPassword returns a boolean if a field has been set. + +### GetSmtpPort + +`func (o *SchemaGetSMTPConfigResp) GetSmtpPort() int32` + +GetSmtpPort returns the SmtpPort field if non-nil, zero value otherwise. + +### GetSmtpPortOk + +`func (o *SchemaGetSMTPConfigResp) GetSmtpPortOk() (*int32, bool)` + +GetSmtpPortOk returns a tuple with the SmtpPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpPort + +`func (o *SchemaGetSMTPConfigResp) SetSmtpPort(v int32)` + +SetSmtpPort sets SmtpPort field to given value. + +### HasSmtpPort + +`func (o *SchemaGetSMTPConfigResp) HasSmtpPort() bool` + +HasSmtpPort returns a boolean if a field has been set. + +### GetSmtpUsername + +`func (o *SchemaGetSMTPConfigResp) GetSmtpUsername() string` + +GetSmtpUsername returns the SmtpUsername field if non-nil, zero value otherwise. + +### GetSmtpUsernameOk + +`func (o *SchemaGetSMTPConfigResp) GetSmtpUsernameOk() (*string, bool)` + +GetSmtpUsernameOk returns a tuple with the SmtpUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpUsername + +`func (o *SchemaGetSMTPConfigResp) SetSmtpUsername(v string)` + +SetSmtpUsername sets SmtpUsername field to given value. + +### HasSmtpUsername + +`func (o *SchemaGetSMTPConfigResp) HasSmtpUsername() bool` + +HasSmtpUsername 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/SchemaGetSiteLegalInfoResp.md b/docs/SchemaGetSiteLegalInfoResp.md new file mode 100644 index 0000000..e8bbbe7 --- /dev/null +++ b/docs/SchemaGetSiteLegalInfoResp.md @@ -0,0 +1,134 @@ +# SchemaGetSiteLegalInfoResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivacyPolicyOriginalText** | Pointer to **string** | | [optional] +**PrivacyPolicyParsedText** | Pointer to **string** | | [optional] +**TermsOfServiceOriginalText** | Pointer to **string** | | [optional] +**TermsOfServiceParsedText** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaGetSiteLegalInfoResp + +`func NewSchemaGetSiteLegalInfoResp() *SchemaGetSiteLegalInfoResp` + +NewSchemaGetSiteLegalInfoResp instantiates a new SchemaGetSiteLegalInfoResp 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 + +### NewSchemaGetSiteLegalInfoRespWithDefaults + +`func NewSchemaGetSiteLegalInfoRespWithDefaults() *SchemaGetSiteLegalInfoResp` + +NewSchemaGetSiteLegalInfoRespWithDefaults instantiates a new SchemaGetSiteLegalInfoResp 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 + +### GetPrivacyPolicyOriginalText + +`func (o *SchemaGetSiteLegalInfoResp) GetPrivacyPolicyOriginalText() string` + +GetPrivacyPolicyOriginalText returns the PrivacyPolicyOriginalText field if non-nil, zero value otherwise. + +### GetPrivacyPolicyOriginalTextOk + +`func (o *SchemaGetSiteLegalInfoResp) GetPrivacyPolicyOriginalTextOk() (*string, bool)` + +GetPrivacyPolicyOriginalTextOk returns a tuple with the PrivacyPolicyOriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivacyPolicyOriginalText + +`func (o *SchemaGetSiteLegalInfoResp) SetPrivacyPolicyOriginalText(v string)` + +SetPrivacyPolicyOriginalText sets PrivacyPolicyOriginalText field to given value. + +### HasPrivacyPolicyOriginalText + +`func (o *SchemaGetSiteLegalInfoResp) HasPrivacyPolicyOriginalText() bool` + +HasPrivacyPolicyOriginalText returns a boolean if a field has been set. + +### GetPrivacyPolicyParsedText + +`func (o *SchemaGetSiteLegalInfoResp) GetPrivacyPolicyParsedText() string` + +GetPrivacyPolicyParsedText returns the PrivacyPolicyParsedText field if non-nil, zero value otherwise. + +### GetPrivacyPolicyParsedTextOk + +`func (o *SchemaGetSiteLegalInfoResp) GetPrivacyPolicyParsedTextOk() (*string, bool)` + +GetPrivacyPolicyParsedTextOk returns a tuple with the PrivacyPolicyParsedText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivacyPolicyParsedText + +`func (o *SchemaGetSiteLegalInfoResp) SetPrivacyPolicyParsedText(v string)` + +SetPrivacyPolicyParsedText sets PrivacyPolicyParsedText field to given value. + +### HasPrivacyPolicyParsedText + +`func (o *SchemaGetSiteLegalInfoResp) HasPrivacyPolicyParsedText() bool` + +HasPrivacyPolicyParsedText returns a boolean if a field has been set. + +### GetTermsOfServiceOriginalText + +`func (o *SchemaGetSiteLegalInfoResp) GetTermsOfServiceOriginalText() string` + +GetTermsOfServiceOriginalText returns the TermsOfServiceOriginalText field if non-nil, zero value otherwise. + +### GetTermsOfServiceOriginalTextOk + +`func (o *SchemaGetSiteLegalInfoResp) GetTermsOfServiceOriginalTextOk() (*string, bool)` + +GetTermsOfServiceOriginalTextOk returns a tuple with the TermsOfServiceOriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermsOfServiceOriginalText + +`func (o *SchemaGetSiteLegalInfoResp) SetTermsOfServiceOriginalText(v string)` + +SetTermsOfServiceOriginalText sets TermsOfServiceOriginalText field to given value. + +### HasTermsOfServiceOriginalText + +`func (o *SchemaGetSiteLegalInfoResp) HasTermsOfServiceOriginalText() bool` + +HasTermsOfServiceOriginalText returns a boolean if a field has been set. + +### GetTermsOfServiceParsedText + +`func (o *SchemaGetSiteLegalInfoResp) GetTermsOfServiceParsedText() string` + +GetTermsOfServiceParsedText returns the TermsOfServiceParsedText field if non-nil, zero value otherwise. + +### GetTermsOfServiceParsedTextOk + +`func (o *SchemaGetSiteLegalInfoResp) GetTermsOfServiceParsedTextOk() (*string, bool)` + +GetTermsOfServiceParsedTextOk returns a tuple with the TermsOfServiceParsedText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermsOfServiceParsedText + +`func (o *SchemaGetSiteLegalInfoResp) SetTermsOfServiceParsedText(v string)` + +SetTermsOfServiceParsedText sets TermsOfServiceParsedText field to given value. + +### HasTermsOfServiceParsedText + +`func (o *SchemaGetSiteLegalInfoResp) HasTermsOfServiceParsedText() bool` + +HasTermsOfServiceParsedText 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/SchemaGetTagPageResp.md b/docs/SchemaGetTagPageResp.md new file mode 100644 index 0000000..97cb23e --- /dev/null +++ b/docs/SchemaGetTagPageResp.md @@ -0,0 +1,394 @@ +# SchemaGetTagPageResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **int32** | created time | [optional] +**Description** | Pointer to **string** | description | [optional] +**DisplayName** | Pointer to **string** | display_name | [optional] +**Excerpt** | Pointer to **string** | excerpt | [optional] +**FollowCount** | Pointer to **int32** | follower amount | [optional] +**IsFollower** | Pointer to **bool** | is follower | [optional] +**OriginalText** | Pointer to **string** | original text | [optional] +**ParsedText** | Pointer to **string** | parsed_text | [optional] +**QuestionCount** | Pointer to **int32** | question amount | [optional] +**Recommend** | Pointer to **bool** | | [optional] +**Reserved** | Pointer to **bool** | | [optional] +**SlugName** | Pointer to **string** | slug_name | [optional] +**TagId** | Pointer to **string** | tag_id | [optional] +**UpdatedAt** | Pointer to **int32** | updated time | [optional] + +## Methods + +### NewSchemaGetTagPageResp + +`func NewSchemaGetTagPageResp() *SchemaGetTagPageResp` + +NewSchemaGetTagPageResp instantiates a new SchemaGetTagPageResp 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 + +### NewSchemaGetTagPageRespWithDefaults + +`func NewSchemaGetTagPageRespWithDefaults() *SchemaGetTagPageResp` + +NewSchemaGetTagPageRespWithDefaults instantiates a new SchemaGetTagPageResp 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 + +### GetCreatedAt + +`func (o *SchemaGetTagPageResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetTagPageResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *SchemaGetTagPageResp) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SchemaGetTagPageResp) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaGetTagPageResp) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaGetTagPageResp) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetExcerpt + +`func (o *SchemaGetTagPageResp) GetExcerpt() string` + +GetExcerpt returns the Excerpt field if non-nil, zero value otherwise. + +### GetExcerptOk + +`func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetExcerpt(v string)` + +SetExcerpt sets Excerpt field to given value. + +### HasExcerpt + +`func (o *SchemaGetTagPageResp) HasExcerpt() bool` + +HasExcerpt returns a boolean if a field has been set. + +### GetFollowCount + +`func (o *SchemaGetTagPageResp) GetFollowCount() int32` + +GetFollowCount returns the FollowCount field if non-nil, zero value otherwise. + +### GetFollowCountOk + +`func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetFollowCount(v int32)` + +SetFollowCount sets FollowCount field to given value. + +### HasFollowCount + +`func (o *SchemaGetTagPageResp) HasFollowCount() bool` + +HasFollowCount returns a boolean if a field has been set. + +### GetIsFollower + +`func (o *SchemaGetTagPageResp) GetIsFollower() bool` + +GetIsFollower returns the IsFollower field if non-nil, zero value otherwise. + +### GetIsFollowerOk + +`func (o *SchemaGetTagPageResp) GetIsFollowerOk() (*bool, bool)` + +GetIsFollowerOk returns a tuple with the IsFollower field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFollower + +`func (o *SchemaGetTagPageResp) SetIsFollower(v bool)` + +SetIsFollower sets IsFollower field to given value. + +### HasIsFollower + +`func (o *SchemaGetTagPageResp) HasIsFollower() bool` + +HasIsFollower returns a boolean if a field has been set. + +### GetOriginalText + +`func (o *SchemaGetTagPageResp) GetOriginalText() string` + +GetOriginalText returns the OriginalText field if non-nil, zero value otherwise. + +### GetOriginalTextOk + +`func (o *SchemaGetTagPageResp) GetOriginalTextOk() (*string, bool)` + +GetOriginalTextOk returns a tuple with the OriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalText + +`func (o *SchemaGetTagPageResp) SetOriginalText(v string)` + +SetOriginalText sets OriginalText field to given value. + +### HasOriginalText + +`func (o *SchemaGetTagPageResp) HasOriginalText() bool` + +HasOriginalText returns a boolean if a field has been set. + +### GetParsedText + +`func (o *SchemaGetTagPageResp) GetParsedText() string` + +GetParsedText returns the ParsedText field if non-nil, zero value otherwise. + +### GetParsedTextOk + +`func (o *SchemaGetTagPageResp) GetParsedTextOk() (*string, bool)` + +GetParsedTextOk returns a tuple with the ParsedText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParsedText + +`func (o *SchemaGetTagPageResp) SetParsedText(v string)` + +SetParsedText sets ParsedText field to given value. + +### HasParsedText + +`func (o *SchemaGetTagPageResp) HasParsedText() bool` + +HasParsedText returns a boolean if a field has been set. + +### GetQuestionCount + +`func (o *SchemaGetTagPageResp) GetQuestionCount() int32` + +GetQuestionCount returns the QuestionCount field if non-nil, zero value otherwise. + +### GetQuestionCountOk + +`func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetQuestionCount(v int32)` + +SetQuestionCount sets QuestionCount field to given value. + +### HasQuestionCount + +`func (o *SchemaGetTagPageResp) HasQuestionCount() bool` + +HasQuestionCount returns a boolean if a field has been set. + +### GetRecommend + +`func (o *SchemaGetTagPageResp) GetRecommend() bool` + +GetRecommend returns the Recommend field if non-nil, zero value otherwise. + +### GetRecommendOk + +`func (o *SchemaGetTagPageResp) GetRecommendOk() (*bool, bool)` + +GetRecommendOk returns a tuple with the Recommend field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecommend + +`func (o *SchemaGetTagPageResp) SetRecommend(v bool)` + +SetRecommend sets Recommend field to given value. + +### HasRecommend + +`func (o *SchemaGetTagPageResp) HasRecommend() bool` + +HasRecommend returns a boolean if a field has been set. + +### GetReserved + +`func (o *SchemaGetTagPageResp) GetReserved() bool` + +GetReserved returns the Reserved field if non-nil, zero value otherwise. + +### GetReservedOk + +`func (o *SchemaGetTagPageResp) GetReservedOk() (*bool, bool)` + +GetReservedOk returns a tuple with the Reserved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReserved + +`func (o *SchemaGetTagPageResp) SetReserved(v bool)` + +SetReserved sets Reserved field to given value. + +### HasReserved + +`func (o *SchemaGetTagPageResp) HasReserved() bool` + +HasReserved returns a boolean if a field has been set. + +### GetSlugName + +`func (o *SchemaGetTagPageResp) GetSlugName() string` + +GetSlugName returns the SlugName field if non-nil, zero value otherwise. + +### GetSlugNameOk + +`func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetSlugName(v string)` + +SetSlugName sets SlugName field to given value. + +### HasSlugName + +`func (o *SchemaGetTagPageResp) HasSlugName() bool` + +HasSlugName returns a boolean if a field has been set. + +### GetTagId + +`func (o *SchemaGetTagPageResp) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *SchemaGetTagPageResp) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *SchemaGetTagPageResp) SetTagId(v string)` + +SetTagId sets TagId field to given value. + +### HasTagId + +`func (o *SchemaGetTagPageResp) HasTagId() bool` + +HasTagId returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *SchemaGetTagPageResp) GetUpdatedAt() int32` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *SchemaGetTagPageResp) GetUpdatedAtOk() (*int32, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *SchemaGetTagPageResp) SetUpdatedAt(v int32)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *SchemaGetTagPageResp) HasUpdatedAt() bool` + +HasUpdatedAt 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/SchemaGetTagResp.md b/docs/SchemaGetTagResp.md new file mode 100644 index 0000000..26a8acc --- /dev/null +++ b/docs/SchemaGetTagResp.md @@ -0,0 +1,446 @@ +# SchemaGetTagResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **int32** | created time | [optional] +**Description** | Pointer to **string** | description text | [optional] +**DisplayName** | Pointer to **string** | display name | [optional] +**Excerpt** | Pointer to **string** | excerpt | [optional] +**FollowCount** | Pointer to **int32** | follower amount | [optional] +**IsFollower** | Pointer to **bool** | is follower | [optional] +**MainTagSlugName** | Pointer to **string** | if main tag slug name is not empty, this tag is synonymous with the main tag | [optional] +**MemberActions** | Pointer to [**[]SchemaPermissionMemberAction**](SchemaPermissionMemberAction.md) | MemberActions | [optional] +**OriginalText** | Pointer to **string** | original text | [optional] +**ParsedText** | Pointer to **string** | parsed text | [optional] +**QuestionCount** | Pointer to **int32** | question amount | [optional] +**Recommend** | Pointer to **bool** | | [optional] +**Reserved** | Pointer to **bool** | | [optional] +**SlugName** | Pointer to **string** | slug name | [optional] +**TagId** | Pointer to **string** | tag id | [optional] +**UpdatedAt** | Pointer to **int32** | updated time | [optional] + +## Methods + +### NewSchemaGetTagResp + +`func NewSchemaGetTagResp() *SchemaGetTagResp` + +NewSchemaGetTagResp instantiates a new SchemaGetTagResp 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 + +### NewSchemaGetTagRespWithDefaults + +`func NewSchemaGetTagRespWithDefaults() *SchemaGetTagResp` + +NewSchemaGetTagRespWithDefaults instantiates a new SchemaGetTagResp 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 + +### GetCreatedAt + +`func (o *SchemaGetTagResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetTagResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *SchemaGetTagResp) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SchemaGetTagResp) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaGetTagResp) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaGetTagResp) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetExcerpt + +`func (o *SchemaGetTagResp) GetExcerpt() string` + +GetExcerpt returns the Excerpt field if non-nil, zero value otherwise. + +### GetExcerptOk + +`func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) SetExcerpt(v string)` + +SetExcerpt sets Excerpt field to given value. + +### HasExcerpt + +`func (o *SchemaGetTagResp) HasExcerpt() bool` + +HasExcerpt returns a boolean if a field has been set. + +### GetFollowCount + +`func (o *SchemaGetTagResp) GetFollowCount() int32` + +GetFollowCount returns the FollowCount field if non-nil, zero value otherwise. + +### GetFollowCountOk + +`func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) SetFollowCount(v int32)` + +SetFollowCount sets FollowCount field to given value. + +### HasFollowCount + +`func (o *SchemaGetTagResp) HasFollowCount() bool` + +HasFollowCount returns a boolean if a field has been set. + +### GetIsFollower + +`func (o *SchemaGetTagResp) GetIsFollower() bool` + +GetIsFollower returns the IsFollower field if non-nil, zero value otherwise. + +### GetIsFollowerOk + +`func (o *SchemaGetTagResp) GetIsFollowerOk() (*bool, bool)` + +GetIsFollowerOk returns a tuple with the IsFollower field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFollower + +`func (o *SchemaGetTagResp) SetIsFollower(v bool)` + +SetIsFollower sets IsFollower field to given value. + +### HasIsFollower + +`func (o *SchemaGetTagResp) HasIsFollower() bool` + +HasIsFollower returns a boolean if a field has been set. + +### GetMainTagSlugName + +`func (o *SchemaGetTagResp) GetMainTagSlugName() string` + +GetMainTagSlugName returns the MainTagSlugName field if non-nil, zero value otherwise. + +### GetMainTagSlugNameOk + +`func (o *SchemaGetTagResp) GetMainTagSlugNameOk() (*string, bool)` + +GetMainTagSlugNameOk returns a tuple with the MainTagSlugName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMainTagSlugName + +`func (o *SchemaGetTagResp) SetMainTagSlugName(v string)` + +SetMainTagSlugName sets MainTagSlugName field to given value. + +### HasMainTagSlugName + +`func (o *SchemaGetTagResp) HasMainTagSlugName() bool` + +HasMainTagSlugName returns a boolean if a field has been set. + +### GetMemberActions + +`func (o *SchemaGetTagResp) GetMemberActions() []SchemaPermissionMemberAction` + +GetMemberActions returns the MemberActions field if non-nil, zero value otherwise. + +### GetMemberActionsOk + +`func (o *SchemaGetTagResp) GetMemberActionsOk() (*[]SchemaPermissionMemberAction, bool)` + +GetMemberActionsOk returns a tuple with the MemberActions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberActions + +`func (o *SchemaGetTagResp) SetMemberActions(v []SchemaPermissionMemberAction)` + +SetMemberActions sets MemberActions field to given value. + +### HasMemberActions + +`func (o *SchemaGetTagResp) HasMemberActions() bool` + +HasMemberActions returns a boolean if a field has been set. + +### GetOriginalText + +`func (o *SchemaGetTagResp) GetOriginalText() string` + +GetOriginalText returns the OriginalText field if non-nil, zero value otherwise. + +### GetOriginalTextOk + +`func (o *SchemaGetTagResp) GetOriginalTextOk() (*string, bool)` + +GetOriginalTextOk returns a tuple with the OriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalText + +`func (o *SchemaGetTagResp) SetOriginalText(v string)` + +SetOriginalText sets OriginalText field to given value. + +### HasOriginalText + +`func (o *SchemaGetTagResp) HasOriginalText() bool` + +HasOriginalText returns a boolean if a field has been set. + +### GetParsedText + +`func (o *SchemaGetTagResp) GetParsedText() string` + +GetParsedText returns the ParsedText field if non-nil, zero value otherwise. + +### GetParsedTextOk + +`func (o *SchemaGetTagResp) GetParsedTextOk() (*string, bool)` + +GetParsedTextOk returns a tuple with the ParsedText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParsedText + +`func (o *SchemaGetTagResp) SetParsedText(v string)` + +SetParsedText sets ParsedText field to given value. + +### HasParsedText + +`func (o *SchemaGetTagResp) HasParsedText() bool` + +HasParsedText returns a boolean if a field has been set. + +### GetQuestionCount + +`func (o *SchemaGetTagResp) GetQuestionCount() int32` + +GetQuestionCount returns the QuestionCount field if non-nil, zero value otherwise. + +### GetQuestionCountOk + +`func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) SetQuestionCount(v int32)` + +SetQuestionCount sets QuestionCount field to given value. + +### HasQuestionCount + +`func (o *SchemaGetTagResp) HasQuestionCount() bool` + +HasQuestionCount returns a boolean if a field has been set. + +### GetRecommend + +`func (o *SchemaGetTagResp) GetRecommend() bool` + +GetRecommend returns the Recommend field if non-nil, zero value otherwise. + +### GetRecommendOk + +`func (o *SchemaGetTagResp) GetRecommendOk() (*bool, bool)` + +GetRecommendOk returns a tuple with the Recommend field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecommend + +`func (o *SchemaGetTagResp) SetRecommend(v bool)` + +SetRecommend sets Recommend field to given value. + +### HasRecommend + +`func (o *SchemaGetTagResp) HasRecommend() bool` + +HasRecommend returns a boolean if a field has been set. + +### GetReserved + +`func (o *SchemaGetTagResp) GetReserved() bool` + +GetReserved returns the Reserved field if non-nil, zero value otherwise. + +### GetReservedOk + +`func (o *SchemaGetTagResp) GetReservedOk() (*bool, bool)` + +GetReservedOk returns a tuple with the Reserved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReserved + +`func (o *SchemaGetTagResp) SetReserved(v bool)` + +SetReserved sets Reserved field to given value. + +### HasReserved + +`func (o *SchemaGetTagResp) HasReserved() bool` + +HasReserved returns a boolean if a field has been set. + +### GetSlugName + +`func (o *SchemaGetTagResp) GetSlugName() string` + +GetSlugName returns the SlugName field if non-nil, zero value otherwise. + +### GetSlugNameOk + +`func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) SetSlugName(v string)` + +SetSlugName sets SlugName field to given value. + +### HasSlugName + +`func (o *SchemaGetTagResp) HasSlugName() bool` + +HasSlugName returns a boolean if a field has been set. + +### GetTagId + +`func (o *SchemaGetTagResp) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *SchemaGetTagResp) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *SchemaGetTagResp) SetTagId(v string)` + +SetTagId sets TagId field to given value. + +### HasTagId + +`func (o *SchemaGetTagResp) HasTagId() bool` + +HasTagId returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *SchemaGetTagResp) GetUpdatedAt() int32` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *SchemaGetTagResp) GetUpdatedAtOk() (*int32, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *SchemaGetTagResp) SetUpdatedAt(v int32)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *SchemaGetTagResp) HasUpdatedAt() bool` + +HasUpdatedAt 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/SchemaGetTagSynonymsResp.md b/docs/SchemaGetTagSynonymsResp.md new file mode 100644 index 0000000..36f8882 --- /dev/null +++ b/docs/SchemaGetTagSynonymsResp.md @@ -0,0 +1,82 @@ +# SchemaGetTagSynonymsResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MemberActions** | Pointer to [**[]SchemaPermissionMemberAction**](SchemaPermissionMemberAction.md) | MemberActions | [optional] +**Synonyms** | Pointer to [**[]SchemaTagSynonym**](SchemaTagSynonym.md) | synonyms | [optional] + +## Methods + +### NewSchemaGetTagSynonymsResp + +`func NewSchemaGetTagSynonymsResp() *SchemaGetTagSynonymsResp` + +NewSchemaGetTagSynonymsResp instantiates a new SchemaGetTagSynonymsResp 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 + +### NewSchemaGetTagSynonymsRespWithDefaults + +`func NewSchemaGetTagSynonymsRespWithDefaults() *SchemaGetTagSynonymsResp` + +NewSchemaGetTagSynonymsRespWithDefaults instantiates a new SchemaGetTagSynonymsResp 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 + +### GetMemberActions + +`func (o *SchemaGetTagSynonymsResp) GetMemberActions() []SchemaPermissionMemberAction` + +GetMemberActions returns the MemberActions field if non-nil, zero value otherwise. + +### GetMemberActionsOk + +`func (o *SchemaGetTagSynonymsResp) GetMemberActionsOk() (*[]SchemaPermissionMemberAction, bool)` + +GetMemberActionsOk returns a tuple with the MemberActions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberActions + +`func (o *SchemaGetTagSynonymsResp) SetMemberActions(v []SchemaPermissionMemberAction)` + +SetMemberActions sets MemberActions field to given value. + +### HasMemberActions + +`func (o *SchemaGetTagSynonymsResp) HasMemberActions() bool` + +HasMemberActions returns a boolean if a field has been set. + +### GetSynonyms + +`func (o *SchemaGetTagSynonymsResp) GetSynonyms() []SchemaTagSynonym` + +GetSynonyms returns the Synonyms field if non-nil, zero value otherwise. + +### GetSynonymsOk + +`func (o *SchemaGetTagSynonymsResp) GetSynonymsOk() (*[]SchemaTagSynonym, bool)` + +GetSynonymsOk returns a tuple with the Synonyms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSynonyms + +`func (o *SchemaGetTagSynonymsResp) SetSynonyms(v []SchemaTagSynonym)` + +SetSynonyms sets Synonyms field to given value. + +### HasSynonyms + +`func (o *SchemaGetTagSynonymsResp) HasSynonyms() bool` + +HasSynonyms 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/SchemaGetUnreviewedRevisionResp.md b/docs/SchemaGetUnreviewedRevisionResp.md new file mode 100644 index 0000000..abafc6d --- /dev/null +++ b/docs/SchemaGetUnreviewedRevisionResp.md @@ -0,0 +1,108 @@ +# SchemaGetUnreviewedRevisionResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Info** | Pointer to [**SchemaUnreviewedRevisionInfoInfo**](SchemaUnreviewedRevisionInfoInfo.md) | | [optional] +**Type** | Pointer to **string** | | [optional] +**UnreviewedInfo** | Pointer to [**SchemaGetRevisionResp**](SchemaGetRevisionResp.md) | | [optional] + +## Methods + +### NewSchemaGetUnreviewedRevisionResp + +`func NewSchemaGetUnreviewedRevisionResp() *SchemaGetUnreviewedRevisionResp` + +NewSchemaGetUnreviewedRevisionResp instantiates a new SchemaGetUnreviewedRevisionResp 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 + +### NewSchemaGetUnreviewedRevisionRespWithDefaults + +`func NewSchemaGetUnreviewedRevisionRespWithDefaults() *SchemaGetUnreviewedRevisionResp` + +NewSchemaGetUnreviewedRevisionRespWithDefaults instantiates a new SchemaGetUnreviewedRevisionResp 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 + +### GetInfo + +`func (o *SchemaGetUnreviewedRevisionResp) GetInfo() SchemaUnreviewedRevisionInfoInfo` + +GetInfo returns the Info field if non-nil, zero value otherwise. + +### GetInfoOk + +`func (o *SchemaGetUnreviewedRevisionResp) GetInfoOk() (*SchemaUnreviewedRevisionInfoInfo, bool)` + +GetInfoOk returns a tuple with the Info field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInfo + +`func (o *SchemaGetUnreviewedRevisionResp) SetInfo(v SchemaUnreviewedRevisionInfoInfo)` + +SetInfo sets Info field to given value. + +### HasInfo + +`func (o *SchemaGetUnreviewedRevisionResp) HasInfo() bool` + +HasInfo returns a boolean if a field has been set. + +### GetType + +`func (o *SchemaGetUnreviewedRevisionResp) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SchemaGetUnreviewedRevisionResp) 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 *SchemaGetUnreviewedRevisionResp) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SchemaGetUnreviewedRevisionResp) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUnreviewedInfo + +`func (o *SchemaGetUnreviewedRevisionResp) GetUnreviewedInfo() SchemaGetRevisionResp` + +GetUnreviewedInfo returns the UnreviewedInfo field if non-nil, zero value otherwise. + +### GetUnreviewedInfoOk + +`func (o *SchemaGetUnreviewedRevisionResp) GetUnreviewedInfoOk() (*SchemaGetRevisionResp, bool)` + +GetUnreviewedInfoOk returns a tuple with the UnreviewedInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnreviewedInfo + +`func (o *SchemaGetUnreviewedRevisionResp) SetUnreviewedInfo(v SchemaGetRevisionResp)` + +SetUnreviewedInfo sets UnreviewedInfo field to given value. + +### HasUnreviewedInfo + +`func (o *SchemaGetUnreviewedRevisionResp) HasUnreviewedInfo() bool` + +HasUnreviewedInfo 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/SchemaGetUserPageResp.md b/docs/SchemaGetUserPageResp.md new file mode 100644 index 0000000..dda7bcf --- /dev/null +++ b/docs/SchemaGetUserPageResp.md @@ -0,0 +1,342 @@ +# SchemaGetUserPageResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Avatar** | Pointer to **string** | avatar | [optional] +**CreatedAt** | Pointer to **int32** | create time | [optional] +**DeletedAt** | Pointer to **int32** | delete time | [optional] +**DisplayName** | Pointer to **string** | display name | [optional] +**EMail** | Pointer to **string** | email | [optional] +**Rank** | Pointer to **int32** | rank | [optional] +**RoleId** | Pointer to **int32** | role id | [optional] +**RoleName** | Pointer to **string** | role name | [optional] +**Status** | Pointer to **string** | user status(normal,suspended,deleted,inactive) | [optional] +**SuspendedAt** | Pointer to **int32** | suspended time | [optional] +**UserId** | Pointer to **string** | user id | [optional] +**Username** | Pointer to **string** | username | [optional] + +## Methods + +### NewSchemaGetUserPageResp + +`func NewSchemaGetUserPageResp() *SchemaGetUserPageResp` + +NewSchemaGetUserPageResp instantiates a new SchemaGetUserPageResp 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 + +### NewSchemaGetUserPageRespWithDefaults + +`func NewSchemaGetUserPageRespWithDefaults() *SchemaGetUserPageResp` + +NewSchemaGetUserPageRespWithDefaults instantiates a new SchemaGetUserPageResp 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 *SchemaGetUserPageResp) GetAvatar() string` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetAvatar(v string)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *SchemaGetUserPageResp) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaGetUserPageResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetUserPageResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDeletedAt + +`func (o *SchemaGetUserPageResp) GetDeletedAt() int32` + +GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise. + +### GetDeletedAtOk + +`func (o *SchemaGetUserPageResp) GetDeletedAtOk() (*int32, bool)` + +GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedAt + +`func (o *SchemaGetUserPageResp) SetDeletedAt(v int32)` + +SetDeletedAt sets DeletedAt field to given value. + +### HasDeletedAt + +`func (o *SchemaGetUserPageResp) HasDeletedAt() bool` + +HasDeletedAt returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaGetUserPageResp) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaGetUserPageResp) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetEMail + +`func (o *SchemaGetUserPageResp) GetEMail() string` + +GetEMail returns the EMail field if non-nil, zero value otherwise. + +### GetEMailOk + +`func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetEMail(v string)` + +SetEMail sets EMail field to given value. + +### HasEMail + +`func (o *SchemaGetUserPageResp) HasEMail() bool` + +HasEMail returns a boolean if a field has been set. + +### GetRank + +`func (o *SchemaGetUserPageResp) GetRank() int32` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetRank(v int32)` + +SetRank sets Rank field to given value. + +### HasRank + +`func (o *SchemaGetUserPageResp) HasRank() bool` + +HasRank returns a boolean if a field has been set. + +### GetRoleId + +`func (o *SchemaGetUserPageResp) GetRoleId() int32` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetRoleId(v int32)` + +SetRoleId sets RoleId field to given value. + +### HasRoleId + +`func (o *SchemaGetUserPageResp) HasRoleId() bool` + +HasRoleId returns a boolean if a field has been set. + +### GetRoleName + +`func (o *SchemaGetUserPageResp) GetRoleName() string` + +GetRoleName returns the RoleName field if non-nil, zero value otherwise. + +### GetRoleNameOk + +`func (o *SchemaGetUserPageResp) GetRoleNameOk() (*string, bool)` + +GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleName + +`func (o *SchemaGetUserPageResp) SetRoleName(v string)` + +SetRoleName sets RoleName field to given value. + +### HasRoleName + +`func (o *SchemaGetUserPageResp) HasRoleName() bool` + +HasRoleName returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaGetUserPageResp) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaGetUserPageResp) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSuspendedAt + +`func (o *SchemaGetUserPageResp) GetSuspendedAt() int32` + +GetSuspendedAt returns the SuspendedAt field if non-nil, zero value otherwise. + +### GetSuspendedAtOk + +`func (o *SchemaGetUserPageResp) GetSuspendedAtOk() (*int32, bool)` + +GetSuspendedAtOk returns a tuple with the SuspendedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSuspendedAt + +`func (o *SchemaGetUserPageResp) SetSuspendedAt(v int32)` + +SetSuspendedAt sets SuspendedAt field to given value. + +### HasSuspendedAt + +`func (o *SchemaGetUserPageResp) HasSuspendedAt() bool` + +HasSuspendedAt returns a boolean if a field has been set. + +### GetUserId + +`func (o *SchemaGetUserPageResp) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *SchemaGetUserPageResp) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaGetUserPageResp) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaGetUserPageResp) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaGetUserResp.md b/docs/SchemaGetUserResp.md new file mode 100644 index 0000000..8c83786 --- /dev/null +++ b/docs/SchemaGetUserResp.md @@ -0,0 +1,654 @@ +# SchemaGetUserResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessToken** | Pointer to **string** | access token | [optional] +**AnswerCount** | Pointer to **int32** | answer count | [optional] +**AuthorityGroup** | Pointer to **int32** | authority group | [optional] +**Avatar** | Pointer to **string** | avatar | [optional] +**Bio** | Pointer to **string** | bio markdown | [optional] +**BioHtml** | Pointer to **string** | bio html | [optional] +**CreatedAt** | Pointer to **int32** | create time | [optional] +**DisplayName** | Pointer to **string** | display name | [optional] +**EMail** | Pointer to **string** | email | [optional] +**FollowCount** | Pointer to **int32** | follow count | [optional] +**Id** | Pointer to **string** | user id | [optional] +**IpInfo** | Pointer to **string** | ip info | [optional] +**Language** | Pointer to **string** | language | [optional] +**LastLoginDate** | Pointer to **int32** | last login date | [optional] +**Location** | Pointer to **string** | location | [optional] +**MailStatus** | Pointer to **int32** | mail status(1 pass 2 to be verified) | [optional] +**Mobile** | Pointer to **string** | mobile | [optional] +**NoticeStatus** | Pointer to **int32** | notice status(1 on 2off) | [optional] +**QuestionCount** | Pointer to **int32** | question count | [optional] +**Rank** | Pointer to **int32** | rank | [optional] +**RoleId** | Pointer to **int32** | role id | [optional] +**Status** | Pointer to **string** | user status | [optional] +**Username** | Pointer to **string** | username | [optional] +**Website** | Pointer to **string** | website | [optional] + +## Methods + +### NewSchemaGetUserResp + +`func NewSchemaGetUserResp() *SchemaGetUserResp` + +NewSchemaGetUserResp instantiates a new SchemaGetUserResp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaGetUserRespWithDefaults + +`func NewSchemaGetUserRespWithDefaults() *SchemaGetUserResp` + +NewSchemaGetUserRespWithDefaults instantiates a new SchemaGetUserResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccessToken + +`func (o *SchemaGetUserResp) GetAccessToken() string` + +GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. + +### GetAccessTokenOk + +`func (o *SchemaGetUserResp) GetAccessTokenOk() (*string, bool)` + +GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessToken + +`func (o *SchemaGetUserResp) SetAccessToken(v string)` + +SetAccessToken sets AccessToken field to given value. + +### HasAccessToken + +`func (o *SchemaGetUserResp) HasAccessToken() bool` + +HasAccessToken returns a boolean if a field has been set. + +### GetAnswerCount + +`func (o *SchemaGetUserResp) GetAnswerCount() int32` + +GetAnswerCount returns the AnswerCount field if non-nil, zero value otherwise. + +### GetAnswerCountOk + +`func (o *SchemaGetUserResp) GetAnswerCountOk() (*int32, bool)` + +GetAnswerCountOk returns a tuple with the AnswerCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnswerCount + +`func (o *SchemaGetUserResp) SetAnswerCount(v int32)` + +SetAnswerCount sets AnswerCount field to given value. + +### HasAnswerCount + +`func (o *SchemaGetUserResp) HasAnswerCount() bool` + +HasAnswerCount returns a boolean if a field has been set. + +### GetAuthorityGroup + +`func (o *SchemaGetUserResp) GetAuthorityGroup() int32` + +GetAuthorityGroup returns the AuthorityGroup field if non-nil, zero value otherwise. + +### GetAuthorityGroupOk + +`func (o *SchemaGetUserResp) GetAuthorityGroupOk() (*int32, bool)` + +GetAuthorityGroupOk returns a tuple with the AuthorityGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityGroup + +`func (o *SchemaGetUserResp) SetAuthorityGroup(v int32)` + +SetAuthorityGroup sets AuthorityGroup field to given value. + +### HasAuthorityGroup + +`func (o *SchemaGetUserResp) HasAuthorityGroup() bool` + +HasAuthorityGroup returns a boolean if a field has been set. + +### GetAvatar + +`func (o *SchemaGetUserResp) GetAvatar() string` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *SchemaGetUserResp) GetAvatarOk() (*string, bool)` + +GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatar + +`func (o *SchemaGetUserResp) SetAvatar(v string)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *SchemaGetUserResp) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + +### GetBio + +`func (o *SchemaGetUserResp) GetBio() string` + +GetBio returns the Bio field if non-nil, zero value otherwise. + +### GetBioOk + +`func (o *SchemaGetUserResp) GetBioOk() (*string, bool)` + +GetBioOk returns a tuple with the Bio field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBio + +`func (o *SchemaGetUserResp) SetBio(v string)` + +SetBio sets Bio field to given value. + +### HasBio + +`func (o *SchemaGetUserResp) HasBio() bool` + +HasBio returns a boolean if a field has been set. + +### GetBioHtml + +`func (o *SchemaGetUserResp) GetBioHtml() string` + +GetBioHtml returns the BioHtml field if non-nil, zero value otherwise. + +### GetBioHtmlOk + +`func (o *SchemaGetUserResp) GetBioHtmlOk() (*string, bool)` + +GetBioHtmlOk returns a tuple with the BioHtml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBioHtml + +`func (o *SchemaGetUserResp) SetBioHtml(v string)` + +SetBioHtml sets BioHtml field to given value. + +### HasBioHtml + +`func (o *SchemaGetUserResp) HasBioHtml() bool` + +HasBioHtml returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaGetUserResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetUserResp) GetCreatedAtOk() (*int32, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SchemaGetUserResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetUserResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaGetUserResp) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaGetUserResp) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SchemaGetUserResp) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaGetUserResp) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetEMail + +`func (o *SchemaGetUserResp) GetEMail() string` + +GetEMail returns the EMail field if non-nil, zero value otherwise. + +### GetEMailOk + +`func (o *SchemaGetUserResp) GetEMailOk() (*string, bool)` + +GetEMailOk returns a tuple with the EMail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEMail + +`func (o *SchemaGetUserResp) SetEMail(v string)` + +SetEMail sets EMail field to given value. + +### HasEMail + +`func (o *SchemaGetUserResp) HasEMail() bool` + +HasEMail returns a boolean if a field has been set. + +### GetFollowCount + +`func (o *SchemaGetUserResp) GetFollowCount() int32` + +GetFollowCount returns the FollowCount field if non-nil, zero value otherwise. + +### GetFollowCountOk + +`func (o *SchemaGetUserResp) GetFollowCountOk() (*int32, bool)` + +GetFollowCountOk returns a tuple with the FollowCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFollowCount + +`func (o *SchemaGetUserResp) SetFollowCount(v int32)` + +SetFollowCount sets FollowCount field to given value. + +### HasFollowCount + +`func (o *SchemaGetUserResp) HasFollowCount() bool` + +HasFollowCount returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaGetUserResp) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaGetUserResp) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SchemaGetUserResp) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaGetUserResp) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIpInfo + +`func (o *SchemaGetUserResp) GetIpInfo() string` + +GetIpInfo returns the IpInfo field if non-nil, zero value otherwise. + +### GetIpInfoOk + +`func (o *SchemaGetUserResp) GetIpInfoOk() (*string, bool)` + +GetIpInfoOk returns a tuple with the IpInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpInfo + +`func (o *SchemaGetUserResp) SetIpInfo(v string)` + +SetIpInfo sets IpInfo field to given value. + +### HasIpInfo + +`func (o *SchemaGetUserResp) HasIpInfo() bool` + +HasIpInfo returns a boolean if a field has been set. + +### GetLanguage + +`func (o *SchemaGetUserResp) GetLanguage() string` + +GetLanguage returns the Language field if non-nil, zero value otherwise. + +### GetLanguageOk + +`func (o *SchemaGetUserResp) GetLanguageOk() (*string, bool)` + +GetLanguageOk returns a tuple with the Language field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLanguage + +`func (o *SchemaGetUserResp) SetLanguage(v string)` + +SetLanguage sets Language field to given value. + +### HasLanguage + +`func (o *SchemaGetUserResp) HasLanguage() bool` + +HasLanguage returns a boolean if a field has been set. + +### GetLastLoginDate + +`func (o *SchemaGetUserResp) GetLastLoginDate() int32` + +GetLastLoginDate returns the LastLoginDate field if non-nil, zero value otherwise. + +### GetLastLoginDateOk + +`func (o *SchemaGetUserResp) GetLastLoginDateOk() (*int32, bool)` + +GetLastLoginDateOk returns a tuple with the LastLoginDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLoginDate + +`func (o *SchemaGetUserResp) SetLastLoginDate(v int32)` + +SetLastLoginDate sets LastLoginDate field to given value. + +### HasLastLoginDate + +`func (o *SchemaGetUserResp) HasLastLoginDate() bool` + +HasLastLoginDate returns a boolean if a field has been set. + +### GetLocation + +`func (o *SchemaGetUserResp) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *SchemaGetUserResp) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *SchemaGetUserResp) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *SchemaGetUserResp) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### GetMailStatus + +`func (o *SchemaGetUserResp) GetMailStatus() int32` + +GetMailStatus returns the MailStatus field if non-nil, zero value otherwise. + +### GetMailStatusOk + +`func (o *SchemaGetUserResp) GetMailStatusOk() (*int32, bool)` + +GetMailStatusOk returns a tuple with the MailStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMailStatus + +`func (o *SchemaGetUserResp) SetMailStatus(v int32)` + +SetMailStatus sets MailStatus field to given value. + +### HasMailStatus + +`func (o *SchemaGetUserResp) HasMailStatus() bool` + +HasMailStatus returns a boolean if a field has been set. + +### GetMobile + +`func (o *SchemaGetUserResp) GetMobile() string` + +GetMobile returns the Mobile field if non-nil, zero value otherwise. + +### GetMobileOk + +`func (o *SchemaGetUserResp) GetMobileOk() (*string, bool)` + +GetMobileOk returns a tuple with the Mobile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMobile + +`func (o *SchemaGetUserResp) SetMobile(v string)` + +SetMobile sets Mobile field to given value. + +### HasMobile + +`func (o *SchemaGetUserResp) HasMobile() bool` + +HasMobile returns a boolean if a field has been set. + +### GetNoticeStatus + +`func (o *SchemaGetUserResp) GetNoticeStatus() int32` + +GetNoticeStatus returns the NoticeStatus field if non-nil, zero value otherwise. + +### GetNoticeStatusOk + +`func (o *SchemaGetUserResp) GetNoticeStatusOk() (*int32, bool)` + +GetNoticeStatusOk returns a tuple with the NoticeStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNoticeStatus + +`func (o *SchemaGetUserResp) SetNoticeStatus(v int32)` + +SetNoticeStatus sets NoticeStatus field to given value. + +### HasNoticeStatus + +`func (o *SchemaGetUserResp) HasNoticeStatus() bool` + +HasNoticeStatus returns a boolean if a field has been set. + +### GetQuestionCount + +`func (o *SchemaGetUserResp) GetQuestionCount() int32` + +GetQuestionCount returns the QuestionCount field if non-nil, zero value otherwise. + +### GetQuestionCountOk + +`func (o *SchemaGetUserResp) GetQuestionCountOk() (*int32, bool)` + +GetQuestionCountOk returns a tuple with the QuestionCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuestionCount + +`func (o *SchemaGetUserResp) SetQuestionCount(v int32)` + +SetQuestionCount sets QuestionCount field to given value. + +### HasQuestionCount + +`func (o *SchemaGetUserResp) HasQuestionCount() bool` + +HasQuestionCount returns a boolean if a field has been set. + +### GetRank + +`func (o *SchemaGetUserResp) GetRank() int32` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *SchemaGetUserResp) GetRankOk() (*int32, bool)` + +GetRankOk returns a tuple with the Rank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRank + +`func (o *SchemaGetUserResp) SetRank(v int32)` + +SetRank sets Rank field to given value. + +### HasRank + +`func (o *SchemaGetUserResp) HasRank() bool` + +HasRank returns a boolean if a field has been set. + +### GetRoleId + +`func (o *SchemaGetUserResp) GetRoleId() int32` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *SchemaGetUserResp) GetRoleIdOk() (*int32, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *SchemaGetUserResp) SetRoleId(v int32)` + +SetRoleId sets RoleId field to given value. + +### HasRoleId + +`func (o *SchemaGetUserResp) HasRoleId() bool` + +HasRoleId returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaGetUserResp) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaGetUserResp) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SchemaGetUserResp) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaGetUserResp) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaGetUserResp) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaGetUserResp) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *SchemaGetUserResp) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaGetUserResp) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetWebsite + +`func (o *SchemaGetUserResp) GetWebsite() string` + +GetWebsite returns the Website field if non-nil, zero value otherwise. + +### GetWebsiteOk + +`func (o *SchemaGetUserResp) GetWebsiteOk() (*string, bool)` + +GetWebsiteOk returns a tuple with the Website field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsite + +`func (o *SchemaGetUserResp) SetWebsite(v string)` + +SetWebsite sets Website field to given value. + +### HasWebsite + +`func (o *SchemaGetUserResp) HasWebsite() bool` + +HasWebsite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaGetUserToSetShowResp.md b/docs/SchemaGetUserToSetShowResp.md new file mode 100644 index 0000000..7cbdf71 --- /dev/null +++ b/docs/SchemaGetUserToSetShowResp.md @@ -0,0 +1,654 @@ +# SchemaGetUserToSetShowResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessToken** | Pointer to **string** | access token | [optional] +**AnswerCount** | Pointer to **int32** | answer count | [optional] +**AuthorityGroup** | Pointer to **int32** | authority group | [optional] +**Avatar** | Pointer to [**SchemaAvatarInfo**](SchemaAvatarInfo.md) | | [optional] +**Bio** | Pointer to **string** | bio markdown | [optional] +**BioHtml** | Pointer to **string** | bio html | [optional] +**CreatedAt** | Pointer to **int32** | create time | [optional] +**DisplayName** | Pointer to **string** | display name | [optional] +**EMail** | Pointer to **string** | email | [optional] +**FollowCount** | Pointer to **int32** | follow count | [optional] +**Id** | Pointer to **string** | user id | [optional] +**IpInfo** | Pointer to **string** | ip info | [optional] +**Language** | Pointer to **string** | language | [optional] +**LastLoginDate** | Pointer to **int32** | last login date | [optional] +**Location** | Pointer to **string** | location | [optional] +**MailStatus** | Pointer to **int32** | mail status(1 pass 2 to be verified) | [optional] +**Mobile** | Pointer to **string** | mobile | [optional] +**NoticeStatus** | Pointer to **int32** | notice status(1 on 2off) | [optional] +**QuestionCount** | Pointer to **int32** | question count | [optional] +**Rank** | Pointer to **int32** | rank | [optional] +**RoleId** | Pointer to **int32** | role id | [optional] +**Status** | Pointer to **string** | user status | [optional] +**Username** | Pointer to **string** | username | [optional] +**Website** | Pointer to **string** | website | [optional] + +## Methods + +### NewSchemaGetUserToSetShowResp + +`func NewSchemaGetUserToSetShowResp() *SchemaGetUserToSetShowResp` + +NewSchemaGetUserToSetShowResp instantiates a new SchemaGetUserToSetShowResp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaGetUserToSetShowRespWithDefaults + +`func NewSchemaGetUserToSetShowRespWithDefaults() *SchemaGetUserToSetShowResp` + +NewSchemaGetUserToSetShowRespWithDefaults instantiates a new SchemaGetUserToSetShowResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccessToken + +`func (o *SchemaGetUserToSetShowResp) GetAccessToken() string` + +GetAccessToken returns the AccessToken field if non-nil, zero value otherwise. + +### GetAccessTokenOk + +`func (o *SchemaGetUserToSetShowResp) GetAccessTokenOk() (*string, bool)` + +GetAccessTokenOk returns a tuple with the AccessToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessToken + +`func (o *SchemaGetUserToSetShowResp) SetAccessToken(v string)` + +SetAccessToken sets AccessToken field to given value. + +### HasAccessToken + +`func (o *SchemaGetUserToSetShowResp) HasAccessToken() bool` + +HasAccessToken returns a boolean if a field has been set. + +### GetAnswerCount + +`func (o *SchemaGetUserToSetShowResp) GetAnswerCount() int32` + +GetAnswerCount returns the AnswerCount field if non-nil, zero value otherwise. + +### GetAnswerCountOk + +`func (o *SchemaGetUserToSetShowResp) GetAnswerCountOk() (*int32, bool)` + +GetAnswerCountOk returns a tuple with the AnswerCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnswerCount + +`func (o *SchemaGetUserToSetShowResp) SetAnswerCount(v int32)` + +SetAnswerCount sets AnswerCount field to given value. + +### HasAnswerCount + +`func (o *SchemaGetUserToSetShowResp) HasAnswerCount() bool` + +HasAnswerCount returns a boolean if a field has been set. + +### GetAuthorityGroup + +`func (o *SchemaGetUserToSetShowResp) GetAuthorityGroup() int32` + +GetAuthorityGroup returns the AuthorityGroup field if non-nil, zero value otherwise. + +### GetAuthorityGroupOk + +`func (o *SchemaGetUserToSetShowResp) GetAuthorityGroupOk() (*int32, bool)` + +GetAuthorityGroupOk returns a tuple with the AuthorityGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorityGroup + +`func (o *SchemaGetUserToSetShowResp) SetAuthorityGroup(v int32)` + +SetAuthorityGroup sets AuthorityGroup field to given value. + +### HasAuthorityGroup + +`func (o *SchemaGetUserToSetShowResp) HasAuthorityGroup() bool` + +HasAuthorityGroup returns a boolean if a field has been set. + +### GetAvatar + +`func (o *SchemaGetUserToSetShowResp) GetAvatar() SchemaAvatarInfo` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *SchemaGetUserToSetShowResp) GetAvatarOk() (*SchemaAvatarInfo, bool)` + +GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatar + +`func (o *SchemaGetUserToSetShowResp) SetAvatar(v SchemaAvatarInfo)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *SchemaGetUserToSetShowResp) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + +### GetBio + +`func (o *SchemaGetUserToSetShowResp) GetBio() string` + +GetBio returns the Bio field if non-nil, zero value otherwise. + +### GetBioOk + +`func (o *SchemaGetUserToSetShowResp) GetBioOk() (*string, bool)` + +GetBioOk returns a tuple with the Bio field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBio + +`func (o *SchemaGetUserToSetShowResp) SetBio(v string)` + +SetBio sets Bio field to given value. + +### HasBio + +`func (o *SchemaGetUserToSetShowResp) HasBio() bool` + +HasBio returns a boolean if a field has been set. + +### GetBioHtml + +`func (o *SchemaGetUserToSetShowResp) GetBioHtml() string` + +GetBioHtml returns the BioHtml field if non-nil, zero value otherwise. + +### GetBioHtmlOk + +`func (o *SchemaGetUserToSetShowResp) GetBioHtmlOk() (*string, bool)` + +GetBioHtmlOk returns a tuple with the BioHtml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBioHtml + +`func (o *SchemaGetUserToSetShowResp) SetBioHtml(v string)` + +SetBioHtml sets BioHtml field to given value. + +### HasBioHtml + +`func (o *SchemaGetUserToSetShowResp) HasBioHtml() bool` + +HasBioHtml returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaGetUserToSetShowResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetUserToSetShowResp) GetCreatedAtOk() (*int32, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *SchemaGetUserToSetShowResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetUserToSetShowResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaGetUserToSetShowResp) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaGetUserToSetShowResp) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *SchemaGetUserToSetShowResp) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaGetUserToSetShowResp) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetEMail + +`func (o *SchemaGetUserToSetShowResp) GetEMail() string` + +GetEMail returns the EMail field if non-nil, zero value otherwise. + +### GetEMailOk + +`func (o *SchemaGetUserToSetShowResp) GetEMailOk() (*string, bool)` + +GetEMailOk returns a tuple with the EMail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEMail + +`func (o *SchemaGetUserToSetShowResp) SetEMail(v string)` + +SetEMail sets EMail field to given value. + +### HasEMail + +`func (o *SchemaGetUserToSetShowResp) HasEMail() bool` + +HasEMail returns a boolean if a field has been set. + +### GetFollowCount + +`func (o *SchemaGetUserToSetShowResp) GetFollowCount() int32` + +GetFollowCount returns the FollowCount field if non-nil, zero value otherwise. + +### GetFollowCountOk + +`func (o *SchemaGetUserToSetShowResp) GetFollowCountOk() (*int32, bool)` + +GetFollowCountOk returns a tuple with the FollowCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFollowCount + +`func (o *SchemaGetUserToSetShowResp) SetFollowCount(v int32)` + +SetFollowCount sets FollowCount field to given value. + +### HasFollowCount + +`func (o *SchemaGetUserToSetShowResp) HasFollowCount() bool` + +HasFollowCount returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaGetUserToSetShowResp) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaGetUserToSetShowResp) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SchemaGetUserToSetShowResp) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaGetUserToSetShowResp) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIpInfo + +`func (o *SchemaGetUserToSetShowResp) GetIpInfo() string` + +GetIpInfo returns the IpInfo field if non-nil, zero value otherwise. + +### GetIpInfoOk + +`func (o *SchemaGetUserToSetShowResp) GetIpInfoOk() (*string, bool)` + +GetIpInfoOk returns a tuple with the IpInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpInfo + +`func (o *SchemaGetUserToSetShowResp) SetIpInfo(v string)` + +SetIpInfo sets IpInfo field to given value. + +### HasIpInfo + +`func (o *SchemaGetUserToSetShowResp) HasIpInfo() bool` + +HasIpInfo returns a boolean if a field has been set. + +### GetLanguage + +`func (o *SchemaGetUserToSetShowResp) GetLanguage() string` + +GetLanguage returns the Language field if non-nil, zero value otherwise. + +### GetLanguageOk + +`func (o *SchemaGetUserToSetShowResp) GetLanguageOk() (*string, bool)` + +GetLanguageOk returns a tuple with the Language field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLanguage + +`func (o *SchemaGetUserToSetShowResp) SetLanguage(v string)` + +SetLanguage sets Language field to given value. + +### HasLanguage + +`func (o *SchemaGetUserToSetShowResp) HasLanguage() bool` + +HasLanguage returns a boolean if a field has been set. + +### GetLastLoginDate + +`func (o *SchemaGetUserToSetShowResp) GetLastLoginDate() int32` + +GetLastLoginDate returns the LastLoginDate field if non-nil, zero value otherwise. + +### GetLastLoginDateOk + +`func (o *SchemaGetUserToSetShowResp) GetLastLoginDateOk() (*int32, bool)` + +GetLastLoginDateOk returns a tuple with the LastLoginDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLoginDate + +`func (o *SchemaGetUserToSetShowResp) SetLastLoginDate(v int32)` + +SetLastLoginDate sets LastLoginDate field to given value. + +### HasLastLoginDate + +`func (o *SchemaGetUserToSetShowResp) HasLastLoginDate() bool` + +HasLastLoginDate returns a boolean if a field has been set. + +### GetLocation + +`func (o *SchemaGetUserToSetShowResp) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *SchemaGetUserToSetShowResp) GetLocationOk() (*string, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *SchemaGetUserToSetShowResp) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *SchemaGetUserToSetShowResp) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### GetMailStatus + +`func (o *SchemaGetUserToSetShowResp) GetMailStatus() int32` + +GetMailStatus returns the MailStatus field if non-nil, zero value otherwise. + +### GetMailStatusOk + +`func (o *SchemaGetUserToSetShowResp) GetMailStatusOk() (*int32, bool)` + +GetMailStatusOk returns a tuple with the MailStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMailStatus + +`func (o *SchemaGetUserToSetShowResp) SetMailStatus(v int32)` + +SetMailStatus sets MailStatus field to given value. + +### HasMailStatus + +`func (o *SchemaGetUserToSetShowResp) HasMailStatus() bool` + +HasMailStatus returns a boolean if a field has been set. + +### GetMobile + +`func (o *SchemaGetUserToSetShowResp) GetMobile() string` + +GetMobile returns the Mobile field if non-nil, zero value otherwise. + +### GetMobileOk + +`func (o *SchemaGetUserToSetShowResp) GetMobileOk() (*string, bool)` + +GetMobileOk returns a tuple with the Mobile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMobile + +`func (o *SchemaGetUserToSetShowResp) SetMobile(v string)` + +SetMobile sets Mobile field to given value. + +### HasMobile + +`func (o *SchemaGetUserToSetShowResp) HasMobile() bool` + +HasMobile returns a boolean if a field has been set. + +### GetNoticeStatus + +`func (o *SchemaGetUserToSetShowResp) GetNoticeStatus() int32` + +GetNoticeStatus returns the NoticeStatus field if non-nil, zero value otherwise. + +### GetNoticeStatusOk + +`func (o *SchemaGetUserToSetShowResp) GetNoticeStatusOk() (*int32, bool)` + +GetNoticeStatusOk returns a tuple with the NoticeStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNoticeStatus + +`func (o *SchemaGetUserToSetShowResp) SetNoticeStatus(v int32)` + +SetNoticeStatus sets NoticeStatus field to given value. + +### HasNoticeStatus + +`func (o *SchemaGetUserToSetShowResp) HasNoticeStatus() bool` + +HasNoticeStatus returns a boolean if a field has been set. + +### GetQuestionCount + +`func (o *SchemaGetUserToSetShowResp) GetQuestionCount() int32` + +GetQuestionCount returns the QuestionCount field if non-nil, zero value otherwise. + +### GetQuestionCountOk + +`func (o *SchemaGetUserToSetShowResp) GetQuestionCountOk() (*int32, bool)` + +GetQuestionCountOk returns a tuple with the QuestionCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuestionCount + +`func (o *SchemaGetUserToSetShowResp) SetQuestionCount(v int32)` + +SetQuestionCount sets QuestionCount field to given value. + +### HasQuestionCount + +`func (o *SchemaGetUserToSetShowResp) HasQuestionCount() bool` + +HasQuestionCount returns a boolean if a field has been set. + +### GetRank + +`func (o *SchemaGetUserToSetShowResp) GetRank() int32` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *SchemaGetUserToSetShowResp) GetRankOk() (*int32, bool)` + +GetRankOk returns a tuple with the Rank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRank + +`func (o *SchemaGetUserToSetShowResp) SetRank(v int32)` + +SetRank sets Rank field to given value. + +### HasRank + +`func (o *SchemaGetUserToSetShowResp) HasRank() bool` + +HasRank returns a boolean if a field has been set. + +### GetRoleId + +`func (o *SchemaGetUserToSetShowResp) GetRoleId() int32` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *SchemaGetUserToSetShowResp) GetRoleIdOk() (*int32, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *SchemaGetUserToSetShowResp) SetRoleId(v int32)` + +SetRoleId sets RoleId field to given value. + +### HasRoleId + +`func (o *SchemaGetUserToSetShowResp) HasRoleId() bool` + +HasRoleId returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaGetUserToSetShowResp) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaGetUserToSetShowResp) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SchemaGetUserToSetShowResp) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaGetUserToSetShowResp) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaGetUserToSetShowResp) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaGetUserToSetShowResp) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *SchemaGetUserToSetShowResp) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaGetUserToSetShowResp) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetWebsite + +`func (o *SchemaGetUserToSetShowResp) GetWebsite() string` + +GetWebsite returns the Website field if non-nil, zero value otherwise. + +### GetWebsiteOk + +`func (o *SchemaGetUserToSetShowResp) GetWebsiteOk() (*string, bool)` + +GetWebsiteOk returns a tuple with the Website field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebsite + +`func (o *SchemaGetUserToSetShowResp) SetWebsite(v string)` + +SetWebsite sets Website field to given value. + +### HasWebsite + +`func (o *SchemaGetUserToSetShowResp) HasWebsite() bool` + +HasWebsite returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaGetVoteWithPageResp.md b/docs/SchemaGetVoteWithPageResp.md new file mode 100644 index 0000000..20818fb --- /dev/null +++ b/docs/SchemaGetVoteWithPageResp.md @@ -0,0 +1,264 @@ +# SchemaGetVoteWithPageResp + +## 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] +**Title** | Pointer to **string** | title | [optional] +**UrlTitle** | Pointer to **string** | url title | [optional] +**VoteType** | Pointer to **string** | vote type | [optional] + +## Methods + +### NewSchemaGetVoteWithPageResp + +`func NewSchemaGetVoteWithPageResp() *SchemaGetVoteWithPageResp` + +NewSchemaGetVoteWithPageResp instantiates a new SchemaGetVoteWithPageResp 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 + +### NewSchemaGetVoteWithPageRespWithDefaults + +`func NewSchemaGetVoteWithPageRespWithDefaults() *SchemaGetVoteWithPageResp` + +NewSchemaGetVoteWithPageRespWithDefaults instantiates a new SchemaGetVoteWithPageResp 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 *SchemaGetVoteWithPageResp) GetAnswerId() string` + +GetAnswerId returns the AnswerId field if non-nil, zero value otherwise. + +### GetAnswerIdOk + +`func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetAnswerId(v string)` + +SetAnswerId sets AnswerId field to given value. + +### HasAnswerId + +`func (o *SchemaGetVoteWithPageResp) HasAnswerId() bool` + +HasAnswerId returns a boolean if a field has been set. + +### GetContent + +`func (o *SchemaGetVoteWithPageResp) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *SchemaGetVoteWithPageResp) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaGetVoteWithPageResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaGetVoteWithPageResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaGetVoteWithPageResp) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *SchemaGetVoteWithPageResp) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetObjectType + +`func (o *SchemaGetVoteWithPageResp) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *SchemaGetVoteWithPageResp) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetQuestionId + +`func (o *SchemaGetVoteWithPageResp) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaGetVoteWithPageResp) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaGetVoteWithPageResp) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaGetVoteWithPageResp) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetUrlTitle + +`func (o *SchemaGetVoteWithPageResp) GetUrlTitle() string` + +GetUrlTitle returns the UrlTitle field if non-nil, zero value otherwise. + +### GetUrlTitleOk + +`func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetUrlTitle(v string)` + +SetUrlTitle sets UrlTitle field to given value. + +### HasUrlTitle + +`func (o *SchemaGetVoteWithPageResp) HasUrlTitle() bool` + +HasUrlTitle returns a boolean if a field has been set. + +### GetVoteType + +`func (o *SchemaGetVoteWithPageResp) GetVoteType() string` + +GetVoteType returns the VoteType field if non-nil, zero value otherwise. + +### GetVoteTypeOk + +`func (o *SchemaGetVoteWithPageResp) GetVoteTypeOk() (*string, bool)` + +GetVoteTypeOk returns a tuple with the VoteType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVoteType + +`func (o *SchemaGetVoteWithPageResp) SetVoteType(v string)` + +SetVoteType sets VoteType field to given value. + +### HasVoteType + +`func (o *SchemaGetVoteWithPageResp) HasVoteType() bool` + +HasVoteType 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/SchemaNotificationClearIDRequest.md b/docs/SchemaNotificationClearIDRequest.md new file mode 100644 index 0000000..957c8df --- /dev/null +++ b/docs/SchemaNotificationClearIDRequest.md @@ -0,0 +1,56 @@ +# SchemaNotificationClearIDRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaNotificationClearIDRequest + +`func NewSchemaNotificationClearIDRequest() *SchemaNotificationClearIDRequest` + +NewSchemaNotificationClearIDRequest instantiates a new SchemaNotificationClearIDRequest 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 + +### NewSchemaNotificationClearIDRequestWithDefaults + +`func NewSchemaNotificationClearIDRequestWithDefaults() *SchemaNotificationClearIDRequest` + +NewSchemaNotificationClearIDRequestWithDefaults instantiates a new SchemaNotificationClearIDRequest 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 + +### GetId + +`func (o *SchemaNotificationClearIDRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaNotificationClearIDRequest) 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 *SchemaNotificationClearIDRequest) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaNotificationClearIDRequest) HasId() bool` + +HasId 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/SchemaNotificationClearRequest.md b/docs/SchemaNotificationClearRequest.md new file mode 100644 index 0000000..02f9604 --- /dev/null +++ b/docs/SchemaNotificationClearRequest.md @@ -0,0 +1,56 @@ +# SchemaNotificationClearRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | inbox achievement | [optional] + +## Methods + +### NewSchemaNotificationClearRequest + +`func NewSchemaNotificationClearRequest() *SchemaNotificationClearRequest` + +NewSchemaNotificationClearRequest instantiates a new SchemaNotificationClearRequest 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 + +### NewSchemaNotificationClearRequestWithDefaults + +`func NewSchemaNotificationClearRequestWithDefaults() *SchemaNotificationClearRequest` + +NewSchemaNotificationClearRequestWithDefaults instantiates a new SchemaNotificationClearRequest 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 + +### GetType + +`func (o *SchemaNotificationClearRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SchemaNotificationClearRequest) 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 *SchemaNotificationClearRequest) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SchemaNotificationClearRequest) 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/SchemaOperationQuestionReq.md b/docs/SchemaOperationQuestionReq.md new file mode 100644 index 0000000..2cec0f9 --- /dev/null +++ b/docs/SchemaOperationQuestionReq.md @@ -0,0 +1,77 @@ +# SchemaOperationQuestionReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | +**Operation** | Pointer to **string** | operation [pin unpin hide show] | [optional] + +## Methods + +### NewSchemaOperationQuestionReq + +`func NewSchemaOperationQuestionReq(id string, ) *SchemaOperationQuestionReq` + +NewSchemaOperationQuestionReq instantiates a new SchemaOperationQuestionReq 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 + +### NewSchemaOperationQuestionReqWithDefaults + +`func NewSchemaOperationQuestionReqWithDefaults() *SchemaOperationQuestionReq` + +NewSchemaOperationQuestionReqWithDefaults instantiates a new SchemaOperationQuestionReq 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 + +### GetId + +`func (o *SchemaOperationQuestionReq) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaOperationQuestionReq) 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 *SchemaOperationQuestionReq) SetId(v string)` + +SetId sets Id field to given value. + + +### GetOperation + +`func (o *SchemaOperationQuestionReq) GetOperation() string` + +GetOperation returns the Operation field if non-nil, zero value otherwise. + +### GetOperationOk + +`func (o *SchemaOperationQuestionReq) GetOperationOk() (*string, bool)` + +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperation + +`func (o *SchemaOperationQuestionReq) SetOperation(v string)` + +SetOperation sets Operation field to given value. + +### HasOperation + +`func (o *SchemaOperationQuestionReq) HasOperation() bool` + +HasOperation 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/SchemaPermissionMemberAction.md b/docs/SchemaPermissionMemberAction.md new file mode 100644 index 0000000..aaba01e --- /dev/null +++ b/docs/SchemaPermissionMemberAction.md @@ -0,0 +1,108 @@ +# SchemaPermissionMemberAction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaPermissionMemberAction + +`func NewSchemaPermissionMemberAction() *SchemaPermissionMemberAction` + +NewSchemaPermissionMemberAction instantiates a new SchemaPermissionMemberAction 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 + +### NewSchemaPermissionMemberActionWithDefaults + +`func NewSchemaPermissionMemberActionWithDefaults() *SchemaPermissionMemberAction` + +NewSchemaPermissionMemberActionWithDefaults instantiates a new SchemaPermissionMemberAction 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 *SchemaPermissionMemberAction) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *SchemaPermissionMemberAction) GetActionOk() (*string, 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 *SchemaPermissionMemberAction) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *SchemaPermissionMemberAction) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetName + +`func (o *SchemaPermissionMemberAction) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaPermissionMemberAction) 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 *SchemaPermissionMemberAction) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *SchemaPermissionMemberAction) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetType + +`func (o *SchemaPermissionMemberAction) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *SchemaPermissionMemberAction) 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 *SchemaPermissionMemberAction) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *SchemaPermissionMemberAction) 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/SchemaPostRenderReq.md b/docs/SchemaPostRenderReq.md new file mode 100644 index 0000000..3993536 --- /dev/null +++ b/docs/SchemaPostRenderReq.md @@ -0,0 +1,56 @@ +# SchemaPostRenderReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaPostRenderReq + +`func NewSchemaPostRenderReq() *SchemaPostRenderReq` + +NewSchemaPostRenderReq instantiates a new SchemaPostRenderReq 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 + +### NewSchemaPostRenderReqWithDefaults + +`func NewSchemaPostRenderReqWithDefaults() *SchemaPostRenderReq` + +NewSchemaPostRenderReqWithDefaults instantiates a new SchemaPostRenderReq 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 + +### GetContent + +`func (o *SchemaPostRenderReq) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaPostRenderReq) 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 *SchemaPostRenderReq) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *SchemaPostRenderReq) HasContent() bool` + +HasContent 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 new file mode 100644 index 0000000..be34194 --- /dev/null +++ b/docs/SchemaQuestionAdd.md @@ -0,0 +1,93 @@ +# SchemaQuestionAdd + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | **string** | content | +**Tags** | [**[]SchemaTagItem**](SchemaTagItem.md) | tags | +**Title** | **string** | question title | + +## Methods + +### NewSchemaQuestionAdd + +`func NewSchemaQuestionAdd(content string, tags []SchemaTagItem, title string, ) *SchemaQuestionAdd` + +NewSchemaQuestionAdd instantiates a new SchemaQuestionAdd 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 + +### NewSchemaQuestionAddWithDefaults + +`func NewSchemaQuestionAddWithDefaults() *SchemaQuestionAdd` + +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 + +### GetContent + +`func (o *SchemaQuestionAdd) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaQuestionAdd) 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 *SchemaQuestionAdd) SetContent(v string)` + +SetContent sets Content field to given value. + + +### GetTags + +`func (o *SchemaQuestionAdd) GetTags() []SchemaTagItem` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SchemaQuestionAdd) GetTagsOk() (*[]SchemaTagItem, 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 *SchemaQuestionAdd) SetTags(v []SchemaTagItem)` + +SetTags sets Tags field to given value. + + +### GetTitle + +`func (o *SchemaQuestionAdd) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaQuestionAdd) 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 *SchemaQuestionAdd) SetTitle(v string)` + +SetTitle sets Title 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/SchemaQuestionAddByAnswer.md b/docs/SchemaQuestionAddByAnswer.md new file mode 100644 index 0000000..8171c96 --- /dev/null +++ b/docs/SchemaQuestionAddByAnswer.md @@ -0,0 +1,114 @@ +# SchemaQuestionAddByAnswer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnswerContent** | **string** | | +**Content** | **string** | content | +**Tags** | [**[]SchemaTagItem**](SchemaTagItem.md) | tags | +**Title** | **string** | question title | + +## Methods + +### NewSchemaQuestionAddByAnswer + +`func NewSchemaQuestionAddByAnswer(answerContent string, content string, tags []SchemaTagItem, title string, ) *SchemaQuestionAddByAnswer` + +NewSchemaQuestionAddByAnswer instantiates a new SchemaQuestionAddByAnswer 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 + +### NewSchemaQuestionAddByAnswerWithDefaults + +`func NewSchemaQuestionAddByAnswerWithDefaults() *SchemaQuestionAddByAnswer` + +NewSchemaQuestionAddByAnswerWithDefaults instantiates a new SchemaQuestionAddByAnswer 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 + +### GetAnswerContent + +`func (o *SchemaQuestionAddByAnswer) GetAnswerContent() string` + +GetAnswerContent returns the AnswerContent field if non-nil, zero value otherwise. + +### GetAnswerContentOk + +`func (o *SchemaQuestionAddByAnswer) GetAnswerContentOk() (*string, bool)` + +GetAnswerContentOk returns a tuple with the AnswerContent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnswerContent + +`func (o *SchemaQuestionAddByAnswer) SetAnswerContent(v string)` + +SetAnswerContent sets AnswerContent field to given value. + + +### GetContent + +`func (o *SchemaQuestionAddByAnswer) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaQuestionAddByAnswer) 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 *SchemaQuestionAddByAnswer) SetContent(v string)` + +SetContent sets Content field to given value. + + +### GetTags + +`func (o *SchemaQuestionAddByAnswer) GetTags() []SchemaTagItem` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SchemaQuestionAddByAnswer) GetTagsOk() (*[]SchemaTagItem, 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 *SchemaQuestionAddByAnswer) SetTags(v []SchemaTagItem)` + +SetTags sets Tags field to given value. + + +### GetTitle + +`func (o *SchemaQuestionAddByAnswer) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaQuestionAddByAnswer) 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 *SchemaQuestionAddByAnswer) SetTitle(v string)` + +SetTitle sets Title 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/SchemaQuestionPageReq.md b/docs/SchemaQuestionPageReq.md new file mode 100644 index 0000000..876e46d --- /dev/null +++ b/docs/SchemaQuestionPageReq.md @@ -0,0 +1,160 @@ +# SchemaQuestionPageReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrderCond** | Pointer to **string** | | [optional] +**Page** | Pointer to **int32** | | [optional] +**PageSize** | Pointer to **int32** | | [optional] +**Tag** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaQuestionPageReq + +`func NewSchemaQuestionPageReq() *SchemaQuestionPageReq` + +NewSchemaQuestionPageReq instantiates a new SchemaQuestionPageReq object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaQuestionPageReqWithDefaults + +`func NewSchemaQuestionPageReqWithDefaults() *SchemaQuestionPageReq` + +NewSchemaQuestionPageReqWithDefaults instantiates a new SchemaQuestionPageReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrderCond + +`func (o *SchemaQuestionPageReq) GetOrderCond() string` + +GetOrderCond returns the OrderCond field if non-nil, zero value otherwise. + +### GetOrderCondOk + +`func (o *SchemaQuestionPageReq) GetOrderCondOk() (*string, bool)` + +GetOrderCondOk returns a tuple with the OrderCond field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderCond + +`func (o *SchemaQuestionPageReq) SetOrderCond(v string)` + +SetOrderCond sets OrderCond field to given value. + +### HasOrderCond + +`func (o *SchemaQuestionPageReq) HasOrderCond() bool` + +HasOrderCond returns a boolean if a field has been set. + +### GetPage + +`func (o *SchemaQuestionPageReq) GetPage() int32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *SchemaQuestionPageReq) GetPageOk() (*int32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *SchemaQuestionPageReq) SetPage(v int32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *SchemaQuestionPageReq) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetPageSize + +`func (o *SchemaQuestionPageReq) GetPageSize() int32` + +GetPageSize returns the PageSize field if non-nil, zero value otherwise. + +### GetPageSizeOk + +`func (o *SchemaQuestionPageReq) GetPageSizeOk() (*int32, bool)` + +GetPageSizeOk returns a tuple with the PageSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageSize + +`func (o *SchemaQuestionPageReq) SetPageSize(v int32)` + +SetPageSize sets PageSize field to given value. + +### HasPageSize + +`func (o *SchemaQuestionPageReq) HasPageSize() bool` + +HasPageSize returns a boolean if a field has been set. + +### GetTag + +`func (o *SchemaQuestionPageReq) GetTag() string` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *SchemaQuestionPageReq) GetTagOk() (*string, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *SchemaQuestionPageReq) SetTag(v string)` + +SetTag sets Tag field to given value. + +### HasTag + +`func (o *SchemaQuestionPageReq) HasTag() bool` + +HasTag returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaQuestionPageReq) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaQuestionPageReq) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *SchemaQuestionPageReq) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaQuestionPageReq) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaQuestionPageResp.md b/docs/SchemaQuestionPageResp.md new file mode 100644 index 0000000..b44a57e --- /dev/null +++ b/docs/SchemaQuestionPageResp.md @@ -0,0 +1,550 @@ +# SchemaQuestionPageResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AcceptedAnswerId** | Pointer to **string** | answer information | [optional] +**AnswerCount** | Pointer to **int32** | | [optional] +**CollectionCount** | Pointer to **int32** | | [optional] +**CreatedAt** | Pointer to **int32** | | [optional] +**Description** | Pointer to **string** | | [optional] +**FollowCount** | Pointer to **int32** | | [optional] +**Id** | Pointer to **string** | | [optional] +**LastAnswerId** | Pointer to **string** | | [optional] +**OperatedAt** | Pointer to **int32** | operator information | [optional] +**OperationType** | Pointer to **string** | | [optional] +**Operator** | Pointer to [**SchemaQuestionPageRespOperator**](SchemaQuestionPageRespOperator.md) | | [optional] +**Pin** | Pointer to **int32** | 1: unpin, 2: pin | [optional] +**Show** | Pointer to **int32** | 0: show, 1: hide | [optional] +**Status** | Pointer to **int32** | | [optional] +**Tags** | Pointer to [**[]SchemaTagResp**](SchemaTagResp.md) | | [optional] +**Title** | Pointer to **string** | | [optional] +**UniqueViewCount** | Pointer to **int32** | | [optional] +**UrlTitle** | Pointer to **string** | | [optional] +**ViewCount** | Pointer to **int32** | question statistical information | [optional] +**VoteCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewSchemaQuestionPageResp + +`func NewSchemaQuestionPageResp() *SchemaQuestionPageResp` + +NewSchemaQuestionPageResp instantiates a new SchemaQuestionPageResp 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 + +### NewSchemaQuestionPageRespWithDefaults + +`func NewSchemaQuestionPageRespWithDefaults() *SchemaQuestionPageResp` + +NewSchemaQuestionPageRespWithDefaults instantiates a new SchemaQuestionPageResp 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 + +### GetAcceptedAnswerId + +`func (o *SchemaQuestionPageResp) GetAcceptedAnswerId() string` + +GetAcceptedAnswerId returns the AcceptedAnswerId field if non-nil, zero value otherwise. + +### GetAcceptedAnswerIdOk + +`func (o *SchemaQuestionPageResp) GetAcceptedAnswerIdOk() (*string, bool)` + +GetAcceptedAnswerIdOk returns a tuple with the AcceptedAnswerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAcceptedAnswerId + +`func (o *SchemaQuestionPageResp) SetAcceptedAnswerId(v string)` + +SetAcceptedAnswerId sets AcceptedAnswerId field to given value. + +### HasAcceptedAnswerId + +`func (o *SchemaQuestionPageResp) HasAcceptedAnswerId() bool` + +HasAcceptedAnswerId returns a boolean if a field has been set. + +### GetAnswerCount + +`func (o *SchemaQuestionPageResp) GetAnswerCount() int32` + +GetAnswerCount returns the AnswerCount field if non-nil, zero value otherwise. + +### GetAnswerCountOk + +`func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetAnswerCount(v int32)` + +SetAnswerCount sets AnswerCount field to given value. + +### HasAnswerCount + +`func (o *SchemaQuestionPageResp) HasAnswerCount() bool` + +HasAnswerCount returns a boolean if a field has been set. + +### GetCollectionCount + +`func (o *SchemaQuestionPageResp) GetCollectionCount() int32` + +GetCollectionCount returns the CollectionCount field if non-nil, zero value otherwise. + +### GetCollectionCountOk + +`func (o *SchemaQuestionPageResp) GetCollectionCountOk() (*int32, bool)` + +GetCollectionCountOk returns a tuple with the CollectionCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCollectionCount + +`func (o *SchemaQuestionPageResp) SetCollectionCount(v int32)` + +SetCollectionCount sets CollectionCount field to given value. + +### HasCollectionCount + +`func (o *SchemaQuestionPageResp) HasCollectionCount() bool` + +HasCollectionCount returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaQuestionPageResp) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaQuestionPageResp) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *SchemaQuestionPageResp) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SchemaQuestionPageResp) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFollowCount + +`func (o *SchemaQuestionPageResp) GetFollowCount() int32` + +GetFollowCount returns the FollowCount field if non-nil, zero value otherwise. + +### GetFollowCountOk + +`func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetFollowCount(v int32)` + +SetFollowCount sets FollowCount field to given value. + +### HasFollowCount + +`func (o *SchemaQuestionPageResp) HasFollowCount() bool` + +HasFollowCount returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaQuestionPageResp) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaQuestionPageResp) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLastAnswerId + +`func (o *SchemaQuestionPageResp) GetLastAnswerId() string` + +GetLastAnswerId returns the LastAnswerId field if non-nil, zero value otherwise. + +### GetLastAnswerIdOk + +`func (o *SchemaQuestionPageResp) GetLastAnswerIdOk() (*string, bool)` + +GetLastAnswerIdOk returns a tuple with the LastAnswerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastAnswerId + +`func (o *SchemaQuestionPageResp) SetLastAnswerId(v string)` + +SetLastAnswerId sets LastAnswerId field to given value. + +### HasLastAnswerId + +`func (o *SchemaQuestionPageResp) HasLastAnswerId() bool` + +HasLastAnswerId returns a boolean if a field has been set. + +### GetOperatedAt + +`func (o *SchemaQuestionPageResp) GetOperatedAt() int32` + +GetOperatedAt returns the OperatedAt field if non-nil, zero value otherwise. + +### GetOperatedAtOk + +`func (o *SchemaQuestionPageResp) GetOperatedAtOk() (*int32, bool)` + +GetOperatedAtOk returns a tuple with the OperatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperatedAt + +`func (o *SchemaQuestionPageResp) SetOperatedAt(v int32)` + +SetOperatedAt sets OperatedAt field to given value. + +### HasOperatedAt + +`func (o *SchemaQuestionPageResp) HasOperatedAt() bool` + +HasOperatedAt returns a boolean if a field has been set. + +### GetOperationType + +`func (o *SchemaQuestionPageResp) GetOperationType() string` + +GetOperationType returns the OperationType field if non-nil, zero value otherwise. + +### GetOperationTypeOk + +`func (o *SchemaQuestionPageResp) GetOperationTypeOk() (*string, bool)` + +GetOperationTypeOk returns a tuple with the OperationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperationType + +`func (o *SchemaQuestionPageResp) SetOperationType(v string)` + +SetOperationType sets OperationType field to given value. + +### HasOperationType + +`func (o *SchemaQuestionPageResp) HasOperationType() bool` + +HasOperationType returns a boolean if a field has been set. + +### GetOperator + +`func (o *SchemaQuestionPageResp) GetOperator() SchemaQuestionPageRespOperator` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *SchemaQuestionPageResp) GetOperatorOk() (*SchemaQuestionPageRespOperator, bool)` + +GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperator + +`func (o *SchemaQuestionPageResp) SetOperator(v SchemaQuestionPageRespOperator)` + +SetOperator sets Operator field to given value. + +### HasOperator + +`func (o *SchemaQuestionPageResp) HasOperator() bool` + +HasOperator returns a boolean if a field has been set. + +### GetPin + +`func (o *SchemaQuestionPageResp) GetPin() int32` + +GetPin returns the Pin field if non-nil, zero value otherwise. + +### GetPinOk + +`func (o *SchemaQuestionPageResp) GetPinOk() (*int32, bool)` + +GetPinOk returns a tuple with the Pin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPin + +`func (o *SchemaQuestionPageResp) SetPin(v int32)` + +SetPin sets Pin field to given value. + +### HasPin + +`func (o *SchemaQuestionPageResp) HasPin() bool` + +HasPin returns a boolean if a field has been set. + +### GetShow + +`func (o *SchemaQuestionPageResp) GetShow() int32` + +GetShow returns the Show field if non-nil, zero value otherwise. + +### GetShowOk + +`func (o *SchemaQuestionPageResp) GetShowOk() (*int32, bool)` + +GetShowOk returns a tuple with the Show field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShow + +`func (o *SchemaQuestionPageResp) SetShow(v int32)` + +SetShow sets Show field to given value. + +### HasShow + +`func (o *SchemaQuestionPageResp) HasShow() bool` + +HasShow returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaQuestionPageResp) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaQuestionPageResp) GetStatusOk() (*int32, 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 *SchemaQuestionPageResp) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaQuestionPageResp) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTags + +`func (o *SchemaQuestionPageResp) GetTags() []SchemaTagResp` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetTags(v []SchemaTagResp)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SchemaQuestionPageResp) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaQuestionPageResp) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaQuestionPageResp) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetUniqueViewCount + +`func (o *SchemaQuestionPageResp) GetUniqueViewCount() int32` + +GetUniqueViewCount returns the UniqueViewCount field if non-nil, zero value otherwise. + +### GetUniqueViewCountOk + +`func (o *SchemaQuestionPageResp) GetUniqueViewCountOk() (*int32, bool)` + +GetUniqueViewCountOk returns a tuple with the UniqueViewCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUniqueViewCount + +`func (o *SchemaQuestionPageResp) SetUniqueViewCount(v int32)` + +SetUniqueViewCount sets UniqueViewCount field to given value. + +### HasUniqueViewCount + +`func (o *SchemaQuestionPageResp) HasUniqueViewCount() bool` + +HasUniqueViewCount returns a boolean if a field has been set. + +### GetUrlTitle + +`func (o *SchemaQuestionPageResp) GetUrlTitle() string` + +GetUrlTitle returns the UrlTitle field if non-nil, zero value otherwise. + +### GetUrlTitleOk + +`func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetUrlTitle(v string)` + +SetUrlTitle sets UrlTitle field to given value. + +### HasUrlTitle + +`func (o *SchemaQuestionPageResp) HasUrlTitle() bool` + +HasUrlTitle returns a boolean if a field has been set. + +### GetViewCount + +`func (o *SchemaQuestionPageResp) GetViewCount() int32` + +GetViewCount returns the ViewCount field if non-nil, zero value otherwise. + +### GetViewCountOk + +`func (o *SchemaQuestionPageResp) GetViewCountOk() (*int32, bool)` + +GetViewCountOk returns a tuple with the ViewCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetViewCount + +`func (o *SchemaQuestionPageResp) SetViewCount(v int32)` + +SetViewCount sets ViewCount field to given value. + +### HasViewCount + +`func (o *SchemaQuestionPageResp) HasViewCount() bool` + +HasViewCount returns a boolean if a field has been set. + +### GetVoteCount + +`func (o *SchemaQuestionPageResp) GetVoteCount() int32` + +GetVoteCount returns the VoteCount field if non-nil, zero value otherwise. + +### GetVoteCountOk + +`func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetVoteCount(v int32)` + +SetVoteCount sets VoteCount field to given value. + +### HasVoteCount + +`func (o *SchemaQuestionPageResp) 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/SchemaQuestionPageRespOperator.md b/docs/SchemaQuestionPageRespOperator.md new file mode 100644 index 0000000..3597235 --- /dev/null +++ b/docs/SchemaQuestionPageRespOperator.md @@ -0,0 +1,134 @@ +# SchemaQuestionPageRespOperator + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Rank** | Pointer to **int32** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaQuestionPageRespOperator + +`func NewSchemaQuestionPageRespOperator() *SchemaQuestionPageRespOperator` + +NewSchemaQuestionPageRespOperator instantiates a new SchemaQuestionPageRespOperator 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 + +### NewSchemaQuestionPageRespOperatorWithDefaults + +`func NewSchemaQuestionPageRespOperatorWithDefaults() *SchemaQuestionPageRespOperator` + +NewSchemaQuestionPageRespOperatorWithDefaults instantiates a new SchemaQuestionPageRespOperator object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *SchemaQuestionPageRespOperator) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaQuestionPageRespOperator) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaQuestionPageRespOperator) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaQuestionPageRespOperator) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetRank + +`func (o *SchemaQuestionPageRespOperator) GetRank() int32` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) SetRank(v int32)` + +SetRank sets Rank field to given value. + +### HasRank + +`func (o *SchemaQuestionPageRespOperator) HasRank() bool` + +HasRank returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaQuestionPageRespOperator) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaQuestionPageRespOperator) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaQuestionUpdate.md b/docs/SchemaQuestionUpdate.md new file mode 100644 index 0000000..ec05e83 --- /dev/null +++ b/docs/SchemaQuestionUpdate.md @@ -0,0 +1,140 @@ +# SchemaQuestionUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | **string** | content | +**EditSummary** | Pointer to **string** | edit summary | [optional] +**Id** | **string** | question id | +**Tags** | [**[]SchemaTagItem**](SchemaTagItem.md) | tags | +**Title** | **string** | question title | + +## Methods + +### NewSchemaQuestionUpdate + +`func NewSchemaQuestionUpdate(content string, id string, tags []SchemaTagItem, title string, ) *SchemaQuestionUpdate` + +NewSchemaQuestionUpdate instantiates a new SchemaQuestionUpdate 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 + +### NewSchemaQuestionUpdateWithDefaults + +`func NewSchemaQuestionUpdateWithDefaults() *SchemaQuestionUpdate` + +NewSchemaQuestionUpdateWithDefaults instantiates a new SchemaQuestionUpdate 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 + +### GetContent + +`func (o *SchemaQuestionUpdate) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) SetContent(v string)` + +SetContent sets Content field to given value. + + +### GetEditSummary + +`func (o *SchemaQuestionUpdate) GetEditSummary() string` + +GetEditSummary returns the EditSummary field if non-nil, zero value otherwise. + +### GetEditSummaryOk + +`func (o *SchemaQuestionUpdate) GetEditSummaryOk() (*string, bool)` + +GetEditSummaryOk returns a tuple with the EditSummary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEditSummary + +`func (o *SchemaQuestionUpdate) SetEditSummary(v string)` + +SetEditSummary sets EditSummary field to given value. + +### HasEditSummary + +`func (o *SchemaQuestionUpdate) HasEditSummary() bool` + +HasEditSummary returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaQuestionUpdate) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) SetId(v string)` + +SetId sets Id field to given value. + + +### GetTags + +`func (o *SchemaQuestionUpdate) GetTags() []SchemaTagItem` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SchemaQuestionUpdate) GetTagsOk() (*[]SchemaTagItem, 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 *SchemaQuestionUpdate) SetTags(v []SchemaTagItem)` + +SetTags sets Tags field to given value. + + +### GetTitle + +`func (o *SchemaQuestionUpdate) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) SetTitle(v string)` + +SetTitle sets Title 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/SchemaRemoveAnswerReq.md b/docs/SchemaRemoveAnswerReq.md new file mode 100644 index 0000000..9a710f6 --- /dev/null +++ b/docs/SchemaRemoveAnswerReq.md @@ -0,0 +1,51 @@ +# SchemaRemoveAnswerReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | answer id | + +## Methods + +### NewSchemaRemoveAnswerReq + +`func NewSchemaRemoveAnswerReq(id string, ) *SchemaRemoveAnswerReq` + +NewSchemaRemoveAnswerReq instantiates a new SchemaRemoveAnswerReq 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 + +### NewSchemaRemoveAnswerReqWithDefaults + +`func NewSchemaRemoveAnswerReqWithDefaults() *SchemaRemoveAnswerReq` + +NewSchemaRemoveAnswerReqWithDefaults instantiates a new SchemaRemoveAnswerReq 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 + +### GetId + +`func (o *SchemaRemoveAnswerReq) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaRemoveAnswerReq) 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 *SchemaRemoveAnswerReq) SetId(v string)` + +SetId sets Id 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/SchemaRemoveCommentReq.md b/docs/SchemaRemoveCommentReq.md new file mode 100644 index 0000000..45b0b2a --- /dev/null +++ b/docs/SchemaRemoveCommentReq.md @@ -0,0 +1,51 @@ +# SchemaRemoveCommentReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommentId** | **string** | comment id | + +## Methods + +### NewSchemaRemoveCommentReq + +`func NewSchemaRemoveCommentReq(commentId string, ) *SchemaRemoveCommentReq` + +NewSchemaRemoveCommentReq instantiates a new SchemaRemoveCommentReq 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 + +### NewSchemaRemoveCommentReqWithDefaults + +`func NewSchemaRemoveCommentReqWithDefaults() *SchemaRemoveCommentReq` + +NewSchemaRemoveCommentReqWithDefaults instantiates a new SchemaRemoveCommentReq 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 + +### GetCommentId + +`func (o *SchemaRemoveCommentReq) GetCommentId() string` + +GetCommentId returns the CommentId field if non-nil, zero value otherwise. + +### GetCommentIdOk + +`func (o *SchemaRemoveCommentReq) GetCommentIdOk() (*string, bool)` + +GetCommentIdOk returns a tuple with the CommentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentId + +`func (o *SchemaRemoveCommentReq) SetCommentId(v string)` + +SetCommentId sets CommentId 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/SchemaRemoveQuestionReq.md b/docs/SchemaRemoveQuestionReq.md new file mode 100644 index 0000000..11b56f3 --- /dev/null +++ b/docs/SchemaRemoveQuestionReq.md @@ -0,0 +1,51 @@ +# SchemaRemoveQuestionReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | question id | + +## Methods + +### NewSchemaRemoveQuestionReq + +`func NewSchemaRemoveQuestionReq(id string, ) *SchemaRemoveQuestionReq` + +NewSchemaRemoveQuestionReq instantiates a new SchemaRemoveQuestionReq 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 + +### NewSchemaRemoveQuestionReqWithDefaults + +`func NewSchemaRemoveQuestionReqWithDefaults() *SchemaRemoveQuestionReq` + +NewSchemaRemoveQuestionReqWithDefaults instantiates a new SchemaRemoveQuestionReq 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 + +### GetId + +`func (o *SchemaRemoveQuestionReq) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaRemoveQuestionReq) 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 *SchemaRemoveQuestionReq) SetId(v string)` + +SetId sets Id 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/SchemaRemoveTagReq.md b/docs/SchemaRemoveTagReq.md new file mode 100644 index 0000000..cd2dfcc --- /dev/null +++ b/docs/SchemaRemoveTagReq.md @@ -0,0 +1,51 @@ +# SchemaRemoveTagReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TagId** | **string** | tag_id | + +## Methods + +### NewSchemaRemoveTagReq + +`func NewSchemaRemoveTagReq(tagId string, ) *SchemaRemoveTagReq` + +NewSchemaRemoveTagReq instantiates a new SchemaRemoveTagReq 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 + +### NewSchemaRemoveTagReqWithDefaults + +`func NewSchemaRemoveTagReqWithDefaults() *SchemaRemoveTagReq` + +NewSchemaRemoveTagReqWithDefaults instantiates a new SchemaRemoveTagReq 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 + +### GetTagId + +`func (o *SchemaRemoveTagReq) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *SchemaRemoveTagReq) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *SchemaRemoveTagReq) SetTagId(v string)` + +SetTagId sets TagId 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/SchemaReopenQuestionReq.md b/docs/SchemaReopenQuestionReq.md new file mode 100644 index 0000000..96ea6d7 --- /dev/null +++ b/docs/SchemaReopenQuestionReq.md @@ -0,0 +1,56 @@ +# SchemaReopenQuestionReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**QuestionId** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaReopenQuestionReq + +`func NewSchemaReopenQuestionReq() *SchemaReopenQuestionReq` + +NewSchemaReopenQuestionReq instantiates a new SchemaReopenQuestionReq 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 + +### NewSchemaReopenQuestionReqWithDefaults + +`func NewSchemaReopenQuestionReqWithDefaults() *SchemaReopenQuestionReq` + +NewSchemaReopenQuestionReqWithDefaults instantiates a new SchemaReopenQuestionReq 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 + +### GetQuestionId + +`func (o *SchemaReopenQuestionReq) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaReopenQuestionReq) 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 *SchemaReopenQuestionReq) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaReopenQuestionReq) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaReportHandleReq.md b/docs/SchemaReportHandleReq.md new file mode 100644 index 0000000..292e74c --- /dev/null +++ b/docs/SchemaReportHandleReq.md @@ -0,0 +1,98 @@ +# SchemaReportHandleReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlaggedContent** | Pointer to **string** | | [optional] +**FlaggedType** | **int32** | | +**Id** | **string** | | + +## Methods + +### NewSchemaReportHandleReq + +`func NewSchemaReportHandleReq(flaggedType int32, id string, ) *SchemaReportHandleReq` + +NewSchemaReportHandleReq instantiates a new SchemaReportHandleReq 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 + +### NewSchemaReportHandleReqWithDefaults + +`func NewSchemaReportHandleReqWithDefaults() *SchemaReportHandleReq` + +NewSchemaReportHandleReqWithDefaults instantiates a new SchemaReportHandleReq 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 + +### GetFlaggedContent + +`func (o *SchemaReportHandleReq) GetFlaggedContent() string` + +GetFlaggedContent returns the FlaggedContent field if non-nil, zero value otherwise. + +### GetFlaggedContentOk + +`func (o *SchemaReportHandleReq) GetFlaggedContentOk() (*string, bool)` + +GetFlaggedContentOk returns a tuple with the FlaggedContent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlaggedContent + +`func (o *SchemaReportHandleReq) SetFlaggedContent(v string)` + +SetFlaggedContent sets FlaggedContent field to given value. + +### HasFlaggedContent + +`func (o *SchemaReportHandleReq) HasFlaggedContent() bool` + +HasFlaggedContent returns a boolean if a field has been set. + +### GetFlaggedType + +`func (o *SchemaReportHandleReq) GetFlaggedType() int32` + +GetFlaggedType returns the FlaggedType field if non-nil, zero value otherwise. + +### GetFlaggedTypeOk + +`func (o *SchemaReportHandleReq) GetFlaggedTypeOk() (*int32, bool)` + +GetFlaggedTypeOk returns a tuple with the FlaggedType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFlaggedType + +`func (o *SchemaReportHandleReq) SetFlaggedType(v int32)` + +SetFlaggedType sets FlaggedType field to given value. + + +### GetId + +`func (o *SchemaReportHandleReq) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaReportHandleReq) 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 *SchemaReportHandleReq) SetId(v string)` + +SetId sets Id 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/SchemaRevisionAuditReq.md b/docs/SchemaRevisionAuditReq.md new file mode 100644 index 0000000..6c51dd9 --- /dev/null +++ b/docs/SchemaRevisionAuditReq.md @@ -0,0 +1,72 @@ +# SchemaRevisionAuditReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | object id | +**Operation** | **string** | approve or reject | + +## Methods + +### NewSchemaRevisionAuditReq + +`func NewSchemaRevisionAuditReq(id string, operation string, ) *SchemaRevisionAuditReq` + +NewSchemaRevisionAuditReq instantiates a new SchemaRevisionAuditReq 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 + +### NewSchemaRevisionAuditReqWithDefaults + +`func NewSchemaRevisionAuditReqWithDefaults() *SchemaRevisionAuditReq` + +NewSchemaRevisionAuditReqWithDefaults instantiates a new SchemaRevisionAuditReq 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 + +### GetId + +`func (o *SchemaRevisionAuditReq) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaRevisionAuditReq) 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 *SchemaRevisionAuditReq) SetId(v string)` + +SetId sets Id field to given value. + + +### GetOperation + +`func (o *SchemaRevisionAuditReq) GetOperation() string` + +GetOperation returns the Operation field if non-nil, zero value otherwise. + +### GetOperationOk + +`func (o *SchemaRevisionAuditReq) GetOperationOk() (*string, bool)` + +GetOperationOk returns a tuple with the Operation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperation + +`func (o *SchemaRevisionAuditReq) SetOperation(v string)` + +SetOperation sets Operation 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/SchemaSearchListResp.md b/docs/SchemaSearchListResp.md new file mode 100644 index 0000000..fef5d3f --- /dev/null +++ b/docs/SchemaSearchListResp.md @@ -0,0 +1,108 @@ +# SchemaSearchListResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**Extra** | Pointer to **map[string]interface{}** | extra fields | [optional] +**List** | Pointer to [**[]SchemaSearchResp**](SchemaSearchResp.md) | search response | [optional] + +## Methods + +### NewSchemaSearchListResp + +`func NewSchemaSearchListResp() *SchemaSearchListResp` + +NewSchemaSearchListResp instantiates a new SchemaSearchListResp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaSearchListRespWithDefaults + +`func NewSchemaSearchListRespWithDefaults() *SchemaSearchListResp` + +NewSchemaSearchListRespWithDefaults instantiates a new SchemaSearchListResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *SchemaSearchListResp) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *SchemaSearchListResp) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *SchemaSearchListResp) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *SchemaSearchListResp) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetExtra + +`func (o *SchemaSearchListResp) GetExtra() map[string]interface{}` + +GetExtra returns the Extra field if non-nil, zero value otherwise. + +### GetExtraOk + +`func (o *SchemaSearchListResp) GetExtraOk() (*map[string]interface{}, bool)` + +GetExtraOk returns a tuple with the Extra field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtra + +`func (o *SchemaSearchListResp) SetExtra(v map[string]interface{})` + +SetExtra sets Extra field to given value. + +### HasExtra + +`func (o *SchemaSearchListResp) HasExtra() bool` + +HasExtra returns a boolean if a field has been set. + +### GetList + +`func (o *SchemaSearchListResp) GetList() []SchemaSearchResp` + +GetList returns the List field if non-nil, zero value otherwise. + +### GetListOk + +`func (o *SchemaSearchListResp) GetListOk() (*[]SchemaSearchResp, bool)` + +GetListOk returns a tuple with the List field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetList + +`func (o *SchemaSearchListResp) SetList(v []SchemaSearchResp)` + +SetList sets List field to given value. + +### HasList + +`func (o *SchemaSearchListResp) HasList() bool` + +HasList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaSearchObject.md b/docs/SchemaSearchObject.md new file mode 100644 index 0000000..3242522 --- /dev/null +++ b/docs/SchemaSearchObject.md @@ -0,0 +1,316 @@ +# SchemaSearchObject + +## 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 [**SchemaUserBasicInfo**](SchemaUserBasicInfo.md) | | [optional] +**VoteCount** | Pointer to **int32** | | [optional] + +## Methods + +### NewSchemaSearchObject + +`func NewSchemaSearchObject() *SchemaSearchObject` + +NewSchemaSearchObject instantiates a new SchemaSearchObject 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 + +### NewSchemaSearchObjectWithDefaults + +`func NewSchemaSearchObjectWithDefaults() *SchemaSearchObject` + +NewSchemaSearchObjectWithDefaults instantiates a new SchemaSearchObject 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 *SchemaSearchObject) GetAccepted() bool` + +GetAccepted returns the Accepted field if non-nil, zero value otherwise. + +### GetAcceptedOk + +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetAccepted(v bool)` + +SetAccepted sets Accepted field to given value. + +### HasAccepted + +`func (o *SchemaSearchObject) HasAccepted() bool` + +HasAccepted returns a boolean if a field has been set. + +### GetAnswerCount + +`func (o *SchemaSearchObject) GetAnswerCount() int32` + +GetAnswerCount returns the AnswerCount field if non-nil, zero value otherwise. + +### GetAnswerCountOk + +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetAnswerCount(v int32)` + +SetAnswerCount sets AnswerCount field to given value. + +### HasAnswerCount + +`func (o *SchemaSearchObject) HasAnswerCount() bool` + +HasAnswerCount returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *SchemaSearchObject) GetCreatedAt() int32` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetCreatedAt(v int32)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *SchemaSearchObject) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetExcerpt + +`func (o *SchemaSearchObject) GetExcerpt() string` + +GetExcerpt returns the Excerpt field if non-nil, zero value otherwise. + +### GetExcerptOk + +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetExcerpt(v string)` + +SetExcerpt sets Excerpt field to given value. + +### HasExcerpt + +`func (o *SchemaSearchObject) HasExcerpt() bool` + +HasExcerpt returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaSearchObject) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaSearchObject) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetQuestionId + +`func (o *SchemaSearchObject) GetQuestionId() string` + +GetQuestionId returns the QuestionId field if non-nil, zero value otherwise. + +### GetQuestionIdOk + +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetQuestionId(v string)` + +SetQuestionId sets QuestionId field to given value. + +### HasQuestionId + +`func (o *SchemaSearchObject) HasQuestionId() bool` + +HasQuestionId returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaSearchObject) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaSearchObject) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTags + +`func (o *SchemaSearchObject) GetTags() []SchemaTagResp` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetTags(v []SchemaTagResp)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SchemaSearchObject) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaSearchObject) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaSearchObject) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetUserInfo + +`func (o *SchemaSearchObject) GetUserInfo() SchemaUserBasicInfo` + +GetUserInfo returns the UserInfo field if non-nil, zero value otherwise. + +### GetUserInfoOk + +`func (o *SchemaSearchObject) GetUserInfoOk() (*SchemaUserBasicInfo, 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)` + +SetUserInfo sets UserInfo field to given value. + +### HasUserInfo + +`func (o *SchemaSearchObject) HasUserInfo() bool` + +HasUserInfo returns a boolean if a field has been set. + +### GetVoteCount + +`func (o *SchemaSearchObject) GetVoteCount() int32` + +GetVoteCount returns the VoteCount field if non-nil, zero value otherwise. + +### GetVoteCountOk + +`func (o *SchemaSearchObject) 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 *SchemaSearchObject) SetVoteCount(v int32)` + +SetVoteCount sets VoteCount field to given value. + +### HasVoteCount + +`func (o *SchemaSearchObject) 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/SchemaSearchResp.md b/docs/SchemaSearchResp.md new file mode 100644 index 0000000..81e1f42 --- /dev/null +++ b/docs/SchemaSearchResp.md @@ -0,0 +1,82 @@ +# SchemaSearchResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Object** | Pointer to [**SchemaSearchObject**](SchemaSearchObject.md) | | [optional] +**ObjectType** | Pointer to **string** | object_type | [optional] + +## Methods + +### NewSchemaSearchResp + +`func NewSchemaSearchResp() *SchemaSearchResp` + +NewSchemaSearchResp instantiates a new SchemaSearchResp 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 + +### NewSchemaSearchRespWithDefaults + +`func NewSchemaSearchRespWithDefaults() *SchemaSearchResp` + +NewSchemaSearchRespWithDefaults instantiates a new SchemaSearchResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObject + +`func (o *SchemaSearchResp) GetObject() SchemaSearchObject` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *SchemaSearchResp) GetObjectOk() (*SchemaSearchObject, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *SchemaSearchResp) SetObject(v SchemaSearchObject)` + +SetObject sets Object field to given value. + +### HasObject + +`func (o *SchemaSearchResp) HasObject() bool` + +HasObject returns a boolean if a field has been set. + +### GetObjectType + +`func (o *SchemaSearchResp) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SchemaSearchResp) 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 *SchemaSearchResp) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *SchemaSearchResp) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaSiteBrandingReq.md b/docs/SchemaSiteBrandingReq.md new file mode 100644 index 0000000..7639a00 --- /dev/null +++ b/docs/SchemaSiteBrandingReq.md @@ -0,0 +1,134 @@ +# SchemaSiteBrandingReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Favicon** | Pointer to **string** | | [optional] +**Logo** | Pointer to **string** | | [optional] +**MobileLogo** | Pointer to **string** | | [optional] +**SquareIcon** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaSiteBrandingReq + +`func NewSchemaSiteBrandingReq() *SchemaSiteBrandingReq` + +NewSchemaSiteBrandingReq instantiates a new SchemaSiteBrandingReq 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 + +### NewSchemaSiteBrandingReqWithDefaults + +`func NewSchemaSiteBrandingReqWithDefaults() *SchemaSiteBrandingReq` + +NewSchemaSiteBrandingReqWithDefaults instantiates a new SchemaSiteBrandingReq 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 + +### GetFavicon + +`func (o *SchemaSiteBrandingReq) GetFavicon() string` + +GetFavicon returns the Favicon field if non-nil, zero value otherwise. + +### GetFaviconOk + +`func (o *SchemaSiteBrandingReq) GetFaviconOk() (*string, bool)` + +GetFaviconOk returns a tuple with the Favicon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavicon + +`func (o *SchemaSiteBrandingReq) SetFavicon(v string)` + +SetFavicon sets Favicon field to given value. + +### HasFavicon + +`func (o *SchemaSiteBrandingReq) HasFavicon() bool` + +HasFavicon returns a boolean if a field has been set. + +### GetLogo + +`func (o *SchemaSiteBrandingReq) GetLogo() string` + +GetLogo returns the Logo field if non-nil, zero value otherwise. + +### GetLogoOk + +`func (o *SchemaSiteBrandingReq) GetLogoOk() (*string, bool)` + +GetLogoOk returns a tuple with the Logo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogo + +`func (o *SchemaSiteBrandingReq) SetLogo(v string)` + +SetLogo sets Logo field to given value. + +### HasLogo + +`func (o *SchemaSiteBrandingReq) HasLogo() bool` + +HasLogo returns a boolean if a field has been set. + +### GetMobileLogo + +`func (o *SchemaSiteBrandingReq) GetMobileLogo() string` + +GetMobileLogo returns the MobileLogo field if non-nil, zero value otherwise. + +### GetMobileLogoOk + +`func (o *SchemaSiteBrandingReq) GetMobileLogoOk() (*string, bool)` + +GetMobileLogoOk returns a tuple with the MobileLogo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMobileLogo + +`func (o *SchemaSiteBrandingReq) SetMobileLogo(v string)` + +SetMobileLogo sets MobileLogo field to given value. + +### HasMobileLogo + +`func (o *SchemaSiteBrandingReq) HasMobileLogo() bool` + +HasMobileLogo returns a boolean if a field has been set. + +### GetSquareIcon + +`func (o *SchemaSiteBrandingReq) GetSquareIcon() string` + +GetSquareIcon returns the SquareIcon field if non-nil, zero value otherwise. + +### GetSquareIconOk + +`func (o *SchemaSiteBrandingReq) GetSquareIconOk() (*string, bool)` + +GetSquareIconOk returns a tuple with the SquareIcon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSquareIcon + +`func (o *SchemaSiteBrandingReq) SetSquareIcon(v string)` + +SetSquareIcon sets SquareIcon field to given value. + +### HasSquareIcon + +`func (o *SchemaSiteBrandingReq) HasSquareIcon() bool` + +HasSquareIcon 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/SchemaSiteBrandingResp.md b/docs/SchemaSiteBrandingResp.md new file mode 100644 index 0000000..9bf240d --- /dev/null +++ b/docs/SchemaSiteBrandingResp.md @@ -0,0 +1,134 @@ +# SchemaSiteBrandingResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Favicon** | Pointer to **string** | | [optional] +**Logo** | Pointer to **string** | | [optional] +**MobileLogo** | Pointer to **string** | | [optional] +**SquareIcon** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaSiteBrandingResp + +`func NewSchemaSiteBrandingResp() *SchemaSiteBrandingResp` + +NewSchemaSiteBrandingResp instantiates a new SchemaSiteBrandingResp 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 + +### NewSchemaSiteBrandingRespWithDefaults + +`func NewSchemaSiteBrandingRespWithDefaults() *SchemaSiteBrandingResp` + +NewSchemaSiteBrandingRespWithDefaults instantiates a new SchemaSiteBrandingResp 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 + +### GetFavicon + +`func (o *SchemaSiteBrandingResp) GetFavicon() string` + +GetFavicon returns the Favicon field if non-nil, zero value otherwise. + +### GetFaviconOk + +`func (o *SchemaSiteBrandingResp) GetFaviconOk() (*string, bool)` + +GetFaviconOk returns a tuple with the Favicon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFavicon + +`func (o *SchemaSiteBrandingResp) SetFavicon(v string)` + +SetFavicon sets Favicon field to given value. + +### HasFavicon + +`func (o *SchemaSiteBrandingResp) HasFavicon() bool` + +HasFavicon returns a boolean if a field has been set. + +### GetLogo + +`func (o *SchemaSiteBrandingResp) GetLogo() string` + +GetLogo returns the Logo field if non-nil, zero value otherwise. + +### GetLogoOk + +`func (o *SchemaSiteBrandingResp) GetLogoOk() (*string, bool)` + +GetLogoOk returns a tuple with the Logo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogo + +`func (o *SchemaSiteBrandingResp) SetLogo(v string)` + +SetLogo sets Logo field to given value. + +### HasLogo + +`func (o *SchemaSiteBrandingResp) HasLogo() bool` + +HasLogo returns a boolean if a field has been set. + +### GetMobileLogo + +`func (o *SchemaSiteBrandingResp) GetMobileLogo() string` + +GetMobileLogo returns the MobileLogo field if non-nil, zero value otherwise. + +### GetMobileLogoOk + +`func (o *SchemaSiteBrandingResp) GetMobileLogoOk() (*string, bool)` + +GetMobileLogoOk returns a tuple with the MobileLogo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMobileLogo + +`func (o *SchemaSiteBrandingResp) SetMobileLogo(v string)` + +SetMobileLogo sets MobileLogo field to given value. + +### HasMobileLogo + +`func (o *SchemaSiteBrandingResp) HasMobileLogo() bool` + +HasMobileLogo returns a boolean if a field has been set. + +### GetSquareIcon + +`func (o *SchemaSiteBrandingResp) GetSquareIcon() string` + +GetSquareIcon returns the SquareIcon field if non-nil, zero value otherwise. + +### GetSquareIconOk + +`func (o *SchemaSiteBrandingResp) GetSquareIconOk() (*string, bool)` + +GetSquareIconOk returns a tuple with the SquareIcon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSquareIcon + +`func (o *SchemaSiteBrandingResp) SetSquareIcon(v string)` + +SetSquareIcon sets SquareIcon field to given value. + +### HasSquareIcon + +`func (o *SchemaSiteBrandingResp) HasSquareIcon() bool` + +HasSquareIcon 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/SchemaSiteCustomCssHTMLReq.md b/docs/SchemaSiteCustomCssHTMLReq.md new file mode 100644 index 0000000..fd0d584 --- /dev/null +++ b/docs/SchemaSiteCustomCssHTMLReq.md @@ -0,0 +1,134 @@ +# SchemaSiteCustomCssHTMLReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomCss** | Pointer to **string** | | [optional] +**CustomFooter** | Pointer to **string** | | [optional] +**CustomHead** | Pointer to **string** | | [optional] +**CustomHeader** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaSiteCustomCssHTMLReq + +`func NewSchemaSiteCustomCssHTMLReq() *SchemaSiteCustomCssHTMLReq` + +NewSchemaSiteCustomCssHTMLReq instantiates a new SchemaSiteCustomCssHTMLReq 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 + +### NewSchemaSiteCustomCssHTMLReqWithDefaults + +`func NewSchemaSiteCustomCssHTMLReqWithDefaults() *SchemaSiteCustomCssHTMLReq` + +NewSchemaSiteCustomCssHTMLReqWithDefaults instantiates a new SchemaSiteCustomCssHTMLReq 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 + +### GetCustomCss + +`func (o *SchemaSiteCustomCssHTMLReq) GetCustomCss() string` + +GetCustomCss returns the CustomCss field if non-nil, zero value otherwise. + +### GetCustomCssOk + +`func (o *SchemaSiteCustomCssHTMLReq) GetCustomCssOk() (*string, bool)` + +GetCustomCssOk returns a tuple with the CustomCss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomCss + +`func (o *SchemaSiteCustomCssHTMLReq) SetCustomCss(v string)` + +SetCustomCss sets CustomCss field to given value. + +### HasCustomCss + +`func (o *SchemaSiteCustomCssHTMLReq) HasCustomCss() bool` + +HasCustomCss returns a boolean if a field has been set. + +### GetCustomFooter + +`func (o *SchemaSiteCustomCssHTMLReq) GetCustomFooter() string` + +GetCustomFooter returns the CustomFooter field if non-nil, zero value otherwise. + +### GetCustomFooterOk + +`func (o *SchemaSiteCustomCssHTMLReq) GetCustomFooterOk() (*string, bool)` + +GetCustomFooterOk returns a tuple with the CustomFooter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFooter + +`func (o *SchemaSiteCustomCssHTMLReq) SetCustomFooter(v string)` + +SetCustomFooter sets CustomFooter field to given value. + +### HasCustomFooter + +`func (o *SchemaSiteCustomCssHTMLReq) HasCustomFooter() bool` + +HasCustomFooter returns a boolean if a field has been set. + +### GetCustomHead + +`func (o *SchemaSiteCustomCssHTMLReq) GetCustomHead() string` + +GetCustomHead returns the CustomHead field if non-nil, zero value otherwise. + +### GetCustomHeadOk + +`func (o *SchemaSiteCustomCssHTMLReq) GetCustomHeadOk() (*string, bool)` + +GetCustomHeadOk returns a tuple with the CustomHead field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomHead + +`func (o *SchemaSiteCustomCssHTMLReq) SetCustomHead(v string)` + +SetCustomHead sets CustomHead field to given value. + +### HasCustomHead + +`func (o *SchemaSiteCustomCssHTMLReq) HasCustomHead() bool` + +HasCustomHead returns a boolean if a field has been set. + +### GetCustomHeader + +`func (o *SchemaSiteCustomCssHTMLReq) GetCustomHeader() string` + +GetCustomHeader returns the CustomHeader field if non-nil, zero value otherwise. + +### GetCustomHeaderOk + +`func (o *SchemaSiteCustomCssHTMLReq) GetCustomHeaderOk() (*string, bool)` + +GetCustomHeaderOk returns a tuple with the CustomHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomHeader + +`func (o *SchemaSiteCustomCssHTMLReq) SetCustomHeader(v string)` + +SetCustomHeader sets CustomHeader field to given value. + +### HasCustomHeader + +`func (o *SchemaSiteCustomCssHTMLReq) HasCustomHeader() bool` + +HasCustomHeader 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 new file mode 100644 index 0000000..cf747e8 --- /dev/null +++ b/docs/SchemaSiteCustomCssHTMLResp.md @@ -0,0 +1,134 @@ +# SchemaSiteCustomCssHTMLResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomCss** | Pointer to **string** | | [optional] +**CustomFooter** | Pointer to **string** | | [optional] +**CustomHead** | Pointer to **string** | | [optional] +**CustomHeader** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaSiteCustomCssHTMLResp + +`func NewSchemaSiteCustomCssHTMLResp() *SchemaSiteCustomCssHTMLResp` + +NewSchemaSiteCustomCssHTMLResp instantiates a new SchemaSiteCustomCssHTMLResp 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 + +### NewSchemaSiteCustomCssHTMLRespWithDefaults + +`func NewSchemaSiteCustomCssHTMLRespWithDefaults() *SchemaSiteCustomCssHTMLResp` + +NewSchemaSiteCustomCssHTMLRespWithDefaults instantiates a new SchemaSiteCustomCssHTMLResp 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 + +### GetCustomCss + +`func (o *SchemaSiteCustomCssHTMLResp) GetCustomCss() string` + +GetCustomCss returns the CustomCss field if non-nil, zero value otherwise. + +### GetCustomCssOk + +`func (o *SchemaSiteCustomCssHTMLResp) GetCustomCssOk() (*string, bool)` + +GetCustomCssOk returns a tuple with the CustomCss field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomCss + +`func (o *SchemaSiteCustomCssHTMLResp) SetCustomCss(v string)` + +SetCustomCss sets CustomCss field to given value. + +### HasCustomCss + +`func (o *SchemaSiteCustomCssHTMLResp) HasCustomCss() bool` + +HasCustomCss returns a boolean if a field has been set. + +### GetCustomFooter + +`func (o *SchemaSiteCustomCssHTMLResp) GetCustomFooter() string` + +GetCustomFooter returns the CustomFooter field if non-nil, zero value otherwise. + +### GetCustomFooterOk + +`func (o *SchemaSiteCustomCssHTMLResp) GetCustomFooterOk() (*string, bool)` + +GetCustomFooterOk returns a tuple with the CustomFooter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFooter + +`func (o *SchemaSiteCustomCssHTMLResp) SetCustomFooter(v string)` + +SetCustomFooter sets CustomFooter field to given value. + +### HasCustomFooter + +`func (o *SchemaSiteCustomCssHTMLResp) HasCustomFooter() bool` + +HasCustomFooter returns a boolean if a field has been set. + +### GetCustomHead + +`func (o *SchemaSiteCustomCssHTMLResp) GetCustomHead() string` + +GetCustomHead returns the CustomHead field if non-nil, zero value otherwise. + +### GetCustomHeadOk + +`func (o *SchemaSiteCustomCssHTMLResp) GetCustomHeadOk() (*string, bool)` + +GetCustomHeadOk returns a tuple with the CustomHead field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomHead + +`func (o *SchemaSiteCustomCssHTMLResp) SetCustomHead(v string)` + +SetCustomHead sets CustomHead field to given value. + +### HasCustomHead + +`func (o *SchemaSiteCustomCssHTMLResp) HasCustomHead() bool` + +HasCustomHead returns a boolean if a field has been set. + +### GetCustomHeader + +`func (o *SchemaSiteCustomCssHTMLResp) GetCustomHeader() string` + +GetCustomHeader returns the CustomHeader field if non-nil, zero value otherwise. + +### GetCustomHeaderOk + +`func (o *SchemaSiteCustomCssHTMLResp) GetCustomHeaderOk() (*string, bool)` + +GetCustomHeaderOk returns a tuple with the CustomHeader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomHeader + +`func (o *SchemaSiteCustomCssHTMLResp) SetCustomHeader(v string)` + +SetCustomHeader sets CustomHeader field to given value. + +### HasCustomHeader + +`func (o *SchemaSiteCustomCssHTMLResp) HasCustomHeader() bool` + +HasCustomHeader 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/SchemaSiteGeneralReq.md b/docs/SchemaSiteGeneralReq.md new file mode 100644 index 0000000..91cade1 --- /dev/null +++ b/docs/SchemaSiteGeneralReq.md @@ -0,0 +1,145 @@ +# SchemaSiteGeneralReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContactEmail** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Name** | **string** | | +**ShortDescription** | Pointer to **string** | | [optional] +**SiteUrl** | **string** | | + +## Methods + +### NewSchemaSiteGeneralReq + +`func NewSchemaSiteGeneralReq(contactEmail string, name string, siteUrl string, ) *SchemaSiteGeneralReq` + +NewSchemaSiteGeneralReq instantiates a new SchemaSiteGeneralReq 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 + +### NewSchemaSiteGeneralReqWithDefaults + +`func NewSchemaSiteGeneralReqWithDefaults() *SchemaSiteGeneralReq` + +NewSchemaSiteGeneralReqWithDefaults instantiates a new SchemaSiteGeneralReq 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 + +### GetContactEmail + +`func (o *SchemaSiteGeneralReq) GetContactEmail() string` + +GetContactEmail returns the ContactEmail field if non-nil, zero value otherwise. + +### GetContactEmailOk + +`func (o *SchemaSiteGeneralReq) GetContactEmailOk() (*string, bool)` + +GetContactEmailOk returns a tuple with the ContactEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContactEmail + +`func (o *SchemaSiteGeneralReq) SetContactEmail(v string)` + +SetContactEmail sets ContactEmail field to given value. + + +### GetDescription + +`func (o *SchemaSiteGeneralReq) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SchemaSiteGeneralReq) 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 *SchemaSiteGeneralReq) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SchemaSiteGeneralReq) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *SchemaSiteGeneralReq) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaSiteGeneralReq) 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 *SchemaSiteGeneralReq) SetName(v string)` + +SetName sets Name field to given value. + + +### GetShortDescription + +`func (o *SchemaSiteGeneralReq) GetShortDescription() string` + +GetShortDescription returns the ShortDescription field if non-nil, zero value otherwise. + +### GetShortDescriptionOk + +`func (o *SchemaSiteGeneralReq) GetShortDescriptionOk() (*string, bool)` + +GetShortDescriptionOk returns a tuple with the ShortDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortDescription + +`func (o *SchemaSiteGeneralReq) SetShortDescription(v string)` + +SetShortDescription sets ShortDescription field to given value. + +### HasShortDescription + +`func (o *SchemaSiteGeneralReq) HasShortDescription() bool` + +HasShortDescription returns a boolean if a field has been set. + +### GetSiteUrl + +`func (o *SchemaSiteGeneralReq) GetSiteUrl() string` + +GetSiteUrl returns the SiteUrl field if non-nil, zero value otherwise. + +### GetSiteUrlOk + +`func (o *SchemaSiteGeneralReq) GetSiteUrlOk() (*string, bool)` + +GetSiteUrlOk returns a tuple with the SiteUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteUrl + +`func (o *SchemaSiteGeneralReq) SetSiteUrl(v string)` + +SetSiteUrl sets SiteUrl 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/SchemaSiteGeneralResp.md b/docs/SchemaSiteGeneralResp.md new file mode 100644 index 0000000..e58cb23 --- /dev/null +++ b/docs/SchemaSiteGeneralResp.md @@ -0,0 +1,145 @@ +# SchemaSiteGeneralResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContactEmail** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Name** | **string** | | +**ShortDescription** | Pointer to **string** | | [optional] +**SiteUrl** | **string** | | + +## Methods + +### NewSchemaSiteGeneralResp + +`func NewSchemaSiteGeneralResp(contactEmail string, name string, siteUrl string, ) *SchemaSiteGeneralResp` + +NewSchemaSiteGeneralResp instantiates a new SchemaSiteGeneralResp 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 + +### NewSchemaSiteGeneralRespWithDefaults + +`func NewSchemaSiteGeneralRespWithDefaults() *SchemaSiteGeneralResp` + +NewSchemaSiteGeneralRespWithDefaults instantiates a new SchemaSiteGeneralResp 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 + +### GetContactEmail + +`func (o *SchemaSiteGeneralResp) GetContactEmail() string` + +GetContactEmail returns the ContactEmail field if non-nil, zero value otherwise. + +### GetContactEmailOk + +`func (o *SchemaSiteGeneralResp) GetContactEmailOk() (*string, bool)` + +GetContactEmailOk returns a tuple with the ContactEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContactEmail + +`func (o *SchemaSiteGeneralResp) SetContactEmail(v string)` + +SetContactEmail sets ContactEmail field to given value. + + +### GetDescription + +`func (o *SchemaSiteGeneralResp) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *SchemaSiteGeneralResp) 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 *SchemaSiteGeneralResp) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *SchemaSiteGeneralResp) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *SchemaSiteGeneralResp) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaSiteGeneralResp) 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 *SchemaSiteGeneralResp) SetName(v string)` + +SetName sets Name field to given value. + + +### GetShortDescription + +`func (o *SchemaSiteGeneralResp) GetShortDescription() string` + +GetShortDescription returns the ShortDescription field if non-nil, zero value otherwise. + +### GetShortDescriptionOk + +`func (o *SchemaSiteGeneralResp) GetShortDescriptionOk() (*string, bool)` + +GetShortDescriptionOk returns a tuple with the ShortDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShortDescription + +`func (o *SchemaSiteGeneralResp) SetShortDescription(v string)` + +SetShortDescription sets ShortDescription field to given value. + +### HasShortDescription + +`func (o *SchemaSiteGeneralResp) HasShortDescription() bool` + +HasShortDescription returns a boolean if a field has been set. + +### GetSiteUrl + +`func (o *SchemaSiteGeneralResp) GetSiteUrl() string` + +GetSiteUrl returns the SiteUrl field if non-nil, zero value otherwise. + +### GetSiteUrlOk + +`func (o *SchemaSiteGeneralResp) GetSiteUrlOk() (*string, bool)` + +GetSiteUrlOk returns a tuple with the SiteUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteUrl + +`func (o *SchemaSiteGeneralResp) SetSiteUrl(v string)` + +SetSiteUrl sets SiteUrl 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/SchemaSiteInfoResp.md b/docs/SchemaSiteInfoResp.md new file mode 100644 index 0000000..9184240 --- /dev/null +++ b/docs/SchemaSiteInfoResp.md @@ -0,0 +1,264 @@ +# SchemaSiteInfoResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Branding** | Pointer to [**SchemaSiteBrandingResp**](SchemaSiteBrandingResp.md) | | [optional] +**CustomCssHtml** | Pointer to [**SchemaSiteCustomCssHTMLResp**](SchemaSiteCustomCssHTMLResp.md) | | [optional] +**General** | Pointer to [**SchemaSiteGeneralResp**](SchemaSiteGeneralResp.md) | | [optional] +**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] +**Theme** | Pointer to [**SchemaSiteThemeResp**](SchemaSiteThemeResp.md) | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaSiteInfoResp + +`func NewSchemaSiteInfoResp() *SchemaSiteInfoResp` + +NewSchemaSiteInfoResp instantiates a new SchemaSiteInfoResp 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 + +### NewSchemaSiteInfoRespWithDefaults + +`func NewSchemaSiteInfoRespWithDefaults() *SchemaSiteInfoResp` + +NewSchemaSiteInfoRespWithDefaults instantiates a new SchemaSiteInfoResp 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 + +### GetBranding + +`func (o *SchemaSiteInfoResp) GetBranding() SchemaSiteBrandingResp` + +GetBranding returns the Branding field if non-nil, zero value otherwise. + +### GetBrandingOk + +`func (o *SchemaSiteInfoResp) GetBrandingOk() (*SchemaSiteBrandingResp, bool)` + +GetBrandingOk returns a tuple with the Branding field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranding + +`func (o *SchemaSiteInfoResp) SetBranding(v SchemaSiteBrandingResp)` + +SetBranding sets Branding field to given value. + +### HasBranding + +`func (o *SchemaSiteInfoResp) HasBranding() bool` + +HasBranding returns a boolean if a field has been set. + +### GetCustomCssHtml + +`func (o *SchemaSiteInfoResp) GetCustomCssHtml() SchemaSiteCustomCssHTMLResp` + +GetCustomCssHtml returns the CustomCssHtml field if non-nil, zero value otherwise. + +### GetCustomCssHtmlOk + +`func (o *SchemaSiteInfoResp) GetCustomCssHtmlOk() (*SchemaSiteCustomCssHTMLResp, bool)` + +GetCustomCssHtmlOk returns a tuple with the CustomCssHtml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomCssHtml + +`func (o *SchemaSiteInfoResp) SetCustomCssHtml(v SchemaSiteCustomCssHTMLResp)` + +SetCustomCssHtml sets CustomCssHtml field to given value. + +### HasCustomCssHtml + +`func (o *SchemaSiteInfoResp) HasCustomCssHtml() bool` + +HasCustomCssHtml returns a boolean if a field has been set. + +### GetGeneral + +`func (o *SchemaSiteInfoResp) GetGeneral() SchemaSiteGeneralResp` + +GetGeneral returns the General field if non-nil, zero value otherwise. + +### GetGeneralOk + +`func (o *SchemaSiteInfoResp) GetGeneralOk() (*SchemaSiteGeneralResp, bool)` + +GetGeneralOk returns a tuple with the General field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeneral + +`func (o *SchemaSiteInfoResp) SetGeneral(v SchemaSiteGeneralResp)` + +SetGeneral sets General field to given value. + +### HasGeneral + +`func (o *SchemaSiteInfoResp) HasGeneral() bool` + +HasGeneral returns a boolean if a field has been set. + +### GetInterface + +`func (o *SchemaSiteInfoResp) GetInterface() SchemaSiteInterfaceResp` + +GetInterface returns the Interface field if non-nil, zero value otherwise. + +### GetInterfaceOk + +`func (o *SchemaSiteInfoResp) GetInterfaceOk() (*SchemaSiteInterfaceResp, bool)` + +GetInterfaceOk returns a tuple with the Interface field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterface + +`func (o *SchemaSiteInfoResp) SetInterface(v SchemaSiteInterfaceResp)` + +SetInterface sets Interface field to given value. + +### HasInterface + +`func (o *SchemaSiteInfoResp) HasInterface() bool` + +HasInterface returns a boolean if a field has been set. + +### GetLogin + +`func (o *SchemaSiteInfoResp) GetLogin() SchemaSiteLoginResp` + +GetLogin returns the Login field if non-nil, zero value otherwise. + +### GetLoginOk + +`func (o *SchemaSiteInfoResp) GetLoginOk() (*SchemaSiteLoginResp, bool)` + +GetLoginOk returns a tuple with the Login field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogin + +`func (o *SchemaSiteInfoResp) SetLogin(v SchemaSiteLoginResp)` + +SetLogin sets Login field to given value. + +### HasLogin + +`func (o *SchemaSiteInfoResp) HasLogin() bool` + +HasLogin returns a boolean if a field has been set. + +### GetRevision + +`func (o *SchemaSiteInfoResp) GetRevision() string` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *SchemaSiteInfoResp) GetRevisionOk() (*string, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *SchemaSiteInfoResp) SetRevision(v string)` + +SetRevision sets Revision field to given value. + +### HasRevision + +`func (o *SchemaSiteInfoResp) HasRevision() bool` + +HasRevision returns a boolean if a field has been set. + +### GetSiteSeo + +`func (o *SchemaSiteInfoResp) GetSiteSeo() SchemaSiteSeoReq` + +GetSiteSeo returns the SiteSeo field if non-nil, zero value otherwise. + +### GetSiteSeoOk + +`func (o *SchemaSiteInfoResp) GetSiteSeoOk() (*SchemaSiteSeoReq, 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)` + +SetSiteSeo sets SiteSeo field to given value. + +### HasSiteSeo + +`func (o *SchemaSiteInfoResp) HasSiteSeo() bool` + +HasSiteSeo returns a boolean if a field has been set. + +### GetTheme + +`func (o *SchemaSiteInfoResp) GetTheme() SchemaSiteThemeResp` + +GetTheme returns the Theme field if non-nil, zero value otherwise. + +### GetThemeOk + +`func (o *SchemaSiteInfoResp) GetThemeOk() (*SchemaSiteThemeResp, bool)` + +GetThemeOk returns a tuple with the Theme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTheme + +`func (o *SchemaSiteInfoResp) SetTheme(v SchemaSiteThemeResp)` + +SetTheme sets Theme field to given value. + +### HasTheme + +`func (o *SchemaSiteInfoResp) HasTheme() bool` + +HasTheme returns a boolean if a field has been set. + +### GetVersion + +`func (o *SchemaSiteInfoResp) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *SchemaSiteInfoResp) 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 *SchemaSiteInfoResp) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *SchemaSiteInfoResp) 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/SchemaSiteInterfaceReq.md b/docs/SchemaSiteInterfaceReq.md new file mode 100644 index 0000000..1f5ad23 --- /dev/null +++ b/docs/SchemaSiteInterfaceReq.md @@ -0,0 +1,93 @@ +# SchemaSiteInterfaceReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultAvatar** | **string** | | +**Language** | **string** | | +**TimeZone** | **string** | | + +## Methods + +### NewSchemaSiteInterfaceReq + +`func NewSchemaSiteInterfaceReq(defaultAvatar string, language string, timeZone string, ) *SchemaSiteInterfaceReq` + +NewSchemaSiteInterfaceReq instantiates a new SchemaSiteInterfaceReq 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 + +### NewSchemaSiteInterfaceReqWithDefaults + +`func NewSchemaSiteInterfaceReqWithDefaults() *SchemaSiteInterfaceReq` + +NewSchemaSiteInterfaceReqWithDefaults instantiates a new SchemaSiteInterfaceReq 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 + +### 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` + +GetLanguage returns the Language field if non-nil, zero value otherwise. + +### GetLanguageOk + +`func (o *SchemaSiteInterfaceReq) 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 *SchemaSiteInterfaceReq) SetLanguage(v string)` + +SetLanguage sets Language field to given value. + + +### GetTimeZone + +`func (o *SchemaSiteInterfaceReq) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *SchemaSiteInterfaceReq) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *SchemaSiteInterfaceReq) SetTimeZone(v string)` + +SetTimeZone sets TimeZone 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/SchemaSiteInterfaceResp.md b/docs/SchemaSiteInterfaceResp.md new file mode 100644 index 0000000..719f005 --- /dev/null +++ b/docs/SchemaSiteInterfaceResp.md @@ -0,0 +1,93 @@ +# SchemaSiteInterfaceResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultAvatar** | **string** | | +**Language** | **string** | | +**TimeZone** | **string** | | + +## Methods + +### NewSchemaSiteInterfaceResp + +`func NewSchemaSiteInterfaceResp(defaultAvatar string, language string, timeZone string, ) *SchemaSiteInterfaceResp` + +NewSchemaSiteInterfaceResp instantiates a new SchemaSiteInterfaceResp 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 + +### NewSchemaSiteInterfaceRespWithDefaults + +`func NewSchemaSiteInterfaceRespWithDefaults() *SchemaSiteInterfaceResp` + +NewSchemaSiteInterfaceRespWithDefaults instantiates a new SchemaSiteInterfaceResp 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 + +### 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` + +GetLanguage returns the Language field if non-nil, zero value otherwise. + +### GetLanguageOk + +`func (o *SchemaSiteInterfaceResp) 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 *SchemaSiteInterfaceResp) SetLanguage(v string)` + +SetLanguage sets Language field to given value. + + +### GetTimeZone + +`func (o *SchemaSiteInterfaceResp) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *SchemaSiteInterfaceResp) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *SchemaSiteInterfaceResp) SetTimeZone(v string)` + +SetTimeZone sets TimeZone 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/SchemaSiteLegalReq.md b/docs/SchemaSiteLegalReq.md new file mode 100644 index 0000000..49c5599 --- /dev/null +++ b/docs/SchemaSiteLegalReq.md @@ -0,0 +1,134 @@ +# SchemaSiteLegalReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivacyPolicyOriginalText** | Pointer to **string** | | [optional] +**PrivacyPolicyParsedText** | Pointer to **string** | | [optional] +**TermsOfServiceOriginalText** | Pointer to **string** | | [optional] +**TermsOfServiceParsedText** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaSiteLegalReq + +`func NewSchemaSiteLegalReq() *SchemaSiteLegalReq` + +NewSchemaSiteLegalReq instantiates a new SchemaSiteLegalReq 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 + +### NewSchemaSiteLegalReqWithDefaults + +`func NewSchemaSiteLegalReqWithDefaults() *SchemaSiteLegalReq` + +NewSchemaSiteLegalReqWithDefaults instantiates a new SchemaSiteLegalReq 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 + +### GetPrivacyPolicyOriginalText + +`func (o *SchemaSiteLegalReq) GetPrivacyPolicyOriginalText() string` + +GetPrivacyPolicyOriginalText returns the PrivacyPolicyOriginalText field if non-nil, zero value otherwise. + +### GetPrivacyPolicyOriginalTextOk + +`func (o *SchemaSiteLegalReq) GetPrivacyPolicyOriginalTextOk() (*string, bool)` + +GetPrivacyPolicyOriginalTextOk returns a tuple with the PrivacyPolicyOriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivacyPolicyOriginalText + +`func (o *SchemaSiteLegalReq) SetPrivacyPolicyOriginalText(v string)` + +SetPrivacyPolicyOriginalText sets PrivacyPolicyOriginalText field to given value. + +### HasPrivacyPolicyOriginalText + +`func (o *SchemaSiteLegalReq) HasPrivacyPolicyOriginalText() bool` + +HasPrivacyPolicyOriginalText returns a boolean if a field has been set. + +### GetPrivacyPolicyParsedText + +`func (o *SchemaSiteLegalReq) GetPrivacyPolicyParsedText() string` + +GetPrivacyPolicyParsedText returns the PrivacyPolicyParsedText field if non-nil, zero value otherwise. + +### GetPrivacyPolicyParsedTextOk + +`func (o *SchemaSiteLegalReq) GetPrivacyPolicyParsedTextOk() (*string, bool)` + +GetPrivacyPolicyParsedTextOk returns a tuple with the PrivacyPolicyParsedText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivacyPolicyParsedText + +`func (o *SchemaSiteLegalReq) SetPrivacyPolicyParsedText(v string)` + +SetPrivacyPolicyParsedText sets PrivacyPolicyParsedText field to given value. + +### HasPrivacyPolicyParsedText + +`func (o *SchemaSiteLegalReq) HasPrivacyPolicyParsedText() bool` + +HasPrivacyPolicyParsedText returns a boolean if a field has been set. + +### GetTermsOfServiceOriginalText + +`func (o *SchemaSiteLegalReq) GetTermsOfServiceOriginalText() string` + +GetTermsOfServiceOriginalText returns the TermsOfServiceOriginalText field if non-nil, zero value otherwise. + +### GetTermsOfServiceOriginalTextOk + +`func (o *SchemaSiteLegalReq) GetTermsOfServiceOriginalTextOk() (*string, bool)` + +GetTermsOfServiceOriginalTextOk returns a tuple with the TermsOfServiceOriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermsOfServiceOriginalText + +`func (o *SchemaSiteLegalReq) SetTermsOfServiceOriginalText(v string)` + +SetTermsOfServiceOriginalText sets TermsOfServiceOriginalText field to given value. + +### HasTermsOfServiceOriginalText + +`func (o *SchemaSiteLegalReq) HasTermsOfServiceOriginalText() bool` + +HasTermsOfServiceOriginalText returns a boolean if a field has been set. + +### GetTermsOfServiceParsedText + +`func (o *SchemaSiteLegalReq) GetTermsOfServiceParsedText() string` + +GetTermsOfServiceParsedText returns the TermsOfServiceParsedText field if non-nil, zero value otherwise. + +### GetTermsOfServiceParsedTextOk + +`func (o *SchemaSiteLegalReq) GetTermsOfServiceParsedTextOk() (*string, bool)` + +GetTermsOfServiceParsedTextOk returns a tuple with the TermsOfServiceParsedText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermsOfServiceParsedText + +`func (o *SchemaSiteLegalReq) SetTermsOfServiceParsedText(v string)` + +SetTermsOfServiceParsedText sets TermsOfServiceParsedText field to given value. + +### HasTermsOfServiceParsedText + +`func (o *SchemaSiteLegalReq) HasTermsOfServiceParsedText() bool` + +HasTermsOfServiceParsedText 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/SchemaSiteLegalResp.md b/docs/SchemaSiteLegalResp.md new file mode 100644 index 0000000..2db4527 --- /dev/null +++ b/docs/SchemaSiteLegalResp.md @@ -0,0 +1,134 @@ +# SchemaSiteLegalResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrivacyPolicyOriginalText** | Pointer to **string** | | [optional] +**PrivacyPolicyParsedText** | Pointer to **string** | | [optional] +**TermsOfServiceOriginalText** | Pointer to **string** | | [optional] +**TermsOfServiceParsedText** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaSiteLegalResp + +`func NewSchemaSiteLegalResp() *SchemaSiteLegalResp` + +NewSchemaSiteLegalResp instantiates a new SchemaSiteLegalResp 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 + +### NewSchemaSiteLegalRespWithDefaults + +`func NewSchemaSiteLegalRespWithDefaults() *SchemaSiteLegalResp` + +NewSchemaSiteLegalRespWithDefaults instantiates a new SchemaSiteLegalResp 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 + +### GetPrivacyPolicyOriginalText + +`func (o *SchemaSiteLegalResp) GetPrivacyPolicyOriginalText() string` + +GetPrivacyPolicyOriginalText returns the PrivacyPolicyOriginalText field if non-nil, zero value otherwise. + +### GetPrivacyPolicyOriginalTextOk + +`func (o *SchemaSiteLegalResp) GetPrivacyPolicyOriginalTextOk() (*string, bool)` + +GetPrivacyPolicyOriginalTextOk returns a tuple with the PrivacyPolicyOriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivacyPolicyOriginalText + +`func (o *SchemaSiteLegalResp) SetPrivacyPolicyOriginalText(v string)` + +SetPrivacyPolicyOriginalText sets PrivacyPolicyOriginalText field to given value. + +### HasPrivacyPolicyOriginalText + +`func (o *SchemaSiteLegalResp) HasPrivacyPolicyOriginalText() bool` + +HasPrivacyPolicyOriginalText returns a boolean if a field has been set. + +### GetPrivacyPolicyParsedText + +`func (o *SchemaSiteLegalResp) GetPrivacyPolicyParsedText() string` + +GetPrivacyPolicyParsedText returns the PrivacyPolicyParsedText field if non-nil, zero value otherwise. + +### GetPrivacyPolicyParsedTextOk + +`func (o *SchemaSiteLegalResp) GetPrivacyPolicyParsedTextOk() (*string, bool)` + +GetPrivacyPolicyParsedTextOk returns a tuple with the PrivacyPolicyParsedText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivacyPolicyParsedText + +`func (o *SchemaSiteLegalResp) SetPrivacyPolicyParsedText(v string)` + +SetPrivacyPolicyParsedText sets PrivacyPolicyParsedText field to given value. + +### HasPrivacyPolicyParsedText + +`func (o *SchemaSiteLegalResp) HasPrivacyPolicyParsedText() bool` + +HasPrivacyPolicyParsedText returns a boolean if a field has been set. + +### GetTermsOfServiceOriginalText + +`func (o *SchemaSiteLegalResp) GetTermsOfServiceOriginalText() string` + +GetTermsOfServiceOriginalText returns the TermsOfServiceOriginalText field if non-nil, zero value otherwise. + +### GetTermsOfServiceOriginalTextOk + +`func (o *SchemaSiteLegalResp) GetTermsOfServiceOriginalTextOk() (*string, bool)` + +GetTermsOfServiceOriginalTextOk returns a tuple with the TermsOfServiceOriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermsOfServiceOriginalText + +`func (o *SchemaSiteLegalResp) SetTermsOfServiceOriginalText(v string)` + +SetTermsOfServiceOriginalText sets TermsOfServiceOriginalText field to given value. + +### HasTermsOfServiceOriginalText + +`func (o *SchemaSiteLegalResp) HasTermsOfServiceOriginalText() bool` + +HasTermsOfServiceOriginalText returns a boolean if a field has been set. + +### GetTermsOfServiceParsedText + +`func (o *SchemaSiteLegalResp) GetTermsOfServiceParsedText() string` + +GetTermsOfServiceParsedText returns the TermsOfServiceParsedText field if non-nil, zero value otherwise. + +### GetTermsOfServiceParsedTextOk + +`func (o *SchemaSiteLegalResp) GetTermsOfServiceParsedTextOk() (*string, bool)` + +GetTermsOfServiceParsedTextOk returns a tuple with the TermsOfServiceParsedText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermsOfServiceParsedText + +`func (o *SchemaSiteLegalResp) SetTermsOfServiceParsedText(v string)` + +SetTermsOfServiceParsedText sets TermsOfServiceParsedText field to given value. + +### HasTermsOfServiceParsedText + +`func (o *SchemaSiteLegalResp) HasTermsOfServiceParsedText() bool` + +HasTermsOfServiceParsedText 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/SchemaSiteLoginReq.md b/docs/SchemaSiteLoginReq.md new file mode 100644 index 0000000..7c9181a --- /dev/null +++ b/docs/SchemaSiteLoginReq.md @@ -0,0 +1,82 @@ +# SchemaSiteLoginReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowNewRegistrations** | Pointer to **bool** | | [optional] +**LoginRequired** | Pointer to **bool** | | [optional] + +## Methods + +### NewSchemaSiteLoginReq + +`func NewSchemaSiteLoginReq() *SchemaSiteLoginReq` + +NewSchemaSiteLoginReq instantiates a new SchemaSiteLoginReq 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 + +### NewSchemaSiteLoginReqWithDefaults + +`func NewSchemaSiteLoginReqWithDefaults() *SchemaSiteLoginReq` + +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 + +### GetAllowNewRegistrations + +`func (o *SchemaSiteLoginReq) GetAllowNewRegistrations() bool` + +GetAllowNewRegistrations returns the AllowNewRegistrations field if non-nil, zero value otherwise. + +### GetAllowNewRegistrationsOk + +`func (o *SchemaSiteLoginReq) GetAllowNewRegistrationsOk() (*bool, bool)` + +GetAllowNewRegistrationsOk returns a tuple with the AllowNewRegistrations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowNewRegistrations + +`func (o *SchemaSiteLoginReq) SetAllowNewRegistrations(v bool)` + +SetAllowNewRegistrations sets AllowNewRegistrations field to given value. + +### HasAllowNewRegistrations + +`func (o *SchemaSiteLoginReq) HasAllowNewRegistrations() bool` + +HasAllowNewRegistrations returns a boolean if a field has been set. + +### GetLoginRequired + +`func (o *SchemaSiteLoginReq) GetLoginRequired() bool` + +GetLoginRequired returns the LoginRequired field if non-nil, zero value otherwise. + +### GetLoginRequiredOk + +`func (o *SchemaSiteLoginReq) GetLoginRequiredOk() (*bool, bool)` + +GetLoginRequiredOk returns a tuple with the LoginRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginRequired + +`func (o *SchemaSiteLoginReq) SetLoginRequired(v bool)` + +SetLoginRequired sets LoginRequired field to given value. + +### HasLoginRequired + +`func (o *SchemaSiteLoginReq) HasLoginRequired() bool` + +HasLoginRequired 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/SchemaSiteLoginResp.md b/docs/SchemaSiteLoginResp.md new file mode 100644 index 0000000..0075878 --- /dev/null +++ b/docs/SchemaSiteLoginResp.md @@ -0,0 +1,82 @@ +# SchemaSiteLoginResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllowNewRegistrations** | Pointer to **bool** | | [optional] +**LoginRequired** | Pointer to **bool** | | [optional] + +## Methods + +### NewSchemaSiteLoginResp + +`func NewSchemaSiteLoginResp() *SchemaSiteLoginResp` + +NewSchemaSiteLoginResp instantiates a new SchemaSiteLoginResp 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 + +### NewSchemaSiteLoginRespWithDefaults + +`func NewSchemaSiteLoginRespWithDefaults() *SchemaSiteLoginResp` + +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 + +### GetAllowNewRegistrations + +`func (o *SchemaSiteLoginResp) GetAllowNewRegistrations() bool` + +GetAllowNewRegistrations returns the AllowNewRegistrations field if non-nil, zero value otherwise. + +### GetAllowNewRegistrationsOk + +`func (o *SchemaSiteLoginResp) GetAllowNewRegistrationsOk() (*bool, bool)` + +GetAllowNewRegistrationsOk returns a tuple with the AllowNewRegistrations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowNewRegistrations + +`func (o *SchemaSiteLoginResp) SetAllowNewRegistrations(v bool)` + +SetAllowNewRegistrations sets AllowNewRegistrations field to given value. + +### HasAllowNewRegistrations + +`func (o *SchemaSiteLoginResp) HasAllowNewRegistrations() bool` + +HasAllowNewRegistrations returns a boolean if a field has been set. + +### GetLoginRequired + +`func (o *SchemaSiteLoginResp) GetLoginRequired() bool` + +GetLoginRequired returns the LoginRequired field if non-nil, zero value otherwise. + +### GetLoginRequiredOk + +`func (o *SchemaSiteLoginResp) GetLoginRequiredOk() (*bool, bool)` + +GetLoginRequiredOk returns a tuple with the LoginRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginRequired + +`func (o *SchemaSiteLoginResp) SetLoginRequired(v bool)` + +SetLoginRequired sets LoginRequired field to given value. + +### HasLoginRequired + +`func (o *SchemaSiteLoginResp) HasLoginRequired() bool` + +HasLoginRequired 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/SchemaSiteSeoReq.md b/docs/SchemaSiteSeoReq.md new file mode 100644 index 0000000..7400e22 --- /dev/null +++ b/docs/SchemaSiteSeoReq.md @@ -0,0 +1,72 @@ +# SchemaSiteSeoReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permalink** | **int32** | | +**Robots** | **string** | | + +## Methods + +### NewSchemaSiteSeoReq + +`func NewSchemaSiteSeoReq(permalink int32, robots string, ) *SchemaSiteSeoReq` + +NewSchemaSiteSeoReq instantiates a new SchemaSiteSeoReq 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 + +### NewSchemaSiteSeoReqWithDefaults + +`func NewSchemaSiteSeoReqWithDefaults() *SchemaSiteSeoReq` + +NewSchemaSiteSeoReqWithDefaults instantiates a new SchemaSiteSeoReq 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 + +### GetPermalink + +`func (o *SchemaSiteSeoReq) GetPermalink() int32` + +GetPermalink returns the Permalink field if non-nil, zero value otherwise. + +### GetPermalinkOk + +`func (o *SchemaSiteSeoReq) GetPermalinkOk() (*int32, bool)` + +GetPermalinkOk returns a tuple with the Permalink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermalink + +`func (o *SchemaSiteSeoReq) SetPermalink(v int32)` + +SetPermalink sets Permalink field to given value. + + +### GetRobots + +`func (o *SchemaSiteSeoReq) GetRobots() string` + +GetRobots returns the Robots field if non-nil, zero value otherwise. + +### GetRobotsOk + +`func (o *SchemaSiteSeoReq) GetRobotsOk() (*string, bool)` + +GetRobotsOk returns a tuple with the Robots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRobots + +`func (o *SchemaSiteSeoReq) SetRobots(v string)` + +SetRobots sets Robots 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/SchemaSiteSeoResp.md b/docs/SchemaSiteSeoResp.md new file mode 100644 index 0000000..5738db5 --- /dev/null +++ b/docs/SchemaSiteSeoResp.md @@ -0,0 +1,72 @@ +# SchemaSiteSeoResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permalink** | **int32** | | +**Robots** | **string** | | + +## Methods + +### NewSchemaSiteSeoResp + +`func NewSchemaSiteSeoResp(permalink int32, robots string, ) *SchemaSiteSeoResp` + +NewSchemaSiteSeoResp instantiates a new SchemaSiteSeoResp 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 + +### NewSchemaSiteSeoRespWithDefaults + +`func NewSchemaSiteSeoRespWithDefaults() *SchemaSiteSeoResp` + +NewSchemaSiteSeoRespWithDefaults instantiates a new SchemaSiteSeoResp 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 + +### GetPermalink + +`func (o *SchemaSiteSeoResp) GetPermalink() int32` + +GetPermalink returns the Permalink field if non-nil, zero value otherwise. + +### GetPermalinkOk + +`func (o *SchemaSiteSeoResp) GetPermalinkOk() (*int32, bool)` + +GetPermalinkOk returns a tuple with the Permalink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermalink + +`func (o *SchemaSiteSeoResp) SetPermalink(v int32)` + +SetPermalink sets Permalink field to given value. + + +### GetRobots + +`func (o *SchemaSiteSeoResp) GetRobots() string` + +GetRobots returns the Robots field if non-nil, zero value otherwise. + +### GetRobotsOk + +`func (o *SchemaSiteSeoResp) GetRobotsOk() (*string, bool)` + +GetRobotsOk returns a tuple with the Robots field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRobots + +`func (o *SchemaSiteSeoResp) SetRobots(v string)` + +SetRobots sets Robots 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/SchemaSiteThemeReq.md b/docs/SchemaSiteThemeReq.md new file mode 100644 index 0000000..e281125 --- /dev/null +++ b/docs/SchemaSiteThemeReq.md @@ -0,0 +1,77 @@ +# SchemaSiteThemeReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Theme** | **string** | | +**ThemeConfig** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewSchemaSiteThemeReq + +`func NewSchemaSiteThemeReq(theme string, ) *SchemaSiteThemeReq` + +NewSchemaSiteThemeReq instantiates a new SchemaSiteThemeReq 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 + +### NewSchemaSiteThemeReqWithDefaults + +`func NewSchemaSiteThemeReqWithDefaults() *SchemaSiteThemeReq` + +NewSchemaSiteThemeReqWithDefaults instantiates a new SchemaSiteThemeReq 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 + +### GetTheme + +`func (o *SchemaSiteThemeReq) GetTheme() string` + +GetTheme returns the Theme field if non-nil, zero value otherwise. + +### GetThemeOk + +`func (o *SchemaSiteThemeReq) GetThemeOk() (*string, bool)` + +GetThemeOk returns a tuple with the Theme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTheme + +`func (o *SchemaSiteThemeReq) SetTheme(v string)` + +SetTheme sets Theme field to given value. + + +### GetThemeConfig + +`func (o *SchemaSiteThemeReq) GetThemeConfig() map[string]interface{}` + +GetThemeConfig returns the ThemeConfig field if non-nil, zero value otherwise. + +### GetThemeConfigOk + +`func (o *SchemaSiteThemeReq) GetThemeConfigOk() (*map[string]interface{}, bool)` + +GetThemeConfigOk returns a tuple with the ThemeConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThemeConfig + +`func (o *SchemaSiteThemeReq) SetThemeConfig(v map[string]interface{})` + +SetThemeConfig sets ThemeConfig field to given value. + +### HasThemeConfig + +`func (o *SchemaSiteThemeReq) HasThemeConfig() bool` + +HasThemeConfig 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/SchemaSiteThemeResp.md b/docs/SchemaSiteThemeResp.md new file mode 100644 index 0000000..fbd268a --- /dev/null +++ b/docs/SchemaSiteThemeResp.md @@ -0,0 +1,108 @@ +# SchemaSiteThemeResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Theme** | Pointer to **string** | | [optional] +**ThemeConfig** | Pointer to **map[string]interface{}** | | [optional] +**ThemeOptions** | Pointer to [**[]SchemaThemeOption**](SchemaThemeOption.md) | | [optional] + +## Methods + +### NewSchemaSiteThemeResp + +`func NewSchemaSiteThemeResp() *SchemaSiteThemeResp` + +NewSchemaSiteThemeResp instantiates a new SchemaSiteThemeResp 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 + +### NewSchemaSiteThemeRespWithDefaults + +`func NewSchemaSiteThemeRespWithDefaults() *SchemaSiteThemeResp` + +NewSchemaSiteThemeRespWithDefaults instantiates a new SchemaSiteThemeResp 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 + +### GetTheme + +`func (o *SchemaSiteThemeResp) GetTheme() string` + +GetTheme returns the Theme field if non-nil, zero value otherwise. + +### GetThemeOk + +`func (o *SchemaSiteThemeResp) GetThemeOk() (*string, bool)` + +GetThemeOk returns a tuple with the Theme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTheme + +`func (o *SchemaSiteThemeResp) SetTheme(v string)` + +SetTheme sets Theme field to given value. + +### HasTheme + +`func (o *SchemaSiteThemeResp) HasTheme() bool` + +HasTheme returns a boolean if a field has been set. + +### GetThemeConfig + +`func (o *SchemaSiteThemeResp) GetThemeConfig() map[string]interface{}` + +GetThemeConfig returns the ThemeConfig field if non-nil, zero value otherwise. + +### GetThemeConfigOk + +`func (o *SchemaSiteThemeResp) GetThemeConfigOk() (*map[string]interface{}, bool)` + +GetThemeConfigOk returns a tuple with the ThemeConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThemeConfig + +`func (o *SchemaSiteThemeResp) SetThemeConfig(v map[string]interface{})` + +SetThemeConfig sets ThemeConfig field to given value. + +### HasThemeConfig + +`func (o *SchemaSiteThemeResp) HasThemeConfig() bool` + +HasThemeConfig returns a boolean if a field has been set. + +### GetThemeOptions + +`func (o *SchemaSiteThemeResp) GetThemeOptions() []SchemaThemeOption` + +GetThemeOptions returns the ThemeOptions field if non-nil, zero value otherwise. + +### GetThemeOptionsOk + +`func (o *SchemaSiteThemeResp) GetThemeOptionsOk() (*[]SchemaThemeOption, bool)` + +GetThemeOptionsOk returns a tuple with the ThemeOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThemeOptions + +`func (o *SchemaSiteThemeResp) SetThemeOptions(v []SchemaThemeOption)` + +SetThemeOptions sets ThemeOptions field to given value. + +### HasThemeOptions + +`func (o *SchemaSiteThemeResp) HasThemeOptions() bool` + +HasThemeOptions 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/SchemaSiteWriteReq.md b/docs/SchemaSiteWriteReq.md new file mode 100644 index 0000000..8177afd --- /dev/null +++ b/docs/SchemaSiteWriteReq.md @@ -0,0 +1,108 @@ +# SchemaSiteWriteReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RecommendTags** | Pointer to **[]string** | | [optional] +**RequiredTag** | Pointer to **bool** | | [optional] +**ReservedTags** | Pointer to **[]string** | | [optional] + +## Methods + +### NewSchemaSiteWriteReq + +`func NewSchemaSiteWriteReq() *SchemaSiteWriteReq` + +NewSchemaSiteWriteReq instantiates a new SchemaSiteWriteReq 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 + +### NewSchemaSiteWriteReqWithDefaults + +`func NewSchemaSiteWriteReqWithDefaults() *SchemaSiteWriteReq` + +NewSchemaSiteWriteReqWithDefaults instantiates a new SchemaSiteWriteReq 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 + +### GetRecommendTags + +`func (o *SchemaSiteWriteReq) GetRecommendTags() []string` + +GetRecommendTags returns the RecommendTags field if non-nil, zero value otherwise. + +### GetRecommendTagsOk + +`func (o *SchemaSiteWriteReq) GetRecommendTagsOk() (*[]string, bool)` + +GetRecommendTagsOk returns a tuple with the RecommendTags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecommendTags + +`func (o *SchemaSiteWriteReq) SetRecommendTags(v []string)` + +SetRecommendTags sets RecommendTags field to given value. + +### HasRecommendTags + +`func (o *SchemaSiteWriteReq) HasRecommendTags() bool` + +HasRecommendTags returns a boolean if a field has been set. + +### GetRequiredTag + +`func (o *SchemaSiteWriteReq) GetRequiredTag() bool` + +GetRequiredTag returns the RequiredTag field if non-nil, zero value otherwise. + +### GetRequiredTagOk + +`func (o *SchemaSiteWriteReq) GetRequiredTagOk() (*bool, bool)` + +GetRequiredTagOk returns a tuple with the RequiredTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredTag + +`func (o *SchemaSiteWriteReq) SetRequiredTag(v bool)` + +SetRequiredTag sets RequiredTag field to given value. + +### HasRequiredTag + +`func (o *SchemaSiteWriteReq) HasRequiredTag() bool` + +HasRequiredTag returns a boolean if a field has been set. + +### GetReservedTags + +`func (o *SchemaSiteWriteReq) GetReservedTags() []string` + +GetReservedTags returns the ReservedTags field if non-nil, zero value otherwise. + +### GetReservedTagsOk + +`func (o *SchemaSiteWriteReq) GetReservedTagsOk() (*[]string, bool)` + +GetReservedTagsOk returns a tuple with the ReservedTags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReservedTags + +`func (o *SchemaSiteWriteReq) SetReservedTags(v []string)` + +SetReservedTags sets ReservedTags field to given value. + +### HasReservedTags + +`func (o *SchemaSiteWriteReq) HasReservedTags() bool` + +HasReservedTags 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/SchemaSiteWriteResp.md b/docs/SchemaSiteWriteResp.md new file mode 100644 index 0000000..eb7e48e --- /dev/null +++ b/docs/SchemaSiteWriteResp.md @@ -0,0 +1,108 @@ +# SchemaSiteWriteResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RecommendTags** | Pointer to **[]string** | | [optional] +**RequiredTag** | Pointer to **bool** | | [optional] +**ReservedTags** | Pointer to **[]string** | | [optional] + +## Methods + +### NewSchemaSiteWriteResp + +`func NewSchemaSiteWriteResp() *SchemaSiteWriteResp` + +NewSchemaSiteWriteResp instantiates a new SchemaSiteWriteResp 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 + +### NewSchemaSiteWriteRespWithDefaults + +`func NewSchemaSiteWriteRespWithDefaults() *SchemaSiteWriteResp` + +NewSchemaSiteWriteRespWithDefaults instantiates a new SchemaSiteWriteResp 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 + +### GetRecommendTags + +`func (o *SchemaSiteWriteResp) GetRecommendTags() []string` + +GetRecommendTags returns the RecommendTags field if non-nil, zero value otherwise. + +### GetRecommendTagsOk + +`func (o *SchemaSiteWriteResp) GetRecommendTagsOk() (*[]string, bool)` + +GetRecommendTagsOk returns a tuple with the RecommendTags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecommendTags + +`func (o *SchemaSiteWriteResp) SetRecommendTags(v []string)` + +SetRecommendTags sets RecommendTags field to given value. + +### HasRecommendTags + +`func (o *SchemaSiteWriteResp) HasRecommendTags() bool` + +HasRecommendTags returns a boolean if a field has been set. + +### GetRequiredTag + +`func (o *SchemaSiteWriteResp) GetRequiredTag() bool` + +GetRequiredTag returns the RequiredTag field if non-nil, zero value otherwise. + +### GetRequiredTagOk + +`func (o *SchemaSiteWriteResp) GetRequiredTagOk() (*bool, bool)` + +GetRequiredTagOk returns a tuple with the RequiredTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequiredTag + +`func (o *SchemaSiteWriteResp) SetRequiredTag(v bool)` + +SetRequiredTag sets RequiredTag field to given value. + +### HasRequiredTag + +`func (o *SchemaSiteWriteResp) HasRequiredTag() bool` + +HasRequiredTag returns a boolean if a field has been set. + +### GetReservedTags + +`func (o *SchemaSiteWriteResp) GetReservedTags() []string` + +GetReservedTags returns the ReservedTags field if non-nil, zero value otherwise. + +### GetReservedTagsOk + +`func (o *SchemaSiteWriteResp) GetReservedTagsOk() (*[]string, bool)` + +GetReservedTagsOk returns a tuple with the ReservedTags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReservedTags + +`func (o *SchemaSiteWriteResp) SetReservedTags(v []string)` + +SetReservedTags sets ReservedTags field to given value. + +### HasReservedTags + +`func (o *SchemaSiteWriteResp) HasReservedTags() bool` + +HasReservedTags 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/SchemaTagItem.md b/docs/SchemaTagItem.md new file mode 100644 index 0000000..e9bcf05 --- /dev/null +++ b/docs/SchemaTagItem.md @@ -0,0 +1,108 @@ +# SchemaTagItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | display_name | [optional] +**OriginalText** | Pointer to **string** | original text | [optional] +**SlugName** | Pointer to **string** | slug_name | [optional] + +## Methods + +### NewSchemaTagItem + +`func NewSchemaTagItem() *SchemaTagItem` + +NewSchemaTagItem instantiates a new SchemaTagItem 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 + +### NewSchemaTagItemWithDefaults + +`func NewSchemaTagItemWithDefaults() *SchemaTagItem` + +NewSchemaTagItemWithDefaults instantiates a new SchemaTagItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *SchemaTagItem) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaTagItem) 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 *SchemaTagItem) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaTagItem) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetOriginalText + +`func (o *SchemaTagItem) GetOriginalText() string` + +GetOriginalText returns the OriginalText field if non-nil, zero value otherwise. + +### GetOriginalTextOk + +`func (o *SchemaTagItem) GetOriginalTextOk() (*string, bool)` + +GetOriginalTextOk returns a tuple with the OriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalText + +`func (o *SchemaTagItem) SetOriginalText(v string)` + +SetOriginalText sets OriginalText field to given value. + +### HasOriginalText + +`func (o *SchemaTagItem) HasOriginalText() bool` + +HasOriginalText returns a boolean if a field has been set. + +### GetSlugName + +`func (o *SchemaTagItem) GetSlugName() string` + +GetSlugName returns the SlugName field if non-nil, zero value otherwise. + +### GetSlugNameOk + +`func (o *SchemaTagItem) 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 *SchemaTagItem) SetSlugName(v string)` + +SetSlugName sets SlugName field to given value. + +### HasSlugName + +`func (o *SchemaTagItem) HasSlugName() bool` + +HasSlugName 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/SchemaTagResp.md b/docs/SchemaTagResp.md new file mode 100644 index 0000000..2eda2e8 --- /dev/null +++ b/docs/SchemaTagResp.md @@ -0,0 +1,160 @@ +# SchemaTagResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | | [optional] +**MainTagSlugName** | Pointer to **string** | if main tag slug name is not empty, this tag is synonymous with the main tag | [optional] +**Recommend** | Pointer to **bool** | | [optional] +**Reserved** | Pointer to **bool** | | [optional] +**SlugName** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaTagResp + +`func NewSchemaTagResp() *SchemaTagResp` + +NewSchemaTagResp instantiates a new SchemaTagResp 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 + +### NewSchemaTagRespWithDefaults + +`func NewSchemaTagRespWithDefaults() *SchemaTagResp` + +NewSchemaTagRespWithDefaults instantiates a new SchemaTagResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *SchemaTagResp) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaTagResp) 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 *SchemaTagResp) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaTagResp) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetMainTagSlugName + +`func (o *SchemaTagResp) GetMainTagSlugName() string` + +GetMainTagSlugName returns the MainTagSlugName field if non-nil, zero value otherwise. + +### GetMainTagSlugNameOk + +`func (o *SchemaTagResp) GetMainTagSlugNameOk() (*string, bool)` + +GetMainTagSlugNameOk returns a tuple with the MainTagSlugName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMainTagSlugName + +`func (o *SchemaTagResp) SetMainTagSlugName(v string)` + +SetMainTagSlugName sets MainTagSlugName field to given value. + +### HasMainTagSlugName + +`func (o *SchemaTagResp) HasMainTagSlugName() bool` + +HasMainTagSlugName returns a boolean if a field has been set. + +### GetRecommend + +`func (o *SchemaTagResp) GetRecommend() bool` + +GetRecommend returns the Recommend field if non-nil, zero value otherwise. + +### GetRecommendOk + +`func (o *SchemaTagResp) GetRecommendOk() (*bool, bool)` + +GetRecommendOk returns a tuple with the Recommend field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRecommend + +`func (o *SchemaTagResp) SetRecommend(v bool)` + +SetRecommend sets Recommend field to given value. + +### HasRecommend + +`func (o *SchemaTagResp) HasRecommend() bool` + +HasRecommend returns a boolean if a field has been set. + +### GetReserved + +`func (o *SchemaTagResp) GetReserved() bool` + +GetReserved returns the Reserved field if non-nil, zero value otherwise. + +### GetReservedOk + +`func (o *SchemaTagResp) GetReservedOk() (*bool, bool)` + +GetReservedOk returns a tuple with the Reserved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReserved + +`func (o *SchemaTagResp) SetReserved(v bool)` + +SetReserved sets Reserved field to given value. + +### HasReserved + +`func (o *SchemaTagResp) HasReserved() bool` + +HasReserved returns a boolean if a field has been set. + +### GetSlugName + +`func (o *SchemaTagResp) GetSlugName() string` + +GetSlugName returns the SlugName field if non-nil, zero value otherwise. + +### GetSlugNameOk + +`func (o *SchemaTagResp) 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 *SchemaTagResp) SetSlugName(v string)` + +SetSlugName sets SlugName field to given value. + +### HasSlugName + +`func (o *SchemaTagResp) HasSlugName() bool` + +HasSlugName 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/SchemaTagSynonym.md b/docs/SchemaTagSynonym.md new file mode 100644 index 0000000..4800e1b --- /dev/null +++ b/docs/SchemaTagSynonym.md @@ -0,0 +1,134 @@ +# SchemaTagSynonym + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | display name | [optional] +**MainTagSlugName** | Pointer to **string** | if main tag slug name is not empty, this tag is synonymous with the main tag | [optional] +**SlugName** | Pointer to **string** | slug name | [optional] +**TagId** | Pointer to **string** | tag id | [optional] + +## Methods + +### NewSchemaTagSynonym + +`func NewSchemaTagSynonym() *SchemaTagSynonym` + +NewSchemaTagSynonym instantiates a new SchemaTagSynonym 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 + +### NewSchemaTagSynonymWithDefaults + +`func NewSchemaTagSynonymWithDefaults() *SchemaTagSynonym` + +NewSchemaTagSynonymWithDefaults instantiates a new SchemaTagSynonym object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *SchemaTagSynonym) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaTagSynonym) 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 *SchemaTagSynonym) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaTagSynonym) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetMainTagSlugName + +`func (o *SchemaTagSynonym) GetMainTagSlugName() string` + +GetMainTagSlugName returns the MainTagSlugName field if non-nil, zero value otherwise. + +### GetMainTagSlugNameOk + +`func (o *SchemaTagSynonym) GetMainTagSlugNameOk() (*string, bool)` + +GetMainTagSlugNameOk returns a tuple with the MainTagSlugName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMainTagSlugName + +`func (o *SchemaTagSynonym) SetMainTagSlugName(v string)` + +SetMainTagSlugName sets MainTagSlugName field to given value. + +### HasMainTagSlugName + +`func (o *SchemaTagSynonym) HasMainTagSlugName() bool` + +HasMainTagSlugName returns a boolean if a field has been set. + +### GetSlugName + +`func (o *SchemaTagSynonym) GetSlugName() string` + +GetSlugName returns the SlugName field if non-nil, zero value otherwise. + +### GetSlugNameOk + +`func (o *SchemaTagSynonym) 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 *SchemaTagSynonym) SetSlugName(v string)` + +SetSlugName sets SlugName field to given value. + +### HasSlugName + +`func (o *SchemaTagSynonym) HasSlugName() bool` + +HasSlugName returns a boolean if a field has been set. + +### GetTagId + +`func (o *SchemaTagSynonym) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *SchemaTagSynonym) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *SchemaTagSynonym) SetTagId(v string)` + +SetTagId sets TagId field to given value. + +### HasTagId + +`func (o *SchemaTagSynonym) HasTagId() bool` + +HasTagId 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/SchemaThemeOption.md b/docs/SchemaThemeOption.md new file mode 100644 index 0000000..5204014 --- /dev/null +++ b/docs/SchemaThemeOption.md @@ -0,0 +1,82 @@ +# SchemaThemeOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Label** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaThemeOption + +`func NewSchemaThemeOption() *SchemaThemeOption` + +NewSchemaThemeOption instantiates a new SchemaThemeOption 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 + +### NewSchemaThemeOptionWithDefaults + +`func NewSchemaThemeOptionWithDefaults() *SchemaThemeOption` + +NewSchemaThemeOptionWithDefaults instantiates a new SchemaThemeOption 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 *SchemaThemeOption) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *SchemaThemeOption) 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 *SchemaThemeOption) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *SchemaThemeOption) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetValue + +`func (o *SchemaThemeOption) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *SchemaThemeOption) 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 *SchemaThemeOption) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *SchemaThemeOption) 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/SchemaUnreviewedRevisionInfoInfo.md b/docs/SchemaUnreviewedRevisionInfoInfo.md new file mode 100644 index 0000000..ff1e572 --- /dev/null +++ b/docs/SchemaUnreviewedRevisionInfoInfo.md @@ -0,0 +1,160 @@ +# SchemaUnreviewedRevisionInfoInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | Pointer to **string** | | [optional] +**Html** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]SchemaTagResp**](SchemaTagResp.md) | | [optional] +**Title** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaUnreviewedRevisionInfoInfo + +`func NewSchemaUnreviewedRevisionInfoInfo() *SchemaUnreviewedRevisionInfoInfo` + +NewSchemaUnreviewedRevisionInfoInfo instantiates a new SchemaUnreviewedRevisionInfoInfo 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 + +### NewSchemaUnreviewedRevisionInfoInfoWithDefaults + +`func NewSchemaUnreviewedRevisionInfoInfoWithDefaults() *SchemaUnreviewedRevisionInfoInfo` + +NewSchemaUnreviewedRevisionInfoInfoWithDefaults instantiates a new SchemaUnreviewedRevisionInfoInfo 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 + +### GetContent + +`func (o *SchemaUnreviewedRevisionInfoInfo) GetContent() string` + +GetContent returns the Content field if non-nil, zero value otherwise. + +### GetContentOk + +`func (o *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) SetContent(v string)` + +SetContent sets Content field to given value. + +### HasContent + +`func (o *SchemaUnreviewedRevisionInfoInfo) HasContent() bool` + +HasContent returns a boolean if a field has been set. + +### GetHtml + +`func (o *SchemaUnreviewedRevisionInfoInfo) GetHtml() string` + +GetHtml returns the Html field if non-nil, zero value otherwise. + +### GetHtmlOk + +`func (o *SchemaUnreviewedRevisionInfoInfo) GetHtmlOk() (*string, bool)` + +GetHtmlOk returns a tuple with the Html field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHtml + +`func (o *SchemaUnreviewedRevisionInfoInfo) SetHtml(v string)` + +SetHtml sets Html field to given value. + +### HasHtml + +`func (o *SchemaUnreviewedRevisionInfoInfo) HasHtml() bool` + +HasHtml returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaUnreviewedRevisionInfoInfo) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) SetObjectId(v string)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *SchemaUnreviewedRevisionInfoInfo) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetTags + +`func (o *SchemaUnreviewedRevisionInfoInfo) GetTags() []SchemaTagResp` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) SetTags(v []SchemaTagResp)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SchemaUnreviewedRevisionInfoInfo) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetTitle + +`func (o *SchemaUnreviewedRevisionInfoInfo) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *SchemaUnreviewedRevisionInfoInfo) HasTitle() bool` + +HasTitle 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 new file mode 100644 index 0000000..9223efc --- /dev/null +++ b/docs/SchemaUpdateCommentReq.md @@ -0,0 +1,72 @@ +# SchemaUpdateCommentReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommentId** | **string** | comment id | +**OriginalText** | **string** | original comment content | + +## Methods + +### NewSchemaUpdateCommentReq + +`func NewSchemaUpdateCommentReq(commentId string, originalText string, ) *SchemaUpdateCommentReq` + +NewSchemaUpdateCommentReq instantiates a new SchemaUpdateCommentReq 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 + +### NewSchemaUpdateCommentReqWithDefaults + +`func NewSchemaUpdateCommentReqWithDefaults() *SchemaUpdateCommentReq` + +NewSchemaUpdateCommentReqWithDefaults instantiates a new SchemaUpdateCommentReq 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 + +### GetCommentId + +`func (o *SchemaUpdateCommentReq) GetCommentId() string` + +GetCommentId returns the CommentId field if non-nil, zero value otherwise. + +### GetCommentIdOk + +`func (o *SchemaUpdateCommentReq) GetCommentIdOk() (*string, bool)` + +GetCommentIdOk returns a tuple with the CommentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommentId + +`func (o *SchemaUpdateCommentReq) SetCommentId(v string)` + +SetCommentId sets CommentId field to given value. + + +### GetOriginalText + +`func (o *SchemaUpdateCommentReq) GetOriginalText() string` + +GetOriginalText returns the OriginalText field if non-nil, zero value otherwise. + +### GetOriginalTextOk + +`func (o *SchemaUpdateCommentReq) GetOriginalTextOk() (*string, bool)` + +GetOriginalTextOk returns a tuple with the OriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalText + +`func (o *SchemaUpdateCommentReq) SetOriginalText(v string)` + +SetOriginalText sets OriginalText 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/SchemaUpdateFollowTagsReq.md b/docs/SchemaUpdateFollowTagsReq.md new file mode 100644 index 0000000..39dff1e --- /dev/null +++ b/docs/SchemaUpdateFollowTagsReq.md @@ -0,0 +1,56 @@ +# SchemaUpdateFollowTagsReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SlugNameList** | Pointer to **[]string** | tag slug name list | [optional] + +## Methods + +### NewSchemaUpdateFollowTagsReq + +`func NewSchemaUpdateFollowTagsReq() *SchemaUpdateFollowTagsReq` + +NewSchemaUpdateFollowTagsReq instantiates a new SchemaUpdateFollowTagsReq 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 + +### NewSchemaUpdateFollowTagsReqWithDefaults + +`func NewSchemaUpdateFollowTagsReqWithDefaults() *SchemaUpdateFollowTagsReq` + +NewSchemaUpdateFollowTagsReqWithDefaults instantiates a new SchemaUpdateFollowTagsReq 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 + +### GetSlugNameList + +`func (o *SchemaUpdateFollowTagsReq) GetSlugNameList() []string` + +GetSlugNameList returns the SlugNameList field if non-nil, zero value otherwise. + +### GetSlugNameListOk + +`func (o *SchemaUpdateFollowTagsReq) GetSlugNameListOk() (*[]string, bool)` + +GetSlugNameListOk returns a tuple with the SlugNameList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlugNameList + +`func (o *SchemaUpdateFollowTagsReq) SetSlugNameList(v []string)` + +SetSlugNameList sets SlugNameList field to given value. + +### HasSlugNameList + +`func (o *SchemaUpdateFollowTagsReq) HasSlugNameList() bool` + +HasSlugNameList 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/SchemaUpdateInfoRequest.md b/docs/SchemaUpdateInfoRequest.md new file mode 100644 index 0000000..062cca8 --- /dev/null +++ b/docs/SchemaUpdateInfoRequest.md @@ -0,0 +1,181 @@ +# SchemaUpdateInfoRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Avatar** | Pointer to [**SchemaAvatarInfo**](SchemaAvatarInfo.md) | | [optional] +**Bio** | Pointer to **string** | bio | [optional] +**DisplayName** | **string** | display_name | +**Location** | Pointer to **string** | location | [optional] +**Username** | Pointer to **string** | username | [optional] +**Website** | Pointer to **string** | website | [optional] + +## Methods + +### NewSchemaUpdateInfoRequest + +`func NewSchemaUpdateInfoRequest(displayName string, ) *SchemaUpdateInfoRequest` + +NewSchemaUpdateInfoRequest instantiates a new SchemaUpdateInfoRequest 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 + +### NewSchemaUpdateInfoRequestWithDefaults + +`func NewSchemaUpdateInfoRequestWithDefaults() *SchemaUpdateInfoRequest` + +NewSchemaUpdateInfoRequestWithDefaults instantiates a new SchemaUpdateInfoRequest 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 *SchemaUpdateInfoRequest) GetAvatar() SchemaAvatarInfo` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *SchemaUpdateInfoRequest) GetAvatarOk() (*SchemaAvatarInfo, bool)` + +GetAvatarOk returns a tuple with the Avatar field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatar + +`func (o *SchemaUpdateInfoRequest) SetAvatar(v SchemaAvatarInfo)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *SchemaUpdateInfoRequest) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + +### GetBio + +`func (o *SchemaUpdateInfoRequest) GetBio() string` + +GetBio returns the Bio field if non-nil, zero value otherwise. + +### GetBioOk + +`func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetBio(v string)` + +SetBio sets Bio field to given value. + +### HasBio + +`func (o *SchemaUpdateInfoRequest) HasBio() bool` + +HasBio returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaUpdateInfoRequest) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + + +### GetLocation + +`func (o *SchemaUpdateInfoRequest) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *SchemaUpdateInfoRequest) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaUpdateInfoRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaUpdateInfoRequest) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetWebsite + +`func (o *SchemaUpdateInfoRequest) GetWebsite() string` + +GetWebsite returns the Website field if non-nil, zero value otherwise. + +### GetWebsiteOk + +`func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetWebsite(v string)` + +SetWebsite sets Website field to given value. + +### HasWebsite + +`func (o *SchemaUpdateInfoRequest) 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/SchemaUpdateSMTPConfigReq.md b/docs/SchemaUpdateSMTPConfigReq.md new file mode 100644 index 0000000..767061a --- /dev/null +++ b/docs/SchemaUpdateSMTPConfigReq.md @@ -0,0 +1,264 @@ +# SchemaUpdateSMTPConfigReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Encryption** | Pointer to **string** | \"\" SSL | [optional] +**FromEmail** | Pointer to **string** | | [optional] +**FromName** | Pointer to **string** | | [optional] +**SmtpAuthentication** | Pointer to **bool** | | [optional] +**SmtpHost** | Pointer to **string** | | [optional] +**SmtpPassword** | Pointer to **string** | | [optional] +**SmtpPort** | Pointer to **int32** | | [optional] +**SmtpUsername** | Pointer to **string** | | [optional] +**TestEmailRecipient** | Pointer to **string** | | [optional] + +## Methods + +### NewSchemaUpdateSMTPConfigReq + +`func NewSchemaUpdateSMTPConfigReq() *SchemaUpdateSMTPConfigReq` + +NewSchemaUpdateSMTPConfigReq instantiates a new SchemaUpdateSMTPConfigReq 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 + +### NewSchemaUpdateSMTPConfigReqWithDefaults + +`func NewSchemaUpdateSMTPConfigReqWithDefaults() *SchemaUpdateSMTPConfigReq` + +NewSchemaUpdateSMTPConfigReqWithDefaults instantiates a new SchemaUpdateSMTPConfigReq 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 + +### GetEncryption + +`func (o *SchemaUpdateSMTPConfigReq) GetEncryption() string` + +GetEncryption returns the Encryption field if non-nil, zero value otherwise. + +### GetEncryptionOk + +`func (o *SchemaUpdateSMTPConfigReq) GetEncryptionOk() (*string, bool)` + +GetEncryptionOk returns a tuple with the Encryption field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncryption + +`func (o *SchemaUpdateSMTPConfigReq) SetEncryption(v string)` + +SetEncryption sets Encryption field to given value. + +### HasEncryption + +`func (o *SchemaUpdateSMTPConfigReq) HasEncryption() bool` + +HasEncryption returns a boolean if a field has been set. + +### GetFromEmail + +`func (o *SchemaUpdateSMTPConfigReq) GetFromEmail() string` + +GetFromEmail returns the FromEmail field if non-nil, zero value otherwise. + +### GetFromEmailOk + +`func (o *SchemaUpdateSMTPConfigReq) GetFromEmailOk() (*string, bool)` + +GetFromEmailOk returns a tuple with the FromEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFromEmail + +`func (o *SchemaUpdateSMTPConfigReq) SetFromEmail(v string)` + +SetFromEmail sets FromEmail field to given value. + +### HasFromEmail + +`func (o *SchemaUpdateSMTPConfigReq) HasFromEmail() bool` + +HasFromEmail returns a boolean if a field has been set. + +### GetFromName + +`func (o *SchemaUpdateSMTPConfigReq) GetFromName() string` + +GetFromName returns the FromName field if non-nil, zero value otherwise. + +### GetFromNameOk + +`func (o *SchemaUpdateSMTPConfigReq) GetFromNameOk() (*string, bool)` + +GetFromNameOk returns a tuple with the FromName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFromName + +`func (o *SchemaUpdateSMTPConfigReq) SetFromName(v string)` + +SetFromName sets FromName field to given value. + +### HasFromName + +`func (o *SchemaUpdateSMTPConfigReq) HasFromName() bool` + +HasFromName returns a boolean if a field has been set. + +### GetSmtpAuthentication + +`func (o *SchemaUpdateSMTPConfigReq) GetSmtpAuthentication() bool` + +GetSmtpAuthentication returns the SmtpAuthentication field if non-nil, zero value otherwise. + +### GetSmtpAuthenticationOk + +`func (o *SchemaUpdateSMTPConfigReq) GetSmtpAuthenticationOk() (*bool, bool)` + +GetSmtpAuthenticationOk returns a tuple with the SmtpAuthentication field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpAuthentication + +`func (o *SchemaUpdateSMTPConfigReq) SetSmtpAuthentication(v bool)` + +SetSmtpAuthentication sets SmtpAuthentication field to given value. + +### HasSmtpAuthentication + +`func (o *SchemaUpdateSMTPConfigReq) HasSmtpAuthentication() bool` + +HasSmtpAuthentication returns a boolean if a field has been set. + +### GetSmtpHost + +`func (o *SchemaUpdateSMTPConfigReq) GetSmtpHost() string` + +GetSmtpHost returns the SmtpHost field if non-nil, zero value otherwise. + +### GetSmtpHostOk + +`func (o *SchemaUpdateSMTPConfigReq) GetSmtpHostOk() (*string, bool)` + +GetSmtpHostOk returns a tuple with the SmtpHost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpHost + +`func (o *SchemaUpdateSMTPConfigReq) SetSmtpHost(v string)` + +SetSmtpHost sets SmtpHost field to given value. + +### HasSmtpHost + +`func (o *SchemaUpdateSMTPConfigReq) HasSmtpHost() bool` + +HasSmtpHost returns a boolean if a field has been set. + +### GetSmtpPassword + +`func (o *SchemaUpdateSMTPConfigReq) GetSmtpPassword() string` + +GetSmtpPassword returns the SmtpPassword field if non-nil, zero value otherwise. + +### GetSmtpPasswordOk + +`func (o *SchemaUpdateSMTPConfigReq) GetSmtpPasswordOk() (*string, bool)` + +GetSmtpPasswordOk returns a tuple with the SmtpPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpPassword + +`func (o *SchemaUpdateSMTPConfigReq) SetSmtpPassword(v string)` + +SetSmtpPassword sets SmtpPassword field to given value. + +### HasSmtpPassword + +`func (o *SchemaUpdateSMTPConfigReq) HasSmtpPassword() bool` + +HasSmtpPassword returns a boolean if a field has been set. + +### GetSmtpPort + +`func (o *SchemaUpdateSMTPConfigReq) GetSmtpPort() int32` + +GetSmtpPort returns the SmtpPort field if non-nil, zero value otherwise. + +### GetSmtpPortOk + +`func (o *SchemaUpdateSMTPConfigReq) GetSmtpPortOk() (*int32, bool)` + +GetSmtpPortOk returns a tuple with the SmtpPort field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpPort + +`func (o *SchemaUpdateSMTPConfigReq) SetSmtpPort(v int32)` + +SetSmtpPort sets SmtpPort field to given value. + +### HasSmtpPort + +`func (o *SchemaUpdateSMTPConfigReq) HasSmtpPort() bool` + +HasSmtpPort returns a boolean if a field has been set. + +### GetSmtpUsername + +`func (o *SchemaUpdateSMTPConfigReq) GetSmtpUsername() string` + +GetSmtpUsername returns the SmtpUsername field if non-nil, zero value otherwise. + +### GetSmtpUsernameOk + +`func (o *SchemaUpdateSMTPConfigReq) GetSmtpUsernameOk() (*string, bool)` + +GetSmtpUsernameOk returns a tuple with the SmtpUsername field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSmtpUsername + +`func (o *SchemaUpdateSMTPConfigReq) SetSmtpUsername(v string)` + +SetSmtpUsername sets SmtpUsername field to given value. + +### HasSmtpUsername + +`func (o *SchemaUpdateSMTPConfigReq) HasSmtpUsername() bool` + +HasSmtpUsername returns a boolean if a field has been set. + +### GetTestEmailRecipient + +`func (o *SchemaUpdateSMTPConfigReq) GetTestEmailRecipient() string` + +GetTestEmailRecipient returns the TestEmailRecipient field if non-nil, zero value otherwise. + +### GetTestEmailRecipientOk + +`func (o *SchemaUpdateSMTPConfigReq) GetTestEmailRecipientOk() (*string, bool)` + +GetTestEmailRecipientOk returns a tuple with the TestEmailRecipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTestEmailRecipient + +`func (o *SchemaUpdateSMTPConfigReq) SetTestEmailRecipient(v string)` + +SetTestEmailRecipient sets TestEmailRecipient field to given value. + +### HasTestEmailRecipient + +`func (o *SchemaUpdateSMTPConfigReq) HasTestEmailRecipient() bool` + +HasTestEmailRecipient 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/SchemaUpdateTagReq.md b/docs/SchemaUpdateTagReq.md new file mode 100644 index 0000000..5792ddf --- /dev/null +++ b/docs/SchemaUpdateTagReq.md @@ -0,0 +1,155 @@ +# SchemaUpdateTagReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DisplayName** | Pointer to **string** | display_name | [optional] +**EditSummary** | Pointer to **string** | edit summary | [optional] +**OriginalText** | Pointer to **string** | original text | [optional] +**SlugName** | Pointer to **string** | slug_name | [optional] +**TagId** | **string** | tag_id | + +## Methods + +### NewSchemaUpdateTagReq + +`func NewSchemaUpdateTagReq(tagId string, ) *SchemaUpdateTagReq` + +NewSchemaUpdateTagReq instantiates a new SchemaUpdateTagReq 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 + +### NewSchemaUpdateTagReqWithDefaults + +`func NewSchemaUpdateTagReqWithDefaults() *SchemaUpdateTagReq` + +NewSchemaUpdateTagReqWithDefaults instantiates a new SchemaUpdateTagReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDisplayName + +`func (o *SchemaUpdateTagReq) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaUpdateTagReq) 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 *SchemaUpdateTagReq) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaUpdateTagReq) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetEditSummary + +`func (o *SchemaUpdateTagReq) GetEditSummary() string` + +GetEditSummary returns the EditSummary field if non-nil, zero value otherwise. + +### GetEditSummaryOk + +`func (o *SchemaUpdateTagReq) GetEditSummaryOk() (*string, bool)` + +GetEditSummaryOk returns a tuple with the EditSummary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEditSummary + +`func (o *SchemaUpdateTagReq) SetEditSummary(v string)` + +SetEditSummary sets EditSummary field to given value. + +### HasEditSummary + +`func (o *SchemaUpdateTagReq) HasEditSummary() bool` + +HasEditSummary returns a boolean if a field has been set. + +### GetOriginalText + +`func (o *SchemaUpdateTagReq) GetOriginalText() string` + +GetOriginalText returns the OriginalText field if non-nil, zero value otherwise. + +### GetOriginalTextOk + +`func (o *SchemaUpdateTagReq) GetOriginalTextOk() (*string, bool)` + +GetOriginalTextOk returns a tuple with the OriginalText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalText + +`func (o *SchemaUpdateTagReq) SetOriginalText(v string)` + +SetOriginalText sets OriginalText field to given value. + +### HasOriginalText + +`func (o *SchemaUpdateTagReq) HasOriginalText() bool` + +HasOriginalText returns a boolean if a field has been set. + +### GetSlugName + +`func (o *SchemaUpdateTagReq) GetSlugName() string` + +GetSlugName returns the SlugName field if non-nil, zero value otherwise. + +### GetSlugNameOk + +`func (o *SchemaUpdateTagReq) 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 *SchemaUpdateTagReq) SetSlugName(v string)` + +SetSlugName sets SlugName field to given value. + +### HasSlugName + +`func (o *SchemaUpdateTagReq) HasSlugName() bool` + +HasSlugName returns a boolean if a field has been set. + +### GetTagId + +`func (o *SchemaUpdateTagReq) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *SchemaUpdateTagReq) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *SchemaUpdateTagReq) SetTagId(v string)` + +SetTagId sets TagId 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/SchemaUpdateTagSynonymReq.md b/docs/SchemaUpdateTagSynonymReq.md new file mode 100644 index 0000000..bc16ebc --- /dev/null +++ b/docs/SchemaUpdateTagSynonymReq.md @@ -0,0 +1,72 @@ +# SchemaUpdateTagSynonymReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SynonymTagList** | [**[]SchemaTagItem**](SchemaTagItem.md) | synonym tag list | +**TagId** | **string** | tag_id | + +## Methods + +### NewSchemaUpdateTagSynonymReq + +`func NewSchemaUpdateTagSynonymReq(synonymTagList []SchemaTagItem, tagId string, ) *SchemaUpdateTagSynonymReq` + +NewSchemaUpdateTagSynonymReq instantiates a new SchemaUpdateTagSynonymReq 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 + +### NewSchemaUpdateTagSynonymReqWithDefaults + +`func NewSchemaUpdateTagSynonymReqWithDefaults() *SchemaUpdateTagSynonymReq` + +NewSchemaUpdateTagSynonymReqWithDefaults instantiates a new SchemaUpdateTagSynonymReq 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 + +### GetSynonymTagList + +`func (o *SchemaUpdateTagSynonymReq) GetSynonymTagList() []SchemaTagItem` + +GetSynonymTagList returns the SynonymTagList field if non-nil, zero value otherwise. + +### GetSynonymTagListOk + +`func (o *SchemaUpdateTagSynonymReq) GetSynonymTagListOk() (*[]SchemaTagItem, bool)` + +GetSynonymTagListOk returns a tuple with the SynonymTagList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSynonymTagList + +`func (o *SchemaUpdateTagSynonymReq) SetSynonymTagList(v []SchemaTagItem)` + +SetSynonymTagList sets SynonymTagList field to given value. + + +### GetTagId + +`func (o *SchemaUpdateTagSynonymReq) GetTagId() string` + +GetTagId returns the TagId field if non-nil, zero value otherwise. + +### GetTagIdOk + +`func (o *SchemaUpdateTagSynonymReq) GetTagIdOk() (*string, bool)` + +GetTagIdOk returns a tuple with the TagId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagId + +`func (o *SchemaUpdateTagSynonymReq) SetTagId(v string)` + +SetTagId sets TagId 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/SchemaUpdateUserInterfaceRequest.md b/docs/SchemaUpdateUserInterfaceRequest.md new file mode 100644 index 0000000..dce8cd9 --- /dev/null +++ b/docs/SchemaUpdateUserInterfaceRequest.md @@ -0,0 +1,51 @@ +# SchemaUpdateUserInterfaceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Language** | **string** | language | + +## Methods + +### NewSchemaUpdateUserInterfaceRequest + +`func NewSchemaUpdateUserInterfaceRequest(language string, ) *SchemaUpdateUserInterfaceRequest` + +NewSchemaUpdateUserInterfaceRequest instantiates a new SchemaUpdateUserInterfaceRequest 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 + +### NewSchemaUpdateUserInterfaceRequestWithDefaults + +`func NewSchemaUpdateUserInterfaceRequestWithDefaults() *SchemaUpdateUserInterfaceRequest` + +NewSchemaUpdateUserInterfaceRequestWithDefaults instantiates a new SchemaUpdateUserInterfaceRequest 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 + +### GetLanguage + +`func (o *SchemaUpdateUserInterfaceRequest) GetLanguage() string` + +GetLanguage returns the Language field if non-nil, zero value otherwise. + +### GetLanguageOk + +`func (o *SchemaUpdateUserInterfaceRequest) 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 *SchemaUpdateUserInterfaceRequest) SetLanguage(v string)` + +SetLanguage sets Language 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/SchemaUpdateUserPasswordReq.md b/docs/SchemaUpdateUserPasswordReq.md new file mode 100644 index 0000000..5c7e711 --- /dev/null +++ b/docs/SchemaUpdateUserPasswordReq.md @@ -0,0 +1,72 @@ +# SchemaUpdateUserPasswordReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Password** | **string** | | +**UserId** | **string** | | + +## Methods + +### NewSchemaUpdateUserPasswordReq + +`func NewSchemaUpdateUserPasswordReq(password string, userId string, ) *SchemaUpdateUserPasswordReq` + +NewSchemaUpdateUserPasswordReq instantiates a new SchemaUpdateUserPasswordReq 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 + +### NewSchemaUpdateUserPasswordReqWithDefaults + +`func NewSchemaUpdateUserPasswordReqWithDefaults() *SchemaUpdateUserPasswordReq` + +NewSchemaUpdateUserPasswordReqWithDefaults instantiates a new SchemaUpdateUserPasswordReq 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 + +### GetPassword + +`func (o *SchemaUpdateUserPasswordReq) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *SchemaUpdateUserPasswordReq) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *SchemaUpdateUserPasswordReq) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetUserId + +`func (o *SchemaUpdateUserPasswordReq) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *SchemaUpdateUserPasswordReq) 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 *SchemaUpdateUserPasswordReq) 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/SchemaUpdateUserRoleReq.md b/docs/SchemaUpdateUserRoleReq.md new file mode 100644 index 0000000..59ba45a --- /dev/null +++ b/docs/SchemaUpdateUserRoleReq.md @@ -0,0 +1,72 @@ +# SchemaUpdateUserRoleReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **int32** | role id | +**UserId** | **string** | user id | + +## Methods + +### NewSchemaUpdateUserRoleReq + +`func NewSchemaUpdateUserRoleReq(roleId int32, userId string, ) *SchemaUpdateUserRoleReq` + +NewSchemaUpdateUserRoleReq instantiates a new SchemaUpdateUserRoleReq 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 + +### NewSchemaUpdateUserRoleReqWithDefaults + +`func NewSchemaUpdateUserRoleReqWithDefaults() *SchemaUpdateUserRoleReq` + +NewSchemaUpdateUserRoleReqWithDefaults instantiates a new SchemaUpdateUserRoleReq 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 + +### GetRoleId + +`func (o *SchemaUpdateUserRoleReq) GetRoleId() int32` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *SchemaUpdateUserRoleReq) 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 *SchemaUpdateUserRoleReq) SetRoleId(v int32)` + +SetRoleId sets RoleId field to given value. + + +### GetUserId + +`func (o *SchemaUpdateUserRoleReq) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *SchemaUpdateUserRoleReq) 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 *SchemaUpdateUserRoleReq) 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/SchemaUpdateUserStatusReq.md b/docs/SchemaUpdateUserStatusReq.md new file mode 100644 index 0000000..e049e97 --- /dev/null +++ b/docs/SchemaUpdateUserStatusReq.md @@ -0,0 +1,72 @@ +# SchemaUpdateUserStatusReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | +**UserId** | **string** | | + +## Methods + +### NewSchemaUpdateUserStatusReq + +`func NewSchemaUpdateUserStatusReq(status string, userId string, ) *SchemaUpdateUserStatusReq` + +NewSchemaUpdateUserStatusReq instantiates a new SchemaUpdateUserStatusReq 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 + +### NewSchemaUpdateUserStatusReqWithDefaults + +`func NewSchemaUpdateUserStatusReqWithDefaults() *SchemaUpdateUserStatusReq` + +NewSchemaUpdateUserStatusReqWithDefaults instantiates a new SchemaUpdateUserStatusReq 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 + +### GetStatus + +`func (o *SchemaUpdateUserStatusReq) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaUpdateUserStatusReq) 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 *SchemaUpdateUserStatusReq) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetUserId + +`func (o *SchemaUpdateUserStatusReq) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *SchemaUpdateUserStatusReq) 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 *SchemaUpdateUserStatusReq) 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/SchemaUserBasicInfo.md b/docs/SchemaUserBasicInfo.md new file mode 100644 index 0000000..0795211 --- /dev/null +++ b/docs/SchemaUserBasicInfo.md @@ -0,0 +1,264 @@ +# SchemaUserBasicInfo + +## 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 + +### NewSchemaUserBasicInfo + +`func NewSchemaUserBasicInfo() *SchemaUserBasicInfo` + +NewSchemaUserBasicInfo instantiates a new SchemaUserBasicInfo 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 + +### NewSchemaUserBasicInfoWithDefaults + +`func NewSchemaUserBasicInfoWithDefaults() *SchemaUserBasicInfo` + +NewSchemaUserBasicInfoWithDefaults instantiates a new SchemaUserBasicInfo 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 *SchemaUserBasicInfo) GetAvatar() string` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetAvatar(v string)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *SchemaUserBasicInfo) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaUserBasicInfo) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaUserBasicInfo) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetId + +`func (o *SchemaUserBasicInfo) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *SchemaUserBasicInfo) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIpInfo + +`func (o *SchemaUserBasicInfo) GetIpInfo() string` + +GetIpInfo returns the IpInfo field if non-nil, zero value otherwise. + +### GetIpInfoOk + +`func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetIpInfo(v string)` + +SetIpInfo sets IpInfo field to given value. + +### HasIpInfo + +`func (o *SchemaUserBasicInfo) HasIpInfo() bool` + +HasIpInfo returns a boolean if a field has been set. + +### GetLocation + +`func (o *SchemaUserBasicInfo) GetLocation() string` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetLocation(v string)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *SchemaUserBasicInfo) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### GetRank + +`func (o *SchemaUserBasicInfo) GetRank() int32` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetRank(v int32)` + +SetRank sets Rank field to given value. + +### HasRank + +`func (o *SchemaUserBasicInfo) HasRank() bool` + +HasRank returns a boolean if a field has been set. + +### GetStatus + +`func (o *SchemaUserBasicInfo) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SchemaUserBasicInfo) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaUserBasicInfo) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaUserBasicInfo) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetWebsite + +`func (o *SchemaUserBasicInfo) GetWebsite() string` + +GetWebsite returns the Website field if non-nil, zero value otherwise. + +### GetWebsiteOk + +`func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetWebsite(v string)` + +SetWebsite sets Website field to given value. + +### HasWebsite + +`func (o *SchemaUserBasicInfo) 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/SchemaUserChangeEmailSendCodeReq.md b/docs/SchemaUserChangeEmailSendCodeReq.md new file mode 100644 index 0000000..e826f71 --- /dev/null +++ b/docs/SchemaUserChangeEmailSendCodeReq.md @@ -0,0 +1,103 @@ +# SchemaUserChangeEmailSendCodeReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | | [optional] +**CaptchaId** | Pointer to **string** | | [optional] +**EMail** | **string** | | + +## Methods + +### NewSchemaUserChangeEmailSendCodeReq + +`func NewSchemaUserChangeEmailSendCodeReq(eMail string, ) *SchemaUserChangeEmailSendCodeReq` + +NewSchemaUserChangeEmailSendCodeReq instantiates a new SchemaUserChangeEmailSendCodeReq 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 + +### NewSchemaUserChangeEmailSendCodeReqWithDefaults + +`func NewSchemaUserChangeEmailSendCodeReqWithDefaults() *SchemaUserChangeEmailSendCodeReq` + +NewSchemaUserChangeEmailSendCodeReqWithDefaults instantiates a new SchemaUserChangeEmailSendCodeReq 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 *SchemaUserChangeEmailSendCodeReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaUserChangeEmailSendCodeReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaUserChangeEmailSendCodeReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaUserChangeEmailSendCodeReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + +### GetEMail + +`func (o *SchemaUserChangeEmailSendCodeReq) GetEMail() string` + +GetEMail returns the EMail field if non-nil, zero value otherwise. + +### GetEMailOk + +`func (o *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) SetEMail(v string)` + +SetEMail sets EMail 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/SchemaUserChangeEmailVerifyReq.md b/docs/SchemaUserChangeEmailVerifyReq.md new file mode 100644 index 0000000..6427039 --- /dev/null +++ b/docs/SchemaUserChangeEmailVerifyReq.md @@ -0,0 +1,51 @@ +# SchemaUserChangeEmailVerifyReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **string** | | + +## Methods + +### NewSchemaUserChangeEmailVerifyReq + +`func NewSchemaUserChangeEmailVerifyReq(code string, ) *SchemaUserChangeEmailVerifyReq` + +NewSchemaUserChangeEmailVerifyReq instantiates a new SchemaUserChangeEmailVerifyReq 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 + +### NewSchemaUserChangeEmailVerifyReqWithDefaults + +`func NewSchemaUserChangeEmailVerifyReqWithDefaults() *SchemaUserChangeEmailVerifyReq` + +NewSchemaUserChangeEmailVerifyReqWithDefaults instantiates a new SchemaUserChangeEmailVerifyReq object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *SchemaUserChangeEmailVerifyReq) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *SchemaUserChangeEmailVerifyReq) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *SchemaUserChangeEmailVerifyReq) SetCode(v string)` + +SetCode sets Code field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaUserEmailLogin.md b/docs/SchemaUserEmailLogin.md new file mode 100644 index 0000000..5862846 --- /dev/null +++ b/docs/SchemaUserEmailLogin.md @@ -0,0 +1,124 @@ +# SchemaUserEmailLogin + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | captcha_code | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] +**EMail** | **string** | e_mail | +**Pass** | **string** | password | + +## Methods + +### NewSchemaUserEmailLogin + +`func NewSchemaUserEmailLogin(eMail string, pass string, ) *SchemaUserEmailLogin` + +NewSchemaUserEmailLogin instantiates a new SchemaUserEmailLogin object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaUserEmailLoginWithDefaults + +`func NewSchemaUserEmailLoginWithDefaults() *SchemaUserEmailLogin` + +NewSchemaUserEmailLoginWithDefaults instantiates a new SchemaUserEmailLogin object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCaptchaCode + +`func (o *SchemaUserEmailLogin) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaUserEmailLogin) GetCaptchaCodeOk() (*string, bool)` + +GetCaptchaCodeOk returns a tuple with the CaptchaCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaptchaCode + +`func (o *SchemaUserEmailLogin) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaUserEmailLogin) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaUserEmailLogin) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaUserEmailLogin) GetCaptchaIdOk() (*string, bool)` + +GetCaptchaIdOk returns a tuple with the CaptchaId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCaptchaId + +`func (o *SchemaUserEmailLogin) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaUserEmailLogin) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + +### GetEMail + +`func (o *SchemaUserEmailLogin) GetEMail() string` + +GetEMail returns the EMail field if non-nil, zero value otherwise. + +### GetEMailOk + +`func (o *SchemaUserEmailLogin) GetEMailOk() (*string, bool)` + +GetEMailOk returns a tuple with the EMail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEMail + +`func (o *SchemaUserEmailLogin) SetEMail(v string)` + +SetEMail sets EMail field to given value. + + +### GetPass + +`func (o *SchemaUserEmailLogin) GetPass() string` + +GetPass returns the Pass field if non-nil, zero value otherwise. + +### GetPassOk + +`func (o *SchemaUserEmailLogin) GetPassOk() (*string, bool)` + +GetPassOk returns a tuple with the Pass field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPass + +`func (o *SchemaUserEmailLogin) SetPass(v string)` + +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/SchemaUserModifyPassWordRequest.md b/docs/SchemaUserModifyPassWordRequest.md new file mode 100644 index 0000000..2ef6954 --- /dev/null +++ b/docs/SchemaUserModifyPassWordRequest.md @@ -0,0 +1,82 @@ +# SchemaUserModifyPassWordRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OldPass** | Pointer to **string** | old password | [optional] +**Pass** | Pointer to **string** | password | [optional] + +## Methods + +### NewSchemaUserModifyPassWordRequest + +`func NewSchemaUserModifyPassWordRequest() *SchemaUserModifyPassWordRequest` + +NewSchemaUserModifyPassWordRequest instantiates a new SchemaUserModifyPassWordRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaUserModifyPassWordRequestWithDefaults + +`func NewSchemaUserModifyPassWordRequestWithDefaults() *SchemaUserModifyPassWordRequest` + +NewSchemaUserModifyPassWordRequestWithDefaults instantiates a new SchemaUserModifyPassWordRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOldPass + +`func (o *SchemaUserModifyPassWordRequest) GetOldPass() string` + +GetOldPass returns the OldPass field if non-nil, zero value otherwise. + +### GetOldPassOk + +`func (o *SchemaUserModifyPassWordRequest) GetOldPassOk() (*string, bool)` + +GetOldPassOk returns a tuple with the OldPass field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOldPass + +`func (o *SchemaUserModifyPassWordRequest) SetOldPass(v string)` + +SetOldPass sets OldPass field to given value. + +### HasOldPass + +`func (o *SchemaUserModifyPassWordRequest) HasOldPass() bool` + +HasOldPass returns a boolean if a field has been set. + +### GetPass + +`func (o *SchemaUserModifyPassWordRequest) GetPass() string` + +GetPass returns the Pass field if non-nil, zero value otherwise. + +### GetPassOk + +`func (o *SchemaUserModifyPassWordRequest) GetPassOk() (*string, bool)` + +GetPassOk returns a tuple with the Pass field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPass + +`func (o *SchemaUserModifyPassWordRequest) SetPass(v string)` + +SetPass sets Pass field to given value. + +### HasPass + +`func (o *SchemaUserModifyPassWordRequest) HasPass() bool` + +HasPass returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaUserNoticeSetRequest.md b/docs/SchemaUserNoticeSetRequest.md new file mode 100644 index 0000000..2581c5b --- /dev/null +++ b/docs/SchemaUserNoticeSetRequest.md @@ -0,0 +1,56 @@ +# SchemaUserNoticeSetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NoticeSwitch** | Pointer to **bool** | | [optional] + +## Methods + +### NewSchemaUserNoticeSetRequest + +`func NewSchemaUserNoticeSetRequest() *SchemaUserNoticeSetRequest` + +NewSchemaUserNoticeSetRequest instantiates a new SchemaUserNoticeSetRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaUserNoticeSetRequestWithDefaults + +`func NewSchemaUserNoticeSetRequestWithDefaults() *SchemaUserNoticeSetRequest` + +NewSchemaUserNoticeSetRequestWithDefaults instantiates a new SchemaUserNoticeSetRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNoticeSwitch + +`func (o *SchemaUserNoticeSetRequest) GetNoticeSwitch() bool` + +GetNoticeSwitch returns the NoticeSwitch field if non-nil, zero value otherwise. + +### GetNoticeSwitchOk + +`func (o *SchemaUserNoticeSetRequest) GetNoticeSwitchOk() (*bool, bool)` + +GetNoticeSwitchOk returns a tuple with the NoticeSwitch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNoticeSwitch + +`func (o *SchemaUserNoticeSetRequest) SetNoticeSwitch(v bool)` + +SetNoticeSwitch sets NoticeSwitch field to given value. + +### HasNoticeSwitch + +`func (o *SchemaUserNoticeSetRequest) HasNoticeSwitch() bool` + +HasNoticeSwitch returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaUserNoticeSetResp.md b/docs/SchemaUserNoticeSetResp.md new file mode 100644 index 0000000..137fabd --- /dev/null +++ b/docs/SchemaUserNoticeSetResp.md @@ -0,0 +1,56 @@ +# SchemaUserNoticeSetResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NoticeSwitch** | Pointer to **bool** | | [optional] + +## Methods + +### NewSchemaUserNoticeSetResp + +`func NewSchemaUserNoticeSetResp() *SchemaUserNoticeSetResp` + +NewSchemaUserNoticeSetResp instantiates a new SchemaUserNoticeSetResp object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSchemaUserNoticeSetRespWithDefaults + +`func NewSchemaUserNoticeSetRespWithDefaults() *SchemaUserNoticeSetResp` + +NewSchemaUserNoticeSetRespWithDefaults instantiates a new SchemaUserNoticeSetResp object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNoticeSwitch + +`func (o *SchemaUserNoticeSetResp) GetNoticeSwitch() bool` + +GetNoticeSwitch returns the NoticeSwitch field if non-nil, zero value otherwise. + +### GetNoticeSwitchOk + +`func (o *SchemaUserNoticeSetResp) GetNoticeSwitchOk() (*bool, bool)` + +GetNoticeSwitchOk returns a tuple with the NoticeSwitch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNoticeSwitch + +`func (o *SchemaUserNoticeSetResp) SetNoticeSwitch(v bool)` + +SetNoticeSwitch sets NoticeSwitch field to given value. + +### HasNoticeSwitch + +`func (o *SchemaUserNoticeSetResp) HasNoticeSwitch() bool` + +HasNoticeSwitch returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SchemaUserRankingResp.md b/docs/SchemaUserRankingResp.md new file mode 100644 index 0000000..8033176 --- /dev/null +++ b/docs/SchemaUserRankingResp.md @@ -0,0 +1,108 @@ +# SchemaUserRankingResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Staffs** | Pointer to [**[]SchemaUserRankingSimpleInfo**](SchemaUserRankingSimpleInfo.md) | | [optional] +**UsersWithTheMostReputation** | Pointer to [**[]SchemaUserRankingSimpleInfo**](SchemaUserRankingSimpleInfo.md) | | [optional] +**UsersWithTheMostVote** | Pointer to [**[]SchemaUserRankingSimpleInfo**](SchemaUserRankingSimpleInfo.md) | | [optional] + +## Methods + +### NewSchemaUserRankingResp + +`func NewSchemaUserRankingResp() *SchemaUserRankingResp` + +NewSchemaUserRankingResp instantiates a new SchemaUserRankingResp 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 + +### NewSchemaUserRankingRespWithDefaults + +`func NewSchemaUserRankingRespWithDefaults() *SchemaUserRankingResp` + +NewSchemaUserRankingRespWithDefaults instantiates a new SchemaUserRankingResp 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 + +### GetStaffs + +`func (o *SchemaUserRankingResp) GetStaffs() []SchemaUserRankingSimpleInfo` + +GetStaffs returns the Staffs field if non-nil, zero value otherwise. + +### GetStaffsOk + +`func (o *SchemaUserRankingResp) GetStaffsOk() (*[]SchemaUserRankingSimpleInfo, bool)` + +GetStaffsOk returns a tuple with the Staffs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStaffs + +`func (o *SchemaUserRankingResp) SetStaffs(v []SchemaUserRankingSimpleInfo)` + +SetStaffs sets Staffs field to given value. + +### HasStaffs + +`func (o *SchemaUserRankingResp) HasStaffs() bool` + +HasStaffs returns a boolean if a field has been set. + +### GetUsersWithTheMostReputation + +`func (o *SchemaUserRankingResp) GetUsersWithTheMostReputation() []SchemaUserRankingSimpleInfo` + +GetUsersWithTheMostReputation returns the UsersWithTheMostReputation field if non-nil, zero value otherwise. + +### GetUsersWithTheMostReputationOk + +`func (o *SchemaUserRankingResp) GetUsersWithTheMostReputationOk() (*[]SchemaUserRankingSimpleInfo, bool)` + +GetUsersWithTheMostReputationOk returns a tuple with the UsersWithTheMostReputation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsersWithTheMostReputation + +`func (o *SchemaUserRankingResp) SetUsersWithTheMostReputation(v []SchemaUserRankingSimpleInfo)` + +SetUsersWithTheMostReputation sets UsersWithTheMostReputation field to given value. + +### HasUsersWithTheMostReputation + +`func (o *SchemaUserRankingResp) HasUsersWithTheMostReputation() bool` + +HasUsersWithTheMostReputation returns a boolean if a field has been set. + +### GetUsersWithTheMostVote + +`func (o *SchemaUserRankingResp) GetUsersWithTheMostVote() []SchemaUserRankingSimpleInfo` + +GetUsersWithTheMostVote returns the UsersWithTheMostVote field if non-nil, zero value otherwise. + +### GetUsersWithTheMostVoteOk + +`func (o *SchemaUserRankingResp) GetUsersWithTheMostVoteOk() (*[]SchemaUserRankingSimpleInfo, bool)` + +GetUsersWithTheMostVoteOk returns a tuple with the UsersWithTheMostVote field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsersWithTheMostVote + +`func (o *SchemaUserRankingResp) SetUsersWithTheMostVote(v []SchemaUserRankingSimpleInfo)` + +SetUsersWithTheMostVote sets UsersWithTheMostVote field to given value. + +### HasUsersWithTheMostVote + +`func (o *SchemaUserRankingResp) HasUsersWithTheMostVote() bool` + +HasUsersWithTheMostVote 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/SchemaUserRankingSimpleInfo.md b/docs/SchemaUserRankingSimpleInfo.md new file mode 100644 index 0000000..8a4113d --- /dev/null +++ b/docs/SchemaUserRankingSimpleInfo.md @@ -0,0 +1,160 @@ +# SchemaUserRankingSimpleInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Avatar** | Pointer to **string** | avatar | [optional] +**DisplayName** | Pointer to **string** | display name | [optional] +**Rank** | Pointer to **int32** | rank | [optional] +**Username** | Pointer to **string** | username | [optional] +**VoteCount** | Pointer to **int32** | vote | [optional] + +## Methods + +### NewSchemaUserRankingSimpleInfo + +`func NewSchemaUserRankingSimpleInfo() *SchemaUserRankingSimpleInfo` + +NewSchemaUserRankingSimpleInfo instantiates a new SchemaUserRankingSimpleInfo 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 + +### NewSchemaUserRankingSimpleInfoWithDefaults + +`func NewSchemaUserRankingSimpleInfoWithDefaults() *SchemaUserRankingSimpleInfo` + +NewSchemaUserRankingSimpleInfoWithDefaults instantiates a new SchemaUserRankingSimpleInfo 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 *SchemaUserRankingSimpleInfo) GetAvatar() string` + +GetAvatar returns the Avatar field if non-nil, zero value otherwise. + +### GetAvatarOk + +`func (o *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) SetAvatar(v string)` + +SetAvatar sets Avatar field to given value. + +### HasAvatar + +`func (o *SchemaUserRankingSimpleInfo) HasAvatar() bool` + +HasAvatar returns a boolean if a field has been set. + +### GetDisplayName + +`func (o *SchemaUserRankingSimpleInfo) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *SchemaUserRankingSimpleInfo) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetRank + +`func (o *SchemaUserRankingSimpleInfo) GetRank() int32` + +GetRank returns the Rank field if non-nil, zero value otherwise. + +### GetRankOk + +`func (o *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) SetRank(v int32)` + +SetRank sets Rank field to given value. + +### HasRank + +`func (o *SchemaUserRankingSimpleInfo) HasRank() bool` + +HasRank returns a boolean if a field has been set. + +### GetUsername + +`func (o *SchemaUserRankingSimpleInfo) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *SchemaUserRankingSimpleInfo) HasUsername() bool` + +HasUsername returns a boolean if a field has been set. + +### GetVoteCount + +`func (o *SchemaUserRankingSimpleInfo) GetVoteCount() int32` + +GetVoteCount returns the VoteCount field if non-nil, zero value otherwise. + +### GetVoteCountOk + +`func (o *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) SetVoteCount(v int32)` + +SetVoteCount sets VoteCount field to given value. + +### HasVoteCount + +`func (o *SchemaUserRankingSimpleInfo) 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/SchemaUserRePassWordRequest.md b/docs/SchemaUserRePassWordRequest.md new file mode 100644 index 0000000..01df100 --- /dev/null +++ b/docs/SchemaUserRePassWordRequest.md @@ -0,0 +1,72 @@ +# SchemaUserRePassWordRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **string** | code | +**Pass** | **string** | Password | + +## Methods + +### NewSchemaUserRePassWordRequest + +`func NewSchemaUserRePassWordRequest(code string, pass string, ) *SchemaUserRePassWordRequest` + +NewSchemaUserRePassWordRequest instantiates a new SchemaUserRePassWordRequest 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 + +### NewSchemaUserRePassWordRequestWithDefaults + +`func NewSchemaUserRePassWordRequestWithDefaults() *SchemaUserRePassWordRequest` + +NewSchemaUserRePassWordRequestWithDefaults instantiates a new SchemaUserRePassWordRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCode + +`func (o *SchemaUserRePassWordRequest) GetCode() string` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *SchemaUserRePassWordRequest) GetCodeOk() (*string, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *SchemaUserRePassWordRequest) SetCode(v string)` + +SetCode sets Code field to given value. + + +### GetPass + +`func (o *SchemaUserRePassWordRequest) GetPass() string` + +GetPass returns the Pass field if non-nil, zero value otherwise. + +### GetPassOk + +`func (o *SchemaUserRePassWordRequest) 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 *SchemaUserRePassWordRequest) 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/SchemaUserRegisterReq.md b/docs/SchemaUserRegisterReq.md new file mode 100644 index 0000000..1f1be11 --- /dev/null +++ b/docs/SchemaUserRegisterReq.md @@ -0,0 +1,145 @@ +# SchemaUserRegisterReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | captcha_code | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] +**EMail** | **string** | email | +**Name** | **string** | name | +**Pass** | **string** | password | + +## Methods + +### NewSchemaUserRegisterReq + +`func NewSchemaUserRegisterReq(eMail string, name string, pass string, ) *SchemaUserRegisterReq` + +NewSchemaUserRegisterReq instantiates a new SchemaUserRegisterReq 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 + +### NewSchemaUserRegisterReqWithDefaults + +`func NewSchemaUserRegisterReqWithDefaults() *SchemaUserRegisterReq` + +NewSchemaUserRegisterReqWithDefaults instantiates a new SchemaUserRegisterReq 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 *SchemaUserRegisterReq) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaUserRegisterReq) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaUserRegisterReq) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaUserRegisterReq) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + +### GetEMail + +`func (o *SchemaUserRegisterReq) GetEMail() string` + +GetEMail returns the EMail field if non-nil, zero value otherwise. + +### GetEMailOk + +`func (o *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) SetEMail(v string)` + +SetEMail sets EMail field to given value. + + +### GetName + +`func (o *SchemaUserRegisterReq) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPass + +`func (o *SchemaUserRegisterReq) GetPass() string` + +GetPass returns the Pass field if non-nil, zero value otherwise. + +### GetPassOk + +`func (o *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) 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/SchemaUserRetrievePassWordRequest.md b/docs/SchemaUserRetrievePassWordRequest.md new file mode 100644 index 0000000..757b884 --- /dev/null +++ b/docs/SchemaUserRetrievePassWordRequest.md @@ -0,0 +1,103 @@ +# SchemaUserRetrievePassWordRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CaptchaCode** | Pointer to **string** | captcha_code | [optional] +**CaptchaId** | Pointer to **string** | captcha_id | [optional] +**EMail** | **string** | e_mail | + +## Methods + +### NewSchemaUserRetrievePassWordRequest + +`func NewSchemaUserRetrievePassWordRequest(eMail string, ) *SchemaUserRetrievePassWordRequest` + +NewSchemaUserRetrievePassWordRequest instantiates a new SchemaUserRetrievePassWordRequest 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 + +### NewSchemaUserRetrievePassWordRequestWithDefaults + +`func NewSchemaUserRetrievePassWordRequestWithDefaults() *SchemaUserRetrievePassWordRequest` + +NewSchemaUserRetrievePassWordRequestWithDefaults instantiates a new SchemaUserRetrievePassWordRequest 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 *SchemaUserRetrievePassWordRequest) GetCaptchaCode() string` + +GetCaptchaCode returns the CaptchaCode field if non-nil, zero value otherwise. + +### GetCaptchaCodeOk + +`func (o *SchemaUserRetrievePassWordRequest) 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 *SchemaUserRetrievePassWordRequest) SetCaptchaCode(v string)` + +SetCaptchaCode sets CaptchaCode field to given value. + +### HasCaptchaCode + +`func (o *SchemaUserRetrievePassWordRequest) HasCaptchaCode() bool` + +HasCaptchaCode returns a boolean if a field has been set. + +### GetCaptchaId + +`func (o *SchemaUserRetrievePassWordRequest) GetCaptchaId() string` + +GetCaptchaId returns the CaptchaId field if non-nil, zero value otherwise. + +### GetCaptchaIdOk + +`func (o *SchemaUserRetrievePassWordRequest) 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 *SchemaUserRetrievePassWordRequest) SetCaptchaId(v string)` + +SetCaptchaId sets CaptchaId field to given value. + +### HasCaptchaId + +`func (o *SchemaUserRetrievePassWordRequest) HasCaptchaId() bool` + +HasCaptchaId returns a boolean if a field has been set. + +### GetEMail + +`func (o *SchemaUserRetrievePassWordRequest) GetEMail() string` + +GetEMail returns the EMail field if non-nil, zero value otherwise. + +### GetEMailOk + +`func (o *SchemaUserRetrievePassWordRequest) 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 *SchemaUserRetrievePassWordRequest) SetEMail(v string)` + +SetEMail sets EMail 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 new file mode 100644 index 0000000..a29b112 --- /dev/null +++ b/docs/SchemaVoteReq.md @@ -0,0 +1,77 @@ +# SchemaVoteReq + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsCancel** | Pointer to **bool** | is cancel | [optional] +**ObjectId** | **string** | id | + +## Methods + +### NewSchemaVoteReq + +`func NewSchemaVoteReq(objectId string, ) *SchemaVoteReq` + +NewSchemaVoteReq instantiates a new SchemaVoteReq 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 + +### NewSchemaVoteReqWithDefaults + +`func NewSchemaVoteReqWithDefaults() *SchemaVoteReq` + +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 + +### GetIsCancel + +`func (o *SchemaVoteReq) GetIsCancel() bool` + +GetIsCancel returns the IsCancel field if non-nil, zero value otherwise. + +### GetIsCancelOk + +`func (o *SchemaVoteReq) GetIsCancelOk() (*bool, bool)` + +GetIsCancelOk returns a tuple with the IsCancel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsCancel + +`func (o *SchemaVoteReq) SetIsCancel(v bool)` + +SetIsCancel sets IsCancel field to given value. + +### HasIsCancel + +`func (o *SchemaVoteReq) HasIsCancel() bool` + +HasIsCancel returns a boolean if a field has been set. + +### GetObjectId + +`func (o *SchemaVoteReq) GetObjectId() string` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SchemaVoteReq) 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 *SchemaVoteReq) SetObjectId(v string)` + +SetObjectId sets ObjectId 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/SchemaVoteResp.md b/docs/SchemaVoteResp.md new file mode 100644 index 0000000..d95ddfa --- /dev/null +++ b/docs/SchemaVoteResp.md @@ -0,0 +1,134 @@ +# SchemaVoteResp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DownVotes** | Pointer to **int32** | | [optional] +**UpVotes** | Pointer to **int32** | | [optional] +**VoteStatus** | Pointer to **string** | | [optional] +**Votes** | Pointer to **int32** | | [optional] + +## Methods + +### NewSchemaVoteResp + +`func NewSchemaVoteResp() *SchemaVoteResp` + +NewSchemaVoteResp instantiates a new SchemaVoteResp 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 + +### NewSchemaVoteRespWithDefaults + +`func NewSchemaVoteRespWithDefaults() *SchemaVoteResp` + +NewSchemaVoteRespWithDefaults instantiates a new SchemaVoteResp 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 + +### GetDownVotes + +`func (o *SchemaVoteResp) GetDownVotes() int32` + +GetDownVotes returns the DownVotes field if non-nil, zero value otherwise. + +### GetDownVotesOk + +`func (o *SchemaVoteResp) GetDownVotesOk() (*int32, bool)` + +GetDownVotesOk returns a tuple with the DownVotes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownVotes + +`func (o *SchemaVoteResp) SetDownVotes(v int32)` + +SetDownVotes sets DownVotes field to given value. + +### HasDownVotes + +`func (o *SchemaVoteResp) HasDownVotes() bool` + +HasDownVotes returns a boolean if a field has been set. + +### GetUpVotes + +`func (o *SchemaVoteResp) GetUpVotes() int32` + +GetUpVotes returns the UpVotes field if non-nil, zero value otherwise. + +### GetUpVotesOk + +`func (o *SchemaVoteResp) GetUpVotesOk() (*int32, bool)` + +GetUpVotesOk returns a tuple with the UpVotes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpVotes + +`func (o *SchemaVoteResp) SetUpVotes(v int32)` + +SetUpVotes sets UpVotes field to given value. + +### HasUpVotes + +`func (o *SchemaVoteResp) HasUpVotes() bool` + +HasUpVotes returns a boolean if a field has been set. + +### GetVoteStatus + +`func (o *SchemaVoteResp) GetVoteStatus() string` + +GetVoteStatus returns the VoteStatus field if non-nil, zero value otherwise. + +### GetVoteStatusOk + +`func (o *SchemaVoteResp) GetVoteStatusOk() (*string, bool)` + +GetVoteStatusOk returns a tuple with the VoteStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVoteStatus + +`func (o *SchemaVoteResp) SetVoteStatus(v string)` + +SetVoteStatus sets VoteStatus field to given value. + +### HasVoteStatus + +`func (o *SchemaVoteResp) HasVoteStatus() bool` + +HasVoteStatus returns a boolean if a field has been set. + +### GetVotes + +`func (o *SchemaVoteResp) GetVotes() int32` + +GetVotes returns the Votes field if non-nil, zero value otherwise. + +### GetVotesOk + +`func (o *SchemaVoteResp) GetVotesOk() (*int32, bool)` + +GetVotesOk returns a tuple with the Votes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVotes + +`func (o *SchemaVoteResp) SetVotes(v int32)` + +SetVotes sets Votes field to given value. + +### HasVotes + +`func (o *SchemaVoteResp) HasVotes() bool` + +HasVotes 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/SearchApi.md b/docs/SearchApi.md new file mode 100644 index 0000000..d7c10bc --- /dev/null +++ b/docs/SearchApi.md @@ -0,0 +1,77 @@ +# \SearchApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1SearchGet**](SearchApi.md#AnswerApiV1SearchGet) | **Get** /answer/api/v1/search | search object + + + +## AnswerApiV1SearchGet + +> AnswerApiV1SearchGet200Response AnswerApiV1SearchGet(ctx).Q(q).Order(order).Execute() + +search object + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + q := "q_example" // string | query string + order := "order_example" // string | order + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SearchApi.AnswerApiV1SearchGet(context.Background()).Q(q).Order(order).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SearchApi.AnswerApiV1SearchGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1SearchGet`: AnswerApiV1SearchGet200Response + fmt.Fprintf(os.Stdout, "Response from `SearchApi.AnswerApiV1SearchGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1SearchGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **q** | **string** | query string | + **order** | **string** | order | + +### Return type + +[**AnswerApiV1SearchGet200Response**](AnswerApiV1SearchGet200Response.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/SiteApi.md b/docs/SiteApi.md new file mode 100644 index 0000000..1fa87fe --- /dev/null +++ b/docs/SiteApi.md @@ -0,0 +1,261 @@ +# \SiteApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1SiteinfoGet**](SiteApi.md#AnswerApiV1SiteinfoGet) | **Get** /answer/api/v1/siteinfo | get site info +[**AnswerApiV1SiteinfoLegalGet**](SiteApi.md#AnswerApiV1SiteinfoLegalGet) | **Get** /answer/api/v1/siteinfo/legal | get site legal info +[**CustomCssGet**](SiteApi.md#CustomCssGet) | **Get** /custom.css | get site robots information +[**RobotsTxtGet**](SiteApi.md#RobotsTxtGet) | **Get** /robots.txt | get site robots information + + + +## AnswerApiV1SiteinfoGet + +> AnswerApiV1SiteinfoGet200Response AnswerApiV1SiteinfoGet(ctx).Execute() + +get site info + + + +### 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.SiteApi.AnswerApiV1SiteinfoGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SiteApi.AnswerApiV1SiteinfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1SiteinfoGet`: AnswerApiV1SiteinfoGet200Response + fmt.Fprintf(os.Stdout, "Response from `SiteApi.AnswerApiV1SiteinfoGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1SiteinfoGetRequest struct via the builder pattern + + +### Return type + +[**AnswerApiV1SiteinfoGet200Response**](AnswerApiV1SiteinfoGet200Response.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) + + +## AnswerApiV1SiteinfoLegalGet + +> AnswerApiV1SiteinfoLegalGet200Response AnswerApiV1SiteinfoLegalGet(ctx).InfoType(infoType).Execute() + +get site legal info + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + infoType := "infoType_example" // string | legal information type + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SiteApi.AnswerApiV1SiteinfoLegalGet(context.Background()).InfoType(infoType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SiteApi.AnswerApiV1SiteinfoLegalGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1SiteinfoLegalGet`: AnswerApiV1SiteinfoLegalGet200Response + fmt.Fprintf(os.Stdout, "Response from `SiteApi.AnswerApiV1SiteinfoLegalGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1SiteinfoLegalGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **infoType** | **string** | legal information type | + +### Return type + +[**AnswerApiV1SiteinfoLegalGet200Response**](AnswerApiV1SiteinfoLegalGet200Response.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) + + +## CustomCssGet + +> string CustomCssGet(ctx).Execute() + +get site robots information + + + +### 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.SiteApi.CustomCssGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SiteApi.CustomCssGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CustomCssGet`: string + fmt.Fprintf(os.Stdout, "Response from `SiteApi.CustomCssGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiCustomCssGetRequest struct via the builder pattern + + +### Return type + +**string** + +### 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) + + +## RobotsTxtGet + +> string RobotsTxtGet(ctx).Execute() + +get site robots information + + + +### 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.SiteApi.RobotsTxtGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SiteApi.RobotsTxtGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RobotsTxtGet`: string + fmt.Fprintf(os.Stdout, "Response from `SiteApi.RobotsTxtGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiRobotsTxtGetRequest struct via the builder pattern + + +### Return type + +**string** + +### 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/TagApi.md b/docs/TagApi.md new file mode 100644 index 0000000..95b9cf0 --- /dev/null +++ b/docs/TagApi.md @@ -0,0 +1,681 @@ +# \TagApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1QuestionTagsGet**](TagApi.md#AnswerApiV1QuestionTagsGet) | **Get** /answer/api/v1/question/tags | get tag list +[**AnswerApiV1TagDelete**](TagApi.md#AnswerApiV1TagDelete) | **Delete** /answer/api/v1/tag | delete tag +[**AnswerApiV1TagGet**](TagApi.md#AnswerApiV1TagGet) | **Get** /answer/api/v1/tag | get tag one +[**AnswerApiV1TagPost**](TagApi.md#AnswerApiV1TagPost) | **Post** /answer/api/v1/tag | add tag +[**AnswerApiV1TagPut**](TagApi.md#AnswerApiV1TagPut) | **Put** /answer/api/v1/tag | update tag +[**AnswerApiV1TagSynonymPut**](TagApi.md#AnswerApiV1TagSynonymPut) | **Put** /answer/api/v1/tag/synonym | update tag +[**AnswerApiV1TagSynonymsGet**](TagApi.md#AnswerApiV1TagSynonymsGet) | **Get** /answer/api/v1/tag/synonyms | get tag synonyms +[**AnswerApiV1TagsFollowingGet**](TagApi.md#AnswerApiV1TagsFollowingGet) | **Get** /answer/api/v1/tags/following | get following tag list +[**AnswerApiV1TagsGet**](TagApi.md#AnswerApiV1TagsGet) | **Get** /answer/api/v1/tags | get tags list +[**AnswerApiV1TagsPageGet**](TagApi.md#AnswerApiV1TagsPageGet) | **Get** /answer/api/v1/tags/page | get tag page + + + +## AnswerApiV1QuestionTagsGet + +> AnswerApiV1QuestionTagsGet200Response AnswerApiV1QuestionTagsGet(ctx).Tag(tag).Execute() + +get tag list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + tag := "tag_example" // string | tag (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagApi.AnswerApiV1QuestionTagsGet(context.Background()).Tag(tag).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1QuestionTagsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1QuestionTagsGet`: AnswerApiV1QuestionTagsGet200Response + fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1QuestionTagsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1QuestionTagsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tag** | **string** | tag | + +### Return type + +[**AnswerApiV1QuestionTagsGet200Response**](AnswerApiV1QuestionTagsGet200Response.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) + + +## AnswerApiV1TagDelete + +> HandlerRespBody AnswerApiV1TagDelete(ctx).Data(data).Execute() + +delete tag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaRemoveTagReq("TagId_example") // SchemaRemoveTagReq | tag + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagApi.AnswerApiV1TagDelete(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1TagDelete`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagDelete`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1TagDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaRemoveTagReq**](SchemaRemoveTagReq.md) | tag | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1TagGet + +> AnswerApiV1TagGet200Response AnswerApiV1TagGet(ctx).TagId(tagId).TagName(tagName).Execute() + +get tag one + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + tagId := "tagId_example" // string | tag id + tagName := "tagName_example" // string | tag name + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagApi.AnswerApiV1TagGet(context.Background()).TagId(tagId).TagName(tagName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1TagGet`: AnswerApiV1TagGet200Response + fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1TagGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tagId** | **string** | tag id | + **tagName** | **string** | tag name | + +### Return type + +[**AnswerApiV1TagGet200Response**](AnswerApiV1TagGet200Response.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) + + +## AnswerApiV1TagPost + +> HandlerRespBody AnswerApiV1TagPost(ctx).Data(data).Execute() + +add tag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaAddTagReq("DisplayName_example", "OriginalText_example", "SlugName_example") // SchemaAddTagReq | tag + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagApi.AnswerApiV1TagPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1TagPost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1TagPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaAddTagReq**](SchemaAddTagReq.md) | tag | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1TagPut + +> HandlerRespBody AnswerApiV1TagPut(ctx).Data(data).Execute() + +update tag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdateTagReq("TagId_example") // SchemaUpdateTagReq | tag + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagApi.AnswerApiV1TagPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1TagPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1TagPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdateTagReq**](SchemaUpdateTagReq.md) | tag | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1TagSynonymPut + +> HandlerRespBody AnswerApiV1TagSynonymPut(ctx).Data(data).Execute() + +update tag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUpdateTagSynonymReq([]openapiclient.SchemaTagItem{*openapiclient.NewSchemaTagItem()}, "TagId_example") // SchemaUpdateTagSynonymReq | tag + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagApi.AnswerApiV1TagSynonymPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagSynonymPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1TagSynonymPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagSynonymPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1TagSynonymPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUpdateTagSynonymReq**](SchemaUpdateTagSynonymReq.md) | tag | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1TagSynonymsGet + +> AnswerApiV1TagSynonymsGet200Response AnswerApiV1TagSynonymsGet(ctx).TagId(tagId).Execute() + +get tag synonyms + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + tagId := int32(56) // int32 | tag id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagApi.AnswerApiV1TagSynonymsGet(context.Background()).TagId(tagId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagSynonymsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1TagSynonymsGet`: AnswerApiV1TagSynonymsGet200Response + fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagSynonymsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1TagSynonymsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tagId** | **int32** | tag id | + +### Return type + +[**AnswerApiV1TagSynonymsGet200Response**](AnswerApiV1TagSynonymsGet200Response.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) + + +## AnswerApiV1TagsFollowingGet + +> AnswerApiV1TagsFollowingGet200Response AnswerApiV1TagsFollowingGet(ctx).Execute() + +get following tag 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.TagApi.AnswerApiV1TagsFollowingGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagsFollowingGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1TagsFollowingGet`: AnswerApiV1TagsFollowingGet200Response + fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagsFollowingGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1TagsFollowingGetRequest struct via the builder pattern + + +### Return type + +[**AnswerApiV1TagsFollowingGet200Response**](AnswerApiV1TagsFollowingGet200Response.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) + + +## AnswerApiV1TagsGet + +> HandlerRespBody AnswerApiV1TagsGet(ctx).Tags(tags).Execute() + +get tags list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + tags := []string{"Inner_example"} // []string | string collection (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagApi.AnswerApiV1TagsGet(context.Background()).Tags(tags).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1TagsGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagsGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1TagsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tags** | **[]string** | string collection | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1TagsPageGet + +> AnswerApiV1TagsPageGet200Response AnswerApiV1TagsPageGet(ctx).Page(page).PageSize(pageSize).SlugName(slugName).QueryCond(queryCond).Execute() + +get tag page + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + page := int32(56) // int32 | page size (optional) + pageSize := int32(56) // int32 | page size (optional) + slugName := "slugName_example" // string | slug_name (optional) + queryCond := "queryCond_example" // string | query condition (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagApi.AnswerApiV1TagsPageGet(context.Background()).Page(page).PageSize(pageSize).SlugName(slugName).QueryCond(queryCond).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagApi.AnswerApiV1TagsPageGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1TagsPageGet`: AnswerApiV1TagsPageGet200Response + fmt.Fprintf(os.Stdout, "Response from `TagApi.AnswerApiV1TagsPageGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1TagsPageGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **int32** | page size | + **pageSize** | **int32** | page size | + **slugName** | **string** | slug_name | + **queryCond** | **string** | query condition | + +### Return type + +[**AnswerApiV1TagsPageGet200Response**](AnswerApiV1TagsPageGet200Response.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/TranslatorLangOption.md b/docs/TranslatorLangOption.md new file mode 100644 index 0000000..5c0e232 --- /dev/null +++ b/docs/TranslatorLangOption.md @@ -0,0 +1,108 @@ +# TranslatorLangOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Label** | Pointer to **string** | | [optional] +**Progress** | Pointer to **int32** | Translation completion percentage | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewTranslatorLangOption + +`func NewTranslatorLangOption() *TranslatorLangOption` + +NewTranslatorLangOption instantiates a new TranslatorLangOption 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 + +### NewTranslatorLangOptionWithDefaults + +`func NewTranslatorLangOptionWithDefaults() *TranslatorLangOption` + +NewTranslatorLangOptionWithDefaults instantiates a new TranslatorLangOption 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 *TranslatorLangOption) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *TranslatorLangOption) 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 *TranslatorLangOption) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *TranslatorLangOption) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetProgress + +`func (o *TranslatorLangOption) GetProgress() int32` + +GetProgress returns the Progress field if non-nil, zero value otherwise. + +### GetProgressOk + +`func (o *TranslatorLangOption) GetProgressOk() (*int32, bool)` + +GetProgressOk returns a tuple with the Progress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProgress + +`func (o *TranslatorLangOption) SetProgress(v int32)` + +SetProgress sets Progress field to given value. + +### HasProgress + +`func (o *TranslatorLangOption) HasProgress() bool` + +HasProgress returns a boolean if a field has been set. + +### GetValue + +`func (o *TranslatorLangOption) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TranslatorLangOption) 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 *TranslatorLangOption) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TranslatorLangOption) 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/UploadApi.md b/docs/UploadApi.md new file mode 100644 index 0000000..39f542d --- /dev/null +++ b/docs/UploadApi.md @@ -0,0 +1,144 @@ +# \UploadApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1FilePost**](UploadApi.md#AnswerApiV1FilePost) | **Post** /answer/api/v1/file | upload file +[**AnswerApiV1PostRenderPost**](UploadApi.md#AnswerApiV1PostRenderPost) | **Post** /answer/api/v1/post/render | render post content + + + +## AnswerApiV1FilePost + +> AnswerApiV1FilePost200Response AnswerApiV1FilePost(ctx).Source(source).File(file).Execute() + +upload file + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + source := "source_example" // string | identify the source of the file upload + file := os.NewFile(1234, "some_file") // *os.File | file + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UploadApi.AnswerApiV1FilePost(context.Background()).Source(source).File(file).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UploadApi.AnswerApiV1FilePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1FilePost`: AnswerApiV1FilePost200Response + fmt.Fprintf(os.Stdout, "Response from `UploadApi.AnswerApiV1FilePost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1FilePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **source** | **string** | identify the source of the file upload | + **file** | ***os.File** | file | + +### Return type + +[**AnswerApiV1FilePost200Response**](AnswerApiV1FilePost200Response.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: multipart/form-data +- **Accept**: */* + +[[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) + + +## AnswerApiV1PostRenderPost + +> HandlerRespBody AnswerApiV1PostRenderPost(ctx).Data(data).Execute() + +render post content + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaPostRenderReq() // SchemaPostRenderReq | PostRenderReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UploadApi.AnswerApiV1PostRenderPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UploadApi.AnswerApiV1PostRenderPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1PostRenderPost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `UploadApi.AnswerApiV1PostRenderPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1PostRenderPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaPostRenderReq**](SchemaPostRenderReq.md) | PostRenderReq | + +### 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/UserApi.md b/docs/UserApi.md new file mode 100644 index 0000000..81255e5 --- /dev/null +++ b/docs/UserApi.md @@ -0,0 +1,1262 @@ +# \UserApi + +All URIs are relative to *http://127.0.0.1:80* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AnswerApiV1PersonalUserInfoGet**](UserApi.md#AnswerApiV1PersonalUserInfoGet) | **Get** /answer/api/v1/personal/user/info | GetOtherUserInfoByUsername +[**AnswerApiV1UserActionRecordGet**](UserApi.md#AnswerApiV1UserActionRecordGet) | **Get** /answer/api/v1/user/action/record | ActionRecord +[**AnswerApiV1UserEmailChangeCodePost**](UserApi.md#AnswerApiV1UserEmailChangeCodePost) | **Post** /answer/api/v1/user/email/change/code | send email to the user email then change their email +[**AnswerApiV1UserEmailNotificationPut**](UserApi.md#AnswerApiV1UserEmailNotificationPut) | **Put** /answer/api/v1/user/email/notification | unsubscribe email notification +[**AnswerApiV1UserEmailPut**](UserApi.md#AnswerApiV1UserEmailPut) | **Put** /answer/api/v1/user/email | user change email verification +[**AnswerApiV1UserEmailVerificationPost**](UserApi.md#AnswerApiV1UserEmailVerificationPost) | **Post** /answer/api/v1/user/email/verification | UserVerifyEmail +[**AnswerApiV1UserEmailVerificationSendPost**](UserApi.md#AnswerApiV1UserEmailVerificationSendPost) | **Post** /answer/api/v1/user/email/verification/send | UserVerifyEmailSend +[**AnswerApiV1UserInfoGet**](UserApi.md#AnswerApiV1UserInfoGet) | **Get** /answer/api/v1/user/info | GetUserInfoByUserID +[**AnswerApiV1UserInfoPut**](UserApi.md#AnswerApiV1UserInfoPut) | **Put** /answer/api/v1/user/info | UserUpdateInfo update user info +[**AnswerApiV1UserInterfacePut**](UserApi.md#AnswerApiV1UserInterfacePut) | **Put** /answer/api/v1/user/interface | UserUpdateInterface update user interface config +[**AnswerApiV1UserLoginEmailPost**](UserApi.md#AnswerApiV1UserLoginEmailPost) | **Post** /answer/api/v1/user/login/email | UserEmailLogin +[**AnswerApiV1UserLogoutGet**](UserApi.md#AnswerApiV1UserLogoutGet) | **Get** /answer/api/v1/user/logout | user logout +[**AnswerApiV1UserNoticeSetPost**](UserApi.md#AnswerApiV1UserNoticeSetPost) | **Post** /answer/api/v1/user/notice/set | UserNoticeSet +[**AnswerApiV1UserPasswordPut**](UserApi.md#AnswerApiV1UserPasswordPut) | **Put** /answer/api/v1/user/password | UserModifyPassWord +[**AnswerApiV1UserPasswordReplacementPost**](UserApi.md#AnswerApiV1UserPasswordReplacementPost) | **Post** /answer/api/v1/user/password/replacement | UseRePassWord +[**AnswerApiV1UserPasswordResetPost**](UserApi.md#AnswerApiV1UserPasswordResetPost) | **Post** /answer/api/v1/user/password/reset | RetrievePassWord +[**AnswerApiV1UserRankingGet**](UserApi.md#AnswerApiV1UserRankingGet) | **Get** /answer/api/v1/user/ranking | get user ranking +[**AnswerApiV1UserRegisterCaptchaGet**](UserApi.md#AnswerApiV1UserRegisterCaptchaGet) | **Get** /answer/api/v1/user/register/captcha | UserRegisterCaptcha +[**AnswerApiV1UserRegisterEmailPost**](UserApi.md#AnswerApiV1UserRegisterEmailPost) | **Post** /answer/api/v1/user/register/email | UserRegisterByEmail + + + +## AnswerApiV1PersonalUserInfoGet + +> AnswerApiV1PersonalUserInfoGet200Response AnswerApiV1PersonalUserInfoGet(ctx).Username(username).Execute() + +GetOtherUserInfoByUsername + + + +### 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.AnswerApiV1PersonalUserInfoGet(context.Background()).Username(username).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1PersonalUserInfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1PersonalUserInfoGet`: AnswerApiV1PersonalUserInfoGet200Response + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1PersonalUserInfoGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1PersonalUserInfoGetRequest 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) + + +## AnswerApiV1UserActionRecordGet + +> AnswerApiV1UserActionRecordGet200Response AnswerApiV1UserActionRecordGet(ctx).Action(action).Execute() + +ActionRecord + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + action := "action_example" // string | action + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserActionRecordGet(context.Background()).Action(action).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserActionRecordGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserActionRecordGet`: AnswerApiV1UserActionRecordGet200Response + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserActionRecordGet`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserActionRecordGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **action** | **string** | action | + +### Return type + +[**AnswerApiV1UserActionRecordGet200Response**](AnswerApiV1UserActionRecordGet200Response.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + +[[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) + + +## AnswerApiV1UserEmailChangeCodePost + +> HandlerRespBody AnswerApiV1UserEmailChangeCodePost(ctx).Data(data).Execute() + +send email to the user email then change their email + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUserChangeEmailSendCodeReq("EMail_example") // SchemaUserChangeEmailSendCodeReq | UserChangeEmailSendCodeReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailChangeCodePost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailChangeCodePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserEmailChangeCodePost`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailChangeCodePost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailChangeCodePostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUserChangeEmailSendCodeReq**](SchemaUserChangeEmailSendCodeReq.md) | UserChangeEmailSendCodeReq | + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1UserEmailNotificationPut + +> HandlerRespBody AnswerApiV1UserEmailNotificationPut(ctx).Execute() + +unsubscribe email notification + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailNotificationPut(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailNotificationPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserEmailNotificationPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailNotificationPut`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailNotificationPutRequest struct via the builder pattern + + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1UserEmailPut + +> HandlerRespBody AnswerApiV1UserEmailPut(ctx).Data(data).Execute() + +user change email verification + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUserChangeEmailVerifyReq("Code_example") // SchemaUserChangeEmailVerifyReq | UserChangeEmailVerifyReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserEmailPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUserChangeEmailVerifyReq**](SchemaUserChangeEmailVerifyReq.md) | UserChangeEmailVerifyReq | + +### 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) + + +## AnswerApiV1UserEmailVerificationPost + +> AnswerApiV1UserEmailVerificationPost200Response AnswerApiV1UserEmailVerificationPost(ctx).Code(code).Execute() + +UserVerifyEmail + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + code := "code_example" // string | code + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationPost(context.Background()).Code(code).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailVerificationPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserEmailVerificationPost`: AnswerApiV1UserEmailVerificationPost200Response + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailVerificationPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailVerificationPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **code** | **string** | code | + +### Return type + +[**AnswerApiV1UserEmailVerificationPost200Response**](AnswerApiV1UserEmailVerificationPost200Response.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) + + +## AnswerApiV1UserEmailVerificationSendPost + +> string AnswerApiV1UserEmailVerificationSendPost(ctx).CaptchaId(captchaId).CaptchaCode(captchaCode).Execute() + +UserVerifyEmailSend + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + captchaId := "captchaId_example" // string | captcha_id (optional) + captchaCode := "captchaCode_example" // string | captcha_code (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationSendPost(context.Background()).CaptchaId(captchaId).CaptchaCode(captchaCode).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailVerificationSendPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserEmailVerificationSendPost`: string + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailVerificationSendPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailVerificationSendPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **captchaId** | **string** | captcha_id | + **captchaCode** | **string** | captcha_code | + +### 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) + + +## AnswerApiV1UserInfoGet + +> AnswerApiV1UserInfoGet200Response AnswerApiV1UserInfoGet(ctx).Execute() + +GetUserInfoByUserID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserInfoGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInfoGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserInfoGet`: AnswerApiV1UserInfoGet200Response + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInfoGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserInfoGetRequest struct via the builder pattern + + +### Return type + +[**AnswerApiV1UserInfoGet200Response**](AnswerApiV1UserInfoGet200Response.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) + + +## AnswerApiV1UserInfoPut + +> HandlerRespBody AnswerApiV1UserInfoPut(ctx).Authorization(authorization).Data(data).Execute() + +UserUpdateInfo update user info + + + +### 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 + data := *openapiclient.NewSchemaUpdateInfoRequest("DisplayName_example") // SchemaUpdateInfoRequest | UpdateInfoRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserInfoPut(context.Background()).Authorization(authorization).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInfoPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserInfoPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInfoPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserInfoPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | access-token | + **data** | [**SchemaUpdateInfoRequest**](SchemaUpdateInfoRequest.md) | UpdateInfoRequest | + +### 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) + + +## AnswerApiV1UserInterfacePut + +> HandlerRespBody AnswerApiV1UserInterfacePut(ctx).Authorization(authorization).Data(data).Execute() + +UserUpdateInterface update user interface config + + + +### 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 + data := *openapiclient.NewSchemaUpdateUserInterfaceRequest("Language_example") // SchemaUpdateUserInterfaceRequest | UpdateInfoRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserInterfacePut(context.Background()).Authorization(authorization).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInterfacePut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserInterfacePut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInterfacePut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserInterfacePutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **string** | access-token | + **data** | [**SchemaUpdateUserInterfaceRequest**](SchemaUpdateUserInterfaceRequest.md) | UpdateInfoRequest | + +### 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) + + +## AnswerApiV1UserLoginEmailPost + +> AnswerApiV1UserEmailVerificationPost200Response AnswerApiV1UserLoginEmailPost(ctx).Data(data).Execute() + +UserEmailLogin + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUserEmailLogin("EMail_example", "Pass_example") // SchemaUserEmailLogin | UserEmailLogin + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserLoginEmailPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserLoginEmailPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserLoginEmailPost`: AnswerApiV1UserEmailVerificationPost200Response + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserLoginEmailPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserLoginEmailPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUserEmailLogin**](SchemaUserEmailLogin.md) | UserEmailLogin | + +### Return type + +[**AnswerApiV1UserEmailVerificationPost200Response**](AnswerApiV1UserEmailVerificationPost200Response.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) + + +## AnswerApiV1UserLogoutGet + +> HandlerRespBody AnswerApiV1UserLogoutGet(ctx).Execute() + +user logout + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserLogoutGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserLogoutGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserLogoutGet`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserLogoutGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserLogoutGetRequest struct via the builder pattern + + +### Return type + +[**HandlerRespBody**](HandlerRespBody.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## AnswerApiV1UserNoticeSetPost + +> AnswerApiV1UserNoticeSetPost200Response AnswerApiV1UserNoticeSetPost(ctx).Data(data).Execute() + +UserNoticeSet + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUserNoticeSetRequest() // SchemaUserNoticeSetRequest | UserNoticeSetRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserNoticeSetPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserNoticeSetPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserNoticeSetPost`: AnswerApiV1UserNoticeSetPost200Response + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserNoticeSetPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserNoticeSetPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUserNoticeSetRequest**](SchemaUserNoticeSetRequest.md) | UserNoticeSetRequest | + +### Return type + +[**AnswerApiV1UserNoticeSetPost200Response**](AnswerApiV1UserNoticeSetPost200Response.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) + + +## AnswerApiV1UserPasswordPut + +> HandlerRespBody AnswerApiV1UserPasswordPut(ctx).Data(data).Execute() + +UserModifyPassWord + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUserModifyPassWordRequest() // SchemaUserModifyPassWordRequest | UserModifyPassWordRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserPasswordPut(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserPasswordPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserPasswordPut`: HandlerRespBody + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserPasswordPut`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserPasswordPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUserModifyPassWordRequest**](SchemaUserModifyPassWordRequest.md) | UserModifyPassWordRequest | + +### 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) + + +## AnswerApiV1UserPasswordReplacementPost + +> string AnswerApiV1UserPasswordReplacementPost(ctx).Data(data).Execute() + +UseRePassWord + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUserRePassWordRequest("Code_example", "Pass_example") // SchemaUserRePassWordRequest | UserRePassWordRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserPasswordReplacementPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserPasswordReplacementPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserPasswordReplacementPost`: string + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserPasswordReplacementPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserPasswordReplacementPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUserRePassWordRequest**](SchemaUserRePassWordRequest.md) | UserRePassWordRequest | + +### Return type + +**string** + +### 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) + + +## AnswerApiV1UserPasswordResetPost + +> string AnswerApiV1UserPasswordResetPost(ctx).Data(data).Execute() + +RetrievePassWord + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUserRetrievePassWordRequest("EMail_example") // SchemaUserRetrievePassWordRequest | UserRetrievePassWordRequest + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserPasswordResetPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserPasswordResetPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserPasswordResetPost`: string + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserPasswordResetPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserPasswordResetPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUserRetrievePassWordRequest**](SchemaUserRetrievePassWordRequest.md) | UserRetrievePassWordRequest | + +### Return type + +**string** + +### 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) + + +## AnswerApiV1UserRankingGet + +> AnswerApiV1UserRankingGet200Response AnswerApiV1UserRankingGet(ctx).Execute() + +get user ranking + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserRankingGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserRankingGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserRankingGet`: AnswerApiV1UserRankingGet200Response + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserRankingGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserRankingGetRequest struct via the builder pattern + + +### Return type + +[**AnswerApiV1UserRankingGet200Response**](AnswerApiV1UserRankingGet200Response.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) + + +## AnswerApiV1UserRegisterCaptchaGet + +> AnswerApiV1UserEmailVerificationPost200Response AnswerApiV1UserRegisterCaptchaGet(ctx).Execute() + +UserRegisterCaptcha + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserRegisterCaptchaGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserRegisterCaptchaGet`: AnswerApiV1UserEmailVerificationPost200Response + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserRegisterCaptchaGet`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserRegisterCaptchaGetRequest struct via the builder pattern + + +### Return type + +[**AnswerApiV1UserEmailVerificationPost200Response**](AnswerApiV1UserEmailVerificationPost200Response.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) + + +## AnswerApiV1UserRegisterEmailPost + +> AnswerApiV1UserEmailVerificationPost200Response AnswerApiV1UserRegisterEmailPost(ctx).Data(data).Execute() + +UserRegisterByEmail + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID" +) + +func main() { + data := *openapiclient.NewSchemaUserRegisterReq("EMail_example", "Name_example", "Pass_example") // SchemaUserRegisterReq | UserRegisterReq + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserApi.AnswerApiV1UserRegisterEmailPost(context.Background()).Data(data).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserRegisterEmailPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AnswerApiV1UserRegisterEmailPost`: AnswerApiV1UserEmailVerificationPost200Response + fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserRegisterEmailPost`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAnswerApiV1UserRegisterEmailPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **data** | [**SchemaUserRegisterReq**](SchemaUserRegisterReq.md) | UserRegisterReq | + +### Return type + +[**AnswerApiV1UserEmailVerificationPost200Response**](AnswerApiV1UserEmailVerificationPost200Response.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) + diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 0000000..f53a75d --- /dev/null +++ b/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..f70482d --- /dev/null +++ b/go.mod @@ -0,0 +1,11 @@ +module git.ncc.cx/package/openapi-go-answer + +go 1.20 + +require github.com/stretchr/testify v1.8.4 + +require ( + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..fa4b6e6 --- /dev/null +++ b/go.sum @@ -0,0 +1,10 @@ +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/model__answer_admin_api_roles_get_200_response.go b/model__answer_admin_api_roles_get_200_response.go new file mode 100644 index 0000000..aa845ee --- /dev/null +++ b/model__answer_admin_api_roles_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiRolesGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiRolesGet200Response{} + +// AnswerAdminApiRolesGet200Response struct for AnswerAdminApiRolesGet200Response +type AnswerAdminApiRolesGet200Response struct { + Data []SchemaGetRoleResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiRolesGet200Response instantiates a new AnswerAdminApiRolesGet200Response 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 NewAnswerAdminApiRolesGet200Response() *AnswerAdminApiRolesGet200Response { + this := AnswerAdminApiRolesGet200Response{} + return &this +} + +// NewAnswerAdminApiRolesGet200ResponseWithDefaults instantiates a new AnswerAdminApiRolesGet200Response 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 NewAnswerAdminApiRolesGet200ResponseWithDefaults() *AnswerAdminApiRolesGet200Response { + this := AnswerAdminApiRolesGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiRolesGet200Response) GetData() []SchemaGetRoleResp { + if o == nil || IsNil(o.Data) { + var ret []SchemaGetRoleResp + 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 *AnswerAdminApiRolesGet200Response) GetDataOk() ([]SchemaGetRoleResp, 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 *AnswerAdminApiRolesGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []SchemaGetRoleResp and assigns it to the Data field. +func (o *AnswerAdminApiRolesGet200Response) SetData(v []SchemaGetRoleResp) { + o.Data = v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiRolesGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiRolesGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiRolesGet200Response) 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 NullableAnswerAdminApiRolesGet200Response struct { + value *AnswerAdminApiRolesGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiRolesGet200Response) Get() *AnswerAdminApiRolesGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiRolesGet200Response) Set(val *AnswerAdminApiRolesGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiRolesGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiRolesGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiRolesGet200Response(val *AnswerAdminApiRolesGet200Response) *NullableAnswerAdminApiRolesGet200Response { + return &NullableAnswerAdminApiRolesGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiRolesGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiRolesGet200Response) 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 new file mode 100644 index 0000000..0a7123d --- /dev/null +++ b/model__answer_admin_api_setting_smtp_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSettingSmtpGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSettingSmtpGet200Response{} + +// AnswerAdminApiSettingSmtpGet200Response struct for AnswerAdminApiSettingSmtpGet200Response +type AnswerAdminApiSettingSmtpGet200Response struct { + Data *SchemaGetSMTPConfigResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSettingSmtpGet200Response instantiates a new AnswerAdminApiSettingSmtpGet200Response 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 NewAnswerAdminApiSettingSmtpGet200Response() *AnswerAdminApiSettingSmtpGet200Response { + this := AnswerAdminApiSettingSmtpGet200Response{} + return &this +} + +// NewAnswerAdminApiSettingSmtpGet200ResponseWithDefaults instantiates a new AnswerAdminApiSettingSmtpGet200Response 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 NewAnswerAdminApiSettingSmtpGet200ResponseWithDefaults() *AnswerAdminApiSettingSmtpGet200Response { + this := AnswerAdminApiSettingSmtpGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSettingSmtpGet200Response) GetData() SchemaGetSMTPConfigResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetSMTPConfigResp + 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 *AnswerAdminApiSettingSmtpGet200Response) GetDataOk() (*SchemaGetSMTPConfigResp, 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 *AnswerAdminApiSettingSmtpGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetSMTPConfigResp and assigns it to the Data field. +func (o *AnswerAdminApiSettingSmtpGet200Response) SetData(v SchemaGetSMTPConfigResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiSettingSmtpGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiSettingSmtpGet200Response) 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 *AnswerAdminApiSettingSmtpGet200Response) 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 *AnswerAdminApiSettingSmtpGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSettingSmtpGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSettingSmtpGet200Response) 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 NullableAnswerAdminApiSettingSmtpGet200Response struct { + value *AnswerAdminApiSettingSmtpGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSettingSmtpGet200Response) Get() *AnswerAdminApiSettingSmtpGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSettingSmtpGet200Response) Set(val *AnswerAdminApiSettingSmtpGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSettingSmtpGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSettingSmtpGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSettingSmtpGet200Response(val *AnswerAdminApiSettingSmtpGet200Response) *NullableAnswerAdminApiSettingSmtpGet200Response { + return &NullableAnswerAdminApiSettingSmtpGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSettingSmtpGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSettingSmtpGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_siteinfo_branding_get_200_response.go b/model__answer_admin_api_siteinfo_branding_get_200_response.go new file mode 100644 index 0000000..3fb14a1 --- /dev/null +++ b/model__answer_admin_api_siteinfo_branding_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSiteinfoBrandingGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSiteinfoBrandingGet200Response{} + +// AnswerAdminApiSiteinfoBrandingGet200Response struct for AnswerAdminApiSiteinfoBrandingGet200Response +type AnswerAdminApiSiteinfoBrandingGet200Response struct { + Data *SchemaSiteBrandingResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSiteinfoBrandingGet200Response instantiates a new AnswerAdminApiSiteinfoBrandingGet200Response 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 NewAnswerAdminApiSiteinfoBrandingGet200Response() *AnswerAdminApiSiteinfoBrandingGet200Response { + this := AnswerAdminApiSiteinfoBrandingGet200Response{} + return &this +} + +// NewAnswerAdminApiSiteinfoBrandingGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoBrandingGet200Response 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 NewAnswerAdminApiSiteinfoBrandingGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoBrandingGet200Response { + this := AnswerAdminApiSiteinfoBrandingGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetData() SchemaSiteBrandingResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteBrandingResp + 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 *AnswerAdminApiSiteinfoBrandingGet200Response) GetDataOk() (*SchemaSiteBrandingResp, 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 *AnswerAdminApiSiteinfoBrandingGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteBrandingResp and assigns it to the Data field. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) SetData(v SchemaSiteBrandingResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoBrandingGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiSiteinfoBrandingGet200Response) 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 *AnswerAdminApiSiteinfoBrandingGet200Response) 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 *AnswerAdminApiSiteinfoBrandingGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSiteinfoBrandingGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSiteinfoBrandingGet200Response) 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 NullableAnswerAdminApiSiteinfoBrandingGet200Response struct { + value *AnswerAdminApiSiteinfoBrandingGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSiteinfoBrandingGet200Response) Get() *AnswerAdminApiSiteinfoBrandingGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSiteinfoBrandingGet200Response) Set(val *AnswerAdminApiSiteinfoBrandingGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSiteinfoBrandingGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSiteinfoBrandingGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSiteinfoBrandingGet200Response(val *AnswerAdminApiSiteinfoBrandingGet200Response) *NullableAnswerAdminApiSiteinfoBrandingGet200Response { + return &NullableAnswerAdminApiSiteinfoBrandingGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSiteinfoBrandingGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSiteinfoBrandingGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + 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 new file mode 100644 index 0000000..549f49c --- /dev/null +++ b/model__answer_admin_api_siteinfo_custom_css_html_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSiteinfoCustomCssHtmlGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSiteinfoCustomCssHtmlGet200Response{} + +// AnswerAdminApiSiteinfoCustomCssHtmlGet200Response struct for AnswerAdminApiSiteinfoCustomCssHtmlGet200Response +type AnswerAdminApiSiteinfoCustomCssHtmlGet200Response struct { + Data *SchemaSiteCustomCssHTMLResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSiteinfoCustomCssHtmlGet200Response instantiates a new AnswerAdminApiSiteinfoCustomCssHtmlGet200Response 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 NewAnswerAdminApiSiteinfoCustomCssHtmlGet200Response() *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response { + this := AnswerAdminApiSiteinfoCustomCssHtmlGet200Response{} + return &this +} + +// NewAnswerAdminApiSiteinfoCustomCssHtmlGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoCustomCssHtmlGet200Response 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 NewAnswerAdminApiSiteinfoCustomCssHtmlGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response { + this := AnswerAdminApiSiteinfoCustomCssHtmlGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetData() SchemaSiteCustomCssHTMLResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteCustomCssHTMLResp + 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 *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetDataOk() (*SchemaSiteCustomCssHTMLResp, 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 *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteCustomCssHTMLResp and assigns it to the Data field. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetData(v SchemaSiteCustomCssHTMLResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) 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 *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) 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 *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) 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 NullableAnswerAdminApiSiteinfoCustomCssHtmlGet200Response struct { + value *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSiteinfoCustomCssHtmlGet200Response) Get() *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSiteinfoCustomCssHtmlGet200Response) Set(val *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSiteinfoCustomCssHtmlGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSiteinfoCustomCssHtmlGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSiteinfoCustomCssHtmlGet200Response(val *AnswerAdminApiSiteinfoCustomCssHtmlGet200Response) *NullableAnswerAdminApiSiteinfoCustomCssHtmlGet200Response { + return &NullableAnswerAdminApiSiteinfoCustomCssHtmlGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSiteinfoCustomCssHtmlGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSiteinfoCustomCssHtmlGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_siteinfo_general_get_200_response.go b/model__answer_admin_api_siteinfo_general_get_200_response.go new file mode 100644 index 0000000..998cb3f --- /dev/null +++ b/model__answer_admin_api_siteinfo_general_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSiteinfoGeneralGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSiteinfoGeneralGet200Response{} + +// AnswerAdminApiSiteinfoGeneralGet200Response struct for AnswerAdminApiSiteinfoGeneralGet200Response +type AnswerAdminApiSiteinfoGeneralGet200Response struct { + Data *SchemaSiteGeneralResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSiteinfoGeneralGet200Response instantiates a new AnswerAdminApiSiteinfoGeneralGet200Response 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 NewAnswerAdminApiSiteinfoGeneralGet200Response() *AnswerAdminApiSiteinfoGeneralGet200Response { + this := AnswerAdminApiSiteinfoGeneralGet200Response{} + return &this +} + +// NewAnswerAdminApiSiteinfoGeneralGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoGeneralGet200Response 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 NewAnswerAdminApiSiteinfoGeneralGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoGeneralGet200Response { + this := AnswerAdminApiSiteinfoGeneralGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetData() SchemaSiteGeneralResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteGeneralResp + 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 *AnswerAdminApiSiteinfoGeneralGet200Response) GetDataOk() (*SchemaSiteGeneralResp, 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 *AnswerAdminApiSiteinfoGeneralGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteGeneralResp and assigns it to the Data field. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) SetData(v SchemaSiteGeneralResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoGeneralGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiSiteinfoGeneralGet200Response) 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 *AnswerAdminApiSiteinfoGeneralGet200Response) 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 *AnswerAdminApiSiteinfoGeneralGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSiteinfoGeneralGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSiteinfoGeneralGet200Response) 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 NullableAnswerAdminApiSiteinfoGeneralGet200Response struct { + value *AnswerAdminApiSiteinfoGeneralGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSiteinfoGeneralGet200Response) Get() *AnswerAdminApiSiteinfoGeneralGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSiteinfoGeneralGet200Response) Set(val *AnswerAdminApiSiteinfoGeneralGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSiteinfoGeneralGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSiteinfoGeneralGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSiteinfoGeneralGet200Response(val *AnswerAdminApiSiteinfoGeneralGet200Response) *NullableAnswerAdminApiSiteinfoGeneralGet200Response { + return &NullableAnswerAdminApiSiteinfoGeneralGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSiteinfoGeneralGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSiteinfoGeneralGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_siteinfo_interface_get_200_response.go b/model__answer_admin_api_siteinfo_interface_get_200_response.go new file mode 100644 index 0000000..a9ae880 --- /dev/null +++ b/model__answer_admin_api_siteinfo_interface_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSiteinfoInterfaceGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSiteinfoInterfaceGet200Response{} + +// AnswerAdminApiSiteinfoInterfaceGet200Response struct for AnswerAdminApiSiteinfoInterfaceGet200Response +type AnswerAdminApiSiteinfoInterfaceGet200Response struct { + Data *SchemaSiteInterfaceResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSiteinfoInterfaceGet200Response instantiates a new AnswerAdminApiSiteinfoInterfaceGet200Response 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 NewAnswerAdminApiSiteinfoInterfaceGet200Response() *AnswerAdminApiSiteinfoInterfaceGet200Response { + this := AnswerAdminApiSiteinfoInterfaceGet200Response{} + return &this +} + +// NewAnswerAdminApiSiteinfoInterfaceGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoInterfaceGet200Response 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 NewAnswerAdminApiSiteinfoInterfaceGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoInterfaceGet200Response { + this := AnswerAdminApiSiteinfoInterfaceGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetData() SchemaSiteInterfaceResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteInterfaceResp + 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 *AnswerAdminApiSiteinfoInterfaceGet200Response) GetDataOk() (*SchemaSiteInterfaceResp, 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 *AnswerAdminApiSiteinfoInterfaceGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteInterfaceResp and assigns it to the Data field. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) SetData(v SchemaSiteInterfaceResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoInterfaceGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiSiteinfoInterfaceGet200Response) 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 *AnswerAdminApiSiteinfoInterfaceGet200Response) 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 *AnswerAdminApiSiteinfoInterfaceGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSiteinfoInterfaceGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSiteinfoInterfaceGet200Response) 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 NullableAnswerAdminApiSiteinfoInterfaceGet200Response struct { + value *AnswerAdminApiSiteinfoInterfaceGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSiteinfoInterfaceGet200Response) Get() *AnswerAdminApiSiteinfoInterfaceGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSiteinfoInterfaceGet200Response) Set(val *AnswerAdminApiSiteinfoInterfaceGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSiteinfoInterfaceGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSiteinfoInterfaceGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSiteinfoInterfaceGet200Response(val *AnswerAdminApiSiteinfoInterfaceGet200Response) *NullableAnswerAdminApiSiteinfoInterfaceGet200Response { + return &NullableAnswerAdminApiSiteinfoInterfaceGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSiteinfoInterfaceGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSiteinfoInterfaceGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_siteinfo_legal_get_200_response.go b/model__answer_admin_api_siteinfo_legal_get_200_response.go new file mode 100644 index 0000000..73c830c --- /dev/null +++ b/model__answer_admin_api_siteinfo_legal_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSiteinfoLegalGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSiteinfoLegalGet200Response{} + +// AnswerAdminApiSiteinfoLegalGet200Response struct for AnswerAdminApiSiteinfoLegalGet200Response +type AnswerAdminApiSiteinfoLegalGet200Response struct { + Data *SchemaSiteLegalResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSiteinfoLegalGet200Response instantiates a new AnswerAdminApiSiteinfoLegalGet200Response 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 NewAnswerAdminApiSiteinfoLegalGet200Response() *AnswerAdminApiSiteinfoLegalGet200Response { + this := AnswerAdminApiSiteinfoLegalGet200Response{} + return &this +} + +// NewAnswerAdminApiSiteinfoLegalGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoLegalGet200Response 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 NewAnswerAdminApiSiteinfoLegalGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoLegalGet200Response { + this := AnswerAdminApiSiteinfoLegalGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetData() SchemaSiteLegalResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteLegalResp + 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 *AnswerAdminApiSiteinfoLegalGet200Response) GetDataOk() (*SchemaSiteLegalResp, 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 *AnswerAdminApiSiteinfoLegalGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteLegalResp and assigns it to the Data field. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) SetData(v SchemaSiteLegalResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoLegalGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiSiteinfoLegalGet200Response) 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 *AnswerAdminApiSiteinfoLegalGet200Response) 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 *AnswerAdminApiSiteinfoLegalGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSiteinfoLegalGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSiteinfoLegalGet200Response) 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 NullableAnswerAdminApiSiteinfoLegalGet200Response struct { + value *AnswerAdminApiSiteinfoLegalGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSiteinfoLegalGet200Response) Get() *AnswerAdminApiSiteinfoLegalGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSiteinfoLegalGet200Response) Set(val *AnswerAdminApiSiteinfoLegalGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSiteinfoLegalGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSiteinfoLegalGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSiteinfoLegalGet200Response(val *AnswerAdminApiSiteinfoLegalGet200Response) *NullableAnswerAdminApiSiteinfoLegalGet200Response { + return &NullableAnswerAdminApiSiteinfoLegalGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSiteinfoLegalGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSiteinfoLegalGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_siteinfo_login_get_200_response.go b/model__answer_admin_api_siteinfo_login_get_200_response.go new file mode 100644 index 0000000..1c9ebb2 --- /dev/null +++ b/model__answer_admin_api_siteinfo_login_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSiteinfoLoginGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSiteinfoLoginGet200Response{} + +// AnswerAdminApiSiteinfoLoginGet200Response struct for AnswerAdminApiSiteinfoLoginGet200Response +type AnswerAdminApiSiteinfoLoginGet200Response struct { + Data *SchemaSiteLoginResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSiteinfoLoginGet200Response instantiates a new AnswerAdminApiSiteinfoLoginGet200Response 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 NewAnswerAdminApiSiteinfoLoginGet200Response() *AnswerAdminApiSiteinfoLoginGet200Response { + this := AnswerAdminApiSiteinfoLoginGet200Response{} + return &this +} + +// NewAnswerAdminApiSiteinfoLoginGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoLoginGet200Response 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 NewAnswerAdminApiSiteinfoLoginGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoLoginGet200Response { + this := AnswerAdminApiSiteinfoLoginGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetData() SchemaSiteLoginResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteLoginResp + 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 *AnswerAdminApiSiteinfoLoginGet200Response) GetDataOk() (*SchemaSiteLoginResp, 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 *AnswerAdminApiSiteinfoLoginGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteLoginResp and assigns it to the Data field. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) SetData(v SchemaSiteLoginResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoLoginGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiSiteinfoLoginGet200Response) 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 *AnswerAdminApiSiteinfoLoginGet200Response) 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 *AnswerAdminApiSiteinfoLoginGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSiteinfoLoginGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSiteinfoLoginGet200Response) 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 NullableAnswerAdminApiSiteinfoLoginGet200Response struct { + value *AnswerAdminApiSiteinfoLoginGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSiteinfoLoginGet200Response) Get() *AnswerAdminApiSiteinfoLoginGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSiteinfoLoginGet200Response) Set(val *AnswerAdminApiSiteinfoLoginGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSiteinfoLoginGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSiteinfoLoginGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSiteinfoLoginGet200Response(val *AnswerAdminApiSiteinfoLoginGet200Response) *NullableAnswerAdminApiSiteinfoLoginGet200Response { + return &NullableAnswerAdminApiSiteinfoLoginGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSiteinfoLoginGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSiteinfoLoginGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_siteinfo_seo_get_200_response.go b/model__answer_admin_api_siteinfo_seo_get_200_response.go new file mode 100644 index 0000000..a788cfc --- /dev/null +++ b/model__answer_admin_api_siteinfo_seo_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSiteinfoSeoGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSiteinfoSeoGet200Response{} + +// AnswerAdminApiSiteinfoSeoGet200Response struct for AnswerAdminApiSiteinfoSeoGet200Response +type AnswerAdminApiSiteinfoSeoGet200Response struct { + Data *SchemaSiteSeoResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSiteinfoSeoGet200Response instantiates a new AnswerAdminApiSiteinfoSeoGet200Response 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 NewAnswerAdminApiSiteinfoSeoGet200Response() *AnswerAdminApiSiteinfoSeoGet200Response { + this := AnswerAdminApiSiteinfoSeoGet200Response{} + return &this +} + +// NewAnswerAdminApiSiteinfoSeoGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoSeoGet200Response 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 NewAnswerAdminApiSiteinfoSeoGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoSeoGet200Response { + this := AnswerAdminApiSiteinfoSeoGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetData() SchemaSiteSeoResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteSeoResp + 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 *AnswerAdminApiSiteinfoSeoGet200Response) GetDataOk() (*SchemaSiteSeoResp, 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 *AnswerAdminApiSiteinfoSeoGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteSeoResp and assigns it to the Data field. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) SetData(v SchemaSiteSeoResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoSeoGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiSiteinfoSeoGet200Response) 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 *AnswerAdminApiSiteinfoSeoGet200Response) 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 *AnswerAdminApiSiteinfoSeoGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSiteinfoSeoGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSiteinfoSeoGet200Response) 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 NullableAnswerAdminApiSiteinfoSeoGet200Response struct { + value *AnswerAdminApiSiteinfoSeoGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSiteinfoSeoGet200Response) Get() *AnswerAdminApiSiteinfoSeoGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSiteinfoSeoGet200Response) Set(val *AnswerAdminApiSiteinfoSeoGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSiteinfoSeoGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSiteinfoSeoGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSiteinfoSeoGet200Response(val *AnswerAdminApiSiteinfoSeoGet200Response) *NullableAnswerAdminApiSiteinfoSeoGet200Response { + return &NullableAnswerAdminApiSiteinfoSeoGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSiteinfoSeoGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSiteinfoSeoGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_siteinfo_theme_get_200_response.go b/model__answer_admin_api_siteinfo_theme_get_200_response.go new file mode 100644 index 0000000..367e205 --- /dev/null +++ b/model__answer_admin_api_siteinfo_theme_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSiteinfoThemeGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSiteinfoThemeGet200Response{} + +// AnswerAdminApiSiteinfoThemeGet200Response struct for AnswerAdminApiSiteinfoThemeGet200Response +type AnswerAdminApiSiteinfoThemeGet200Response struct { + Data *SchemaSiteThemeResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSiteinfoThemeGet200Response instantiates a new AnswerAdminApiSiteinfoThemeGet200Response 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 NewAnswerAdminApiSiteinfoThemeGet200Response() *AnswerAdminApiSiteinfoThemeGet200Response { + this := AnswerAdminApiSiteinfoThemeGet200Response{} + return &this +} + +// NewAnswerAdminApiSiteinfoThemeGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoThemeGet200Response 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 NewAnswerAdminApiSiteinfoThemeGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoThemeGet200Response { + this := AnswerAdminApiSiteinfoThemeGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetData() SchemaSiteThemeResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteThemeResp + 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 *AnswerAdminApiSiteinfoThemeGet200Response) GetDataOk() (*SchemaSiteThemeResp, 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 *AnswerAdminApiSiteinfoThemeGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteThemeResp and assigns it to the Data field. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) SetData(v SchemaSiteThemeResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoThemeGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiSiteinfoThemeGet200Response) 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 *AnswerAdminApiSiteinfoThemeGet200Response) 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 *AnswerAdminApiSiteinfoThemeGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSiteinfoThemeGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSiteinfoThemeGet200Response) 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 NullableAnswerAdminApiSiteinfoThemeGet200Response struct { + value *AnswerAdminApiSiteinfoThemeGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSiteinfoThemeGet200Response) Get() *AnswerAdminApiSiteinfoThemeGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSiteinfoThemeGet200Response) Set(val *AnswerAdminApiSiteinfoThemeGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSiteinfoThemeGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSiteinfoThemeGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSiteinfoThemeGet200Response(val *AnswerAdminApiSiteinfoThemeGet200Response) *NullableAnswerAdminApiSiteinfoThemeGet200Response { + return &NullableAnswerAdminApiSiteinfoThemeGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSiteinfoThemeGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSiteinfoThemeGet200Response) 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 new file mode 100644 index 0000000..3041708 --- /dev/null +++ b/model__answer_admin_api_siteinfo_write_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiSiteinfoWriteGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiSiteinfoWriteGet200Response{} + +// AnswerAdminApiSiteinfoWriteGet200Response struct for AnswerAdminApiSiteinfoWriteGet200Response +type AnswerAdminApiSiteinfoWriteGet200Response struct { + Data *SchemaSiteWriteResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiSiteinfoWriteGet200Response instantiates a new AnswerAdminApiSiteinfoWriteGet200Response 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 NewAnswerAdminApiSiteinfoWriteGet200Response() *AnswerAdminApiSiteinfoWriteGet200Response { + this := AnswerAdminApiSiteinfoWriteGet200Response{} + return &this +} + +// NewAnswerAdminApiSiteinfoWriteGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoWriteGet200Response 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 NewAnswerAdminApiSiteinfoWriteGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoWriteGet200Response { + this := AnswerAdminApiSiteinfoWriteGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetData() SchemaSiteWriteResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteWriteResp + 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 *AnswerAdminApiSiteinfoWriteGet200Response) GetDataOk() (*SchemaSiteWriteResp, 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 *AnswerAdminApiSiteinfoWriteGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteWriteResp and assigns it to the Data field. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetData(v SchemaSiteWriteResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiSiteinfoWriteGet200Response) 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 *AnswerAdminApiSiteinfoWriteGet200Response) 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 *AnswerAdminApiSiteinfoWriteGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiSiteinfoWriteGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiSiteinfoWriteGet200Response) 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 NullableAnswerAdminApiSiteinfoWriteGet200Response struct { + value *AnswerAdminApiSiteinfoWriteGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiSiteinfoWriteGet200Response) Get() *AnswerAdminApiSiteinfoWriteGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiSiteinfoWriteGet200Response) Set(val *AnswerAdminApiSiteinfoWriteGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiSiteinfoWriteGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiSiteinfoWriteGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiSiteinfoWriteGet200Response(val *AnswerAdminApiSiteinfoWriteGet200Response) *NullableAnswerAdminApiSiteinfoWriteGet200Response { + return &NullableAnswerAdminApiSiteinfoWriteGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiSiteinfoWriteGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiSiteinfoWriteGet200Response) 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 new file mode 100644 index 0000000..6b3bcca --- /dev/null +++ b/model__answer_admin_api_users_page_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiUsersPageGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiUsersPageGet200Response{} + +// AnswerAdminApiUsersPageGet200Response struct for AnswerAdminApiUsersPageGet200Response +type AnswerAdminApiUsersPageGet200Response struct { + Data *AnswerAdminApiUsersPageGet200ResponseData `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerAdminApiUsersPageGet200Response instantiates a new AnswerAdminApiUsersPageGet200Response 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 NewAnswerAdminApiUsersPageGet200Response() *AnswerAdminApiUsersPageGet200Response { + this := AnswerAdminApiUsersPageGet200Response{} + return &this +} + +// NewAnswerAdminApiUsersPageGet200ResponseWithDefaults instantiates a new AnswerAdminApiUsersPageGet200Response 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 NewAnswerAdminApiUsersPageGet200ResponseWithDefaults() *AnswerAdminApiUsersPageGet200Response { + this := AnswerAdminApiUsersPageGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerAdminApiUsersPageGet200Response) GetData() AnswerAdminApiUsersPageGet200ResponseData { + if o == nil || IsNil(o.Data) { + var ret AnswerAdminApiUsersPageGet200ResponseData + 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 *AnswerAdminApiUsersPageGet200Response) GetDataOk() (*AnswerAdminApiUsersPageGet200ResponseData, 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 *AnswerAdminApiUsersPageGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AnswerAdminApiUsersPageGet200ResponseData and assigns it to the Data field. +func (o *AnswerAdminApiUsersPageGet200Response) SetData(v AnswerAdminApiUsersPageGet200ResponseData) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerAdminApiUsersPageGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerAdminApiUsersPageGet200Response) 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 *AnswerAdminApiUsersPageGet200Response) 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 *AnswerAdminApiUsersPageGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerAdminApiUsersPageGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiUsersPageGet200Response) 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 NullableAnswerAdminApiUsersPageGet200Response struct { + value *AnswerAdminApiUsersPageGet200Response + isSet bool +} + +func (v NullableAnswerAdminApiUsersPageGet200Response) Get() *AnswerAdminApiUsersPageGet200Response { + return v.value +} + +func (v *NullableAnswerAdminApiUsersPageGet200Response) Set(val *AnswerAdminApiUsersPageGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiUsersPageGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiUsersPageGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiUsersPageGet200Response(val *AnswerAdminApiUsersPageGet200Response) *NullableAnswerAdminApiUsersPageGet200Response { + return &NullableAnswerAdminApiUsersPageGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiUsersPageGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiUsersPageGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_users_page_get_200_response_data.go b/model__answer_admin_api_users_page_get_200_response_data.go new file mode 100644 index 0000000..70da739 --- /dev/null +++ b/model__answer_admin_api_users_page_get_200_response_data.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiUsersPageGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiUsersPageGet200ResponseData{} + +// AnswerAdminApiUsersPageGet200ResponseData struct for AnswerAdminApiUsersPageGet200ResponseData +type AnswerAdminApiUsersPageGet200ResponseData struct { + Count *int32 `json:"count,omitempty"` + List map[string]interface{} `json:"list,omitempty"` + Records []SchemaGetUserPageResp `json:"records,omitempty"` +} + +// NewAnswerAdminApiUsersPageGet200ResponseData instantiates a new AnswerAdminApiUsersPageGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerAdminApiUsersPageGet200ResponseData() *AnswerAdminApiUsersPageGet200ResponseData { + this := AnswerAdminApiUsersPageGet200ResponseData{} + return &this +} + +// NewAnswerAdminApiUsersPageGet200ResponseDataWithDefaults instantiates a new AnswerAdminApiUsersPageGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerAdminApiUsersPageGet200ResponseDataWithDefaults() *AnswerAdminApiUsersPageGet200ResponseData { + this := AnswerAdminApiUsersPageGet200ResponseData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerAdminApiUsersPageGet200ResponseData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiUsersPageGet200ResponseData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerAdminApiUsersPageGet200ResponseData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerAdminApiUsersPageGet200ResponseData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerAdminApiUsersPageGet200ResponseData) GetList() map[string]interface{} { + if o == nil || IsNil(o.List) { + var ret map[string]interface{} + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiUsersPageGet200ResponseData) GetListOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.List) { + return map[string]interface{}{}, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerAdminApiUsersPageGet200ResponseData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given map[string]interface{} and assigns it to the List field. +func (o *AnswerAdminApiUsersPageGet200ResponseData) SetList(v map[string]interface{}) { + o.List = v +} + +// GetRecords returns the Records field value if set, zero value otherwise. +func (o *AnswerAdminApiUsersPageGet200ResponseData) GetRecords() []SchemaGetUserPageResp { + if o == nil || IsNil(o.Records) { + var ret []SchemaGetUserPageResp + return ret + } + return o.Records +} + +// GetRecordsOk returns a tuple with the Records field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiUsersPageGet200ResponseData) GetRecordsOk() ([]SchemaGetUserPageResp, bool) { + if o == nil || IsNil(o.Records) { + return nil, false + } + return o.Records, true +} + +// HasRecords returns a boolean if a field has been set. +func (o *AnswerAdminApiUsersPageGet200ResponseData) HasRecords() bool { + if o != nil && !IsNil(o.Records) { + return true + } + + return false +} + +// SetRecords gets a reference to the given []SchemaGetUserPageResp and assigns it to the Records field. +func (o *AnswerAdminApiUsersPageGet200ResponseData) SetRecords(v []SchemaGetUserPageResp) { + o.Records = v +} + +func (o AnswerAdminApiUsersPageGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiUsersPageGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + if !IsNil(o.Records) { + toSerialize["records"] = o.Records + } + return toSerialize, nil +} + +type NullableAnswerAdminApiUsersPageGet200ResponseData struct { + value *AnswerAdminApiUsersPageGet200ResponseData + isSet bool +} + +func (v NullableAnswerAdminApiUsersPageGet200ResponseData) Get() *AnswerAdminApiUsersPageGet200ResponseData { + return v.value +} + +func (v *NullableAnswerAdminApiUsersPageGet200ResponseData) Set(val *AnswerAdminApiUsersPageGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiUsersPageGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiUsersPageGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiUsersPageGet200ResponseData(val *AnswerAdminApiUsersPageGet200ResponseData) *NullableAnswerAdminApiUsersPageGet200ResponseData { + return &NullableAnswerAdminApiUsersPageGet200ResponseData{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiUsersPageGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiUsersPageGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_admin_api_users_page_get_200_response_data_all_of.go b/model__answer_admin_api_users_page_get_200_response_data_all_of.go new file mode 100644 index 0000000..1777f5b --- /dev/null +++ b/model__answer_admin_api_users_page_get_200_response_data_all_of.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerAdminApiUsersPageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerAdminApiUsersPageGet200ResponseDataAllOf{} + +// AnswerAdminApiUsersPageGet200ResponseDataAllOf struct for AnswerAdminApiUsersPageGet200ResponseDataAllOf +type AnswerAdminApiUsersPageGet200ResponseDataAllOf struct { + Records []SchemaGetUserPageResp `json:"records,omitempty"` +} + +// NewAnswerAdminApiUsersPageGet200ResponseDataAllOf instantiates a new AnswerAdminApiUsersPageGet200ResponseDataAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerAdminApiUsersPageGet200ResponseDataAllOf() *AnswerAdminApiUsersPageGet200ResponseDataAllOf { + this := AnswerAdminApiUsersPageGet200ResponseDataAllOf{} + return &this +} + +// NewAnswerAdminApiUsersPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerAdminApiUsersPageGet200ResponseDataAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerAdminApiUsersPageGet200ResponseDataAllOfWithDefaults() *AnswerAdminApiUsersPageGet200ResponseDataAllOf { + this := AnswerAdminApiUsersPageGet200ResponseDataAllOf{} + return &this +} + +// GetRecords returns the Records field value if set, zero value otherwise. +func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) GetRecords() []SchemaGetUserPageResp { + if o == nil || IsNil(o.Records) { + var ret []SchemaGetUserPageResp + return ret + } + return o.Records +} + +// GetRecordsOk returns a tuple with the Records field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) GetRecordsOk() ([]SchemaGetUserPageResp, bool) { + if o == nil || IsNil(o.Records) { + return nil, false + } + return o.Records, true +} + +// HasRecords returns a boolean if a field has been set. +func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) HasRecords() bool { + if o != nil && !IsNil(o.Records) { + return true + } + + return false +} + +// SetRecords gets a reference to the given []SchemaGetUserPageResp and assigns it to the Records field. +func (o *AnswerAdminApiUsersPageGet200ResponseDataAllOf) SetRecords(v []SchemaGetUserPageResp) { + o.Records = v +} + +func (o AnswerAdminApiUsersPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerAdminApiUsersPageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Records) { + toSerialize["records"] = o.Records + } + return toSerialize, nil +} + +type NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf struct { + value *AnswerAdminApiUsersPageGet200ResponseDataAllOf + isSet bool +} + +func (v NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) Get() *AnswerAdminApiUsersPageGet200ResponseDataAllOf { + return v.value +} + +func (v *NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) Set(val *AnswerAdminApiUsersPageGet200ResponseDataAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerAdminApiUsersPageGet200ResponseDataAllOf(val *AnswerAdminApiUsersPageGet200ResponseDataAllOf) *NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf { + return &NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf{value: val, isSet: true} +} + +func (v NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerAdminApiUsersPageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_activity_timeline_get_200_response.go b/model__answer_api_v1_activity_timeline_get_200_response.go new file mode 100644 index 0000000..48815b7 --- /dev/null +++ b/model__answer_api_v1_activity_timeline_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1ActivityTimelineGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1ActivityTimelineGet200Response{} + +// AnswerApiV1ActivityTimelineGet200Response struct for AnswerApiV1ActivityTimelineGet200Response +type AnswerApiV1ActivityTimelineGet200Response struct { + Data *SchemaGetObjectTimelineResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1ActivityTimelineGet200Response instantiates a new AnswerApiV1ActivityTimelineGet200Response 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 NewAnswerApiV1ActivityTimelineGet200Response() *AnswerApiV1ActivityTimelineGet200Response { + this := AnswerApiV1ActivityTimelineGet200Response{} + return &this +} + +// NewAnswerApiV1ActivityTimelineGet200ResponseWithDefaults instantiates a new AnswerApiV1ActivityTimelineGet200Response 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 NewAnswerApiV1ActivityTimelineGet200ResponseWithDefaults() *AnswerApiV1ActivityTimelineGet200Response { + this := AnswerApiV1ActivityTimelineGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1ActivityTimelineGet200Response) GetData() SchemaGetObjectTimelineResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetObjectTimelineResp + 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 *AnswerApiV1ActivityTimelineGet200Response) GetDataOk() (*SchemaGetObjectTimelineResp, 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 *AnswerApiV1ActivityTimelineGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetObjectTimelineResp and assigns it to the Data field. +func (o *AnswerApiV1ActivityTimelineGet200Response) SetData(v SchemaGetObjectTimelineResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1ActivityTimelineGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1ActivityTimelineGet200Response) 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 *AnswerApiV1ActivityTimelineGet200Response) 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 *AnswerApiV1ActivityTimelineGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1ActivityTimelineGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1ActivityTimelineGet200Response) 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 NullableAnswerApiV1ActivityTimelineGet200Response struct { + value *AnswerApiV1ActivityTimelineGet200Response + isSet bool +} + +func (v NullableAnswerApiV1ActivityTimelineGet200Response) Get() *AnswerApiV1ActivityTimelineGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1ActivityTimelineGet200Response) Set(val *AnswerApiV1ActivityTimelineGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1ActivityTimelineGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1ActivityTimelineGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1ActivityTimelineGet200Response(val *AnswerApiV1ActivityTimelineGet200Response) *NullableAnswerApiV1ActivityTimelineGet200Response { + return &NullableAnswerApiV1ActivityTimelineGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1ActivityTimelineGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1ActivityTimelineGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_collection_switch_post_200_response.go b/model__answer_api_v1_collection_switch_post_200_response.go new file mode 100644 index 0000000..3421541 --- /dev/null +++ b/model__answer_api_v1_collection_switch_post_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1CollectionSwitchPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1CollectionSwitchPost200Response{} + +// AnswerApiV1CollectionSwitchPost200Response struct for AnswerApiV1CollectionSwitchPost200Response +type AnswerApiV1CollectionSwitchPost200Response struct { + Data *SchemaCollectionSwitchResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1CollectionSwitchPost200Response instantiates a new AnswerApiV1CollectionSwitchPost200Response 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 NewAnswerApiV1CollectionSwitchPost200Response() *AnswerApiV1CollectionSwitchPost200Response { + this := AnswerApiV1CollectionSwitchPost200Response{} + return &this +} + +// NewAnswerApiV1CollectionSwitchPost200ResponseWithDefaults instantiates a new AnswerApiV1CollectionSwitchPost200Response 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 NewAnswerApiV1CollectionSwitchPost200ResponseWithDefaults() *AnswerApiV1CollectionSwitchPost200Response { + this := AnswerApiV1CollectionSwitchPost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1CollectionSwitchPost200Response) GetData() SchemaCollectionSwitchResp { + if o == nil || IsNil(o.Data) { + var ret SchemaCollectionSwitchResp + 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 *AnswerApiV1CollectionSwitchPost200Response) GetDataOk() (*SchemaCollectionSwitchResp, 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 *AnswerApiV1CollectionSwitchPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaCollectionSwitchResp and assigns it to the Data field. +func (o *AnswerApiV1CollectionSwitchPost200Response) SetData(v SchemaCollectionSwitchResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1CollectionSwitchPost200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1CollectionSwitchPost200Response) 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 *AnswerApiV1CollectionSwitchPost200Response) 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 *AnswerApiV1CollectionSwitchPost200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1CollectionSwitchPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1CollectionSwitchPost200Response) 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 NullableAnswerApiV1CollectionSwitchPost200Response struct { + value *AnswerApiV1CollectionSwitchPost200Response + isSet bool +} + +func (v NullableAnswerApiV1CollectionSwitchPost200Response) Get() *AnswerApiV1CollectionSwitchPost200Response { + return v.value +} + +func (v *NullableAnswerApiV1CollectionSwitchPost200Response) Set(val *AnswerApiV1CollectionSwitchPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1CollectionSwitchPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1CollectionSwitchPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1CollectionSwitchPost200Response(val *AnswerApiV1CollectionSwitchPost200Response) *NullableAnswerApiV1CollectionSwitchPost200Response { + return &NullableAnswerApiV1CollectionSwitchPost200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1CollectionSwitchPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1CollectionSwitchPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_comment_get_200_response.go b/model__answer_api_v1_comment_get_200_response.go new file mode 100644 index 0000000..bdd4ec4 --- /dev/null +++ b/model__answer_api_v1_comment_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1CommentGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1CommentGet200Response{} + +// AnswerApiV1CommentGet200Response struct for AnswerApiV1CommentGet200Response +type AnswerApiV1CommentGet200Response struct { + Data *AnswerApiV1CommentGet200ResponseData `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1CommentGet200Response instantiates a new AnswerApiV1CommentGet200Response 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 NewAnswerApiV1CommentGet200Response() *AnswerApiV1CommentGet200Response { + this := AnswerApiV1CommentGet200Response{} + return &this +} + +// NewAnswerApiV1CommentGet200ResponseWithDefaults instantiates a new AnswerApiV1CommentGet200Response 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 NewAnswerApiV1CommentGet200ResponseWithDefaults() *AnswerApiV1CommentGet200Response { + this := AnswerApiV1CommentGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1CommentGet200Response) GetData() AnswerApiV1CommentGet200ResponseData { + if o == nil || IsNil(o.Data) { + var ret AnswerApiV1CommentGet200ResponseData + 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 *AnswerApiV1CommentGet200Response) GetDataOk() (*AnswerApiV1CommentGet200ResponseData, 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 *AnswerApiV1CommentGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AnswerApiV1CommentGet200ResponseData and assigns it to the Data field. +func (o *AnswerApiV1CommentGet200Response) SetData(v AnswerApiV1CommentGet200ResponseData) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1CommentGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1CommentGet200Response) 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 *AnswerApiV1CommentGet200Response) 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 *AnswerApiV1CommentGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1CommentGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1CommentGet200Response) 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 NullableAnswerApiV1CommentGet200Response struct { + value *AnswerApiV1CommentGet200Response + isSet bool +} + +func (v NullableAnswerApiV1CommentGet200Response) Get() *AnswerApiV1CommentGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1CommentGet200Response) Set(val *AnswerApiV1CommentGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1CommentGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1CommentGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1CommentGet200Response(val *AnswerApiV1CommentGet200Response) *NullableAnswerApiV1CommentGet200Response { + return &NullableAnswerApiV1CommentGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1CommentGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1CommentGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_comment_get_200_response_data.go b/model__answer_api_v1_comment_get_200_response_data.go new file mode 100644 index 0000000..b270ab5 --- /dev/null +++ b/model__answer_api_v1_comment_get_200_response_data.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1CommentGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1CommentGet200ResponseData{} + +// AnswerApiV1CommentGet200ResponseData struct for AnswerApiV1CommentGet200ResponseData +type AnswerApiV1CommentGet200ResponseData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetCommentResp `json:"list,omitempty"` +} + +// NewAnswerApiV1CommentGet200ResponseData instantiates a new AnswerApiV1CommentGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1CommentGet200ResponseData() *AnswerApiV1CommentGet200ResponseData { + this := AnswerApiV1CommentGet200ResponseData{} + return &this +} + +// NewAnswerApiV1CommentGet200ResponseDataWithDefaults instantiates a new AnswerApiV1CommentGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1CommentGet200ResponseDataWithDefaults() *AnswerApiV1CommentGet200ResponseData { + this := AnswerApiV1CommentGet200ResponseData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1CommentGet200ResponseData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CommentGet200ResponseData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1CommentGet200ResponseData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1CommentGet200ResponseData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1CommentGet200ResponseData) GetList() []SchemaGetCommentResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetCommentResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CommentGet200ResponseData) GetListOk() ([]SchemaGetCommentResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1CommentGet200ResponseData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetCommentResp and assigns it to the List field. +func (o *AnswerApiV1CommentGet200ResponseData) SetList(v []SchemaGetCommentResp) { + o.List = v +} + +func (o AnswerApiV1CommentGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1CommentGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1CommentGet200ResponseData struct { + value *AnswerApiV1CommentGet200ResponseData + isSet bool +} + +func (v NullableAnswerApiV1CommentGet200ResponseData) Get() *AnswerApiV1CommentGet200ResponseData { + return v.value +} + +func (v *NullableAnswerApiV1CommentGet200ResponseData) Set(val *AnswerApiV1CommentGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1CommentGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1CommentGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1CommentGet200ResponseData(val *AnswerApiV1CommentGet200ResponseData) *NullableAnswerApiV1CommentGet200ResponseData { + return &NullableAnswerApiV1CommentGet200ResponseData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1CommentGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1CommentGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_comment_get_200_response_data_all_of.go b/model__answer_api_v1_comment_get_200_response_data_all_of.go new file mode 100644 index 0000000..842db52 --- /dev/null +++ b/model__answer_api_v1_comment_get_200_response_data_all_of.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1CommentGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1CommentGet200ResponseDataAllOf{} + +// AnswerApiV1CommentGet200ResponseDataAllOf struct for AnswerApiV1CommentGet200ResponseDataAllOf +type AnswerApiV1CommentGet200ResponseDataAllOf struct { + List []SchemaGetCommentResp `json:"list,omitempty"` +} + +// NewAnswerApiV1CommentGet200ResponseDataAllOf instantiates a new AnswerApiV1CommentGet200ResponseDataAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1CommentGet200ResponseDataAllOf() *AnswerApiV1CommentGet200ResponseDataAllOf { + this := AnswerApiV1CommentGet200ResponseDataAllOf{} + return &this +} + +// NewAnswerApiV1CommentGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1CommentGet200ResponseDataAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1CommentGet200ResponseDataAllOfWithDefaults() *AnswerApiV1CommentGet200ResponseDataAllOf { + this := AnswerApiV1CommentGet200ResponseDataAllOf{} + return &this +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1CommentGet200ResponseDataAllOf) GetList() []SchemaGetCommentResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetCommentResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1CommentGet200ResponseDataAllOf) GetListOk() ([]SchemaGetCommentResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1CommentGet200ResponseDataAllOf) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetCommentResp and assigns it to the List field. +func (o *AnswerApiV1CommentGet200ResponseDataAllOf) SetList(v []SchemaGetCommentResp) { + o.List = v +} + +func (o AnswerApiV1CommentGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1CommentGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1CommentGet200ResponseDataAllOf struct { + value *AnswerApiV1CommentGet200ResponseDataAllOf + isSet bool +} + +func (v NullableAnswerApiV1CommentGet200ResponseDataAllOf) Get() *AnswerApiV1CommentGet200ResponseDataAllOf { + return v.value +} + +func (v *NullableAnswerApiV1CommentGet200ResponseDataAllOf) Set(val *AnswerApiV1CommentGet200ResponseDataAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1CommentGet200ResponseDataAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1CommentGet200ResponseDataAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1CommentGet200ResponseDataAllOf(val *AnswerApiV1CommentGet200ResponseDataAllOf) *NullableAnswerApiV1CommentGet200ResponseDataAllOf { + return &NullableAnswerApiV1CommentGet200ResponseDataAllOf{value: val, isSet: true} +} + +func (v NullableAnswerApiV1CommentGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1CommentGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_comment_post_200_response.go b/model__answer_api_v1_comment_post_200_response.go new file mode 100644 index 0000000..a0c3bb9 --- /dev/null +++ b/model__answer_api_v1_comment_post_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1CommentPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1CommentPost200Response{} + +// AnswerApiV1CommentPost200Response struct for AnswerApiV1CommentPost200Response +type AnswerApiV1CommentPost200Response struct { + Data *SchemaGetCommentResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1CommentPost200Response instantiates a new AnswerApiV1CommentPost200Response 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 NewAnswerApiV1CommentPost200Response() *AnswerApiV1CommentPost200Response { + this := AnswerApiV1CommentPost200Response{} + return &this +} + +// NewAnswerApiV1CommentPost200ResponseWithDefaults instantiates a new AnswerApiV1CommentPost200Response 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 NewAnswerApiV1CommentPost200ResponseWithDefaults() *AnswerApiV1CommentPost200Response { + this := AnswerApiV1CommentPost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1CommentPost200Response) GetData() SchemaGetCommentResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetCommentResp + 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 *AnswerApiV1CommentPost200Response) GetDataOk() (*SchemaGetCommentResp, 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 *AnswerApiV1CommentPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetCommentResp and assigns it to the Data field. +func (o *AnswerApiV1CommentPost200Response) SetData(v SchemaGetCommentResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1CommentPost200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1CommentPost200Response) 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 *AnswerApiV1CommentPost200Response) 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 *AnswerApiV1CommentPost200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1CommentPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1CommentPost200Response) 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 NullableAnswerApiV1CommentPost200Response struct { + value *AnswerApiV1CommentPost200Response + isSet bool +} + +func (v NullableAnswerApiV1CommentPost200Response) Get() *AnswerApiV1CommentPost200Response { + return v.value +} + +func (v *NullableAnswerApiV1CommentPost200Response) Set(val *AnswerApiV1CommentPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1CommentPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1CommentPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1CommentPost200Response(val *AnswerApiV1CommentPost200Response) *NullableAnswerApiV1CommentPost200Response { + return &NullableAnswerApiV1CommentPost200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1CommentPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1CommentPost200Response) 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 new file mode 100644 index 0000000..f2bd258 --- /dev/null +++ b/model__answer_api_v1_file_post_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1FilePost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1FilePost200Response{} + +// AnswerApiV1FilePost200Response struct for AnswerApiV1FilePost200Response +type AnswerApiV1FilePost200Response struct { + Data *string `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1FilePost200Response instantiates a new AnswerApiV1FilePost200Response 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 NewAnswerApiV1FilePost200Response() *AnswerApiV1FilePost200Response { + this := AnswerApiV1FilePost200Response{} + return &this +} + +// NewAnswerApiV1FilePost200ResponseWithDefaults instantiates a new AnswerApiV1FilePost200Response 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 NewAnswerApiV1FilePost200ResponseWithDefaults() *AnswerApiV1FilePost200Response { + this := AnswerApiV1FilePost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1FilePost200Response) GetData() string { + if o == nil || IsNil(o.Data) { + var ret string + 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 *AnswerApiV1FilePost200Response) GetDataOk() (*string, 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 *AnswerApiV1FilePost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given string and assigns it to the Data field. +func (o *AnswerApiV1FilePost200Response) SetData(v string) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1FilePost200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1FilePost200Response) 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 *AnswerApiV1FilePost200Response) 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 *AnswerApiV1FilePost200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1FilePost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1FilePost200Response) 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 NullableAnswerApiV1FilePost200Response struct { + value *AnswerApiV1FilePost200Response + isSet bool +} + +func (v NullableAnswerApiV1FilePost200Response) Get() *AnswerApiV1FilePost200Response { + return v.value +} + +func (v *NullableAnswerApiV1FilePost200Response) Set(val *AnswerApiV1FilePost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1FilePost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1FilePost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1FilePost200Response(val *AnswerApiV1FilePost200Response) *NullableAnswerApiV1FilePost200Response { + return &NullableAnswerApiV1FilePost200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1FilePost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1FilePost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_follow_post_200_response.go b/model__answer_api_v1_follow_post_200_response.go new file mode 100644 index 0000000..1c83fb3 --- /dev/null +++ b/model__answer_api_v1_follow_post_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1FollowPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1FollowPost200Response{} + +// AnswerApiV1FollowPost200Response struct for AnswerApiV1FollowPost200Response +type AnswerApiV1FollowPost200Response struct { + Data *SchemaFollowResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1FollowPost200Response instantiates a new AnswerApiV1FollowPost200Response 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 NewAnswerApiV1FollowPost200Response() *AnswerApiV1FollowPost200Response { + this := AnswerApiV1FollowPost200Response{} + return &this +} + +// NewAnswerApiV1FollowPost200ResponseWithDefaults instantiates a new AnswerApiV1FollowPost200Response 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 NewAnswerApiV1FollowPost200ResponseWithDefaults() *AnswerApiV1FollowPost200Response { + this := AnswerApiV1FollowPost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1FollowPost200Response) GetData() SchemaFollowResp { + if o == nil || IsNil(o.Data) { + var ret SchemaFollowResp + 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 *AnswerApiV1FollowPost200Response) GetDataOk() (*SchemaFollowResp, 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 *AnswerApiV1FollowPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaFollowResp and assigns it to the Data field. +func (o *AnswerApiV1FollowPost200Response) SetData(v SchemaFollowResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1FollowPost200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1FollowPost200Response) 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 *AnswerApiV1FollowPost200Response) 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 *AnswerApiV1FollowPost200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1FollowPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1FollowPost200Response) 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 NullableAnswerApiV1FollowPost200Response struct { + value *AnswerApiV1FollowPost200Response + isSet bool +} + +func (v NullableAnswerApiV1FollowPost200Response) Get() *AnswerApiV1FollowPost200Response { + return v.value +} + +func (v *NullableAnswerApiV1FollowPost200Response) Set(val *AnswerApiV1FollowPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1FollowPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1FollowPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1FollowPost200Response(val *AnswerApiV1FollowPost200Response) *NullableAnswerApiV1FollowPost200Response { + return &NullableAnswerApiV1FollowPost200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1FollowPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1FollowPost200Response) 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 new file mode 100644 index 0000000..a28a85c --- /dev/null +++ b/model__answer_api_v1_personal_comment_page_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalCommentPageGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalCommentPageGet200Response{} + +// AnswerApiV1PersonalCommentPageGet200Response struct for AnswerApiV1PersonalCommentPageGet200Response +type AnswerApiV1PersonalCommentPageGet200Response struct { + Data *AnswerApiV1PersonalCommentPageGet200ResponseData `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1PersonalCommentPageGet200Response instantiates a new AnswerApiV1PersonalCommentPageGet200Response 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 NewAnswerApiV1PersonalCommentPageGet200Response() *AnswerApiV1PersonalCommentPageGet200Response { + this := AnswerApiV1PersonalCommentPageGet200Response{} + return &this +} + +// NewAnswerApiV1PersonalCommentPageGet200ResponseWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200Response 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 NewAnswerApiV1PersonalCommentPageGet200ResponseWithDefaults() *AnswerApiV1PersonalCommentPageGet200Response { + this := AnswerApiV1PersonalCommentPageGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalCommentPageGet200Response) GetData() AnswerApiV1PersonalCommentPageGet200ResponseData { + if o == nil || IsNil(o.Data) { + var ret AnswerApiV1PersonalCommentPageGet200ResponseData + 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 *AnswerApiV1PersonalCommentPageGet200Response) GetDataOk() (*AnswerApiV1PersonalCommentPageGet200ResponseData, 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 *AnswerApiV1PersonalCommentPageGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AnswerApiV1PersonalCommentPageGet200ResponseData and assigns it to the Data field. +func (o *AnswerApiV1PersonalCommentPageGet200Response) SetData(v AnswerApiV1PersonalCommentPageGet200ResponseData) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalCommentPageGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1PersonalCommentPageGet200Response) 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 *AnswerApiV1PersonalCommentPageGet200Response) 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 *AnswerApiV1PersonalCommentPageGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1PersonalCommentPageGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalCommentPageGet200Response) 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 NullableAnswerApiV1PersonalCommentPageGet200Response struct { + value *AnswerApiV1PersonalCommentPageGet200Response + isSet bool +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200Response) Get() *AnswerApiV1PersonalCommentPageGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200Response) Set(val *AnswerApiV1PersonalCommentPageGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalCommentPageGet200Response(val *AnswerApiV1PersonalCommentPageGet200Response) *NullableAnswerApiV1PersonalCommentPageGet200Response { + return &NullableAnswerApiV1PersonalCommentPageGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_comment_page_get_200_response_data.go b/model__answer_api_v1_personal_comment_page_get_200_response_data.go new file mode 100644 index 0000000..e081c5e --- /dev/null +++ b/model__answer_api_v1_personal_comment_page_get_200_response_data.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalCommentPageGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalCommentPageGet200ResponseData{} + +// AnswerApiV1PersonalCommentPageGet200ResponseData struct for AnswerApiV1PersonalCommentPageGet200ResponseData +type AnswerApiV1PersonalCommentPageGet200ResponseData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetCommentPersonalWithPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1PersonalCommentPageGet200ResponseData instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1PersonalCommentPageGet200ResponseData() *AnswerApiV1PersonalCommentPageGet200ResponseData { + this := AnswerApiV1PersonalCommentPageGet200ResponseData{} + return &this +} + +// NewAnswerApiV1PersonalCommentPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1PersonalCommentPageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalCommentPageGet200ResponseData { + this := AnswerApiV1PersonalCommentPageGet200ResponseData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetList() []SchemaGetCommentPersonalWithPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetCommentPersonalWithPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) GetListOk() ([]SchemaGetCommentPersonalWithPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetCommentPersonalWithPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseData) SetList(v []SchemaGetCommentPersonalWithPageResp) { + o.List = v +} + +func (o AnswerApiV1PersonalCommentPageGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalCommentPageGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1PersonalCommentPageGet200ResponseData struct { + value *AnswerApiV1PersonalCommentPageGet200ResponseData + isSet bool +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseData) Get() *AnswerApiV1PersonalCommentPageGet200ResponseData { + return v.value +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseData) Set(val *AnswerApiV1PersonalCommentPageGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalCommentPageGet200ResponseData(val *AnswerApiV1PersonalCommentPageGet200ResponseData) *NullableAnswerApiV1PersonalCommentPageGet200ResponseData { + return &NullableAnswerApiV1PersonalCommentPageGet200ResponseData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_comment_page_get_200_response_data_all_of.go b/model__answer_api_v1_personal_comment_page_get_200_response_data_all_of.go new file mode 100644 index 0000000..7aeb564 --- /dev/null +++ b/model__answer_api_v1_personal_comment_page_get_200_response_data_all_of.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf{} + +// AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf struct for AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf +type AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf struct { + List []SchemaGetCommentPersonalWithPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf() *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf { + this := AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf{} + return &this +} + +// NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1PersonalCommentPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf { + this := AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf{} + return &this +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) GetList() []SchemaGetCommentPersonalWithPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetCommentPersonalWithPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) GetListOk() ([]SchemaGetCommentPersonalWithPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetCommentPersonalWithPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) SetList(v []SchemaGetCommentPersonalWithPageResp) { + o.List = v +} + +func (o AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf struct { + value *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf + isSet bool +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) Get() *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf { + return v.value +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) Set(val *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf(val *AnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) *NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf { + return &NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalCommentPageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_rank_page_get_200_response.go b/model__answer_api_v1_personal_rank_page_get_200_response.go new file mode 100644 index 0000000..1a41acf --- /dev/null +++ b/model__answer_api_v1_personal_rank_page_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalRankPageGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalRankPageGet200Response{} + +// AnswerApiV1PersonalRankPageGet200Response struct for AnswerApiV1PersonalRankPageGet200Response +type AnswerApiV1PersonalRankPageGet200Response struct { + Data *AnswerApiV1PersonalRankPageGet200ResponseData `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1PersonalRankPageGet200Response instantiates a new AnswerApiV1PersonalRankPageGet200Response 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 NewAnswerApiV1PersonalRankPageGet200Response() *AnswerApiV1PersonalRankPageGet200Response { + this := AnswerApiV1PersonalRankPageGet200Response{} + return &this +} + +// NewAnswerApiV1PersonalRankPageGet200ResponseWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200Response 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 NewAnswerApiV1PersonalRankPageGet200ResponseWithDefaults() *AnswerApiV1PersonalRankPageGet200Response { + this := AnswerApiV1PersonalRankPageGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalRankPageGet200Response) GetData() AnswerApiV1PersonalRankPageGet200ResponseData { + if o == nil || IsNil(o.Data) { + var ret AnswerApiV1PersonalRankPageGet200ResponseData + 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 *AnswerApiV1PersonalRankPageGet200Response) GetDataOk() (*AnswerApiV1PersonalRankPageGet200ResponseData, 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 *AnswerApiV1PersonalRankPageGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AnswerApiV1PersonalRankPageGet200ResponseData and assigns it to the Data field. +func (o *AnswerApiV1PersonalRankPageGet200Response) SetData(v AnswerApiV1PersonalRankPageGet200ResponseData) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalRankPageGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1PersonalRankPageGet200Response) 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 *AnswerApiV1PersonalRankPageGet200Response) 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 *AnswerApiV1PersonalRankPageGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1PersonalRankPageGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalRankPageGet200Response) 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 NullableAnswerApiV1PersonalRankPageGet200Response struct { + value *AnswerApiV1PersonalRankPageGet200Response + isSet bool +} + +func (v NullableAnswerApiV1PersonalRankPageGet200Response) Get() *AnswerApiV1PersonalRankPageGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200Response) Set(val *AnswerApiV1PersonalRankPageGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalRankPageGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalRankPageGet200Response(val *AnswerApiV1PersonalRankPageGet200Response) *NullableAnswerApiV1PersonalRankPageGet200Response { + return &NullableAnswerApiV1PersonalRankPageGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalRankPageGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_rank_page_get_200_response_data.go b/model__answer_api_v1_personal_rank_page_get_200_response_data.go new file mode 100644 index 0000000..f8a5bf8 --- /dev/null +++ b/model__answer_api_v1_personal_rank_page_get_200_response_data.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalRankPageGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalRankPageGet200ResponseData{} + +// AnswerApiV1PersonalRankPageGet200ResponseData struct for AnswerApiV1PersonalRankPageGet200ResponseData +type AnswerApiV1PersonalRankPageGet200ResponseData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetRankPersonalWithPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1PersonalRankPageGet200ResponseData instantiates a new AnswerApiV1PersonalRankPageGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1PersonalRankPageGet200ResponseData() *AnswerApiV1PersonalRankPageGet200ResponseData { + this := AnswerApiV1PersonalRankPageGet200ResponseData{} + return &this +} + +// NewAnswerApiV1PersonalRankPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1PersonalRankPageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalRankPageGet200ResponseData { + this := AnswerApiV1PersonalRankPageGet200ResponseData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetList() []SchemaGetRankPersonalWithPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetRankPersonalWithPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) GetListOk() ([]SchemaGetRankPersonalWithPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetRankPersonalWithPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalRankPageGet200ResponseData) SetList(v []SchemaGetRankPersonalWithPageResp) { + o.List = v +} + +func (o AnswerApiV1PersonalRankPageGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalRankPageGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1PersonalRankPageGet200ResponseData struct { + value *AnswerApiV1PersonalRankPageGet200ResponseData + isSet bool +} + +func (v NullableAnswerApiV1PersonalRankPageGet200ResponseData) Get() *AnswerApiV1PersonalRankPageGet200ResponseData { + return v.value +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseData) Set(val *AnswerApiV1PersonalRankPageGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalRankPageGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalRankPageGet200ResponseData(val *AnswerApiV1PersonalRankPageGet200ResponseData) *NullableAnswerApiV1PersonalRankPageGet200ResponseData { + return &NullableAnswerApiV1PersonalRankPageGet200ResponseData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalRankPageGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_rank_page_get_200_response_data_all_of.go b/model__answer_api_v1_personal_rank_page_get_200_response_data_all_of.go new file mode 100644 index 0000000..62b177e --- /dev/null +++ b/model__answer_api_v1_personal_rank_page_get_200_response_data_all_of.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalRankPageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalRankPageGet200ResponseDataAllOf{} + +// AnswerApiV1PersonalRankPageGet200ResponseDataAllOf struct for AnswerApiV1PersonalRankPageGet200ResponseDataAllOf +type AnswerApiV1PersonalRankPageGet200ResponseDataAllOf struct { + List []SchemaGetRankPersonalWithPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalRankPageGet200ResponseDataAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOf() *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf { + this := AnswerApiV1PersonalRankPageGet200ResponseDataAllOf{} + return &this +} + +// NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalRankPageGet200ResponseDataAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1PersonalRankPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf { + this := AnswerApiV1PersonalRankPageGet200ResponseDataAllOf{} + return &this +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetList() []SchemaGetRankPersonalWithPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetRankPersonalWithPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) GetListOk() ([]SchemaGetRankPersonalWithPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetRankPersonalWithPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) SetList(v []SchemaGetRankPersonalWithPageResp) { + o.List = v +} + +func (o AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf struct { + value *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf + isSet bool +} + +func (v NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) Get() *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf { + return v.value +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) Set(val *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf(val *AnswerApiV1PersonalRankPageGet200ResponseDataAllOf) *NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf { + return &NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalRankPageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_user_info_get_200_response.go b/model__answer_api_v1_personal_user_info_get_200_response.go new file mode 100644 index 0000000..81c89c3 --- /dev/null +++ b/model__answer_api_v1_personal_user_info_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalUserInfoGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalUserInfoGet200Response{} + +// AnswerApiV1PersonalUserInfoGet200Response struct for AnswerApiV1PersonalUserInfoGet200Response +type AnswerApiV1PersonalUserInfoGet200Response struct { + Data *SchemaGetOtherUserInfoResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1PersonalUserInfoGet200Response instantiates a new AnswerApiV1PersonalUserInfoGet200Response 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 NewAnswerApiV1PersonalUserInfoGet200Response() *AnswerApiV1PersonalUserInfoGet200Response { + this := AnswerApiV1PersonalUserInfoGet200Response{} + return &this +} + +// NewAnswerApiV1PersonalUserInfoGet200ResponseWithDefaults instantiates a new AnswerApiV1PersonalUserInfoGet200Response 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 NewAnswerApiV1PersonalUserInfoGet200ResponseWithDefaults() *AnswerApiV1PersonalUserInfoGet200Response { + this := AnswerApiV1PersonalUserInfoGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalUserInfoGet200Response) GetData() SchemaGetOtherUserInfoResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetOtherUserInfoResp + 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 *AnswerApiV1PersonalUserInfoGet200Response) GetDataOk() (*SchemaGetOtherUserInfoResp, 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 *AnswerApiV1PersonalUserInfoGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetOtherUserInfoResp and assigns it to the Data field. +func (o *AnswerApiV1PersonalUserInfoGet200Response) SetData(v SchemaGetOtherUserInfoResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalUserInfoGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1PersonalUserInfoGet200Response) 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 *AnswerApiV1PersonalUserInfoGet200Response) 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 *AnswerApiV1PersonalUserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1PersonalUserInfoGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalUserInfoGet200Response) 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 NullableAnswerApiV1PersonalUserInfoGet200Response struct { + value *AnswerApiV1PersonalUserInfoGet200Response + isSet bool +} + +func (v NullableAnswerApiV1PersonalUserInfoGet200Response) Get() *AnswerApiV1PersonalUserInfoGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1PersonalUserInfoGet200Response) Set(val *AnswerApiV1PersonalUserInfoGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalUserInfoGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalUserInfoGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalUserInfoGet200Response(val *AnswerApiV1PersonalUserInfoGet200Response) *NullableAnswerApiV1PersonalUserInfoGet200Response { + return &NullableAnswerApiV1PersonalUserInfoGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalUserInfoGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalUserInfoGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_vote_page_get_200_response.go b/model__answer_api_v1_personal_vote_page_get_200_response.go new file mode 100644 index 0000000..ea091b9 --- /dev/null +++ b/model__answer_api_v1_personal_vote_page_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalVotePageGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalVotePageGet200Response{} + +// AnswerApiV1PersonalVotePageGet200Response struct for AnswerApiV1PersonalVotePageGet200Response +type AnswerApiV1PersonalVotePageGet200Response struct { + Data *AnswerApiV1PersonalVotePageGet200ResponseData `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1PersonalVotePageGet200Response instantiates a new AnswerApiV1PersonalVotePageGet200Response 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 NewAnswerApiV1PersonalVotePageGet200Response() *AnswerApiV1PersonalVotePageGet200Response { + this := AnswerApiV1PersonalVotePageGet200Response{} + return &this +} + +// NewAnswerApiV1PersonalVotePageGet200ResponseWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200Response 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 NewAnswerApiV1PersonalVotePageGet200ResponseWithDefaults() *AnswerApiV1PersonalVotePageGet200Response { + this := AnswerApiV1PersonalVotePageGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalVotePageGet200Response) GetData() AnswerApiV1PersonalVotePageGet200ResponseData { + if o == nil || IsNil(o.Data) { + var ret AnswerApiV1PersonalVotePageGet200ResponseData + 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 *AnswerApiV1PersonalVotePageGet200Response) GetDataOk() (*AnswerApiV1PersonalVotePageGet200ResponseData, 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 *AnswerApiV1PersonalVotePageGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AnswerApiV1PersonalVotePageGet200ResponseData and assigns it to the Data field. +func (o *AnswerApiV1PersonalVotePageGet200Response) SetData(v AnswerApiV1PersonalVotePageGet200ResponseData) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalVotePageGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1PersonalVotePageGet200Response) 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 *AnswerApiV1PersonalVotePageGet200Response) 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 *AnswerApiV1PersonalVotePageGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1PersonalVotePageGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalVotePageGet200Response) 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 NullableAnswerApiV1PersonalVotePageGet200Response struct { + value *AnswerApiV1PersonalVotePageGet200Response + isSet bool +} + +func (v NullableAnswerApiV1PersonalVotePageGet200Response) Get() *AnswerApiV1PersonalVotePageGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200Response) Set(val *AnswerApiV1PersonalVotePageGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalVotePageGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalVotePageGet200Response(val *AnswerApiV1PersonalVotePageGet200Response) *NullableAnswerApiV1PersonalVotePageGet200Response { + return &NullableAnswerApiV1PersonalVotePageGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalVotePageGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_vote_page_get_200_response_data.go b/model__answer_api_v1_personal_vote_page_get_200_response_data.go new file mode 100644 index 0000000..0ac6038 --- /dev/null +++ b/model__answer_api_v1_personal_vote_page_get_200_response_data.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalVotePageGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalVotePageGet200ResponseData{} + +// AnswerApiV1PersonalVotePageGet200ResponseData struct for AnswerApiV1PersonalVotePageGet200ResponseData +type AnswerApiV1PersonalVotePageGet200ResponseData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetVoteWithPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1PersonalVotePageGet200ResponseData instantiates a new AnswerApiV1PersonalVotePageGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1PersonalVotePageGet200ResponseData() *AnswerApiV1PersonalVotePageGet200ResponseData { + this := AnswerApiV1PersonalVotePageGet200ResponseData{} + return &this +} + +// NewAnswerApiV1PersonalVotePageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1PersonalVotePageGet200ResponseDataWithDefaults() *AnswerApiV1PersonalVotePageGet200ResponseData { + this := AnswerApiV1PersonalVotePageGet200ResponseData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalVotePageGet200ResponseData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1PersonalVotePageGet200ResponseData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetList() []SchemaGetVoteWithPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetVoteWithPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalVotePageGet200ResponseData) GetListOk() ([]SchemaGetVoteWithPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalVotePageGet200ResponseData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetVoteWithPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalVotePageGet200ResponseData) SetList(v []SchemaGetVoteWithPageResp) { + o.List = v +} + +func (o AnswerApiV1PersonalVotePageGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalVotePageGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1PersonalVotePageGet200ResponseData struct { + value *AnswerApiV1PersonalVotePageGet200ResponseData + isSet bool +} + +func (v NullableAnswerApiV1PersonalVotePageGet200ResponseData) Get() *AnswerApiV1PersonalVotePageGet200ResponseData { + return v.value +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseData) Set(val *AnswerApiV1PersonalVotePageGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalVotePageGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalVotePageGet200ResponseData(val *AnswerApiV1PersonalVotePageGet200ResponseData) *NullableAnswerApiV1PersonalVotePageGet200ResponseData { + return &NullableAnswerApiV1PersonalVotePageGet200ResponseData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalVotePageGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_personal_vote_page_get_200_response_data_all_of.go b/model__answer_api_v1_personal_vote_page_get_200_response_data_all_of.go new file mode 100644 index 0000000..8cda187 --- /dev/null +++ b/model__answer_api_v1_personal_vote_page_get_200_response_data_all_of.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1PersonalVotePageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1PersonalVotePageGet200ResponseDataAllOf{} + +// AnswerApiV1PersonalVotePageGet200ResponseDataAllOf struct for AnswerApiV1PersonalVotePageGet200ResponseDataAllOf +type AnswerApiV1PersonalVotePageGet200ResponseDataAllOf struct { + List []SchemaGetVoteWithPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOf instantiates a new AnswerApiV1PersonalVotePageGet200ResponseDataAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOf() *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf { + this := AnswerApiV1PersonalVotePageGet200ResponseDataAllOf{} + return &this +} + +// NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1PersonalVotePageGet200ResponseDataAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1PersonalVotePageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf { + this := AnswerApiV1PersonalVotePageGet200ResponseDataAllOf{} + return &this +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) GetList() []SchemaGetVoteWithPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetVoteWithPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) GetListOk() ([]SchemaGetVoteWithPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetVoteWithPageResp and assigns it to the List field. +func (o *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) SetList(v []SchemaGetVoteWithPageResp) { + o.List = v +} + +func (o AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf struct { + value *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf + isSet bool +} + +func (v NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) Get() *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf { + return v.value +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) Set(val *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf(val *AnswerApiV1PersonalVotePageGet200ResponseDataAllOf) *NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf { + return &NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf{value: val, isSet: true} +} + +func (v NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1PersonalVotePageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_question_page_get_200_response.go b/model__answer_api_v1_question_page_get_200_response.go new file mode 100644 index 0000000..5cdf095 --- /dev/null +++ b/model__answer_api_v1_question_page_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1QuestionPageGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1QuestionPageGet200Response{} + +// AnswerApiV1QuestionPageGet200Response struct for AnswerApiV1QuestionPageGet200Response +type AnswerApiV1QuestionPageGet200Response struct { + Data *AnswerApiV1QuestionPageGet200ResponseData `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1QuestionPageGet200Response instantiates a new AnswerApiV1QuestionPageGet200Response 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 NewAnswerApiV1QuestionPageGet200Response() *AnswerApiV1QuestionPageGet200Response { + this := AnswerApiV1QuestionPageGet200Response{} + return &this +} + +// NewAnswerApiV1QuestionPageGet200ResponseWithDefaults instantiates a new AnswerApiV1QuestionPageGet200Response 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 NewAnswerApiV1QuestionPageGet200ResponseWithDefaults() *AnswerApiV1QuestionPageGet200Response { + this := AnswerApiV1QuestionPageGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionPageGet200Response) GetData() AnswerApiV1QuestionPageGet200ResponseData { + if o == nil || IsNil(o.Data) { + var ret AnswerApiV1QuestionPageGet200ResponseData + 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 *AnswerApiV1QuestionPageGet200Response) GetDataOk() (*AnswerApiV1QuestionPageGet200ResponseData, 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 *AnswerApiV1QuestionPageGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AnswerApiV1QuestionPageGet200ResponseData and assigns it to the Data field. +func (o *AnswerApiV1QuestionPageGet200Response) SetData(v AnswerApiV1QuestionPageGet200ResponseData) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionPageGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1QuestionPageGet200Response) 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 *AnswerApiV1QuestionPageGet200Response) 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 *AnswerApiV1QuestionPageGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1QuestionPageGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1QuestionPageGet200Response) 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 NullableAnswerApiV1QuestionPageGet200Response struct { + value *AnswerApiV1QuestionPageGet200Response + isSet bool +} + +func (v NullableAnswerApiV1QuestionPageGet200Response) Get() *AnswerApiV1QuestionPageGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1QuestionPageGet200Response) Set(val *AnswerApiV1QuestionPageGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1QuestionPageGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1QuestionPageGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1QuestionPageGet200Response(val *AnswerApiV1QuestionPageGet200Response) *NullableAnswerApiV1QuestionPageGet200Response { + return &NullableAnswerApiV1QuestionPageGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1QuestionPageGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1QuestionPageGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_question_page_get_200_response_data.go b/model__answer_api_v1_question_page_get_200_response_data.go new file mode 100644 index 0000000..04c39ec --- /dev/null +++ b/model__answer_api_v1_question_page_get_200_response_data.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1QuestionPageGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1QuestionPageGet200ResponseData{} + +// AnswerApiV1QuestionPageGet200ResponseData struct for AnswerApiV1QuestionPageGet200ResponseData +type AnswerApiV1QuestionPageGet200ResponseData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaQuestionPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1QuestionPageGet200ResponseData instantiates a new AnswerApiV1QuestionPageGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1QuestionPageGet200ResponseData() *AnswerApiV1QuestionPageGet200ResponseData { + this := AnswerApiV1QuestionPageGet200ResponseData{} + return &this +} + +// NewAnswerApiV1QuestionPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1QuestionPageGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1QuestionPageGet200ResponseDataWithDefaults() *AnswerApiV1QuestionPageGet200ResponseData { + this := AnswerApiV1QuestionPageGet200ResponseData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionPageGet200ResponseData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1QuestionPageGet200ResponseData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionPageGet200ResponseData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1QuestionPageGet200ResponseData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionPageGet200ResponseData) GetList() []SchemaQuestionPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaQuestionPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1QuestionPageGet200ResponseData) GetListOk() ([]SchemaQuestionPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionPageGet200ResponseData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaQuestionPageResp and assigns it to the List field. +func (o *AnswerApiV1QuestionPageGet200ResponseData) SetList(v []SchemaQuestionPageResp) { + o.List = v +} + +func (o AnswerApiV1QuestionPageGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1QuestionPageGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1QuestionPageGet200ResponseData struct { + value *AnswerApiV1QuestionPageGet200ResponseData + isSet bool +} + +func (v NullableAnswerApiV1QuestionPageGet200ResponseData) Get() *AnswerApiV1QuestionPageGet200ResponseData { + return v.value +} + +func (v *NullableAnswerApiV1QuestionPageGet200ResponseData) Set(val *AnswerApiV1QuestionPageGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1QuestionPageGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1QuestionPageGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1QuestionPageGet200ResponseData(val *AnswerApiV1QuestionPageGet200ResponseData) *NullableAnswerApiV1QuestionPageGet200ResponseData { + return &NullableAnswerApiV1QuestionPageGet200ResponseData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1QuestionPageGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1QuestionPageGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_question_page_get_200_response_data_all_of.go b/model__answer_api_v1_question_page_get_200_response_data_all_of.go new file mode 100644 index 0000000..0834bd9 --- /dev/null +++ b/model__answer_api_v1_question_page_get_200_response_data_all_of.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1QuestionPageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1QuestionPageGet200ResponseDataAllOf{} + +// AnswerApiV1QuestionPageGet200ResponseDataAllOf struct for AnswerApiV1QuestionPageGet200ResponseDataAllOf +type AnswerApiV1QuestionPageGet200ResponseDataAllOf struct { + List []SchemaQuestionPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1QuestionPageGet200ResponseDataAllOf instantiates a new AnswerApiV1QuestionPageGet200ResponseDataAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1QuestionPageGet200ResponseDataAllOf() *AnswerApiV1QuestionPageGet200ResponseDataAllOf { + this := AnswerApiV1QuestionPageGet200ResponseDataAllOf{} + return &this +} + +// NewAnswerApiV1QuestionPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1QuestionPageGet200ResponseDataAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1QuestionPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1QuestionPageGet200ResponseDataAllOf { + this := AnswerApiV1QuestionPageGet200ResponseDataAllOf{} + return &this +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) GetList() []SchemaQuestionPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaQuestionPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) GetListOk() ([]SchemaQuestionPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaQuestionPageResp and assigns it to the List field. +func (o *AnswerApiV1QuestionPageGet200ResponseDataAllOf) SetList(v []SchemaQuestionPageResp) { + o.List = v +} + +func (o AnswerApiV1QuestionPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1QuestionPageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf struct { + value *AnswerApiV1QuestionPageGet200ResponseDataAllOf + isSet bool +} + +func (v NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) Get() *AnswerApiV1QuestionPageGet200ResponseDataAllOf { + return v.value +} + +func (v *NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) Set(val *AnswerApiV1QuestionPageGet200ResponseDataAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1QuestionPageGet200ResponseDataAllOf(val *AnswerApiV1QuestionPageGet200ResponseDataAllOf) *NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf { + return &NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf{value: val, isSet: true} +} + +func (v NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1QuestionPageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_question_tags_get_200_response.go b/model__answer_api_v1_question_tags_get_200_response.go new file mode 100644 index 0000000..76d8690 --- /dev/null +++ b/model__answer_api_v1_question_tags_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1QuestionTagsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1QuestionTagsGet200Response{} + +// AnswerApiV1QuestionTagsGet200Response struct for AnswerApiV1QuestionTagsGet200Response +type AnswerApiV1QuestionTagsGet200Response struct { + Data []SchemaGetTagResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1QuestionTagsGet200Response instantiates a new AnswerApiV1QuestionTagsGet200Response 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 NewAnswerApiV1QuestionTagsGet200Response() *AnswerApiV1QuestionTagsGet200Response { + this := AnswerApiV1QuestionTagsGet200Response{} + return &this +} + +// NewAnswerApiV1QuestionTagsGet200ResponseWithDefaults instantiates a new AnswerApiV1QuestionTagsGet200Response 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 NewAnswerApiV1QuestionTagsGet200ResponseWithDefaults() *AnswerApiV1QuestionTagsGet200Response { + this := AnswerApiV1QuestionTagsGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionTagsGet200Response) GetData() []SchemaGetTagResp { + if o == nil || IsNil(o.Data) { + var ret []SchemaGetTagResp + 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 *AnswerApiV1QuestionTagsGet200Response) GetDataOk() ([]SchemaGetTagResp, 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 *AnswerApiV1QuestionTagsGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []SchemaGetTagResp and assigns it to the Data field. +func (o *AnswerApiV1QuestionTagsGet200Response) SetData(v []SchemaGetTagResp) { + o.Data = v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1QuestionTagsGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1QuestionTagsGet200Response) 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 *AnswerApiV1QuestionTagsGet200Response) 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 *AnswerApiV1QuestionTagsGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1QuestionTagsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1QuestionTagsGet200Response) 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 NullableAnswerApiV1QuestionTagsGet200Response struct { + value *AnswerApiV1QuestionTagsGet200Response + isSet bool +} + +func (v NullableAnswerApiV1QuestionTagsGet200Response) Get() *AnswerApiV1QuestionTagsGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1QuestionTagsGet200Response) Set(val *AnswerApiV1QuestionTagsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1QuestionTagsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1QuestionTagsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1QuestionTagsGet200Response(val *AnswerApiV1QuestionTagsGet200Response) *NullableAnswerApiV1QuestionTagsGet200Response { + return &NullableAnswerApiV1QuestionTagsGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1QuestionTagsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1QuestionTagsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_report_type_list_get_200_response.go b/model__answer_api_v1_report_type_list_get_200_response.go new file mode 100644 index 0000000..dadf685 --- /dev/null +++ b/model__answer_api_v1_report_type_list_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1ReportTypeListGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1ReportTypeListGet200Response{} + +// AnswerApiV1ReportTypeListGet200Response struct for AnswerApiV1ReportTypeListGet200Response +type AnswerApiV1ReportTypeListGet200Response struct { + Data []SchemaGetReportTypeResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1ReportTypeListGet200Response instantiates a new AnswerApiV1ReportTypeListGet200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1ReportTypeListGet200Response() *AnswerApiV1ReportTypeListGet200Response { + this := AnswerApiV1ReportTypeListGet200Response{} + return &this +} + +// NewAnswerApiV1ReportTypeListGet200ResponseWithDefaults instantiates a new AnswerApiV1ReportTypeListGet200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1ReportTypeListGet200ResponseWithDefaults() *AnswerApiV1ReportTypeListGet200Response { + this := AnswerApiV1ReportTypeListGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1ReportTypeListGet200Response) GetData() []SchemaGetReportTypeResp { + if o == nil || IsNil(o.Data) { + var ret []SchemaGetReportTypeResp + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1ReportTypeListGet200Response) GetDataOk() ([]SchemaGetReportTypeResp, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *AnswerApiV1ReportTypeListGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []SchemaGetReportTypeResp and assigns it to the Data field. +func (o *AnswerApiV1ReportTypeListGet200Response) SetData(v []SchemaGetReportTypeResp) { + o.Data = v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1ReportTypeListGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + return ret + } + return *o.HandlerRespBody +} + +// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1ReportTypeListGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { + if o == nil || IsNil(o.HandlerRespBody) { + return nil, false + } + return o.HandlerRespBody, true +} + +// HasHandlerRespBody returns a boolean if a field has been set. +func (o *AnswerApiV1ReportTypeListGet200Response) HasHandlerRespBody() bool { + if o != nil && !IsNil(o.HandlerRespBody) { + return true + } + + return false +} + +// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. +func (o *AnswerApiV1ReportTypeListGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1ReportTypeListGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1ReportTypeListGet200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.HandlerRespBody) { + toSerialize["handler.RespBody"] = o.HandlerRespBody + } + return toSerialize, nil +} + +type NullableAnswerApiV1ReportTypeListGet200Response struct { + value *AnswerApiV1ReportTypeListGet200Response + isSet bool +} + +func (v NullableAnswerApiV1ReportTypeListGet200Response) Get() *AnswerApiV1ReportTypeListGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1ReportTypeListGet200Response) Set(val *AnswerApiV1ReportTypeListGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1ReportTypeListGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1ReportTypeListGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1ReportTypeListGet200Response(val *AnswerApiV1ReportTypeListGet200Response) *NullableAnswerApiV1ReportTypeListGet200Response { + return &NullableAnswerApiV1ReportTypeListGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1ReportTypeListGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1ReportTypeListGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_revisions_get_200_response.go b/model__answer_api_v1_revisions_get_200_response.go new file mode 100644 index 0000000..ff07e3e --- /dev/null +++ b/model__answer_api_v1_revisions_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1RevisionsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1RevisionsGet200Response{} + +// AnswerApiV1RevisionsGet200Response struct for AnswerApiV1RevisionsGet200Response +type AnswerApiV1RevisionsGet200Response struct { + Data []SchemaGetRevisionResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1RevisionsGet200Response instantiates a new AnswerApiV1RevisionsGet200Response 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 NewAnswerApiV1RevisionsGet200Response() *AnswerApiV1RevisionsGet200Response { + this := AnswerApiV1RevisionsGet200Response{} + return &this +} + +// NewAnswerApiV1RevisionsGet200ResponseWithDefaults instantiates a new AnswerApiV1RevisionsGet200Response 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 NewAnswerApiV1RevisionsGet200ResponseWithDefaults() *AnswerApiV1RevisionsGet200Response { + this := AnswerApiV1RevisionsGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsGet200Response) GetData() []SchemaGetRevisionResp { + if o == nil || IsNil(o.Data) { + var ret []SchemaGetRevisionResp + 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 *AnswerApiV1RevisionsGet200Response) GetDataOk() ([]SchemaGetRevisionResp, 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 *AnswerApiV1RevisionsGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []SchemaGetRevisionResp and assigns it to the Data field. +func (o *AnswerApiV1RevisionsGet200Response) SetData(v []SchemaGetRevisionResp) { + o.Data = v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1RevisionsGet200Response) 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 *AnswerApiV1RevisionsGet200Response) 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 *AnswerApiV1RevisionsGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1RevisionsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1RevisionsGet200Response) 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 NullableAnswerApiV1RevisionsGet200Response struct { + value *AnswerApiV1RevisionsGet200Response + isSet bool +} + +func (v NullableAnswerApiV1RevisionsGet200Response) Get() *AnswerApiV1RevisionsGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1RevisionsGet200Response) Set(val *AnswerApiV1RevisionsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1RevisionsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1RevisionsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1RevisionsGet200Response(val *AnswerApiV1RevisionsGet200Response) *NullableAnswerApiV1RevisionsGet200Response { + return &NullableAnswerApiV1RevisionsGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1RevisionsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1RevisionsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_revisions_unreviewed_get_200_response.go b/model__answer_api_v1_revisions_unreviewed_get_200_response.go new file mode 100644 index 0000000..c5c34fb --- /dev/null +++ b/model__answer_api_v1_revisions_unreviewed_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1RevisionsUnreviewedGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1RevisionsUnreviewedGet200Response{} + +// AnswerApiV1RevisionsUnreviewedGet200Response struct for AnswerApiV1RevisionsUnreviewedGet200Response +type AnswerApiV1RevisionsUnreviewedGet200Response struct { + Data *AnswerApiV1RevisionsUnreviewedGet200ResponseData `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1RevisionsUnreviewedGet200Response instantiates a new AnswerApiV1RevisionsUnreviewedGet200Response 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 NewAnswerApiV1RevisionsUnreviewedGet200Response() *AnswerApiV1RevisionsUnreviewedGet200Response { + this := AnswerApiV1RevisionsUnreviewedGet200Response{} + return &this +} + +// NewAnswerApiV1RevisionsUnreviewedGet200ResponseWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200Response 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 NewAnswerApiV1RevisionsUnreviewedGet200ResponseWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200Response { + this := AnswerApiV1RevisionsUnreviewedGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetData() AnswerApiV1RevisionsUnreviewedGet200ResponseData { + if o == nil || IsNil(o.Data) { + var ret AnswerApiV1RevisionsUnreviewedGet200ResponseData + 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 *AnswerApiV1RevisionsUnreviewedGet200Response) GetDataOk() (*AnswerApiV1RevisionsUnreviewedGet200ResponseData, 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 *AnswerApiV1RevisionsUnreviewedGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AnswerApiV1RevisionsUnreviewedGet200ResponseData and assigns it to the Data field. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) SetData(v AnswerApiV1RevisionsUnreviewedGet200ResponseData) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsUnreviewedGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1RevisionsUnreviewedGet200Response) 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 *AnswerApiV1RevisionsUnreviewedGet200Response) 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 *AnswerApiV1RevisionsUnreviewedGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1RevisionsUnreviewedGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1RevisionsUnreviewedGet200Response) 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 NullableAnswerApiV1RevisionsUnreviewedGet200Response struct { + value *AnswerApiV1RevisionsUnreviewedGet200Response + isSet bool +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200Response) Get() *AnswerApiV1RevisionsUnreviewedGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200Response) Set(val *AnswerApiV1RevisionsUnreviewedGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1RevisionsUnreviewedGet200Response(val *AnswerApiV1RevisionsUnreviewedGet200Response) *NullableAnswerApiV1RevisionsUnreviewedGet200Response { + return &NullableAnswerApiV1RevisionsUnreviewedGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_revisions_unreviewed_get_200_response_data.go b/model__answer_api_v1_revisions_unreviewed_get_200_response_data.go new file mode 100644 index 0000000..a38483a --- /dev/null +++ b/model__answer_api_v1_revisions_unreviewed_get_200_response_data.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1RevisionsUnreviewedGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1RevisionsUnreviewedGet200ResponseData{} + +// AnswerApiV1RevisionsUnreviewedGet200ResponseData struct for AnswerApiV1RevisionsUnreviewedGet200ResponseData +type AnswerApiV1RevisionsUnreviewedGet200ResponseData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetUnreviewedRevisionResp `json:"list,omitempty"` +} + +// NewAnswerApiV1RevisionsUnreviewedGet200ResponseData instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1RevisionsUnreviewedGet200ResponseData() *AnswerApiV1RevisionsUnreviewedGet200ResponseData { + this := AnswerApiV1RevisionsUnreviewedGet200ResponseData{} + return &this +} + +// NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200ResponseData { + this := AnswerApiV1RevisionsUnreviewedGet200ResponseData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetList() []SchemaGetUnreviewedRevisionResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetUnreviewedRevisionResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) GetListOk() ([]SchemaGetUnreviewedRevisionResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetUnreviewedRevisionResp and assigns it to the List field. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseData) SetList(v []SchemaGetUnreviewedRevisionResp) { + o.List = v +} + +func (o AnswerApiV1RevisionsUnreviewedGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1RevisionsUnreviewedGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData struct { + value *AnswerApiV1RevisionsUnreviewedGet200ResponseData + isSet bool +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) Get() *AnswerApiV1RevisionsUnreviewedGet200ResponseData { + return v.value +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) Set(val *AnswerApiV1RevisionsUnreviewedGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1RevisionsUnreviewedGet200ResponseData(val *AnswerApiV1RevisionsUnreviewedGet200ResponseData) *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData { + return &NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_revisions_unreviewed_get_200_response_data_all_of.go b/model__answer_api_v1_revisions_unreviewed_get_200_response_data_all_of.go new file mode 100644 index 0000000..e5411d9 --- /dev/null +++ b/model__answer_api_v1_revisions_unreviewed_get_200_response_data_all_of.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf{} + +// AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf struct for AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf +type AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf struct { + List []SchemaGetUnreviewedRevisionResp `json:"list,omitempty"` +} + +// NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf() *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf { + this := AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf{} + return &this +} + +// NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOfWithDefaults() *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf { + this := AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf{} + return &this +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) GetList() []SchemaGetUnreviewedRevisionResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetUnreviewedRevisionResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) GetListOk() ([]SchemaGetUnreviewedRevisionResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetUnreviewedRevisionResp and assigns it to the List field. +func (o *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) SetList(v []SchemaGetUnreviewedRevisionResp) { + o.List = v +} + +func (o AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf struct { + value *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf + isSet bool +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) Get() *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf { + return v.value +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) Set(val *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf(val *AnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf { + return &NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf{value: val, isSet: true} +} + +func (v NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1RevisionsUnreviewedGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_search_get_200_response.go b/model__answer_api_v1_search_get_200_response.go new file mode 100644 index 0000000..e77e75d --- /dev/null +++ b/model__answer_api_v1_search_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1SearchGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1SearchGet200Response{} + +// AnswerApiV1SearchGet200Response struct for AnswerApiV1SearchGet200Response +type AnswerApiV1SearchGet200Response struct { + Data *SchemaSearchListResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1SearchGet200Response instantiates a new AnswerApiV1SearchGet200Response 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 NewAnswerApiV1SearchGet200Response() *AnswerApiV1SearchGet200Response { + this := AnswerApiV1SearchGet200Response{} + return &this +} + +// NewAnswerApiV1SearchGet200ResponseWithDefaults instantiates a new AnswerApiV1SearchGet200Response 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 NewAnswerApiV1SearchGet200ResponseWithDefaults() *AnswerApiV1SearchGet200Response { + this := AnswerApiV1SearchGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1SearchGet200Response) GetData() SchemaSearchListResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSearchListResp + 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 *AnswerApiV1SearchGet200Response) GetDataOk() (*SchemaSearchListResp, 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 *AnswerApiV1SearchGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSearchListResp and assigns it to the Data field. +func (o *AnswerApiV1SearchGet200Response) SetData(v SchemaSearchListResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1SearchGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1SearchGet200Response) 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 *AnswerApiV1SearchGet200Response) 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 *AnswerApiV1SearchGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1SearchGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1SearchGet200Response) 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 NullableAnswerApiV1SearchGet200Response struct { + value *AnswerApiV1SearchGet200Response + isSet bool +} + +func (v NullableAnswerApiV1SearchGet200Response) Get() *AnswerApiV1SearchGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1SearchGet200Response) Set(val *AnswerApiV1SearchGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1SearchGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1SearchGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1SearchGet200Response(val *AnswerApiV1SearchGet200Response) *NullableAnswerApiV1SearchGet200Response { + return &NullableAnswerApiV1SearchGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1SearchGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1SearchGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_siteinfo_get_200_response.go b/model__answer_api_v1_siteinfo_get_200_response.go new file mode 100644 index 0000000..957bd9c --- /dev/null +++ b/model__answer_api_v1_siteinfo_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1SiteinfoGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1SiteinfoGet200Response{} + +// AnswerApiV1SiteinfoGet200Response struct for AnswerApiV1SiteinfoGet200Response +type AnswerApiV1SiteinfoGet200Response struct { + Data *SchemaSiteInfoResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1SiteinfoGet200Response instantiates a new AnswerApiV1SiteinfoGet200Response 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 NewAnswerApiV1SiteinfoGet200Response() *AnswerApiV1SiteinfoGet200Response { + this := AnswerApiV1SiteinfoGet200Response{} + return &this +} + +// NewAnswerApiV1SiteinfoGet200ResponseWithDefaults instantiates a new AnswerApiV1SiteinfoGet200Response 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 NewAnswerApiV1SiteinfoGet200ResponseWithDefaults() *AnswerApiV1SiteinfoGet200Response { + this := AnswerApiV1SiteinfoGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1SiteinfoGet200Response) GetData() SchemaSiteInfoResp { + if o == nil || IsNil(o.Data) { + var ret SchemaSiteInfoResp + 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 *AnswerApiV1SiteinfoGet200Response) GetDataOk() (*SchemaSiteInfoResp, 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 *AnswerApiV1SiteinfoGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaSiteInfoResp and assigns it to the Data field. +func (o *AnswerApiV1SiteinfoGet200Response) SetData(v SchemaSiteInfoResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1SiteinfoGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1SiteinfoGet200Response) 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 *AnswerApiV1SiteinfoGet200Response) 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 *AnswerApiV1SiteinfoGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1SiteinfoGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1SiteinfoGet200Response) 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 NullableAnswerApiV1SiteinfoGet200Response struct { + value *AnswerApiV1SiteinfoGet200Response + isSet bool +} + +func (v NullableAnswerApiV1SiteinfoGet200Response) Get() *AnswerApiV1SiteinfoGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1SiteinfoGet200Response) Set(val *AnswerApiV1SiteinfoGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1SiteinfoGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1SiteinfoGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1SiteinfoGet200Response(val *AnswerApiV1SiteinfoGet200Response) *NullableAnswerApiV1SiteinfoGet200Response { + return &NullableAnswerApiV1SiteinfoGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1SiteinfoGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1SiteinfoGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_siteinfo_legal_get_200_response.go b/model__answer_api_v1_siteinfo_legal_get_200_response.go new file mode 100644 index 0000000..07597d8 --- /dev/null +++ b/model__answer_api_v1_siteinfo_legal_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1SiteinfoLegalGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1SiteinfoLegalGet200Response{} + +// AnswerApiV1SiteinfoLegalGet200Response struct for AnswerApiV1SiteinfoLegalGet200Response +type AnswerApiV1SiteinfoLegalGet200Response struct { + Data *SchemaGetSiteLegalInfoResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1SiteinfoLegalGet200Response instantiates a new AnswerApiV1SiteinfoLegalGet200Response 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 NewAnswerApiV1SiteinfoLegalGet200Response() *AnswerApiV1SiteinfoLegalGet200Response { + this := AnswerApiV1SiteinfoLegalGet200Response{} + return &this +} + +// NewAnswerApiV1SiteinfoLegalGet200ResponseWithDefaults instantiates a new AnswerApiV1SiteinfoLegalGet200Response 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 NewAnswerApiV1SiteinfoLegalGet200ResponseWithDefaults() *AnswerApiV1SiteinfoLegalGet200Response { + this := AnswerApiV1SiteinfoLegalGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1SiteinfoLegalGet200Response) GetData() SchemaGetSiteLegalInfoResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetSiteLegalInfoResp + 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 *AnswerApiV1SiteinfoLegalGet200Response) GetDataOk() (*SchemaGetSiteLegalInfoResp, 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 *AnswerApiV1SiteinfoLegalGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetSiteLegalInfoResp and assigns it to the Data field. +func (o *AnswerApiV1SiteinfoLegalGet200Response) SetData(v SchemaGetSiteLegalInfoResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1SiteinfoLegalGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1SiteinfoLegalGet200Response) 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 *AnswerApiV1SiteinfoLegalGet200Response) 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 *AnswerApiV1SiteinfoLegalGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1SiteinfoLegalGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1SiteinfoLegalGet200Response) 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 NullableAnswerApiV1SiteinfoLegalGet200Response struct { + value *AnswerApiV1SiteinfoLegalGet200Response + isSet bool +} + +func (v NullableAnswerApiV1SiteinfoLegalGet200Response) Get() *AnswerApiV1SiteinfoLegalGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1SiteinfoLegalGet200Response) Set(val *AnswerApiV1SiteinfoLegalGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1SiteinfoLegalGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1SiteinfoLegalGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1SiteinfoLegalGet200Response(val *AnswerApiV1SiteinfoLegalGet200Response) *NullableAnswerApiV1SiteinfoLegalGet200Response { + return &NullableAnswerApiV1SiteinfoLegalGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1SiteinfoLegalGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1SiteinfoLegalGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_tag_get_200_response.go b/model__answer_api_v1_tag_get_200_response.go new file mode 100644 index 0000000..d5ca021 --- /dev/null +++ b/model__answer_api_v1_tag_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1TagGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1TagGet200Response{} + +// AnswerApiV1TagGet200Response struct for AnswerApiV1TagGet200Response +type AnswerApiV1TagGet200Response struct { + Data *SchemaGetTagResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1TagGet200Response instantiates a new AnswerApiV1TagGet200Response 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 NewAnswerApiV1TagGet200Response() *AnswerApiV1TagGet200Response { + this := AnswerApiV1TagGet200Response{} + return &this +} + +// NewAnswerApiV1TagGet200ResponseWithDefaults instantiates a new AnswerApiV1TagGet200Response 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 NewAnswerApiV1TagGet200ResponseWithDefaults() *AnswerApiV1TagGet200Response { + this := AnswerApiV1TagGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1TagGet200Response) GetData() SchemaGetTagResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetTagResp + 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 *AnswerApiV1TagGet200Response) GetDataOk() (*SchemaGetTagResp, 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 *AnswerApiV1TagGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetTagResp and assigns it to the Data field. +func (o *AnswerApiV1TagGet200Response) SetData(v SchemaGetTagResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1TagGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1TagGet200Response) 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 *AnswerApiV1TagGet200Response) 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 *AnswerApiV1TagGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1TagGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1TagGet200Response) 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 NullableAnswerApiV1TagGet200Response struct { + value *AnswerApiV1TagGet200Response + isSet bool +} + +func (v NullableAnswerApiV1TagGet200Response) Get() *AnswerApiV1TagGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1TagGet200Response) Set(val *AnswerApiV1TagGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1TagGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1TagGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1TagGet200Response(val *AnswerApiV1TagGet200Response) *NullableAnswerApiV1TagGet200Response { + return &NullableAnswerApiV1TagGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1TagGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1TagGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_tag_synonyms_get_200_response.go b/model__answer_api_v1_tag_synonyms_get_200_response.go new file mode 100644 index 0000000..25b766a --- /dev/null +++ b/model__answer_api_v1_tag_synonyms_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1TagSynonymsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1TagSynonymsGet200Response{} + +// AnswerApiV1TagSynonymsGet200Response struct for AnswerApiV1TagSynonymsGet200Response +type AnswerApiV1TagSynonymsGet200Response struct { + Data *SchemaGetTagSynonymsResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1TagSynonymsGet200Response instantiates a new AnswerApiV1TagSynonymsGet200Response 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 NewAnswerApiV1TagSynonymsGet200Response() *AnswerApiV1TagSynonymsGet200Response { + this := AnswerApiV1TagSynonymsGet200Response{} + return &this +} + +// NewAnswerApiV1TagSynonymsGet200ResponseWithDefaults instantiates a new AnswerApiV1TagSynonymsGet200Response 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 NewAnswerApiV1TagSynonymsGet200ResponseWithDefaults() *AnswerApiV1TagSynonymsGet200Response { + this := AnswerApiV1TagSynonymsGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1TagSynonymsGet200Response) GetData() SchemaGetTagSynonymsResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetTagSynonymsResp + 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 *AnswerApiV1TagSynonymsGet200Response) GetDataOk() (*SchemaGetTagSynonymsResp, 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 *AnswerApiV1TagSynonymsGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetTagSynonymsResp and assigns it to the Data field. +func (o *AnswerApiV1TagSynonymsGet200Response) SetData(v SchemaGetTagSynonymsResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1TagSynonymsGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1TagSynonymsGet200Response) 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 *AnswerApiV1TagSynonymsGet200Response) 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 *AnswerApiV1TagSynonymsGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1TagSynonymsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1TagSynonymsGet200Response) 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 NullableAnswerApiV1TagSynonymsGet200Response struct { + value *AnswerApiV1TagSynonymsGet200Response + isSet bool +} + +func (v NullableAnswerApiV1TagSynonymsGet200Response) Get() *AnswerApiV1TagSynonymsGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1TagSynonymsGet200Response) Set(val *AnswerApiV1TagSynonymsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1TagSynonymsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1TagSynonymsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1TagSynonymsGet200Response(val *AnswerApiV1TagSynonymsGet200Response) *NullableAnswerApiV1TagSynonymsGet200Response { + return &NullableAnswerApiV1TagSynonymsGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1TagSynonymsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1TagSynonymsGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_tags_following_get_200_response.go b/model__answer_api_v1_tags_following_get_200_response.go new file mode 100644 index 0000000..05322d8 --- /dev/null +++ b/model__answer_api_v1_tags_following_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1TagsFollowingGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1TagsFollowingGet200Response{} + +// AnswerApiV1TagsFollowingGet200Response struct for AnswerApiV1TagsFollowingGet200Response +type AnswerApiV1TagsFollowingGet200Response struct { + Data []SchemaGetFollowingTagsResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1TagsFollowingGet200Response instantiates a new AnswerApiV1TagsFollowingGet200Response 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 NewAnswerApiV1TagsFollowingGet200Response() *AnswerApiV1TagsFollowingGet200Response { + this := AnswerApiV1TagsFollowingGet200Response{} + return &this +} + +// NewAnswerApiV1TagsFollowingGet200ResponseWithDefaults instantiates a new AnswerApiV1TagsFollowingGet200Response 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 NewAnswerApiV1TagsFollowingGet200ResponseWithDefaults() *AnswerApiV1TagsFollowingGet200Response { + this := AnswerApiV1TagsFollowingGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1TagsFollowingGet200Response) GetData() []SchemaGetFollowingTagsResp { + if o == nil || IsNil(o.Data) { + var ret []SchemaGetFollowingTagsResp + 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 *AnswerApiV1TagsFollowingGet200Response) GetDataOk() ([]SchemaGetFollowingTagsResp, 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 *AnswerApiV1TagsFollowingGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []SchemaGetFollowingTagsResp and assigns it to the Data field. +func (o *AnswerApiV1TagsFollowingGet200Response) SetData(v []SchemaGetFollowingTagsResp) { + o.Data = v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1TagsFollowingGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1TagsFollowingGet200Response) 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 *AnswerApiV1TagsFollowingGet200Response) 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 *AnswerApiV1TagsFollowingGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1TagsFollowingGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1TagsFollowingGet200Response) 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 NullableAnswerApiV1TagsFollowingGet200Response struct { + value *AnswerApiV1TagsFollowingGet200Response + isSet bool +} + +func (v NullableAnswerApiV1TagsFollowingGet200Response) Get() *AnswerApiV1TagsFollowingGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1TagsFollowingGet200Response) Set(val *AnswerApiV1TagsFollowingGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1TagsFollowingGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1TagsFollowingGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1TagsFollowingGet200Response(val *AnswerApiV1TagsFollowingGet200Response) *NullableAnswerApiV1TagsFollowingGet200Response { + return &NullableAnswerApiV1TagsFollowingGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1TagsFollowingGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1TagsFollowingGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_tags_page_get_200_response.go b/model__answer_api_v1_tags_page_get_200_response.go new file mode 100644 index 0000000..71e9810 --- /dev/null +++ b/model__answer_api_v1_tags_page_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1TagsPageGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1TagsPageGet200Response{} + +// AnswerApiV1TagsPageGet200Response struct for AnswerApiV1TagsPageGet200Response +type AnswerApiV1TagsPageGet200Response struct { + Data *AnswerApiV1TagsPageGet200ResponseData `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1TagsPageGet200Response instantiates a new AnswerApiV1TagsPageGet200Response 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 NewAnswerApiV1TagsPageGet200Response() *AnswerApiV1TagsPageGet200Response { + this := AnswerApiV1TagsPageGet200Response{} + return &this +} + +// NewAnswerApiV1TagsPageGet200ResponseWithDefaults instantiates a new AnswerApiV1TagsPageGet200Response 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 NewAnswerApiV1TagsPageGet200ResponseWithDefaults() *AnswerApiV1TagsPageGet200Response { + this := AnswerApiV1TagsPageGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1TagsPageGet200Response) GetData() AnswerApiV1TagsPageGet200ResponseData { + if o == nil || IsNil(o.Data) { + var ret AnswerApiV1TagsPageGet200ResponseData + 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 *AnswerApiV1TagsPageGet200Response) GetDataOk() (*AnswerApiV1TagsPageGet200ResponseData, 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 *AnswerApiV1TagsPageGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AnswerApiV1TagsPageGet200ResponseData and assigns it to the Data field. +func (o *AnswerApiV1TagsPageGet200Response) SetData(v AnswerApiV1TagsPageGet200ResponseData) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1TagsPageGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1TagsPageGet200Response) 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 *AnswerApiV1TagsPageGet200Response) 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 *AnswerApiV1TagsPageGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1TagsPageGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1TagsPageGet200Response) 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 NullableAnswerApiV1TagsPageGet200Response struct { + value *AnswerApiV1TagsPageGet200Response + isSet bool +} + +func (v NullableAnswerApiV1TagsPageGet200Response) Get() *AnswerApiV1TagsPageGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1TagsPageGet200Response) Set(val *AnswerApiV1TagsPageGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1TagsPageGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1TagsPageGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1TagsPageGet200Response(val *AnswerApiV1TagsPageGet200Response) *NullableAnswerApiV1TagsPageGet200Response { + return &NullableAnswerApiV1TagsPageGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1TagsPageGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1TagsPageGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_tags_page_get_200_response_data.go b/model__answer_api_v1_tags_page_get_200_response_data.go new file mode 100644 index 0000000..9d4600d --- /dev/null +++ b/model__answer_api_v1_tags_page_get_200_response_data.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1TagsPageGet200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1TagsPageGet200ResponseData{} + +// AnswerApiV1TagsPageGet200ResponseData struct for AnswerApiV1TagsPageGet200ResponseData +type AnswerApiV1TagsPageGet200ResponseData struct { + Count *int32 `json:"count,omitempty"` + List []SchemaGetTagPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1TagsPageGet200ResponseData instantiates a new AnswerApiV1TagsPageGet200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1TagsPageGet200ResponseData() *AnswerApiV1TagsPageGet200ResponseData { + this := AnswerApiV1TagsPageGet200ResponseData{} + return &this +} + +// NewAnswerApiV1TagsPageGet200ResponseDataWithDefaults instantiates a new AnswerApiV1TagsPageGet200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1TagsPageGet200ResponseDataWithDefaults() *AnswerApiV1TagsPageGet200ResponseData { + this := AnswerApiV1TagsPageGet200ResponseData{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *AnswerApiV1TagsPageGet200ResponseData) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagsPageGet200ResponseData) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *AnswerApiV1TagsPageGet200ResponseData) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *AnswerApiV1TagsPageGet200ResponseData) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1TagsPageGet200ResponseData) GetList() []SchemaGetTagPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetTagPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagsPageGet200ResponseData) GetListOk() ([]SchemaGetTagPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1TagsPageGet200ResponseData) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetTagPageResp and assigns it to the List field. +func (o *AnswerApiV1TagsPageGet200ResponseData) SetList(v []SchemaGetTagPageResp) { + o.List = v +} + +func (o AnswerApiV1TagsPageGet200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1TagsPageGet200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1TagsPageGet200ResponseData struct { + value *AnswerApiV1TagsPageGet200ResponseData + isSet bool +} + +func (v NullableAnswerApiV1TagsPageGet200ResponseData) Get() *AnswerApiV1TagsPageGet200ResponseData { + return v.value +} + +func (v *NullableAnswerApiV1TagsPageGet200ResponseData) Set(val *AnswerApiV1TagsPageGet200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1TagsPageGet200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1TagsPageGet200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1TagsPageGet200ResponseData(val *AnswerApiV1TagsPageGet200ResponseData) *NullableAnswerApiV1TagsPageGet200ResponseData { + return &NullableAnswerApiV1TagsPageGet200ResponseData{value: val, isSet: true} +} + +func (v NullableAnswerApiV1TagsPageGet200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1TagsPageGet200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_tags_page_get_200_response_data_all_of.go b/model__answer_api_v1_tags_page_get_200_response_data_all_of.go new file mode 100644 index 0000000..2512abd --- /dev/null +++ b/model__answer_api_v1_tags_page_get_200_response_data_all_of.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1TagsPageGet200ResponseDataAllOf type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1TagsPageGet200ResponseDataAllOf{} + +// AnswerApiV1TagsPageGet200ResponseDataAllOf struct for AnswerApiV1TagsPageGet200ResponseDataAllOf +type AnswerApiV1TagsPageGet200ResponseDataAllOf struct { + List []SchemaGetTagPageResp `json:"list,omitempty"` +} + +// NewAnswerApiV1TagsPageGet200ResponseDataAllOf instantiates a new AnswerApiV1TagsPageGet200ResponseDataAllOf object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1TagsPageGet200ResponseDataAllOf() *AnswerApiV1TagsPageGet200ResponseDataAllOf { + this := AnswerApiV1TagsPageGet200ResponseDataAllOf{} + return &this +} + +// NewAnswerApiV1TagsPageGet200ResponseDataAllOfWithDefaults instantiates a new AnswerApiV1TagsPageGet200ResponseDataAllOf object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1TagsPageGet200ResponseDataAllOfWithDefaults() *AnswerApiV1TagsPageGet200ResponseDataAllOf { + this := AnswerApiV1TagsPageGet200ResponseDataAllOf{} + return &this +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) GetList() []SchemaGetTagPageResp { + if o == nil || IsNil(o.List) { + var ret []SchemaGetTagPageResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) GetListOk() ([]SchemaGetTagPageResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaGetTagPageResp and assigns it to the List field. +func (o *AnswerApiV1TagsPageGet200ResponseDataAllOf) SetList(v []SchemaGetTagPageResp) { + o.List = v +} + +func (o AnswerApiV1TagsPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1TagsPageGet200ResponseDataAllOf) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableAnswerApiV1TagsPageGet200ResponseDataAllOf struct { + value *AnswerApiV1TagsPageGet200ResponseDataAllOf + isSet bool +} + +func (v NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) Get() *AnswerApiV1TagsPageGet200ResponseDataAllOf { + return v.value +} + +func (v *NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) Set(val *AnswerApiV1TagsPageGet200ResponseDataAllOf) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1TagsPageGet200ResponseDataAllOf(val *AnswerApiV1TagsPageGet200ResponseDataAllOf) *NullableAnswerApiV1TagsPageGet200ResponseDataAllOf { + return &NullableAnswerApiV1TagsPageGet200ResponseDataAllOf{value: val, isSet: true} +} + +func (v NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1TagsPageGet200ResponseDataAllOf) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_user_action_record_get_200_response.go b/model__answer_api_v1_user_action_record_get_200_response.go new file mode 100644 index 0000000..d8baf2c --- /dev/null +++ b/model__answer_api_v1_user_action_record_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1UserActionRecordGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1UserActionRecordGet200Response{} + +// AnswerApiV1UserActionRecordGet200Response struct for AnswerApiV1UserActionRecordGet200Response +type AnswerApiV1UserActionRecordGet200Response struct { + Data *SchemaActionRecordResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1UserActionRecordGet200Response instantiates a new AnswerApiV1UserActionRecordGet200Response 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 NewAnswerApiV1UserActionRecordGet200Response() *AnswerApiV1UserActionRecordGet200Response { + this := AnswerApiV1UserActionRecordGet200Response{} + return &this +} + +// NewAnswerApiV1UserActionRecordGet200ResponseWithDefaults instantiates a new AnswerApiV1UserActionRecordGet200Response 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 NewAnswerApiV1UserActionRecordGet200ResponseWithDefaults() *AnswerApiV1UserActionRecordGet200Response { + this := AnswerApiV1UserActionRecordGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1UserActionRecordGet200Response) GetData() SchemaActionRecordResp { + if o == nil || IsNil(o.Data) { + var ret SchemaActionRecordResp + 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 *AnswerApiV1UserActionRecordGet200Response) GetDataOk() (*SchemaActionRecordResp, 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 *AnswerApiV1UserActionRecordGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaActionRecordResp and assigns it to the Data field. +func (o *AnswerApiV1UserActionRecordGet200Response) SetData(v SchemaActionRecordResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1UserActionRecordGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1UserActionRecordGet200Response) 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 *AnswerApiV1UserActionRecordGet200Response) 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 *AnswerApiV1UserActionRecordGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1UserActionRecordGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1UserActionRecordGet200Response) 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 NullableAnswerApiV1UserActionRecordGet200Response struct { + value *AnswerApiV1UserActionRecordGet200Response + isSet bool +} + +func (v NullableAnswerApiV1UserActionRecordGet200Response) Get() *AnswerApiV1UserActionRecordGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1UserActionRecordGet200Response) Set(val *AnswerApiV1UserActionRecordGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1UserActionRecordGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1UserActionRecordGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1UserActionRecordGet200Response(val *AnswerApiV1UserActionRecordGet200Response) *NullableAnswerApiV1UserActionRecordGet200Response { + return &NullableAnswerApiV1UserActionRecordGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1UserActionRecordGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1UserActionRecordGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + 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 new file mode 100644 index 0000000..bbc9238 --- /dev/null +++ b/model__answer_api_v1_user_email_verification_post_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1UserEmailVerificationPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1UserEmailVerificationPost200Response{} + +// AnswerApiV1UserEmailVerificationPost200Response struct for AnswerApiV1UserEmailVerificationPost200Response +type AnswerApiV1UserEmailVerificationPost200Response struct { + Data *SchemaGetUserResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1UserEmailVerificationPost200Response instantiates a new AnswerApiV1UserEmailVerificationPost200Response 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 NewAnswerApiV1UserEmailVerificationPost200Response() *AnswerApiV1UserEmailVerificationPost200Response { + this := AnswerApiV1UserEmailVerificationPost200Response{} + return &this +} + +// NewAnswerApiV1UserEmailVerificationPost200ResponseWithDefaults instantiates a new AnswerApiV1UserEmailVerificationPost200Response 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 NewAnswerApiV1UserEmailVerificationPost200ResponseWithDefaults() *AnswerApiV1UserEmailVerificationPost200Response { + this := AnswerApiV1UserEmailVerificationPost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1UserEmailVerificationPost200Response) GetData() SchemaGetUserResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetUserResp + 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 *AnswerApiV1UserEmailVerificationPost200Response) GetDataOk() (*SchemaGetUserResp, 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 *AnswerApiV1UserEmailVerificationPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetUserResp and assigns it to the Data field. +func (o *AnswerApiV1UserEmailVerificationPost200Response) SetData(v SchemaGetUserResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1UserEmailVerificationPost200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1UserEmailVerificationPost200Response) 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 *AnswerApiV1UserEmailVerificationPost200Response) 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 *AnswerApiV1UserEmailVerificationPost200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1UserEmailVerificationPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1UserEmailVerificationPost200Response) 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 NullableAnswerApiV1UserEmailVerificationPost200Response struct { + value *AnswerApiV1UserEmailVerificationPost200Response + isSet bool +} + +func (v NullableAnswerApiV1UserEmailVerificationPost200Response) Get() *AnswerApiV1UserEmailVerificationPost200Response { + return v.value +} + +func (v *NullableAnswerApiV1UserEmailVerificationPost200Response) Set(val *AnswerApiV1UserEmailVerificationPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1UserEmailVerificationPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1UserEmailVerificationPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1UserEmailVerificationPost200Response(val *AnswerApiV1UserEmailVerificationPost200Response) *NullableAnswerApiV1UserEmailVerificationPost200Response { + return &NullableAnswerApiV1UserEmailVerificationPost200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1UserEmailVerificationPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1UserEmailVerificationPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_user_info_get_200_response.go b/model__answer_api_v1_user_info_get_200_response.go new file mode 100644 index 0000000..0ab9690 --- /dev/null +++ b/model__answer_api_v1_user_info_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1UserInfoGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1UserInfoGet200Response{} + +// AnswerApiV1UserInfoGet200Response struct for AnswerApiV1UserInfoGet200Response +type AnswerApiV1UserInfoGet200Response struct { + Data *SchemaGetUserToSetShowResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1UserInfoGet200Response instantiates a new AnswerApiV1UserInfoGet200Response 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 NewAnswerApiV1UserInfoGet200Response() *AnswerApiV1UserInfoGet200Response { + this := AnswerApiV1UserInfoGet200Response{} + return &this +} + +// NewAnswerApiV1UserInfoGet200ResponseWithDefaults instantiates a new AnswerApiV1UserInfoGet200Response 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 NewAnswerApiV1UserInfoGet200ResponseWithDefaults() *AnswerApiV1UserInfoGet200Response { + this := AnswerApiV1UserInfoGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1UserInfoGet200Response) GetData() SchemaGetUserToSetShowResp { + if o == nil || IsNil(o.Data) { + var ret SchemaGetUserToSetShowResp + 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 *AnswerApiV1UserInfoGet200Response) GetDataOk() (*SchemaGetUserToSetShowResp, 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 *AnswerApiV1UserInfoGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaGetUserToSetShowResp and assigns it to the Data field. +func (o *AnswerApiV1UserInfoGet200Response) SetData(v SchemaGetUserToSetShowResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1UserInfoGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1UserInfoGet200Response) 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 *AnswerApiV1UserInfoGet200Response) 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 *AnswerApiV1UserInfoGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1UserInfoGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1UserInfoGet200Response) 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 NullableAnswerApiV1UserInfoGet200Response struct { + value *AnswerApiV1UserInfoGet200Response + isSet bool +} + +func (v NullableAnswerApiV1UserInfoGet200Response) Get() *AnswerApiV1UserInfoGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1UserInfoGet200Response) Set(val *AnswerApiV1UserInfoGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1UserInfoGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1UserInfoGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1UserInfoGet200Response(val *AnswerApiV1UserInfoGet200Response) *NullableAnswerApiV1UserInfoGet200Response { + return &NullableAnswerApiV1UserInfoGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1UserInfoGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1UserInfoGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + 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 new file mode 100644 index 0000000..f542629 --- /dev/null +++ b/model__answer_api_v1_user_notice_set_post_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1UserNoticeSetPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1UserNoticeSetPost200Response{} + +// AnswerApiV1UserNoticeSetPost200Response struct for AnswerApiV1UserNoticeSetPost200Response +type AnswerApiV1UserNoticeSetPost200Response struct { + Data *SchemaUserNoticeSetResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1UserNoticeSetPost200Response instantiates a new AnswerApiV1UserNoticeSetPost200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAnswerApiV1UserNoticeSetPost200Response() *AnswerApiV1UserNoticeSetPost200Response { + this := AnswerApiV1UserNoticeSetPost200Response{} + return &this +} + +// NewAnswerApiV1UserNoticeSetPost200ResponseWithDefaults instantiates a new AnswerApiV1UserNoticeSetPost200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAnswerApiV1UserNoticeSetPost200ResponseWithDefaults() *AnswerApiV1UserNoticeSetPost200Response { + this := AnswerApiV1UserNoticeSetPost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1UserNoticeSetPost200Response) GetData() SchemaUserNoticeSetResp { + if o == nil || IsNil(o.Data) { + var ret SchemaUserNoticeSetResp + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserNoticeSetPost200Response) GetDataOk() (*SchemaUserNoticeSetResp, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *AnswerApiV1UserNoticeSetPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaUserNoticeSetResp and assigns it to the Data field. +func (o *AnswerApiV1UserNoticeSetPost200Response) SetData(v SchemaUserNoticeSetResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1UserNoticeSetPost200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + return ret + } + return *o.HandlerRespBody +} + +// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AnswerApiV1UserNoticeSetPost200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) { + if o == nil || IsNil(o.HandlerRespBody) { + return nil, false + } + return o.HandlerRespBody, true +} + +// HasHandlerRespBody returns a boolean if a field has been set. +func (o *AnswerApiV1UserNoticeSetPost200Response) HasHandlerRespBody() bool { + if o != nil && !IsNil(o.HandlerRespBody) { + return true + } + + return false +} + +// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field. +func (o *AnswerApiV1UserNoticeSetPost200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1UserNoticeSetPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1UserNoticeSetPost200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.HandlerRespBody) { + toSerialize["handler.RespBody"] = o.HandlerRespBody + } + return toSerialize, nil +} + +type NullableAnswerApiV1UserNoticeSetPost200Response struct { + value *AnswerApiV1UserNoticeSetPost200Response + isSet bool +} + +func (v NullableAnswerApiV1UserNoticeSetPost200Response) Get() *AnswerApiV1UserNoticeSetPost200Response { + return v.value +} + +func (v *NullableAnswerApiV1UserNoticeSetPost200Response) Set(val *AnswerApiV1UserNoticeSetPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1UserNoticeSetPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1UserNoticeSetPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1UserNoticeSetPost200Response(val *AnswerApiV1UserNoticeSetPost200Response) *NullableAnswerApiV1UserNoticeSetPost200Response { + return &NullableAnswerApiV1UserNoticeSetPost200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1UserNoticeSetPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1UserNoticeSetPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_user_ranking_get_200_response.go b/model__answer_api_v1_user_ranking_get_200_response.go new file mode 100644 index 0000000..1974535 --- /dev/null +++ b/model__answer_api_v1_user_ranking_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1UserRankingGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1UserRankingGet200Response{} + +// AnswerApiV1UserRankingGet200Response struct for AnswerApiV1UserRankingGet200Response +type AnswerApiV1UserRankingGet200Response struct { + Data *SchemaUserRankingResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1UserRankingGet200Response instantiates a new AnswerApiV1UserRankingGet200Response 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 NewAnswerApiV1UserRankingGet200Response() *AnswerApiV1UserRankingGet200Response { + this := AnswerApiV1UserRankingGet200Response{} + return &this +} + +// NewAnswerApiV1UserRankingGet200ResponseWithDefaults instantiates a new AnswerApiV1UserRankingGet200Response 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 NewAnswerApiV1UserRankingGet200ResponseWithDefaults() *AnswerApiV1UserRankingGet200Response { + this := AnswerApiV1UserRankingGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1UserRankingGet200Response) GetData() SchemaUserRankingResp { + if o == nil || IsNil(o.Data) { + var ret SchemaUserRankingResp + 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 *AnswerApiV1UserRankingGet200Response) GetDataOk() (*SchemaUserRankingResp, 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 *AnswerApiV1UserRankingGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaUserRankingResp and assigns it to the Data field. +func (o *AnswerApiV1UserRankingGet200Response) SetData(v SchemaUserRankingResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1UserRankingGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1UserRankingGet200Response) 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 *AnswerApiV1UserRankingGet200Response) 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 *AnswerApiV1UserRankingGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1UserRankingGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1UserRankingGet200Response) 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 NullableAnswerApiV1UserRankingGet200Response struct { + value *AnswerApiV1UserRankingGet200Response + isSet bool +} + +func (v NullableAnswerApiV1UserRankingGet200Response) Get() *AnswerApiV1UserRankingGet200Response { + return v.value +} + +func (v *NullableAnswerApiV1UserRankingGet200Response) Set(val *AnswerApiV1UserRankingGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1UserRankingGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1UserRankingGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1UserRankingGet200Response(val *AnswerApiV1UserRankingGet200Response) *NullableAnswerApiV1UserRankingGet200Response { + return &NullableAnswerApiV1UserRankingGet200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1UserRankingGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1UserRankingGet200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__answer_api_v1_vote_down_post_200_response.go b/model__answer_api_v1_vote_down_post_200_response.go new file mode 100644 index 0000000..6930fb4 --- /dev/null +++ b/model__answer_api_v1_vote_down_post_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AnswerApiV1VoteDownPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AnswerApiV1VoteDownPost200Response{} + +// AnswerApiV1VoteDownPost200Response struct for AnswerApiV1VoteDownPost200Response +type AnswerApiV1VoteDownPost200Response struct { + Data *SchemaVoteResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewAnswerApiV1VoteDownPost200Response instantiates a new AnswerApiV1VoteDownPost200Response 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 NewAnswerApiV1VoteDownPost200Response() *AnswerApiV1VoteDownPost200Response { + this := AnswerApiV1VoteDownPost200Response{} + return &this +} + +// NewAnswerApiV1VoteDownPost200ResponseWithDefaults instantiates a new AnswerApiV1VoteDownPost200Response 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 NewAnswerApiV1VoteDownPost200ResponseWithDefaults() *AnswerApiV1VoteDownPost200Response { + this := AnswerApiV1VoteDownPost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AnswerApiV1VoteDownPost200Response) GetData() SchemaVoteResp { + if o == nil || IsNil(o.Data) { + var ret SchemaVoteResp + 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 *AnswerApiV1VoteDownPost200Response) GetDataOk() (*SchemaVoteResp, 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 *AnswerApiV1VoteDownPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given SchemaVoteResp and assigns it to the Data field. +func (o *AnswerApiV1VoteDownPost200Response) SetData(v SchemaVoteResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *AnswerApiV1VoteDownPost200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *AnswerApiV1VoteDownPost200Response) 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 *AnswerApiV1VoteDownPost200Response) 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 *AnswerApiV1VoteDownPost200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o AnswerApiV1VoteDownPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AnswerApiV1VoteDownPost200Response) 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 NullableAnswerApiV1VoteDownPost200Response struct { + value *AnswerApiV1VoteDownPost200Response + isSet bool +} + +func (v NullableAnswerApiV1VoteDownPost200Response) Get() *AnswerApiV1VoteDownPost200Response { + return v.value +} + +func (v *NullableAnswerApiV1VoteDownPost200Response) Set(val *AnswerApiV1VoteDownPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAnswerApiV1VoteDownPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAnswerApiV1VoteDownPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAnswerApiV1VoteDownPost200Response(val *AnswerApiV1VoteDownPost200Response) *NullableAnswerApiV1VoteDownPost200Response { + return &NullableAnswerApiV1VoteDownPost200Response{value: val, isSet: true} +} + +func (v NullableAnswerApiV1VoteDownPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAnswerApiV1VoteDownPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__installation_config_file_check_post_200_response.go b/model__installation_config_file_check_post_200_response.go new file mode 100644 index 0000000..def3de7 --- /dev/null +++ b/model__installation_config_file_check_post_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the InstallationConfigFileCheckPost200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstallationConfigFileCheckPost200Response{} + +// InstallationConfigFileCheckPost200Response struct for InstallationConfigFileCheckPost200Response +type InstallationConfigFileCheckPost200Response struct { + Data *InstallCheckConfigFileResp `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewInstallationConfigFileCheckPost200Response instantiates a new InstallationConfigFileCheckPost200Response 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 NewInstallationConfigFileCheckPost200Response() *InstallationConfigFileCheckPost200Response { + this := InstallationConfigFileCheckPost200Response{} + return &this +} + +// NewInstallationConfigFileCheckPost200ResponseWithDefaults instantiates a new InstallationConfigFileCheckPost200Response 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 NewInstallationConfigFileCheckPost200ResponseWithDefaults() *InstallationConfigFileCheckPost200Response { + this := InstallationConfigFileCheckPost200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *InstallationConfigFileCheckPost200Response) GetData() InstallCheckConfigFileResp { + if o == nil || IsNil(o.Data) { + var ret InstallCheckConfigFileResp + 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 *InstallationConfigFileCheckPost200Response) GetDataOk() (*InstallCheckConfigFileResp, 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 *InstallationConfigFileCheckPost200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given InstallCheckConfigFileResp and assigns it to the Data field. +func (o *InstallationConfigFileCheckPost200Response) SetData(v InstallCheckConfigFileResp) { + o.Data = &v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *InstallationConfigFileCheckPost200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *InstallationConfigFileCheckPost200Response) 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 *InstallationConfigFileCheckPost200Response) 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 *InstallationConfigFileCheckPost200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o InstallationConfigFileCheckPost200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstallationConfigFileCheckPost200Response) 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 NullableInstallationConfigFileCheckPost200Response struct { + value *InstallationConfigFileCheckPost200Response + isSet bool +} + +func (v NullableInstallationConfigFileCheckPost200Response) Get() *InstallationConfigFileCheckPost200Response { + return v.value +} + +func (v *NullableInstallationConfigFileCheckPost200Response) Set(val *InstallationConfigFileCheckPost200Response) { + v.value = val + v.isSet = true +} + +func (v NullableInstallationConfigFileCheckPost200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInstallationConfigFileCheckPost200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstallationConfigFileCheckPost200Response(val *InstallationConfigFileCheckPost200Response) *NullableInstallationConfigFileCheckPost200Response { + return &NullableInstallationConfigFileCheckPost200Response{value: val, isSet: true} +} + +func (v NullableInstallationConfigFileCheckPost200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstallationConfigFileCheckPost200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model__installation_language_options_get_200_response.go b/model__installation_language_options_get_200_response.go new file mode 100644 index 0000000..694404f --- /dev/null +++ b/model__installation_language_options_get_200_response.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the InstallationLanguageOptionsGet200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstallationLanguageOptionsGet200Response{} + +// InstallationLanguageOptionsGet200Response struct for InstallationLanguageOptionsGet200Response +type InstallationLanguageOptionsGet200Response struct { + Data []TranslatorLangOption `json:"data,omitempty"` + HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"` +} + +// NewInstallationLanguageOptionsGet200Response instantiates a new InstallationLanguageOptionsGet200Response 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 NewInstallationLanguageOptionsGet200Response() *InstallationLanguageOptionsGet200Response { + this := InstallationLanguageOptionsGet200Response{} + return &this +} + +// NewInstallationLanguageOptionsGet200ResponseWithDefaults instantiates a new InstallationLanguageOptionsGet200Response 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 NewInstallationLanguageOptionsGet200ResponseWithDefaults() *InstallationLanguageOptionsGet200Response { + this := InstallationLanguageOptionsGet200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *InstallationLanguageOptionsGet200Response) GetData() []TranslatorLangOption { + if o == nil || IsNil(o.Data) { + var ret []TranslatorLangOption + 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 *InstallationLanguageOptionsGet200Response) GetDataOk() ([]TranslatorLangOption, 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 *InstallationLanguageOptionsGet200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []TranslatorLangOption and assigns it to the Data field. +func (o *InstallationLanguageOptionsGet200Response) SetData(v []TranslatorLangOption) { + o.Data = v +} + +// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise. +func (o *InstallationLanguageOptionsGet200Response) GetHandlerRespBody() HandlerRespBody { + if o == nil || IsNil(o.HandlerRespBody) { + var ret HandlerRespBody + 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 *InstallationLanguageOptionsGet200Response) 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 *InstallationLanguageOptionsGet200Response) 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 *InstallationLanguageOptionsGet200Response) SetHandlerRespBody(v HandlerRespBody) { + o.HandlerRespBody = &v +} + +func (o InstallationLanguageOptionsGet200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstallationLanguageOptionsGet200Response) 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 NullableInstallationLanguageOptionsGet200Response struct { + value *InstallationLanguageOptionsGet200Response + isSet bool +} + +func (v NullableInstallationLanguageOptionsGet200Response) Get() *InstallationLanguageOptionsGet200Response { + return v.value +} + +func (v *NullableInstallationLanguageOptionsGet200Response) Set(val *InstallationLanguageOptionsGet200Response) { + v.value = val + v.isSet = true +} + +func (v NullableInstallationLanguageOptionsGet200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableInstallationLanguageOptionsGet200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstallationLanguageOptionsGet200Response(val *InstallationLanguageOptionsGet200Response) *NullableInstallationLanguageOptionsGet200Response { + return &NullableInstallationLanguageOptionsGet200Response{value: val, isSet: true} +} + +func (v NullableInstallationLanguageOptionsGet200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstallationLanguageOptionsGet200Response) 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 new file mode 100644 index 0000000..5b1bbcf --- /dev/null +++ b/model_handler_resp_body.go @@ -0,0 +1,238 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the HandlerRespBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HandlerRespBody{} + +// HandlerRespBody struct for HandlerRespBody +type HandlerRespBody struct { + // http code + Code *int32 `json:"code,omitempty"` + // response data + Data map[string]interface{} `json:"data,omitempty"` + // response message + Msg *string `json:"msg,omitempty"` + // reason key + Reason *string `json:"reason,omitempty"` +} + +// NewHandlerRespBody instantiates a new HandlerRespBody 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 NewHandlerRespBody() *HandlerRespBody { + this := HandlerRespBody{} + return &this +} + +// NewHandlerRespBodyWithDefaults instantiates a new HandlerRespBody 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 NewHandlerRespBodyWithDefaults() *HandlerRespBody { + this := HandlerRespBody{} + return &this +} + +// GetCode returns the Code field value if set, zero value otherwise. +func (o *HandlerRespBody) GetCode() int32 { + if o == nil || IsNil(o.Code) { + var ret int32 + return ret + } + return *o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HandlerRespBody) GetCodeOk() (*int32, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *HandlerRespBody) HasCode() bool { + if o != nil && !IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given int32 and assigns it to the Code field. +func (o *HandlerRespBody) SetCode(v int32) { + o.Code = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *HandlerRespBody) GetData() map[string]interface{} { + if o == nil || IsNil(o.Data) { + var ret map[string]interface{} + 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 *HandlerRespBody) GetDataOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Data) { + return map[string]interface{}{}, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *HandlerRespBody) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given map[string]interface{} and assigns it to the Data field. +func (o *HandlerRespBody) SetData(v map[string]interface{}) { + o.Data = v +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *HandlerRespBody) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HandlerRespBody) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *HandlerRespBody) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *HandlerRespBody) SetMsg(v string) { + o.Msg = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *HandlerRespBody) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HandlerRespBody) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *HandlerRespBody) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *HandlerRespBody) SetReason(v string) { + o.Reason = &v +} + +func (o HandlerRespBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HandlerRespBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Code) { + toSerialize["code"] = o.Code + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + return toSerialize, nil +} + +type NullableHandlerRespBody struct { + value *HandlerRespBody + isSet bool +} + +func (v NullableHandlerRespBody) Get() *HandlerRespBody { + return v.value +} + +func (v *NullableHandlerRespBody) Set(val *HandlerRespBody) { + v.value = val + v.isSet = true +} + +func (v NullableHandlerRespBody) IsSet() bool { + return v.isSet +} + +func (v *NullableHandlerRespBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHandlerRespBody(val *HandlerRespBody) *NullableHandlerRespBody { + return &NullableHandlerRespBody{value: val, isSet: true} +} + +func (v NullableHandlerRespBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHandlerRespBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_install_check_config_file_resp.go b/model_install_check_config_file_resp.go new file mode 100644 index 0000000..37548ce --- /dev/null +++ b/model_install_check_config_file_resp.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the InstallCheckConfigFileResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstallCheckConfigFileResp{} + +// InstallCheckConfigFileResp struct for InstallCheckConfigFileResp +type InstallCheckConfigFileResp struct { + ConfigFileExist *bool `json:"config_file_exist,omitempty"` + DbConnectionSuccess *bool `json:"db_connection_success,omitempty"` + DbTableExist *bool `json:"db_table_exist,omitempty"` +} + +// NewInstallCheckConfigFileResp instantiates a new InstallCheckConfigFileResp 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 NewInstallCheckConfigFileResp() *InstallCheckConfigFileResp { + this := InstallCheckConfigFileResp{} + return &this +} + +// NewInstallCheckConfigFileRespWithDefaults instantiates a new InstallCheckConfigFileResp 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 NewInstallCheckConfigFileRespWithDefaults() *InstallCheckConfigFileResp { + this := InstallCheckConfigFileResp{} + return &this +} + +// GetConfigFileExist returns the ConfigFileExist field value if set, zero value otherwise. +func (o *InstallCheckConfigFileResp) GetConfigFileExist() bool { + if o == nil || IsNil(o.ConfigFileExist) { + var ret bool + return ret + } + return *o.ConfigFileExist +} + +// GetConfigFileExistOk returns a tuple with the ConfigFileExist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallCheckConfigFileResp) GetConfigFileExistOk() (*bool, bool) { + if o == nil || IsNil(o.ConfigFileExist) { + return nil, false + } + return o.ConfigFileExist, true +} + +// HasConfigFileExist returns a boolean if a field has been set. +func (o *InstallCheckConfigFileResp) HasConfigFileExist() bool { + if o != nil && !IsNil(o.ConfigFileExist) { + return true + } + + return false +} + +// SetConfigFileExist gets a reference to the given bool and assigns it to the ConfigFileExist field. +func (o *InstallCheckConfigFileResp) SetConfigFileExist(v bool) { + o.ConfigFileExist = &v +} + +// GetDbConnectionSuccess returns the DbConnectionSuccess field value if set, zero value otherwise. +func (o *InstallCheckConfigFileResp) GetDbConnectionSuccess() bool { + if o == nil || IsNil(o.DbConnectionSuccess) { + var ret bool + return ret + } + return *o.DbConnectionSuccess +} + +// GetDbConnectionSuccessOk returns a tuple with the DbConnectionSuccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallCheckConfigFileResp) GetDbConnectionSuccessOk() (*bool, bool) { + if o == nil || IsNil(o.DbConnectionSuccess) { + return nil, false + } + return o.DbConnectionSuccess, true +} + +// HasDbConnectionSuccess returns a boolean if a field has been set. +func (o *InstallCheckConfigFileResp) HasDbConnectionSuccess() bool { + if o != nil && !IsNil(o.DbConnectionSuccess) { + return true + } + + return false +} + +// SetDbConnectionSuccess gets a reference to the given bool and assigns it to the DbConnectionSuccess field. +func (o *InstallCheckConfigFileResp) SetDbConnectionSuccess(v bool) { + o.DbConnectionSuccess = &v +} + +// GetDbTableExist returns the DbTableExist field value if set, zero value otherwise. +func (o *InstallCheckConfigFileResp) GetDbTableExist() bool { + if o == nil || IsNil(o.DbTableExist) { + var ret bool + return ret + } + return *o.DbTableExist +} + +// GetDbTableExistOk returns a tuple with the DbTableExist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallCheckConfigFileResp) GetDbTableExistOk() (*bool, bool) { + if o == nil || IsNil(o.DbTableExist) { + return nil, false + } + return o.DbTableExist, true +} + +// HasDbTableExist returns a boolean if a field has been set. +func (o *InstallCheckConfigFileResp) HasDbTableExist() bool { + if o != nil && !IsNil(o.DbTableExist) { + return true + } + + return false +} + +// SetDbTableExist gets a reference to the given bool and assigns it to the DbTableExist field. +func (o *InstallCheckConfigFileResp) SetDbTableExist(v bool) { + o.DbTableExist = &v +} + +func (o InstallCheckConfigFileResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstallCheckConfigFileResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ConfigFileExist) { + toSerialize["config_file_exist"] = o.ConfigFileExist + } + if !IsNil(o.DbConnectionSuccess) { + toSerialize["db_connection_success"] = o.DbConnectionSuccess + } + if !IsNil(o.DbTableExist) { + toSerialize["db_table_exist"] = o.DbTableExist + } + return toSerialize, nil +} + +type NullableInstallCheckConfigFileResp struct { + value *InstallCheckConfigFileResp + isSet bool +} + +func (v NullableInstallCheckConfigFileResp) Get() *InstallCheckConfigFileResp { + return v.value +} + +func (v *NullableInstallCheckConfigFileResp) Set(val *InstallCheckConfigFileResp) { + v.value = val + v.isSet = true +} + +func (v NullableInstallCheckConfigFileResp) IsSet() bool { + return v.isSet +} + +func (v *NullableInstallCheckConfigFileResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstallCheckConfigFileResp(val *InstallCheckConfigFileResp) *NullableInstallCheckConfigFileResp { + return &NullableInstallCheckConfigFileResp{value: val, isSet: true} +} + +func (v NullableInstallCheckConfigFileResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstallCheckConfigFileResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_install_check_database_req.go b/model_install_check_database_req.go new file mode 100644 index 0000000..8f2a85e --- /dev/null +++ b/model_install_check_database_req.go @@ -0,0 +1,297 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the InstallCheckDatabaseReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstallCheckDatabaseReq{} + +// InstallCheckDatabaseReq struct for InstallCheckDatabaseReq +type InstallCheckDatabaseReq struct { + DbFile *string `json:"db_file,omitempty"` + DbHost *string `json:"db_host,omitempty"` + DbName *string `json:"db_name,omitempty"` + DbPassword *string `json:"db_password,omitempty"` + DbType string `json:"db_type"` + DbUsername *string `json:"db_username,omitempty"` +} + +// NewInstallCheckDatabaseReq instantiates a new InstallCheckDatabaseReq 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 NewInstallCheckDatabaseReq(dbType string) *InstallCheckDatabaseReq { + this := InstallCheckDatabaseReq{} + this.DbType = dbType + return &this +} + +// NewInstallCheckDatabaseReqWithDefaults instantiates a new InstallCheckDatabaseReq 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 NewInstallCheckDatabaseReqWithDefaults() *InstallCheckDatabaseReq { + this := InstallCheckDatabaseReq{} + return &this +} + +// GetDbFile returns the DbFile field value if set, zero value otherwise. +func (o *InstallCheckDatabaseReq) GetDbFile() string { + if o == nil || IsNil(o.DbFile) { + var ret string + return ret + } + return *o.DbFile +} + +// GetDbFileOk returns a tuple with the DbFile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallCheckDatabaseReq) GetDbFileOk() (*string, bool) { + if o == nil || IsNil(o.DbFile) { + return nil, false + } + return o.DbFile, true +} + +// HasDbFile returns a boolean if a field has been set. +func (o *InstallCheckDatabaseReq) HasDbFile() bool { + if o != nil && !IsNil(o.DbFile) { + return true + } + + return false +} + +// SetDbFile gets a reference to the given string and assigns it to the DbFile field. +func (o *InstallCheckDatabaseReq) SetDbFile(v string) { + o.DbFile = &v +} + +// GetDbHost returns the DbHost field value if set, zero value otherwise. +func (o *InstallCheckDatabaseReq) GetDbHost() string { + if o == nil || IsNil(o.DbHost) { + var ret string + return ret + } + return *o.DbHost +} + +// GetDbHostOk returns a tuple with the DbHost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallCheckDatabaseReq) GetDbHostOk() (*string, bool) { + if o == nil || IsNil(o.DbHost) { + return nil, false + } + return o.DbHost, true +} + +// HasDbHost returns a boolean if a field has been set. +func (o *InstallCheckDatabaseReq) HasDbHost() bool { + if o != nil && !IsNil(o.DbHost) { + return true + } + + return false +} + +// SetDbHost gets a reference to the given string and assigns it to the DbHost field. +func (o *InstallCheckDatabaseReq) SetDbHost(v string) { + o.DbHost = &v +} + +// GetDbName returns the DbName field value if set, zero value otherwise. +func (o *InstallCheckDatabaseReq) GetDbName() string { + if o == nil || IsNil(o.DbName) { + var ret string + return ret + } + return *o.DbName +} + +// GetDbNameOk returns a tuple with the DbName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallCheckDatabaseReq) GetDbNameOk() (*string, bool) { + if o == nil || IsNil(o.DbName) { + return nil, false + } + return o.DbName, true +} + +// HasDbName returns a boolean if a field has been set. +func (o *InstallCheckDatabaseReq) HasDbName() bool { + if o != nil && !IsNil(o.DbName) { + return true + } + + return false +} + +// SetDbName gets a reference to the given string and assigns it to the DbName field. +func (o *InstallCheckDatabaseReq) SetDbName(v string) { + o.DbName = &v +} + +// GetDbPassword returns the DbPassword field value if set, zero value otherwise. +func (o *InstallCheckDatabaseReq) GetDbPassword() string { + if o == nil || IsNil(o.DbPassword) { + var ret string + return ret + } + return *o.DbPassword +} + +// GetDbPasswordOk returns a tuple with the DbPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallCheckDatabaseReq) GetDbPasswordOk() (*string, bool) { + if o == nil || IsNil(o.DbPassword) { + return nil, false + } + return o.DbPassword, true +} + +// HasDbPassword returns a boolean if a field has been set. +func (o *InstallCheckDatabaseReq) HasDbPassword() bool { + if o != nil && !IsNil(o.DbPassword) { + return true + } + + return false +} + +// SetDbPassword gets a reference to the given string and assigns it to the DbPassword field. +func (o *InstallCheckDatabaseReq) SetDbPassword(v string) { + o.DbPassword = &v +} + +// GetDbType returns the DbType field value +func (o *InstallCheckDatabaseReq) GetDbType() string { + if o == nil { + var ret string + return ret + } + + return o.DbType +} + +// GetDbTypeOk returns a tuple with the DbType field value +// and a boolean to check if the value has been set. +func (o *InstallCheckDatabaseReq) GetDbTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DbType, true +} + +// SetDbType sets field value +func (o *InstallCheckDatabaseReq) SetDbType(v string) { + o.DbType = v +} + +// GetDbUsername returns the DbUsername field value if set, zero value otherwise. +func (o *InstallCheckDatabaseReq) GetDbUsername() string { + if o == nil || IsNil(o.DbUsername) { + var ret string + return ret + } + return *o.DbUsername +} + +// GetDbUsernameOk returns a tuple with the DbUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstallCheckDatabaseReq) GetDbUsernameOk() (*string, bool) { + if o == nil || IsNil(o.DbUsername) { + return nil, false + } + return o.DbUsername, true +} + +// HasDbUsername returns a boolean if a field has been set. +func (o *InstallCheckDatabaseReq) HasDbUsername() bool { + if o != nil && !IsNil(o.DbUsername) { + return true + } + + return false +} + +// SetDbUsername gets a reference to the given string and assigns it to the DbUsername field. +func (o *InstallCheckDatabaseReq) SetDbUsername(v string) { + o.DbUsername = &v +} + +func (o InstallCheckDatabaseReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstallCheckDatabaseReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DbFile) { + toSerialize["db_file"] = o.DbFile + } + if !IsNil(o.DbHost) { + toSerialize["db_host"] = o.DbHost + } + if !IsNil(o.DbName) { + toSerialize["db_name"] = o.DbName + } + if !IsNil(o.DbPassword) { + toSerialize["db_password"] = o.DbPassword + } + toSerialize["db_type"] = o.DbType + if !IsNil(o.DbUsername) { + toSerialize["db_username"] = o.DbUsername + } + return toSerialize, nil +} + +type NullableInstallCheckDatabaseReq struct { + value *InstallCheckDatabaseReq + isSet bool +} + +func (v NullableInstallCheckDatabaseReq) Get() *InstallCheckDatabaseReq { + return v.value +} + +func (v *NullableInstallCheckDatabaseReq) Set(val *InstallCheckDatabaseReq) { + v.value = val + v.isSet = true +} + +func (v NullableInstallCheckDatabaseReq) IsSet() bool { + return v.isSet +} + +func (v *NullableInstallCheckDatabaseReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstallCheckDatabaseReq(val *InstallCheckDatabaseReq) *NullableInstallCheckDatabaseReq { + return &NullableInstallCheckDatabaseReq{value: val, isSet: true} +} + +func (v NullableInstallCheckDatabaseReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstallCheckDatabaseReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_install_init_base_info_req.go b/model_install_init_base_info_req.go new file mode 100644 index 0000000..29dfd77 --- /dev/null +++ b/model_install_init_base_info_req.go @@ -0,0 +1,279 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the InstallInitBaseInfoReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstallInitBaseInfoReq{} + +// InstallInitBaseInfoReq struct for InstallInitBaseInfoReq +type InstallInitBaseInfoReq struct { + ContactEmail string `json:"contact_email"` + Email string `json:"email"` + Lang string `json:"lang"` + Name string `json:"name"` + Password string `json:"password"` + SiteName string `json:"site_name"` + SiteUrl string `json:"site_url"` +} + +// NewInstallInitBaseInfoReq instantiates a new InstallInitBaseInfoReq 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 NewInstallInitBaseInfoReq(contactEmail string, email string, lang string, name string, password string, siteName string, siteUrl string) *InstallInitBaseInfoReq { + this := InstallInitBaseInfoReq{} + this.ContactEmail = contactEmail + this.Email = email + this.Lang = lang + this.Name = name + this.Password = password + this.SiteName = siteName + this.SiteUrl = siteUrl + return &this +} + +// NewInstallInitBaseInfoReqWithDefaults instantiates a new InstallInitBaseInfoReq 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 NewInstallInitBaseInfoReqWithDefaults() *InstallInitBaseInfoReq { + this := InstallInitBaseInfoReq{} + return &this +} + +// GetContactEmail returns the ContactEmail field value +func (o *InstallInitBaseInfoReq) GetContactEmail() string { + if o == nil { + var ret string + return ret + } + + return o.ContactEmail +} + +// GetContactEmailOk returns a tuple with the ContactEmail field value +// and a boolean to check if the value has been set. +func (o *InstallInitBaseInfoReq) GetContactEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContactEmail, true +} + +// SetContactEmail sets field value +func (o *InstallInitBaseInfoReq) SetContactEmail(v string) { + o.ContactEmail = v +} + +// GetEmail returns the Email field value +func (o *InstallInitBaseInfoReq) 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 *InstallInitBaseInfoReq) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *InstallInitBaseInfoReq) SetEmail(v string) { + o.Email = v +} + +// GetLang returns the Lang field value +func (o *InstallInitBaseInfoReq) GetLang() string { + if o == nil { + var ret string + return ret + } + + return o.Lang +} + +// GetLangOk returns a tuple with the Lang field value +// and a boolean to check if the value has been set. +func (o *InstallInitBaseInfoReq) GetLangOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Lang, true +} + +// SetLang sets field value +func (o *InstallInitBaseInfoReq) SetLang(v string) { + o.Lang = v +} + +// GetName returns the Name field value +func (o *InstallInitBaseInfoReq) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *InstallInitBaseInfoReq) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *InstallInitBaseInfoReq) SetName(v string) { + o.Name = v +} + +// GetPassword returns the Password field value +func (o *InstallInitBaseInfoReq) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *InstallInitBaseInfoReq) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *InstallInitBaseInfoReq) SetPassword(v string) { + o.Password = v +} + +// GetSiteName returns the SiteName field value +func (o *InstallInitBaseInfoReq) GetSiteName() string { + if o == nil { + var ret string + return ret + } + + return o.SiteName +} + +// GetSiteNameOk returns a tuple with the SiteName field value +// and a boolean to check if the value has been set. +func (o *InstallInitBaseInfoReq) GetSiteNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SiteName, true +} + +// SetSiteName sets field value +func (o *InstallInitBaseInfoReq) SetSiteName(v string) { + o.SiteName = v +} + +// GetSiteUrl returns the SiteUrl field value +func (o *InstallInitBaseInfoReq) GetSiteUrl() string { + if o == nil { + var ret string + return ret + } + + return o.SiteUrl +} + +// GetSiteUrlOk returns a tuple with the SiteUrl field value +// and a boolean to check if the value has been set. +func (o *InstallInitBaseInfoReq) GetSiteUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SiteUrl, true +} + +// SetSiteUrl sets field value +func (o *InstallInitBaseInfoReq) SetSiteUrl(v string) { + o.SiteUrl = v +} + +func (o InstallInitBaseInfoReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstallInitBaseInfoReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contact_email"] = o.ContactEmail + toSerialize["email"] = o.Email + toSerialize["lang"] = o.Lang + toSerialize["name"] = o.Name + toSerialize["password"] = o.Password + toSerialize["site_name"] = o.SiteName + toSerialize["site_url"] = o.SiteUrl + return toSerialize, nil +} + +type NullableInstallInitBaseInfoReq struct { + value *InstallInitBaseInfoReq + isSet bool +} + +func (v NullableInstallInitBaseInfoReq) Get() *InstallInitBaseInfoReq { + return v.value +} + +func (v *NullableInstallInitBaseInfoReq) Set(val *InstallInitBaseInfoReq) { + v.value = val + v.isSet = true +} + +func (v NullableInstallInitBaseInfoReq) IsSet() bool { + return v.isSet +} + +func (v *NullableInstallInitBaseInfoReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstallInitBaseInfoReq(val *InstallInitBaseInfoReq) *NullableInstallInitBaseInfoReq { + return &NullableInstallInitBaseInfoReq{value: val, isSet: true} +} + +func (v NullableInstallInitBaseInfoReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstallInitBaseInfoReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_pager_page_model.go b/model_pager_page_model.go new file mode 100644 index 0000000..934ef0f --- /dev/null +++ b/model_pager_page_model.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the PagerPageModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PagerPageModel{} + +// PagerPageModel struct for PagerPageModel +type PagerPageModel struct { + Count *int32 `json:"count,omitempty"` + List map[string]interface{} `json:"list,omitempty"` +} + +// NewPagerPageModel instantiates a new PagerPageModel 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 NewPagerPageModel() *PagerPageModel { + this := PagerPageModel{} + return &this +} + +// NewPagerPageModelWithDefaults instantiates a new PagerPageModel 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 NewPagerPageModelWithDefaults() *PagerPageModel { + this := PagerPageModel{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *PagerPageModel) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PagerPageModel) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *PagerPageModel) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *PagerPageModel) SetCount(v int32) { + o.Count = &v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *PagerPageModel) GetList() map[string]interface{} { + if o == nil || IsNil(o.List) { + var ret map[string]interface{} + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PagerPageModel) GetListOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.List) { + return map[string]interface{}{}, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *PagerPageModel) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given map[string]interface{} and assigns it to the List field. +func (o *PagerPageModel) SetList(v map[string]interface{}) { + o.List = v +} + +func (o PagerPageModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PagerPageModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullablePagerPageModel struct { + value *PagerPageModel + isSet bool +} + +func (v NullablePagerPageModel) Get() *PagerPageModel { + return v.value +} + +func (v *NullablePagerPageModel) Set(val *PagerPageModel) { + v.value = val + v.isSet = true +} + +func (v NullablePagerPageModel) IsSet() bool { + return v.isSet +} + +func (v *NullablePagerPageModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePagerPageModel(val *PagerPageModel) *NullablePagerPageModel { + return &NullablePagerPageModel{value: val, isSet: true} +} + +func (v NullablePagerPageModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePagerPageModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_act_object_info.go b/model_schema_act_object_info.go new file mode 100644 index 0000000..bfd3860 --- /dev/null +++ b/model_schema_act_object_info.go @@ -0,0 +1,342 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaActObjectInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaActObjectInfo{} + +// SchemaActObjectInfo struct for SchemaActObjectInfo +type SchemaActObjectInfo struct { + AnswerId *string `json:"answer_id,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + MainTagSlugName *string `json:"main_tag_slug_name,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + QuestionId *string `json:"question_id,omitempty"` + Title *string `json:"title,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewSchemaActObjectInfo instantiates a new SchemaActObjectInfo 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 NewSchemaActObjectInfo() *SchemaActObjectInfo { + this := SchemaActObjectInfo{} + return &this +} + +// NewSchemaActObjectInfoWithDefaults instantiates a new SchemaActObjectInfo 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 NewSchemaActObjectInfoWithDefaults() *SchemaActObjectInfo { + this := SchemaActObjectInfo{} + return &this +} + +// GetAnswerId returns the AnswerId field value if set, zero value otherwise. +func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetAnswerId(v string) { + o.AnswerId = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetMainTagSlugName returns the MainTagSlugName field value if set, zero value otherwise. +func (o *SchemaActObjectInfo) GetMainTagSlugName() string { + if o == nil || IsNil(o.MainTagSlugName) { + var ret string + return ret + } + return *o.MainTagSlugName +} + +// GetMainTagSlugNameOk returns a tuple with the MainTagSlugName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaActObjectInfo) GetMainTagSlugNameOk() (*string, bool) { + if o == nil || IsNil(o.MainTagSlugName) { + return nil, false + } + return o.MainTagSlugName, true +} + +// HasMainTagSlugName returns a boolean if a field has been set. +func (o *SchemaActObjectInfo) HasMainTagSlugName() bool { + if o != nil && !IsNil(o.MainTagSlugName) { + return true + } + + return false +} + +// SetMainTagSlugName gets a reference to the given string and assigns it to the MainTagSlugName field. +func (o *SchemaActObjectInfo) SetMainTagSlugName(v string) { + o.MainTagSlugName = &v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetQuestionId(v string) { + o.QuestionId = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetTitle(v string) { + o.Title = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) 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 *SchemaActObjectInfo) SetUsername(v string) { + o.Username = &v +} + +func (o SchemaActObjectInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaActObjectInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AnswerId) { + toSerialize["answer_id"] = o.AnswerId + } + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.MainTagSlugName) { + toSerialize["main_tag_slug_name"] = o.MainTagSlugName + } + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + if !IsNil(o.QuestionId) { + toSerialize["question_id"] = o.QuestionId + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableSchemaActObjectInfo struct { + value *SchemaActObjectInfo + isSet bool +} + +func (v NullableSchemaActObjectInfo) Get() *SchemaActObjectInfo { + return v.value +} + +func (v *NullableSchemaActObjectInfo) Set(val *SchemaActObjectInfo) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaActObjectInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaActObjectInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaActObjectInfo(val *SchemaActObjectInfo) *NullableSchemaActObjectInfo { + return &NullableSchemaActObjectInfo{value: val, isSet: true} +} + +func (v NullableSchemaActObjectInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaActObjectInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_act_object_timeline.go b/model_schema_act_object_timeline.go new file mode 100644 index 0000000..744276b --- /dev/null +++ b/model_schema_act_object_timeline.go @@ -0,0 +1,522 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaActObjectTimeline type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaActObjectTimeline{} + +// SchemaActObjectTimeline struct for SchemaActObjectTimeline +type SchemaActObjectTimeline struct { + ActivityId *string `json:"activity_id,omitempty"` + ActivityType *string `json:"activity_type,omitempty"` + Cancelled *bool `json:"cancelled,omitempty"` + CancelledAt *int32 `json:"cancelled_at,omitempty"` + Comment *string `json:"comment,omitempty"` + CreatedAt *int32 `json:"created_at,omitempty"` + Id *string `json:"id,omitempty"` + ObjectId *string `json:"object_id,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + RevisionId *string `json:"revision_id,omitempty"` + UserDisplayName *string `json:"user_display_name,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewSchemaActObjectTimeline instantiates a new SchemaActObjectTimeline 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 NewSchemaActObjectTimeline() *SchemaActObjectTimeline { + this := SchemaActObjectTimeline{} + return &this +} + +// NewSchemaActObjectTimelineWithDefaults instantiates a new SchemaActObjectTimeline 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 NewSchemaActObjectTimelineWithDefaults() *SchemaActObjectTimeline { + this := SchemaActObjectTimeline{} + return &this +} + +// GetActivityId returns the ActivityId field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) GetActivityId() string { + if o == nil || IsNil(o.ActivityId) { + var ret string + return ret + } + return *o.ActivityId +} + +// GetActivityIdOk returns a tuple with the ActivityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaActObjectTimeline) GetActivityIdOk() (*string, bool) { + if o == nil || IsNil(o.ActivityId) { + return nil, false + } + return o.ActivityId, true +} + +// HasActivityId returns a boolean if a field has been set. +func (o *SchemaActObjectTimeline) HasActivityId() bool { + if o != nil && !IsNil(o.ActivityId) { + return true + } + + return false +} + +// SetActivityId gets a reference to the given string and assigns it to the ActivityId field. +func (o *SchemaActObjectTimeline) SetActivityId(v string) { + o.ActivityId = &v +} + +// GetActivityType returns the ActivityType field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) GetActivityType() string { + if o == nil || IsNil(o.ActivityType) { + var ret string + return ret + } + return *o.ActivityType +} + +// GetActivityTypeOk returns a tuple with the ActivityType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaActObjectTimeline) GetActivityTypeOk() (*string, bool) { + if o == nil || IsNil(o.ActivityType) { + return nil, false + } + return o.ActivityType, true +} + +// HasActivityType returns a boolean if a field has been set. +func (o *SchemaActObjectTimeline) HasActivityType() bool { + if o != nil && !IsNil(o.ActivityType) { + return true + } + + return false +} + +// SetActivityType gets a reference to the given string and assigns it to the ActivityType field. +func (o *SchemaActObjectTimeline) SetActivityType(v string) { + o.ActivityType = &v +} + +// GetCancelled returns the Cancelled field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) GetCancelled() bool { + if o == nil || IsNil(o.Cancelled) { + var ret bool + return ret + } + return *o.Cancelled +} + +// GetCancelledOk returns a tuple with the Cancelled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaActObjectTimeline) GetCancelledOk() (*bool, bool) { + if o == nil || IsNil(o.Cancelled) { + return nil, false + } + return o.Cancelled, true +} + +// HasCancelled returns a boolean if a field has been set. +func (o *SchemaActObjectTimeline) HasCancelled() bool { + if o != nil && !IsNil(o.Cancelled) { + return true + } + + return false +} + +// SetCancelled gets a reference to the given bool and assigns it to the Cancelled field. +func (o *SchemaActObjectTimeline) SetCancelled(v bool) { + o.Cancelled = &v +} + +// GetCancelledAt returns the CancelledAt field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) GetCancelledAt() int32 { + if o == nil || IsNil(o.CancelledAt) { + var ret int32 + return ret + } + return *o.CancelledAt +} + +// GetCancelledAtOk returns a tuple with the CancelledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaActObjectTimeline) GetCancelledAtOk() (*int32, bool) { + if o == nil || IsNil(o.CancelledAt) { + return nil, false + } + return o.CancelledAt, true +} + +// HasCancelledAt returns a boolean if a field has been set. +func (o *SchemaActObjectTimeline) HasCancelledAt() bool { + if o != nil && !IsNil(o.CancelledAt) { + return true + } + + return false +} + +// SetCancelledAt gets a reference to the given int32 and assigns it to the CancelledAt field. +func (o *SchemaActObjectTimeline) SetCancelledAt(v int32) { + o.CancelledAt = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaActObjectTimeline) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *SchemaActObjectTimeline) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *SchemaActObjectTimeline) SetComment(v string) { + o.Comment = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetId(v string) { + o.Id = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetObjectId(v string) { + o.ObjectId = &v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetRevisionId returns the RevisionId field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) GetRevisionId() string { + if o == nil || IsNil(o.RevisionId) { + var ret string + return ret + } + return *o.RevisionId +} + +// GetRevisionIdOk returns a tuple with the RevisionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaActObjectTimeline) GetRevisionIdOk() (*string, bool) { + if o == nil || IsNil(o.RevisionId) { + return nil, false + } + return o.RevisionId, true +} + +// HasRevisionId returns a boolean if a field has been set. +func (o *SchemaActObjectTimeline) HasRevisionId() bool { + if o != nil && !IsNil(o.RevisionId) { + return true + } + + return false +} + +// SetRevisionId gets a reference to the given string and assigns it to the RevisionId field. +func (o *SchemaActObjectTimeline) SetRevisionId(v string) { + o.RevisionId = &v +} + +// GetUserDisplayName returns the UserDisplayName field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) GetUserDisplayName() string { + if o == nil || IsNil(o.UserDisplayName) { + var ret string + return ret + } + return *o.UserDisplayName +} + +// GetUserDisplayNameOk returns a tuple with the UserDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaActObjectTimeline) GetUserDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.UserDisplayName) { + return nil, false + } + return o.UserDisplayName, true +} + +// HasUserDisplayName returns a boolean if a field has been set. +func (o *SchemaActObjectTimeline) HasUserDisplayName() bool { + if o != nil && !IsNil(o.UserDisplayName) { + return true + } + + return false +} + +// SetUserDisplayName gets a reference to the given string and assigns it to the UserDisplayName field. +func (o *SchemaActObjectTimeline) SetUserDisplayName(v string) { + o.UserDisplayName = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) 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 *SchemaActObjectTimeline) SetUsername(v string) { + o.Username = &v +} + +func (o SchemaActObjectTimeline) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaActObjectTimeline) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ActivityId) { + toSerialize["activity_id"] = o.ActivityId + } + if !IsNil(o.ActivityType) { + toSerialize["activity_type"] = o.ActivityType + } + if !IsNil(o.Cancelled) { + toSerialize["cancelled"] = o.Cancelled + } + if !IsNil(o.CancelledAt) { + toSerialize["cancelled_at"] = o.CancelledAt + } + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + if !IsNil(o.RevisionId) { + toSerialize["revision_id"] = o.RevisionId + } + if !IsNil(o.UserDisplayName) { + toSerialize["user_display_name"] = o.UserDisplayName + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableSchemaActObjectTimeline struct { + value *SchemaActObjectTimeline + isSet bool +} + +func (v NullableSchemaActObjectTimeline) Get() *SchemaActObjectTimeline { + return v.value +} + +func (v *NullableSchemaActObjectTimeline) Set(val *SchemaActObjectTimeline) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaActObjectTimeline) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaActObjectTimeline) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaActObjectTimeline(val *SchemaActObjectTimeline) *NullableSchemaActObjectTimeline { + return &NullableSchemaActObjectTimeline{value: val, isSet: true} +} + +func (v NullableSchemaActObjectTimeline) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaActObjectTimeline) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_action_record_resp.go b/model_schema_action_record_resp.go new file mode 100644 index 0000000..caf7db5 --- /dev/null +++ b/model_schema_action_record_resp.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaActionRecordResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaActionRecordResp{} + +// SchemaActionRecordResp struct for SchemaActionRecordResp +type SchemaActionRecordResp struct { + CaptchaId *string `json:"captcha_id,omitempty"` + CaptchaImg *string `json:"captcha_img,omitempty"` + Verify *bool `json:"verify,omitempty"` +} + +// NewSchemaActionRecordResp instantiates a new SchemaActionRecordResp 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 NewSchemaActionRecordResp() *SchemaActionRecordResp { + this := SchemaActionRecordResp{} + return &this +} + +// NewSchemaActionRecordRespWithDefaults instantiates a new SchemaActionRecordResp 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 NewSchemaActionRecordRespWithDefaults() *SchemaActionRecordResp { + this := SchemaActionRecordResp{} + return &this +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaActionRecordResp) 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 *SchemaActionRecordResp) 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 *SchemaActionRecordResp) 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 *SchemaActionRecordResp) SetCaptchaId(v string) { + o.CaptchaId = &v +} + +// GetCaptchaImg returns the CaptchaImg field value if set, zero value otherwise. +func (o *SchemaActionRecordResp) GetCaptchaImg() string { + if o == nil || IsNil(o.CaptchaImg) { + var ret string + return ret + } + return *o.CaptchaImg +} + +// GetCaptchaImgOk returns a tuple with the CaptchaImg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaActionRecordResp) GetCaptchaImgOk() (*string, bool) { + if o == nil || IsNil(o.CaptchaImg) { + return nil, false + } + return o.CaptchaImg, true +} + +// HasCaptchaImg returns a boolean if a field has been set. +func (o *SchemaActionRecordResp) HasCaptchaImg() bool { + if o != nil && !IsNil(o.CaptchaImg) { + return true + } + + return false +} + +// SetCaptchaImg gets a reference to the given string and assigns it to the CaptchaImg field. +func (o *SchemaActionRecordResp) SetCaptchaImg(v string) { + o.CaptchaImg = &v +} + +// GetVerify returns the Verify field value if set, zero value otherwise. +func (o *SchemaActionRecordResp) GetVerify() bool { + if o == nil || IsNil(o.Verify) { + var ret bool + return ret + } + return *o.Verify +} + +// GetVerifyOk returns a tuple with the Verify field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaActionRecordResp) GetVerifyOk() (*bool, bool) { + if o == nil || IsNil(o.Verify) { + return nil, false + } + return o.Verify, true +} + +// HasVerify returns a boolean if a field has been set. +func (o *SchemaActionRecordResp) HasVerify() bool { + if o != nil && !IsNil(o.Verify) { + return true + } + + return false +} + +// SetVerify gets a reference to the given bool and assigns it to the Verify field. +func (o *SchemaActionRecordResp) SetVerify(v bool) { + o.Verify = &v +} + +func (o SchemaActionRecordResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaActionRecordResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CaptchaId) { + toSerialize["captcha_id"] = o.CaptchaId + } + if !IsNil(o.CaptchaImg) { + toSerialize["captcha_img"] = o.CaptchaImg + } + if !IsNil(o.Verify) { + toSerialize["verify"] = o.Verify + } + return toSerialize, nil +} + +type NullableSchemaActionRecordResp struct { + value *SchemaActionRecordResp + isSet bool +} + +func (v NullableSchemaActionRecordResp) Get() *SchemaActionRecordResp { + return v.value +} + +func (v *NullableSchemaActionRecordResp) Set(val *SchemaActionRecordResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaActionRecordResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaActionRecordResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaActionRecordResp(val *SchemaActionRecordResp) *NullableSchemaActionRecordResp { + return &NullableSchemaActionRecordResp{value: val, isSet: true} +} + +func (v NullableSchemaActionRecordResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaActionRecordResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_add_comment_req.go b/model_schema_add_comment_req.go new file mode 100644 index 0000000..3317ab8 --- /dev/null +++ b/model_schema_add_comment_req.go @@ -0,0 +1,220 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaAddCommentReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAddCommentReq{} + +// SchemaAddCommentReq struct for SchemaAddCommentReq +type SchemaAddCommentReq struct { + // @ user id list + MentionUsernameList []string `json:"mention_username_list,omitempty"` + // object id + ObjectId string `json:"object_id"` + // original comment content + OriginalText string `json:"original_text"` + // reply comment id + ReplyCommentId *string `json:"reply_comment_id,omitempty"` +} + +// NewSchemaAddCommentReq instantiates a new SchemaAddCommentReq 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 NewSchemaAddCommentReq(objectId string, originalText string) *SchemaAddCommentReq { + this := SchemaAddCommentReq{} + this.ObjectId = objectId + this.OriginalText = originalText + return &this +} + +// 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 +func NewSchemaAddCommentReqWithDefaults() *SchemaAddCommentReq { + this := SchemaAddCommentReq{} + return &this +} + +// GetMentionUsernameList returns the MentionUsernameList field value if set, zero value otherwise. +func (o *SchemaAddCommentReq) 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 *SchemaAddCommentReq) 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 *SchemaAddCommentReq) 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 *SchemaAddCommentReq) SetMentionUsernameList(v []string) { + o.MentionUsernameList = v +} + +// GetObjectId returns the ObjectId field value +func (o *SchemaAddCommentReq) GetObjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *SchemaAddCommentReq) GetObjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *SchemaAddCommentReq) SetObjectId(v string) { + o.ObjectId = v +} + +// GetOriginalText returns the OriginalText field value +func (o *SchemaAddCommentReq) GetOriginalText() string { + if o == nil { + var ret string + return ret + } + + return o.OriginalText +} + +// GetOriginalTextOk returns a tuple with the OriginalText field value +// and a boolean to check if the value has been set. +func (o *SchemaAddCommentReq) GetOriginalTextOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OriginalText, true +} + +// SetOriginalText sets field value +func (o *SchemaAddCommentReq) SetOriginalText(v string) { + o.OriginalText = v +} + +// GetReplyCommentId returns the ReplyCommentId field value if set, zero value otherwise. +func (o *SchemaAddCommentReq) GetReplyCommentId() string { + if o == nil || IsNil(o.ReplyCommentId) { + var ret string + return ret + } + return *o.ReplyCommentId +} + +// GetReplyCommentIdOk returns a tuple with the ReplyCommentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaAddCommentReq) GetReplyCommentIdOk() (*string, bool) { + if o == nil || IsNil(o.ReplyCommentId) { + return nil, false + } + return o.ReplyCommentId, true +} + +// HasReplyCommentId returns a boolean if a field has been set. +func (o *SchemaAddCommentReq) HasReplyCommentId() bool { + if o != nil && !IsNil(o.ReplyCommentId) { + return true + } + + return false +} + +// SetReplyCommentId gets a reference to the given string and assigns it to the ReplyCommentId field. +func (o *SchemaAddCommentReq) SetReplyCommentId(v string) { + o.ReplyCommentId = &v +} + +func (o SchemaAddCommentReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAddCommentReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MentionUsernameList) { + toSerialize["mention_username_list"] = o.MentionUsernameList + } + toSerialize["object_id"] = o.ObjectId + toSerialize["original_text"] = o.OriginalText + if !IsNil(o.ReplyCommentId) { + toSerialize["reply_comment_id"] = o.ReplyCommentId + } + return toSerialize, nil +} + +type NullableSchemaAddCommentReq struct { + value *SchemaAddCommentReq + isSet bool +} + +func (v NullableSchemaAddCommentReq) Get() *SchemaAddCommentReq { + return v.value +} + +func (v *NullableSchemaAddCommentReq) Set(val *SchemaAddCommentReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAddCommentReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAddCommentReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAddCommentReq(val *SchemaAddCommentReq) *NullableSchemaAddCommentReq { + return &NullableSchemaAddCommentReq{value: val, isSet: true} +} + +func (v NullableSchemaAddCommentReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAddCommentReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_add_report_req.go b/model_schema_add_report_req.go new file mode 100644 index 0000000..ec677e4 --- /dev/null +++ b/model_schema_add_report_req.go @@ -0,0 +1,183 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaAddReportReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAddReportReq{} + +// SchemaAddReportReq struct for SchemaAddReportReq +type SchemaAddReportReq struct { + // report content + Content *string `json:"content,omitempty"` + // object id + ObjectId string `json:"object_id"` + // report type + ReportType int32 `json:"report_type"` +} + +// NewSchemaAddReportReq instantiates a new SchemaAddReportReq 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 NewSchemaAddReportReq(objectId string, reportType int32) *SchemaAddReportReq { + this := SchemaAddReportReq{} + this.ObjectId = objectId + this.ReportType = reportType + return &this +} + +// 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 +func NewSchemaAddReportReqWithDefaults() *SchemaAddReportReq { + this := SchemaAddReportReq{} + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *SchemaAddReportReq) 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 *SchemaAddReportReq) 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 *SchemaAddReportReq) 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 *SchemaAddReportReq) SetContent(v string) { + o.Content = &v +} + +// GetObjectId returns the ObjectId field value +func (o *SchemaAddReportReq) GetObjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *SchemaAddReportReq) GetObjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *SchemaAddReportReq) SetObjectId(v string) { + o.ObjectId = v +} + +// GetReportType returns the ReportType field value +func (o *SchemaAddReportReq) GetReportType() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ReportType +} + +// GetReportTypeOk returns a tuple with the ReportType field value +// and a boolean to check if the value has been set. +func (o *SchemaAddReportReq) GetReportTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ReportType, true +} + +// SetReportType sets field value +func (o *SchemaAddReportReq) SetReportType(v int32) { + o.ReportType = v +} + +func (o SchemaAddReportReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAddReportReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + toSerialize["object_id"] = o.ObjectId + toSerialize["report_type"] = o.ReportType + return toSerialize, nil +} + +type NullableSchemaAddReportReq struct { + value *SchemaAddReportReq + isSet bool +} + +func (v NullableSchemaAddReportReq) Get() *SchemaAddReportReq { + return v.value +} + +func (v *NullableSchemaAddReportReq) Set(val *SchemaAddReportReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAddReportReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAddReportReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAddReportReq(val *SchemaAddReportReq) *NullableSchemaAddReportReq { + return &NullableSchemaAddReportReq{value: val, isSet: true} +} + +func (v NullableSchemaAddReportReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAddReportReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_add_tag_req.go b/model_schema_add_tag_req.go new file mode 100644 index 0000000..2ad839b --- /dev/null +++ b/model_schema_add_tag_req.go @@ -0,0 +1,174 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaAddTagReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAddTagReq{} + +// SchemaAddTagReq struct for SchemaAddTagReq +type SchemaAddTagReq struct { + // display_name + DisplayName string `json:"display_name"` + // original text + OriginalText string `json:"original_text"` + // slug_name + SlugName string `json:"slug_name"` +} + +// NewSchemaAddTagReq instantiates a new SchemaAddTagReq 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 NewSchemaAddTagReq(displayName string, originalText string, slugName string) *SchemaAddTagReq { + this := SchemaAddTagReq{} + this.DisplayName = displayName + this.OriginalText = originalText + this.SlugName = slugName + return &this +} + +// NewSchemaAddTagReqWithDefaults instantiates a new SchemaAddTagReq 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 NewSchemaAddTagReqWithDefaults() *SchemaAddTagReq { + this := SchemaAddTagReq{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *SchemaAddTagReq) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *SchemaAddTagReq) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *SchemaAddTagReq) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetOriginalText returns the OriginalText field value +func (o *SchemaAddTagReq) GetOriginalText() string { + if o == nil { + var ret string + return ret + } + + return o.OriginalText +} + +// GetOriginalTextOk returns a tuple with the OriginalText field value +// and a boolean to check if the value has been set. +func (o *SchemaAddTagReq) GetOriginalTextOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OriginalText, true +} + +// SetOriginalText sets field value +func (o *SchemaAddTagReq) SetOriginalText(v string) { + o.OriginalText = v +} + +// GetSlugName returns the SlugName field value +func (o *SchemaAddTagReq) GetSlugName() string { + if o == nil { + var ret string + return ret + } + + return o.SlugName +} + +// GetSlugNameOk returns a tuple with the SlugName field value +// and a boolean to check if the value has been set. +func (o *SchemaAddTagReq) GetSlugNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SlugName, true +} + +// SetSlugName sets field value +func (o *SchemaAddTagReq) SetSlugName(v string) { + o.SlugName = v +} + +func (o SchemaAddTagReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAddTagReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["display_name"] = o.DisplayName + toSerialize["original_text"] = o.OriginalText + toSerialize["slug_name"] = o.SlugName + return toSerialize, nil +} + +type NullableSchemaAddTagReq struct { + value *SchemaAddTagReq + isSet bool +} + +func (v NullableSchemaAddTagReq) Get() *SchemaAddTagReq { + return v.value +} + +func (v *NullableSchemaAddTagReq) Set(val *SchemaAddTagReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAddTagReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAddTagReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAddTagReq(val *SchemaAddTagReq) *NullableSchemaAddTagReq { + return &NullableSchemaAddTagReq{value: val, isSet: true} +} + +func (v NullableSchemaAddTagReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAddTagReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_add_user_req.go b/model_schema_add_user_req.go new file mode 100644 index 0000000..d2d6829 --- /dev/null +++ b/model_schema_add_user_req.go @@ -0,0 +1,171 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaAddUserReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAddUserReq{} + +// SchemaAddUserReq struct for SchemaAddUserReq +type SchemaAddUserReq struct { + DisplayName string `json:"display_name"` + Email string `json:"email"` + Password string `json:"password"` +} + +// NewSchemaAddUserReq instantiates a new SchemaAddUserReq 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 NewSchemaAddUserReq(displayName string, email string, password string) *SchemaAddUserReq { + this := SchemaAddUserReq{} + this.DisplayName = displayName + this.Email = email + this.Password = password + return &this +} + +// NewSchemaAddUserReqWithDefaults instantiates a new SchemaAddUserReq 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 NewSchemaAddUserReqWithDefaults() *SchemaAddUserReq { + this := SchemaAddUserReq{} + return &this +} + +// GetDisplayName returns the DisplayName field value +func (o *SchemaAddUserReq) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *SchemaAddUserReq) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *SchemaAddUserReq) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetEmail returns the Email field value +func (o *SchemaAddUserReq) 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 *SchemaAddUserReq) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *SchemaAddUserReq) SetEmail(v string) { + o.Email = v +} + +// GetPassword returns the Password field value +func (o *SchemaAddUserReq) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *SchemaAddUserReq) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *SchemaAddUserReq) SetPassword(v string) { + o.Password = v +} + +func (o SchemaAddUserReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAddUserReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["display_name"] = o.DisplayName + toSerialize["email"] = o.Email + toSerialize["password"] = o.Password + return toSerialize, nil +} + +type NullableSchemaAddUserReq struct { + value *SchemaAddUserReq + isSet bool +} + +func (v NullableSchemaAddUserReq) Get() *SchemaAddUserReq { + return v.value +} + +func (v *NullableSchemaAddUserReq) Set(val *SchemaAddUserReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAddUserReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAddUserReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAddUserReq(val *SchemaAddUserReq) *NullableSchemaAddUserReq { + return &NullableSchemaAddUserReq{value: val, isSet: true} +} + +func (v NullableSchemaAddUserReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAddUserReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_admin_set_answer_status_request.go b/model_schema_admin_set_answer_status_request.go new file mode 100644 index 0000000..57a5c71 --- /dev/null +++ b/model_schema_admin_set_answer_status_request.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaAdminSetAnswerStatusRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAdminSetAnswerStatusRequest{} + +// SchemaAdminSetAnswerStatusRequest struct for SchemaAdminSetAnswerStatusRequest +type SchemaAdminSetAnswerStatusRequest struct { + AnswerId *string `json:"answer_id,omitempty"` + Status *string `json:"status,omitempty"` +} + +// NewSchemaAdminSetAnswerStatusRequest instantiates a new SchemaAdminSetAnswerStatusRequest 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 NewSchemaAdminSetAnswerStatusRequest() *SchemaAdminSetAnswerStatusRequest { + this := SchemaAdminSetAnswerStatusRequest{} + return &this +} + +// NewSchemaAdminSetAnswerStatusRequestWithDefaults instantiates a new SchemaAdminSetAnswerStatusRequest 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 NewSchemaAdminSetAnswerStatusRequestWithDefaults() *SchemaAdminSetAnswerStatusRequest { + this := SchemaAdminSetAnswerStatusRequest{} + return &this +} + +// GetAnswerId returns the AnswerId field value if set, zero value otherwise. +func (o *SchemaAdminSetAnswerStatusRequest) 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 *SchemaAdminSetAnswerStatusRequest) 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 *SchemaAdminSetAnswerStatusRequest) 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 *SchemaAdminSetAnswerStatusRequest) SetAnswerId(v string) { + o.AnswerId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaAdminSetAnswerStatusRequest) 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 *SchemaAdminSetAnswerStatusRequest) 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 *SchemaAdminSetAnswerStatusRequest) 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 *SchemaAdminSetAnswerStatusRequest) SetStatus(v string) { + o.Status = &v +} + +func (o SchemaAdminSetAnswerStatusRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAdminSetAnswerStatusRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AnswerId) { + toSerialize["answer_id"] = o.AnswerId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableSchemaAdminSetAnswerStatusRequest struct { + value *SchemaAdminSetAnswerStatusRequest + isSet bool +} + +func (v NullableSchemaAdminSetAnswerStatusRequest) Get() *SchemaAdminSetAnswerStatusRequest { + return v.value +} + +func (v *NullableSchemaAdminSetAnswerStatusRequest) Set(val *SchemaAdminSetAnswerStatusRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAdminSetAnswerStatusRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAdminSetAnswerStatusRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAdminSetAnswerStatusRequest(val *SchemaAdminSetAnswerStatusRequest) *NullableSchemaAdminSetAnswerStatusRequest { + return &NullableSchemaAdminSetAnswerStatusRequest{value: val, isSet: true} +} + +func (v NullableSchemaAdminSetAnswerStatusRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAdminSetAnswerStatusRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_admin_set_question_status_request.go b/model_schema_admin_set_question_status_request.go new file mode 100644 index 0000000..8832844 --- /dev/null +++ b/model_schema_admin_set_question_status_request.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaAdminSetQuestionStatusRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAdminSetQuestionStatusRequest{} + +// SchemaAdminSetQuestionStatusRequest struct for SchemaAdminSetQuestionStatusRequest +type SchemaAdminSetQuestionStatusRequest struct { + QuestionId *string `json:"question_id,omitempty"` + Status *string `json:"status,omitempty"` +} + +// NewSchemaAdminSetQuestionStatusRequest instantiates a new SchemaAdminSetQuestionStatusRequest 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 NewSchemaAdminSetQuestionStatusRequest() *SchemaAdminSetQuestionStatusRequest { + this := SchemaAdminSetQuestionStatusRequest{} + return &this +} + +// NewSchemaAdminSetQuestionStatusRequestWithDefaults instantiates a new SchemaAdminSetQuestionStatusRequest 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 NewSchemaAdminSetQuestionStatusRequestWithDefaults() *SchemaAdminSetQuestionStatusRequest { + this := SchemaAdminSetQuestionStatusRequest{} + return &this +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) SetQuestionId(v string) { + o.QuestionId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) 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 *SchemaAdminSetQuestionStatusRequest) SetStatus(v string) { + o.Status = &v +} + +func (o SchemaAdminSetQuestionStatusRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAdminSetQuestionStatusRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.QuestionId) { + toSerialize["question_id"] = o.QuestionId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableSchemaAdminSetQuestionStatusRequest struct { + value *SchemaAdminSetQuestionStatusRequest + isSet bool +} + +func (v NullableSchemaAdminSetQuestionStatusRequest) Get() *SchemaAdminSetQuestionStatusRequest { + return v.value +} + +func (v *NullableSchemaAdminSetQuestionStatusRequest) Set(val *SchemaAdminSetQuestionStatusRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAdminSetQuestionStatusRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAdminSetQuestionStatusRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAdminSetQuestionStatusRequest(val *SchemaAdminSetQuestionStatusRequest) *NullableSchemaAdminSetQuestionStatusRequest { + return &NullableSchemaAdminSetQuestionStatusRequest{value: val, isSet: true} +} + +func (v NullableSchemaAdminSetQuestionStatusRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAdminSetQuestionStatusRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_answer_accepted_req.go b/model_schema_answer_accepted_req.go new file mode 100644 index 0000000..b3d027c --- /dev/null +++ b/model_schema_answer_accepted_req.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaAnswerAcceptedReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAnswerAcceptedReq{} + +// SchemaAnswerAcceptedReq struct for SchemaAnswerAcceptedReq +type SchemaAnswerAcceptedReq struct { + AnswerId *string `json:"answer_id,omitempty"` + QuestionId *string `json:"question_id,omitempty"` +} + +// NewSchemaAnswerAcceptedReq instantiates a new SchemaAnswerAcceptedReq object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaAnswerAcceptedReq() *SchemaAnswerAcceptedReq { + this := SchemaAnswerAcceptedReq{} + return &this +} + +// NewSchemaAnswerAcceptedReqWithDefaults instantiates a new SchemaAnswerAcceptedReq object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaAnswerAcceptedReqWithDefaults() *SchemaAnswerAcceptedReq { + this := SchemaAnswerAcceptedReq{} + return &this +} + +// GetAnswerId returns the AnswerId field value if set, zero value otherwise. +func (o *SchemaAnswerAcceptedReq) GetAnswerId() string { + if o == nil || IsNil(o.AnswerId) { + var ret string + return ret + } + return *o.AnswerId +} + +// GetAnswerIdOk returns a tuple with the AnswerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaAnswerAcceptedReq) GetAnswerIdOk() (*string, bool) { + if o == nil || IsNil(o.AnswerId) { + return nil, false + } + return o.AnswerId, true +} + +// HasAnswerId returns a boolean if a field has been set. +func (o *SchemaAnswerAcceptedReq) HasAnswerId() bool { + if o != nil && !IsNil(o.AnswerId) { + return true + } + + return false +} + +// SetAnswerId gets a reference to the given string and assigns it to the AnswerId field. +func (o *SchemaAnswerAcceptedReq) SetAnswerId(v string) { + o.AnswerId = &v +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaAnswerAcceptedReq) GetQuestionId() string { + if o == nil || IsNil(o.QuestionId) { + var ret string + return ret + } + return *o.QuestionId +} + +// GetQuestionIdOk returns a tuple with the QuestionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaAnswerAcceptedReq) GetQuestionIdOk() (*string, bool) { + if o == nil || IsNil(o.QuestionId) { + return nil, false + } + return o.QuestionId, true +} + +// HasQuestionId returns a boolean if a field has been set. +func (o *SchemaAnswerAcceptedReq) HasQuestionId() bool { + if o != nil && !IsNil(o.QuestionId) { + return true + } + + return false +} + +// SetQuestionId gets a reference to the given string and assigns it to the QuestionId field. +func (o *SchemaAnswerAcceptedReq) SetQuestionId(v string) { + o.QuestionId = &v +} + +func (o SchemaAnswerAcceptedReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAnswerAcceptedReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AnswerId) { + toSerialize["answer_id"] = o.AnswerId + } + if !IsNil(o.QuestionId) { + toSerialize["question_id"] = o.QuestionId + } + return toSerialize, nil +} + +type NullableSchemaAnswerAcceptedReq struct { + value *SchemaAnswerAcceptedReq + isSet bool +} + +func (v NullableSchemaAnswerAcceptedReq) Get() *SchemaAnswerAcceptedReq { + return v.value +} + +func (v *NullableSchemaAnswerAcceptedReq) Set(val *SchemaAnswerAcceptedReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAnswerAcceptedReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAnswerAcceptedReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAnswerAcceptedReq(val *SchemaAnswerAcceptedReq) *NullableSchemaAnswerAcceptedReq { + return &NullableSchemaAnswerAcceptedReq{value: val, isSet: true} +} + +func (v NullableSchemaAnswerAcceptedReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAnswerAcceptedReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_answer_add_req.go b/model_schema_answer_add_req.go new file mode 100644 index 0000000..2243d7e --- /dev/null +++ b/model_schema_answer_add_req.go @@ -0,0 +1,153 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaAnswerAddReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAnswerAddReq{} + +// SchemaAnswerAddReq struct for SchemaAnswerAddReq +type SchemaAnswerAddReq struct { + Content string `json:"content"` + QuestionId *string `json:"question_id,omitempty"` +} + +// NewSchemaAnswerAddReq instantiates a new SchemaAnswerAddReq 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 NewSchemaAnswerAddReq(content string) *SchemaAnswerAddReq { + this := SchemaAnswerAddReq{} + this.Content = content + return &this +} + +// 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 +func NewSchemaAnswerAddReqWithDefaults() *SchemaAnswerAddReq { + this := SchemaAnswerAddReq{} + return &this +} + +// GetContent returns the Content field value +func (o *SchemaAnswerAddReq) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *SchemaAnswerAddReq) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *SchemaAnswerAddReq) SetContent(v string) { + o.Content = v +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaAnswerAddReq) 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 *SchemaAnswerAddReq) 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 *SchemaAnswerAddReq) 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 *SchemaAnswerAddReq) SetQuestionId(v string) { + o.QuestionId = &v +} + +func (o SchemaAnswerAddReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAnswerAddReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["content"] = o.Content + if !IsNil(o.QuestionId) { + toSerialize["question_id"] = o.QuestionId + } + return toSerialize, nil +} + +type NullableSchemaAnswerAddReq struct { + value *SchemaAnswerAddReq + isSet bool +} + +func (v NullableSchemaAnswerAddReq) Get() *SchemaAnswerAddReq { + return v.value +} + +func (v *NullableSchemaAnswerAddReq) Set(val *SchemaAnswerAddReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAnswerAddReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAnswerAddReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAnswerAddReq(val *SchemaAnswerAddReq) *NullableSchemaAnswerAddReq { + return &NullableSchemaAnswerAddReq{value: val, isSet: true} +} + +func (v NullableSchemaAnswerAddReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAnswerAddReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_answer_update_req.go b/model_schema_answer_update_req.go new file mode 100644 index 0000000..678b8a1 --- /dev/null +++ b/model_schema_answer_update_req.go @@ -0,0 +1,261 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaAnswerUpdateReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAnswerUpdateReq{} + +// SchemaAnswerUpdateReq struct for SchemaAnswerUpdateReq +type SchemaAnswerUpdateReq struct { + Content string `json:"content"` + EditSummary *string `json:"edit_summary,omitempty"` + Id *string `json:"id,omitempty"` + QuestionId *string `json:"question_id,omitempty"` + Title *string `json:"title,omitempty"` +} + +// NewSchemaAnswerUpdateReq instantiates a new SchemaAnswerUpdateReq 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 NewSchemaAnswerUpdateReq(content string) *SchemaAnswerUpdateReq { + this := SchemaAnswerUpdateReq{} + this.Content = content + return &this +} + +// NewSchemaAnswerUpdateReqWithDefaults instantiates a new SchemaAnswerUpdateReq 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 NewSchemaAnswerUpdateReqWithDefaults() *SchemaAnswerUpdateReq { + this := SchemaAnswerUpdateReq{} + return &this +} + +// GetContent returns the Content field value +func (o *SchemaAnswerUpdateReq) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *SchemaAnswerUpdateReq) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *SchemaAnswerUpdateReq) SetContent(v string) { + o.Content = v +} + +// GetEditSummary returns the EditSummary field value if set, zero value otherwise. +func (o *SchemaAnswerUpdateReq) GetEditSummary() string { + if o == nil || IsNil(o.EditSummary) { + var ret string + return ret + } + return *o.EditSummary +} + +// GetEditSummaryOk returns a tuple with the EditSummary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaAnswerUpdateReq) GetEditSummaryOk() (*string, bool) { + if o == nil || IsNil(o.EditSummary) { + return nil, false + } + return o.EditSummary, true +} + +// HasEditSummary returns a boolean if a field has been set. +func (o *SchemaAnswerUpdateReq) HasEditSummary() bool { + if o != nil && !IsNil(o.EditSummary) { + return true + } + + return false +} + +// SetEditSummary gets a reference to the given string and assigns it to the EditSummary field. +func (o *SchemaAnswerUpdateReq) SetEditSummary(v string) { + o.EditSummary = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) SetId(v string) { + o.Id = &v +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) SetQuestionId(v string) { + o.QuestionId = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) 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 *SchemaAnswerUpdateReq) SetTitle(v string) { + o.Title = &v +} + +func (o SchemaAnswerUpdateReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAnswerUpdateReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["content"] = o.Content + if !IsNil(o.EditSummary) { + toSerialize["edit_summary"] = o.EditSummary + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.QuestionId) { + toSerialize["question_id"] = o.QuestionId + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableSchemaAnswerUpdateReq struct { + value *SchemaAnswerUpdateReq + isSet bool +} + +func (v NullableSchemaAnswerUpdateReq) Get() *SchemaAnswerUpdateReq { + return v.value +} + +func (v *NullableSchemaAnswerUpdateReq) Set(val *SchemaAnswerUpdateReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAnswerUpdateReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAnswerUpdateReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAnswerUpdateReq(val *SchemaAnswerUpdateReq) *NullableSchemaAnswerUpdateReq { + return &NullableSchemaAnswerUpdateReq{value: val, isSet: true} +} + +func (v NullableSchemaAnswerUpdateReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAnswerUpdateReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_avatar_info.go b/model_schema_avatar_info.go new file mode 100644 index 0000000..df47784 --- /dev/null +++ b/model_schema_avatar_info.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaAvatarInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaAvatarInfo{} + +// SchemaAvatarInfo struct for SchemaAvatarInfo +type SchemaAvatarInfo struct { + Custom *string `json:"custom,omitempty"` + Gravatar *string `json:"gravatar,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewSchemaAvatarInfo instantiates a new SchemaAvatarInfo 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 NewSchemaAvatarInfo() *SchemaAvatarInfo { + this := SchemaAvatarInfo{} + return &this +} + +// NewSchemaAvatarInfoWithDefaults instantiates a new SchemaAvatarInfo 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 NewSchemaAvatarInfoWithDefaults() *SchemaAvatarInfo { + this := SchemaAvatarInfo{} + return &this +} + +// GetCustom returns the Custom field value if set, zero value otherwise. +func (o *SchemaAvatarInfo) 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 *SchemaAvatarInfo) 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 *SchemaAvatarInfo) 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 *SchemaAvatarInfo) SetCustom(v string) { + o.Custom = &v +} + +// GetGravatar returns the Gravatar field value if set, zero value otherwise. +func (o *SchemaAvatarInfo) 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 *SchemaAvatarInfo) 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 *SchemaAvatarInfo) 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 *SchemaAvatarInfo) SetGravatar(v string) { + o.Gravatar = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SchemaAvatarInfo) 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 *SchemaAvatarInfo) 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 *SchemaAvatarInfo) 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 *SchemaAvatarInfo) SetType(v string) { + o.Type = &v +} + +func (o SchemaAvatarInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaAvatarInfo) 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 NullableSchemaAvatarInfo struct { + value *SchemaAvatarInfo + isSet bool +} + +func (v NullableSchemaAvatarInfo) Get() *SchemaAvatarInfo { + return v.value +} + +func (v *NullableSchemaAvatarInfo) Set(val *SchemaAvatarInfo) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaAvatarInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaAvatarInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaAvatarInfo(val *SchemaAvatarInfo) *NullableSchemaAvatarInfo { + return &NullableSchemaAvatarInfo{value: val, isSet: true} +} + +func (v NullableSchemaAvatarInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaAvatarInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_close_question_req.go b/model_schema_close_question_req.go new file mode 100644 index 0000000..e218af0 --- /dev/null +++ b/model_schema_close_question_req.go @@ -0,0 +1,191 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaCloseQuestionReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaCloseQuestionReq{} + +// SchemaCloseQuestionReq struct for SchemaCloseQuestionReq +type SchemaCloseQuestionReq struct { + // close_type + CloseMsg *string `json:"close_msg,omitempty"` + // close_type + CloseType *int32 `json:"close_type,omitempty"` + Id string `json:"id"` +} + +// NewSchemaCloseQuestionReq instantiates a new SchemaCloseQuestionReq 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 NewSchemaCloseQuestionReq(id string) *SchemaCloseQuestionReq { + this := SchemaCloseQuestionReq{} + this.Id = id + return &this +} + +// NewSchemaCloseQuestionReqWithDefaults instantiates a new SchemaCloseQuestionReq 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 NewSchemaCloseQuestionReqWithDefaults() *SchemaCloseQuestionReq { + this := SchemaCloseQuestionReq{} + return &this +} + +// GetCloseMsg returns the CloseMsg field value if set, zero value otherwise. +func (o *SchemaCloseQuestionReq) GetCloseMsg() string { + if o == nil || IsNil(o.CloseMsg) { + var ret string + return ret + } + return *o.CloseMsg +} + +// GetCloseMsgOk returns a tuple with the CloseMsg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaCloseQuestionReq) GetCloseMsgOk() (*string, bool) { + if o == nil || IsNil(o.CloseMsg) { + return nil, false + } + return o.CloseMsg, true +} + +// HasCloseMsg returns a boolean if a field has been set. +func (o *SchemaCloseQuestionReq) HasCloseMsg() bool { + if o != nil && !IsNil(o.CloseMsg) { + return true + } + + return false +} + +// SetCloseMsg gets a reference to the given string and assigns it to the CloseMsg field. +func (o *SchemaCloseQuestionReq) SetCloseMsg(v string) { + o.CloseMsg = &v +} + +// GetCloseType returns the CloseType field value if set, zero value otherwise. +func (o *SchemaCloseQuestionReq) GetCloseType() int32 { + if o == nil || IsNil(o.CloseType) { + var ret int32 + return ret + } + return *o.CloseType +} + +// GetCloseTypeOk returns a tuple with the CloseType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaCloseQuestionReq) GetCloseTypeOk() (*int32, bool) { + if o == nil || IsNil(o.CloseType) { + return nil, false + } + return o.CloseType, true +} + +// HasCloseType returns a boolean if a field has been set. +func (o *SchemaCloseQuestionReq) HasCloseType() bool { + if o != nil && !IsNil(o.CloseType) { + return true + } + + return false +} + +// SetCloseType gets a reference to the given int32 and assigns it to the CloseType field. +func (o *SchemaCloseQuestionReq) SetCloseType(v int32) { + o.CloseType = &v +} + +// GetId returns the Id field value +func (o *SchemaCloseQuestionReq) 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 *SchemaCloseQuestionReq) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SchemaCloseQuestionReq) SetId(v string) { + o.Id = v +} + +func (o SchemaCloseQuestionReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaCloseQuestionReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CloseMsg) { + toSerialize["close_msg"] = o.CloseMsg + } + if !IsNil(o.CloseType) { + toSerialize["close_type"] = o.CloseType + } + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableSchemaCloseQuestionReq struct { + value *SchemaCloseQuestionReq + isSet bool +} + +func (v NullableSchemaCloseQuestionReq) Get() *SchemaCloseQuestionReq { + return v.value +} + +func (v *NullableSchemaCloseQuestionReq) Set(val *SchemaCloseQuestionReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaCloseQuestionReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaCloseQuestionReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaCloseQuestionReq(val *SchemaCloseQuestionReq) *NullableSchemaCloseQuestionReq { + return &NullableSchemaCloseQuestionReq{value: val, isSet: true} +} + +func (v NullableSchemaCloseQuestionReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaCloseQuestionReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_collection_switch_req.go b/model_schema_collection_switch_req.go new file mode 100644 index 0000000..7d7e04f --- /dev/null +++ b/model_schema_collection_switch_req.go @@ -0,0 +1,146 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaCollectionSwitchReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaCollectionSwitchReq{} + +// SchemaCollectionSwitchReq struct for SchemaCollectionSwitchReq +type SchemaCollectionSwitchReq struct { + // user collection group TagID + GroupId string `json:"group_id"` + // object TagID + ObjectId string `json:"object_id"` +} + +// NewSchemaCollectionSwitchReq instantiates a new SchemaCollectionSwitchReq 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 NewSchemaCollectionSwitchReq(groupId string, objectId string) *SchemaCollectionSwitchReq { + this := SchemaCollectionSwitchReq{} + this.GroupId = groupId + this.ObjectId = objectId + return &this +} + +// NewSchemaCollectionSwitchReqWithDefaults instantiates a new SchemaCollectionSwitchReq 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 NewSchemaCollectionSwitchReqWithDefaults() *SchemaCollectionSwitchReq { + this := SchemaCollectionSwitchReq{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *SchemaCollectionSwitchReq) GetGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *SchemaCollectionSwitchReq) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *SchemaCollectionSwitchReq) SetGroupId(v string) { + o.GroupId = v +} + +// GetObjectId returns the ObjectId field value +func (o *SchemaCollectionSwitchReq) GetObjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *SchemaCollectionSwitchReq) GetObjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *SchemaCollectionSwitchReq) SetObjectId(v string) { + o.ObjectId = v +} + +func (o SchemaCollectionSwitchReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaCollectionSwitchReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_id"] = o.GroupId + toSerialize["object_id"] = o.ObjectId + return toSerialize, nil +} + +type NullableSchemaCollectionSwitchReq struct { + value *SchemaCollectionSwitchReq + isSet bool +} + +func (v NullableSchemaCollectionSwitchReq) Get() *SchemaCollectionSwitchReq { + return v.value +} + +func (v *NullableSchemaCollectionSwitchReq) Set(val *SchemaCollectionSwitchReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaCollectionSwitchReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaCollectionSwitchReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaCollectionSwitchReq(val *SchemaCollectionSwitchReq) *NullableSchemaCollectionSwitchReq { + return &NullableSchemaCollectionSwitchReq{value: val, isSet: true} +} + +func (v NullableSchemaCollectionSwitchReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaCollectionSwitchReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_collection_switch_resp.go b/model_schema_collection_switch_resp.go new file mode 100644 index 0000000..b4bf89d --- /dev/null +++ b/model_schema_collection_switch_resp.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaCollectionSwitchResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaCollectionSwitchResp{} + +// SchemaCollectionSwitchResp struct for SchemaCollectionSwitchResp +type SchemaCollectionSwitchResp struct { + ObjectCollectionCount *string `json:"object_collection_count,omitempty"` + ObjectId *string `json:"object_id,omitempty"` + Switch *bool `json:"switch,omitempty"` +} + +// NewSchemaCollectionSwitchResp instantiates a new SchemaCollectionSwitchResp 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 NewSchemaCollectionSwitchResp() *SchemaCollectionSwitchResp { + this := SchemaCollectionSwitchResp{} + return &this +} + +// NewSchemaCollectionSwitchRespWithDefaults instantiates a new SchemaCollectionSwitchResp 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 NewSchemaCollectionSwitchRespWithDefaults() *SchemaCollectionSwitchResp { + this := SchemaCollectionSwitchResp{} + return &this +} + +// GetObjectCollectionCount returns the ObjectCollectionCount field value if set, zero value otherwise. +func (o *SchemaCollectionSwitchResp) GetObjectCollectionCount() string { + if o == nil || IsNil(o.ObjectCollectionCount) { + var ret string + return ret + } + return *o.ObjectCollectionCount +} + +// GetObjectCollectionCountOk returns a tuple with the ObjectCollectionCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaCollectionSwitchResp) GetObjectCollectionCountOk() (*string, bool) { + if o == nil || IsNil(o.ObjectCollectionCount) { + return nil, false + } + return o.ObjectCollectionCount, true +} + +// HasObjectCollectionCount returns a boolean if a field has been set. +func (o *SchemaCollectionSwitchResp) HasObjectCollectionCount() bool { + if o != nil && !IsNil(o.ObjectCollectionCount) { + return true + } + + return false +} + +// SetObjectCollectionCount gets a reference to the given string and assigns it to the ObjectCollectionCount field. +func (o *SchemaCollectionSwitchResp) SetObjectCollectionCount(v string) { + o.ObjectCollectionCount = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *SchemaCollectionSwitchResp) 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 *SchemaCollectionSwitchResp) 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 *SchemaCollectionSwitchResp) 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 *SchemaCollectionSwitchResp) SetObjectId(v string) { + o.ObjectId = &v +} + +// GetSwitch returns the Switch field value if set, zero value otherwise. +func (o *SchemaCollectionSwitchResp) GetSwitch() bool { + if o == nil || IsNil(o.Switch) { + var ret bool + return ret + } + return *o.Switch +} + +// GetSwitchOk returns a tuple with the Switch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaCollectionSwitchResp) GetSwitchOk() (*bool, bool) { + if o == nil || IsNil(o.Switch) { + return nil, false + } + return o.Switch, true +} + +// HasSwitch returns a boolean if a field has been set. +func (o *SchemaCollectionSwitchResp) HasSwitch() bool { + if o != nil && !IsNil(o.Switch) { + return true + } + + return false +} + +// SetSwitch gets a reference to the given bool and assigns it to the Switch field. +func (o *SchemaCollectionSwitchResp) SetSwitch(v bool) { + o.Switch = &v +} + +func (o SchemaCollectionSwitchResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaCollectionSwitchResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ObjectCollectionCount) { + toSerialize["object_collection_count"] = o.ObjectCollectionCount + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.Switch) { + toSerialize["switch"] = o.Switch + } + return toSerialize, nil +} + +type NullableSchemaCollectionSwitchResp struct { + value *SchemaCollectionSwitchResp + isSet bool +} + +func (v NullableSchemaCollectionSwitchResp) Get() *SchemaCollectionSwitchResp { + return v.value +} + +func (v *NullableSchemaCollectionSwitchResp) Set(val *SchemaCollectionSwitchResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaCollectionSwitchResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaCollectionSwitchResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaCollectionSwitchResp(val *SchemaCollectionSwitchResp) *NullableSchemaCollectionSwitchResp { + return &NullableSchemaCollectionSwitchResp{value: val, isSet: true} +} + +func (v NullableSchemaCollectionSwitchResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaCollectionSwitchResp) 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 new file mode 100644 index 0000000..1bc2170 --- /dev/null +++ b/model_schema_follow_req.go @@ -0,0 +1,155 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaFollowReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaFollowReq{} + +// SchemaFollowReq struct for SchemaFollowReq +type SchemaFollowReq struct { + // is cancel + IsCancel *bool `json:"is_cancel,omitempty"` + // object id + ObjectId string `json:"object_id"` +} + +// NewSchemaFollowReq instantiates a new SchemaFollowReq 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 NewSchemaFollowReq(objectId string) *SchemaFollowReq { + this := SchemaFollowReq{} + this.ObjectId = objectId + return &this +} + +// NewSchemaFollowReqWithDefaults instantiates a new SchemaFollowReq 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 NewSchemaFollowReqWithDefaults() *SchemaFollowReq { + this := SchemaFollowReq{} + return &this +} + +// GetIsCancel returns the IsCancel field value if set, zero value otherwise. +func (o *SchemaFollowReq) GetIsCancel() bool { + if o == nil || IsNil(o.IsCancel) { + var ret bool + return ret + } + return *o.IsCancel +} + +// GetIsCancelOk returns a tuple with the IsCancel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaFollowReq) GetIsCancelOk() (*bool, bool) { + if o == nil || IsNil(o.IsCancel) { + return nil, false + } + return o.IsCancel, true +} + +// HasIsCancel returns a boolean if a field has been set. +func (o *SchemaFollowReq) HasIsCancel() bool { + if o != nil && !IsNil(o.IsCancel) { + return true + } + + return false +} + +// SetIsCancel gets a reference to the given bool and assigns it to the IsCancel field. +func (o *SchemaFollowReq) SetIsCancel(v bool) { + o.IsCancel = &v +} + +// GetObjectId returns the ObjectId field value +func (o *SchemaFollowReq) GetObjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *SchemaFollowReq) GetObjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *SchemaFollowReq) SetObjectId(v string) { + o.ObjectId = v +} + +func (o SchemaFollowReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaFollowReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsCancel) { + toSerialize["is_cancel"] = o.IsCancel + } + toSerialize["object_id"] = o.ObjectId + return toSerialize, nil +} + +type NullableSchemaFollowReq struct { + value *SchemaFollowReq + isSet bool +} + +func (v NullableSchemaFollowReq) Get() *SchemaFollowReq { + return v.value +} + +func (v *NullableSchemaFollowReq) Set(val *SchemaFollowReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaFollowReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaFollowReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaFollowReq(val *SchemaFollowReq) *NullableSchemaFollowReq { + return &NullableSchemaFollowReq{value: val, isSet: true} +} + +func (v NullableSchemaFollowReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaFollowReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_follow_resp.go b/model_schema_follow_resp.go new file mode 100644 index 0000000..bf98945 --- /dev/null +++ b/model_schema_follow_resp.go @@ -0,0 +1,164 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaFollowResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaFollowResp{} + +// SchemaFollowResp struct for SchemaFollowResp +type SchemaFollowResp struct { + // the followers of object + Follows *int32 `json:"follows,omitempty"` + // if user is followed object will be true,otherwise false + IsFollowed *bool `json:"is_followed,omitempty"` +} + +// NewSchemaFollowResp instantiates a new SchemaFollowResp 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 NewSchemaFollowResp() *SchemaFollowResp { + this := SchemaFollowResp{} + return &this +} + +// NewSchemaFollowRespWithDefaults instantiates a new SchemaFollowResp 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 NewSchemaFollowRespWithDefaults() *SchemaFollowResp { + this := SchemaFollowResp{} + return &this +} + +// GetFollows returns the Follows field value if set, zero value otherwise. +func (o *SchemaFollowResp) GetFollows() int32 { + if o == nil || IsNil(o.Follows) { + var ret int32 + return ret + } + return *o.Follows +} + +// GetFollowsOk returns a tuple with the Follows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaFollowResp) GetFollowsOk() (*int32, bool) { + if o == nil || IsNil(o.Follows) { + return nil, false + } + return o.Follows, true +} + +// HasFollows returns a boolean if a field has been set. +func (o *SchemaFollowResp) HasFollows() bool { + if o != nil && !IsNil(o.Follows) { + return true + } + + return false +} + +// SetFollows gets a reference to the given int32 and assigns it to the Follows field. +func (o *SchemaFollowResp) SetFollows(v int32) { + o.Follows = &v +} + +// GetIsFollowed returns the IsFollowed field value if set, zero value otherwise. +func (o *SchemaFollowResp) GetIsFollowed() bool { + if o == nil || IsNil(o.IsFollowed) { + var ret bool + return ret + } + return *o.IsFollowed +} + +// GetIsFollowedOk returns a tuple with the IsFollowed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaFollowResp) GetIsFollowedOk() (*bool, bool) { + if o == nil || IsNil(o.IsFollowed) { + return nil, false + } + return o.IsFollowed, true +} + +// HasIsFollowed returns a boolean if a field has been set. +func (o *SchemaFollowResp) HasIsFollowed() bool { + if o != nil && !IsNil(o.IsFollowed) { + return true + } + + return false +} + +// SetIsFollowed gets a reference to the given bool and assigns it to the IsFollowed field. +func (o *SchemaFollowResp) SetIsFollowed(v bool) { + o.IsFollowed = &v +} + +func (o SchemaFollowResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaFollowResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Follows) { + toSerialize["follows"] = o.Follows + } + if !IsNil(o.IsFollowed) { + toSerialize["is_followed"] = o.IsFollowed + } + return toSerialize, nil +} + +type NullableSchemaFollowResp struct { + value *SchemaFollowResp + isSet bool +} + +func (v NullableSchemaFollowResp) Get() *SchemaFollowResp { + return v.value +} + +func (v *NullableSchemaFollowResp) Set(val *SchemaFollowResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaFollowResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaFollowResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaFollowResp(val *SchemaFollowResp) *NullableSchemaFollowResp { + return &NullableSchemaFollowResp{value: val, isSet: true} +} + +func (v NullableSchemaFollowResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaFollowResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_comment_personal_with_page_resp.go b/model_schema_get_comment_personal_with_page_resp.go new file mode 100644 index 0000000..499e8da --- /dev/null +++ b/model_schema_get_comment_personal_with_page_resp.go @@ -0,0 +1,423 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetCommentPersonalWithPageResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetCommentPersonalWithPageResp{} + +// SchemaGetCommentPersonalWithPageResp struct for SchemaGetCommentPersonalWithPageResp +type SchemaGetCommentPersonalWithPageResp struct { + // answer id + AnswerId *string `json:"answer_id,omitempty"` + // comment id + CommentId *string `json:"comment_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"` + // title + Title *string `json:"title,omitempty"` + // url title + UrlTitle *string `json:"url_title,omitempty"` +} + +// NewSchemaGetCommentPersonalWithPageResp instantiates a new SchemaGetCommentPersonalWithPageResp 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 NewSchemaGetCommentPersonalWithPageResp() *SchemaGetCommentPersonalWithPageResp { + this := SchemaGetCommentPersonalWithPageResp{} + return &this +} + +// NewSchemaGetCommentPersonalWithPageRespWithDefaults instantiates a new SchemaGetCommentPersonalWithPageResp 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 NewSchemaGetCommentPersonalWithPageRespWithDefaults() *SchemaGetCommentPersonalWithPageResp { + this := SchemaGetCommentPersonalWithPageResp{} + return &this +} + +// GetAnswerId returns the AnswerId field value if set, zero value otherwise. +func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetAnswerId(v string) { + o.AnswerId = &v +} + +// GetCommentId returns the CommentId field value if set, zero value otherwise. +func (o *SchemaGetCommentPersonalWithPageResp) GetCommentId() string { + if o == nil || IsNil(o.CommentId) { + var ret string + return ret + } + return *o.CommentId +} + +// GetCommentIdOk returns a tuple with the CommentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentPersonalWithPageResp) GetCommentIdOk() (*string, bool) { + if o == nil || IsNil(o.CommentId) { + return nil, false + } + return o.CommentId, true +} + +// HasCommentId returns a boolean if a field has been set. +func (o *SchemaGetCommentPersonalWithPageResp) HasCommentId() bool { + if o != nil && !IsNil(o.CommentId) { + return true + } + + return false +} + +// SetCommentId gets a reference to the given string and assigns it to the CommentId field. +func (o *SchemaGetCommentPersonalWithPageResp) SetCommentId(v string) { + o.CommentId = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetContent(v string) { + o.Content = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetObjectId(v string) { + o.ObjectId = &v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetQuestionId(v string) { + o.QuestionId = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetTitle(v string) { + o.Title = &v +} + +// GetUrlTitle returns the UrlTitle field value if set, zero value otherwise. +func (o *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) 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 *SchemaGetCommentPersonalWithPageResp) SetUrlTitle(v string) { + o.UrlTitle = &v +} + +func (o SchemaGetCommentPersonalWithPageResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetCommentPersonalWithPageResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AnswerId) { + toSerialize["answer_id"] = o.AnswerId + } + if !IsNil(o.CommentId) { + toSerialize["comment_id"] = o.CommentId + } + 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.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.UrlTitle) { + toSerialize["url_title"] = o.UrlTitle + } + return toSerialize, nil +} + +type NullableSchemaGetCommentPersonalWithPageResp struct { + value *SchemaGetCommentPersonalWithPageResp + isSet bool +} + +func (v NullableSchemaGetCommentPersonalWithPageResp) Get() *SchemaGetCommentPersonalWithPageResp { + return v.value +} + +func (v *NullableSchemaGetCommentPersonalWithPageResp) Set(val *SchemaGetCommentPersonalWithPageResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetCommentPersonalWithPageResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetCommentPersonalWithPageResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetCommentPersonalWithPageResp(val *SchemaGetCommentPersonalWithPageResp) *NullableSchemaGetCommentPersonalWithPageResp { + return &NullableSchemaGetCommentPersonalWithPageResp{value: val, isSet: true} +} + +func (v NullableSchemaGetCommentPersonalWithPageResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetCommentPersonalWithPageResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_comment_resp.go b/model_schema_get_comment_resp.go new file mode 100644 index 0000000..625653c --- /dev/null +++ b/model_schema_get_comment_resp.go @@ -0,0 +1,756 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetCommentResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetCommentResp{} + +// SchemaGetCommentResp struct for SchemaGetCommentResp +type SchemaGetCommentResp struct { + // comment id + CommentId *string `json:"comment_id,omitempty"` + // create time + CreatedAt *int32 `json:"created_at,omitempty"` + // current user if already vote this comment + IsVote *bool `json:"is_vote,omitempty"` + // MemberActions + MemberActions []SchemaPermissionMemberAction `json:"member_actions,omitempty"` + // object id + ObjectId *string `json:"object_id,omitempty"` + // original comment content + OriginalText *string `json:"original_text,omitempty"` + // parsed comment content + ParsedText *string `json:"parsed_text,omitempty"` + // reply comment id + ReplyCommentId *string `json:"reply_comment_id,omitempty"` + // reply user display name + ReplyUserDisplayName *string `json:"reply_user_display_name,omitempty"` + // reply user id + ReplyUserId *string `json:"reply_user_id,omitempty"` + // reply user status + ReplyUserStatus *string `json:"reply_user_status,omitempty"` + // reply user username + ReplyUsername *string `json:"reply_username,omitempty"` + // user avatar + UserAvatar *string `json:"user_avatar,omitempty"` + // user display name + UserDisplayName *string `json:"user_display_name,omitempty"` + // user id + UserId *string `json:"user_id,omitempty"` + // user status + UserStatus *string `json:"user_status,omitempty"` + // username + Username *string `json:"username,omitempty"` + // user vote amount + VoteCount *int32 `json:"vote_count,omitempty"` +} + +// NewSchemaGetCommentResp instantiates a new SchemaGetCommentResp 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 NewSchemaGetCommentResp() *SchemaGetCommentResp { + this := SchemaGetCommentResp{} + return &this +} + +// NewSchemaGetCommentRespWithDefaults instantiates a new SchemaGetCommentResp 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 NewSchemaGetCommentRespWithDefaults() *SchemaGetCommentResp { + this := SchemaGetCommentResp{} + return &this +} + +// GetCommentId returns the CommentId field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetCommentId() string { + if o == nil || IsNil(o.CommentId) { + var ret string + return ret + } + return *o.CommentId +} + +// GetCommentIdOk returns a tuple with the CommentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetCommentIdOk() (*string, bool) { + if o == nil || IsNil(o.CommentId) { + return nil, false + } + return o.CommentId, true +} + +// HasCommentId returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasCommentId() bool { + if o != nil && !IsNil(o.CommentId) { + return true + } + + return false +} + +// SetCommentId gets a reference to the given string and assigns it to the CommentId field. +func (o *SchemaGetCommentResp) SetCommentId(v string) { + o.CommentId = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) 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 *SchemaGetCommentResp) 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 *SchemaGetCommentResp) 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 *SchemaGetCommentResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetIsVote returns the IsVote field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetIsVote() bool { + if o == nil || IsNil(o.IsVote) { + var ret bool + return ret + } + return *o.IsVote +} + +// GetIsVoteOk returns a tuple with the IsVote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetIsVoteOk() (*bool, bool) { + if o == nil || IsNil(o.IsVote) { + return nil, false + } + return o.IsVote, true +} + +// HasIsVote returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasIsVote() bool { + if o != nil && !IsNil(o.IsVote) { + return true + } + + return false +} + +// SetIsVote gets a reference to the given bool and assigns it to the IsVote field. +func (o *SchemaGetCommentResp) SetIsVote(v bool) { + o.IsVote = &v +} + +// GetMemberActions returns the MemberActions field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetMemberActions() []SchemaPermissionMemberAction { + if o == nil || IsNil(o.MemberActions) { + var ret []SchemaPermissionMemberAction + return ret + } + return o.MemberActions +} + +// GetMemberActionsOk returns a tuple with the MemberActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetMemberActionsOk() ([]SchemaPermissionMemberAction, bool) { + if o == nil || IsNil(o.MemberActions) { + return nil, false + } + return o.MemberActions, true +} + +// HasMemberActions returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasMemberActions() bool { + if o != nil && !IsNil(o.MemberActions) { + return true + } + + return false +} + +// SetMemberActions gets a reference to the given []SchemaPermissionMemberAction and assigns it to the MemberActions field. +func (o *SchemaGetCommentResp) SetMemberActions(v []SchemaPermissionMemberAction) { + o.MemberActions = v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) 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 *SchemaGetCommentResp) 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 *SchemaGetCommentResp) 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 *SchemaGetCommentResp) SetObjectId(v string) { + o.ObjectId = &v +} + +// GetOriginalText returns the OriginalText field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetOriginalText() string { + if o == nil || IsNil(o.OriginalText) { + var ret string + return ret + } + return *o.OriginalText +} + +// GetOriginalTextOk returns a tuple with the OriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.OriginalText) { + return nil, false + } + return o.OriginalText, true +} + +// HasOriginalText returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasOriginalText() bool { + if o != nil && !IsNil(o.OriginalText) { + return true + } + + return false +} + +// SetOriginalText gets a reference to the given string and assigns it to the OriginalText field. +func (o *SchemaGetCommentResp) SetOriginalText(v string) { + o.OriginalText = &v +} + +// GetParsedText returns the ParsedText field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetParsedText() string { + if o == nil || IsNil(o.ParsedText) { + var ret string + return ret + } + return *o.ParsedText +} + +// GetParsedTextOk returns a tuple with the ParsedText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetParsedTextOk() (*string, bool) { + if o == nil || IsNil(o.ParsedText) { + return nil, false + } + return o.ParsedText, true +} + +// HasParsedText returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasParsedText() bool { + if o != nil && !IsNil(o.ParsedText) { + return true + } + + return false +} + +// SetParsedText gets a reference to the given string and assigns it to the ParsedText field. +func (o *SchemaGetCommentResp) SetParsedText(v string) { + o.ParsedText = &v +} + +// GetReplyCommentId returns the ReplyCommentId field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetReplyCommentId() string { + if o == nil || IsNil(o.ReplyCommentId) { + var ret string + return ret + } + return *o.ReplyCommentId +} + +// GetReplyCommentIdOk returns a tuple with the ReplyCommentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetReplyCommentIdOk() (*string, bool) { + if o == nil || IsNil(o.ReplyCommentId) { + return nil, false + } + return o.ReplyCommentId, true +} + +// HasReplyCommentId returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasReplyCommentId() bool { + if o != nil && !IsNil(o.ReplyCommentId) { + return true + } + + return false +} + +// SetReplyCommentId gets a reference to the given string and assigns it to the ReplyCommentId field. +func (o *SchemaGetCommentResp) SetReplyCommentId(v string) { + o.ReplyCommentId = &v +} + +// GetReplyUserDisplayName returns the ReplyUserDisplayName field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetReplyUserDisplayName() string { + if o == nil || IsNil(o.ReplyUserDisplayName) { + var ret string + return ret + } + return *o.ReplyUserDisplayName +} + +// GetReplyUserDisplayNameOk returns a tuple with the ReplyUserDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetReplyUserDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.ReplyUserDisplayName) { + return nil, false + } + return o.ReplyUserDisplayName, true +} + +// HasReplyUserDisplayName returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasReplyUserDisplayName() bool { + if o != nil && !IsNil(o.ReplyUserDisplayName) { + return true + } + + return false +} + +// SetReplyUserDisplayName gets a reference to the given string and assigns it to the ReplyUserDisplayName field. +func (o *SchemaGetCommentResp) SetReplyUserDisplayName(v string) { + o.ReplyUserDisplayName = &v +} + +// GetReplyUserId returns the ReplyUserId field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetReplyUserId() string { + if o == nil || IsNil(o.ReplyUserId) { + var ret string + return ret + } + return *o.ReplyUserId +} + +// GetReplyUserIdOk returns a tuple with the ReplyUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetReplyUserIdOk() (*string, bool) { + if o == nil || IsNil(o.ReplyUserId) { + return nil, false + } + return o.ReplyUserId, true +} + +// HasReplyUserId returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasReplyUserId() bool { + if o != nil && !IsNil(o.ReplyUserId) { + return true + } + + return false +} + +// SetReplyUserId gets a reference to the given string and assigns it to the ReplyUserId field. +func (o *SchemaGetCommentResp) SetReplyUserId(v string) { + o.ReplyUserId = &v +} + +// GetReplyUserStatus returns the ReplyUserStatus field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetReplyUserStatus() string { + if o == nil || IsNil(o.ReplyUserStatus) { + var ret string + return ret + } + return *o.ReplyUserStatus +} + +// GetReplyUserStatusOk returns a tuple with the ReplyUserStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetReplyUserStatusOk() (*string, bool) { + if o == nil || IsNil(o.ReplyUserStatus) { + return nil, false + } + return o.ReplyUserStatus, true +} + +// HasReplyUserStatus returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasReplyUserStatus() bool { + if o != nil && !IsNil(o.ReplyUserStatus) { + return true + } + + return false +} + +// SetReplyUserStatus gets a reference to the given string and assigns it to the ReplyUserStatus field. +func (o *SchemaGetCommentResp) SetReplyUserStatus(v string) { + o.ReplyUserStatus = &v +} + +// GetReplyUsername returns the ReplyUsername field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetReplyUsername() string { + if o == nil || IsNil(o.ReplyUsername) { + var ret string + return ret + } + return *o.ReplyUsername +} + +// GetReplyUsernameOk returns a tuple with the ReplyUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetReplyUsernameOk() (*string, bool) { + if o == nil || IsNil(o.ReplyUsername) { + return nil, false + } + return o.ReplyUsername, true +} + +// HasReplyUsername returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasReplyUsername() bool { + if o != nil && !IsNil(o.ReplyUsername) { + return true + } + + return false +} + +// SetReplyUsername gets a reference to the given string and assigns it to the ReplyUsername field. +func (o *SchemaGetCommentResp) SetReplyUsername(v string) { + o.ReplyUsername = &v +} + +// GetUserAvatar returns the UserAvatar field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetUserAvatar() string { + if o == nil || IsNil(o.UserAvatar) { + var ret string + return ret + } + return *o.UserAvatar +} + +// GetUserAvatarOk returns a tuple with the UserAvatar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetUserAvatarOk() (*string, bool) { + if o == nil || IsNil(o.UserAvatar) { + return nil, false + } + return o.UserAvatar, true +} + +// HasUserAvatar returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasUserAvatar() bool { + if o != nil && !IsNil(o.UserAvatar) { + return true + } + + return false +} + +// SetUserAvatar gets a reference to the given string and assigns it to the UserAvatar field. +func (o *SchemaGetCommentResp) SetUserAvatar(v string) { + o.UserAvatar = &v +} + +// GetUserDisplayName returns the UserDisplayName field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetUserDisplayName() string { + if o == nil || IsNil(o.UserDisplayName) { + var ret string + return ret + } + return *o.UserDisplayName +} + +// GetUserDisplayNameOk returns a tuple with the UserDisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetUserDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.UserDisplayName) { + return nil, false + } + return o.UserDisplayName, true +} + +// HasUserDisplayName returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasUserDisplayName() bool { + if o != nil && !IsNil(o.UserDisplayName) { + return true + } + + return false +} + +// SetUserDisplayName gets a reference to the given string and assigns it to the UserDisplayName field. +func (o *SchemaGetCommentResp) SetUserDisplayName(v string) { + o.UserDisplayName = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *SchemaGetCommentResp) SetUserId(v string) { + o.UserId = &v +} + +// GetUserStatus returns the UserStatus field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) GetUserStatus() string { + if o == nil || IsNil(o.UserStatus) { + var ret string + return ret + } + return *o.UserStatus +} + +// GetUserStatusOk returns a tuple with the UserStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetCommentResp) GetUserStatusOk() (*string, bool) { + if o == nil || IsNil(o.UserStatus) { + return nil, false + } + return o.UserStatus, true +} + +// HasUserStatus returns a boolean if a field has been set. +func (o *SchemaGetCommentResp) HasUserStatus() bool { + if o != nil && !IsNil(o.UserStatus) { + return true + } + + return false +} + +// SetUserStatus gets a reference to the given string and assigns it to the UserStatus field. +func (o *SchemaGetCommentResp) SetUserStatus(v string) { + o.UserStatus = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) 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 *SchemaGetCommentResp) 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 *SchemaGetCommentResp) 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 *SchemaGetCommentResp) SetUsername(v string) { + o.Username = &v +} + +// GetVoteCount returns the VoteCount field value if set, zero value otherwise. +func (o *SchemaGetCommentResp) 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 *SchemaGetCommentResp) 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 *SchemaGetCommentResp) 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 *SchemaGetCommentResp) SetVoteCount(v int32) { + o.VoteCount = &v +} + +func (o SchemaGetCommentResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetCommentResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CommentId) { + toSerialize["comment_id"] = o.CommentId + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.IsVote) { + toSerialize["is_vote"] = o.IsVote + } + if !IsNil(o.MemberActions) { + toSerialize["member_actions"] = o.MemberActions + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.OriginalText) { + toSerialize["original_text"] = o.OriginalText + } + if !IsNil(o.ParsedText) { + toSerialize["parsed_text"] = o.ParsedText + } + if !IsNil(o.ReplyCommentId) { + toSerialize["reply_comment_id"] = o.ReplyCommentId + } + if !IsNil(o.ReplyUserDisplayName) { + toSerialize["reply_user_display_name"] = o.ReplyUserDisplayName + } + if !IsNil(o.ReplyUserId) { + toSerialize["reply_user_id"] = o.ReplyUserId + } + if !IsNil(o.ReplyUserStatus) { + toSerialize["reply_user_status"] = o.ReplyUserStatus + } + if !IsNil(o.ReplyUsername) { + toSerialize["reply_username"] = o.ReplyUsername + } + if !IsNil(o.UserAvatar) { + toSerialize["user_avatar"] = o.UserAvatar + } + if !IsNil(o.UserDisplayName) { + toSerialize["user_display_name"] = o.UserDisplayName + } + if !IsNil(o.UserId) { + toSerialize["user_id"] = o.UserId + } + if !IsNil(o.UserStatus) { + toSerialize["user_status"] = o.UserStatus + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.VoteCount) { + toSerialize["vote_count"] = o.VoteCount + } + return toSerialize, nil +} + +type NullableSchemaGetCommentResp struct { + value *SchemaGetCommentResp + isSet bool +} + +func (v NullableSchemaGetCommentResp) Get() *SchemaGetCommentResp { + return v.value +} + +func (v *NullableSchemaGetCommentResp) Set(val *SchemaGetCommentResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetCommentResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetCommentResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetCommentResp(val *SchemaGetCommentResp) *NullableSchemaGetCommentResp { + return &NullableSchemaGetCommentResp{value: val, isSet: true} +} + +func (v NullableSchemaGetCommentResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetCommentResp) 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 new file mode 100644 index 0000000..b475663 --- /dev/null +++ b/model_schema_get_following_tags_resp.go @@ -0,0 +1,310 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetFollowingTagsResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetFollowingTagsResp{} + +// SchemaGetFollowingTagsResp struct for SchemaGetFollowingTagsResp +type SchemaGetFollowingTagsResp struct { + // display name + DisplayName *string `json:"display_name,omitempty"` + // if main tag slug name is not empty, this tag is synonymous with the main tag + MainTagSlugName *string `json:"main_tag_slug_name,omitempty"` + Recommend *bool `json:"recommend,omitempty"` + Reserved *bool `json:"reserved,omitempty"` + // slug name + SlugName *string `json:"slug_name,omitempty"` + // tag id + TagId *string `json:"tag_id,omitempty"` +} + +// NewSchemaGetFollowingTagsResp instantiates a new SchemaGetFollowingTagsResp 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 NewSchemaGetFollowingTagsResp() *SchemaGetFollowingTagsResp { + this := SchemaGetFollowingTagsResp{} + return &this +} + +// NewSchemaGetFollowingTagsRespWithDefaults instantiates a new SchemaGetFollowingTagsResp 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 NewSchemaGetFollowingTagsRespWithDefaults() *SchemaGetFollowingTagsResp { + this := SchemaGetFollowingTagsResp{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaGetFollowingTagsResp) 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 *SchemaGetFollowingTagsResp) 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 *SchemaGetFollowingTagsResp) 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 *SchemaGetFollowingTagsResp) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetMainTagSlugName returns the MainTagSlugName field value if set, zero value otherwise. +func (o *SchemaGetFollowingTagsResp) GetMainTagSlugName() string { + if o == nil || IsNil(o.MainTagSlugName) { + var ret string + return ret + } + return *o.MainTagSlugName +} + +// GetMainTagSlugNameOk returns a tuple with the MainTagSlugName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetFollowingTagsResp) GetMainTagSlugNameOk() (*string, bool) { + if o == nil || IsNil(o.MainTagSlugName) { + return nil, false + } + return o.MainTagSlugName, true +} + +// HasMainTagSlugName returns a boolean if a field has been set. +func (o *SchemaGetFollowingTagsResp) HasMainTagSlugName() bool { + if o != nil && !IsNil(o.MainTagSlugName) { + return true + } + + return false +} + +// SetMainTagSlugName gets a reference to the given string and assigns it to the MainTagSlugName field. +func (o *SchemaGetFollowingTagsResp) SetMainTagSlugName(v string) { + o.MainTagSlugName = &v +} + +// GetRecommend returns the Recommend field value if set, zero value otherwise. +func (o *SchemaGetFollowingTagsResp) GetRecommend() bool { + if o == nil || IsNil(o.Recommend) { + var ret bool + return ret + } + return *o.Recommend +} + +// GetRecommendOk returns a tuple with the Recommend field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetFollowingTagsResp) GetRecommendOk() (*bool, bool) { + if o == nil || IsNil(o.Recommend) { + return nil, false + } + return o.Recommend, true +} + +// HasRecommend returns a boolean if a field has been set. +func (o *SchemaGetFollowingTagsResp) HasRecommend() bool { + if o != nil && !IsNil(o.Recommend) { + return true + } + + return false +} + +// SetRecommend gets a reference to the given bool and assigns it to the Recommend field. +func (o *SchemaGetFollowingTagsResp) SetRecommend(v bool) { + o.Recommend = &v +} + +// GetReserved returns the Reserved field value if set, zero value otherwise. +func (o *SchemaGetFollowingTagsResp) GetReserved() bool { + if o == nil || IsNil(o.Reserved) { + var ret bool + return ret + } + return *o.Reserved +} + +// GetReservedOk returns a tuple with the Reserved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetFollowingTagsResp) GetReservedOk() (*bool, bool) { + if o == nil || IsNil(o.Reserved) { + return nil, false + } + return o.Reserved, true +} + +// HasReserved returns a boolean if a field has been set. +func (o *SchemaGetFollowingTagsResp) HasReserved() bool { + if o != nil && !IsNil(o.Reserved) { + return true + } + + return false +} + +// SetReserved gets a reference to the given bool and assigns it to the Reserved field. +func (o *SchemaGetFollowingTagsResp) SetReserved(v bool) { + o.Reserved = &v +} + +// GetSlugName returns the SlugName field value if set, zero value otherwise. +func (o *SchemaGetFollowingTagsResp) 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 *SchemaGetFollowingTagsResp) 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 *SchemaGetFollowingTagsResp) 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 *SchemaGetFollowingTagsResp) SetSlugName(v string) { + o.SlugName = &v +} + +// GetTagId returns the TagId field value if set, zero value otherwise. +func (o *SchemaGetFollowingTagsResp) GetTagId() string { + if o == nil || IsNil(o.TagId) { + var ret string + return ret + } + return *o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetFollowingTagsResp) GetTagIdOk() (*string, bool) { + if o == nil || IsNil(o.TagId) { + return nil, false + } + return o.TagId, true +} + +// HasTagId returns a boolean if a field has been set. +func (o *SchemaGetFollowingTagsResp) HasTagId() bool { + if o != nil && !IsNil(o.TagId) { + return true + } + + return false +} + +// SetTagId gets a reference to the given string and assigns it to the TagId field. +func (o *SchemaGetFollowingTagsResp) SetTagId(v string) { + o.TagId = &v +} + +func (o SchemaGetFollowingTagsResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetFollowingTagsResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.MainTagSlugName) { + toSerialize["main_tag_slug_name"] = o.MainTagSlugName + } + if !IsNil(o.Recommend) { + toSerialize["recommend"] = o.Recommend + } + if !IsNil(o.Reserved) { + toSerialize["reserved"] = o.Reserved + } + if !IsNil(o.SlugName) { + toSerialize["slug_name"] = o.SlugName + } + if !IsNil(o.TagId) { + toSerialize["tag_id"] = o.TagId + } + return toSerialize, nil +} + +type NullableSchemaGetFollowingTagsResp struct { + value *SchemaGetFollowingTagsResp + isSet bool +} + +func (v NullableSchemaGetFollowingTagsResp) Get() *SchemaGetFollowingTagsResp { + return v.value +} + +func (v *NullableSchemaGetFollowingTagsResp) Set(val *SchemaGetFollowingTagsResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetFollowingTagsResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetFollowingTagsResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetFollowingTagsResp(val *SchemaGetFollowingTagsResp) *NullableSchemaGetFollowingTagsResp { + return &NullableSchemaGetFollowingTagsResp{value: val, isSet: true} +} + +func (v NullableSchemaGetFollowingTagsResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetFollowingTagsResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_object_timeline_resp.go b/model_schema_get_object_timeline_resp.go new file mode 100644 index 0000000..29ac736 --- /dev/null +++ b/model_schema_get_object_timeline_resp.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetObjectTimelineResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetObjectTimelineResp{} + +// SchemaGetObjectTimelineResp struct for SchemaGetObjectTimelineResp +type SchemaGetObjectTimelineResp struct { + ObjectInfo *SchemaActObjectInfo `json:"object_info,omitempty"` + Timeline []SchemaActObjectTimeline `json:"timeline,omitempty"` +} + +// NewSchemaGetObjectTimelineResp instantiates a new SchemaGetObjectTimelineResp 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 NewSchemaGetObjectTimelineResp() *SchemaGetObjectTimelineResp { + this := SchemaGetObjectTimelineResp{} + return &this +} + +// NewSchemaGetObjectTimelineRespWithDefaults instantiates a new SchemaGetObjectTimelineResp 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 NewSchemaGetObjectTimelineRespWithDefaults() *SchemaGetObjectTimelineResp { + this := SchemaGetObjectTimelineResp{} + return &this +} + +// GetObjectInfo returns the ObjectInfo field value if set, zero value otherwise. +func (o *SchemaGetObjectTimelineResp) GetObjectInfo() SchemaActObjectInfo { + if o == nil || IsNil(o.ObjectInfo) { + var ret SchemaActObjectInfo + return ret + } + return *o.ObjectInfo +} + +// GetObjectInfoOk returns a tuple with the ObjectInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetObjectTimelineResp) GetObjectInfoOk() (*SchemaActObjectInfo, bool) { + if o == nil || IsNil(o.ObjectInfo) { + return nil, false + } + return o.ObjectInfo, true +} + +// HasObjectInfo returns a boolean if a field has been set. +func (o *SchemaGetObjectTimelineResp) HasObjectInfo() bool { + if o != nil && !IsNil(o.ObjectInfo) { + return true + } + + return false +} + +// SetObjectInfo gets a reference to the given SchemaActObjectInfo and assigns it to the ObjectInfo field. +func (o *SchemaGetObjectTimelineResp) SetObjectInfo(v SchemaActObjectInfo) { + o.ObjectInfo = &v +} + +// GetTimeline returns the Timeline field value if set, zero value otherwise. +func (o *SchemaGetObjectTimelineResp) GetTimeline() []SchemaActObjectTimeline { + if o == nil || IsNil(o.Timeline) { + var ret []SchemaActObjectTimeline + return ret + } + return o.Timeline +} + +// GetTimelineOk returns a tuple with the Timeline field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetObjectTimelineResp) GetTimelineOk() ([]SchemaActObjectTimeline, bool) { + if o == nil || IsNil(o.Timeline) { + return nil, false + } + return o.Timeline, true +} + +// HasTimeline returns a boolean if a field has been set. +func (o *SchemaGetObjectTimelineResp) HasTimeline() bool { + if o != nil && !IsNil(o.Timeline) { + return true + } + + return false +} + +// SetTimeline gets a reference to the given []SchemaActObjectTimeline and assigns it to the Timeline field. +func (o *SchemaGetObjectTimelineResp) SetTimeline(v []SchemaActObjectTimeline) { + o.Timeline = v +} + +func (o SchemaGetObjectTimelineResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetObjectTimelineResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ObjectInfo) { + toSerialize["object_info"] = o.ObjectInfo + } + if !IsNil(o.Timeline) { + toSerialize["timeline"] = o.Timeline + } + return toSerialize, nil +} + +type NullableSchemaGetObjectTimelineResp struct { + value *SchemaGetObjectTimelineResp + isSet bool +} + +func (v NullableSchemaGetObjectTimelineResp) Get() *SchemaGetObjectTimelineResp { + return v.value +} + +func (v *NullableSchemaGetObjectTimelineResp) Set(val *SchemaGetObjectTimelineResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetObjectTimelineResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetObjectTimelineResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetObjectTimelineResp(val *SchemaGetObjectTimelineResp) *NullableSchemaGetObjectTimelineResp { + return &NullableSchemaGetObjectTimelineResp{value: val, isSet: true} +} + +func (v NullableSchemaGetObjectTimelineResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetObjectTimelineResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_other_user_info_by_username_resp.go b/model_schema_get_other_user_info_by_username_resp.go new file mode 100644 index 0000000..caf2b3b --- /dev/null +++ b/model_schema_get_other_user_info_by_username_resp.go @@ -0,0 +1,717 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetOtherUserInfoByUsernameResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetOtherUserInfoByUsernameResp{} + +// SchemaGetOtherUserInfoByUsernameResp struct for SchemaGetOtherUserInfoByUsernameResp +type SchemaGetOtherUserInfoByUsernameResp struct { + // answer count + AnswerCount *int32 `json:"answer_count,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 follow count + FollowCount *int32 `json:"follow_count,omitempty"` + // user id + Id *string `json:"id,omitempty"` + // last login date + LastLoginDate *int32 `json:"last_login_date,omitempty"` + // location + Location *string `json:"location,omitempty"` + // mobile + Mobile *string `json:"mobile,omitempty"` + // question count + QuestionCount *int32 `json:"question_count,omitempty"` + // rank + Rank *int32 `json:"rank,omitempty"` + Status *string `json:"status,omitempty"` + StatusMsg *string `json:"status_msg,omitempty"` + // username + Username *string `json:"username,omitempty"` + // website + Website *string `json:"website,omitempty"` +} + +// NewSchemaGetOtherUserInfoByUsernameResp instantiates a new SchemaGetOtherUserInfoByUsernameResp 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 NewSchemaGetOtherUserInfoByUsernameResp() *SchemaGetOtherUserInfoByUsernameResp { + this := SchemaGetOtherUserInfoByUsernameResp{} + return &this +} + +// NewSchemaGetOtherUserInfoByUsernameRespWithDefaults instantiates a new SchemaGetOtherUserInfoByUsernameResp 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 NewSchemaGetOtherUserInfoByUsernameRespWithDefaults() *SchemaGetOtherUserInfoByUsernameResp { + this := SchemaGetOtherUserInfoByUsernameResp{} + return &this +} + +// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetAnswerCount(v int32) { + o.AnswerCount = &v +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetAvatar(v string) { + o.Avatar = &v +} + +// GetBio returns the Bio field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetBio(v string) { + o.Bio = &v +} + +// GetBioHtml returns the BioHtml field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetBioHtml(v string) { + o.BioHtml = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetFollowCount returns the FollowCount field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetFollowCount(v int32) { + o.FollowCount = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetId(v string) { + o.Id = &v +} + +// GetLastLoginDate returns the LastLoginDate field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetLastLoginDate(v int32) { + o.LastLoginDate = &v +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetLocation(v string) { + o.Location = &v +} + +// GetMobile returns the Mobile field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetMobile(v string) { + o.Mobile = &v +} + +// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetQuestionCount(v int32) { + o.QuestionCount = &v +} + +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetRank(v int32) { + o.Rank = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetStatus(v string) { + o.Status = &v +} + +// GetStatusMsg returns the StatusMsg field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) GetStatusMsg() string { + if o == nil || IsNil(o.StatusMsg) { + var ret string + return ret + } + return *o.StatusMsg +} + +// GetStatusMsgOk returns a tuple with the StatusMsg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetOtherUserInfoByUsernameResp) GetStatusMsgOk() (*string, bool) { + if o == nil || IsNil(o.StatusMsg) { + return nil, false + } + return o.StatusMsg, true +} + +// HasStatusMsg returns a boolean if a field has been set. +func (o *SchemaGetOtherUserInfoByUsernameResp) HasStatusMsg() bool { + if o != nil && !IsNil(o.StatusMsg) { + return true + } + + return false +} + +// SetStatusMsg gets a reference to the given string and assigns it to the StatusMsg field. +func (o *SchemaGetOtherUserInfoByUsernameResp) SetStatusMsg(v string) { + o.StatusMsg = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetUsername(v string) { + o.Username = &v +} + +// GetWebsite returns the Website field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) 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 *SchemaGetOtherUserInfoByUsernameResp) SetWebsite(v string) { + o.Website = &v +} + +func (o SchemaGetOtherUserInfoByUsernameResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetOtherUserInfoByUsernameResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AnswerCount) { + toSerialize["answer_count"] = o.AnswerCount + } + 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.FollowCount) { + toSerialize["follow_count"] = o.FollowCount + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.LastLoginDate) { + toSerialize["last_login_date"] = o.LastLoginDate + } + if !IsNil(o.Location) { + toSerialize["location"] = o.Location + } + if !IsNil(o.Mobile) { + toSerialize["mobile"] = o.Mobile + } + if !IsNil(o.QuestionCount) { + toSerialize["question_count"] = o.QuestionCount + } + if !IsNil(o.Rank) { + toSerialize["rank"] = o.Rank + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.StatusMsg) { + toSerialize["status_msg"] = o.StatusMsg + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.Website) { + toSerialize["website"] = o.Website + } + return toSerialize, nil +} + +type NullableSchemaGetOtherUserInfoByUsernameResp struct { + value *SchemaGetOtherUserInfoByUsernameResp + isSet bool +} + +func (v NullableSchemaGetOtherUserInfoByUsernameResp) Get() *SchemaGetOtherUserInfoByUsernameResp { + return v.value +} + +func (v *NullableSchemaGetOtherUserInfoByUsernameResp) Set(val *SchemaGetOtherUserInfoByUsernameResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetOtherUserInfoByUsernameResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetOtherUserInfoByUsernameResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetOtherUserInfoByUsernameResp(val *SchemaGetOtherUserInfoByUsernameResp) *NullableSchemaGetOtherUserInfoByUsernameResp { + return &NullableSchemaGetOtherUserInfoByUsernameResp{value: val, isSet: true} +} + +func (v NullableSchemaGetOtherUserInfoByUsernameResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetOtherUserInfoByUsernameResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_other_user_info_resp.go b/model_schema_get_other_user_info_resp.go new file mode 100644 index 0000000..ded4c59 --- /dev/null +++ b/model_schema_get_other_user_info_resp.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetOtherUserInfoResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetOtherUserInfoResp{} + +// SchemaGetOtherUserInfoResp struct for SchemaGetOtherUserInfoResp +type SchemaGetOtherUserInfoResp struct { + Info *SchemaGetOtherUserInfoByUsernameResp `json:"info,omitempty"` +} + +// NewSchemaGetOtherUserInfoResp instantiates a new SchemaGetOtherUserInfoResp 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 NewSchemaGetOtherUserInfoResp() *SchemaGetOtherUserInfoResp { + this := SchemaGetOtherUserInfoResp{} + return &this +} + +// NewSchemaGetOtherUserInfoRespWithDefaults instantiates a new SchemaGetOtherUserInfoResp 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 NewSchemaGetOtherUserInfoRespWithDefaults() *SchemaGetOtherUserInfoResp { + this := SchemaGetOtherUserInfoResp{} + return &this +} + +// GetInfo returns the Info field value if set, zero value otherwise. +func (o *SchemaGetOtherUserInfoResp) GetInfo() SchemaGetOtherUserInfoByUsernameResp { + if o == nil || IsNil(o.Info) { + var ret SchemaGetOtherUserInfoByUsernameResp + return ret + } + return *o.Info +} + +// GetInfoOk returns a tuple with the Info field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetOtherUserInfoResp) GetInfoOk() (*SchemaGetOtherUserInfoByUsernameResp, bool) { + if o == nil || IsNil(o.Info) { + return nil, false + } + return o.Info, true +} + +// HasInfo returns a boolean if a field has been set. +func (o *SchemaGetOtherUserInfoResp) HasInfo() bool { + if o != nil && !IsNil(o.Info) { + return true + } + + return false +} + +// SetInfo gets a reference to the given SchemaGetOtherUserInfoByUsernameResp and assigns it to the Info field. +func (o *SchemaGetOtherUserInfoResp) SetInfo(v SchemaGetOtherUserInfoByUsernameResp) { + o.Info = &v +} + +func (o SchemaGetOtherUserInfoResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetOtherUserInfoResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Info) { + toSerialize["info"] = o.Info + } + return toSerialize, nil +} + +type NullableSchemaGetOtherUserInfoResp struct { + value *SchemaGetOtherUserInfoResp + isSet bool +} + +func (v NullableSchemaGetOtherUserInfoResp) Get() *SchemaGetOtherUserInfoResp { + return v.value +} + +func (v *NullableSchemaGetOtherUserInfoResp) Set(val *SchemaGetOtherUserInfoResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetOtherUserInfoResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetOtherUserInfoResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetOtherUserInfoResp(val *SchemaGetOtherUserInfoResp) *NullableSchemaGetOtherUserInfoResp { + return &NullableSchemaGetOtherUserInfoResp{value: val, isSet: true} +} + +func (v NullableSchemaGetOtherUserInfoResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetOtherUserInfoResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_rank_personal_with_page_resp.go b/model_schema_get_rank_personal_with_page_resp.go new file mode 100644 index 0000000..be65883 --- /dev/null +++ b/model_schema_get_rank_personal_with_page_resp.go @@ -0,0 +1,460 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetRankPersonalWithPageResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetRankPersonalWithPageResp{} + +// SchemaGetRankPersonalWithPageResp struct for SchemaGetRankPersonalWithPageResp +type SchemaGetRankPersonalWithPageResp struct { + // answer id + AnswerId *string `json:"answer_id,omitempty"` + // content + Content *string `json:"content,omitempty"` + // create time + CreatedAt *int32 `json:"created_at,omitempty"` + // object id + ObjectId *string `json:"object_id,omitempty"` + // object type + ObjectType *string `json:"object_type,omitempty"` + // question id + QuestionId *string `json:"question_id,omitempty"` + // rank type + RankType *string `json:"rank_type,omitempty"` + // reputation + Reputation *int32 `json:"reputation,omitempty"` + // title + Title *string `json:"title,omitempty"` + // url title + UrlTitle *string `json:"url_title,omitempty"` +} + +// NewSchemaGetRankPersonalWithPageResp instantiates a new SchemaGetRankPersonalWithPageResp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaGetRankPersonalWithPageResp() *SchemaGetRankPersonalWithPageResp { + this := SchemaGetRankPersonalWithPageResp{} + return &this +} + +// NewSchemaGetRankPersonalWithPageRespWithDefaults instantiates a new SchemaGetRankPersonalWithPageResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaGetRankPersonalWithPageRespWithDefaults() *SchemaGetRankPersonalWithPageResp { + this := SchemaGetRankPersonalWithPageResp{} + return &this +} + +// GetAnswerId returns the AnswerId field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalWithPageResp) GetAnswerId() string { + if o == nil || IsNil(o.AnswerId) { + var ret string + return ret + } + return *o.AnswerId +} + +// GetAnswerIdOk returns a tuple with the AnswerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRankPersonalWithPageResp) GetAnswerIdOk() (*string, bool) { + if o == nil || IsNil(o.AnswerId) { + return nil, false + } + return o.AnswerId, true +} + +// HasAnswerId returns a boolean if a field has been set. +func (o *SchemaGetRankPersonalWithPageResp) HasAnswerId() bool { + if o != nil && !IsNil(o.AnswerId) { + return true + } + + return false +} + +// SetAnswerId gets a reference to the given string and assigns it to the AnswerId field. +func (o *SchemaGetRankPersonalWithPageResp) SetAnswerId(v string) { + o.AnswerId = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalWithPageResp) GetContent() string { + if o == nil || IsNil(o.Content) { + var ret string + return ret + } + return *o.Content +} + +// GetContentOk returns a tuple with the Content field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRankPersonalWithPageResp) GetContentOk() (*string, bool) { + if o == nil || IsNil(o.Content) { + return nil, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *SchemaGetRankPersonalWithPageResp) HasContent() bool { + if o != nil && !IsNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given string and assigns it to the Content field. +func (o *SchemaGetRankPersonalWithPageResp) SetContent(v string) { + o.Content = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalWithPageResp) GetCreatedAt() int32 { + if o == nil || IsNil(o.CreatedAt) { + var ret int32 + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRankPersonalWithPageResp) GetCreatedAtOk() (*int32, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SchemaGetRankPersonalWithPageResp) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. +func (o *SchemaGetRankPersonalWithPageResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalWithPageResp) GetObjectId() string { + if o == nil || IsNil(o.ObjectId) { + var ret string + return ret + } + return *o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRankPersonalWithPageResp) GetObjectIdOk() (*string, bool) { + if o == nil || IsNil(o.ObjectId) { + return nil, false + } + return o.ObjectId, true +} + +// HasObjectId returns a boolean if a field has been set. +func (o *SchemaGetRankPersonalWithPageResp) HasObjectId() bool { + if o != nil && !IsNil(o.ObjectId) { + return true + } + + return false +} + +// SetObjectId gets a reference to the given string and assigns it to the ObjectId field. +func (o *SchemaGetRankPersonalWithPageResp) SetObjectId(v string) { + o.ObjectId = &v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalWithPageResp) GetObjectType() string { + if o == nil || IsNil(o.ObjectType) { + var ret string + return ret + } + return *o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRankPersonalWithPageResp) GetObjectTypeOk() (*string, bool) { + if o == nil || IsNil(o.ObjectType) { + return nil, false + } + return o.ObjectType, true +} + +// HasObjectType returns a boolean if a field has been set. +func (o *SchemaGetRankPersonalWithPageResp) HasObjectType() bool { + if o != nil && !IsNil(o.ObjectType) { + return true + } + + return false +} + +// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. +func (o *SchemaGetRankPersonalWithPageResp) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalWithPageResp) GetQuestionId() string { + if o == nil || IsNil(o.QuestionId) { + var ret string + return ret + } + return *o.QuestionId +} + +// GetQuestionIdOk returns a tuple with the QuestionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRankPersonalWithPageResp) GetQuestionIdOk() (*string, bool) { + if o == nil || IsNil(o.QuestionId) { + return nil, false + } + return o.QuestionId, true +} + +// HasQuestionId returns a boolean if a field has been set. +func (o *SchemaGetRankPersonalWithPageResp) HasQuestionId() bool { + if o != nil && !IsNil(o.QuestionId) { + return true + } + + return false +} + +// SetQuestionId gets a reference to the given string and assigns it to the QuestionId field. +func (o *SchemaGetRankPersonalWithPageResp) SetQuestionId(v string) { + o.QuestionId = &v +} + +// GetRankType returns the RankType field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalWithPageResp) GetRankType() string { + if o == nil || IsNil(o.RankType) { + var ret string + return ret + } + return *o.RankType +} + +// GetRankTypeOk returns a tuple with the RankType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRankPersonalWithPageResp) GetRankTypeOk() (*string, bool) { + if o == nil || IsNil(o.RankType) { + return nil, false + } + return o.RankType, true +} + +// HasRankType returns a boolean if a field has been set. +func (o *SchemaGetRankPersonalWithPageResp) HasRankType() bool { + if o != nil && !IsNil(o.RankType) { + return true + } + + return false +} + +// SetRankType gets a reference to the given string and assigns it to the RankType field. +func (o *SchemaGetRankPersonalWithPageResp) SetRankType(v string) { + o.RankType = &v +} + +// GetReputation returns the Reputation field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalWithPageResp) GetReputation() int32 { + if o == nil || IsNil(o.Reputation) { + var ret int32 + return ret + } + return *o.Reputation +} + +// GetReputationOk returns a tuple with the Reputation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRankPersonalWithPageResp) GetReputationOk() (*int32, bool) { + if o == nil || IsNil(o.Reputation) { + return nil, false + } + return o.Reputation, true +} + +// HasReputation returns a boolean if a field has been set. +func (o *SchemaGetRankPersonalWithPageResp) HasReputation() bool { + if o != nil && !IsNil(o.Reputation) { + return true + } + + return false +} + +// SetReputation gets a reference to the given int32 and assigns it to the Reputation field. +func (o *SchemaGetRankPersonalWithPageResp) SetReputation(v int32) { + o.Reputation = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalWithPageResp) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRankPersonalWithPageResp) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *SchemaGetRankPersonalWithPageResp) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *SchemaGetRankPersonalWithPageResp) SetTitle(v string) { + o.Title = &v +} + +// GetUrlTitle returns the UrlTitle field value if set, zero value otherwise. +func (o *SchemaGetRankPersonalWithPageResp) GetUrlTitle() string { + if o == nil || IsNil(o.UrlTitle) { + var ret string + return ret + } + return *o.UrlTitle +} + +// GetUrlTitleOk returns a tuple with the UrlTitle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRankPersonalWithPageResp) GetUrlTitleOk() (*string, bool) { + if o == nil || IsNil(o.UrlTitle) { + return nil, false + } + return o.UrlTitle, true +} + +// HasUrlTitle returns a boolean if a field has been set. +func (o *SchemaGetRankPersonalWithPageResp) HasUrlTitle() bool { + if o != nil && !IsNil(o.UrlTitle) { + return true + } + + return false +} + +// SetUrlTitle gets a reference to the given string and assigns it to the UrlTitle field. +func (o *SchemaGetRankPersonalWithPageResp) SetUrlTitle(v string) { + o.UrlTitle = &v +} + +func (o SchemaGetRankPersonalWithPageResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetRankPersonalWithPageResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AnswerId) { + toSerialize["answer_id"] = o.AnswerId + } + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + if !IsNil(o.QuestionId) { + toSerialize["question_id"] = o.QuestionId + } + if !IsNil(o.RankType) { + toSerialize["rank_type"] = o.RankType + } + if !IsNil(o.Reputation) { + toSerialize["reputation"] = o.Reputation + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.UrlTitle) { + toSerialize["url_title"] = o.UrlTitle + } + return toSerialize, nil +} + +type NullableSchemaGetRankPersonalWithPageResp struct { + value *SchemaGetRankPersonalWithPageResp + isSet bool +} + +func (v NullableSchemaGetRankPersonalWithPageResp) Get() *SchemaGetRankPersonalWithPageResp { + return v.value +} + +func (v *NullableSchemaGetRankPersonalWithPageResp) Set(val *SchemaGetRankPersonalWithPageResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetRankPersonalWithPageResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetRankPersonalWithPageResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetRankPersonalWithPageResp(val *SchemaGetRankPersonalWithPageResp) *NullableSchemaGetRankPersonalWithPageResp { + return &NullableSchemaGetRankPersonalWithPageResp{value: val, isSet: true} +} + +func (v NullableSchemaGetRankPersonalWithPageResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetRankPersonalWithPageResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_report_type_resp.go b/model_schema_get_report_type_resp.go new file mode 100644 index 0000000..ef47240 --- /dev/null +++ b/model_schema_get_report_type_resp.go @@ -0,0 +1,312 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetReportTypeResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetReportTypeResp{} + +// SchemaGetReportTypeResp struct for SchemaGetReportTypeResp +type SchemaGetReportTypeResp struct { + // content type + ContentType *string `json:"content_type,omitempty"` + // report description + Description *string `json:"description,omitempty"` + // is have content + HaveContent *bool `json:"have_content,omitempty"` + // report name + Name *string `json:"name,omitempty"` + // report source + Source *string `json:"source,omitempty"` + // report type + Type *int32 `json:"type,omitempty"` +} + +// NewSchemaGetReportTypeResp instantiates a new SchemaGetReportTypeResp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaGetReportTypeResp() *SchemaGetReportTypeResp { + this := SchemaGetReportTypeResp{} + return &this +} + +// NewSchemaGetReportTypeRespWithDefaults instantiates a new SchemaGetReportTypeResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaGetReportTypeRespWithDefaults() *SchemaGetReportTypeResp { + this := SchemaGetReportTypeResp{} + return &this +} + +// GetContentType returns the ContentType field value if set, zero value otherwise. +func (o *SchemaGetReportTypeResp) GetContentType() string { + if o == nil || IsNil(o.ContentType) { + var ret string + return ret + } + return *o.ContentType +} + +// GetContentTypeOk returns a tuple with the ContentType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetReportTypeResp) GetContentTypeOk() (*string, bool) { + if o == nil || IsNil(o.ContentType) { + return nil, false + } + return o.ContentType, true +} + +// HasContentType returns a boolean if a field has been set. +func (o *SchemaGetReportTypeResp) HasContentType() bool { + if o != nil && !IsNil(o.ContentType) { + return true + } + + return false +} + +// SetContentType gets a reference to the given string and assigns it to the ContentType field. +func (o *SchemaGetReportTypeResp) SetContentType(v string) { + o.ContentType = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SchemaGetReportTypeResp) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetReportTypeResp) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SchemaGetReportTypeResp) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SchemaGetReportTypeResp) SetDescription(v string) { + o.Description = &v +} + +// GetHaveContent returns the HaveContent field value if set, zero value otherwise. +func (o *SchemaGetReportTypeResp) GetHaveContent() bool { + if o == nil || IsNil(o.HaveContent) { + var ret bool + return ret + } + return *o.HaveContent +} + +// GetHaveContentOk returns a tuple with the HaveContent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetReportTypeResp) GetHaveContentOk() (*bool, bool) { + if o == nil || IsNil(o.HaveContent) { + return nil, false + } + return o.HaveContent, true +} + +// HasHaveContent returns a boolean if a field has been set. +func (o *SchemaGetReportTypeResp) HasHaveContent() bool { + if o != nil && !IsNil(o.HaveContent) { + return true + } + + return false +} + +// SetHaveContent gets a reference to the given bool and assigns it to the HaveContent field. +func (o *SchemaGetReportTypeResp) SetHaveContent(v bool) { + o.HaveContent = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SchemaGetReportTypeResp) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetReportTypeResp) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SchemaGetReportTypeResp) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SchemaGetReportTypeResp) SetName(v string) { + o.Name = &v +} + +// GetSource returns the Source field value if set, zero value otherwise. +func (o *SchemaGetReportTypeResp) GetSource() string { + if o == nil || IsNil(o.Source) { + var ret string + return ret + } + return *o.Source +} + +// GetSourceOk returns a tuple with the Source field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetReportTypeResp) GetSourceOk() (*string, bool) { + if o == nil || IsNil(o.Source) { + return nil, false + } + return o.Source, true +} + +// HasSource returns a boolean if a field has been set. +func (o *SchemaGetReportTypeResp) HasSource() bool { + if o != nil && !IsNil(o.Source) { + return true + } + + return false +} + +// SetSource gets a reference to the given string and assigns it to the Source field. +func (o *SchemaGetReportTypeResp) SetSource(v string) { + o.Source = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SchemaGetReportTypeResp) GetType() int32 { + if o == nil || IsNil(o.Type) { + var ret int32 + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetReportTypeResp) GetTypeOk() (*int32, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *SchemaGetReportTypeResp) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given int32 and assigns it to the Type field. +func (o *SchemaGetReportTypeResp) SetType(v int32) { + o.Type = &v +} + +func (o SchemaGetReportTypeResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetReportTypeResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ContentType) { + toSerialize["content_type"] = o.ContentType + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.HaveContent) { + toSerialize["have_content"] = o.HaveContent + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Source) { + toSerialize["source"] = o.Source + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableSchemaGetReportTypeResp struct { + value *SchemaGetReportTypeResp + isSet bool +} + +func (v NullableSchemaGetReportTypeResp) Get() *SchemaGetReportTypeResp { + return v.value +} + +func (v *NullableSchemaGetReportTypeResp) Set(val *SchemaGetReportTypeResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetReportTypeResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetReportTypeResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetReportTypeResp(val *SchemaGetReportTypeResp) *NullableSchemaGetReportTypeResp { + return &NullableSchemaGetReportTypeResp{value: val, isSet: true} +} + +func (v NullableSchemaGetReportTypeResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetReportTypeResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_revision_resp.go b/model_schema_get_revision_resp.go new file mode 100644 index 0000000..301e890 --- /dev/null +++ b/model_schema_get_revision_resp.go @@ -0,0 +1,420 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetRevisionResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetRevisionResp{} + +// SchemaGetRevisionResp struct for SchemaGetRevisionResp +type SchemaGetRevisionResp struct { + // content parsed + Content map[string]interface{} `json:"content,omitempty"` + CreateAt *int32 `json:"create_at,omitempty"` + // id + Id *string `json:"id,omitempty"` + // object id + ObjectId *string `json:"object_id,omitempty"` + Reason *string `json:"reason,omitempty"` + // revision status(normal: 1; delete 2) + Status *int32 `json:"status,omitempty"` + // title + Title *string `json:"title,omitempty"` + // user id + UseId *string `json:"use_id,omitempty"` + UserInfo *SchemaUserBasicInfo `json:"user_info,omitempty"` +} + +// NewSchemaGetRevisionResp instantiates a new SchemaGetRevisionResp 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 NewSchemaGetRevisionResp() *SchemaGetRevisionResp { + this := SchemaGetRevisionResp{} + return &this +} + +// NewSchemaGetRevisionRespWithDefaults instantiates a new SchemaGetRevisionResp 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 NewSchemaGetRevisionRespWithDefaults() *SchemaGetRevisionResp { + this := SchemaGetRevisionResp{} + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *SchemaGetRevisionResp) GetContent() map[string]interface{} { + if o == nil || IsNil(o.Content) { + var ret map[string]interface{} + 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 *SchemaGetRevisionResp) GetContentOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Content) { + return map[string]interface{}{}, false + } + return o.Content, true +} + +// HasContent returns a boolean if a field has been set. +func (o *SchemaGetRevisionResp) HasContent() bool { + if o != nil && !IsNil(o.Content) { + return true + } + + return false +} + +// SetContent gets a reference to the given map[string]interface{} and assigns it to the Content field. +func (o *SchemaGetRevisionResp) SetContent(v map[string]interface{}) { + o.Content = v +} + +// GetCreateAt returns the CreateAt field value if set, zero value otherwise. +func (o *SchemaGetRevisionResp) GetCreateAt() int32 { + if o == nil || IsNil(o.CreateAt) { + var ret int32 + return ret + } + return *o.CreateAt +} + +// GetCreateAtOk returns a tuple with the CreateAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRevisionResp) GetCreateAtOk() (*int32, bool) { + if o == nil || IsNil(o.CreateAt) { + return nil, false + } + return o.CreateAt, true +} + +// HasCreateAt returns a boolean if a field has been set. +func (o *SchemaGetRevisionResp) HasCreateAt() bool { + if o != nil && !IsNil(o.CreateAt) { + return true + } + + return false +} + +// SetCreateAt gets a reference to the given int32 and assigns it to the CreateAt field. +func (o *SchemaGetRevisionResp) SetCreateAt(v int32) { + o.CreateAt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) SetId(v string) { + o.Id = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) SetObjectId(v string) { + o.ObjectId = &v +} + +// GetReason returns the Reason field value if set, zero value otherwise. +func (o *SchemaGetRevisionResp) GetReason() string { + if o == nil || IsNil(o.Reason) { + var ret string + return ret + } + return *o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRevisionResp) GetReasonOk() (*string, bool) { + if o == nil || IsNil(o.Reason) { + return nil, false + } + return o.Reason, true +} + +// HasReason returns a boolean if a field has been set. +func (o *SchemaGetRevisionResp) HasReason() bool { + if o != nil && !IsNil(o.Reason) { + return true + } + + return false +} + +// SetReason gets a reference to the given string and assigns it to the Reason field. +func (o *SchemaGetRevisionResp) SetReason(v string) { + o.Reason = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaGetRevisionResp) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + 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 *SchemaGetRevisionResp) GetStatusOk() (*int32, 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 *SchemaGetRevisionResp) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *SchemaGetRevisionResp) SetStatus(v int32) { + o.Status = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) 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 *SchemaGetRevisionResp) SetTitle(v string) { + o.Title = &v +} + +// GetUseId returns the UseId field value if set, zero value otherwise. +func (o *SchemaGetRevisionResp) GetUseId() string { + if o == nil || IsNil(o.UseId) { + var ret string + return ret + } + return *o.UseId +} + +// GetUseIdOk returns a tuple with the UseId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetRevisionResp) GetUseIdOk() (*string, bool) { + if o == nil || IsNil(o.UseId) { + return nil, false + } + return o.UseId, true +} + +// HasUseId returns a boolean if a field has been set. +func (o *SchemaGetRevisionResp) HasUseId() bool { + if o != nil && !IsNil(o.UseId) { + return true + } + + return false +} + +// SetUseId gets a reference to the given string and assigns it to the UseId field. +func (o *SchemaGetRevisionResp) SetUseId(v string) { + o.UseId = &v +} + +// GetUserInfo returns the UserInfo field value if set, zero value otherwise. +func (o *SchemaGetRevisionResp) GetUserInfo() SchemaUserBasicInfo { + if o == nil || IsNil(o.UserInfo) { + var ret SchemaUserBasicInfo + 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 *SchemaGetRevisionResp) GetUserInfoOk() (*SchemaUserBasicInfo, 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 *SchemaGetRevisionResp) HasUserInfo() bool { + if o != nil && !IsNil(o.UserInfo) { + return true + } + + return false +} + +// SetUserInfo gets a reference to the given SchemaUserBasicInfo and assigns it to the UserInfo field. +func (o *SchemaGetRevisionResp) SetUserInfo(v SchemaUserBasicInfo) { + o.UserInfo = &v +} + +func (o SchemaGetRevisionResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetRevisionResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + if !IsNil(o.CreateAt) { + toSerialize["create_at"] = o.CreateAt + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.Reason) { + toSerialize["reason"] = o.Reason + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.UseId) { + toSerialize["use_id"] = o.UseId + } + if !IsNil(o.UserInfo) { + toSerialize["user_info"] = o.UserInfo + } + return toSerialize, nil +} + +type NullableSchemaGetRevisionResp struct { + value *SchemaGetRevisionResp + isSet bool +} + +func (v NullableSchemaGetRevisionResp) Get() *SchemaGetRevisionResp { + return v.value +} + +func (v *NullableSchemaGetRevisionResp) Set(val *SchemaGetRevisionResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetRevisionResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetRevisionResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetRevisionResp(val *SchemaGetRevisionResp) *NullableSchemaGetRevisionResp { + return &NullableSchemaGetRevisionResp{value: val, isSet: true} +} + +func (v NullableSchemaGetRevisionResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetRevisionResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_role_resp.go b/model_schema_get_role_resp.go new file mode 100644 index 0000000..12ea4fd --- /dev/null +++ b/model_schema_get_role_resp.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetRoleResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetRoleResp{} + +// SchemaGetRoleResp struct for SchemaGetRoleResp +type SchemaGetRoleResp struct { + Description *string `json:"description,omitempty"` + Id *int32 `json:"id,omitempty"` + Name *string `json:"name,omitempty"` +} + +// NewSchemaGetRoleResp instantiates a new SchemaGetRoleResp 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 NewSchemaGetRoleResp() *SchemaGetRoleResp { + this := SchemaGetRoleResp{} + return &this +} + +// NewSchemaGetRoleRespWithDefaults instantiates a new SchemaGetRoleResp 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 NewSchemaGetRoleRespWithDefaults() *SchemaGetRoleResp { + this := SchemaGetRoleResp{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SchemaGetRoleResp) 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 *SchemaGetRoleResp) 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 *SchemaGetRoleResp) 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 *SchemaGetRoleResp) SetDescription(v string) { + o.Description = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaGetRoleResp) GetId() int32 { + if o == nil || IsNil(o.Id) { + var ret int32 + 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 *SchemaGetRoleResp) GetIdOk() (*int32, 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 *SchemaGetRoleResp) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given int32 and assigns it to the Id field. +func (o *SchemaGetRoleResp) SetId(v int32) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SchemaGetRoleResp) 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 *SchemaGetRoleResp) 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 *SchemaGetRoleResp) 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 *SchemaGetRoleResp) SetName(v string) { + o.Name = &v +} + +func (o SchemaGetRoleResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetRoleResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableSchemaGetRoleResp struct { + value *SchemaGetRoleResp + isSet bool +} + +func (v NullableSchemaGetRoleResp) Get() *SchemaGetRoleResp { + return v.value +} + +func (v *NullableSchemaGetRoleResp) Set(val *SchemaGetRoleResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetRoleResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetRoleResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetRoleResp(val *SchemaGetRoleResp) *NullableSchemaGetRoleResp { + return &NullableSchemaGetRoleResp{value: val, isSet: true} +} + +func (v NullableSchemaGetRoleResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetRoleResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_site_legal_info_resp.go b/model_schema_get_site_legal_info_resp.go new file mode 100644 index 0000000..27fd741 --- /dev/null +++ b/model_schema_get_site_legal_info_resp.go @@ -0,0 +1,234 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetSiteLegalInfoResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetSiteLegalInfoResp{} + +// SchemaGetSiteLegalInfoResp struct for SchemaGetSiteLegalInfoResp +type SchemaGetSiteLegalInfoResp struct { + PrivacyPolicyOriginalText *string `json:"privacy_policy_original_text,omitempty"` + PrivacyPolicyParsedText *string `json:"privacy_policy_parsed_text,omitempty"` + TermsOfServiceOriginalText *string `json:"terms_of_service_original_text,omitempty"` + TermsOfServiceParsedText *string `json:"terms_of_service_parsed_text,omitempty"` +} + +// NewSchemaGetSiteLegalInfoResp instantiates a new SchemaGetSiteLegalInfoResp 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 NewSchemaGetSiteLegalInfoResp() *SchemaGetSiteLegalInfoResp { + this := SchemaGetSiteLegalInfoResp{} + return &this +} + +// NewSchemaGetSiteLegalInfoRespWithDefaults instantiates a new SchemaGetSiteLegalInfoResp 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 NewSchemaGetSiteLegalInfoRespWithDefaults() *SchemaGetSiteLegalInfoResp { + this := SchemaGetSiteLegalInfoResp{} + return &this +} + +// GetPrivacyPolicyOriginalText returns the PrivacyPolicyOriginalText field value if set, zero value otherwise. +func (o *SchemaGetSiteLegalInfoResp) GetPrivacyPolicyOriginalText() string { + if o == nil || IsNil(o.PrivacyPolicyOriginalText) { + var ret string + return ret + } + return *o.PrivacyPolicyOriginalText +} + +// GetPrivacyPolicyOriginalTextOk returns a tuple with the PrivacyPolicyOriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSiteLegalInfoResp) GetPrivacyPolicyOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.PrivacyPolicyOriginalText) { + return nil, false + } + return o.PrivacyPolicyOriginalText, true +} + +// HasPrivacyPolicyOriginalText returns a boolean if a field has been set. +func (o *SchemaGetSiteLegalInfoResp) HasPrivacyPolicyOriginalText() bool { + if o != nil && !IsNil(o.PrivacyPolicyOriginalText) { + return true + } + + return false +} + +// SetPrivacyPolicyOriginalText gets a reference to the given string and assigns it to the PrivacyPolicyOriginalText field. +func (o *SchemaGetSiteLegalInfoResp) SetPrivacyPolicyOriginalText(v string) { + o.PrivacyPolicyOriginalText = &v +} + +// GetPrivacyPolicyParsedText returns the PrivacyPolicyParsedText field value if set, zero value otherwise. +func (o *SchemaGetSiteLegalInfoResp) GetPrivacyPolicyParsedText() string { + if o == nil || IsNil(o.PrivacyPolicyParsedText) { + var ret string + return ret + } + return *o.PrivacyPolicyParsedText +} + +// GetPrivacyPolicyParsedTextOk returns a tuple with the PrivacyPolicyParsedText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSiteLegalInfoResp) GetPrivacyPolicyParsedTextOk() (*string, bool) { + if o == nil || IsNil(o.PrivacyPolicyParsedText) { + return nil, false + } + return o.PrivacyPolicyParsedText, true +} + +// HasPrivacyPolicyParsedText returns a boolean if a field has been set. +func (o *SchemaGetSiteLegalInfoResp) HasPrivacyPolicyParsedText() bool { + if o != nil && !IsNil(o.PrivacyPolicyParsedText) { + return true + } + + return false +} + +// SetPrivacyPolicyParsedText gets a reference to the given string and assigns it to the PrivacyPolicyParsedText field. +func (o *SchemaGetSiteLegalInfoResp) SetPrivacyPolicyParsedText(v string) { + o.PrivacyPolicyParsedText = &v +} + +// GetTermsOfServiceOriginalText returns the TermsOfServiceOriginalText field value if set, zero value otherwise. +func (o *SchemaGetSiteLegalInfoResp) GetTermsOfServiceOriginalText() string { + if o == nil || IsNil(o.TermsOfServiceOriginalText) { + var ret string + return ret + } + return *o.TermsOfServiceOriginalText +} + +// GetTermsOfServiceOriginalTextOk returns a tuple with the TermsOfServiceOriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSiteLegalInfoResp) GetTermsOfServiceOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.TermsOfServiceOriginalText) { + return nil, false + } + return o.TermsOfServiceOriginalText, true +} + +// HasTermsOfServiceOriginalText returns a boolean if a field has been set. +func (o *SchemaGetSiteLegalInfoResp) HasTermsOfServiceOriginalText() bool { + if o != nil && !IsNil(o.TermsOfServiceOriginalText) { + return true + } + + return false +} + +// SetTermsOfServiceOriginalText gets a reference to the given string and assigns it to the TermsOfServiceOriginalText field. +func (o *SchemaGetSiteLegalInfoResp) SetTermsOfServiceOriginalText(v string) { + o.TermsOfServiceOriginalText = &v +} + +// GetTermsOfServiceParsedText returns the TermsOfServiceParsedText field value if set, zero value otherwise. +func (o *SchemaGetSiteLegalInfoResp) GetTermsOfServiceParsedText() string { + if o == nil || IsNil(o.TermsOfServiceParsedText) { + var ret string + return ret + } + return *o.TermsOfServiceParsedText +} + +// GetTermsOfServiceParsedTextOk returns a tuple with the TermsOfServiceParsedText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSiteLegalInfoResp) GetTermsOfServiceParsedTextOk() (*string, bool) { + if o == nil || IsNil(o.TermsOfServiceParsedText) { + return nil, false + } + return o.TermsOfServiceParsedText, true +} + +// HasTermsOfServiceParsedText returns a boolean if a field has been set. +func (o *SchemaGetSiteLegalInfoResp) HasTermsOfServiceParsedText() bool { + if o != nil && !IsNil(o.TermsOfServiceParsedText) { + return true + } + + return false +} + +// SetTermsOfServiceParsedText gets a reference to the given string and assigns it to the TermsOfServiceParsedText field. +func (o *SchemaGetSiteLegalInfoResp) SetTermsOfServiceParsedText(v string) { + o.TermsOfServiceParsedText = &v +} + +func (o SchemaGetSiteLegalInfoResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetSiteLegalInfoResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PrivacyPolicyOriginalText) { + toSerialize["privacy_policy_original_text"] = o.PrivacyPolicyOriginalText + } + if !IsNil(o.PrivacyPolicyParsedText) { + toSerialize["privacy_policy_parsed_text"] = o.PrivacyPolicyParsedText + } + if !IsNil(o.TermsOfServiceOriginalText) { + toSerialize["terms_of_service_original_text"] = o.TermsOfServiceOriginalText + } + if !IsNil(o.TermsOfServiceParsedText) { + toSerialize["terms_of_service_parsed_text"] = o.TermsOfServiceParsedText + } + return toSerialize, nil +} + +type NullableSchemaGetSiteLegalInfoResp struct { + value *SchemaGetSiteLegalInfoResp + isSet bool +} + +func (v NullableSchemaGetSiteLegalInfoResp) Get() *SchemaGetSiteLegalInfoResp { + return v.value +} + +func (v *NullableSchemaGetSiteLegalInfoResp) Set(val *SchemaGetSiteLegalInfoResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetSiteLegalInfoResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetSiteLegalInfoResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetSiteLegalInfoResp(val *SchemaGetSiteLegalInfoResp) *NullableSchemaGetSiteLegalInfoResp { + return &NullableSchemaGetSiteLegalInfoResp{value: val, isSet: true} +} + +func (v NullableSchemaGetSiteLegalInfoResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetSiteLegalInfoResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_smtp_config_resp.go b/model_schema_get_smtp_config_resp.go new file mode 100644 index 0000000..b3e1e1b --- /dev/null +++ b/model_schema_get_smtp_config_resp.go @@ -0,0 +1,379 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetSMTPConfigResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetSMTPConfigResp{} + +// SchemaGetSMTPConfigResp struct for SchemaGetSMTPConfigResp +type SchemaGetSMTPConfigResp struct { + // \"\" SSL + Encryption *string `json:"encryption,omitempty"` + FromEmail *string `json:"from_email,omitempty"` + FromName *string `json:"from_name,omitempty"` + SmtpAuthentication *bool `json:"smtp_authentication,omitempty"` + SmtpHost *string `json:"smtp_host,omitempty"` + SmtpPassword *string `json:"smtp_password,omitempty"` + SmtpPort *int32 `json:"smtp_port,omitempty"` + SmtpUsername *string `json:"smtp_username,omitempty"` +} + +// NewSchemaGetSMTPConfigResp instantiates a new SchemaGetSMTPConfigResp 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 NewSchemaGetSMTPConfigResp() *SchemaGetSMTPConfigResp { + this := SchemaGetSMTPConfigResp{} + return &this +} + +// NewSchemaGetSMTPConfigRespWithDefaults instantiates a new SchemaGetSMTPConfigResp 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 NewSchemaGetSMTPConfigRespWithDefaults() *SchemaGetSMTPConfigResp { + this := SchemaGetSMTPConfigResp{} + return &this +} + +// GetEncryption returns the Encryption field value if set, zero value otherwise. +func (o *SchemaGetSMTPConfigResp) GetEncryption() string { + if o == nil || IsNil(o.Encryption) { + var ret string + return ret + } + return *o.Encryption +} + +// GetEncryptionOk returns a tuple with the Encryption field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSMTPConfigResp) GetEncryptionOk() (*string, bool) { + if o == nil || IsNil(o.Encryption) { + return nil, false + } + return o.Encryption, true +} + +// HasEncryption returns a boolean if a field has been set. +func (o *SchemaGetSMTPConfigResp) HasEncryption() bool { + if o != nil && !IsNil(o.Encryption) { + return true + } + + return false +} + +// SetEncryption gets a reference to the given string and assigns it to the Encryption field. +func (o *SchemaGetSMTPConfigResp) SetEncryption(v string) { + o.Encryption = &v +} + +// GetFromEmail returns the FromEmail field value if set, zero value otherwise. +func (o *SchemaGetSMTPConfigResp) GetFromEmail() string { + if o == nil || IsNil(o.FromEmail) { + var ret string + return ret + } + return *o.FromEmail +} + +// GetFromEmailOk returns a tuple with the FromEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSMTPConfigResp) GetFromEmailOk() (*string, bool) { + if o == nil || IsNil(o.FromEmail) { + return nil, false + } + return o.FromEmail, true +} + +// HasFromEmail returns a boolean if a field has been set. +func (o *SchemaGetSMTPConfigResp) HasFromEmail() bool { + if o != nil && !IsNil(o.FromEmail) { + return true + } + + return false +} + +// SetFromEmail gets a reference to the given string and assigns it to the FromEmail field. +func (o *SchemaGetSMTPConfigResp) SetFromEmail(v string) { + o.FromEmail = &v +} + +// GetFromName returns the FromName field value if set, zero value otherwise. +func (o *SchemaGetSMTPConfigResp) GetFromName() string { + if o == nil || IsNil(o.FromName) { + var ret string + return ret + } + return *o.FromName +} + +// GetFromNameOk returns a tuple with the FromName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSMTPConfigResp) GetFromNameOk() (*string, bool) { + if o == nil || IsNil(o.FromName) { + return nil, false + } + return o.FromName, true +} + +// HasFromName returns a boolean if a field has been set. +func (o *SchemaGetSMTPConfigResp) HasFromName() bool { + if o != nil && !IsNil(o.FromName) { + return true + } + + return false +} + +// SetFromName gets a reference to the given string and assigns it to the FromName field. +func (o *SchemaGetSMTPConfigResp) SetFromName(v string) { + o.FromName = &v +} + +// GetSmtpAuthentication returns the SmtpAuthentication field value if set, zero value otherwise. +func (o *SchemaGetSMTPConfigResp) GetSmtpAuthentication() bool { + if o == nil || IsNil(o.SmtpAuthentication) { + var ret bool + return ret + } + return *o.SmtpAuthentication +} + +// GetSmtpAuthenticationOk returns a tuple with the SmtpAuthentication field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSMTPConfigResp) GetSmtpAuthenticationOk() (*bool, bool) { + if o == nil || IsNil(o.SmtpAuthentication) { + return nil, false + } + return o.SmtpAuthentication, true +} + +// HasSmtpAuthentication returns a boolean if a field has been set. +func (o *SchemaGetSMTPConfigResp) HasSmtpAuthentication() bool { + if o != nil && !IsNil(o.SmtpAuthentication) { + return true + } + + return false +} + +// SetSmtpAuthentication gets a reference to the given bool and assigns it to the SmtpAuthentication field. +func (o *SchemaGetSMTPConfigResp) SetSmtpAuthentication(v bool) { + o.SmtpAuthentication = &v +} + +// GetSmtpHost returns the SmtpHost field value if set, zero value otherwise. +func (o *SchemaGetSMTPConfigResp) GetSmtpHost() string { + if o == nil || IsNil(o.SmtpHost) { + var ret string + return ret + } + return *o.SmtpHost +} + +// GetSmtpHostOk returns a tuple with the SmtpHost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSMTPConfigResp) GetSmtpHostOk() (*string, bool) { + if o == nil || IsNil(o.SmtpHost) { + return nil, false + } + return o.SmtpHost, true +} + +// HasSmtpHost returns a boolean if a field has been set. +func (o *SchemaGetSMTPConfigResp) HasSmtpHost() bool { + if o != nil && !IsNil(o.SmtpHost) { + return true + } + + return false +} + +// SetSmtpHost gets a reference to the given string and assigns it to the SmtpHost field. +func (o *SchemaGetSMTPConfigResp) SetSmtpHost(v string) { + o.SmtpHost = &v +} + +// GetSmtpPassword returns the SmtpPassword field value if set, zero value otherwise. +func (o *SchemaGetSMTPConfigResp) GetSmtpPassword() string { + if o == nil || IsNil(o.SmtpPassword) { + var ret string + return ret + } + return *o.SmtpPassword +} + +// GetSmtpPasswordOk returns a tuple with the SmtpPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSMTPConfigResp) GetSmtpPasswordOk() (*string, bool) { + if o == nil || IsNil(o.SmtpPassword) { + return nil, false + } + return o.SmtpPassword, true +} + +// HasSmtpPassword returns a boolean if a field has been set. +func (o *SchemaGetSMTPConfigResp) HasSmtpPassword() bool { + if o != nil && !IsNil(o.SmtpPassword) { + return true + } + + return false +} + +// SetSmtpPassword gets a reference to the given string and assigns it to the SmtpPassword field. +func (o *SchemaGetSMTPConfigResp) SetSmtpPassword(v string) { + o.SmtpPassword = &v +} + +// GetSmtpPort returns the SmtpPort field value if set, zero value otherwise. +func (o *SchemaGetSMTPConfigResp) GetSmtpPort() int32 { + if o == nil || IsNil(o.SmtpPort) { + var ret int32 + return ret + } + return *o.SmtpPort +} + +// GetSmtpPortOk returns a tuple with the SmtpPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSMTPConfigResp) GetSmtpPortOk() (*int32, bool) { + if o == nil || IsNil(o.SmtpPort) { + return nil, false + } + return o.SmtpPort, true +} + +// HasSmtpPort returns a boolean if a field has been set. +func (o *SchemaGetSMTPConfigResp) HasSmtpPort() bool { + if o != nil && !IsNil(o.SmtpPort) { + return true + } + + return false +} + +// SetSmtpPort gets a reference to the given int32 and assigns it to the SmtpPort field. +func (o *SchemaGetSMTPConfigResp) SetSmtpPort(v int32) { + o.SmtpPort = &v +} + +// GetSmtpUsername returns the SmtpUsername field value if set, zero value otherwise. +func (o *SchemaGetSMTPConfigResp) GetSmtpUsername() string { + if o == nil || IsNil(o.SmtpUsername) { + var ret string + return ret + } + return *o.SmtpUsername +} + +// GetSmtpUsernameOk returns a tuple with the SmtpUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetSMTPConfigResp) GetSmtpUsernameOk() (*string, bool) { + if o == nil || IsNil(o.SmtpUsername) { + return nil, false + } + return o.SmtpUsername, true +} + +// HasSmtpUsername returns a boolean if a field has been set. +func (o *SchemaGetSMTPConfigResp) HasSmtpUsername() bool { + if o != nil && !IsNil(o.SmtpUsername) { + return true + } + + return false +} + +// SetSmtpUsername gets a reference to the given string and assigns it to the SmtpUsername field. +func (o *SchemaGetSMTPConfigResp) SetSmtpUsername(v string) { + o.SmtpUsername = &v +} + +func (o SchemaGetSMTPConfigResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetSMTPConfigResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Encryption) { + toSerialize["encryption"] = o.Encryption + } + if !IsNil(o.FromEmail) { + toSerialize["from_email"] = o.FromEmail + } + if !IsNil(o.FromName) { + toSerialize["from_name"] = o.FromName + } + if !IsNil(o.SmtpAuthentication) { + toSerialize["smtp_authentication"] = o.SmtpAuthentication + } + if !IsNil(o.SmtpHost) { + toSerialize["smtp_host"] = o.SmtpHost + } + if !IsNil(o.SmtpPassword) { + toSerialize["smtp_password"] = o.SmtpPassword + } + if !IsNil(o.SmtpPort) { + toSerialize["smtp_port"] = o.SmtpPort + } + if !IsNil(o.SmtpUsername) { + toSerialize["smtp_username"] = o.SmtpUsername + } + return toSerialize, nil +} + +type NullableSchemaGetSMTPConfigResp struct { + value *SchemaGetSMTPConfigResp + isSet bool +} + +func (v NullableSchemaGetSMTPConfigResp) Get() *SchemaGetSMTPConfigResp { + return v.value +} + +func (v *NullableSchemaGetSMTPConfigResp) Set(val *SchemaGetSMTPConfigResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetSMTPConfigResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetSMTPConfigResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetSMTPConfigResp(val *SchemaGetSMTPConfigResp) *NullableSchemaGetSMTPConfigResp { + return &NullableSchemaGetSMTPConfigResp{value: val, isSet: true} +} + +func (v NullableSchemaGetSMTPConfigResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetSMTPConfigResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_tag_page_resp.go b/model_schema_get_tag_page_resp.go new file mode 100644 index 0000000..6a45516 --- /dev/null +++ b/model_schema_get_tag_page_resp.go @@ -0,0 +1,606 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetTagPageResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetTagPageResp{} + +// SchemaGetTagPageResp struct for SchemaGetTagPageResp +type SchemaGetTagPageResp struct { + // created time + CreatedAt *int32 `json:"created_at,omitempty"` + // description + Description *string `json:"description,omitempty"` + // display_name + DisplayName *string `json:"display_name,omitempty"` + // excerpt + Excerpt *string `json:"excerpt,omitempty"` + // follower amount + FollowCount *int32 `json:"follow_count,omitempty"` + // is follower + IsFollower *bool `json:"is_follower,omitempty"` + // original text + OriginalText *string `json:"original_text,omitempty"` + // parsed_text + ParsedText *string `json:"parsed_text,omitempty"` + // question amount + QuestionCount *int32 `json:"question_count,omitempty"` + Recommend *bool `json:"recommend,omitempty"` + Reserved *bool `json:"reserved,omitempty"` + // slug_name + SlugName *string `json:"slug_name,omitempty"` + // tag_id + TagId *string `json:"tag_id,omitempty"` + // updated time + UpdatedAt *int32 `json:"updated_at,omitempty"` +} + +// NewSchemaGetTagPageResp instantiates a new SchemaGetTagPageResp 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 NewSchemaGetTagPageResp() *SchemaGetTagPageResp { + this := SchemaGetTagPageResp{} + return &this +} + +// NewSchemaGetTagPageRespWithDefaults instantiates a new SchemaGetTagPageResp 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 NewSchemaGetTagPageRespWithDefaults() *SchemaGetTagPageResp { + this := SchemaGetTagPageResp{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetExcerpt returns the Excerpt field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetExcerpt(v string) { + o.Excerpt = &v +} + +// GetFollowCount returns the FollowCount field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetFollowCount(v int32) { + o.FollowCount = &v +} + +// GetIsFollower returns the IsFollower field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) GetIsFollower() bool { + if o == nil || IsNil(o.IsFollower) { + var ret bool + return ret + } + return *o.IsFollower +} + +// GetIsFollowerOk returns a tuple with the IsFollower field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagPageResp) GetIsFollowerOk() (*bool, bool) { + if o == nil || IsNil(o.IsFollower) { + return nil, false + } + return o.IsFollower, true +} + +// HasIsFollower returns a boolean if a field has been set. +func (o *SchemaGetTagPageResp) HasIsFollower() bool { + if o != nil && !IsNil(o.IsFollower) { + return true + } + + return false +} + +// SetIsFollower gets a reference to the given bool and assigns it to the IsFollower field. +func (o *SchemaGetTagPageResp) SetIsFollower(v bool) { + o.IsFollower = &v +} + +// GetOriginalText returns the OriginalText field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) GetOriginalText() string { + if o == nil || IsNil(o.OriginalText) { + var ret string + return ret + } + return *o.OriginalText +} + +// GetOriginalTextOk returns a tuple with the OriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagPageResp) GetOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.OriginalText) { + return nil, false + } + return o.OriginalText, true +} + +// HasOriginalText returns a boolean if a field has been set. +func (o *SchemaGetTagPageResp) HasOriginalText() bool { + if o != nil && !IsNil(o.OriginalText) { + return true + } + + return false +} + +// SetOriginalText gets a reference to the given string and assigns it to the OriginalText field. +func (o *SchemaGetTagPageResp) SetOriginalText(v string) { + o.OriginalText = &v +} + +// GetParsedText returns the ParsedText field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) GetParsedText() string { + if o == nil || IsNil(o.ParsedText) { + var ret string + return ret + } + return *o.ParsedText +} + +// GetParsedTextOk returns a tuple with the ParsedText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagPageResp) GetParsedTextOk() (*string, bool) { + if o == nil || IsNil(o.ParsedText) { + return nil, false + } + return o.ParsedText, true +} + +// HasParsedText returns a boolean if a field has been set. +func (o *SchemaGetTagPageResp) HasParsedText() bool { + if o != nil && !IsNil(o.ParsedText) { + return true + } + + return false +} + +// SetParsedText gets a reference to the given string and assigns it to the ParsedText field. +func (o *SchemaGetTagPageResp) SetParsedText(v string) { + o.ParsedText = &v +} + +// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetQuestionCount(v int32) { + o.QuestionCount = &v +} + +// GetRecommend returns the Recommend field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) GetRecommend() bool { + if o == nil || IsNil(o.Recommend) { + var ret bool + return ret + } + return *o.Recommend +} + +// GetRecommendOk returns a tuple with the Recommend field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagPageResp) GetRecommendOk() (*bool, bool) { + if o == nil || IsNil(o.Recommend) { + return nil, false + } + return o.Recommend, true +} + +// HasRecommend returns a boolean if a field has been set. +func (o *SchemaGetTagPageResp) HasRecommend() bool { + if o != nil && !IsNil(o.Recommend) { + return true + } + + return false +} + +// SetRecommend gets a reference to the given bool and assigns it to the Recommend field. +func (o *SchemaGetTagPageResp) SetRecommend(v bool) { + o.Recommend = &v +} + +// GetReserved returns the Reserved field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) GetReserved() bool { + if o == nil || IsNil(o.Reserved) { + var ret bool + return ret + } + return *o.Reserved +} + +// GetReservedOk returns a tuple with the Reserved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagPageResp) GetReservedOk() (*bool, bool) { + if o == nil || IsNil(o.Reserved) { + return nil, false + } + return o.Reserved, true +} + +// HasReserved returns a boolean if a field has been set. +func (o *SchemaGetTagPageResp) HasReserved() bool { + if o != nil && !IsNil(o.Reserved) { + return true + } + + return false +} + +// SetReserved gets a reference to the given bool and assigns it to the Reserved field. +func (o *SchemaGetTagPageResp) SetReserved(v bool) { + o.Reserved = &v +} + +// GetSlugName returns the SlugName field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) 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 *SchemaGetTagPageResp) SetSlugName(v string) { + o.SlugName = &v +} + +// GetTagId returns the TagId field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) GetTagId() string { + if o == nil || IsNil(o.TagId) { + var ret string + return ret + } + return *o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagPageResp) GetTagIdOk() (*string, bool) { + if o == nil || IsNil(o.TagId) { + return nil, false + } + return o.TagId, true +} + +// HasTagId returns a boolean if a field has been set. +func (o *SchemaGetTagPageResp) HasTagId() bool { + if o != nil && !IsNil(o.TagId) { + return true + } + + return false +} + +// SetTagId gets a reference to the given string and assigns it to the TagId field. +func (o *SchemaGetTagPageResp) SetTagId(v string) { + o.TagId = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *SchemaGetTagPageResp) GetUpdatedAt() int32 { + if o == nil || IsNil(o.UpdatedAt) { + var ret int32 + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagPageResp) GetUpdatedAtOk() (*int32, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *SchemaGetTagPageResp) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given int32 and assigns it to the UpdatedAt field. +func (o *SchemaGetTagPageResp) SetUpdatedAt(v int32) { + o.UpdatedAt = &v +} + +func (o SchemaGetTagPageResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetTagPageResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.Excerpt) { + toSerialize["excerpt"] = o.Excerpt + } + if !IsNil(o.FollowCount) { + toSerialize["follow_count"] = o.FollowCount + } + if !IsNil(o.IsFollower) { + toSerialize["is_follower"] = o.IsFollower + } + if !IsNil(o.OriginalText) { + toSerialize["original_text"] = o.OriginalText + } + if !IsNil(o.ParsedText) { + toSerialize["parsed_text"] = o.ParsedText + } + if !IsNil(o.QuestionCount) { + toSerialize["question_count"] = o.QuestionCount + } + if !IsNil(o.Recommend) { + toSerialize["recommend"] = o.Recommend + } + if !IsNil(o.Reserved) { + toSerialize["reserved"] = o.Reserved + } + if !IsNil(o.SlugName) { + toSerialize["slug_name"] = o.SlugName + } + if !IsNil(o.TagId) { + toSerialize["tag_id"] = o.TagId + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableSchemaGetTagPageResp struct { + value *SchemaGetTagPageResp + isSet bool +} + +func (v NullableSchemaGetTagPageResp) Get() *SchemaGetTagPageResp { + return v.value +} + +func (v *NullableSchemaGetTagPageResp) Set(val *SchemaGetTagPageResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetTagPageResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetTagPageResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetTagPageResp(val *SchemaGetTagPageResp) *NullableSchemaGetTagPageResp { + return &NullableSchemaGetTagPageResp{value: val, isSet: true} +} + +func (v NullableSchemaGetTagPageResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetTagPageResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_tag_resp.go b/model_schema_get_tag_resp.go new file mode 100644 index 0000000..b6f584f --- /dev/null +++ b/model_schema_get_tag_resp.go @@ -0,0 +1,680 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetTagResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetTagResp{} + +// SchemaGetTagResp struct for SchemaGetTagResp +type SchemaGetTagResp struct { + // created time + CreatedAt *int32 `json:"created_at,omitempty"` + // description text + Description *string `json:"description,omitempty"` + // display name + DisplayName *string `json:"display_name,omitempty"` + // excerpt + Excerpt *string `json:"excerpt,omitempty"` + // follower amount + FollowCount *int32 `json:"follow_count,omitempty"` + // is follower + IsFollower *bool `json:"is_follower,omitempty"` + // if main tag slug name is not empty, this tag is synonymous with the main tag + MainTagSlugName *string `json:"main_tag_slug_name,omitempty"` + // MemberActions + MemberActions []SchemaPermissionMemberAction `json:"member_actions,omitempty"` + // original text + OriginalText *string `json:"original_text,omitempty"` + // parsed text + ParsedText *string `json:"parsed_text,omitempty"` + // question amount + QuestionCount *int32 `json:"question_count,omitempty"` + Recommend *bool `json:"recommend,omitempty"` + Reserved *bool `json:"reserved,omitempty"` + // slug name + SlugName *string `json:"slug_name,omitempty"` + // tag id + TagId *string `json:"tag_id,omitempty"` + // updated time + UpdatedAt *int32 `json:"updated_at,omitempty"` +} + +// NewSchemaGetTagResp instantiates a new SchemaGetTagResp 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 NewSchemaGetTagResp() *SchemaGetTagResp { + this := SchemaGetTagResp{} + return &this +} + +// NewSchemaGetTagRespWithDefaults instantiates a new SchemaGetTagResp 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 NewSchemaGetTagRespWithDefaults() *SchemaGetTagResp { + this := SchemaGetTagResp{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) SetDescription(v string) { + o.Description = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetExcerpt returns the Excerpt field value if set, zero value otherwise. +func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) SetExcerpt(v string) { + o.Excerpt = &v +} + +// GetFollowCount returns the FollowCount field value if set, zero value otherwise. +func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) SetFollowCount(v int32) { + o.FollowCount = &v +} + +// GetIsFollower returns the IsFollower field value if set, zero value otherwise. +func (o *SchemaGetTagResp) GetIsFollower() bool { + if o == nil || IsNil(o.IsFollower) { + var ret bool + return ret + } + return *o.IsFollower +} + +// GetIsFollowerOk returns a tuple with the IsFollower field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagResp) GetIsFollowerOk() (*bool, bool) { + if o == nil || IsNil(o.IsFollower) { + return nil, false + } + return o.IsFollower, true +} + +// HasIsFollower returns a boolean if a field has been set. +func (o *SchemaGetTagResp) HasIsFollower() bool { + if o != nil && !IsNil(o.IsFollower) { + return true + } + + return false +} + +// SetIsFollower gets a reference to the given bool and assigns it to the IsFollower field. +func (o *SchemaGetTagResp) SetIsFollower(v bool) { + o.IsFollower = &v +} + +// GetMainTagSlugName returns the MainTagSlugName field value if set, zero value otherwise. +func (o *SchemaGetTagResp) GetMainTagSlugName() string { + if o == nil || IsNil(o.MainTagSlugName) { + var ret string + return ret + } + return *o.MainTagSlugName +} + +// GetMainTagSlugNameOk returns a tuple with the MainTagSlugName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagResp) GetMainTagSlugNameOk() (*string, bool) { + if o == nil || IsNil(o.MainTagSlugName) { + return nil, false + } + return o.MainTagSlugName, true +} + +// HasMainTagSlugName returns a boolean if a field has been set. +func (o *SchemaGetTagResp) HasMainTagSlugName() bool { + if o != nil && !IsNil(o.MainTagSlugName) { + return true + } + + return false +} + +// SetMainTagSlugName gets a reference to the given string and assigns it to the MainTagSlugName field. +func (o *SchemaGetTagResp) SetMainTagSlugName(v string) { + o.MainTagSlugName = &v +} + +// GetMemberActions returns the MemberActions field value if set, zero value otherwise. +func (o *SchemaGetTagResp) GetMemberActions() []SchemaPermissionMemberAction { + if o == nil || IsNil(o.MemberActions) { + var ret []SchemaPermissionMemberAction + return ret + } + return o.MemberActions +} + +// GetMemberActionsOk returns a tuple with the MemberActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagResp) GetMemberActionsOk() ([]SchemaPermissionMemberAction, bool) { + if o == nil || IsNil(o.MemberActions) { + return nil, false + } + return o.MemberActions, true +} + +// HasMemberActions returns a boolean if a field has been set. +func (o *SchemaGetTagResp) HasMemberActions() bool { + if o != nil && !IsNil(o.MemberActions) { + return true + } + + return false +} + +// SetMemberActions gets a reference to the given []SchemaPermissionMemberAction and assigns it to the MemberActions field. +func (o *SchemaGetTagResp) SetMemberActions(v []SchemaPermissionMemberAction) { + o.MemberActions = v +} + +// GetOriginalText returns the OriginalText field value if set, zero value otherwise. +func (o *SchemaGetTagResp) GetOriginalText() string { + if o == nil || IsNil(o.OriginalText) { + var ret string + return ret + } + return *o.OriginalText +} + +// GetOriginalTextOk returns a tuple with the OriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagResp) GetOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.OriginalText) { + return nil, false + } + return o.OriginalText, true +} + +// HasOriginalText returns a boolean if a field has been set. +func (o *SchemaGetTagResp) HasOriginalText() bool { + if o != nil && !IsNil(o.OriginalText) { + return true + } + + return false +} + +// SetOriginalText gets a reference to the given string and assigns it to the OriginalText field. +func (o *SchemaGetTagResp) SetOriginalText(v string) { + o.OriginalText = &v +} + +// GetParsedText returns the ParsedText field value if set, zero value otherwise. +func (o *SchemaGetTagResp) GetParsedText() string { + if o == nil || IsNil(o.ParsedText) { + var ret string + return ret + } + return *o.ParsedText +} + +// GetParsedTextOk returns a tuple with the ParsedText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagResp) GetParsedTextOk() (*string, bool) { + if o == nil || IsNil(o.ParsedText) { + return nil, false + } + return o.ParsedText, true +} + +// HasParsedText returns a boolean if a field has been set. +func (o *SchemaGetTagResp) HasParsedText() bool { + if o != nil && !IsNil(o.ParsedText) { + return true + } + + return false +} + +// SetParsedText gets a reference to the given string and assigns it to the ParsedText field. +func (o *SchemaGetTagResp) SetParsedText(v string) { + o.ParsedText = &v +} + +// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise. +func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) SetQuestionCount(v int32) { + o.QuestionCount = &v +} + +// GetRecommend returns the Recommend field value if set, zero value otherwise. +func (o *SchemaGetTagResp) GetRecommend() bool { + if o == nil || IsNil(o.Recommend) { + var ret bool + return ret + } + return *o.Recommend +} + +// GetRecommendOk returns a tuple with the Recommend field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagResp) GetRecommendOk() (*bool, bool) { + if o == nil || IsNil(o.Recommend) { + return nil, false + } + return o.Recommend, true +} + +// HasRecommend returns a boolean if a field has been set. +func (o *SchemaGetTagResp) HasRecommend() bool { + if o != nil && !IsNil(o.Recommend) { + return true + } + + return false +} + +// SetRecommend gets a reference to the given bool and assigns it to the Recommend field. +func (o *SchemaGetTagResp) SetRecommend(v bool) { + o.Recommend = &v +} + +// GetReserved returns the Reserved field value if set, zero value otherwise. +func (o *SchemaGetTagResp) GetReserved() bool { + if o == nil || IsNil(o.Reserved) { + var ret bool + return ret + } + return *o.Reserved +} + +// GetReservedOk returns a tuple with the Reserved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagResp) GetReservedOk() (*bool, bool) { + if o == nil || IsNil(o.Reserved) { + return nil, false + } + return o.Reserved, true +} + +// HasReserved returns a boolean if a field has been set. +func (o *SchemaGetTagResp) HasReserved() bool { + if o != nil && !IsNil(o.Reserved) { + return true + } + + return false +} + +// SetReserved gets a reference to the given bool and assigns it to the Reserved field. +func (o *SchemaGetTagResp) SetReserved(v bool) { + o.Reserved = &v +} + +// GetSlugName returns the SlugName field value if set, zero value otherwise. +func (o *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) 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 *SchemaGetTagResp) SetSlugName(v string) { + o.SlugName = &v +} + +// GetTagId returns the TagId field value if set, zero value otherwise. +func (o *SchemaGetTagResp) GetTagId() string { + if o == nil || IsNil(o.TagId) { + var ret string + return ret + } + return *o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagResp) GetTagIdOk() (*string, bool) { + if o == nil || IsNil(o.TagId) { + return nil, false + } + return o.TagId, true +} + +// HasTagId returns a boolean if a field has been set. +func (o *SchemaGetTagResp) HasTagId() bool { + if o != nil && !IsNil(o.TagId) { + return true + } + + return false +} + +// SetTagId gets a reference to the given string and assigns it to the TagId field. +func (o *SchemaGetTagResp) SetTagId(v string) { + o.TagId = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *SchemaGetTagResp) GetUpdatedAt() int32 { + if o == nil || IsNil(o.UpdatedAt) { + var ret int32 + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagResp) GetUpdatedAtOk() (*int32, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *SchemaGetTagResp) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given int32 and assigns it to the UpdatedAt field. +func (o *SchemaGetTagResp) SetUpdatedAt(v int32) { + o.UpdatedAt = &v +} + +func (o SchemaGetTagResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetTagResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.Excerpt) { + toSerialize["excerpt"] = o.Excerpt + } + if !IsNil(o.FollowCount) { + toSerialize["follow_count"] = o.FollowCount + } + if !IsNil(o.IsFollower) { + toSerialize["is_follower"] = o.IsFollower + } + if !IsNil(o.MainTagSlugName) { + toSerialize["main_tag_slug_name"] = o.MainTagSlugName + } + if !IsNil(o.MemberActions) { + toSerialize["member_actions"] = o.MemberActions + } + if !IsNil(o.OriginalText) { + toSerialize["original_text"] = o.OriginalText + } + if !IsNil(o.ParsedText) { + toSerialize["parsed_text"] = o.ParsedText + } + if !IsNil(o.QuestionCount) { + toSerialize["question_count"] = o.QuestionCount + } + if !IsNil(o.Recommend) { + toSerialize["recommend"] = o.Recommend + } + if !IsNil(o.Reserved) { + toSerialize["reserved"] = o.Reserved + } + if !IsNil(o.SlugName) { + toSerialize["slug_name"] = o.SlugName + } + if !IsNil(o.TagId) { + toSerialize["tag_id"] = o.TagId + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableSchemaGetTagResp struct { + value *SchemaGetTagResp + isSet bool +} + +func (v NullableSchemaGetTagResp) Get() *SchemaGetTagResp { + return v.value +} + +func (v *NullableSchemaGetTagResp) Set(val *SchemaGetTagResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetTagResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetTagResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetTagResp(val *SchemaGetTagResp) *NullableSchemaGetTagResp { + return &NullableSchemaGetTagResp{value: val, isSet: true} +} + +func (v NullableSchemaGetTagResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetTagResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_tag_synonyms_resp.go b/model_schema_get_tag_synonyms_resp.go new file mode 100644 index 0000000..ab2b882 --- /dev/null +++ b/model_schema_get_tag_synonyms_resp.go @@ -0,0 +1,164 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetTagSynonymsResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetTagSynonymsResp{} + +// SchemaGetTagSynonymsResp struct for SchemaGetTagSynonymsResp +type SchemaGetTagSynonymsResp struct { + // MemberActions + MemberActions []SchemaPermissionMemberAction `json:"member_actions,omitempty"` + // synonyms + Synonyms []SchemaTagSynonym `json:"synonyms,omitempty"` +} + +// NewSchemaGetTagSynonymsResp instantiates a new SchemaGetTagSynonymsResp 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 NewSchemaGetTagSynonymsResp() *SchemaGetTagSynonymsResp { + this := SchemaGetTagSynonymsResp{} + return &this +} + +// NewSchemaGetTagSynonymsRespWithDefaults instantiates a new SchemaGetTagSynonymsResp 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 NewSchemaGetTagSynonymsRespWithDefaults() *SchemaGetTagSynonymsResp { + this := SchemaGetTagSynonymsResp{} + return &this +} + +// GetMemberActions returns the MemberActions field value if set, zero value otherwise. +func (o *SchemaGetTagSynonymsResp) GetMemberActions() []SchemaPermissionMemberAction { + if o == nil || IsNil(o.MemberActions) { + var ret []SchemaPermissionMemberAction + return ret + } + return o.MemberActions +} + +// GetMemberActionsOk returns a tuple with the MemberActions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagSynonymsResp) GetMemberActionsOk() ([]SchemaPermissionMemberAction, bool) { + if o == nil || IsNil(o.MemberActions) { + return nil, false + } + return o.MemberActions, true +} + +// HasMemberActions returns a boolean if a field has been set. +func (o *SchemaGetTagSynonymsResp) HasMemberActions() bool { + if o != nil && !IsNil(o.MemberActions) { + return true + } + + return false +} + +// SetMemberActions gets a reference to the given []SchemaPermissionMemberAction and assigns it to the MemberActions field. +func (o *SchemaGetTagSynonymsResp) SetMemberActions(v []SchemaPermissionMemberAction) { + o.MemberActions = v +} + +// GetSynonyms returns the Synonyms field value if set, zero value otherwise. +func (o *SchemaGetTagSynonymsResp) GetSynonyms() []SchemaTagSynonym { + if o == nil || IsNil(o.Synonyms) { + var ret []SchemaTagSynonym + return ret + } + return o.Synonyms +} + +// GetSynonymsOk returns a tuple with the Synonyms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetTagSynonymsResp) GetSynonymsOk() ([]SchemaTagSynonym, bool) { + if o == nil || IsNil(o.Synonyms) { + return nil, false + } + return o.Synonyms, true +} + +// HasSynonyms returns a boolean if a field has been set. +func (o *SchemaGetTagSynonymsResp) HasSynonyms() bool { + if o != nil && !IsNil(o.Synonyms) { + return true + } + + return false +} + +// SetSynonyms gets a reference to the given []SchemaTagSynonym and assigns it to the Synonyms field. +func (o *SchemaGetTagSynonymsResp) SetSynonyms(v []SchemaTagSynonym) { + o.Synonyms = v +} + +func (o SchemaGetTagSynonymsResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetTagSynonymsResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MemberActions) { + toSerialize["member_actions"] = o.MemberActions + } + if !IsNil(o.Synonyms) { + toSerialize["synonyms"] = o.Synonyms + } + return toSerialize, nil +} + +type NullableSchemaGetTagSynonymsResp struct { + value *SchemaGetTagSynonymsResp + isSet bool +} + +func (v NullableSchemaGetTagSynonymsResp) Get() *SchemaGetTagSynonymsResp { + return v.value +} + +func (v *NullableSchemaGetTagSynonymsResp) Set(val *SchemaGetTagSynonymsResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetTagSynonymsResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetTagSynonymsResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetTagSynonymsResp(val *SchemaGetTagSynonymsResp) *NullableSchemaGetTagSynonymsResp { + return &NullableSchemaGetTagSynonymsResp{value: val, isSet: true} +} + +func (v NullableSchemaGetTagSynonymsResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetTagSynonymsResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_unreviewed_revision_resp.go b/model_schema_get_unreviewed_revision_resp.go new file mode 100644 index 0000000..97bd17f --- /dev/null +++ b/model_schema_get_unreviewed_revision_resp.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetUnreviewedRevisionResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetUnreviewedRevisionResp{} + +// SchemaGetUnreviewedRevisionResp struct for SchemaGetUnreviewedRevisionResp +type SchemaGetUnreviewedRevisionResp struct { + Info *SchemaUnreviewedRevisionInfoInfo `json:"info,omitempty"` + Type *string `json:"type,omitempty"` + UnreviewedInfo *SchemaGetRevisionResp `json:"unreviewed_info,omitempty"` +} + +// NewSchemaGetUnreviewedRevisionResp instantiates a new SchemaGetUnreviewedRevisionResp 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 NewSchemaGetUnreviewedRevisionResp() *SchemaGetUnreviewedRevisionResp { + this := SchemaGetUnreviewedRevisionResp{} + return &this +} + +// NewSchemaGetUnreviewedRevisionRespWithDefaults instantiates a new SchemaGetUnreviewedRevisionResp 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 NewSchemaGetUnreviewedRevisionRespWithDefaults() *SchemaGetUnreviewedRevisionResp { + this := SchemaGetUnreviewedRevisionResp{} + return &this +} + +// GetInfo returns the Info field value if set, zero value otherwise. +func (o *SchemaGetUnreviewedRevisionResp) GetInfo() SchemaUnreviewedRevisionInfoInfo { + if o == nil || IsNil(o.Info) { + var ret SchemaUnreviewedRevisionInfoInfo + return ret + } + return *o.Info +} + +// GetInfoOk returns a tuple with the Info field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUnreviewedRevisionResp) GetInfoOk() (*SchemaUnreviewedRevisionInfoInfo, bool) { + if o == nil || IsNil(o.Info) { + return nil, false + } + return o.Info, true +} + +// HasInfo returns a boolean if a field has been set. +func (o *SchemaGetUnreviewedRevisionResp) HasInfo() bool { + if o != nil && !IsNil(o.Info) { + return true + } + + return false +} + +// SetInfo gets a reference to the given SchemaUnreviewedRevisionInfoInfo and assigns it to the Info field. +func (o *SchemaGetUnreviewedRevisionResp) SetInfo(v SchemaUnreviewedRevisionInfoInfo) { + o.Info = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SchemaGetUnreviewedRevisionResp) 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 *SchemaGetUnreviewedRevisionResp) 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 *SchemaGetUnreviewedRevisionResp) 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 *SchemaGetUnreviewedRevisionResp) SetType(v string) { + o.Type = &v +} + +// GetUnreviewedInfo returns the UnreviewedInfo field value if set, zero value otherwise. +func (o *SchemaGetUnreviewedRevisionResp) GetUnreviewedInfo() SchemaGetRevisionResp { + if o == nil || IsNil(o.UnreviewedInfo) { + var ret SchemaGetRevisionResp + return ret + } + return *o.UnreviewedInfo +} + +// GetUnreviewedInfoOk returns a tuple with the UnreviewedInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUnreviewedRevisionResp) GetUnreviewedInfoOk() (*SchemaGetRevisionResp, bool) { + if o == nil || IsNil(o.UnreviewedInfo) { + return nil, false + } + return o.UnreviewedInfo, true +} + +// HasUnreviewedInfo returns a boolean if a field has been set. +func (o *SchemaGetUnreviewedRevisionResp) HasUnreviewedInfo() bool { + if o != nil && !IsNil(o.UnreviewedInfo) { + return true + } + + return false +} + +// SetUnreviewedInfo gets a reference to the given SchemaGetRevisionResp and assigns it to the UnreviewedInfo field. +func (o *SchemaGetUnreviewedRevisionResp) SetUnreviewedInfo(v SchemaGetRevisionResp) { + o.UnreviewedInfo = &v +} + +func (o SchemaGetUnreviewedRevisionResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetUnreviewedRevisionResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Info) { + toSerialize["info"] = o.Info + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UnreviewedInfo) { + toSerialize["unreviewed_info"] = o.UnreviewedInfo + } + return toSerialize, nil +} + +type NullableSchemaGetUnreviewedRevisionResp struct { + value *SchemaGetUnreviewedRevisionResp + isSet bool +} + +func (v NullableSchemaGetUnreviewedRevisionResp) Get() *SchemaGetUnreviewedRevisionResp { + return v.value +} + +func (v *NullableSchemaGetUnreviewedRevisionResp) Set(val *SchemaGetUnreviewedRevisionResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetUnreviewedRevisionResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetUnreviewedRevisionResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetUnreviewedRevisionResp(val *SchemaGetUnreviewedRevisionResp) *NullableSchemaGetUnreviewedRevisionResp { + return &NullableSchemaGetUnreviewedRevisionResp{value: val, isSet: true} +} + +func (v NullableSchemaGetUnreviewedRevisionResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetUnreviewedRevisionResp) 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 new file mode 100644 index 0000000..6f8ac5f --- /dev/null +++ b/model_schema_get_user_page_resp.go @@ -0,0 +1,534 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetUserPageResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetUserPageResp{} + +// SchemaGetUserPageResp struct for SchemaGetUserPageResp +type SchemaGetUserPageResp struct { + // avatar + Avatar *string `json:"avatar,omitempty"` + // create time + CreatedAt *int32 `json:"created_at,omitempty"` + // delete time + DeletedAt *int32 `json:"deleted_at,omitempty"` + // display name + DisplayName *string `json:"display_name,omitempty"` + // email + EMail *string `json:"e_mail,omitempty"` + // rank + Rank *int32 `json:"rank,omitempty"` + // role id + RoleId *int32 `json:"role_id,omitempty"` + // role name + RoleName *string `json:"role_name,omitempty"` + // user status(normal,suspended,deleted,inactive) + Status *string `json:"status,omitempty"` + // suspended time + SuspendedAt *int32 `json:"suspended_at,omitempty"` + // user id + UserId *string `json:"user_id,omitempty"` + // username + Username *string `json:"username,omitempty"` +} + +// NewSchemaGetUserPageResp instantiates a new SchemaGetUserPageResp 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 NewSchemaGetUserPageResp() *SchemaGetUserPageResp { + this := SchemaGetUserPageResp{} + return &this +} + +// NewSchemaGetUserPageRespWithDefaults instantiates a new SchemaGetUserPageResp 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 NewSchemaGetUserPageRespWithDefaults() *SchemaGetUserPageResp { + this := SchemaGetUserPageResp{} + return &this +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetAvatar(v string) { + o.Avatar = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetDeletedAt returns the DeletedAt field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) GetDeletedAt() int32 { + if o == nil || IsNil(o.DeletedAt) { + var ret int32 + return ret + } + return *o.DeletedAt +} + +// GetDeletedAtOk returns a tuple with the DeletedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserPageResp) GetDeletedAtOk() (*int32, bool) { + if o == nil || IsNil(o.DeletedAt) { + return nil, false + } + return o.DeletedAt, true +} + +// HasDeletedAt returns a boolean if a field has been set. +func (o *SchemaGetUserPageResp) HasDeletedAt() bool { + if o != nil && !IsNil(o.DeletedAt) { + return true + } + + return false +} + +// SetDeletedAt gets a reference to the given int32 and assigns it to the DeletedAt field. +func (o *SchemaGetUserPageResp) SetDeletedAt(v int32) { + o.DeletedAt = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetEMail returns the EMail field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetEMail(v string) { + o.EMail = &v +} + +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetRank(v int32) { + o.Rank = &v +} + +// GetRoleId returns the RoleId field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetRoleId(v int32) { + o.RoleId = &v +} + +// GetRoleName returns the RoleName field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) GetRoleName() string { + if o == nil || IsNil(o.RoleName) { + var ret string + return ret + } + return *o.RoleName +} + +// GetRoleNameOk returns a tuple with the RoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserPageResp) GetRoleNameOk() (*string, bool) { + if o == nil || IsNil(o.RoleName) { + return nil, false + } + return o.RoleName, true +} + +// HasRoleName returns a boolean if a field has been set. +func (o *SchemaGetUserPageResp) HasRoleName() bool { + if o != nil && !IsNil(o.RoleName) { + return true + } + + return false +} + +// SetRoleName gets a reference to the given string and assigns it to the RoleName field. +func (o *SchemaGetUserPageResp) SetRoleName(v string) { + o.RoleName = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetStatus(v string) { + o.Status = &v +} + +// GetSuspendedAt returns the SuspendedAt field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) GetSuspendedAt() int32 { + if o == nil || IsNil(o.SuspendedAt) { + var ret int32 + return ret + } + return *o.SuspendedAt +} + +// GetSuspendedAtOk returns a tuple with the SuspendedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserPageResp) GetSuspendedAtOk() (*int32, bool) { + if o == nil || IsNil(o.SuspendedAt) { + return nil, false + } + return o.SuspendedAt, true +} + +// HasSuspendedAt returns a boolean if a field has been set. +func (o *SchemaGetUserPageResp) HasSuspendedAt() bool { + if o != nil && !IsNil(o.SuspendedAt) { + return true + } + + return false +} + +// SetSuspendedAt gets a reference to the given int32 and assigns it to the SuspendedAt field. +func (o *SchemaGetUserPageResp) SetSuspendedAt(v int32) { + o.SuspendedAt = &v +} + +// GetUserId returns the UserId field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) GetUserId() string { + if o == nil || IsNil(o.UserId) { + var ret string + return ret + } + return *o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserPageResp) GetUserIdOk() (*string, bool) { + if o == nil || IsNil(o.UserId) { + return nil, false + } + return o.UserId, true +} + +// HasUserId returns a boolean if a field has been set. +func (o *SchemaGetUserPageResp) HasUserId() bool { + if o != nil && !IsNil(o.UserId) { + return true + } + + return false +} + +// SetUserId gets a reference to the given string and assigns it to the UserId field. +func (o *SchemaGetUserPageResp) SetUserId(v string) { + o.UserId = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) 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 *SchemaGetUserPageResp) SetUsername(v string) { + o.Username = &v +} + +func (o SchemaGetUserPageResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetUserPageResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Avatar) { + toSerialize["avatar"] = o.Avatar + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DeletedAt) { + toSerialize["deleted_at"] = o.DeletedAt + } + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.EMail) { + toSerialize["e_mail"] = o.EMail + } + if !IsNil(o.Rank) { + toSerialize["rank"] = o.Rank + } + if !IsNil(o.RoleId) { + toSerialize["role_id"] = o.RoleId + } + if !IsNil(o.RoleName) { + toSerialize["role_name"] = o.RoleName + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.SuspendedAt) { + toSerialize["suspended_at"] = o.SuspendedAt + } + if !IsNil(o.UserId) { + toSerialize["user_id"] = o.UserId + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableSchemaGetUserPageResp struct { + value *SchemaGetUserPageResp + isSet bool +} + +func (v NullableSchemaGetUserPageResp) Get() *SchemaGetUserPageResp { + return v.value +} + +func (v *NullableSchemaGetUserPageResp) Set(val *SchemaGetUserPageResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetUserPageResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetUserPageResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetUserPageResp(val *SchemaGetUserPageResp) *NullableSchemaGetUserPageResp { + return &NullableSchemaGetUserPageResp{value: val, isSet: true} +} + +func (v NullableSchemaGetUserPageResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetUserPageResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_user_resp.go b/model_schema_get_user_resp.go new file mode 100644 index 0000000..2d96462 --- /dev/null +++ b/model_schema_get_user_resp.go @@ -0,0 +1,978 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetUserResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetUserResp{} + +// SchemaGetUserResp struct for SchemaGetUserResp +type SchemaGetUserResp struct { + // access token + AccessToken *string `json:"access_token,omitempty"` + // answer count + AnswerCount *int32 `json:"answer_count,omitempty"` + // authority group + AuthorityGroup *int32 `json:"authority_group,omitempty"` + // avatar + Avatar *string `json:"avatar,omitempty"` + // bio markdown + Bio *string `json:"bio,omitempty"` + // bio html + BioHtml *string `json:"bio_html,omitempty"` + // create time + CreatedAt *int32 `json:"created_at,omitempty"` + // display name + DisplayName *string `json:"display_name,omitempty"` + // email + EMail *string `json:"e_mail,omitempty"` + // follow count + FollowCount *int32 `json:"follow_count,omitempty"` + // user id + Id *string `json:"id,omitempty"` + // ip info + IpInfo *string `json:"ip_info,omitempty"` + // language + Language *string `json:"language,omitempty"` + // last login date + LastLoginDate *int32 `json:"last_login_date,omitempty"` + // location + Location *string `json:"location,omitempty"` + // mail status(1 pass 2 to be verified) + MailStatus *int32 `json:"mail_status,omitempty"` + // mobile + Mobile *string `json:"mobile,omitempty"` + // notice status(1 on 2off) + NoticeStatus *int32 `json:"notice_status,omitempty"` + // question count + QuestionCount *int32 `json:"question_count,omitempty"` + // rank + Rank *int32 `json:"rank,omitempty"` + // role id + RoleId *int32 `json:"role_id,omitempty"` + // user status + Status *string `json:"status,omitempty"` + // username + Username *string `json:"username,omitempty"` + // website + Website *string `json:"website,omitempty"` +} + +// NewSchemaGetUserResp instantiates a new SchemaGetUserResp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaGetUserResp() *SchemaGetUserResp { + this := SchemaGetUserResp{} + return &this +} + +// NewSchemaGetUserRespWithDefaults instantiates a new SchemaGetUserResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaGetUserRespWithDefaults() *SchemaGetUserResp { + this := SchemaGetUserResp{} + return &this +} + +// GetAccessToken returns the AccessToken field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetAccessToken() string { + if o == nil || IsNil(o.AccessToken) { + var ret string + return ret + } + return *o.AccessToken +} + +// GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetAccessTokenOk() (*string, bool) { + if o == nil || IsNil(o.AccessToken) { + return nil, false + } + return o.AccessToken, true +} + +// HasAccessToken returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasAccessToken() bool { + if o != nil && !IsNil(o.AccessToken) { + return true + } + + return false +} + +// SetAccessToken gets a reference to the given string and assigns it to the AccessToken field. +func (o *SchemaGetUserResp) SetAccessToken(v string) { + o.AccessToken = &v +} + +// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetAnswerCount() int32 { + if o == nil || IsNil(o.AnswerCount) { + var ret int32 + return ret + } + return *o.AnswerCount +} + +// GetAnswerCountOk returns a tuple with the AnswerCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetAnswerCountOk() (*int32, bool) { + if o == nil || IsNil(o.AnswerCount) { + return nil, false + } + return o.AnswerCount, true +} + +// HasAnswerCount returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasAnswerCount() bool { + if o != nil && !IsNil(o.AnswerCount) { + return true + } + + return false +} + +// SetAnswerCount gets a reference to the given int32 and assigns it to the AnswerCount field. +func (o *SchemaGetUserResp) SetAnswerCount(v int32) { + o.AnswerCount = &v +} + +// GetAuthorityGroup returns the AuthorityGroup field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetAuthorityGroup() int32 { + if o == nil || IsNil(o.AuthorityGroup) { + var ret int32 + return ret + } + return *o.AuthorityGroup +} + +// GetAuthorityGroupOk returns a tuple with the AuthorityGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetAuthorityGroupOk() (*int32, bool) { + if o == nil || IsNil(o.AuthorityGroup) { + return nil, false + } + return o.AuthorityGroup, true +} + +// HasAuthorityGroup returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasAuthorityGroup() bool { + if o != nil && !IsNil(o.AuthorityGroup) { + return true + } + + return false +} + +// SetAuthorityGroup gets a reference to the given int32 and assigns it to the AuthorityGroup field. +func (o *SchemaGetUserResp) SetAuthorityGroup(v int32) { + o.AuthorityGroup = &v +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetAvatar() string { + if o == nil || IsNil(o.Avatar) { + var ret string + return ret + } + return *o.Avatar +} + +// GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetAvatarOk() (*string, bool) { + if o == nil || IsNil(o.Avatar) { + return nil, false + } + return o.Avatar, true +} + +// HasAvatar returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasAvatar() bool { + if o != nil && !IsNil(o.Avatar) { + return true + } + + return false +} + +// SetAvatar gets a reference to the given string and assigns it to the Avatar field. +func (o *SchemaGetUserResp) SetAvatar(v string) { + o.Avatar = &v +} + +// GetBio returns the Bio field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetBio() string { + if o == nil || IsNil(o.Bio) { + var ret string + return ret + } + return *o.Bio +} + +// GetBioOk returns a tuple with the Bio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetBioOk() (*string, bool) { + if o == nil || IsNil(o.Bio) { + return nil, false + } + return o.Bio, true +} + +// HasBio returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasBio() bool { + if o != nil && !IsNil(o.Bio) { + return true + } + + return false +} + +// SetBio gets a reference to the given string and assigns it to the Bio field. +func (o *SchemaGetUserResp) SetBio(v string) { + o.Bio = &v +} + +// GetBioHtml returns the BioHtml field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetBioHtml() string { + if o == nil || IsNil(o.BioHtml) { + var ret string + return ret + } + return *o.BioHtml +} + +// GetBioHtmlOk returns a tuple with the BioHtml field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetBioHtmlOk() (*string, bool) { + if o == nil || IsNil(o.BioHtml) { + return nil, false + } + return o.BioHtml, true +} + +// HasBioHtml returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasBioHtml() bool { + if o != nil && !IsNil(o.BioHtml) { + return true + } + + return false +} + +// SetBioHtml gets a reference to the given string and assigns it to the BioHtml field. +func (o *SchemaGetUserResp) SetBioHtml(v string) { + o.BioHtml = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetCreatedAt() int32 { + if o == nil || IsNil(o.CreatedAt) { + var ret int32 + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetCreatedAtOk() (*int32, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. +func (o *SchemaGetUserResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *SchemaGetUserResp) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetEMail returns the EMail field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetEMail() string { + if o == nil || IsNil(o.EMail) { + var ret string + return ret + } + return *o.EMail +} + +// GetEMailOk returns a tuple with the EMail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetEMailOk() (*string, bool) { + if o == nil || IsNil(o.EMail) { + return nil, false + } + return o.EMail, true +} + +// HasEMail returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasEMail() bool { + if o != nil && !IsNil(o.EMail) { + return true + } + + return false +} + +// SetEMail gets a reference to the given string and assigns it to the EMail field. +func (o *SchemaGetUserResp) SetEMail(v string) { + o.EMail = &v +} + +// GetFollowCount returns the FollowCount field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetFollowCount() int32 { + if o == nil || IsNil(o.FollowCount) { + var ret int32 + return ret + } + return *o.FollowCount +} + +// GetFollowCountOk returns a tuple with the FollowCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetFollowCountOk() (*int32, bool) { + if o == nil || IsNil(o.FollowCount) { + return nil, false + } + return o.FollowCount, true +} + +// HasFollowCount returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasFollowCount() bool { + if o != nil && !IsNil(o.FollowCount) { + return true + } + + return false +} + +// SetFollowCount gets a reference to the given int32 and assigns it to the FollowCount field. +func (o *SchemaGetUserResp) SetFollowCount(v int32) { + o.FollowCount = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SchemaGetUserResp) SetId(v string) { + o.Id = &v +} + +// GetIpInfo returns the IpInfo field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetIpInfo() string { + if o == nil || IsNil(o.IpInfo) { + var ret string + return ret + } + return *o.IpInfo +} + +// GetIpInfoOk returns a tuple with the IpInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetIpInfoOk() (*string, bool) { + if o == nil || IsNil(o.IpInfo) { + return nil, false + } + return o.IpInfo, true +} + +// HasIpInfo returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasIpInfo() bool { + if o != nil && !IsNil(o.IpInfo) { + return true + } + + return false +} + +// SetIpInfo gets a reference to the given string and assigns it to the IpInfo field. +func (o *SchemaGetUserResp) SetIpInfo(v string) { + o.IpInfo = &v +} + +// GetLanguage returns the Language field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetLanguage() string { + if o == nil || IsNil(o.Language) { + var ret string + return ret + } + return *o.Language +} + +// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetLanguageOk() (*string, bool) { + if o == nil || IsNil(o.Language) { + return nil, false + } + return o.Language, true +} + +// HasLanguage returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasLanguage() bool { + if o != nil && !IsNil(o.Language) { + return true + } + + return false +} + +// SetLanguage gets a reference to the given string and assigns it to the Language field. +func (o *SchemaGetUserResp) SetLanguage(v string) { + o.Language = &v +} + +// GetLastLoginDate returns the LastLoginDate field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetLastLoginDate() int32 { + if o == nil || IsNil(o.LastLoginDate) { + var ret int32 + return ret + } + return *o.LastLoginDate +} + +// GetLastLoginDateOk returns a tuple with the LastLoginDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetLastLoginDateOk() (*int32, bool) { + if o == nil || IsNil(o.LastLoginDate) { + return nil, false + } + return o.LastLoginDate, true +} + +// HasLastLoginDate returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasLastLoginDate() bool { + if o != nil && !IsNil(o.LastLoginDate) { + return true + } + + return false +} + +// SetLastLoginDate gets a reference to the given int32 and assigns it to the LastLoginDate field. +func (o *SchemaGetUserResp) SetLastLoginDate(v int32) { + o.LastLoginDate = &v +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetLocation() string { + if o == nil || IsNil(o.Location) { + var ret string + return ret + } + return *o.Location +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetLocationOk() (*string, bool) { + if o == nil || IsNil(o.Location) { + return nil, false + } + return o.Location, true +} + +// HasLocation returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasLocation() bool { + if o != nil && !IsNil(o.Location) { + return true + } + + return false +} + +// SetLocation gets a reference to the given string and assigns it to the Location field. +func (o *SchemaGetUserResp) SetLocation(v string) { + o.Location = &v +} + +// GetMailStatus returns the MailStatus field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetMailStatus() int32 { + if o == nil || IsNil(o.MailStatus) { + var ret int32 + return ret + } + return *o.MailStatus +} + +// GetMailStatusOk returns a tuple with the MailStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetMailStatusOk() (*int32, bool) { + if o == nil || IsNil(o.MailStatus) { + return nil, false + } + return o.MailStatus, true +} + +// HasMailStatus returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasMailStatus() bool { + if o != nil && !IsNil(o.MailStatus) { + return true + } + + return false +} + +// SetMailStatus gets a reference to the given int32 and assigns it to the MailStatus field. +func (o *SchemaGetUserResp) SetMailStatus(v int32) { + o.MailStatus = &v +} + +// GetMobile returns the Mobile field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetMobile() string { + if o == nil || IsNil(o.Mobile) { + var ret string + return ret + } + return *o.Mobile +} + +// GetMobileOk returns a tuple with the Mobile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetMobileOk() (*string, bool) { + if o == nil || IsNil(o.Mobile) { + return nil, false + } + return o.Mobile, true +} + +// HasMobile returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasMobile() bool { + if o != nil && !IsNil(o.Mobile) { + return true + } + + return false +} + +// SetMobile gets a reference to the given string and assigns it to the Mobile field. +func (o *SchemaGetUserResp) SetMobile(v string) { + o.Mobile = &v +} + +// GetNoticeStatus returns the NoticeStatus field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetNoticeStatus() int32 { + if o == nil || IsNil(o.NoticeStatus) { + var ret int32 + return ret + } + return *o.NoticeStatus +} + +// GetNoticeStatusOk returns a tuple with the NoticeStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetNoticeStatusOk() (*int32, bool) { + if o == nil || IsNil(o.NoticeStatus) { + return nil, false + } + return o.NoticeStatus, true +} + +// HasNoticeStatus returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasNoticeStatus() bool { + if o != nil && !IsNil(o.NoticeStatus) { + return true + } + + return false +} + +// SetNoticeStatus gets a reference to the given int32 and assigns it to the NoticeStatus field. +func (o *SchemaGetUserResp) SetNoticeStatus(v int32) { + o.NoticeStatus = &v +} + +// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetQuestionCount() int32 { + if o == nil || IsNil(o.QuestionCount) { + var ret int32 + return ret + } + return *o.QuestionCount +} + +// GetQuestionCountOk returns a tuple with the QuestionCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetQuestionCountOk() (*int32, bool) { + if o == nil || IsNil(o.QuestionCount) { + return nil, false + } + return o.QuestionCount, true +} + +// HasQuestionCount returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasQuestionCount() bool { + if o != nil && !IsNil(o.QuestionCount) { + return true + } + + return false +} + +// SetQuestionCount gets a reference to the given int32 and assigns it to the QuestionCount field. +func (o *SchemaGetUserResp) SetQuestionCount(v int32) { + o.QuestionCount = &v +} + +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetRank() int32 { + if o == nil || IsNil(o.Rank) { + var ret int32 + return ret + } + return *o.Rank +} + +// GetRankOk returns a tuple with the Rank field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetRankOk() (*int32, bool) { + if o == nil || IsNil(o.Rank) { + return nil, false + } + return o.Rank, true +} + +// HasRank returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasRank() bool { + if o != nil && !IsNil(o.Rank) { + return true + } + + return false +} + +// SetRank gets a reference to the given int32 and assigns it to the Rank field. +func (o *SchemaGetUserResp) SetRank(v int32) { + o.Rank = &v +} + +// GetRoleId returns the RoleId field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetRoleId() int32 { + if o == nil || IsNil(o.RoleId) { + var ret int32 + return ret + } + return *o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetRoleIdOk() (*int32, bool) { + if o == nil || IsNil(o.RoleId) { + return nil, false + } + return o.RoleId, true +} + +// HasRoleId returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasRoleId() bool { + if o != nil && !IsNil(o.RoleId) { + return true + } + + return false +} + +// SetRoleId gets a reference to the given int32 and assigns it to the RoleId field. +func (o *SchemaGetUserResp) SetRoleId(v int32) { + o.RoleId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *SchemaGetUserResp) SetStatus(v string) { + o.Status = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *SchemaGetUserResp) SetUsername(v string) { + o.Username = &v +} + +// GetWebsite returns the Website field value if set, zero value otherwise. +func (o *SchemaGetUserResp) GetWebsite() string { + if o == nil || IsNil(o.Website) { + var ret string + return ret + } + return *o.Website +} + +// GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserResp) GetWebsiteOk() (*string, bool) { + if o == nil || IsNil(o.Website) { + return nil, false + } + return o.Website, true +} + +// HasWebsite returns a boolean if a field has been set. +func (o *SchemaGetUserResp) HasWebsite() bool { + if o != nil && !IsNil(o.Website) { + return true + } + + return false +} + +// SetWebsite gets a reference to the given string and assigns it to the Website field. +func (o *SchemaGetUserResp) SetWebsite(v string) { + o.Website = &v +} + +func (o SchemaGetUserResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetUserResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccessToken) { + toSerialize["access_token"] = o.AccessToken + } + if !IsNil(o.AnswerCount) { + toSerialize["answer_count"] = o.AnswerCount + } + if !IsNil(o.AuthorityGroup) { + toSerialize["authority_group"] = o.AuthorityGroup + } + if !IsNil(o.Avatar) { + toSerialize["avatar"] = o.Avatar + } + if !IsNil(o.Bio) { + toSerialize["bio"] = o.Bio + } + if !IsNil(o.BioHtml) { + toSerialize["bio_html"] = o.BioHtml + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.EMail) { + toSerialize["e_mail"] = o.EMail + } + if !IsNil(o.FollowCount) { + toSerialize["follow_count"] = o.FollowCount + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.IpInfo) { + toSerialize["ip_info"] = o.IpInfo + } + if !IsNil(o.Language) { + toSerialize["language"] = o.Language + } + if !IsNil(o.LastLoginDate) { + toSerialize["last_login_date"] = o.LastLoginDate + } + if !IsNil(o.Location) { + toSerialize["location"] = o.Location + } + if !IsNil(o.MailStatus) { + toSerialize["mail_status"] = o.MailStatus + } + if !IsNil(o.Mobile) { + toSerialize["mobile"] = o.Mobile + } + if !IsNil(o.NoticeStatus) { + toSerialize["notice_status"] = o.NoticeStatus + } + if !IsNil(o.QuestionCount) { + toSerialize["question_count"] = o.QuestionCount + } + if !IsNil(o.Rank) { + toSerialize["rank"] = o.Rank + } + if !IsNil(o.RoleId) { + toSerialize["role_id"] = o.RoleId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.Website) { + toSerialize["website"] = o.Website + } + return toSerialize, nil +} + +type NullableSchemaGetUserResp struct { + value *SchemaGetUserResp + isSet bool +} + +func (v NullableSchemaGetUserResp) Get() *SchemaGetUserResp { + return v.value +} + +func (v *NullableSchemaGetUserResp) Set(val *SchemaGetUserResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetUserResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetUserResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetUserResp(val *SchemaGetUserResp) *NullableSchemaGetUserResp { + return &NullableSchemaGetUserResp{value: val, isSet: true} +} + +func (v NullableSchemaGetUserResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetUserResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_user_to_set_show_resp.go b/model_schema_get_user_to_set_show_resp.go new file mode 100644 index 0000000..5aacf5b --- /dev/null +++ b/model_schema_get_user_to_set_show_resp.go @@ -0,0 +1,977 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetUserToSetShowResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetUserToSetShowResp{} + +// SchemaGetUserToSetShowResp struct for SchemaGetUserToSetShowResp +type SchemaGetUserToSetShowResp struct { + // access token + AccessToken *string `json:"access_token,omitempty"` + // answer count + AnswerCount *int32 `json:"answer_count,omitempty"` + // authority group + AuthorityGroup *int32 `json:"authority_group,omitempty"` + Avatar *SchemaAvatarInfo `json:"avatar,omitempty"` + // bio markdown + Bio *string `json:"bio,omitempty"` + // bio html + BioHtml *string `json:"bio_html,omitempty"` + // create time + CreatedAt *int32 `json:"created_at,omitempty"` + // display name + DisplayName *string `json:"display_name,omitempty"` + // email + EMail *string `json:"e_mail,omitempty"` + // follow count + FollowCount *int32 `json:"follow_count,omitempty"` + // user id + Id *string `json:"id,omitempty"` + // ip info + IpInfo *string `json:"ip_info,omitempty"` + // language + Language *string `json:"language,omitempty"` + // last login date + LastLoginDate *int32 `json:"last_login_date,omitempty"` + // location + Location *string `json:"location,omitempty"` + // mail status(1 pass 2 to be verified) + MailStatus *int32 `json:"mail_status,omitempty"` + // mobile + Mobile *string `json:"mobile,omitempty"` + // notice status(1 on 2off) + NoticeStatus *int32 `json:"notice_status,omitempty"` + // question count + QuestionCount *int32 `json:"question_count,omitempty"` + // rank + Rank *int32 `json:"rank,omitempty"` + // role id + RoleId *int32 `json:"role_id,omitempty"` + // user status + Status *string `json:"status,omitempty"` + // username + Username *string `json:"username,omitempty"` + // website + Website *string `json:"website,omitempty"` +} + +// NewSchemaGetUserToSetShowResp instantiates a new SchemaGetUserToSetShowResp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaGetUserToSetShowResp() *SchemaGetUserToSetShowResp { + this := SchemaGetUserToSetShowResp{} + return &this +} + +// NewSchemaGetUserToSetShowRespWithDefaults instantiates a new SchemaGetUserToSetShowResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaGetUserToSetShowRespWithDefaults() *SchemaGetUserToSetShowResp { + this := SchemaGetUserToSetShowResp{} + return &this +} + +// GetAccessToken returns the AccessToken field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetAccessToken() string { + if o == nil || IsNil(o.AccessToken) { + var ret string + return ret + } + return *o.AccessToken +} + +// GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetAccessTokenOk() (*string, bool) { + if o == nil || IsNil(o.AccessToken) { + return nil, false + } + return o.AccessToken, true +} + +// HasAccessToken returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasAccessToken() bool { + if o != nil && !IsNil(o.AccessToken) { + return true + } + + return false +} + +// SetAccessToken gets a reference to the given string and assigns it to the AccessToken field. +func (o *SchemaGetUserToSetShowResp) SetAccessToken(v string) { + o.AccessToken = &v +} + +// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetAnswerCount() int32 { + if o == nil || IsNil(o.AnswerCount) { + var ret int32 + return ret + } + return *o.AnswerCount +} + +// GetAnswerCountOk returns a tuple with the AnswerCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetAnswerCountOk() (*int32, bool) { + if o == nil || IsNil(o.AnswerCount) { + return nil, false + } + return o.AnswerCount, true +} + +// HasAnswerCount returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasAnswerCount() bool { + if o != nil && !IsNil(o.AnswerCount) { + return true + } + + return false +} + +// SetAnswerCount gets a reference to the given int32 and assigns it to the AnswerCount field. +func (o *SchemaGetUserToSetShowResp) SetAnswerCount(v int32) { + o.AnswerCount = &v +} + +// GetAuthorityGroup returns the AuthorityGroup field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetAuthorityGroup() int32 { + if o == nil || IsNil(o.AuthorityGroup) { + var ret int32 + return ret + } + return *o.AuthorityGroup +} + +// GetAuthorityGroupOk returns a tuple with the AuthorityGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetAuthorityGroupOk() (*int32, bool) { + if o == nil || IsNil(o.AuthorityGroup) { + return nil, false + } + return o.AuthorityGroup, true +} + +// HasAuthorityGroup returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasAuthorityGroup() bool { + if o != nil && !IsNil(o.AuthorityGroup) { + return true + } + + return false +} + +// SetAuthorityGroup gets a reference to the given int32 and assigns it to the AuthorityGroup field. +func (o *SchemaGetUserToSetShowResp) SetAuthorityGroup(v int32) { + o.AuthorityGroup = &v +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetAvatar() SchemaAvatarInfo { + if o == nil || IsNil(o.Avatar) { + var ret SchemaAvatarInfo + return ret + } + return *o.Avatar +} + +// GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetAvatarOk() (*SchemaAvatarInfo, bool) { + if o == nil || IsNil(o.Avatar) { + return nil, false + } + return o.Avatar, true +} + +// HasAvatar returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasAvatar() bool { + if o != nil && !IsNil(o.Avatar) { + return true + } + + return false +} + +// SetAvatar gets a reference to the given SchemaAvatarInfo and assigns it to the Avatar field. +func (o *SchemaGetUserToSetShowResp) SetAvatar(v SchemaAvatarInfo) { + o.Avatar = &v +} + +// GetBio returns the Bio field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetBio() string { + if o == nil || IsNil(o.Bio) { + var ret string + return ret + } + return *o.Bio +} + +// GetBioOk returns a tuple with the Bio field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetBioOk() (*string, bool) { + if o == nil || IsNil(o.Bio) { + return nil, false + } + return o.Bio, true +} + +// HasBio returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasBio() bool { + if o != nil && !IsNil(o.Bio) { + return true + } + + return false +} + +// SetBio gets a reference to the given string and assigns it to the Bio field. +func (o *SchemaGetUserToSetShowResp) SetBio(v string) { + o.Bio = &v +} + +// GetBioHtml returns the BioHtml field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetBioHtml() string { + if o == nil || IsNil(o.BioHtml) { + var ret string + return ret + } + return *o.BioHtml +} + +// GetBioHtmlOk returns a tuple with the BioHtml field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetBioHtmlOk() (*string, bool) { + if o == nil || IsNil(o.BioHtml) { + return nil, false + } + return o.BioHtml, true +} + +// HasBioHtml returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasBioHtml() bool { + if o != nil && !IsNil(o.BioHtml) { + return true + } + + return false +} + +// SetBioHtml gets a reference to the given string and assigns it to the BioHtml field. +func (o *SchemaGetUserToSetShowResp) SetBioHtml(v string) { + o.BioHtml = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetCreatedAt() int32 { + if o == nil || IsNil(o.CreatedAt) { + var ret int32 + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetCreatedAtOk() (*int32, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field. +func (o *SchemaGetUserToSetShowResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *SchemaGetUserToSetShowResp) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetEMail returns the EMail field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetEMail() string { + if o == nil || IsNil(o.EMail) { + var ret string + return ret + } + return *o.EMail +} + +// GetEMailOk returns a tuple with the EMail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetEMailOk() (*string, bool) { + if o == nil || IsNil(o.EMail) { + return nil, false + } + return o.EMail, true +} + +// HasEMail returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasEMail() bool { + if o != nil && !IsNil(o.EMail) { + return true + } + + return false +} + +// SetEMail gets a reference to the given string and assigns it to the EMail field. +func (o *SchemaGetUserToSetShowResp) SetEMail(v string) { + o.EMail = &v +} + +// GetFollowCount returns the FollowCount field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetFollowCount() int32 { + if o == nil || IsNil(o.FollowCount) { + var ret int32 + return ret + } + return *o.FollowCount +} + +// GetFollowCountOk returns a tuple with the FollowCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetFollowCountOk() (*int32, bool) { + if o == nil || IsNil(o.FollowCount) { + return nil, false + } + return o.FollowCount, true +} + +// HasFollowCount returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasFollowCount() bool { + if o != nil && !IsNil(o.FollowCount) { + return true + } + + return false +} + +// SetFollowCount gets a reference to the given int32 and assigns it to the FollowCount field. +func (o *SchemaGetUserToSetShowResp) SetFollowCount(v int32) { + o.FollowCount = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SchemaGetUserToSetShowResp) SetId(v string) { + o.Id = &v +} + +// GetIpInfo returns the IpInfo field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetIpInfo() string { + if o == nil || IsNil(o.IpInfo) { + var ret string + return ret + } + return *o.IpInfo +} + +// GetIpInfoOk returns a tuple with the IpInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetIpInfoOk() (*string, bool) { + if o == nil || IsNil(o.IpInfo) { + return nil, false + } + return o.IpInfo, true +} + +// HasIpInfo returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasIpInfo() bool { + if o != nil && !IsNil(o.IpInfo) { + return true + } + + return false +} + +// SetIpInfo gets a reference to the given string and assigns it to the IpInfo field. +func (o *SchemaGetUserToSetShowResp) SetIpInfo(v string) { + o.IpInfo = &v +} + +// GetLanguage returns the Language field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetLanguage() string { + if o == nil || IsNil(o.Language) { + var ret string + return ret + } + return *o.Language +} + +// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetLanguageOk() (*string, bool) { + if o == nil || IsNil(o.Language) { + return nil, false + } + return o.Language, true +} + +// HasLanguage returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasLanguage() bool { + if o != nil && !IsNil(o.Language) { + return true + } + + return false +} + +// SetLanguage gets a reference to the given string and assigns it to the Language field. +func (o *SchemaGetUserToSetShowResp) SetLanguage(v string) { + o.Language = &v +} + +// GetLastLoginDate returns the LastLoginDate field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetLastLoginDate() int32 { + if o == nil || IsNil(o.LastLoginDate) { + var ret int32 + return ret + } + return *o.LastLoginDate +} + +// GetLastLoginDateOk returns a tuple with the LastLoginDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetLastLoginDateOk() (*int32, bool) { + if o == nil || IsNil(o.LastLoginDate) { + return nil, false + } + return o.LastLoginDate, true +} + +// HasLastLoginDate returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasLastLoginDate() bool { + if o != nil && !IsNil(o.LastLoginDate) { + return true + } + + return false +} + +// SetLastLoginDate gets a reference to the given int32 and assigns it to the LastLoginDate field. +func (o *SchemaGetUserToSetShowResp) SetLastLoginDate(v int32) { + o.LastLoginDate = &v +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetLocation() string { + if o == nil || IsNil(o.Location) { + var ret string + return ret + } + return *o.Location +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetLocationOk() (*string, bool) { + if o == nil || IsNil(o.Location) { + return nil, false + } + return o.Location, true +} + +// HasLocation returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasLocation() bool { + if o != nil && !IsNil(o.Location) { + return true + } + + return false +} + +// SetLocation gets a reference to the given string and assigns it to the Location field. +func (o *SchemaGetUserToSetShowResp) SetLocation(v string) { + o.Location = &v +} + +// GetMailStatus returns the MailStatus field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetMailStatus() int32 { + if o == nil || IsNil(o.MailStatus) { + var ret int32 + return ret + } + return *o.MailStatus +} + +// GetMailStatusOk returns a tuple with the MailStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetMailStatusOk() (*int32, bool) { + if o == nil || IsNil(o.MailStatus) { + return nil, false + } + return o.MailStatus, true +} + +// HasMailStatus returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasMailStatus() bool { + if o != nil && !IsNil(o.MailStatus) { + return true + } + + return false +} + +// SetMailStatus gets a reference to the given int32 and assigns it to the MailStatus field. +func (o *SchemaGetUserToSetShowResp) SetMailStatus(v int32) { + o.MailStatus = &v +} + +// GetMobile returns the Mobile field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetMobile() string { + if o == nil || IsNil(o.Mobile) { + var ret string + return ret + } + return *o.Mobile +} + +// GetMobileOk returns a tuple with the Mobile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetMobileOk() (*string, bool) { + if o == nil || IsNil(o.Mobile) { + return nil, false + } + return o.Mobile, true +} + +// HasMobile returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasMobile() bool { + if o != nil && !IsNil(o.Mobile) { + return true + } + + return false +} + +// SetMobile gets a reference to the given string and assigns it to the Mobile field. +func (o *SchemaGetUserToSetShowResp) SetMobile(v string) { + o.Mobile = &v +} + +// GetNoticeStatus returns the NoticeStatus field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetNoticeStatus() int32 { + if o == nil || IsNil(o.NoticeStatus) { + var ret int32 + return ret + } + return *o.NoticeStatus +} + +// GetNoticeStatusOk returns a tuple with the NoticeStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetNoticeStatusOk() (*int32, bool) { + if o == nil || IsNil(o.NoticeStatus) { + return nil, false + } + return o.NoticeStatus, true +} + +// HasNoticeStatus returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasNoticeStatus() bool { + if o != nil && !IsNil(o.NoticeStatus) { + return true + } + + return false +} + +// SetNoticeStatus gets a reference to the given int32 and assigns it to the NoticeStatus field. +func (o *SchemaGetUserToSetShowResp) SetNoticeStatus(v int32) { + o.NoticeStatus = &v +} + +// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetQuestionCount() int32 { + if o == nil || IsNil(o.QuestionCount) { + var ret int32 + return ret + } + return *o.QuestionCount +} + +// GetQuestionCountOk returns a tuple with the QuestionCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetQuestionCountOk() (*int32, bool) { + if o == nil || IsNil(o.QuestionCount) { + return nil, false + } + return o.QuestionCount, true +} + +// HasQuestionCount returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasQuestionCount() bool { + if o != nil && !IsNil(o.QuestionCount) { + return true + } + + return false +} + +// SetQuestionCount gets a reference to the given int32 and assigns it to the QuestionCount field. +func (o *SchemaGetUserToSetShowResp) SetQuestionCount(v int32) { + o.QuestionCount = &v +} + +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetRank() int32 { + if o == nil || IsNil(o.Rank) { + var ret int32 + return ret + } + return *o.Rank +} + +// GetRankOk returns a tuple with the Rank field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetRankOk() (*int32, bool) { + if o == nil || IsNil(o.Rank) { + return nil, false + } + return o.Rank, true +} + +// HasRank returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasRank() bool { + if o != nil && !IsNil(o.Rank) { + return true + } + + return false +} + +// SetRank gets a reference to the given int32 and assigns it to the Rank field. +func (o *SchemaGetUserToSetShowResp) SetRank(v int32) { + o.Rank = &v +} + +// GetRoleId returns the RoleId field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetRoleId() int32 { + if o == nil || IsNil(o.RoleId) { + var ret int32 + return ret + } + return *o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetRoleIdOk() (*int32, bool) { + if o == nil || IsNil(o.RoleId) { + return nil, false + } + return o.RoleId, true +} + +// HasRoleId returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasRoleId() bool { + if o != nil && !IsNil(o.RoleId) { + return true + } + + return false +} + +// SetRoleId gets a reference to the given int32 and assigns it to the RoleId field. +func (o *SchemaGetUserToSetShowResp) SetRoleId(v int32) { + o.RoleId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *SchemaGetUserToSetShowResp) SetStatus(v string) { + o.Status = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *SchemaGetUserToSetShowResp) SetUsername(v string) { + o.Username = &v +} + +// GetWebsite returns the Website field value if set, zero value otherwise. +func (o *SchemaGetUserToSetShowResp) GetWebsite() string { + if o == nil || IsNil(o.Website) { + var ret string + return ret + } + return *o.Website +} + +// GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetUserToSetShowResp) GetWebsiteOk() (*string, bool) { + if o == nil || IsNil(o.Website) { + return nil, false + } + return o.Website, true +} + +// HasWebsite returns a boolean if a field has been set. +func (o *SchemaGetUserToSetShowResp) HasWebsite() bool { + if o != nil && !IsNil(o.Website) { + return true + } + + return false +} + +// SetWebsite gets a reference to the given string and assigns it to the Website field. +func (o *SchemaGetUserToSetShowResp) SetWebsite(v string) { + o.Website = &v +} + +func (o SchemaGetUserToSetShowResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetUserToSetShowResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccessToken) { + toSerialize["access_token"] = o.AccessToken + } + if !IsNil(o.AnswerCount) { + toSerialize["answer_count"] = o.AnswerCount + } + if !IsNil(o.AuthorityGroup) { + toSerialize["authority_group"] = o.AuthorityGroup + } + if !IsNil(o.Avatar) { + toSerialize["avatar"] = o.Avatar + } + if !IsNil(o.Bio) { + toSerialize["bio"] = o.Bio + } + if !IsNil(o.BioHtml) { + toSerialize["bio_html"] = o.BioHtml + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.EMail) { + toSerialize["e_mail"] = o.EMail + } + if !IsNil(o.FollowCount) { + toSerialize["follow_count"] = o.FollowCount + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.IpInfo) { + toSerialize["ip_info"] = o.IpInfo + } + if !IsNil(o.Language) { + toSerialize["language"] = o.Language + } + if !IsNil(o.LastLoginDate) { + toSerialize["last_login_date"] = o.LastLoginDate + } + if !IsNil(o.Location) { + toSerialize["location"] = o.Location + } + if !IsNil(o.MailStatus) { + toSerialize["mail_status"] = o.MailStatus + } + if !IsNil(o.Mobile) { + toSerialize["mobile"] = o.Mobile + } + if !IsNil(o.NoticeStatus) { + toSerialize["notice_status"] = o.NoticeStatus + } + if !IsNil(o.QuestionCount) { + toSerialize["question_count"] = o.QuestionCount + } + if !IsNil(o.Rank) { + toSerialize["rank"] = o.Rank + } + if !IsNil(o.RoleId) { + toSerialize["role_id"] = o.RoleId + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.Website) { + toSerialize["website"] = o.Website + } + return toSerialize, nil +} + +type NullableSchemaGetUserToSetShowResp struct { + value *SchemaGetUserToSetShowResp + isSet bool +} + +func (v NullableSchemaGetUserToSetShowResp) Get() *SchemaGetUserToSetShowResp { + return v.value +} + +func (v *NullableSchemaGetUserToSetShowResp) Set(val *SchemaGetUserToSetShowResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetUserToSetShowResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetUserToSetShowResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetUserToSetShowResp(val *SchemaGetUserToSetShowResp) *NullableSchemaGetUserToSetShowResp { + return &NullableSchemaGetUserToSetShowResp{value: val, isSet: true} +} + +func (v NullableSchemaGetUserToSetShowResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetUserToSetShowResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_get_vote_with_page_resp.go b/model_schema_get_vote_with_page_resp.go new file mode 100644 index 0000000..24ac11f --- /dev/null +++ b/model_schema_get_vote_with_page_resp.go @@ -0,0 +1,423 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaGetVoteWithPageResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaGetVoteWithPageResp{} + +// SchemaGetVoteWithPageResp struct for SchemaGetVoteWithPageResp +type SchemaGetVoteWithPageResp 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"` + // title + Title *string `json:"title,omitempty"` + // url title + UrlTitle *string `json:"url_title,omitempty"` + // vote type + VoteType *string `json:"vote_type,omitempty"` +} + +// NewSchemaGetVoteWithPageResp instantiates a new SchemaGetVoteWithPageResp 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 NewSchemaGetVoteWithPageResp() *SchemaGetVoteWithPageResp { + this := SchemaGetVoteWithPageResp{} + return &this +} + +// NewSchemaGetVoteWithPageRespWithDefaults instantiates a new SchemaGetVoteWithPageResp 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 NewSchemaGetVoteWithPageRespWithDefaults() *SchemaGetVoteWithPageResp { + this := SchemaGetVoteWithPageResp{} + return &this +} + +// GetAnswerId returns the AnswerId field value if set, zero value otherwise. +func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetAnswerId(v string) { + o.AnswerId = &v +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetContent(v string) { + o.Content = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetObjectId(v string) { + o.ObjectId = &v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetQuestionId(v string) { + o.QuestionId = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetTitle(v string) { + o.Title = &v +} + +// GetUrlTitle returns the UrlTitle field value if set, zero value otherwise. +func (o *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) 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 *SchemaGetVoteWithPageResp) SetUrlTitle(v string) { + o.UrlTitle = &v +} + +// GetVoteType returns the VoteType field value if set, zero value otherwise. +func (o *SchemaGetVoteWithPageResp) GetVoteType() string { + if o == nil || IsNil(o.VoteType) { + var ret string + return ret + } + return *o.VoteType +} + +// GetVoteTypeOk returns a tuple with the VoteType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaGetVoteWithPageResp) GetVoteTypeOk() (*string, bool) { + if o == nil || IsNil(o.VoteType) { + return nil, false + } + return o.VoteType, true +} + +// HasVoteType returns a boolean if a field has been set. +func (o *SchemaGetVoteWithPageResp) HasVoteType() bool { + if o != nil && !IsNil(o.VoteType) { + return true + } + + return false +} + +// SetVoteType gets a reference to the given string and assigns it to the VoteType field. +func (o *SchemaGetVoteWithPageResp) SetVoteType(v string) { + o.VoteType = &v +} + +func (o SchemaGetVoteWithPageResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaGetVoteWithPageResp) 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.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.UrlTitle) { + toSerialize["url_title"] = o.UrlTitle + } + if !IsNil(o.VoteType) { + toSerialize["vote_type"] = o.VoteType + } + return toSerialize, nil +} + +type NullableSchemaGetVoteWithPageResp struct { + value *SchemaGetVoteWithPageResp + isSet bool +} + +func (v NullableSchemaGetVoteWithPageResp) Get() *SchemaGetVoteWithPageResp { + return v.value +} + +func (v *NullableSchemaGetVoteWithPageResp) Set(val *SchemaGetVoteWithPageResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaGetVoteWithPageResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaGetVoteWithPageResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaGetVoteWithPageResp(val *SchemaGetVoteWithPageResp) *NullableSchemaGetVoteWithPageResp { + return &NullableSchemaGetVoteWithPageResp{value: val, isSet: true} +} + +func (v NullableSchemaGetVoteWithPageResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaGetVoteWithPageResp) 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 new file mode 100644 index 0000000..a091e4c --- /dev/null +++ b/model_schema_notification_clear_id_request.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaNotificationClearIDRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaNotificationClearIDRequest{} + +// SchemaNotificationClearIDRequest struct for SchemaNotificationClearIDRequest +type SchemaNotificationClearIDRequest struct { + Id *string `json:"id,omitempty"` +} + +// NewSchemaNotificationClearIDRequest instantiates a new SchemaNotificationClearIDRequest 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 NewSchemaNotificationClearIDRequest() *SchemaNotificationClearIDRequest { + this := SchemaNotificationClearIDRequest{} + return &this +} + +// NewSchemaNotificationClearIDRequestWithDefaults instantiates a new SchemaNotificationClearIDRequest 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 NewSchemaNotificationClearIDRequestWithDefaults() *SchemaNotificationClearIDRequest { + this := SchemaNotificationClearIDRequest{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaNotificationClearIDRequest) 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 *SchemaNotificationClearIDRequest) 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 *SchemaNotificationClearIDRequest) 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 *SchemaNotificationClearIDRequest) SetId(v string) { + o.Id = &v +} + +func (o SchemaNotificationClearIDRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaNotificationClearIDRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableSchemaNotificationClearIDRequest struct { + value *SchemaNotificationClearIDRequest + isSet bool +} + +func (v NullableSchemaNotificationClearIDRequest) Get() *SchemaNotificationClearIDRequest { + return v.value +} + +func (v *NullableSchemaNotificationClearIDRequest) Set(val *SchemaNotificationClearIDRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaNotificationClearIDRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaNotificationClearIDRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaNotificationClearIDRequest(val *SchemaNotificationClearIDRequest) *NullableSchemaNotificationClearIDRequest { + return &NullableSchemaNotificationClearIDRequest{value: val, isSet: true} +} + +func (v NullableSchemaNotificationClearIDRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaNotificationClearIDRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_notification_clear_request.go b/model_schema_notification_clear_request.go new file mode 100644 index 0000000..3c33c0e --- /dev/null +++ b/model_schema_notification_clear_request.go @@ -0,0 +1,127 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaNotificationClearRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaNotificationClearRequest{} + +// SchemaNotificationClearRequest struct for SchemaNotificationClearRequest +type SchemaNotificationClearRequest struct { + // inbox achievement + Type *string `json:"type,omitempty"` +} + +// NewSchemaNotificationClearRequest instantiates a new SchemaNotificationClearRequest 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 NewSchemaNotificationClearRequest() *SchemaNotificationClearRequest { + this := SchemaNotificationClearRequest{} + return &this +} + +// NewSchemaNotificationClearRequestWithDefaults instantiates a new SchemaNotificationClearRequest 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 NewSchemaNotificationClearRequestWithDefaults() *SchemaNotificationClearRequest { + this := SchemaNotificationClearRequest{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SchemaNotificationClearRequest) 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 *SchemaNotificationClearRequest) 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 *SchemaNotificationClearRequest) 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 *SchemaNotificationClearRequest) SetType(v string) { + o.Type = &v +} + +func (o SchemaNotificationClearRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaNotificationClearRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableSchemaNotificationClearRequest struct { + value *SchemaNotificationClearRequest + isSet bool +} + +func (v NullableSchemaNotificationClearRequest) Get() *SchemaNotificationClearRequest { + return v.value +} + +func (v *NullableSchemaNotificationClearRequest) Set(val *SchemaNotificationClearRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaNotificationClearRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaNotificationClearRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaNotificationClearRequest(val *SchemaNotificationClearRequest) *NullableSchemaNotificationClearRequest { + return &NullableSchemaNotificationClearRequest{value: val, isSet: true} +} + +func (v NullableSchemaNotificationClearRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaNotificationClearRequest) 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 new file mode 100644 index 0000000..f39fea1 --- /dev/null +++ b/model_schema_operation_question_req.go @@ -0,0 +1,154 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaOperationQuestionReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaOperationQuestionReq{} + +// SchemaOperationQuestionReq struct for SchemaOperationQuestionReq +type SchemaOperationQuestionReq struct { + Id string `json:"id"` + // operation [pin unpin hide show] + Operation *string `json:"operation,omitempty"` +} + +// NewSchemaOperationQuestionReq instantiates a new SchemaOperationQuestionReq 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 NewSchemaOperationQuestionReq(id string) *SchemaOperationQuestionReq { + this := SchemaOperationQuestionReq{} + this.Id = id + return &this +} + +// NewSchemaOperationQuestionReqWithDefaults instantiates a new SchemaOperationQuestionReq 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 NewSchemaOperationQuestionReqWithDefaults() *SchemaOperationQuestionReq { + this := SchemaOperationQuestionReq{} + return &this +} + +// GetId returns the Id field value +func (o *SchemaOperationQuestionReq) 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 *SchemaOperationQuestionReq) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SchemaOperationQuestionReq) SetId(v string) { + o.Id = v +} + +// GetOperation returns the Operation field value if set, zero value otherwise. +func (o *SchemaOperationQuestionReq) GetOperation() string { + if o == nil || IsNil(o.Operation) { + var ret string + return ret + } + return *o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaOperationQuestionReq) GetOperationOk() (*string, bool) { + if o == nil || IsNil(o.Operation) { + return nil, false + } + return o.Operation, true +} + +// HasOperation returns a boolean if a field has been set. +func (o *SchemaOperationQuestionReq) HasOperation() bool { + if o != nil && !IsNil(o.Operation) { + return true + } + + return false +} + +// SetOperation gets a reference to the given string and assigns it to the Operation field. +func (o *SchemaOperationQuestionReq) SetOperation(v string) { + o.Operation = &v +} + +func (o SchemaOperationQuestionReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaOperationQuestionReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + if !IsNil(o.Operation) { + toSerialize["operation"] = o.Operation + } + return toSerialize, nil +} + +type NullableSchemaOperationQuestionReq struct { + value *SchemaOperationQuestionReq + isSet bool +} + +func (v NullableSchemaOperationQuestionReq) Get() *SchemaOperationQuestionReq { + return v.value +} + +func (v *NullableSchemaOperationQuestionReq) Set(val *SchemaOperationQuestionReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaOperationQuestionReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaOperationQuestionReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaOperationQuestionReq(val *SchemaOperationQuestionReq) *NullableSchemaOperationQuestionReq { + return &NullableSchemaOperationQuestionReq{value: val, isSet: true} +} + +func (v NullableSchemaOperationQuestionReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaOperationQuestionReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_permission_member_action.go b/model_schema_permission_member_action.go new file mode 100644 index 0000000..4e569ea --- /dev/null +++ b/model_schema_permission_member_action.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaPermissionMemberAction type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaPermissionMemberAction{} + +// SchemaPermissionMemberAction struct for SchemaPermissionMemberAction +type SchemaPermissionMemberAction struct { + Action *string `json:"action,omitempty"` + Name *string `json:"name,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewSchemaPermissionMemberAction instantiates a new SchemaPermissionMemberAction 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 NewSchemaPermissionMemberAction() *SchemaPermissionMemberAction { + this := SchemaPermissionMemberAction{} + return &this +} + +// NewSchemaPermissionMemberActionWithDefaults instantiates a new SchemaPermissionMemberAction 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 NewSchemaPermissionMemberActionWithDefaults() *SchemaPermissionMemberAction { + this := SchemaPermissionMemberAction{} + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *SchemaPermissionMemberAction) GetAction() string { + if o == nil || IsNil(o.Action) { + var ret string + 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 *SchemaPermissionMemberAction) GetActionOk() (*string, 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 *SchemaPermissionMemberAction) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *SchemaPermissionMemberAction) SetAction(v string) { + o.Action = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SchemaPermissionMemberAction) 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 *SchemaPermissionMemberAction) 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 *SchemaPermissionMemberAction) 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 *SchemaPermissionMemberAction) SetName(v string) { + o.Name = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SchemaPermissionMemberAction) 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 *SchemaPermissionMemberAction) 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 *SchemaPermissionMemberAction) 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 *SchemaPermissionMemberAction) SetType(v string) { + o.Type = &v +} + +func (o SchemaPermissionMemberAction) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaPermissionMemberAction) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableSchemaPermissionMemberAction struct { + value *SchemaPermissionMemberAction + isSet bool +} + +func (v NullableSchemaPermissionMemberAction) Get() *SchemaPermissionMemberAction { + return v.value +} + +func (v *NullableSchemaPermissionMemberAction) Set(val *SchemaPermissionMemberAction) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaPermissionMemberAction) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaPermissionMemberAction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaPermissionMemberAction(val *SchemaPermissionMemberAction) *NullableSchemaPermissionMemberAction { + return &NullableSchemaPermissionMemberAction{value: val, isSet: true} +} + +func (v NullableSchemaPermissionMemberAction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaPermissionMemberAction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_post_render_req.go b/model_schema_post_render_req.go new file mode 100644 index 0000000..7d604d8 --- /dev/null +++ b/model_schema_post_render_req.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaPostRenderReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaPostRenderReq{} + +// SchemaPostRenderReq struct for SchemaPostRenderReq +type SchemaPostRenderReq struct { + Content *string `json:"content,omitempty"` +} + +// NewSchemaPostRenderReq instantiates a new SchemaPostRenderReq 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 NewSchemaPostRenderReq() *SchemaPostRenderReq { + this := SchemaPostRenderReq{} + return &this +} + +// NewSchemaPostRenderReqWithDefaults instantiates a new SchemaPostRenderReq 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 NewSchemaPostRenderReqWithDefaults() *SchemaPostRenderReq { + this := SchemaPostRenderReq{} + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *SchemaPostRenderReq) 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 *SchemaPostRenderReq) 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 *SchemaPostRenderReq) 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 *SchemaPostRenderReq) SetContent(v string) { + o.Content = &v +} + +func (o SchemaPostRenderReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaPostRenderReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + return toSerialize, nil +} + +type NullableSchemaPostRenderReq struct { + value *SchemaPostRenderReq + isSet bool +} + +func (v NullableSchemaPostRenderReq) Get() *SchemaPostRenderReq { + return v.value +} + +func (v *NullableSchemaPostRenderReq) Set(val *SchemaPostRenderReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaPostRenderReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaPostRenderReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaPostRenderReq(val *SchemaPostRenderReq) *NullableSchemaPostRenderReq { + return &NullableSchemaPostRenderReq{value: val, isSet: true} +} + +func (v NullableSchemaPostRenderReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaPostRenderReq) 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 new file mode 100644 index 0000000..0c201f4 --- /dev/null +++ b/model_schema_question_add.go @@ -0,0 +1,174 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaQuestionAdd type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaQuestionAdd{} + +// SchemaQuestionAdd struct for SchemaQuestionAdd +type SchemaQuestionAdd struct { + // content + Content string `json:"content"` + // tags + Tags []SchemaTagItem `json:"tags"` + // question title + Title string `json:"title"` +} + +// NewSchemaQuestionAdd instantiates a new SchemaQuestionAdd 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 NewSchemaQuestionAdd(content string, tags []SchemaTagItem, title string) *SchemaQuestionAdd { + this := SchemaQuestionAdd{} + this.Content = content + this.Tags = tags + this.Title = title + return &this +} + +// 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 +func NewSchemaQuestionAddWithDefaults() *SchemaQuestionAdd { + this := SchemaQuestionAdd{} + return &this +} + +// GetContent returns the Content field value +func (o *SchemaQuestionAdd) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionAdd) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *SchemaQuestionAdd) SetContent(v string) { + o.Content = v +} + +// GetTags returns the Tags field value +func (o *SchemaQuestionAdd) GetTags() []SchemaTagItem { + if o == nil { + var ret []SchemaTagItem + return ret + } + + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionAdd) GetTagsOk() ([]SchemaTagItem, bool) { + if o == nil { + return nil, false + } + return o.Tags, true +} + +// SetTags sets field value +func (o *SchemaQuestionAdd) SetTags(v []SchemaTagItem) { + o.Tags = v +} + +// GetTitle returns the Title field value +func (o *SchemaQuestionAdd) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionAdd) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *SchemaQuestionAdd) SetTitle(v string) { + o.Title = v +} + +func (o SchemaQuestionAdd) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaQuestionAdd) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["content"] = o.Content + toSerialize["tags"] = o.Tags + toSerialize["title"] = o.Title + return toSerialize, nil +} + +type NullableSchemaQuestionAdd struct { + value *SchemaQuestionAdd + isSet bool +} + +func (v NullableSchemaQuestionAdd) Get() *SchemaQuestionAdd { + return v.value +} + +func (v *NullableSchemaQuestionAdd) Set(val *SchemaQuestionAdd) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaQuestionAdd) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaQuestionAdd) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaQuestionAdd(val *SchemaQuestionAdd) *NullableSchemaQuestionAdd { + return &NullableSchemaQuestionAdd{value: val, isSet: true} +} + +func (v NullableSchemaQuestionAdd) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaQuestionAdd) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_question_add_by_answer.go b/model_schema_question_add_by_answer.go new file mode 100644 index 0000000..ca977ac --- /dev/null +++ b/model_schema_question_add_by_answer.go @@ -0,0 +1,201 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaQuestionAddByAnswer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaQuestionAddByAnswer{} + +// SchemaQuestionAddByAnswer struct for SchemaQuestionAddByAnswer +type SchemaQuestionAddByAnswer struct { + AnswerContent string `json:"answer_content"` + // content + Content string `json:"content"` + // tags + Tags []SchemaTagItem `json:"tags"` + // question title + Title string `json:"title"` +} + +// NewSchemaQuestionAddByAnswer instantiates a new SchemaQuestionAddByAnswer 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 NewSchemaQuestionAddByAnswer(answerContent string, content string, tags []SchemaTagItem, title string) *SchemaQuestionAddByAnswer { + this := SchemaQuestionAddByAnswer{} + this.AnswerContent = answerContent + this.Content = content + this.Tags = tags + this.Title = title + return &this +} + +// NewSchemaQuestionAddByAnswerWithDefaults instantiates a new SchemaQuestionAddByAnswer 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 NewSchemaQuestionAddByAnswerWithDefaults() *SchemaQuestionAddByAnswer { + this := SchemaQuestionAddByAnswer{} + return &this +} + +// GetAnswerContent returns the AnswerContent field value +func (o *SchemaQuestionAddByAnswer) GetAnswerContent() string { + if o == nil { + var ret string + return ret + } + + return o.AnswerContent +} + +// GetAnswerContentOk returns a tuple with the AnswerContent field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionAddByAnswer) GetAnswerContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AnswerContent, true +} + +// SetAnswerContent sets field value +func (o *SchemaQuestionAddByAnswer) SetAnswerContent(v string) { + o.AnswerContent = v +} + +// GetContent returns the Content field value +func (o *SchemaQuestionAddByAnswer) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionAddByAnswer) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *SchemaQuestionAddByAnswer) SetContent(v string) { + o.Content = v +} + +// GetTags returns the Tags field value +func (o *SchemaQuestionAddByAnswer) GetTags() []SchemaTagItem { + if o == nil { + var ret []SchemaTagItem + return ret + } + + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionAddByAnswer) GetTagsOk() ([]SchemaTagItem, bool) { + if o == nil { + return nil, false + } + return o.Tags, true +} + +// SetTags sets field value +func (o *SchemaQuestionAddByAnswer) SetTags(v []SchemaTagItem) { + o.Tags = v +} + +// GetTitle returns the Title field value +func (o *SchemaQuestionAddByAnswer) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionAddByAnswer) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *SchemaQuestionAddByAnswer) SetTitle(v string) { + o.Title = v +} + +func (o SchemaQuestionAddByAnswer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaQuestionAddByAnswer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["answer_content"] = o.AnswerContent + toSerialize["content"] = o.Content + toSerialize["tags"] = o.Tags + toSerialize["title"] = o.Title + return toSerialize, nil +} + +type NullableSchemaQuestionAddByAnswer struct { + value *SchemaQuestionAddByAnswer + isSet bool +} + +func (v NullableSchemaQuestionAddByAnswer) Get() *SchemaQuestionAddByAnswer { + return v.value +} + +func (v *NullableSchemaQuestionAddByAnswer) Set(val *SchemaQuestionAddByAnswer) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaQuestionAddByAnswer) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaQuestionAddByAnswer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaQuestionAddByAnswer(val *SchemaQuestionAddByAnswer) *NullableSchemaQuestionAddByAnswer { + return &NullableSchemaQuestionAddByAnswer{value: val, isSet: true} +} + +func (v NullableSchemaQuestionAddByAnswer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaQuestionAddByAnswer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_question_page_req.go b/model_schema_question_page_req.go new file mode 100644 index 0000000..40488f5 --- /dev/null +++ b/model_schema_question_page_req.go @@ -0,0 +1,270 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaQuestionPageReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaQuestionPageReq{} + +// SchemaQuestionPageReq struct for SchemaQuestionPageReq +type SchemaQuestionPageReq struct { + OrderCond *string `json:"orderCond,omitempty"` + Page *int32 `json:"page,omitempty"` + PageSize *int32 `json:"pageSize,omitempty"` + Tag *string `json:"tag,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewSchemaQuestionPageReq instantiates a new SchemaQuestionPageReq object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaQuestionPageReq() *SchemaQuestionPageReq { + this := SchemaQuestionPageReq{} + return &this +} + +// NewSchemaQuestionPageReqWithDefaults instantiates a new SchemaQuestionPageReq object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaQuestionPageReqWithDefaults() *SchemaQuestionPageReq { + this := SchemaQuestionPageReq{} + return &this +} + +// GetOrderCond returns the OrderCond field value if set, zero value otherwise. +func (o *SchemaQuestionPageReq) GetOrderCond() string { + if o == nil || IsNil(o.OrderCond) { + var ret string + return ret + } + return *o.OrderCond +} + +// GetOrderCondOk returns a tuple with the OrderCond field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageReq) GetOrderCondOk() (*string, bool) { + if o == nil || IsNil(o.OrderCond) { + return nil, false + } + return o.OrderCond, true +} + +// HasOrderCond returns a boolean if a field has been set. +func (o *SchemaQuestionPageReq) HasOrderCond() bool { + if o != nil && !IsNil(o.OrderCond) { + return true + } + + return false +} + +// SetOrderCond gets a reference to the given string and assigns it to the OrderCond field. +func (o *SchemaQuestionPageReq) SetOrderCond(v string) { + o.OrderCond = &v +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *SchemaQuestionPageReq) GetPage() int32 { + if o == nil || IsNil(o.Page) { + var ret int32 + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageReq) GetPageOk() (*int32, bool) { + if o == nil || IsNil(o.Page) { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *SchemaQuestionPageReq) HasPage() bool { + if o != nil && !IsNil(o.Page) { + return true + } + + return false +} + +// SetPage gets a reference to the given int32 and assigns it to the Page field. +func (o *SchemaQuestionPageReq) SetPage(v int32) { + o.Page = &v +} + +// GetPageSize returns the PageSize field value if set, zero value otherwise. +func (o *SchemaQuestionPageReq) GetPageSize() int32 { + if o == nil || IsNil(o.PageSize) { + var ret int32 + return ret + } + return *o.PageSize +} + +// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageReq) GetPageSizeOk() (*int32, bool) { + if o == nil || IsNil(o.PageSize) { + return nil, false + } + return o.PageSize, true +} + +// HasPageSize returns a boolean if a field has been set. +func (o *SchemaQuestionPageReq) HasPageSize() bool { + if o != nil && !IsNil(o.PageSize) { + return true + } + + return false +} + +// SetPageSize gets a reference to the given int32 and assigns it to the PageSize field. +func (o *SchemaQuestionPageReq) SetPageSize(v int32) { + o.PageSize = &v +} + +// GetTag returns the Tag field value if set, zero value otherwise. +func (o *SchemaQuestionPageReq) GetTag() string { + if o == nil || IsNil(o.Tag) { + var ret string + return ret + } + return *o.Tag +} + +// GetTagOk returns a tuple with the Tag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageReq) GetTagOk() (*string, bool) { + if o == nil || IsNil(o.Tag) { + return nil, false + } + return o.Tag, true +} + +// HasTag returns a boolean if a field has been set. +func (o *SchemaQuestionPageReq) HasTag() bool { + if o != nil && !IsNil(o.Tag) { + return true + } + + return false +} + +// SetTag gets a reference to the given string and assigns it to the Tag field. +func (o *SchemaQuestionPageReq) SetTag(v string) { + o.Tag = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaQuestionPageReq) GetUsername() string { + if o == nil || IsNil(o.Username) { + var ret string + return ret + } + return *o.Username +} + +// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageReq) GetUsernameOk() (*string, bool) { + if o == nil || IsNil(o.Username) { + return nil, false + } + return o.Username, true +} + +// HasUsername returns a boolean if a field has been set. +func (o *SchemaQuestionPageReq) HasUsername() bool { + if o != nil && !IsNil(o.Username) { + return true + } + + return false +} + +// SetUsername gets a reference to the given string and assigns it to the Username field. +func (o *SchemaQuestionPageReq) SetUsername(v string) { + o.Username = &v +} + +func (o SchemaQuestionPageReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaQuestionPageReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.OrderCond) { + toSerialize["orderCond"] = o.OrderCond + } + if !IsNil(o.Page) { + toSerialize["page"] = o.Page + } + if !IsNil(o.PageSize) { + toSerialize["pageSize"] = o.PageSize + } + if !IsNil(o.Tag) { + toSerialize["tag"] = o.Tag + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableSchemaQuestionPageReq struct { + value *SchemaQuestionPageReq + isSet bool +} + +func (v NullableSchemaQuestionPageReq) Get() *SchemaQuestionPageReq { + return v.value +} + +func (v *NullableSchemaQuestionPageReq) Set(val *SchemaQuestionPageReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaQuestionPageReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaQuestionPageReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaQuestionPageReq(val *SchemaQuestionPageReq) *NullableSchemaQuestionPageReq { + return &NullableSchemaQuestionPageReq{value: val, isSet: true} +} + +func (v NullableSchemaQuestionPageReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaQuestionPageReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_question_page_resp.go b/model_schema_question_page_resp.go new file mode 100644 index 0000000..acaaf85 --- /dev/null +++ b/model_schema_question_page_resp.go @@ -0,0 +1,815 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaQuestionPageResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaQuestionPageResp{} + +// SchemaQuestionPageResp struct for SchemaQuestionPageResp +type SchemaQuestionPageResp struct { + // answer information + AcceptedAnswerId *string `json:"accepted_answer_id,omitempty"` + AnswerCount *int32 `json:"answer_count,omitempty"` + CollectionCount *int32 `json:"collection_count,omitempty"` + CreatedAt *int32 `json:"created_at,omitempty"` + Description *string `json:"description,omitempty"` + FollowCount *int32 `json:"follow_count,omitempty"` + Id *string `json:"id,omitempty"` + LastAnswerId *string `json:"last_answer_id,omitempty"` + // operator information + OperatedAt *int32 `json:"operated_at,omitempty"` + OperationType *string `json:"operation_type,omitempty"` + Operator *SchemaQuestionPageRespOperator `json:"operator,omitempty"` + // 1: unpin, 2: pin + Pin *int32 `json:"pin,omitempty"` + // 0: show, 1: hide + Show *int32 `json:"show,omitempty"` + Status *int32 `json:"status,omitempty"` + Tags []SchemaTagResp `json:"tags,omitempty"` + Title *string `json:"title,omitempty"` + UniqueViewCount *int32 `json:"unique_view_count,omitempty"` + UrlTitle *string `json:"url_title,omitempty"` + // question statistical information + ViewCount *int32 `json:"view_count,omitempty"` + VoteCount *int32 `json:"vote_count,omitempty"` +} + +// NewSchemaQuestionPageResp instantiates a new SchemaQuestionPageResp 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 NewSchemaQuestionPageResp() *SchemaQuestionPageResp { + this := SchemaQuestionPageResp{} + return &this +} + +// NewSchemaQuestionPageRespWithDefaults instantiates a new SchemaQuestionPageResp 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 NewSchemaQuestionPageRespWithDefaults() *SchemaQuestionPageResp { + this := SchemaQuestionPageResp{} + return &this +} + +// GetAcceptedAnswerId returns the AcceptedAnswerId field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetAcceptedAnswerId() string { + if o == nil || IsNil(o.AcceptedAnswerId) { + var ret string + return ret + } + return *o.AcceptedAnswerId +} + +// GetAcceptedAnswerIdOk returns a tuple with the AcceptedAnswerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageResp) GetAcceptedAnswerIdOk() (*string, bool) { + if o == nil || IsNil(o.AcceptedAnswerId) { + return nil, false + } + return o.AcceptedAnswerId, true +} + +// HasAcceptedAnswerId returns a boolean if a field has been set. +func (o *SchemaQuestionPageResp) HasAcceptedAnswerId() bool { + if o != nil && !IsNil(o.AcceptedAnswerId) { + return true + } + + return false +} + +// SetAcceptedAnswerId gets a reference to the given string and assigns it to the AcceptedAnswerId field. +func (o *SchemaQuestionPageResp) SetAcceptedAnswerId(v string) { + o.AcceptedAnswerId = &v +} + +// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetAnswerCount(v int32) { + o.AnswerCount = &v +} + +// GetCollectionCount returns the CollectionCount field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetCollectionCount() int32 { + if o == nil || IsNil(o.CollectionCount) { + var ret int32 + return ret + } + return *o.CollectionCount +} + +// GetCollectionCountOk returns a tuple with the CollectionCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageResp) GetCollectionCountOk() (*int32, bool) { + if o == nil || IsNil(o.CollectionCount) { + return nil, false + } + return o.CollectionCount, true +} + +// HasCollectionCount returns a boolean if a field has been set. +func (o *SchemaQuestionPageResp) HasCollectionCount() bool { + if o != nil && !IsNil(o.CollectionCount) { + return true + } + + return false +} + +// SetCollectionCount gets a reference to the given int32 and assigns it to the CollectionCount field. +func (o *SchemaQuestionPageResp) SetCollectionCount(v int32) { + o.CollectionCount = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetDescription(v string) { + o.Description = &v +} + +// GetFollowCount returns the FollowCount field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetFollowCount(v int32) { + o.FollowCount = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetId(v string) { + o.Id = &v +} + +// GetLastAnswerId returns the LastAnswerId field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetLastAnswerId() string { + if o == nil || IsNil(o.LastAnswerId) { + var ret string + return ret + } + return *o.LastAnswerId +} + +// GetLastAnswerIdOk returns a tuple with the LastAnswerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageResp) GetLastAnswerIdOk() (*string, bool) { + if o == nil || IsNil(o.LastAnswerId) { + return nil, false + } + return o.LastAnswerId, true +} + +// HasLastAnswerId returns a boolean if a field has been set. +func (o *SchemaQuestionPageResp) HasLastAnswerId() bool { + if o != nil && !IsNil(o.LastAnswerId) { + return true + } + + return false +} + +// SetLastAnswerId gets a reference to the given string and assigns it to the LastAnswerId field. +func (o *SchemaQuestionPageResp) SetLastAnswerId(v string) { + o.LastAnswerId = &v +} + +// GetOperatedAt returns the OperatedAt field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetOperatedAt() int32 { + if o == nil || IsNil(o.OperatedAt) { + var ret int32 + return ret + } + return *o.OperatedAt +} + +// GetOperatedAtOk returns a tuple with the OperatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageResp) GetOperatedAtOk() (*int32, bool) { + if o == nil || IsNil(o.OperatedAt) { + return nil, false + } + return o.OperatedAt, true +} + +// HasOperatedAt returns a boolean if a field has been set. +func (o *SchemaQuestionPageResp) HasOperatedAt() bool { + if o != nil && !IsNil(o.OperatedAt) { + return true + } + + return false +} + +// SetOperatedAt gets a reference to the given int32 and assigns it to the OperatedAt field. +func (o *SchemaQuestionPageResp) SetOperatedAt(v int32) { + o.OperatedAt = &v +} + +// GetOperationType returns the OperationType field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetOperationType() string { + if o == nil || IsNil(o.OperationType) { + var ret string + return ret + } + return *o.OperationType +} + +// GetOperationTypeOk returns a tuple with the OperationType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageResp) GetOperationTypeOk() (*string, bool) { + if o == nil || IsNil(o.OperationType) { + return nil, false + } + return o.OperationType, true +} + +// HasOperationType returns a boolean if a field has been set. +func (o *SchemaQuestionPageResp) HasOperationType() bool { + if o != nil && !IsNil(o.OperationType) { + return true + } + + return false +} + +// SetOperationType gets a reference to the given string and assigns it to the OperationType field. +func (o *SchemaQuestionPageResp) SetOperationType(v string) { + o.OperationType = &v +} + +// GetOperator returns the Operator field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetOperator() SchemaQuestionPageRespOperator { + if o == nil || IsNil(o.Operator) { + var ret SchemaQuestionPageRespOperator + return ret + } + return *o.Operator +} + +// GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageResp) GetOperatorOk() (*SchemaQuestionPageRespOperator, bool) { + if o == nil || IsNil(o.Operator) { + return nil, false + } + return o.Operator, true +} + +// HasOperator returns a boolean if a field has been set. +func (o *SchemaQuestionPageResp) HasOperator() bool { + if o != nil && !IsNil(o.Operator) { + return true + } + + return false +} + +// SetOperator gets a reference to the given SchemaQuestionPageRespOperator and assigns it to the Operator field. +func (o *SchemaQuestionPageResp) SetOperator(v SchemaQuestionPageRespOperator) { + o.Operator = &v +} + +// GetPin returns the Pin field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetPin() int32 { + if o == nil || IsNil(o.Pin) { + var ret int32 + return ret + } + return *o.Pin +} + +// GetPinOk returns a tuple with the Pin field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageResp) GetPinOk() (*int32, bool) { + if o == nil || IsNil(o.Pin) { + return nil, false + } + return o.Pin, true +} + +// HasPin returns a boolean if a field has been set. +func (o *SchemaQuestionPageResp) HasPin() bool { + if o != nil && !IsNil(o.Pin) { + return true + } + + return false +} + +// SetPin gets a reference to the given int32 and assigns it to the Pin field. +func (o *SchemaQuestionPageResp) SetPin(v int32) { + o.Pin = &v +} + +// GetShow returns the Show field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetShow() int32 { + if o == nil || IsNil(o.Show) { + var ret int32 + return ret + } + return *o.Show +} + +// GetShowOk returns a tuple with the Show field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageResp) GetShowOk() (*int32, bool) { + if o == nil || IsNil(o.Show) { + return nil, false + } + return o.Show, true +} + +// HasShow returns a boolean if a field has been set. +func (o *SchemaQuestionPageResp) HasShow() bool { + if o != nil && !IsNil(o.Show) { + return true + } + + return false +} + +// SetShow gets a reference to the given int32 and assigns it to the Show field. +func (o *SchemaQuestionPageResp) SetShow(v int32) { + o.Show = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + 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 *SchemaQuestionPageResp) GetStatusOk() (*int32, 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 *SchemaQuestionPageResp) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *SchemaQuestionPageResp) SetStatus(v int32) { + o.Status = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetTags(v []SchemaTagResp) { + o.Tags = v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetTitle(v string) { + o.Title = &v +} + +// GetUniqueViewCount returns the UniqueViewCount field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetUniqueViewCount() int32 { + if o == nil || IsNil(o.UniqueViewCount) { + var ret int32 + return ret + } + return *o.UniqueViewCount +} + +// GetUniqueViewCountOk returns a tuple with the UniqueViewCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageResp) GetUniqueViewCountOk() (*int32, bool) { + if o == nil || IsNil(o.UniqueViewCount) { + return nil, false + } + return o.UniqueViewCount, true +} + +// HasUniqueViewCount returns a boolean if a field has been set. +func (o *SchemaQuestionPageResp) HasUniqueViewCount() bool { + if o != nil && !IsNil(o.UniqueViewCount) { + return true + } + + return false +} + +// SetUniqueViewCount gets a reference to the given int32 and assigns it to the UniqueViewCount field. +func (o *SchemaQuestionPageResp) SetUniqueViewCount(v int32) { + o.UniqueViewCount = &v +} + +// GetUrlTitle returns the UrlTitle field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetUrlTitle(v string) { + o.UrlTitle = &v +} + +// GetViewCount returns the ViewCount field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) GetViewCount() int32 { + if o == nil || IsNil(o.ViewCount) { + var ret int32 + return ret + } + return *o.ViewCount +} + +// GetViewCountOk returns a tuple with the ViewCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionPageResp) GetViewCountOk() (*int32, bool) { + if o == nil || IsNil(o.ViewCount) { + return nil, false + } + return o.ViewCount, true +} + +// HasViewCount returns a boolean if a field has been set. +func (o *SchemaQuestionPageResp) HasViewCount() bool { + if o != nil && !IsNil(o.ViewCount) { + return true + } + + return false +} + +// SetViewCount gets a reference to the given int32 and assigns it to the ViewCount field. +func (o *SchemaQuestionPageResp) SetViewCount(v int32) { + o.ViewCount = &v +} + +// GetVoteCount returns the VoteCount field value if set, zero value otherwise. +func (o *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) 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 *SchemaQuestionPageResp) SetVoteCount(v int32) { + o.VoteCount = &v +} + +func (o SchemaQuestionPageResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaQuestionPageResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AcceptedAnswerId) { + toSerialize["accepted_answer_id"] = o.AcceptedAnswerId + } + if !IsNil(o.AnswerCount) { + toSerialize["answer_count"] = o.AnswerCount + } + if !IsNil(o.CollectionCount) { + toSerialize["collection_count"] = o.CollectionCount + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.FollowCount) { + toSerialize["follow_count"] = o.FollowCount + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.LastAnswerId) { + toSerialize["last_answer_id"] = o.LastAnswerId + } + if !IsNil(o.OperatedAt) { + toSerialize["operated_at"] = o.OperatedAt + } + if !IsNil(o.OperationType) { + toSerialize["operation_type"] = o.OperationType + } + if !IsNil(o.Operator) { + toSerialize["operator"] = o.Operator + } + if !IsNil(o.Pin) { + toSerialize["pin"] = o.Pin + } + if !IsNil(o.Show) { + toSerialize["show"] = o.Show + } + 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.UniqueViewCount) { + toSerialize["unique_view_count"] = o.UniqueViewCount + } + if !IsNil(o.UrlTitle) { + toSerialize["url_title"] = o.UrlTitle + } + if !IsNil(o.ViewCount) { + toSerialize["view_count"] = o.ViewCount + } + if !IsNil(o.VoteCount) { + toSerialize["vote_count"] = o.VoteCount + } + return toSerialize, nil +} + +type NullableSchemaQuestionPageResp struct { + value *SchemaQuestionPageResp + isSet bool +} + +func (v NullableSchemaQuestionPageResp) Get() *SchemaQuestionPageResp { + return v.value +} + +func (v *NullableSchemaQuestionPageResp) Set(val *SchemaQuestionPageResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaQuestionPageResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaQuestionPageResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaQuestionPageResp(val *SchemaQuestionPageResp) *NullableSchemaQuestionPageResp { + return &NullableSchemaQuestionPageResp{value: val, isSet: true} +} + +func (v NullableSchemaQuestionPageResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaQuestionPageResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_question_page_resp_operator.go b/model_schema_question_page_resp_operator.go new file mode 100644 index 0000000..01a8ca9 --- /dev/null +++ b/model_schema_question_page_resp_operator.go @@ -0,0 +1,234 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaQuestionPageRespOperator type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaQuestionPageRespOperator{} + +// SchemaQuestionPageRespOperator struct for SchemaQuestionPageRespOperator +type SchemaQuestionPageRespOperator struct { + DisplayName *string `json:"display_name,omitempty"` + Id *string `json:"id,omitempty"` + Rank *int32 `json:"rank,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewSchemaQuestionPageRespOperator instantiates a new SchemaQuestionPageRespOperator 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 NewSchemaQuestionPageRespOperator() *SchemaQuestionPageRespOperator { + this := SchemaQuestionPageRespOperator{} + return &this +} + +// NewSchemaQuestionPageRespOperatorWithDefaults instantiates a new SchemaQuestionPageRespOperator 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 NewSchemaQuestionPageRespOperatorWithDefaults() *SchemaQuestionPageRespOperator { + this := SchemaQuestionPageRespOperator{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) SetId(v string) { + o.Id = &v +} + +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) SetRank(v int32) { + o.Rank = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) 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 *SchemaQuestionPageRespOperator) SetUsername(v string) { + o.Username = &v +} + +func (o SchemaQuestionPageRespOperator) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaQuestionPageRespOperator) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Rank) { + toSerialize["rank"] = o.Rank + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableSchemaQuestionPageRespOperator struct { + value *SchemaQuestionPageRespOperator + isSet bool +} + +func (v NullableSchemaQuestionPageRespOperator) Get() *SchemaQuestionPageRespOperator { + return v.value +} + +func (v *NullableSchemaQuestionPageRespOperator) Set(val *SchemaQuestionPageRespOperator) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaQuestionPageRespOperator) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaQuestionPageRespOperator) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaQuestionPageRespOperator(val *SchemaQuestionPageRespOperator) *NullableSchemaQuestionPageRespOperator { + return &NullableSchemaQuestionPageRespOperator{value: val, isSet: true} +} + +func (v NullableSchemaQuestionPageRespOperator) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaQuestionPageRespOperator) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_question_update.go b/model_schema_question_update.go new file mode 100644 index 0000000..e2f5120 --- /dev/null +++ b/model_schema_question_update.go @@ -0,0 +1,239 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaQuestionUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaQuestionUpdate{} + +// SchemaQuestionUpdate struct for SchemaQuestionUpdate +type SchemaQuestionUpdate struct { + // content + Content string `json:"content"` + // edit summary + EditSummary *string `json:"edit_summary,omitempty"` + // question id + Id string `json:"id"` + // tags + Tags []SchemaTagItem `json:"tags"` + // question title + Title string `json:"title"` +} + +// NewSchemaQuestionUpdate instantiates a new SchemaQuestionUpdate 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 NewSchemaQuestionUpdate(content string, id string, tags []SchemaTagItem, title string) *SchemaQuestionUpdate { + this := SchemaQuestionUpdate{} + this.Content = content + this.Id = id + this.Tags = tags + this.Title = title + return &this +} + +// NewSchemaQuestionUpdateWithDefaults instantiates a new SchemaQuestionUpdate 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 NewSchemaQuestionUpdateWithDefaults() *SchemaQuestionUpdate { + this := SchemaQuestionUpdate{} + return &this +} + +// GetContent returns the Content field value +func (o *SchemaQuestionUpdate) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionUpdate) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *SchemaQuestionUpdate) SetContent(v string) { + o.Content = v +} + +// GetEditSummary returns the EditSummary field value if set, zero value otherwise. +func (o *SchemaQuestionUpdate) GetEditSummary() string { + if o == nil || IsNil(o.EditSummary) { + var ret string + return ret + } + return *o.EditSummary +} + +// GetEditSummaryOk returns a tuple with the EditSummary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaQuestionUpdate) GetEditSummaryOk() (*string, bool) { + if o == nil || IsNil(o.EditSummary) { + return nil, false + } + return o.EditSummary, true +} + +// HasEditSummary returns a boolean if a field has been set. +func (o *SchemaQuestionUpdate) HasEditSummary() bool { + if o != nil && !IsNil(o.EditSummary) { + return true + } + + return false +} + +// SetEditSummary gets a reference to the given string and assigns it to the EditSummary field. +func (o *SchemaQuestionUpdate) SetEditSummary(v string) { + o.EditSummary = &v +} + +// GetId returns the Id field value +func (o *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SchemaQuestionUpdate) SetId(v string) { + o.Id = v +} + +// GetTags returns the Tags field value +func (o *SchemaQuestionUpdate) GetTags() []SchemaTagItem { + if o == nil { + var ret []SchemaTagItem + return ret + } + + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionUpdate) GetTagsOk() ([]SchemaTagItem, bool) { + if o == nil { + return nil, false + } + return o.Tags, true +} + +// SetTags sets field value +func (o *SchemaQuestionUpdate) SetTags(v []SchemaTagItem) { + o.Tags = v +} + +// GetTitle returns the Title field value +func (o *SchemaQuestionUpdate) GetTitle() string { + if o == nil { + var ret string + return ret + } + + return o.Title +} + +// GetTitleOk returns a tuple with the Title field value +// and a boolean to check if the value has been set. +func (o *SchemaQuestionUpdate) GetTitleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Title, true +} + +// SetTitle sets field value +func (o *SchemaQuestionUpdate) SetTitle(v string) { + o.Title = v +} + +func (o SchemaQuestionUpdate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaQuestionUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["content"] = o.Content + if !IsNil(o.EditSummary) { + toSerialize["edit_summary"] = o.EditSummary + } + toSerialize["id"] = o.Id + toSerialize["tags"] = o.Tags + toSerialize["title"] = o.Title + return toSerialize, nil +} + +type NullableSchemaQuestionUpdate struct { + value *SchemaQuestionUpdate + isSet bool +} + +func (v NullableSchemaQuestionUpdate) Get() *SchemaQuestionUpdate { + return v.value +} + +func (v *NullableSchemaQuestionUpdate) Set(val *SchemaQuestionUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaQuestionUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaQuestionUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaQuestionUpdate(val *SchemaQuestionUpdate) *NullableSchemaQuestionUpdate { + return &NullableSchemaQuestionUpdate{value: val, isSet: true} +} + +func (v NullableSchemaQuestionUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaQuestionUpdate) 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 new file mode 100644 index 0000000..f9d2b99 --- /dev/null +++ b/model_schema_remove_answer_req.go @@ -0,0 +1,118 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaRemoveAnswerReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaRemoveAnswerReq{} + +// SchemaRemoveAnswerReq struct for SchemaRemoveAnswerReq +type SchemaRemoveAnswerReq struct { + // answer id + Id string `json:"id"` +} + +// NewSchemaRemoveAnswerReq instantiates a new SchemaRemoveAnswerReq 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 NewSchemaRemoveAnswerReq(id string) *SchemaRemoveAnswerReq { + this := SchemaRemoveAnswerReq{} + this.Id = id + return &this +} + +// NewSchemaRemoveAnswerReqWithDefaults instantiates a new SchemaRemoveAnswerReq 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 NewSchemaRemoveAnswerReqWithDefaults() *SchemaRemoveAnswerReq { + this := SchemaRemoveAnswerReq{} + return &this +} + +// GetId returns the Id field value +func (o *SchemaRemoveAnswerReq) 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 *SchemaRemoveAnswerReq) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SchemaRemoveAnswerReq) SetId(v string) { + o.Id = v +} + +func (o SchemaRemoveAnswerReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaRemoveAnswerReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableSchemaRemoveAnswerReq struct { + value *SchemaRemoveAnswerReq + isSet bool +} + +func (v NullableSchemaRemoveAnswerReq) Get() *SchemaRemoveAnswerReq { + return v.value +} + +func (v *NullableSchemaRemoveAnswerReq) Set(val *SchemaRemoveAnswerReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaRemoveAnswerReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaRemoveAnswerReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaRemoveAnswerReq(val *SchemaRemoveAnswerReq) *NullableSchemaRemoveAnswerReq { + return &NullableSchemaRemoveAnswerReq{value: val, isSet: true} +} + +func (v NullableSchemaRemoveAnswerReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaRemoveAnswerReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_remove_comment_req.go b/model_schema_remove_comment_req.go new file mode 100644 index 0000000..2fdf369 --- /dev/null +++ b/model_schema_remove_comment_req.go @@ -0,0 +1,118 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaRemoveCommentReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaRemoveCommentReq{} + +// SchemaRemoveCommentReq struct for SchemaRemoveCommentReq +type SchemaRemoveCommentReq struct { + // comment id + CommentId string `json:"comment_id"` +} + +// NewSchemaRemoveCommentReq instantiates a new SchemaRemoveCommentReq 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 NewSchemaRemoveCommentReq(commentId string) *SchemaRemoveCommentReq { + this := SchemaRemoveCommentReq{} + this.CommentId = commentId + return &this +} + +// NewSchemaRemoveCommentReqWithDefaults instantiates a new SchemaRemoveCommentReq 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 NewSchemaRemoveCommentReqWithDefaults() *SchemaRemoveCommentReq { + this := SchemaRemoveCommentReq{} + return &this +} + +// GetCommentId returns the CommentId field value +func (o *SchemaRemoveCommentReq) GetCommentId() string { + if o == nil { + var ret string + return ret + } + + return o.CommentId +} + +// GetCommentIdOk returns a tuple with the CommentId field value +// and a boolean to check if the value has been set. +func (o *SchemaRemoveCommentReq) GetCommentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommentId, true +} + +// SetCommentId sets field value +func (o *SchemaRemoveCommentReq) SetCommentId(v string) { + o.CommentId = v +} + +func (o SchemaRemoveCommentReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaRemoveCommentReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["comment_id"] = o.CommentId + return toSerialize, nil +} + +type NullableSchemaRemoveCommentReq struct { + value *SchemaRemoveCommentReq + isSet bool +} + +func (v NullableSchemaRemoveCommentReq) Get() *SchemaRemoveCommentReq { + return v.value +} + +func (v *NullableSchemaRemoveCommentReq) Set(val *SchemaRemoveCommentReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaRemoveCommentReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaRemoveCommentReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaRemoveCommentReq(val *SchemaRemoveCommentReq) *NullableSchemaRemoveCommentReq { + return &NullableSchemaRemoveCommentReq{value: val, isSet: true} +} + +func (v NullableSchemaRemoveCommentReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaRemoveCommentReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_remove_question_req.go b/model_schema_remove_question_req.go new file mode 100644 index 0000000..dc118dd --- /dev/null +++ b/model_schema_remove_question_req.go @@ -0,0 +1,118 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaRemoveQuestionReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaRemoveQuestionReq{} + +// SchemaRemoveQuestionReq struct for SchemaRemoveQuestionReq +type SchemaRemoveQuestionReq struct { + // question id + Id string `json:"id"` +} + +// NewSchemaRemoveQuestionReq instantiates a new SchemaRemoveQuestionReq 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 NewSchemaRemoveQuestionReq(id string) *SchemaRemoveQuestionReq { + this := SchemaRemoveQuestionReq{} + this.Id = id + return &this +} + +// NewSchemaRemoveQuestionReqWithDefaults instantiates a new SchemaRemoveQuestionReq 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 NewSchemaRemoveQuestionReqWithDefaults() *SchemaRemoveQuestionReq { + this := SchemaRemoveQuestionReq{} + return &this +} + +// GetId returns the Id field value +func (o *SchemaRemoveQuestionReq) 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 *SchemaRemoveQuestionReq) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SchemaRemoveQuestionReq) SetId(v string) { + o.Id = v +} + +func (o SchemaRemoveQuestionReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaRemoveQuestionReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableSchemaRemoveQuestionReq struct { + value *SchemaRemoveQuestionReq + isSet bool +} + +func (v NullableSchemaRemoveQuestionReq) Get() *SchemaRemoveQuestionReq { + return v.value +} + +func (v *NullableSchemaRemoveQuestionReq) Set(val *SchemaRemoveQuestionReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaRemoveQuestionReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaRemoveQuestionReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaRemoveQuestionReq(val *SchemaRemoveQuestionReq) *NullableSchemaRemoveQuestionReq { + return &NullableSchemaRemoveQuestionReq{value: val, isSet: true} +} + +func (v NullableSchemaRemoveQuestionReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaRemoveQuestionReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_remove_tag_req.go b/model_schema_remove_tag_req.go new file mode 100644 index 0000000..ca452ac --- /dev/null +++ b/model_schema_remove_tag_req.go @@ -0,0 +1,118 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaRemoveTagReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaRemoveTagReq{} + +// SchemaRemoveTagReq struct for SchemaRemoveTagReq +type SchemaRemoveTagReq struct { + // tag_id + TagId string `json:"tag_id"` +} + +// NewSchemaRemoveTagReq instantiates a new SchemaRemoveTagReq 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 NewSchemaRemoveTagReq(tagId string) *SchemaRemoveTagReq { + this := SchemaRemoveTagReq{} + this.TagId = tagId + return &this +} + +// NewSchemaRemoveTagReqWithDefaults instantiates a new SchemaRemoveTagReq 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 NewSchemaRemoveTagReqWithDefaults() *SchemaRemoveTagReq { + this := SchemaRemoveTagReq{} + return &this +} + +// GetTagId returns the TagId field value +func (o *SchemaRemoveTagReq) GetTagId() string { + if o == nil { + var ret string + return ret + } + + return o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value +// and a boolean to check if the value has been set. +func (o *SchemaRemoveTagReq) GetTagIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TagId, true +} + +// SetTagId sets field value +func (o *SchemaRemoveTagReq) SetTagId(v string) { + o.TagId = v +} + +func (o SchemaRemoveTagReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaRemoveTagReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["tag_id"] = o.TagId + return toSerialize, nil +} + +type NullableSchemaRemoveTagReq struct { + value *SchemaRemoveTagReq + isSet bool +} + +func (v NullableSchemaRemoveTagReq) Get() *SchemaRemoveTagReq { + return v.value +} + +func (v *NullableSchemaRemoveTagReq) Set(val *SchemaRemoveTagReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaRemoveTagReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaRemoveTagReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaRemoveTagReq(val *SchemaRemoveTagReq) *NullableSchemaRemoveTagReq { + return &NullableSchemaRemoveTagReq{value: val, isSet: true} +} + +func (v NullableSchemaRemoveTagReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaRemoveTagReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_reopen_question_req.go b/model_schema_reopen_question_req.go new file mode 100644 index 0000000..db1147a --- /dev/null +++ b/model_schema_reopen_question_req.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaReopenQuestionReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaReopenQuestionReq{} + +// SchemaReopenQuestionReq struct for SchemaReopenQuestionReq +type SchemaReopenQuestionReq struct { + QuestionId *string `json:"question_id,omitempty"` +} + +// NewSchemaReopenQuestionReq instantiates a new SchemaReopenQuestionReq 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 NewSchemaReopenQuestionReq() *SchemaReopenQuestionReq { + this := SchemaReopenQuestionReq{} + return &this +} + +// NewSchemaReopenQuestionReqWithDefaults instantiates a new SchemaReopenQuestionReq 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 NewSchemaReopenQuestionReqWithDefaults() *SchemaReopenQuestionReq { + this := SchemaReopenQuestionReq{} + return &this +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaReopenQuestionReq) 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 *SchemaReopenQuestionReq) 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 *SchemaReopenQuestionReq) 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 *SchemaReopenQuestionReq) SetQuestionId(v string) { + o.QuestionId = &v +} + +func (o SchemaReopenQuestionReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaReopenQuestionReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.QuestionId) { + toSerialize["question_id"] = o.QuestionId + } + return toSerialize, nil +} + +type NullableSchemaReopenQuestionReq struct { + value *SchemaReopenQuestionReq + isSet bool +} + +func (v NullableSchemaReopenQuestionReq) Get() *SchemaReopenQuestionReq { + return v.value +} + +func (v *NullableSchemaReopenQuestionReq) Set(val *SchemaReopenQuestionReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaReopenQuestionReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaReopenQuestionReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaReopenQuestionReq(val *SchemaReopenQuestionReq) *NullableSchemaReopenQuestionReq { + return &NullableSchemaReopenQuestionReq{value: val, isSet: true} +} + +func (v NullableSchemaReopenQuestionReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaReopenQuestionReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_report_handle_req.go b/model_schema_report_handle_req.go new file mode 100644 index 0000000..eacccce --- /dev/null +++ b/model_schema_report_handle_req.go @@ -0,0 +1,180 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaReportHandleReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaReportHandleReq{} + +// SchemaReportHandleReq struct for SchemaReportHandleReq +type SchemaReportHandleReq struct { + FlaggedContent *string `json:"flagged_content,omitempty"` + FlaggedType int32 `json:"flagged_type"` + Id string `json:"id"` +} + +// NewSchemaReportHandleReq instantiates a new SchemaReportHandleReq 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 NewSchemaReportHandleReq(flaggedType int32, id string) *SchemaReportHandleReq { + this := SchemaReportHandleReq{} + this.FlaggedType = flaggedType + this.Id = id + return &this +} + +// NewSchemaReportHandleReqWithDefaults instantiates a new SchemaReportHandleReq 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 NewSchemaReportHandleReqWithDefaults() *SchemaReportHandleReq { + this := SchemaReportHandleReq{} + return &this +} + +// GetFlaggedContent returns the FlaggedContent field value if set, zero value otherwise. +func (o *SchemaReportHandleReq) GetFlaggedContent() string { + if o == nil || IsNil(o.FlaggedContent) { + var ret string + return ret + } + return *o.FlaggedContent +} + +// GetFlaggedContentOk returns a tuple with the FlaggedContent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaReportHandleReq) GetFlaggedContentOk() (*string, bool) { + if o == nil || IsNil(o.FlaggedContent) { + return nil, false + } + return o.FlaggedContent, true +} + +// HasFlaggedContent returns a boolean if a field has been set. +func (o *SchemaReportHandleReq) HasFlaggedContent() bool { + if o != nil && !IsNil(o.FlaggedContent) { + return true + } + + return false +} + +// SetFlaggedContent gets a reference to the given string and assigns it to the FlaggedContent field. +func (o *SchemaReportHandleReq) SetFlaggedContent(v string) { + o.FlaggedContent = &v +} + +// GetFlaggedType returns the FlaggedType field value +func (o *SchemaReportHandleReq) GetFlaggedType() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.FlaggedType +} + +// GetFlaggedTypeOk returns a tuple with the FlaggedType field value +// and a boolean to check if the value has been set. +func (o *SchemaReportHandleReq) GetFlaggedTypeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.FlaggedType, true +} + +// SetFlaggedType sets field value +func (o *SchemaReportHandleReq) SetFlaggedType(v int32) { + o.FlaggedType = v +} + +// GetId returns the Id field value +func (o *SchemaReportHandleReq) 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 *SchemaReportHandleReq) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SchemaReportHandleReq) SetId(v string) { + o.Id = v +} + +func (o SchemaReportHandleReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaReportHandleReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.FlaggedContent) { + toSerialize["flagged_content"] = o.FlaggedContent + } + toSerialize["flagged_type"] = o.FlaggedType + toSerialize["id"] = o.Id + return toSerialize, nil +} + +type NullableSchemaReportHandleReq struct { + value *SchemaReportHandleReq + isSet bool +} + +func (v NullableSchemaReportHandleReq) Get() *SchemaReportHandleReq { + return v.value +} + +func (v *NullableSchemaReportHandleReq) Set(val *SchemaReportHandleReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaReportHandleReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaReportHandleReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaReportHandleReq(val *SchemaReportHandleReq) *NullableSchemaReportHandleReq { + return &NullableSchemaReportHandleReq{value: val, isSet: true} +} + +func (v NullableSchemaReportHandleReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaReportHandleReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_revision_audit_req.go b/model_schema_revision_audit_req.go new file mode 100644 index 0000000..5ff3a39 --- /dev/null +++ b/model_schema_revision_audit_req.go @@ -0,0 +1,146 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaRevisionAuditReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaRevisionAuditReq{} + +// SchemaRevisionAuditReq struct for SchemaRevisionAuditReq +type SchemaRevisionAuditReq struct { + // object id + Id string `json:"id"` + // approve or reject + Operation string `json:"operation"` +} + +// NewSchemaRevisionAuditReq instantiates a new SchemaRevisionAuditReq 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 NewSchemaRevisionAuditReq(id string, operation string) *SchemaRevisionAuditReq { + this := SchemaRevisionAuditReq{} + this.Id = id + this.Operation = operation + return &this +} + +// NewSchemaRevisionAuditReqWithDefaults instantiates a new SchemaRevisionAuditReq 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 NewSchemaRevisionAuditReqWithDefaults() *SchemaRevisionAuditReq { + this := SchemaRevisionAuditReq{} + return &this +} + +// GetId returns the Id field value +func (o *SchemaRevisionAuditReq) 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 *SchemaRevisionAuditReq) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SchemaRevisionAuditReq) SetId(v string) { + o.Id = v +} + +// GetOperation returns the Operation field value +func (o *SchemaRevisionAuditReq) GetOperation() string { + if o == nil { + var ret string + return ret + } + + return o.Operation +} + +// GetOperationOk returns a tuple with the Operation field value +// and a boolean to check if the value has been set. +func (o *SchemaRevisionAuditReq) GetOperationOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Operation, true +} + +// SetOperation sets field value +func (o *SchemaRevisionAuditReq) SetOperation(v string) { + o.Operation = v +} + +func (o SchemaRevisionAuditReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaRevisionAuditReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["operation"] = o.Operation + return toSerialize, nil +} + +type NullableSchemaRevisionAuditReq struct { + value *SchemaRevisionAuditReq + isSet bool +} + +func (v NullableSchemaRevisionAuditReq) Get() *SchemaRevisionAuditReq { + return v.value +} + +func (v *NullableSchemaRevisionAuditReq) Set(val *SchemaRevisionAuditReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaRevisionAuditReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaRevisionAuditReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaRevisionAuditReq(val *SchemaRevisionAuditReq) *NullableSchemaRevisionAuditReq { + return &NullableSchemaRevisionAuditReq{value: val, isSet: true} +} + +func (v NullableSchemaRevisionAuditReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaRevisionAuditReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_search_list_resp.go b/model_schema_search_list_resp.go new file mode 100644 index 0000000..56a5b96 --- /dev/null +++ b/model_schema_search_list_resp.go @@ -0,0 +1,200 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSearchListResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSearchListResp{} + +// SchemaSearchListResp struct for SchemaSearchListResp +type SchemaSearchListResp struct { + Count *int32 `json:"count,omitempty"` + // extra fields + Extra map[string]interface{} `json:"extra,omitempty"` + // search response + List []SchemaSearchResp `json:"list,omitempty"` +} + +// NewSchemaSearchListResp instantiates a new SchemaSearchListResp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaSearchListResp() *SchemaSearchListResp { + this := SchemaSearchListResp{} + return &this +} + +// NewSchemaSearchListRespWithDefaults instantiates a new SchemaSearchListResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaSearchListRespWithDefaults() *SchemaSearchListResp { + this := SchemaSearchListResp{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *SchemaSearchListResp) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchListResp) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *SchemaSearchListResp) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *SchemaSearchListResp) SetCount(v int32) { + o.Count = &v +} + +// GetExtra returns the Extra field value if set, zero value otherwise. +func (o *SchemaSearchListResp) GetExtra() map[string]interface{} { + if o == nil || IsNil(o.Extra) { + var ret map[string]interface{} + return ret + } + return o.Extra +} + +// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchListResp) GetExtraOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Extra) { + return map[string]interface{}{}, false + } + return o.Extra, true +} + +// HasExtra returns a boolean if a field has been set. +func (o *SchemaSearchListResp) HasExtra() bool { + if o != nil && !IsNil(o.Extra) { + return true + } + + return false +} + +// SetExtra gets a reference to the given map[string]interface{} and assigns it to the Extra field. +func (o *SchemaSearchListResp) SetExtra(v map[string]interface{}) { + o.Extra = v +} + +// GetList returns the List field value if set, zero value otherwise. +func (o *SchemaSearchListResp) GetList() []SchemaSearchResp { + if o == nil || IsNil(o.List) { + var ret []SchemaSearchResp + return ret + } + return o.List +} + +// GetListOk returns a tuple with the List field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchListResp) GetListOk() ([]SchemaSearchResp, bool) { + if o == nil || IsNil(o.List) { + return nil, false + } + return o.List, true +} + +// HasList returns a boolean if a field has been set. +func (o *SchemaSearchListResp) HasList() bool { + if o != nil && !IsNil(o.List) { + return true + } + + return false +} + +// SetList gets a reference to the given []SchemaSearchResp and assigns it to the List field. +func (o *SchemaSearchListResp) SetList(v []SchemaSearchResp) { + o.List = v +} + +func (o SchemaSearchListResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSearchListResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.Extra) { + toSerialize["extra"] = o.Extra + } + if !IsNil(o.List) { + toSerialize["list"] = o.List + } + return toSerialize, nil +} + +type NullableSchemaSearchListResp struct { + value *SchemaSearchListResp + isSet bool +} + +func (v NullableSchemaSearchListResp) Get() *SchemaSearchListResp { + return v.value +} + +func (v *NullableSchemaSearchListResp) Set(val *SchemaSearchListResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSearchListResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSearchListResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSearchListResp(val *SchemaSearchListResp) *NullableSchemaSearchListResp { + return &NullableSchemaSearchListResp{value: val, isSet: true} +} + +func (v NullableSchemaSearchListResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSearchListResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_search_object.go b/model_schema_search_object.go new file mode 100644 index 0000000..06d9fb6 --- /dev/null +++ b/model_schema_search_object.go @@ -0,0 +1,488 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSearchObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSearchObject{} + +// SchemaSearchObject struct for SchemaSearchObject +type SchemaSearchObject 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 *SchemaUserBasicInfo `json:"user_info,omitempty"` + VoteCount *int32 `json:"vote_count,omitempty"` +} + +// NewSchemaSearchObject instantiates a new SchemaSearchObject 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 NewSchemaSearchObject() *SchemaSearchObject { + this := SchemaSearchObject{} + return &this +} + +// NewSchemaSearchObjectWithDefaults instantiates a new SchemaSearchObject 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 NewSchemaSearchObjectWithDefaults() *SchemaSearchObject { + this := SchemaSearchObject{} + return &this +} + +// GetAccepted returns the Accepted field value if set, zero value otherwise. +func (o *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) SetAccepted(v bool) { + o.Accepted = &v +} + +// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise. +func (o *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) SetAnswerCount(v int32) { + o.AnswerCount = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) SetCreatedAt(v int32) { + o.CreatedAt = &v +} + +// GetExcerpt returns the Excerpt field value if set, zero value otherwise. +func (o *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) SetExcerpt(v string) { + o.Excerpt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) SetId(v string) { + o.Id = &v +} + +// GetQuestionId returns the QuestionId field value if set, zero value otherwise. +func (o *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) SetQuestionId(v string) { + o.QuestionId = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) SetStatus(v string) { + o.Status = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) SetTags(v []SchemaTagResp) { + o.Tags = v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) SetTitle(v string) { + o.Title = &v +} + +// GetUserInfo returns the UserInfo field value if set, zero value otherwise. +func (o *SchemaSearchObject) GetUserInfo() SchemaUserBasicInfo { + if o == nil || IsNil(o.UserInfo) { + var ret SchemaUserBasicInfo + 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 *SchemaSearchObject) GetUserInfoOk() (*SchemaUserBasicInfo, 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 *SchemaSearchObject) HasUserInfo() bool { + if o != nil && !IsNil(o.UserInfo) { + return true + } + + return false +} + +// SetUserInfo gets a reference to the given SchemaUserBasicInfo and assigns it to the UserInfo field. +func (o *SchemaSearchObject) SetUserInfo(v SchemaUserBasicInfo) { + o.UserInfo = &v +} + +// GetVoteCount returns the VoteCount field value if set, zero value otherwise. +func (o *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) 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 *SchemaSearchObject) SetVoteCount(v int32) { + o.VoteCount = &v +} + +func (o SchemaSearchObject) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSearchObject) 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 NullableSchemaSearchObject struct { + value *SchemaSearchObject + isSet bool +} + +func (v NullableSchemaSearchObject) Get() *SchemaSearchObject { + return v.value +} + +func (v *NullableSchemaSearchObject) Set(val *SchemaSearchObject) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSearchObject) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSearchObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSearchObject(val *SchemaSearchObject) *NullableSchemaSearchObject { + return &NullableSchemaSearchObject{value: val, isSet: true} +} + +func (v NullableSchemaSearchObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSearchObject) 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 new file mode 100644 index 0000000..882bc16 --- /dev/null +++ b/model_schema_search_resp.go @@ -0,0 +1,163 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSearchResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSearchResp{} + +// SchemaSearchResp struct for SchemaSearchResp +type SchemaSearchResp struct { + Object *SchemaSearchObject `json:"object,omitempty"` + // object_type + ObjectType *string `json:"object_type,omitempty"` +} + +// NewSchemaSearchResp instantiates a new SchemaSearchResp 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 NewSchemaSearchResp() *SchemaSearchResp { + this := SchemaSearchResp{} + return &this +} + +// NewSchemaSearchRespWithDefaults instantiates a new SchemaSearchResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaSearchRespWithDefaults() *SchemaSearchResp { + this := SchemaSearchResp{} + return &this +} + +// GetObject returns the Object field value if set, zero value otherwise. +func (o *SchemaSearchResp) GetObject() SchemaSearchObject { + if o == nil || IsNil(o.Object) { + var ret SchemaSearchObject + return ret + } + return *o.Object +} + +// GetObjectOk returns a tuple with the Object field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSearchResp) GetObjectOk() (*SchemaSearchObject, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return o.Object, true +} + +// HasObject returns a boolean if a field has been set. +func (o *SchemaSearchResp) HasObject() bool { + if o != nil && !IsNil(o.Object) { + return true + } + + return false +} + +// SetObject gets a reference to the given SchemaSearchObject and assigns it to the Object field. +func (o *SchemaSearchResp) SetObject(v SchemaSearchObject) { + o.Object = &v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *SchemaSearchResp) GetObjectType() string { + if o == nil || IsNil(o.ObjectType) { + var ret string + 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 *SchemaSearchResp) 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 *SchemaSearchResp) 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 *SchemaSearchResp) SetObjectType(v string) { + o.ObjectType = &v +} + +func (o SchemaSearchResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSearchResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Object) { + toSerialize["object"] = o.Object + } + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + return toSerialize, nil +} + +type NullableSchemaSearchResp struct { + value *SchemaSearchResp + isSet bool +} + +func (v NullableSchemaSearchResp) Get() *SchemaSearchResp { + return v.value +} + +func (v *NullableSchemaSearchResp) Set(val *SchemaSearchResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSearchResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSearchResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSearchResp(val *SchemaSearchResp) *NullableSchemaSearchResp { + return &NullableSchemaSearchResp{value: val, isSet: true} +} + +func (v NullableSchemaSearchResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSearchResp) 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 new file mode 100644 index 0000000..d264693 --- /dev/null +++ b/model_schema_site_branding_req.go @@ -0,0 +1,234 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteBrandingReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteBrandingReq{} + +// SchemaSiteBrandingReq struct for SchemaSiteBrandingReq +type SchemaSiteBrandingReq struct { + Favicon *string `json:"favicon,omitempty"` + Logo *string `json:"logo,omitempty"` + MobileLogo *string `json:"mobile_logo,omitempty"` + SquareIcon *string `json:"square_icon,omitempty"` +} + +// NewSchemaSiteBrandingReq instantiates a new SchemaSiteBrandingReq 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 NewSchemaSiteBrandingReq() *SchemaSiteBrandingReq { + this := SchemaSiteBrandingReq{} + return &this +} + +// NewSchemaSiteBrandingReqWithDefaults instantiates a new SchemaSiteBrandingReq 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 NewSchemaSiteBrandingReqWithDefaults() *SchemaSiteBrandingReq { + this := SchemaSiteBrandingReq{} + return &this +} + +// GetFavicon returns the Favicon field value if set, zero value otherwise. +func (o *SchemaSiteBrandingReq) GetFavicon() string { + if o == nil || IsNil(o.Favicon) { + var ret string + return ret + } + return *o.Favicon +} + +// GetFaviconOk returns a tuple with the Favicon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteBrandingReq) GetFaviconOk() (*string, bool) { + if o == nil || IsNil(o.Favicon) { + return nil, false + } + return o.Favicon, true +} + +// HasFavicon returns a boolean if a field has been set. +func (o *SchemaSiteBrandingReq) HasFavicon() bool { + if o != nil && !IsNil(o.Favicon) { + return true + } + + return false +} + +// SetFavicon gets a reference to the given string and assigns it to the Favicon field. +func (o *SchemaSiteBrandingReq) SetFavicon(v string) { + o.Favicon = &v +} + +// GetLogo returns the Logo field value if set, zero value otherwise. +func (o *SchemaSiteBrandingReq) GetLogo() string { + if o == nil || IsNil(o.Logo) { + var ret string + return ret + } + return *o.Logo +} + +// GetLogoOk returns a tuple with the Logo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteBrandingReq) GetLogoOk() (*string, bool) { + if o == nil || IsNil(o.Logo) { + return nil, false + } + return o.Logo, true +} + +// HasLogo returns a boolean if a field has been set. +func (o *SchemaSiteBrandingReq) HasLogo() bool { + if o != nil && !IsNil(o.Logo) { + return true + } + + return false +} + +// SetLogo gets a reference to the given string and assigns it to the Logo field. +func (o *SchemaSiteBrandingReq) SetLogo(v string) { + o.Logo = &v +} + +// GetMobileLogo returns the MobileLogo field value if set, zero value otherwise. +func (o *SchemaSiteBrandingReq) GetMobileLogo() string { + if o == nil || IsNil(o.MobileLogo) { + var ret string + return ret + } + return *o.MobileLogo +} + +// GetMobileLogoOk returns a tuple with the MobileLogo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteBrandingReq) GetMobileLogoOk() (*string, bool) { + if o == nil || IsNil(o.MobileLogo) { + return nil, false + } + return o.MobileLogo, true +} + +// HasMobileLogo returns a boolean if a field has been set. +func (o *SchemaSiteBrandingReq) HasMobileLogo() bool { + if o != nil && !IsNil(o.MobileLogo) { + return true + } + + return false +} + +// SetMobileLogo gets a reference to the given string and assigns it to the MobileLogo field. +func (o *SchemaSiteBrandingReq) SetMobileLogo(v string) { + o.MobileLogo = &v +} + +// GetSquareIcon returns the SquareIcon field value if set, zero value otherwise. +func (o *SchemaSiteBrandingReq) GetSquareIcon() string { + if o == nil || IsNil(o.SquareIcon) { + var ret string + return ret + } + return *o.SquareIcon +} + +// GetSquareIconOk returns a tuple with the SquareIcon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteBrandingReq) GetSquareIconOk() (*string, bool) { + if o == nil || IsNil(o.SquareIcon) { + return nil, false + } + return o.SquareIcon, true +} + +// HasSquareIcon returns a boolean if a field has been set. +func (o *SchemaSiteBrandingReq) HasSquareIcon() bool { + if o != nil && !IsNil(o.SquareIcon) { + return true + } + + return false +} + +// SetSquareIcon gets a reference to the given string and assigns it to the SquareIcon field. +func (o *SchemaSiteBrandingReq) SetSquareIcon(v string) { + o.SquareIcon = &v +} + +func (o SchemaSiteBrandingReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteBrandingReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Favicon) { + toSerialize["favicon"] = o.Favicon + } + if !IsNil(o.Logo) { + toSerialize["logo"] = o.Logo + } + if !IsNil(o.MobileLogo) { + toSerialize["mobile_logo"] = o.MobileLogo + } + if !IsNil(o.SquareIcon) { + toSerialize["square_icon"] = o.SquareIcon + } + return toSerialize, nil +} + +type NullableSchemaSiteBrandingReq struct { + value *SchemaSiteBrandingReq + isSet bool +} + +func (v NullableSchemaSiteBrandingReq) Get() *SchemaSiteBrandingReq { + return v.value +} + +func (v *NullableSchemaSiteBrandingReq) Set(val *SchemaSiteBrandingReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteBrandingReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteBrandingReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteBrandingReq(val *SchemaSiteBrandingReq) *NullableSchemaSiteBrandingReq { + return &NullableSchemaSiteBrandingReq{value: val, isSet: true} +} + +func (v NullableSchemaSiteBrandingReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteBrandingReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_branding_resp.go b/model_schema_site_branding_resp.go new file mode 100644 index 0000000..81a95d8 --- /dev/null +++ b/model_schema_site_branding_resp.go @@ -0,0 +1,234 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteBrandingResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteBrandingResp{} + +// SchemaSiteBrandingResp struct for SchemaSiteBrandingResp +type SchemaSiteBrandingResp struct { + Favicon *string `json:"favicon,omitempty"` + Logo *string `json:"logo,omitempty"` + MobileLogo *string `json:"mobile_logo,omitempty"` + SquareIcon *string `json:"square_icon,omitempty"` +} + +// NewSchemaSiteBrandingResp instantiates a new SchemaSiteBrandingResp 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 NewSchemaSiteBrandingResp() *SchemaSiteBrandingResp { + this := SchemaSiteBrandingResp{} + return &this +} + +// NewSchemaSiteBrandingRespWithDefaults instantiates a new SchemaSiteBrandingResp 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 NewSchemaSiteBrandingRespWithDefaults() *SchemaSiteBrandingResp { + this := SchemaSiteBrandingResp{} + return &this +} + +// GetFavicon returns the Favicon field value if set, zero value otherwise. +func (o *SchemaSiteBrandingResp) GetFavicon() string { + if o == nil || IsNil(o.Favicon) { + var ret string + return ret + } + return *o.Favicon +} + +// GetFaviconOk returns a tuple with the Favicon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteBrandingResp) GetFaviconOk() (*string, bool) { + if o == nil || IsNil(o.Favicon) { + return nil, false + } + return o.Favicon, true +} + +// HasFavicon returns a boolean if a field has been set. +func (o *SchemaSiteBrandingResp) HasFavicon() bool { + if o != nil && !IsNil(o.Favicon) { + return true + } + + return false +} + +// SetFavicon gets a reference to the given string and assigns it to the Favicon field. +func (o *SchemaSiteBrandingResp) SetFavicon(v string) { + o.Favicon = &v +} + +// GetLogo returns the Logo field value if set, zero value otherwise. +func (o *SchemaSiteBrandingResp) GetLogo() string { + if o == nil || IsNil(o.Logo) { + var ret string + return ret + } + return *o.Logo +} + +// GetLogoOk returns a tuple with the Logo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteBrandingResp) GetLogoOk() (*string, bool) { + if o == nil || IsNil(o.Logo) { + return nil, false + } + return o.Logo, true +} + +// HasLogo returns a boolean if a field has been set. +func (o *SchemaSiteBrandingResp) HasLogo() bool { + if o != nil && !IsNil(o.Logo) { + return true + } + + return false +} + +// SetLogo gets a reference to the given string and assigns it to the Logo field. +func (o *SchemaSiteBrandingResp) SetLogo(v string) { + o.Logo = &v +} + +// GetMobileLogo returns the MobileLogo field value if set, zero value otherwise. +func (o *SchemaSiteBrandingResp) GetMobileLogo() string { + if o == nil || IsNil(o.MobileLogo) { + var ret string + return ret + } + return *o.MobileLogo +} + +// GetMobileLogoOk returns a tuple with the MobileLogo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteBrandingResp) GetMobileLogoOk() (*string, bool) { + if o == nil || IsNil(o.MobileLogo) { + return nil, false + } + return o.MobileLogo, true +} + +// HasMobileLogo returns a boolean if a field has been set. +func (o *SchemaSiteBrandingResp) HasMobileLogo() bool { + if o != nil && !IsNil(o.MobileLogo) { + return true + } + + return false +} + +// SetMobileLogo gets a reference to the given string and assigns it to the MobileLogo field. +func (o *SchemaSiteBrandingResp) SetMobileLogo(v string) { + o.MobileLogo = &v +} + +// GetSquareIcon returns the SquareIcon field value if set, zero value otherwise. +func (o *SchemaSiteBrandingResp) GetSquareIcon() string { + if o == nil || IsNil(o.SquareIcon) { + var ret string + return ret + } + return *o.SquareIcon +} + +// GetSquareIconOk returns a tuple with the SquareIcon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteBrandingResp) GetSquareIconOk() (*string, bool) { + if o == nil || IsNil(o.SquareIcon) { + return nil, false + } + return o.SquareIcon, true +} + +// HasSquareIcon returns a boolean if a field has been set. +func (o *SchemaSiteBrandingResp) HasSquareIcon() bool { + if o != nil && !IsNil(o.SquareIcon) { + return true + } + + return false +} + +// SetSquareIcon gets a reference to the given string and assigns it to the SquareIcon field. +func (o *SchemaSiteBrandingResp) SetSquareIcon(v string) { + o.SquareIcon = &v +} + +func (o SchemaSiteBrandingResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteBrandingResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Favicon) { + toSerialize["favicon"] = o.Favicon + } + if !IsNil(o.Logo) { + toSerialize["logo"] = o.Logo + } + if !IsNil(o.MobileLogo) { + toSerialize["mobile_logo"] = o.MobileLogo + } + if !IsNil(o.SquareIcon) { + toSerialize["square_icon"] = o.SquareIcon + } + return toSerialize, nil +} + +type NullableSchemaSiteBrandingResp struct { + value *SchemaSiteBrandingResp + isSet bool +} + +func (v NullableSchemaSiteBrandingResp) Get() *SchemaSiteBrandingResp { + return v.value +} + +func (v *NullableSchemaSiteBrandingResp) Set(val *SchemaSiteBrandingResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteBrandingResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteBrandingResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteBrandingResp(val *SchemaSiteBrandingResp) *NullableSchemaSiteBrandingResp { + return &NullableSchemaSiteBrandingResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteBrandingResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteBrandingResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_custom_css_html_req.go b/model_schema_site_custom_css_html_req.go new file mode 100644 index 0000000..4544594 --- /dev/null +++ b/model_schema_site_custom_css_html_req.go @@ -0,0 +1,234 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteCustomCssHTMLReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteCustomCssHTMLReq{} + +// SchemaSiteCustomCssHTMLReq struct for SchemaSiteCustomCssHTMLReq +type SchemaSiteCustomCssHTMLReq struct { + CustomCss *string `json:"custom_css,omitempty"` + CustomFooter *string `json:"custom_footer,omitempty"` + CustomHead *string `json:"custom_head,omitempty"` + CustomHeader *string `json:"custom_header,omitempty"` +} + +// NewSchemaSiteCustomCssHTMLReq instantiates a new SchemaSiteCustomCssHTMLReq 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 NewSchemaSiteCustomCssHTMLReq() *SchemaSiteCustomCssHTMLReq { + this := SchemaSiteCustomCssHTMLReq{} + return &this +} + +// NewSchemaSiteCustomCssHTMLReqWithDefaults instantiates a new SchemaSiteCustomCssHTMLReq 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 NewSchemaSiteCustomCssHTMLReqWithDefaults() *SchemaSiteCustomCssHTMLReq { + this := SchemaSiteCustomCssHTMLReq{} + return &this +} + +// GetCustomCss returns the CustomCss field value if set, zero value otherwise. +func (o *SchemaSiteCustomCssHTMLReq) GetCustomCss() string { + if o == nil || IsNil(o.CustomCss) { + var ret string + return ret + } + return *o.CustomCss +} + +// GetCustomCssOk returns a tuple with the CustomCss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteCustomCssHTMLReq) GetCustomCssOk() (*string, bool) { + if o == nil || IsNil(o.CustomCss) { + return nil, false + } + return o.CustomCss, true +} + +// HasCustomCss returns a boolean if a field has been set. +func (o *SchemaSiteCustomCssHTMLReq) HasCustomCss() bool { + if o != nil && !IsNil(o.CustomCss) { + return true + } + + return false +} + +// SetCustomCss gets a reference to the given string and assigns it to the CustomCss field. +func (o *SchemaSiteCustomCssHTMLReq) SetCustomCss(v string) { + o.CustomCss = &v +} + +// GetCustomFooter returns the CustomFooter field value if set, zero value otherwise. +func (o *SchemaSiteCustomCssHTMLReq) GetCustomFooter() string { + if o == nil || IsNil(o.CustomFooter) { + var ret string + return ret + } + return *o.CustomFooter +} + +// GetCustomFooterOk returns a tuple with the CustomFooter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteCustomCssHTMLReq) GetCustomFooterOk() (*string, bool) { + if o == nil || IsNil(o.CustomFooter) { + return nil, false + } + return o.CustomFooter, true +} + +// HasCustomFooter returns a boolean if a field has been set. +func (o *SchemaSiteCustomCssHTMLReq) HasCustomFooter() bool { + if o != nil && !IsNil(o.CustomFooter) { + return true + } + + return false +} + +// SetCustomFooter gets a reference to the given string and assigns it to the CustomFooter field. +func (o *SchemaSiteCustomCssHTMLReq) SetCustomFooter(v string) { + o.CustomFooter = &v +} + +// GetCustomHead returns the CustomHead field value if set, zero value otherwise. +func (o *SchemaSiteCustomCssHTMLReq) GetCustomHead() string { + if o == nil || IsNil(o.CustomHead) { + var ret string + return ret + } + return *o.CustomHead +} + +// GetCustomHeadOk returns a tuple with the CustomHead field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteCustomCssHTMLReq) GetCustomHeadOk() (*string, bool) { + if o == nil || IsNil(o.CustomHead) { + return nil, false + } + return o.CustomHead, true +} + +// HasCustomHead returns a boolean if a field has been set. +func (o *SchemaSiteCustomCssHTMLReq) HasCustomHead() bool { + if o != nil && !IsNil(o.CustomHead) { + return true + } + + return false +} + +// SetCustomHead gets a reference to the given string and assigns it to the CustomHead field. +func (o *SchemaSiteCustomCssHTMLReq) SetCustomHead(v string) { + o.CustomHead = &v +} + +// GetCustomHeader returns the CustomHeader field value if set, zero value otherwise. +func (o *SchemaSiteCustomCssHTMLReq) GetCustomHeader() string { + if o == nil || IsNil(o.CustomHeader) { + var ret string + return ret + } + return *o.CustomHeader +} + +// GetCustomHeaderOk returns a tuple with the CustomHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteCustomCssHTMLReq) GetCustomHeaderOk() (*string, bool) { + if o == nil || IsNil(o.CustomHeader) { + return nil, false + } + return o.CustomHeader, true +} + +// HasCustomHeader returns a boolean if a field has been set. +func (o *SchemaSiteCustomCssHTMLReq) HasCustomHeader() bool { + if o != nil && !IsNil(o.CustomHeader) { + return true + } + + return false +} + +// SetCustomHeader gets a reference to the given string and assigns it to the CustomHeader field. +func (o *SchemaSiteCustomCssHTMLReq) SetCustomHeader(v string) { + o.CustomHeader = &v +} + +func (o SchemaSiteCustomCssHTMLReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteCustomCssHTMLReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CustomCss) { + toSerialize["custom_css"] = o.CustomCss + } + if !IsNil(o.CustomFooter) { + toSerialize["custom_footer"] = o.CustomFooter + } + if !IsNil(o.CustomHead) { + toSerialize["custom_head"] = o.CustomHead + } + if !IsNil(o.CustomHeader) { + toSerialize["custom_header"] = o.CustomHeader + } + return toSerialize, nil +} + +type NullableSchemaSiteCustomCssHTMLReq struct { + value *SchemaSiteCustomCssHTMLReq + isSet bool +} + +func (v NullableSchemaSiteCustomCssHTMLReq) Get() *SchemaSiteCustomCssHTMLReq { + return v.value +} + +func (v *NullableSchemaSiteCustomCssHTMLReq) Set(val *SchemaSiteCustomCssHTMLReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteCustomCssHTMLReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteCustomCssHTMLReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteCustomCssHTMLReq(val *SchemaSiteCustomCssHTMLReq) *NullableSchemaSiteCustomCssHTMLReq { + return &NullableSchemaSiteCustomCssHTMLReq{value: val, isSet: true} +} + +func (v NullableSchemaSiteCustomCssHTMLReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteCustomCssHTMLReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_custom_css_html_resp.go b/model_schema_site_custom_css_html_resp.go new file mode 100644 index 0000000..dede801 --- /dev/null +++ b/model_schema_site_custom_css_html_resp.go @@ -0,0 +1,234 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteCustomCssHTMLResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteCustomCssHTMLResp{} + +// SchemaSiteCustomCssHTMLResp struct for SchemaSiteCustomCssHTMLResp +type SchemaSiteCustomCssHTMLResp struct { + CustomCss *string `json:"custom_css,omitempty"` + CustomFooter *string `json:"custom_footer,omitempty"` + CustomHead *string `json:"custom_head,omitempty"` + CustomHeader *string `json:"custom_header,omitempty"` +} + +// NewSchemaSiteCustomCssHTMLResp instantiates a new SchemaSiteCustomCssHTMLResp 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 NewSchemaSiteCustomCssHTMLResp() *SchemaSiteCustomCssHTMLResp { + this := SchemaSiteCustomCssHTMLResp{} + return &this +} + +// NewSchemaSiteCustomCssHTMLRespWithDefaults instantiates a new SchemaSiteCustomCssHTMLResp 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 NewSchemaSiteCustomCssHTMLRespWithDefaults() *SchemaSiteCustomCssHTMLResp { + this := SchemaSiteCustomCssHTMLResp{} + return &this +} + +// GetCustomCss returns the CustomCss field value if set, zero value otherwise. +func (o *SchemaSiteCustomCssHTMLResp) GetCustomCss() string { + if o == nil || IsNil(o.CustomCss) { + var ret string + return ret + } + return *o.CustomCss +} + +// GetCustomCssOk returns a tuple with the CustomCss field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteCustomCssHTMLResp) GetCustomCssOk() (*string, bool) { + if o == nil || IsNil(o.CustomCss) { + return nil, false + } + return o.CustomCss, true +} + +// HasCustomCss returns a boolean if a field has been set. +func (o *SchemaSiteCustomCssHTMLResp) HasCustomCss() bool { + if o != nil && !IsNil(o.CustomCss) { + return true + } + + return false +} + +// SetCustomCss gets a reference to the given string and assigns it to the CustomCss field. +func (o *SchemaSiteCustomCssHTMLResp) SetCustomCss(v string) { + o.CustomCss = &v +} + +// GetCustomFooter returns the CustomFooter field value if set, zero value otherwise. +func (o *SchemaSiteCustomCssHTMLResp) GetCustomFooter() string { + if o == nil || IsNil(o.CustomFooter) { + var ret string + return ret + } + return *o.CustomFooter +} + +// GetCustomFooterOk returns a tuple with the CustomFooter field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteCustomCssHTMLResp) GetCustomFooterOk() (*string, bool) { + if o == nil || IsNil(o.CustomFooter) { + return nil, false + } + return o.CustomFooter, true +} + +// HasCustomFooter returns a boolean if a field has been set. +func (o *SchemaSiteCustomCssHTMLResp) HasCustomFooter() bool { + if o != nil && !IsNil(o.CustomFooter) { + return true + } + + return false +} + +// SetCustomFooter gets a reference to the given string and assigns it to the CustomFooter field. +func (o *SchemaSiteCustomCssHTMLResp) SetCustomFooter(v string) { + o.CustomFooter = &v +} + +// GetCustomHead returns the CustomHead field value if set, zero value otherwise. +func (o *SchemaSiteCustomCssHTMLResp) GetCustomHead() string { + if o == nil || IsNil(o.CustomHead) { + var ret string + return ret + } + return *o.CustomHead +} + +// GetCustomHeadOk returns a tuple with the CustomHead field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteCustomCssHTMLResp) GetCustomHeadOk() (*string, bool) { + if o == nil || IsNil(o.CustomHead) { + return nil, false + } + return o.CustomHead, true +} + +// HasCustomHead returns a boolean if a field has been set. +func (o *SchemaSiteCustomCssHTMLResp) HasCustomHead() bool { + if o != nil && !IsNil(o.CustomHead) { + return true + } + + return false +} + +// SetCustomHead gets a reference to the given string and assigns it to the CustomHead field. +func (o *SchemaSiteCustomCssHTMLResp) SetCustomHead(v string) { + o.CustomHead = &v +} + +// GetCustomHeader returns the CustomHeader field value if set, zero value otherwise. +func (o *SchemaSiteCustomCssHTMLResp) GetCustomHeader() string { + if o == nil || IsNil(o.CustomHeader) { + var ret string + return ret + } + return *o.CustomHeader +} + +// GetCustomHeaderOk returns a tuple with the CustomHeader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteCustomCssHTMLResp) GetCustomHeaderOk() (*string, bool) { + if o == nil || IsNil(o.CustomHeader) { + return nil, false + } + return o.CustomHeader, true +} + +// HasCustomHeader returns a boolean if a field has been set. +func (o *SchemaSiteCustomCssHTMLResp) HasCustomHeader() bool { + if o != nil && !IsNil(o.CustomHeader) { + return true + } + + return false +} + +// SetCustomHeader gets a reference to the given string and assigns it to the CustomHeader field. +func (o *SchemaSiteCustomCssHTMLResp) SetCustomHeader(v string) { + o.CustomHeader = &v +} + +func (o SchemaSiteCustomCssHTMLResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteCustomCssHTMLResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CustomCss) { + toSerialize["custom_css"] = o.CustomCss + } + if !IsNil(o.CustomFooter) { + toSerialize["custom_footer"] = o.CustomFooter + } + if !IsNil(o.CustomHead) { + toSerialize["custom_head"] = o.CustomHead + } + if !IsNil(o.CustomHeader) { + toSerialize["custom_header"] = o.CustomHeader + } + return toSerialize, nil +} + +type NullableSchemaSiteCustomCssHTMLResp struct { + value *SchemaSiteCustomCssHTMLResp + isSet bool +} + +func (v NullableSchemaSiteCustomCssHTMLResp) Get() *SchemaSiteCustomCssHTMLResp { + return v.value +} + +func (v *NullableSchemaSiteCustomCssHTMLResp) Set(val *SchemaSiteCustomCssHTMLResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteCustomCssHTMLResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteCustomCssHTMLResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteCustomCssHTMLResp(val *SchemaSiteCustomCssHTMLResp) *NullableSchemaSiteCustomCssHTMLResp { + return &NullableSchemaSiteCustomCssHTMLResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteCustomCssHTMLResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteCustomCssHTMLResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_general_req.go b/model_schema_site_general_req.go new file mode 100644 index 0000000..c50f70a --- /dev/null +++ b/model_schema_site_general_req.go @@ -0,0 +1,243 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteGeneralReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteGeneralReq{} + +// SchemaSiteGeneralReq struct for SchemaSiteGeneralReq +type SchemaSiteGeneralReq struct { + ContactEmail string `json:"contact_email"` + Description *string `json:"description,omitempty"` + Name string `json:"name"` + ShortDescription *string `json:"short_description,omitempty"` + SiteUrl string `json:"site_url"` +} + +// NewSchemaSiteGeneralReq instantiates a new SchemaSiteGeneralReq 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 NewSchemaSiteGeneralReq(contactEmail string, name string, siteUrl string) *SchemaSiteGeneralReq { + this := SchemaSiteGeneralReq{} + this.ContactEmail = contactEmail + this.Name = name + this.SiteUrl = siteUrl + return &this +} + +// NewSchemaSiteGeneralReqWithDefaults instantiates a new SchemaSiteGeneralReq 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 NewSchemaSiteGeneralReqWithDefaults() *SchemaSiteGeneralReq { + this := SchemaSiteGeneralReq{} + return &this +} + +// GetContactEmail returns the ContactEmail field value +func (o *SchemaSiteGeneralReq) GetContactEmail() string { + if o == nil { + var ret string + return ret + } + + return o.ContactEmail +} + +// GetContactEmailOk returns a tuple with the ContactEmail field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteGeneralReq) GetContactEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContactEmail, true +} + +// SetContactEmail sets field value +func (o *SchemaSiteGeneralReq) SetContactEmail(v string) { + o.ContactEmail = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SchemaSiteGeneralReq) 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 *SchemaSiteGeneralReq) 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 *SchemaSiteGeneralReq) 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 *SchemaSiteGeneralReq) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value +func (o *SchemaSiteGeneralReq) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteGeneralReq) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SchemaSiteGeneralReq) SetName(v string) { + o.Name = v +} + +// GetShortDescription returns the ShortDescription field value if set, zero value otherwise. +func (o *SchemaSiteGeneralReq) GetShortDescription() string { + if o == nil || IsNil(o.ShortDescription) { + var ret string + return ret + } + return *o.ShortDescription +} + +// GetShortDescriptionOk returns a tuple with the ShortDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteGeneralReq) GetShortDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.ShortDescription) { + return nil, false + } + return o.ShortDescription, true +} + +// HasShortDescription returns a boolean if a field has been set. +func (o *SchemaSiteGeneralReq) HasShortDescription() bool { + if o != nil && !IsNil(o.ShortDescription) { + return true + } + + return false +} + +// SetShortDescription gets a reference to the given string and assigns it to the ShortDescription field. +func (o *SchemaSiteGeneralReq) SetShortDescription(v string) { + o.ShortDescription = &v +} + +// GetSiteUrl returns the SiteUrl field value +func (o *SchemaSiteGeneralReq) GetSiteUrl() string { + if o == nil { + var ret string + return ret + } + + return o.SiteUrl +} + +// GetSiteUrlOk returns a tuple with the SiteUrl field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteGeneralReq) GetSiteUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SiteUrl, true +} + +// SetSiteUrl sets field value +func (o *SchemaSiteGeneralReq) SetSiteUrl(v string) { + o.SiteUrl = v +} + +func (o SchemaSiteGeneralReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteGeneralReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contact_email"] = o.ContactEmail + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["name"] = o.Name + if !IsNil(o.ShortDescription) { + toSerialize["short_description"] = o.ShortDescription + } + toSerialize["site_url"] = o.SiteUrl + return toSerialize, nil +} + +type NullableSchemaSiteGeneralReq struct { + value *SchemaSiteGeneralReq + isSet bool +} + +func (v NullableSchemaSiteGeneralReq) Get() *SchemaSiteGeneralReq { + return v.value +} + +func (v *NullableSchemaSiteGeneralReq) Set(val *SchemaSiteGeneralReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteGeneralReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteGeneralReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteGeneralReq(val *SchemaSiteGeneralReq) *NullableSchemaSiteGeneralReq { + return &NullableSchemaSiteGeneralReq{value: val, isSet: true} +} + +func (v NullableSchemaSiteGeneralReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteGeneralReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_general_resp.go b/model_schema_site_general_resp.go new file mode 100644 index 0000000..cef3439 --- /dev/null +++ b/model_schema_site_general_resp.go @@ -0,0 +1,243 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteGeneralResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteGeneralResp{} + +// SchemaSiteGeneralResp struct for SchemaSiteGeneralResp +type SchemaSiteGeneralResp struct { + ContactEmail string `json:"contact_email"` + Description *string `json:"description,omitempty"` + Name string `json:"name"` + ShortDescription *string `json:"short_description,omitempty"` + SiteUrl string `json:"site_url"` +} + +// NewSchemaSiteGeneralResp instantiates a new SchemaSiteGeneralResp 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 NewSchemaSiteGeneralResp(contactEmail string, name string, siteUrl string) *SchemaSiteGeneralResp { + this := SchemaSiteGeneralResp{} + this.ContactEmail = contactEmail + this.Name = name + this.SiteUrl = siteUrl + return &this +} + +// NewSchemaSiteGeneralRespWithDefaults instantiates a new SchemaSiteGeneralResp 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 NewSchemaSiteGeneralRespWithDefaults() *SchemaSiteGeneralResp { + this := SchemaSiteGeneralResp{} + return &this +} + +// GetContactEmail returns the ContactEmail field value +func (o *SchemaSiteGeneralResp) GetContactEmail() string { + if o == nil { + var ret string + return ret + } + + return o.ContactEmail +} + +// GetContactEmailOk returns a tuple with the ContactEmail field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteGeneralResp) GetContactEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ContactEmail, true +} + +// SetContactEmail sets field value +func (o *SchemaSiteGeneralResp) SetContactEmail(v string) { + o.ContactEmail = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SchemaSiteGeneralResp) 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 *SchemaSiteGeneralResp) 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 *SchemaSiteGeneralResp) 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 *SchemaSiteGeneralResp) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value +func (o *SchemaSiteGeneralResp) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteGeneralResp) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SchemaSiteGeneralResp) SetName(v string) { + o.Name = v +} + +// GetShortDescription returns the ShortDescription field value if set, zero value otherwise. +func (o *SchemaSiteGeneralResp) GetShortDescription() string { + if o == nil || IsNil(o.ShortDescription) { + var ret string + return ret + } + return *o.ShortDescription +} + +// GetShortDescriptionOk returns a tuple with the ShortDescription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteGeneralResp) GetShortDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.ShortDescription) { + return nil, false + } + return o.ShortDescription, true +} + +// HasShortDescription returns a boolean if a field has been set. +func (o *SchemaSiteGeneralResp) HasShortDescription() bool { + if o != nil && !IsNil(o.ShortDescription) { + return true + } + + return false +} + +// SetShortDescription gets a reference to the given string and assigns it to the ShortDescription field. +func (o *SchemaSiteGeneralResp) SetShortDescription(v string) { + o.ShortDescription = &v +} + +// GetSiteUrl returns the SiteUrl field value +func (o *SchemaSiteGeneralResp) GetSiteUrl() string { + if o == nil { + var ret string + return ret + } + + return o.SiteUrl +} + +// GetSiteUrlOk returns a tuple with the SiteUrl field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteGeneralResp) GetSiteUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SiteUrl, true +} + +// SetSiteUrl sets field value +func (o *SchemaSiteGeneralResp) SetSiteUrl(v string) { + o.SiteUrl = v +} + +func (o SchemaSiteGeneralResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteGeneralResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["contact_email"] = o.ContactEmail + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["name"] = o.Name + if !IsNil(o.ShortDescription) { + toSerialize["short_description"] = o.ShortDescription + } + toSerialize["site_url"] = o.SiteUrl + return toSerialize, nil +} + +type NullableSchemaSiteGeneralResp struct { + value *SchemaSiteGeneralResp + isSet bool +} + +func (v NullableSchemaSiteGeneralResp) Get() *SchemaSiteGeneralResp { + return v.value +} + +func (v *NullableSchemaSiteGeneralResp) Set(val *SchemaSiteGeneralResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteGeneralResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteGeneralResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteGeneralResp(val *SchemaSiteGeneralResp) *NullableSchemaSiteGeneralResp { + return &NullableSchemaSiteGeneralResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteGeneralResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteGeneralResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_info_resp.go b/model_schema_site_info_resp.go new file mode 100644 index 0000000..a421153 --- /dev/null +++ b/model_schema_site_info_resp.go @@ -0,0 +1,414 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteInfoResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteInfoResp{} + +// SchemaSiteInfoResp struct for SchemaSiteInfoResp +type SchemaSiteInfoResp struct { + Branding *SchemaSiteBrandingResp `json:"branding,omitempty"` + CustomCssHtml *SchemaSiteCustomCssHTMLResp `json:"custom_css_html,omitempty"` + General *SchemaSiteGeneralResp `json:"general,omitempty"` + Interface *SchemaSiteInterfaceResp `json:"interface,omitempty"` + Login *SchemaSiteLoginResp `json:"login,omitempty"` + Revision *string `json:"revision,omitempty"` + SiteSeo *SchemaSiteSeoReq `json:"site_seo,omitempty"` + Theme *SchemaSiteThemeResp `json:"theme,omitempty"` + Version *string `json:"version,omitempty"` +} + +// NewSchemaSiteInfoResp instantiates a new SchemaSiteInfoResp 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 NewSchemaSiteInfoResp() *SchemaSiteInfoResp { + this := SchemaSiteInfoResp{} + return &this +} + +// NewSchemaSiteInfoRespWithDefaults instantiates a new SchemaSiteInfoResp 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 NewSchemaSiteInfoRespWithDefaults() *SchemaSiteInfoResp { + this := SchemaSiteInfoResp{} + return &this +} + +// GetBranding returns the Branding field value if set, zero value otherwise. +func (o *SchemaSiteInfoResp) GetBranding() SchemaSiteBrandingResp { + if o == nil || IsNil(o.Branding) { + var ret SchemaSiteBrandingResp + return ret + } + return *o.Branding +} + +// GetBrandingOk returns a tuple with the Branding field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteInfoResp) GetBrandingOk() (*SchemaSiteBrandingResp, bool) { + if o == nil || IsNil(o.Branding) { + return nil, false + } + return o.Branding, true +} + +// HasBranding returns a boolean if a field has been set. +func (o *SchemaSiteInfoResp) HasBranding() bool { + if o != nil && !IsNil(o.Branding) { + return true + } + + return false +} + +// SetBranding gets a reference to the given SchemaSiteBrandingResp and assigns it to the Branding field. +func (o *SchemaSiteInfoResp) SetBranding(v SchemaSiteBrandingResp) { + o.Branding = &v +} + +// GetCustomCssHtml returns the CustomCssHtml field value if set, zero value otherwise. +func (o *SchemaSiteInfoResp) GetCustomCssHtml() SchemaSiteCustomCssHTMLResp { + if o == nil || IsNil(o.CustomCssHtml) { + var ret SchemaSiteCustomCssHTMLResp + return ret + } + return *o.CustomCssHtml +} + +// GetCustomCssHtmlOk returns a tuple with the CustomCssHtml field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteInfoResp) GetCustomCssHtmlOk() (*SchemaSiteCustomCssHTMLResp, bool) { + if o == nil || IsNil(o.CustomCssHtml) { + return nil, false + } + return o.CustomCssHtml, true +} + +// HasCustomCssHtml returns a boolean if a field has been set. +func (o *SchemaSiteInfoResp) HasCustomCssHtml() bool { + if o != nil && !IsNil(o.CustomCssHtml) { + return true + } + + return false +} + +// SetCustomCssHtml gets a reference to the given SchemaSiteCustomCssHTMLResp and assigns it to the CustomCssHtml field. +func (o *SchemaSiteInfoResp) SetCustomCssHtml(v SchemaSiteCustomCssHTMLResp) { + o.CustomCssHtml = &v +} + +// GetGeneral returns the General field value if set, zero value otherwise. +func (o *SchemaSiteInfoResp) GetGeneral() SchemaSiteGeneralResp { + if o == nil || IsNil(o.General) { + var ret SchemaSiteGeneralResp + return ret + } + return *o.General +} + +// GetGeneralOk returns a tuple with the General field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteInfoResp) GetGeneralOk() (*SchemaSiteGeneralResp, bool) { + if o == nil || IsNil(o.General) { + return nil, false + } + return o.General, true +} + +// HasGeneral returns a boolean if a field has been set. +func (o *SchemaSiteInfoResp) HasGeneral() bool { + if o != nil && !IsNil(o.General) { + return true + } + + return false +} + +// SetGeneral gets a reference to the given SchemaSiteGeneralResp and assigns it to the General field. +func (o *SchemaSiteInfoResp) SetGeneral(v SchemaSiteGeneralResp) { + o.General = &v +} + +// GetInterface returns the Interface field value if set, zero value otherwise. +func (o *SchemaSiteInfoResp) GetInterface() SchemaSiteInterfaceResp { + if o == nil || IsNil(o.Interface) { + var ret SchemaSiteInterfaceResp + return ret + } + return *o.Interface +} + +// GetInterfaceOk returns a tuple with the Interface field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteInfoResp) GetInterfaceOk() (*SchemaSiteInterfaceResp, bool) { + if o == nil || IsNil(o.Interface) { + return nil, false + } + return o.Interface, true +} + +// HasInterface returns a boolean if a field has been set. +func (o *SchemaSiteInfoResp) HasInterface() bool { + if o != nil && !IsNil(o.Interface) { + return true + } + + return false +} + +// SetInterface gets a reference to the given SchemaSiteInterfaceResp and assigns it to the Interface field. +func (o *SchemaSiteInfoResp) SetInterface(v SchemaSiteInterfaceResp) { + o.Interface = &v +} + +// GetLogin returns the Login field value if set, zero value otherwise. +func (o *SchemaSiteInfoResp) GetLogin() SchemaSiteLoginResp { + if o == nil || IsNil(o.Login) { + var ret SchemaSiteLoginResp + return ret + } + return *o.Login +} + +// GetLoginOk returns a tuple with the Login field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteInfoResp) GetLoginOk() (*SchemaSiteLoginResp, bool) { + if o == nil || IsNil(o.Login) { + return nil, false + } + return o.Login, true +} + +// HasLogin returns a boolean if a field has been set. +func (o *SchemaSiteInfoResp) HasLogin() bool { + if o != nil && !IsNil(o.Login) { + return true + } + + return false +} + +// SetLogin gets a reference to the given SchemaSiteLoginResp and assigns it to the Login field. +func (o *SchemaSiteInfoResp) SetLogin(v SchemaSiteLoginResp) { + o.Login = &v +} + +// GetRevision returns the Revision field value if set, zero value otherwise. +func (o *SchemaSiteInfoResp) GetRevision() string { + if o == nil || IsNil(o.Revision) { + var ret string + return ret + } + return *o.Revision +} + +// GetRevisionOk returns a tuple with the Revision field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteInfoResp) GetRevisionOk() (*string, bool) { + if o == nil || IsNil(o.Revision) { + return nil, false + } + return o.Revision, true +} + +// HasRevision returns a boolean if a field has been set. +func (o *SchemaSiteInfoResp) HasRevision() bool { + if o != nil && !IsNil(o.Revision) { + return true + } + + return false +} + +// SetRevision gets a reference to the given string and assigns it to the Revision field. +func (o *SchemaSiteInfoResp) SetRevision(v string) { + o.Revision = &v +} + +// GetSiteSeo returns the SiteSeo field value if set, zero value otherwise. +func (o *SchemaSiteInfoResp) GetSiteSeo() SchemaSiteSeoReq { + if o == nil || IsNil(o.SiteSeo) { + var ret SchemaSiteSeoReq + return ret + } + return *o.SiteSeo +} + +// 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) { + if o == nil || IsNil(o.SiteSeo) { + return nil, false + } + return o.SiteSeo, true +} + +// HasSiteSeo returns a boolean if a field has been set. +func (o *SchemaSiteInfoResp) HasSiteSeo() bool { + if o != nil && !IsNil(o.SiteSeo) { + return true + } + + return false +} + +// SetSiteSeo gets a reference to the given SchemaSiteSeoReq and assigns it to the SiteSeo field. +func (o *SchemaSiteInfoResp) SetSiteSeo(v SchemaSiteSeoReq) { + o.SiteSeo = &v +} + +// GetTheme returns the Theme field value if set, zero value otherwise. +func (o *SchemaSiteInfoResp) GetTheme() SchemaSiteThemeResp { + if o == nil || IsNil(o.Theme) { + var ret SchemaSiteThemeResp + return ret + } + return *o.Theme +} + +// GetThemeOk returns a tuple with the Theme field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteInfoResp) GetThemeOk() (*SchemaSiteThemeResp, bool) { + if o == nil || IsNil(o.Theme) { + return nil, false + } + return o.Theme, true +} + +// HasTheme returns a boolean if a field has been set. +func (o *SchemaSiteInfoResp) HasTheme() bool { + if o != nil && !IsNil(o.Theme) { + return true + } + + return false +} + +// SetTheme gets a reference to the given SchemaSiteThemeResp and assigns it to the Theme field. +func (o *SchemaSiteInfoResp) SetTheme(v SchemaSiteThemeResp) { + o.Theme = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *SchemaSiteInfoResp) 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 *SchemaSiteInfoResp) 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 *SchemaSiteInfoResp) 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 *SchemaSiteInfoResp) SetVersion(v string) { + o.Version = &v +} + +func (o SchemaSiteInfoResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteInfoResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Branding) { + toSerialize["branding"] = o.Branding + } + if !IsNil(o.CustomCssHtml) { + toSerialize["custom_css_html"] = o.CustomCssHtml + } + if !IsNil(o.General) { + toSerialize["general"] = o.General + } + if !IsNil(o.Interface) { + toSerialize["interface"] = o.Interface + } + if !IsNil(o.Login) { + toSerialize["login"] = o.Login + } + if !IsNil(o.Revision) { + toSerialize["revision"] = o.Revision + } + if !IsNil(o.SiteSeo) { + toSerialize["site_seo"] = o.SiteSeo + } + if !IsNil(o.Theme) { + toSerialize["theme"] = o.Theme + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + return toSerialize, nil +} + +type NullableSchemaSiteInfoResp struct { + value *SchemaSiteInfoResp + isSet bool +} + +func (v NullableSchemaSiteInfoResp) Get() *SchemaSiteInfoResp { + return v.value +} + +func (v *NullableSchemaSiteInfoResp) Set(val *SchemaSiteInfoResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteInfoResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteInfoResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteInfoResp(val *SchemaSiteInfoResp) *NullableSchemaSiteInfoResp { + return &NullableSchemaSiteInfoResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteInfoResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteInfoResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_interface_req.go b/model_schema_site_interface_req.go new file mode 100644 index 0000000..81d511c --- /dev/null +++ b/model_schema_site_interface_req.go @@ -0,0 +1,171 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteInterfaceReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteInterfaceReq{} + +// SchemaSiteInterfaceReq struct for SchemaSiteInterfaceReq +type SchemaSiteInterfaceReq struct { + DefaultAvatar string `json:"default_avatar"` + Language string `json:"language"` + TimeZone string `json:"time_zone"` +} + +// NewSchemaSiteInterfaceReq instantiates a new SchemaSiteInterfaceReq 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 NewSchemaSiteInterfaceReq(defaultAvatar string, language string, timeZone string) *SchemaSiteInterfaceReq { + this := SchemaSiteInterfaceReq{} + this.DefaultAvatar = defaultAvatar + this.Language = language + this.TimeZone = timeZone + return &this +} + +// NewSchemaSiteInterfaceReqWithDefaults instantiates a new SchemaSiteInterfaceReq 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 NewSchemaSiteInterfaceReqWithDefaults() *SchemaSiteInterfaceReq { + this := 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 { + var ret string + return ret + } + + return o.Language +} + +// GetLanguageOk returns a tuple with the Language field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteInterfaceReq) GetLanguageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Language, true +} + +// SetLanguage sets field value +func (o *SchemaSiteInterfaceReq) SetLanguage(v string) { + o.Language = v +} + +// GetTimeZone returns the TimeZone field value +func (o *SchemaSiteInterfaceReq) GetTimeZone() string { + if o == nil { + var ret string + return ret + } + + return o.TimeZone +} + +// GetTimeZoneOk returns a tuple with the TimeZone field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteInterfaceReq) GetTimeZoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TimeZone, true +} + +// SetTimeZone sets field value +func (o *SchemaSiteInterfaceReq) SetTimeZone(v string) { + o.TimeZone = v +} + +func (o SchemaSiteInterfaceReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +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 +} + +type NullableSchemaSiteInterfaceReq struct { + value *SchemaSiteInterfaceReq + isSet bool +} + +func (v NullableSchemaSiteInterfaceReq) Get() *SchemaSiteInterfaceReq { + return v.value +} + +func (v *NullableSchemaSiteInterfaceReq) Set(val *SchemaSiteInterfaceReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteInterfaceReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteInterfaceReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteInterfaceReq(val *SchemaSiteInterfaceReq) *NullableSchemaSiteInterfaceReq { + return &NullableSchemaSiteInterfaceReq{value: val, isSet: true} +} + +func (v NullableSchemaSiteInterfaceReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteInterfaceReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_interface_resp.go b/model_schema_site_interface_resp.go new file mode 100644 index 0000000..0ca6576 --- /dev/null +++ b/model_schema_site_interface_resp.go @@ -0,0 +1,171 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteInterfaceResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteInterfaceResp{} + +// SchemaSiteInterfaceResp struct for SchemaSiteInterfaceResp +type SchemaSiteInterfaceResp struct { + DefaultAvatar string `json:"default_avatar"` + Language string `json:"language"` + TimeZone string `json:"time_zone"` +} + +// NewSchemaSiteInterfaceResp instantiates a new SchemaSiteInterfaceResp 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 NewSchemaSiteInterfaceResp(defaultAvatar string, language string, timeZone string) *SchemaSiteInterfaceResp { + this := SchemaSiteInterfaceResp{} + this.DefaultAvatar = defaultAvatar + this.Language = language + this.TimeZone = timeZone + return &this +} + +// NewSchemaSiteInterfaceRespWithDefaults instantiates a new SchemaSiteInterfaceResp 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 NewSchemaSiteInterfaceRespWithDefaults() *SchemaSiteInterfaceResp { + this := 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 { + var ret string + return ret + } + + return o.Language +} + +// GetLanguageOk returns a tuple with the Language field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteInterfaceResp) GetLanguageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Language, true +} + +// SetLanguage sets field value +func (o *SchemaSiteInterfaceResp) SetLanguage(v string) { + o.Language = v +} + +// GetTimeZone returns the TimeZone field value +func (o *SchemaSiteInterfaceResp) GetTimeZone() string { + if o == nil { + var ret string + return ret + } + + return o.TimeZone +} + +// GetTimeZoneOk returns a tuple with the TimeZone field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteInterfaceResp) GetTimeZoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TimeZone, true +} + +// SetTimeZone sets field value +func (o *SchemaSiteInterfaceResp) SetTimeZone(v string) { + o.TimeZone = v +} + +func (o SchemaSiteInterfaceResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +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 +} + +type NullableSchemaSiteInterfaceResp struct { + value *SchemaSiteInterfaceResp + isSet bool +} + +func (v NullableSchemaSiteInterfaceResp) Get() *SchemaSiteInterfaceResp { + return v.value +} + +func (v *NullableSchemaSiteInterfaceResp) Set(val *SchemaSiteInterfaceResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteInterfaceResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteInterfaceResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteInterfaceResp(val *SchemaSiteInterfaceResp) *NullableSchemaSiteInterfaceResp { + return &NullableSchemaSiteInterfaceResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteInterfaceResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteInterfaceResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_legal_req.go b/model_schema_site_legal_req.go new file mode 100644 index 0000000..53b349a --- /dev/null +++ b/model_schema_site_legal_req.go @@ -0,0 +1,234 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteLegalReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteLegalReq{} + +// SchemaSiteLegalReq struct for SchemaSiteLegalReq +type SchemaSiteLegalReq struct { + PrivacyPolicyOriginalText *string `json:"privacy_policy_original_text,omitempty"` + PrivacyPolicyParsedText *string `json:"privacy_policy_parsed_text,omitempty"` + TermsOfServiceOriginalText *string `json:"terms_of_service_original_text,omitempty"` + TermsOfServiceParsedText *string `json:"terms_of_service_parsed_text,omitempty"` +} + +// NewSchemaSiteLegalReq instantiates a new SchemaSiteLegalReq 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 NewSchemaSiteLegalReq() *SchemaSiteLegalReq { + this := SchemaSiteLegalReq{} + return &this +} + +// NewSchemaSiteLegalReqWithDefaults instantiates a new SchemaSiteLegalReq 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 NewSchemaSiteLegalReqWithDefaults() *SchemaSiteLegalReq { + this := SchemaSiteLegalReq{} + return &this +} + +// GetPrivacyPolicyOriginalText returns the PrivacyPolicyOriginalText field value if set, zero value otherwise. +func (o *SchemaSiteLegalReq) GetPrivacyPolicyOriginalText() string { + if o == nil || IsNil(o.PrivacyPolicyOriginalText) { + var ret string + return ret + } + return *o.PrivacyPolicyOriginalText +} + +// GetPrivacyPolicyOriginalTextOk returns a tuple with the PrivacyPolicyOriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLegalReq) GetPrivacyPolicyOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.PrivacyPolicyOriginalText) { + return nil, false + } + return o.PrivacyPolicyOriginalText, true +} + +// HasPrivacyPolicyOriginalText returns a boolean if a field has been set. +func (o *SchemaSiteLegalReq) HasPrivacyPolicyOriginalText() bool { + if o != nil && !IsNil(o.PrivacyPolicyOriginalText) { + return true + } + + return false +} + +// SetPrivacyPolicyOriginalText gets a reference to the given string and assigns it to the PrivacyPolicyOriginalText field. +func (o *SchemaSiteLegalReq) SetPrivacyPolicyOriginalText(v string) { + o.PrivacyPolicyOriginalText = &v +} + +// GetPrivacyPolicyParsedText returns the PrivacyPolicyParsedText field value if set, zero value otherwise. +func (o *SchemaSiteLegalReq) GetPrivacyPolicyParsedText() string { + if o == nil || IsNil(o.PrivacyPolicyParsedText) { + var ret string + return ret + } + return *o.PrivacyPolicyParsedText +} + +// GetPrivacyPolicyParsedTextOk returns a tuple with the PrivacyPolicyParsedText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLegalReq) GetPrivacyPolicyParsedTextOk() (*string, bool) { + if o == nil || IsNil(o.PrivacyPolicyParsedText) { + return nil, false + } + return o.PrivacyPolicyParsedText, true +} + +// HasPrivacyPolicyParsedText returns a boolean if a field has been set. +func (o *SchemaSiteLegalReq) HasPrivacyPolicyParsedText() bool { + if o != nil && !IsNil(o.PrivacyPolicyParsedText) { + return true + } + + return false +} + +// SetPrivacyPolicyParsedText gets a reference to the given string and assigns it to the PrivacyPolicyParsedText field. +func (o *SchemaSiteLegalReq) SetPrivacyPolicyParsedText(v string) { + o.PrivacyPolicyParsedText = &v +} + +// GetTermsOfServiceOriginalText returns the TermsOfServiceOriginalText field value if set, zero value otherwise. +func (o *SchemaSiteLegalReq) GetTermsOfServiceOriginalText() string { + if o == nil || IsNil(o.TermsOfServiceOriginalText) { + var ret string + return ret + } + return *o.TermsOfServiceOriginalText +} + +// GetTermsOfServiceOriginalTextOk returns a tuple with the TermsOfServiceOriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLegalReq) GetTermsOfServiceOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.TermsOfServiceOriginalText) { + return nil, false + } + return o.TermsOfServiceOriginalText, true +} + +// HasTermsOfServiceOriginalText returns a boolean if a field has been set. +func (o *SchemaSiteLegalReq) HasTermsOfServiceOriginalText() bool { + if o != nil && !IsNil(o.TermsOfServiceOriginalText) { + return true + } + + return false +} + +// SetTermsOfServiceOriginalText gets a reference to the given string and assigns it to the TermsOfServiceOriginalText field. +func (o *SchemaSiteLegalReq) SetTermsOfServiceOriginalText(v string) { + o.TermsOfServiceOriginalText = &v +} + +// GetTermsOfServiceParsedText returns the TermsOfServiceParsedText field value if set, zero value otherwise. +func (o *SchemaSiteLegalReq) GetTermsOfServiceParsedText() string { + if o == nil || IsNil(o.TermsOfServiceParsedText) { + var ret string + return ret + } + return *o.TermsOfServiceParsedText +} + +// GetTermsOfServiceParsedTextOk returns a tuple with the TermsOfServiceParsedText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLegalReq) GetTermsOfServiceParsedTextOk() (*string, bool) { + if o == nil || IsNil(o.TermsOfServiceParsedText) { + return nil, false + } + return o.TermsOfServiceParsedText, true +} + +// HasTermsOfServiceParsedText returns a boolean if a field has been set. +func (o *SchemaSiteLegalReq) HasTermsOfServiceParsedText() bool { + if o != nil && !IsNil(o.TermsOfServiceParsedText) { + return true + } + + return false +} + +// SetTermsOfServiceParsedText gets a reference to the given string and assigns it to the TermsOfServiceParsedText field. +func (o *SchemaSiteLegalReq) SetTermsOfServiceParsedText(v string) { + o.TermsOfServiceParsedText = &v +} + +func (o SchemaSiteLegalReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteLegalReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PrivacyPolicyOriginalText) { + toSerialize["privacy_policy_original_text"] = o.PrivacyPolicyOriginalText + } + if !IsNil(o.PrivacyPolicyParsedText) { + toSerialize["privacy_policy_parsed_text"] = o.PrivacyPolicyParsedText + } + if !IsNil(o.TermsOfServiceOriginalText) { + toSerialize["terms_of_service_original_text"] = o.TermsOfServiceOriginalText + } + if !IsNil(o.TermsOfServiceParsedText) { + toSerialize["terms_of_service_parsed_text"] = o.TermsOfServiceParsedText + } + return toSerialize, nil +} + +type NullableSchemaSiteLegalReq struct { + value *SchemaSiteLegalReq + isSet bool +} + +func (v NullableSchemaSiteLegalReq) Get() *SchemaSiteLegalReq { + return v.value +} + +func (v *NullableSchemaSiteLegalReq) Set(val *SchemaSiteLegalReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteLegalReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteLegalReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteLegalReq(val *SchemaSiteLegalReq) *NullableSchemaSiteLegalReq { + return &NullableSchemaSiteLegalReq{value: val, isSet: true} +} + +func (v NullableSchemaSiteLegalReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteLegalReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_legal_resp.go b/model_schema_site_legal_resp.go new file mode 100644 index 0000000..0078897 --- /dev/null +++ b/model_schema_site_legal_resp.go @@ -0,0 +1,234 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteLegalResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteLegalResp{} + +// SchemaSiteLegalResp struct for SchemaSiteLegalResp +type SchemaSiteLegalResp struct { + PrivacyPolicyOriginalText *string `json:"privacy_policy_original_text,omitempty"` + PrivacyPolicyParsedText *string `json:"privacy_policy_parsed_text,omitempty"` + TermsOfServiceOriginalText *string `json:"terms_of_service_original_text,omitempty"` + TermsOfServiceParsedText *string `json:"terms_of_service_parsed_text,omitempty"` +} + +// NewSchemaSiteLegalResp instantiates a new SchemaSiteLegalResp 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 NewSchemaSiteLegalResp() *SchemaSiteLegalResp { + this := SchemaSiteLegalResp{} + return &this +} + +// NewSchemaSiteLegalRespWithDefaults instantiates a new SchemaSiteLegalResp 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 NewSchemaSiteLegalRespWithDefaults() *SchemaSiteLegalResp { + this := SchemaSiteLegalResp{} + return &this +} + +// GetPrivacyPolicyOriginalText returns the PrivacyPolicyOriginalText field value if set, zero value otherwise. +func (o *SchemaSiteLegalResp) GetPrivacyPolicyOriginalText() string { + if o == nil || IsNil(o.PrivacyPolicyOriginalText) { + var ret string + return ret + } + return *o.PrivacyPolicyOriginalText +} + +// GetPrivacyPolicyOriginalTextOk returns a tuple with the PrivacyPolicyOriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLegalResp) GetPrivacyPolicyOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.PrivacyPolicyOriginalText) { + return nil, false + } + return o.PrivacyPolicyOriginalText, true +} + +// HasPrivacyPolicyOriginalText returns a boolean if a field has been set. +func (o *SchemaSiteLegalResp) HasPrivacyPolicyOriginalText() bool { + if o != nil && !IsNil(o.PrivacyPolicyOriginalText) { + return true + } + + return false +} + +// SetPrivacyPolicyOriginalText gets a reference to the given string and assigns it to the PrivacyPolicyOriginalText field. +func (o *SchemaSiteLegalResp) SetPrivacyPolicyOriginalText(v string) { + o.PrivacyPolicyOriginalText = &v +} + +// GetPrivacyPolicyParsedText returns the PrivacyPolicyParsedText field value if set, zero value otherwise. +func (o *SchemaSiteLegalResp) GetPrivacyPolicyParsedText() string { + if o == nil || IsNil(o.PrivacyPolicyParsedText) { + var ret string + return ret + } + return *o.PrivacyPolicyParsedText +} + +// GetPrivacyPolicyParsedTextOk returns a tuple with the PrivacyPolicyParsedText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLegalResp) GetPrivacyPolicyParsedTextOk() (*string, bool) { + if o == nil || IsNil(o.PrivacyPolicyParsedText) { + return nil, false + } + return o.PrivacyPolicyParsedText, true +} + +// HasPrivacyPolicyParsedText returns a boolean if a field has been set. +func (o *SchemaSiteLegalResp) HasPrivacyPolicyParsedText() bool { + if o != nil && !IsNil(o.PrivacyPolicyParsedText) { + return true + } + + return false +} + +// SetPrivacyPolicyParsedText gets a reference to the given string and assigns it to the PrivacyPolicyParsedText field. +func (o *SchemaSiteLegalResp) SetPrivacyPolicyParsedText(v string) { + o.PrivacyPolicyParsedText = &v +} + +// GetTermsOfServiceOriginalText returns the TermsOfServiceOriginalText field value if set, zero value otherwise. +func (o *SchemaSiteLegalResp) GetTermsOfServiceOriginalText() string { + if o == nil || IsNil(o.TermsOfServiceOriginalText) { + var ret string + return ret + } + return *o.TermsOfServiceOriginalText +} + +// GetTermsOfServiceOriginalTextOk returns a tuple with the TermsOfServiceOriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLegalResp) GetTermsOfServiceOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.TermsOfServiceOriginalText) { + return nil, false + } + return o.TermsOfServiceOriginalText, true +} + +// HasTermsOfServiceOriginalText returns a boolean if a field has been set. +func (o *SchemaSiteLegalResp) HasTermsOfServiceOriginalText() bool { + if o != nil && !IsNil(o.TermsOfServiceOriginalText) { + return true + } + + return false +} + +// SetTermsOfServiceOriginalText gets a reference to the given string and assigns it to the TermsOfServiceOriginalText field. +func (o *SchemaSiteLegalResp) SetTermsOfServiceOriginalText(v string) { + o.TermsOfServiceOriginalText = &v +} + +// GetTermsOfServiceParsedText returns the TermsOfServiceParsedText field value if set, zero value otherwise. +func (o *SchemaSiteLegalResp) GetTermsOfServiceParsedText() string { + if o == nil || IsNil(o.TermsOfServiceParsedText) { + var ret string + return ret + } + return *o.TermsOfServiceParsedText +} + +// GetTermsOfServiceParsedTextOk returns a tuple with the TermsOfServiceParsedText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLegalResp) GetTermsOfServiceParsedTextOk() (*string, bool) { + if o == nil || IsNil(o.TermsOfServiceParsedText) { + return nil, false + } + return o.TermsOfServiceParsedText, true +} + +// HasTermsOfServiceParsedText returns a boolean if a field has been set. +func (o *SchemaSiteLegalResp) HasTermsOfServiceParsedText() bool { + if o != nil && !IsNil(o.TermsOfServiceParsedText) { + return true + } + + return false +} + +// SetTermsOfServiceParsedText gets a reference to the given string and assigns it to the TermsOfServiceParsedText field. +func (o *SchemaSiteLegalResp) SetTermsOfServiceParsedText(v string) { + o.TermsOfServiceParsedText = &v +} + +func (o SchemaSiteLegalResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteLegalResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.PrivacyPolicyOriginalText) { + toSerialize["privacy_policy_original_text"] = o.PrivacyPolicyOriginalText + } + if !IsNil(o.PrivacyPolicyParsedText) { + toSerialize["privacy_policy_parsed_text"] = o.PrivacyPolicyParsedText + } + if !IsNil(o.TermsOfServiceOriginalText) { + toSerialize["terms_of_service_original_text"] = o.TermsOfServiceOriginalText + } + if !IsNil(o.TermsOfServiceParsedText) { + toSerialize["terms_of_service_parsed_text"] = o.TermsOfServiceParsedText + } + return toSerialize, nil +} + +type NullableSchemaSiteLegalResp struct { + value *SchemaSiteLegalResp + isSet bool +} + +func (v NullableSchemaSiteLegalResp) Get() *SchemaSiteLegalResp { + return v.value +} + +func (v *NullableSchemaSiteLegalResp) Set(val *SchemaSiteLegalResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteLegalResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteLegalResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteLegalResp(val *SchemaSiteLegalResp) *NullableSchemaSiteLegalResp { + return &NullableSchemaSiteLegalResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteLegalResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteLegalResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_login_req.go b/model_schema_site_login_req.go new file mode 100644 index 0000000..c2a554d --- /dev/null +++ b/model_schema_site_login_req.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteLoginReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteLoginReq{} + +// SchemaSiteLoginReq struct for SchemaSiteLoginReq +type SchemaSiteLoginReq struct { + AllowNewRegistrations *bool `json:"allow_new_registrations,omitempty"` + LoginRequired *bool `json:"login_required,omitempty"` +} + +// NewSchemaSiteLoginReq instantiates a new SchemaSiteLoginReq 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 NewSchemaSiteLoginReq() *SchemaSiteLoginReq { + this := SchemaSiteLoginReq{} + return &this +} + +// 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 +func NewSchemaSiteLoginReqWithDefaults() *SchemaSiteLoginReq { + this := SchemaSiteLoginReq{} + return &this +} + +// GetAllowNewRegistrations returns the AllowNewRegistrations field value if set, zero value otherwise. +func (o *SchemaSiteLoginReq) GetAllowNewRegistrations() bool { + if o == nil || IsNil(o.AllowNewRegistrations) { + var ret bool + return ret + } + return *o.AllowNewRegistrations +} + +// GetAllowNewRegistrationsOk returns a tuple with the AllowNewRegistrations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLoginReq) GetAllowNewRegistrationsOk() (*bool, bool) { + if o == nil || IsNil(o.AllowNewRegistrations) { + return nil, false + } + return o.AllowNewRegistrations, true +} + +// HasAllowNewRegistrations returns a boolean if a field has been set. +func (o *SchemaSiteLoginReq) HasAllowNewRegistrations() bool { + if o != nil && !IsNil(o.AllowNewRegistrations) { + return true + } + + return false +} + +// SetAllowNewRegistrations gets a reference to the given bool and assigns it to the AllowNewRegistrations field. +func (o *SchemaSiteLoginReq) SetAllowNewRegistrations(v bool) { + o.AllowNewRegistrations = &v +} + +// GetLoginRequired returns the LoginRequired field value if set, zero value otherwise. +func (o *SchemaSiteLoginReq) GetLoginRequired() bool { + if o == nil || IsNil(o.LoginRequired) { + var ret bool + return ret + } + return *o.LoginRequired +} + +// GetLoginRequiredOk returns a tuple with the LoginRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLoginReq) GetLoginRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.LoginRequired) { + return nil, false + } + return o.LoginRequired, true +} + +// HasLoginRequired returns a boolean if a field has been set. +func (o *SchemaSiteLoginReq) HasLoginRequired() bool { + if o != nil && !IsNil(o.LoginRequired) { + return true + } + + return false +} + +// SetLoginRequired gets a reference to the given bool and assigns it to the LoginRequired field. +func (o *SchemaSiteLoginReq) SetLoginRequired(v bool) { + o.LoginRequired = &v +} + +func (o SchemaSiteLoginReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteLoginReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AllowNewRegistrations) { + toSerialize["allow_new_registrations"] = o.AllowNewRegistrations + } + if !IsNil(o.LoginRequired) { + toSerialize["login_required"] = o.LoginRequired + } + return toSerialize, nil +} + +type NullableSchemaSiteLoginReq struct { + value *SchemaSiteLoginReq + isSet bool +} + +func (v NullableSchemaSiteLoginReq) Get() *SchemaSiteLoginReq { + return v.value +} + +func (v *NullableSchemaSiteLoginReq) Set(val *SchemaSiteLoginReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteLoginReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteLoginReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteLoginReq(val *SchemaSiteLoginReq) *NullableSchemaSiteLoginReq { + return &NullableSchemaSiteLoginReq{value: val, isSet: true} +} + +func (v NullableSchemaSiteLoginReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteLoginReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_login_resp.go b/model_schema_site_login_resp.go new file mode 100644 index 0000000..2ab81d3 --- /dev/null +++ b/model_schema_site_login_resp.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteLoginResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteLoginResp{} + +// SchemaSiteLoginResp struct for SchemaSiteLoginResp +type SchemaSiteLoginResp struct { + AllowNewRegistrations *bool `json:"allow_new_registrations,omitempty"` + LoginRequired *bool `json:"login_required,omitempty"` +} + +// NewSchemaSiteLoginResp instantiates a new SchemaSiteLoginResp 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 NewSchemaSiteLoginResp() *SchemaSiteLoginResp { + this := SchemaSiteLoginResp{} + return &this +} + +// 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 +func NewSchemaSiteLoginRespWithDefaults() *SchemaSiteLoginResp { + this := SchemaSiteLoginResp{} + return &this +} + +// GetAllowNewRegistrations returns the AllowNewRegistrations field value if set, zero value otherwise. +func (o *SchemaSiteLoginResp) GetAllowNewRegistrations() bool { + if o == nil || IsNil(o.AllowNewRegistrations) { + var ret bool + return ret + } + return *o.AllowNewRegistrations +} + +// GetAllowNewRegistrationsOk returns a tuple with the AllowNewRegistrations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLoginResp) GetAllowNewRegistrationsOk() (*bool, bool) { + if o == nil || IsNil(o.AllowNewRegistrations) { + return nil, false + } + return o.AllowNewRegistrations, true +} + +// HasAllowNewRegistrations returns a boolean if a field has been set. +func (o *SchemaSiteLoginResp) HasAllowNewRegistrations() bool { + if o != nil && !IsNil(o.AllowNewRegistrations) { + return true + } + + return false +} + +// SetAllowNewRegistrations gets a reference to the given bool and assigns it to the AllowNewRegistrations field. +func (o *SchemaSiteLoginResp) SetAllowNewRegistrations(v bool) { + o.AllowNewRegistrations = &v +} + +// GetLoginRequired returns the LoginRequired field value if set, zero value otherwise. +func (o *SchemaSiteLoginResp) GetLoginRequired() bool { + if o == nil || IsNil(o.LoginRequired) { + var ret bool + return ret + } + return *o.LoginRequired +} + +// GetLoginRequiredOk returns a tuple with the LoginRequired field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteLoginResp) GetLoginRequiredOk() (*bool, bool) { + if o == nil || IsNil(o.LoginRequired) { + return nil, false + } + return o.LoginRequired, true +} + +// HasLoginRequired returns a boolean if a field has been set. +func (o *SchemaSiteLoginResp) HasLoginRequired() bool { + if o != nil && !IsNil(o.LoginRequired) { + return true + } + + return false +} + +// SetLoginRequired gets a reference to the given bool and assigns it to the LoginRequired field. +func (o *SchemaSiteLoginResp) SetLoginRequired(v bool) { + o.LoginRequired = &v +} + +func (o SchemaSiteLoginResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteLoginResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AllowNewRegistrations) { + toSerialize["allow_new_registrations"] = o.AllowNewRegistrations + } + if !IsNil(o.LoginRequired) { + toSerialize["login_required"] = o.LoginRequired + } + return toSerialize, nil +} + +type NullableSchemaSiteLoginResp struct { + value *SchemaSiteLoginResp + isSet bool +} + +func (v NullableSchemaSiteLoginResp) Get() *SchemaSiteLoginResp { + return v.value +} + +func (v *NullableSchemaSiteLoginResp) Set(val *SchemaSiteLoginResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteLoginResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteLoginResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteLoginResp(val *SchemaSiteLoginResp) *NullableSchemaSiteLoginResp { + return &NullableSchemaSiteLoginResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteLoginResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteLoginResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_seo_req.go b/model_schema_site_seo_req.go new file mode 100644 index 0000000..641b29f --- /dev/null +++ b/model_schema_site_seo_req.go @@ -0,0 +1,144 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteSeoReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteSeoReq{} + +// SchemaSiteSeoReq struct for SchemaSiteSeoReq +type SchemaSiteSeoReq struct { + Permalink int32 `json:"permalink"` + Robots string `json:"robots"` +} + +// NewSchemaSiteSeoReq instantiates a new SchemaSiteSeoReq 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 NewSchemaSiteSeoReq(permalink int32, robots string) *SchemaSiteSeoReq { + this := SchemaSiteSeoReq{} + this.Permalink = permalink + this.Robots = robots + return &this +} + +// NewSchemaSiteSeoReqWithDefaults instantiates a new SchemaSiteSeoReq 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 NewSchemaSiteSeoReqWithDefaults() *SchemaSiteSeoReq { + this := SchemaSiteSeoReq{} + return &this +} + +// GetPermalink returns the Permalink field value +func (o *SchemaSiteSeoReq) GetPermalink() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Permalink +} + +// GetPermalinkOk returns a tuple with the Permalink field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteSeoReq) GetPermalinkOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Permalink, true +} + +// SetPermalink sets field value +func (o *SchemaSiteSeoReq) SetPermalink(v int32) { + o.Permalink = v +} + +// GetRobots returns the Robots field value +func (o *SchemaSiteSeoReq) GetRobots() string { + if o == nil { + var ret string + return ret + } + + return o.Robots +} + +// GetRobotsOk returns a tuple with the Robots field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteSeoReq) GetRobotsOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Robots, true +} + +// SetRobots sets field value +func (o *SchemaSiteSeoReq) SetRobots(v string) { + o.Robots = v +} + +func (o SchemaSiteSeoReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteSeoReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["permalink"] = o.Permalink + toSerialize["robots"] = o.Robots + return toSerialize, nil +} + +type NullableSchemaSiteSeoReq struct { + value *SchemaSiteSeoReq + isSet bool +} + +func (v NullableSchemaSiteSeoReq) Get() *SchemaSiteSeoReq { + return v.value +} + +func (v *NullableSchemaSiteSeoReq) Set(val *SchemaSiteSeoReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteSeoReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteSeoReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteSeoReq(val *SchemaSiteSeoReq) *NullableSchemaSiteSeoReq { + return &NullableSchemaSiteSeoReq{value: val, isSet: true} +} + +func (v NullableSchemaSiteSeoReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteSeoReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_seo_resp.go b/model_schema_site_seo_resp.go new file mode 100644 index 0000000..04d2e57 --- /dev/null +++ b/model_schema_site_seo_resp.go @@ -0,0 +1,144 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteSeoResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteSeoResp{} + +// SchemaSiteSeoResp struct for SchemaSiteSeoResp +type SchemaSiteSeoResp struct { + Permalink int32 `json:"permalink"` + Robots string `json:"robots"` +} + +// NewSchemaSiteSeoResp instantiates a new SchemaSiteSeoResp 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 NewSchemaSiteSeoResp(permalink int32, robots string) *SchemaSiteSeoResp { + this := SchemaSiteSeoResp{} + this.Permalink = permalink + this.Robots = robots + return &this +} + +// NewSchemaSiteSeoRespWithDefaults instantiates a new SchemaSiteSeoResp 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 NewSchemaSiteSeoRespWithDefaults() *SchemaSiteSeoResp { + this := SchemaSiteSeoResp{} + return &this +} + +// GetPermalink returns the Permalink field value +func (o *SchemaSiteSeoResp) GetPermalink() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Permalink +} + +// GetPermalinkOk returns a tuple with the Permalink field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteSeoResp) GetPermalinkOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Permalink, true +} + +// SetPermalink sets field value +func (o *SchemaSiteSeoResp) SetPermalink(v int32) { + o.Permalink = v +} + +// GetRobots returns the Robots field value +func (o *SchemaSiteSeoResp) GetRobots() string { + if o == nil { + var ret string + return ret + } + + return o.Robots +} + +// GetRobotsOk returns a tuple with the Robots field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteSeoResp) GetRobotsOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Robots, true +} + +// SetRobots sets field value +func (o *SchemaSiteSeoResp) SetRobots(v string) { + o.Robots = v +} + +func (o SchemaSiteSeoResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteSeoResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["permalink"] = o.Permalink + toSerialize["robots"] = o.Robots + return toSerialize, nil +} + +type NullableSchemaSiteSeoResp struct { + value *SchemaSiteSeoResp + isSet bool +} + +func (v NullableSchemaSiteSeoResp) Get() *SchemaSiteSeoResp { + return v.value +} + +func (v *NullableSchemaSiteSeoResp) Set(val *SchemaSiteSeoResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteSeoResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteSeoResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteSeoResp(val *SchemaSiteSeoResp) *NullableSchemaSiteSeoResp { + return &NullableSchemaSiteSeoResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteSeoResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteSeoResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_theme_req.go b/model_schema_site_theme_req.go new file mode 100644 index 0000000..c1fb7ee --- /dev/null +++ b/model_schema_site_theme_req.go @@ -0,0 +1,153 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteThemeReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteThemeReq{} + +// SchemaSiteThemeReq struct for SchemaSiteThemeReq +type SchemaSiteThemeReq struct { + Theme string `json:"theme"` + ThemeConfig map[string]interface{} `json:"theme_config,omitempty"` +} + +// NewSchemaSiteThemeReq instantiates a new SchemaSiteThemeReq 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 NewSchemaSiteThemeReq(theme string) *SchemaSiteThemeReq { + this := SchemaSiteThemeReq{} + this.Theme = theme + return &this +} + +// NewSchemaSiteThemeReqWithDefaults instantiates a new SchemaSiteThemeReq 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 NewSchemaSiteThemeReqWithDefaults() *SchemaSiteThemeReq { + this := SchemaSiteThemeReq{} + return &this +} + +// GetTheme returns the Theme field value +func (o *SchemaSiteThemeReq) GetTheme() string { + if o == nil { + var ret string + return ret + } + + return o.Theme +} + +// GetThemeOk returns a tuple with the Theme field value +// and a boolean to check if the value has been set. +func (o *SchemaSiteThemeReq) GetThemeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Theme, true +} + +// SetTheme sets field value +func (o *SchemaSiteThemeReq) SetTheme(v string) { + o.Theme = v +} + +// GetThemeConfig returns the ThemeConfig field value if set, zero value otherwise. +func (o *SchemaSiteThemeReq) GetThemeConfig() map[string]interface{} { + if o == nil || IsNil(o.ThemeConfig) { + var ret map[string]interface{} + return ret + } + return o.ThemeConfig +} + +// GetThemeConfigOk returns a tuple with the ThemeConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteThemeReq) GetThemeConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ThemeConfig) { + return map[string]interface{}{}, false + } + return o.ThemeConfig, true +} + +// HasThemeConfig returns a boolean if a field has been set. +func (o *SchemaSiteThemeReq) HasThemeConfig() bool { + if o != nil && !IsNil(o.ThemeConfig) { + return true + } + + return false +} + +// SetThemeConfig gets a reference to the given map[string]interface{} and assigns it to the ThemeConfig field. +func (o *SchemaSiteThemeReq) SetThemeConfig(v map[string]interface{}) { + o.ThemeConfig = v +} + +func (o SchemaSiteThemeReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteThemeReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["theme"] = o.Theme + if !IsNil(o.ThemeConfig) { + toSerialize["theme_config"] = o.ThemeConfig + } + return toSerialize, nil +} + +type NullableSchemaSiteThemeReq struct { + value *SchemaSiteThemeReq + isSet bool +} + +func (v NullableSchemaSiteThemeReq) Get() *SchemaSiteThemeReq { + return v.value +} + +func (v *NullableSchemaSiteThemeReq) Set(val *SchemaSiteThemeReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteThemeReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteThemeReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteThemeReq(val *SchemaSiteThemeReq) *NullableSchemaSiteThemeReq { + return &NullableSchemaSiteThemeReq{value: val, isSet: true} +} + +func (v NullableSchemaSiteThemeReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteThemeReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_theme_resp.go b/model_schema_site_theme_resp.go new file mode 100644 index 0000000..356d160 --- /dev/null +++ b/model_schema_site_theme_resp.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteThemeResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteThemeResp{} + +// SchemaSiteThemeResp struct for SchemaSiteThemeResp +type SchemaSiteThemeResp struct { + Theme *string `json:"theme,omitempty"` + ThemeConfig map[string]interface{} `json:"theme_config,omitempty"` + ThemeOptions []SchemaThemeOption `json:"theme_options,omitempty"` +} + +// NewSchemaSiteThemeResp instantiates a new SchemaSiteThemeResp 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 NewSchemaSiteThemeResp() *SchemaSiteThemeResp { + this := SchemaSiteThemeResp{} + return &this +} + +// NewSchemaSiteThemeRespWithDefaults instantiates a new SchemaSiteThemeResp 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 NewSchemaSiteThemeRespWithDefaults() *SchemaSiteThemeResp { + this := SchemaSiteThemeResp{} + return &this +} + +// GetTheme returns the Theme field value if set, zero value otherwise. +func (o *SchemaSiteThemeResp) GetTheme() string { + if o == nil || IsNil(o.Theme) { + var ret string + return ret + } + return *o.Theme +} + +// GetThemeOk returns a tuple with the Theme field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteThemeResp) GetThemeOk() (*string, bool) { + if o == nil || IsNil(o.Theme) { + return nil, false + } + return o.Theme, true +} + +// HasTheme returns a boolean if a field has been set. +func (o *SchemaSiteThemeResp) HasTheme() bool { + if o != nil && !IsNil(o.Theme) { + return true + } + + return false +} + +// SetTheme gets a reference to the given string and assigns it to the Theme field. +func (o *SchemaSiteThemeResp) SetTheme(v string) { + o.Theme = &v +} + +// GetThemeConfig returns the ThemeConfig field value if set, zero value otherwise. +func (o *SchemaSiteThemeResp) GetThemeConfig() map[string]interface{} { + if o == nil || IsNil(o.ThemeConfig) { + var ret map[string]interface{} + return ret + } + return o.ThemeConfig +} + +// GetThemeConfigOk returns a tuple with the ThemeConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteThemeResp) GetThemeConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ThemeConfig) { + return map[string]interface{}{}, false + } + return o.ThemeConfig, true +} + +// HasThemeConfig returns a boolean if a field has been set. +func (o *SchemaSiteThemeResp) HasThemeConfig() bool { + if o != nil && !IsNil(o.ThemeConfig) { + return true + } + + return false +} + +// SetThemeConfig gets a reference to the given map[string]interface{} and assigns it to the ThemeConfig field. +func (o *SchemaSiteThemeResp) SetThemeConfig(v map[string]interface{}) { + o.ThemeConfig = v +} + +// GetThemeOptions returns the ThemeOptions field value if set, zero value otherwise. +func (o *SchemaSiteThemeResp) GetThemeOptions() []SchemaThemeOption { + if o == nil || IsNil(o.ThemeOptions) { + var ret []SchemaThemeOption + return ret + } + return o.ThemeOptions +} + +// GetThemeOptionsOk returns a tuple with the ThemeOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteThemeResp) GetThemeOptionsOk() ([]SchemaThemeOption, bool) { + if o == nil || IsNil(o.ThemeOptions) { + return nil, false + } + return o.ThemeOptions, true +} + +// HasThemeOptions returns a boolean if a field has been set. +func (o *SchemaSiteThemeResp) HasThemeOptions() bool { + if o != nil && !IsNil(o.ThemeOptions) { + return true + } + + return false +} + +// SetThemeOptions gets a reference to the given []SchemaThemeOption and assigns it to the ThemeOptions field. +func (o *SchemaSiteThemeResp) SetThemeOptions(v []SchemaThemeOption) { + o.ThemeOptions = v +} + +func (o SchemaSiteThemeResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteThemeResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Theme) { + toSerialize["theme"] = o.Theme + } + if !IsNil(o.ThemeConfig) { + toSerialize["theme_config"] = o.ThemeConfig + } + if !IsNil(o.ThemeOptions) { + toSerialize["theme_options"] = o.ThemeOptions + } + return toSerialize, nil +} + +type NullableSchemaSiteThemeResp struct { + value *SchemaSiteThemeResp + isSet bool +} + +func (v NullableSchemaSiteThemeResp) Get() *SchemaSiteThemeResp { + return v.value +} + +func (v *NullableSchemaSiteThemeResp) Set(val *SchemaSiteThemeResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteThemeResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteThemeResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteThemeResp(val *SchemaSiteThemeResp) *NullableSchemaSiteThemeResp { + return &NullableSchemaSiteThemeResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteThemeResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteThemeResp) 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 new file mode 100644 index 0000000..1149e3f --- /dev/null +++ b/model_schema_site_write_req.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteWriteReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteWriteReq{} + +// SchemaSiteWriteReq struct for SchemaSiteWriteReq +type SchemaSiteWriteReq struct { + RecommendTags []string `json:"recommend_tags,omitempty"` + RequiredTag *bool `json:"required_tag,omitempty"` + ReservedTags []string `json:"reserved_tags,omitempty"` +} + +// NewSchemaSiteWriteReq instantiates a new SchemaSiteWriteReq 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 NewSchemaSiteWriteReq() *SchemaSiteWriteReq { + this := SchemaSiteWriteReq{} + return &this +} + +// NewSchemaSiteWriteReqWithDefaults instantiates a new SchemaSiteWriteReq 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 NewSchemaSiteWriteReqWithDefaults() *SchemaSiteWriteReq { + this := SchemaSiteWriteReq{} + return &this +} + +// GetRecommendTags returns the RecommendTags field value if set, zero value otherwise. +func (o *SchemaSiteWriteReq) GetRecommendTags() []string { + if o == nil || IsNil(o.RecommendTags) { + var ret []string + return ret + } + return o.RecommendTags +} + +// GetRecommendTagsOk returns a tuple with the RecommendTags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteWriteReq) GetRecommendTagsOk() ([]string, bool) { + if o == nil || IsNil(o.RecommendTags) { + return nil, false + } + return o.RecommendTags, true +} + +// HasRecommendTags returns a boolean if a field has been set. +func (o *SchemaSiteWriteReq) HasRecommendTags() bool { + if o != nil && !IsNil(o.RecommendTags) { + return true + } + + return false +} + +// SetRecommendTags gets a reference to the given []string and assigns it to the RecommendTags field. +func (o *SchemaSiteWriteReq) SetRecommendTags(v []string) { + o.RecommendTags = v +} + +// GetRequiredTag returns the RequiredTag field value if set, zero value otherwise. +func (o *SchemaSiteWriteReq) GetRequiredTag() bool { + if o == nil || IsNil(o.RequiredTag) { + var ret bool + return ret + } + return *o.RequiredTag +} + +// GetRequiredTagOk returns a tuple with the RequiredTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteWriteReq) GetRequiredTagOk() (*bool, bool) { + if o == nil || IsNil(o.RequiredTag) { + return nil, false + } + return o.RequiredTag, true +} + +// HasRequiredTag returns a boolean if a field has been set. +func (o *SchemaSiteWriteReq) HasRequiredTag() bool { + if o != nil && !IsNil(o.RequiredTag) { + return true + } + + return false +} + +// SetRequiredTag gets a reference to the given bool and assigns it to the RequiredTag field. +func (o *SchemaSiteWriteReq) SetRequiredTag(v bool) { + o.RequiredTag = &v +} + +// GetReservedTags returns the ReservedTags field value if set, zero value otherwise. +func (o *SchemaSiteWriteReq) GetReservedTags() []string { + if o == nil || IsNil(o.ReservedTags) { + var ret []string + return ret + } + return o.ReservedTags +} + +// GetReservedTagsOk returns a tuple with the ReservedTags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteWriteReq) GetReservedTagsOk() ([]string, bool) { + if o == nil || IsNil(o.ReservedTags) { + return nil, false + } + return o.ReservedTags, true +} + +// HasReservedTags returns a boolean if a field has been set. +func (o *SchemaSiteWriteReq) HasReservedTags() bool { + if o != nil && !IsNil(o.ReservedTags) { + return true + } + + return false +} + +// SetReservedTags gets a reference to the given []string and assigns it to the ReservedTags field. +func (o *SchemaSiteWriteReq) SetReservedTags(v []string) { + o.ReservedTags = v +} + +func (o SchemaSiteWriteReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteWriteReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RecommendTags) { + toSerialize["recommend_tags"] = o.RecommendTags + } + if !IsNil(o.RequiredTag) { + toSerialize["required_tag"] = o.RequiredTag + } + if !IsNil(o.ReservedTags) { + toSerialize["reserved_tags"] = o.ReservedTags + } + return toSerialize, nil +} + +type NullableSchemaSiteWriteReq struct { + value *SchemaSiteWriteReq + isSet bool +} + +func (v NullableSchemaSiteWriteReq) Get() *SchemaSiteWriteReq { + return v.value +} + +func (v *NullableSchemaSiteWriteReq) Set(val *SchemaSiteWriteReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteWriteReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteWriteReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteWriteReq(val *SchemaSiteWriteReq) *NullableSchemaSiteWriteReq { + return &NullableSchemaSiteWriteReq{value: val, isSet: true} +} + +func (v NullableSchemaSiteWriteReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteWriteReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_site_write_resp.go b/model_schema_site_write_resp.go new file mode 100644 index 0000000..97e8ee7 --- /dev/null +++ b/model_schema_site_write_resp.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaSiteWriteResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaSiteWriteResp{} + +// SchemaSiteWriteResp struct for SchemaSiteWriteResp +type SchemaSiteWriteResp struct { + RecommendTags []string `json:"recommend_tags,omitempty"` + RequiredTag *bool `json:"required_tag,omitempty"` + ReservedTags []string `json:"reserved_tags,omitempty"` +} + +// NewSchemaSiteWriteResp instantiates a new SchemaSiteWriteResp 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 NewSchemaSiteWriteResp() *SchemaSiteWriteResp { + this := SchemaSiteWriteResp{} + return &this +} + +// NewSchemaSiteWriteRespWithDefaults instantiates a new SchemaSiteWriteResp 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 NewSchemaSiteWriteRespWithDefaults() *SchemaSiteWriteResp { + this := SchemaSiteWriteResp{} + return &this +} + +// GetRecommendTags returns the RecommendTags field value if set, zero value otherwise. +func (o *SchemaSiteWriteResp) GetRecommendTags() []string { + if o == nil || IsNil(o.RecommendTags) { + var ret []string + return ret + } + return o.RecommendTags +} + +// GetRecommendTagsOk returns a tuple with the RecommendTags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteWriteResp) GetRecommendTagsOk() ([]string, bool) { + if o == nil || IsNil(o.RecommendTags) { + return nil, false + } + return o.RecommendTags, true +} + +// HasRecommendTags returns a boolean if a field has been set. +func (o *SchemaSiteWriteResp) HasRecommendTags() bool { + if o != nil && !IsNil(o.RecommendTags) { + return true + } + + return false +} + +// SetRecommendTags gets a reference to the given []string and assigns it to the RecommendTags field. +func (o *SchemaSiteWriteResp) SetRecommendTags(v []string) { + o.RecommendTags = v +} + +// GetRequiredTag returns the RequiredTag field value if set, zero value otherwise. +func (o *SchemaSiteWriteResp) GetRequiredTag() bool { + if o == nil || IsNil(o.RequiredTag) { + var ret bool + return ret + } + return *o.RequiredTag +} + +// GetRequiredTagOk returns a tuple with the RequiredTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteWriteResp) GetRequiredTagOk() (*bool, bool) { + if o == nil || IsNil(o.RequiredTag) { + return nil, false + } + return o.RequiredTag, true +} + +// HasRequiredTag returns a boolean if a field has been set. +func (o *SchemaSiteWriteResp) HasRequiredTag() bool { + if o != nil && !IsNil(o.RequiredTag) { + return true + } + + return false +} + +// SetRequiredTag gets a reference to the given bool and assigns it to the RequiredTag field. +func (o *SchemaSiteWriteResp) SetRequiredTag(v bool) { + o.RequiredTag = &v +} + +// GetReservedTags returns the ReservedTags field value if set, zero value otherwise. +func (o *SchemaSiteWriteResp) GetReservedTags() []string { + if o == nil || IsNil(o.ReservedTags) { + var ret []string + return ret + } + return o.ReservedTags +} + +// GetReservedTagsOk returns a tuple with the ReservedTags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaSiteWriteResp) GetReservedTagsOk() ([]string, bool) { + if o == nil || IsNil(o.ReservedTags) { + return nil, false + } + return o.ReservedTags, true +} + +// HasReservedTags returns a boolean if a field has been set. +func (o *SchemaSiteWriteResp) HasReservedTags() bool { + if o != nil && !IsNil(o.ReservedTags) { + return true + } + + return false +} + +// SetReservedTags gets a reference to the given []string and assigns it to the ReservedTags field. +func (o *SchemaSiteWriteResp) SetReservedTags(v []string) { + o.ReservedTags = v +} + +func (o SchemaSiteWriteResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaSiteWriteResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RecommendTags) { + toSerialize["recommend_tags"] = o.RecommendTags + } + if !IsNil(o.RequiredTag) { + toSerialize["required_tag"] = o.RequiredTag + } + if !IsNil(o.ReservedTags) { + toSerialize["reserved_tags"] = o.ReservedTags + } + return toSerialize, nil +} + +type NullableSchemaSiteWriteResp struct { + value *SchemaSiteWriteResp + isSet bool +} + +func (v NullableSchemaSiteWriteResp) Get() *SchemaSiteWriteResp { + return v.value +} + +func (v *NullableSchemaSiteWriteResp) Set(val *SchemaSiteWriteResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaSiteWriteResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaSiteWriteResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaSiteWriteResp(val *SchemaSiteWriteResp) *NullableSchemaSiteWriteResp { + return &NullableSchemaSiteWriteResp{value: val, isSet: true} +} + +func (v NullableSchemaSiteWriteResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaSiteWriteResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_tag_item.go b/model_schema_tag_item.go new file mode 100644 index 0000000..7249b74 --- /dev/null +++ b/model_schema_tag_item.go @@ -0,0 +1,201 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaTagItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaTagItem{} + +// SchemaTagItem struct for SchemaTagItem +type SchemaTagItem struct { + // display_name + DisplayName *string `json:"display_name,omitempty"` + // original text + OriginalText *string `json:"original_text,omitempty"` + // slug_name + SlugName *string `json:"slug_name,omitempty"` +} + +// NewSchemaTagItem instantiates a new SchemaTagItem 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 NewSchemaTagItem() *SchemaTagItem { + this := SchemaTagItem{} + return &this +} + +// NewSchemaTagItemWithDefaults instantiates a new SchemaTagItem 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 NewSchemaTagItemWithDefaults() *SchemaTagItem { + this := SchemaTagItem{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaTagItem) 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 *SchemaTagItem) 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 *SchemaTagItem) 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 *SchemaTagItem) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetOriginalText returns the OriginalText field value if set, zero value otherwise. +func (o *SchemaTagItem) GetOriginalText() string { + if o == nil || IsNil(o.OriginalText) { + var ret string + return ret + } + return *o.OriginalText +} + +// GetOriginalTextOk returns a tuple with the OriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaTagItem) GetOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.OriginalText) { + return nil, false + } + return o.OriginalText, true +} + +// HasOriginalText returns a boolean if a field has been set. +func (o *SchemaTagItem) HasOriginalText() bool { + if o != nil && !IsNil(o.OriginalText) { + return true + } + + return false +} + +// SetOriginalText gets a reference to the given string and assigns it to the OriginalText field. +func (o *SchemaTagItem) SetOriginalText(v string) { + o.OriginalText = &v +} + +// GetSlugName returns the SlugName field value if set, zero value otherwise. +func (o *SchemaTagItem) 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 *SchemaTagItem) 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 *SchemaTagItem) 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 *SchemaTagItem) SetSlugName(v string) { + o.SlugName = &v +} + +func (o SchemaTagItem) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaTagItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.OriginalText) { + toSerialize["original_text"] = o.OriginalText + } + if !IsNil(o.SlugName) { + toSerialize["slug_name"] = o.SlugName + } + return toSerialize, nil +} + +type NullableSchemaTagItem struct { + value *SchemaTagItem + isSet bool +} + +func (v NullableSchemaTagItem) Get() *SchemaTagItem { + return v.value +} + +func (v *NullableSchemaTagItem) Set(val *SchemaTagItem) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaTagItem) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaTagItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaTagItem(val *SchemaTagItem) *NullableSchemaTagItem { + return &NullableSchemaTagItem{value: val, isSet: true} +} + +func (v NullableSchemaTagItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaTagItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_tag_resp.go b/model_schema_tag_resp.go new file mode 100644 index 0000000..e34d7c8 --- /dev/null +++ b/model_schema_tag_resp.go @@ -0,0 +1,271 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaTagResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaTagResp{} + +// SchemaTagResp struct for SchemaTagResp +type SchemaTagResp struct { + DisplayName *string `json:"display_name,omitempty"` + // if main tag slug name is not empty, this tag is synonymous with the main tag + MainTagSlugName *string `json:"main_tag_slug_name,omitempty"` + Recommend *bool `json:"recommend,omitempty"` + Reserved *bool `json:"reserved,omitempty"` + SlugName *string `json:"slug_name,omitempty"` +} + +// NewSchemaTagResp instantiates a new SchemaTagResp 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 NewSchemaTagResp() *SchemaTagResp { + this := SchemaTagResp{} + return &this +} + +// NewSchemaTagRespWithDefaults instantiates a new SchemaTagResp 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 NewSchemaTagRespWithDefaults() *SchemaTagResp { + this := SchemaTagResp{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaTagResp) 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 *SchemaTagResp) 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 *SchemaTagResp) 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 *SchemaTagResp) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetMainTagSlugName returns the MainTagSlugName field value if set, zero value otherwise. +func (o *SchemaTagResp) GetMainTagSlugName() string { + if o == nil || IsNil(o.MainTagSlugName) { + var ret string + return ret + } + return *o.MainTagSlugName +} + +// GetMainTagSlugNameOk returns a tuple with the MainTagSlugName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaTagResp) GetMainTagSlugNameOk() (*string, bool) { + if o == nil || IsNil(o.MainTagSlugName) { + return nil, false + } + return o.MainTagSlugName, true +} + +// HasMainTagSlugName returns a boolean if a field has been set. +func (o *SchemaTagResp) HasMainTagSlugName() bool { + if o != nil && !IsNil(o.MainTagSlugName) { + return true + } + + return false +} + +// SetMainTagSlugName gets a reference to the given string and assigns it to the MainTagSlugName field. +func (o *SchemaTagResp) SetMainTagSlugName(v string) { + o.MainTagSlugName = &v +} + +// GetRecommend returns the Recommend field value if set, zero value otherwise. +func (o *SchemaTagResp) GetRecommend() bool { + if o == nil || IsNil(o.Recommend) { + var ret bool + return ret + } + return *o.Recommend +} + +// GetRecommendOk returns a tuple with the Recommend field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaTagResp) GetRecommendOk() (*bool, bool) { + if o == nil || IsNil(o.Recommend) { + return nil, false + } + return o.Recommend, true +} + +// HasRecommend returns a boolean if a field has been set. +func (o *SchemaTagResp) HasRecommend() bool { + if o != nil && !IsNil(o.Recommend) { + return true + } + + return false +} + +// SetRecommend gets a reference to the given bool and assigns it to the Recommend field. +func (o *SchemaTagResp) SetRecommend(v bool) { + o.Recommend = &v +} + +// GetReserved returns the Reserved field value if set, zero value otherwise. +func (o *SchemaTagResp) GetReserved() bool { + if o == nil || IsNil(o.Reserved) { + var ret bool + return ret + } + return *o.Reserved +} + +// GetReservedOk returns a tuple with the Reserved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaTagResp) GetReservedOk() (*bool, bool) { + if o == nil || IsNil(o.Reserved) { + return nil, false + } + return o.Reserved, true +} + +// HasReserved returns a boolean if a field has been set. +func (o *SchemaTagResp) HasReserved() bool { + if o != nil && !IsNil(o.Reserved) { + return true + } + + return false +} + +// SetReserved gets a reference to the given bool and assigns it to the Reserved field. +func (o *SchemaTagResp) SetReserved(v bool) { + o.Reserved = &v +} + +// GetSlugName returns the SlugName field value if set, zero value otherwise. +func (o *SchemaTagResp) 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 *SchemaTagResp) 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 *SchemaTagResp) 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 *SchemaTagResp) SetSlugName(v string) { + o.SlugName = &v +} + +func (o SchemaTagResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaTagResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.MainTagSlugName) { + toSerialize["main_tag_slug_name"] = o.MainTagSlugName + } + if !IsNil(o.Recommend) { + toSerialize["recommend"] = o.Recommend + } + if !IsNil(o.Reserved) { + toSerialize["reserved"] = o.Reserved + } + if !IsNil(o.SlugName) { + toSerialize["slug_name"] = o.SlugName + } + return toSerialize, nil +} + +type NullableSchemaTagResp struct { + value *SchemaTagResp + isSet bool +} + +func (v NullableSchemaTagResp) Get() *SchemaTagResp { + return v.value +} + +func (v *NullableSchemaTagResp) Set(val *SchemaTagResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaTagResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaTagResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaTagResp(val *SchemaTagResp) *NullableSchemaTagResp { + return &NullableSchemaTagResp{value: val, isSet: true} +} + +func (v NullableSchemaTagResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaTagResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_tag_synonym.go b/model_schema_tag_synonym.go new file mode 100644 index 0000000..d6f28a9 --- /dev/null +++ b/model_schema_tag_synonym.go @@ -0,0 +1,238 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaTagSynonym type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaTagSynonym{} + +// SchemaTagSynonym struct for SchemaTagSynonym +type SchemaTagSynonym struct { + // display name + DisplayName *string `json:"display_name,omitempty"` + // if main tag slug name is not empty, this tag is synonymous with the main tag + MainTagSlugName *string `json:"main_tag_slug_name,omitempty"` + // slug name + SlugName *string `json:"slug_name,omitempty"` + // tag id + TagId *string `json:"tag_id,omitempty"` +} + +// NewSchemaTagSynonym instantiates a new SchemaTagSynonym 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 NewSchemaTagSynonym() *SchemaTagSynonym { + this := SchemaTagSynonym{} + return &this +} + +// NewSchemaTagSynonymWithDefaults instantiates a new SchemaTagSynonym 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 NewSchemaTagSynonymWithDefaults() *SchemaTagSynonym { + this := SchemaTagSynonym{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaTagSynonym) 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 *SchemaTagSynonym) 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 *SchemaTagSynonym) 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 *SchemaTagSynonym) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetMainTagSlugName returns the MainTagSlugName field value if set, zero value otherwise. +func (o *SchemaTagSynonym) GetMainTagSlugName() string { + if o == nil || IsNil(o.MainTagSlugName) { + var ret string + return ret + } + return *o.MainTagSlugName +} + +// GetMainTagSlugNameOk returns a tuple with the MainTagSlugName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaTagSynonym) GetMainTagSlugNameOk() (*string, bool) { + if o == nil || IsNil(o.MainTagSlugName) { + return nil, false + } + return o.MainTagSlugName, true +} + +// HasMainTagSlugName returns a boolean if a field has been set. +func (o *SchemaTagSynonym) HasMainTagSlugName() bool { + if o != nil && !IsNil(o.MainTagSlugName) { + return true + } + + return false +} + +// SetMainTagSlugName gets a reference to the given string and assigns it to the MainTagSlugName field. +func (o *SchemaTagSynonym) SetMainTagSlugName(v string) { + o.MainTagSlugName = &v +} + +// GetSlugName returns the SlugName field value if set, zero value otherwise. +func (o *SchemaTagSynonym) 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 *SchemaTagSynonym) 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 *SchemaTagSynonym) 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 *SchemaTagSynonym) SetSlugName(v string) { + o.SlugName = &v +} + +// GetTagId returns the TagId field value if set, zero value otherwise. +func (o *SchemaTagSynonym) GetTagId() string { + if o == nil || IsNil(o.TagId) { + var ret string + return ret + } + return *o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaTagSynonym) GetTagIdOk() (*string, bool) { + if o == nil || IsNil(o.TagId) { + return nil, false + } + return o.TagId, true +} + +// HasTagId returns a boolean if a field has been set. +func (o *SchemaTagSynonym) HasTagId() bool { + if o != nil && !IsNil(o.TagId) { + return true + } + + return false +} + +// SetTagId gets a reference to the given string and assigns it to the TagId field. +func (o *SchemaTagSynonym) SetTagId(v string) { + o.TagId = &v +} + +func (o SchemaTagSynonym) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaTagSynonym) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.MainTagSlugName) { + toSerialize["main_tag_slug_name"] = o.MainTagSlugName + } + if !IsNil(o.SlugName) { + toSerialize["slug_name"] = o.SlugName + } + if !IsNil(o.TagId) { + toSerialize["tag_id"] = o.TagId + } + return toSerialize, nil +} + +type NullableSchemaTagSynonym struct { + value *SchemaTagSynonym + isSet bool +} + +func (v NullableSchemaTagSynonym) Get() *SchemaTagSynonym { + return v.value +} + +func (v *NullableSchemaTagSynonym) Set(val *SchemaTagSynonym) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaTagSynonym) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaTagSynonym) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaTagSynonym(val *SchemaTagSynonym) *NullableSchemaTagSynonym { + return &NullableSchemaTagSynonym{value: val, isSet: true} +} + +func (v NullableSchemaTagSynonym) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaTagSynonym) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_theme_option.go b/model_schema_theme_option.go new file mode 100644 index 0000000..c4493de --- /dev/null +++ b/model_schema_theme_option.go @@ -0,0 +1,162 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaThemeOption type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaThemeOption{} + +// SchemaThemeOption struct for SchemaThemeOption +type SchemaThemeOption struct { + Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` +} + +// NewSchemaThemeOption instantiates a new SchemaThemeOption 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 NewSchemaThemeOption() *SchemaThemeOption { + this := SchemaThemeOption{} + return &this +} + +// NewSchemaThemeOptionWithDefaults instantiates a new SchemaThemeOption 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 NewSchemaThemeOptionWithDefaults() *SchemaThemeOption { + this := SchemaThemeOption{} + return &this +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *SchemaThemeOption) 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 *SchemaThemeOption) 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 *SchemaThemeOption) 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 *SchemaThemeOption) SetLabel(v string) { + o.Label = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *SchemaThemeOption) 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 *SchemaThemeOption) 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 *SchemaThemeOption) 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 *SchemaThemeOption) SetValue(v string) { + o.Value = &v +} + +func (o SchemaThemeOption) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaThemeOption) 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 NullableSchemaThemeOption struct { + value *SchemaThemeOption + isSet bool +} + +func (v NullableSchemaThemeOption) Get() *SchemaThemeOption { + return v.value +} + +func (v *NullableSchemaThemeOption) Set(val *SchemaThemeOption) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaThemeOption) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaThemeOption) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaThemeOption(val *SchemaThemeOption) *NullableSchemaThemeOption { + return &NullableSchemaThemeOption{value: val, isSet: true} +} + +func (v NullableSchemaThemeOption) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaThemeOption) 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 new file mode 100644 index 0000000..5771e77 --- /dev/null +++ b/model_schema_unreviewed_revision_info_info.go @@ -0,0 +1,270 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUnreviewedRevisionInfoInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUnreviewedRevisionInfoInfo{} + +// SchemaUnreviewedRevisionInfoInfo struct for SchemaUnreviewedRevisionInfoInfo +type SchemaUnreviewedRevisionInfoInfo struct { + Content *string `json:"content,omitempty"` + Html *string `json:"html,omitempty"` + ObjectId *string `json:"object_id,omitempty"` + Tags []SchemaTagResp `json:"tags,omitempty"` + Title *string `json:"title,omitempty"` +} + +// NewSchemaUnreviewedRevisionInfoInfo instantiates a new SchemaUnreviewedRevisionInfoInfo 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 NewSchemaUnreviewedRevisionInfoInfo() *SchemaUnreviewedRevisionInfoInfo { + this := SchemaUnreviewedRevisionInfoInfo{} + return &this +} + +// NewSchemaUnreviewedRevisionInfoInfoWithDefaults instantiates a new SchemaUnreviewedRevisionInfoInfo 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 NewSchemaUnreviewedRevisionInfoInfoWithDefaults() *SchemaUnreviewedRevisionInfoInfo { + this := SchemaUnreviewedRevisionInfoInfo{} + return &this +} + +// GetContent returns the Content field value if set, zero value otherwise. +func (o *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) SetContent(v string) { + o.Content = &v +} + +// GetHtml returns the Html field value if set, zero value otherwise. +func (o *SchemaUnreviewedRevisionInfoInfo) GetHtml() string { + if o == nil || IsNil(o.Html) { + var ret string + return ret + } + return *o.Html +} + +// GetHtmlOk returns a tuple with the Html field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUnreviewedRevisionInfoInfo) GetHtmlOk() (*string, bool) { + if o == nil || IsNil(o.Html) { + return nil, false + } + return o.Html, true +} + +// HasHtml returns a boolean if a field has been set. +func (o *SchemaUnreviewedRevisionInfoInfo) HasHtml() bool { + if o != nil && !IsNil(o.Html) { + return true + } + + return false +} + +// SetHtml gets a reference to the given string and assigns it to the Html field. +func (o *SchemaUnreviewedRevisionInfoInfo) SetHtml(v string) { + o.Html = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) SetObjectId(v string) { + o.ObjectId = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) SetTags(v []SchemaTagResp) { + o.Tags = v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) 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 *SchemaUnreviewedRevisionInfoInfo) SetTitle(v string) { + o.Title = &v +} + +func (o SchemaUnreviewedRevisionInfoInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUnreviewedRevisionInfoInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Content) { + toSerialize["content"] = o.Content + } + if !IsNil(o.Html) { + toSerialize["html"] = o.Html + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableSchemaUnreviewedRevisionInfoInfo struct { + value *SchemaUnreviewedRevisionInfoInfo + isSet bool +} + +func (v NullableSchemaUnreviewedRevisionInfoInfo) Get() *SchemaUnreviewedRevisionInfoInfo { + return v.value +} + +func (v *NullableSchemaUnreviewedRevisionInfoInfo) Set(val *SchemaUnreviewedRevisionInfoInfo) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUnreviewedRevisionInfoInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUnreviewedRevisionInfoInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUnreviewedRevisionInfoInfo(val *SchemaUnreviewedRevisionInfoInfo) *NullableSchemaUnreviewedRevisionInfoInfo { + return &NullableSchemaUnreviewedRevisionInfoInfo{value: val, isSet: true} +} + +func (v NullableSchemaUnreviewedRevisionInfoInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUnreviewedRevisionInfoInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_comment_req.go b/model_schema_update_comment_req.go new file mode 100644 index 0000000..3675b78 --- /dev/null +++ b/model_schema_update_comment_req.go @@ -0,0 +1,146 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateCommentReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateCommentReq{} + +// SchemaUpdateCommentReq struct for SchemaUpdateCommentReq +type SchemaUpdateCommentReq struct { + // comment id + CommentId string `json:"comment_id"` + // original comment content + OriginalText string `json:"original_text"` +} + +// NewSchemaUpdateCommentReq instantiates a new SchemaUpdateCommentReq 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 NewSchemaUpdateCommentReq(commentId string, originalText string) *SchemaUpdateCommentReq { + this := SchemaUpdateCommentReq{} + this.CommentId = commentId + this.OriginalText = originalText + return &this +} + +// NewSchemaUpdateCommentReqWithDefaults instantiates a new SchemaUpdateCommentReq 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 NewSchemaUpdateCommentReqWithDefaults() *SchemaUpdateCommentReq { + this := SchemaUpdateCommentReq{} + return &this +} + +// GetCommentId returns the CommentId field value +func (o *SchemaUpdateCommentReq) GetCommentId() string { + if o == nil { + var ret string + return ret + } + + return o.CommentId +} + +// GetCommentIdOk returns a tuple with the CommentId field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdateCommentReq) GetCommentIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CommentId, true +} + +// SetCommentId sets field value +func (o *SchemaUpdateCommentReq) SetCommentId(v string) { + o.CommentId = v +} + +// GetOriginalText returns the OriginalText field value +func (o *SchemaUpdateCommentReq) GetOriginalText() string { + if o == nil { + var ret string + return ret + } + + return o.OriginalText +} + +// GetOriginalTextOk returns a tuple with the OriginalText field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdateCommentReq) GetOriginalTextOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OriginalText, true +} + +// SetOriginalText sets field value +func (o *SchemaUpdateCommentReq) SetOriginalText(v string) { + o.OriginalText = v +} + +func (o SchemaUpdateCommentReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateCommentReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["comment_id"] = o.CommentId + toSerialize["original_text"] = o.OriginalText + return toSerialize, nil +} + +type NullableSchemaUpdateCommentReq struct { + value *SchemaUpdateCommentReq + isSet bool +} + +func (v NullableSchemaUpdateCommentReq) Get() *SchemaUpdateCommentReq { + return v.value +} + +func (v *NullableSchemaUpdateCommentReq) Set(val *SchemaUpdateCommentReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateCommentReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateCommentReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateCommentReq(val *SchemaUpdateCommentReq) *NullableSchemaUpdateCommentReq { + return &NullableSchemaUpdateCommentReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdateCommentReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateCommentReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_follow_tags_req.go b/model_schema_update_follow_tags_req.go new file mode 100644 index 0000000..a6dc3b3 --- /dev/null +++ b/model_schema_update_follow_tags_req.go @@ -0,0 +1,127 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateFollowTagsReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateFollowTagsReq{} + +// SchemaUpdateFollowTagsReq struct for SchemaUpdateFollowTagsReq +type SchemaUpdateFollowTagsReq struct { + // tag slug name list + SlugNameList []string `json:"slug_name_list,omitempty"` +} + +// NewSchemaUpdateFollowTagsReq instantiates a new SchemaUpdateFollowTagsReq 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 NewSchemaUpdateFollowTagsReq() *SchemaUpdateFollowTagsReq { + this := SchemaUpdateFollowTagsReq{} + return &this +} + +// NewSchemaUpdateFollowTagsReqWithDefaults instantiates a new SchemaUpdateFollowTagsReq 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 NewSchemaUpdateFollowTagsReqWithDefaults() *SchemaUpdateFollowTagsReq { + this := SchemaUpdateFollowTagsReq{} + return &this +} + +// GetSlugNameList returns the SlugNameList field value if set, zero value otherwise. +func (o *SchemaUpdateFollowTagsReq) GetSlugNameList() []string { + if o == nil || IsNil(o.SlugNameList) { + var ret []string + return ret + } + return o.SlugNameList +} + +// GetSlugNameListOk returns a tuple with the SlugNameList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateFollowTagsReq) GetSlugNameListOk() ([]string, bool) { + if o == nil || IsNil(o.SlugNameList) { + return nil, false + } + return o.SlugNameList, true +} + +// HasSlugNameList returns a boolean if a field has been set. +func (o *SchemaUpdateFollowTagsReq) HasSlugNameList() bool { + if o != nil && !IsNil(o.SlugNameList) { + return true + } + + return false +} + +// SetSlugNameList gets a reference to the given []string and assigns it to the SlugNameList field. +func (o *SchemaUpdateFollowTagsReq) SetSlugNameList(v []string) { + o.SlugNameList = v +} + +func (o SchemaUpdateFollowTagsReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateFollowTagsReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.SlugNameList) { + toSerialize["slug_name_list"] = o.SlugNameList + } + return toSerialize, nil +} + +type NullableSchemaUpdateFollowTagsReq struct { + value *SchemaUpdateFollowTagsReq + isSet bool +} + +func (v NullableSchemaUpdateFollowTagsReq) Get() *SchemaUpdateFollowTagsReq { + return v.value +} + +func (v *NullableSchemaUpdateFollowTagsReq) Set(val *SchemaUpdateFollowTagsReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateFollowTagsReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateFollowTagsReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateFollowTagsReq(val *SchemaUpdateFollowTagsReq) *NullableSchemaUpdateFollowTagsReq { + return &NullableSchemaUpdateFollowTagsReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdateFollowTagsReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateFollowTagsReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_info_request.go b/model_schema_update_info_request.go new file mode 100644 index 0000000..8d9e172 --- /dev/null +++ b/model_schema_update_info_request.go @@ -0,0 +1,302 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateInfoRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateInfoRequest{} + +// SchemaUpdateInfoRequest struct for SchemaUpdateInfoRequest +type SchemaUpdateInfoRequest struct { + Avatar *SchemaAvatarInfo `json:"avatar,omitempty"` + // bio + Bio *string `json:"bio,omitempty"` + // display_name + DisplayName string `json:"display_name"` + // location + Location *string `json:"location,omitempty"` + // username + Username *string `json:"username,omitempty"` + // website + Website *string `json:"website,omitempty"` +} + +// NewSchemaUpdateInfoRequest instantiates a new SchemaUpdateInfoRequest 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 NewSchemaUpdateInfoRequest(displayName string) *SchemaUpdateInfoRequest { + this := SchemaUpdateInfoRequest{} + this.DisplayName = displayName + return &this +} + +// NewSchemaUpdateInfoRequestWithDefaults instantiates a new SchemaUpdateInfoRequest 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 NewSchemaUpdateInfoRequestWithDefaults() *SchemaUpdateInfoRequest { + this := SchemaUpdateInfoRequest{} + return &this +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetAvatar(v SchemaAvatarInfo) { + o.Avatar = &v +} + +// GetBio returns the Bio field value if set, zero value otherwise. +func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetBio(v string) { + o.Bio = &v +} + +// GetDisplayName returns the DisplayName field value +func (o *SchemaUpdateInfoRequest) GetDisplayName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdateInfoRequest) GetDisplayNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayName, true +} + +// SetDisplayName sets field value +func (o *SchemaUpdateInfoRequest) SetDisplayName(v string) { + o.DisplayName = v +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetLocation(v string) { + o.Location = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetUsername(v string) { + o.Username = &v +} + +// GetWebsite returns the Website field value if set, zero value otherwise. +func (o *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) 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 *SchemaUpdateInfoRequest) SetWebsite(v string) { + o.Website = &v +} + +func (o SchemaUpdateInfoRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateInfoRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Avatar) { + toSerialize["avatar"] = o.Avatar + } + if !IsNil(o.Bio) { + toSerialize["bio"] = o.Bio + } + toSerialize["display_name"] = o.DisplayName + if !IsNil(o.Location) { + toSerialize["location"] = o.Location + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.Website) { + toSerialize["website"] = o.Website + } + return toSerialize, nil +} + +type NullableSchemaUpdateInfoRequest struct { + value *SchemaUpdateInfoRequest + isSet bool +} + +func (v NullableSchemaUpdateInfoRequest) Get() *SchemaUpdateInfoRequest { + return v.value +} + +func (v *NullableSchemaUpdateInfoRequest) Set(val *SchemaUpdateInfoRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateInfoRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateInfoRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateInfoRequest(val *SchemaUpdateInfoRequest) *NullableSchemaUpdateInfoRequest { + return &NullableSchemaUpdateInfoRequest{value: val, isSet: true} +} + +func (v NullableSchemaUpdateInfoRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateInfoRequest) 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 new file mode 100644 index 0000000..4fe4ffa --- /dev/null +++ b/model_schema_update_smtp_config_req.go @@ -0,0 +1,415 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateSMTPConfigReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateSMTPConfigReq{} + +// SchemaUpdateSMTPConfigReq struct for SchemaUpdateSMTPConfigReq +type SchemaUpdateSMTPConfigReq struct { + // \"\" SSL + Encryption *string `json:"encryption,omitempty"` + FromEmail *string `json:"from_email,omitempty"` + FromName *string `json:"from_name,omitempty"` + SmtpAuthentication *bool `json:"smtp_authentication,omitempty"` + SmtpHost *string `json:"smtp_host,omitempty"` + SmtpPassword *string `json:"smtp_password,omitempty"` + SmtpPort *int32 `json:"smtp_port,omitempty"` + SmtpUsername *string `json:"smtp_username,omitempty"` + TestEmailRecipient *string `json:"test_email_recipient,omitempty"` +} + +// NewSchemaUpdateSMTPConfigReq instantiates a new SchemaUpdateSMTPConfigReq 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 NewSchemaUpdateSMTPConfigReq() *SchemaUpdateSMTPConfigReq { + this := SchemaUpdateSMTPConfigReq{} + return &this +} + +// NewSchemaUpdateSMTPConfigReqWithDefaults instantiates a new SchemaUpdateSMTPConfigReq 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 NewSchemaUpdateSMTPConfigReqWithDefaults() *SchemaUpdateSMTPConfigReq { + this := SchemaUpdateSMTPConfigReq{} + return &this +} + +// GetEncryption returns the Encryption field value if set, zero value otherwise. +func (o *SchemaUpdateSMTPConfigReq) GetEncryption() string { + if o == nil || IsNil(o.Encryption) { + var ret string + return ret + } + return *o.Encryption +} + +// GetEncryptionOk returns a tuple with the Encryption field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateSMTPConfigReq) GetEncryptionOk() (*string, bool) { + if o == nil || IsNil(o.Encryption) { + return nil, false + } + return o.Encryption, true +} + +// HasEncryption returns a boolean if a field has been set. +func (o *SchemaUpdateSMTPConfigReq) HasEncryption() bool { + if o != nil && !IsNil(o.Encryption) { + return true + } + + return false +} + +// SetEncryption gets a reference to the given string and assigns it to the Encryption field. +func (o *SchemaUpdateSMTPConfigReq) SetEncryption(v string) { + o.Encryption = &v +} + +// GetFromEmail returns the FromEmail field value if set, zero value otherwise. +func (o *SchemaUpdateSMTPConfigReq) GetFromEmail() string { + if o == nil || IsNil(o.FromEmail) { + var ret string + return ret + } + return *o.FromEmail +} + +// GetFromEmailOk returns a tuple with the FromEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateSMTPConfigReq) GetFromEmailOk() (*string, bool) { + if o == nil || IsNil(o.FromEmail) { + return nil, false + } + return o.FromEmail, true +} + +// HasFromEmail returns a boolean if a field has been set. +func (o *SchemaUpdateSMTPConfigReq) HasFromEmail() bool { + if o != nil && !IsNil(o.FromEmail) { + return true + } + + return false +} + +// SetFromEmail gets a reference to the given string and assigns it to the FromEmail field. +func (o *SchemaUpdateSMTPConfigReq) SetFromEmail(v string) { + o.FromEmail = &v +} + +// GetFromName returns the FromName field value if set, zero value otherwise. +func (o *SchemaUpdateSMTPConfigReq) GetFromName() string { + if o == nil || IsNil(o.FromName) { + var ret string + return ret + } + return *o.FromName +} + +// GetFromNameOk returns a tuple with the FromName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateSMTPConfigReq) GetFromNameOk() (*string, bool) { + if o == nil || IsNil(o.FromName) { + return nil, false + } + return o.FromName, true +} + +// HasFromName returns a boolean if a field has been set. +func (o *SchemaUpdateSMTPConfigReq) HasFromName() bool { + if o != nil && !IsNil(o.FromName) { + return true + } + + return false +} + +// SetFromName gets a reference to the given string and assigns it to the FromName field. +func (o *SchemaUpdateSMTPConfigReq) SetFromName(v string) { + o.FromName = &v +} + +// GetSmtpAuthentication returns the SmtpAuthentication field value if set, zero value otherwise. +func (o *SchemaUpdateSMTPConfigReq) GetSmtpAuthentication() bool { + if o == nil || IsNil(o.SmtpAuthentication) { + var ret bool + return ret + } + return *o.SmtpAuthentication +} + +// GetSmtpAuthenticationOk returns a tuple with the SmtpAuthentication field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateSMTPConfigReq) GetSmtpAuthenticationOk() (*bool, bool) { + if o == nil || IsNil(o.SmtpAuthentication) { + return nil, false + } + return o.SmtpAuthentication, true +} + +// HasSmtpAuthentication returns a boolean if a field has been set. +func (o *SchemaUpdateSMTPConfigReq) HasSmtpAuthentication() bool { + if o != nil && !IsNil(o.SmtpAuthentication) { + return true + } + + return false +} + +// SetSmtpAuthentication gets a reference to the given bool and assigns it to the SmtpAuthentication field. +func (o *SchemaUpdateSMTPConfigReq) SetSmtpAuthentication(v bool) { + o.SmtpAuthentication = &v +} + +// GetSmtpHost returns the SmtpHost field value if set, zero value otherwise. +func (o *SchemaUpdateSMTPConfigReq) GetSmtpHost() string { + if o == nil || IsNil(o.SmtpHost) { + var ret string + return ret + } + return *o.SmtpHost +} + +// GetSmtpHostOk returns a tuple with the SmtpHost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateSMTPConfigReq) GetSmtpHostOk() (*string, bool) { + if o == nil || IsNil(o.SmtpHost) { + return nil, false + } + return o.SmtpHost, true +} + +// HasSmtpHost returns a boolean if a field has been set. +func (o *SchemaUpdateSMTPConfigReq) HasSmtpHost() bool { + if o != nil && !IsNil(o.SmtpHost) { + return true + } + + return false +} + +// SetSmtpHost gets a reference to the given string and assigns it to the SmtpHost field. +func (o *SchemaUpdateSMTPConfigReq) SetSmtpHost(v string) { + o.SmtpHost = &v +} + +// GetSmtpPassword returns the SmtpPassword field value if set, zero value otherwise. +func (o *SchemaUpdateSMTPConfigReq) GetSmtpPassword() string { + if o == nil || IsNil(o.SmtpPassword) { + var ret string + return ret + } + return *o.SmtpPassword +} + +// GetSmtpPasswordOk returns a tuple with the SmtpPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateSMTPConfigReq) GetSmtpPasswordOk() (*string, bool) { + if o == nil || IsNil(o.SmtpPassword) { + return nil, false + } + return o.SmtpPassword, true +} + +// HasSmtpPassword returns a boolean if a field has been set. +func (o *SchemaUpdateSMTPConfigReq) HasSmtpPassword() bool { + if o != nil && !IsNil(o.SmtpPassword) { + return true + } + + return false +} + +// SetSmtpPassword gets a reference to the given string and assigns it to the SmtpPassword field. +func (o *SchemaUpdateSMTPConfigReq) SetSmtpPassword(v string) { + o.SmtpPassword = &v +} + +// GetSmtpPort returns the SmtpPort field value if set, zero value otherwise. +func (o *SchemaUpdateSMTPConfigReq) GetSmtpPort() int32 { + if o == nil || IsNil(o.SmtpPort) { + var ret int32 + return ret + } + return *o.SmtpPort +} + +// GetSmtpPortOk returns a tuple with the SmtpPort field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateSMTPConfigReq) GetSmtpPortOk() (*int32, bool) { + if o == nil || IsNil(o.SmtpPort) { + return nil, false + } + return o.SmtpPort, true +} + +// HasSmtpPort returns a boolean if a field has been set. +func (o *SchemaUpdateSMTPConfigReq) HasSmtpPort() bool { + if o != nil && !IsNil(o.SmtpPort) { + return true + } + + return false +} + +// SetSmtpPort gets a reference to the given int32 and assigns it to the SmtpPort field. +func (o *SchemaUpdateSMTPConfigReq) SetSmtpPort(v int32) { + o.SmtpPort = &v +} + +// GetSmtpUsername returns the SmtpUsername field value if set, zero value otherwise. +func (o *SchemaUpdateSMTPConfigReq) GetSmtpUsername() string { + if o == nil || IsNil(o.SmtpUsername) { + var ret string + return ret + } + return *o.SmtpUsername +} + +// GetSmtpUsernameOk returns a tuple with the SmtpUsername field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateSMTPConfigReq) GetSmtpUsernameOk() (*string, bool) { + if o == nil || IsNil(o.SmtpUsername) { + return nil, false + } + return o.SmtpUsername, true +} + +// HasSmtpUsername returns a boolean if a field has been set. +func (o *SchemaUpdateSMTPConfigReq) HasSmtpUsername() bool { + if o != nil && !IsNil(o.SmtpUsername) { + return true + } + + return false +} + +// SetSmtpUsername gets a reference to the given string and assigns it to the SmtpUsername field. +func (o *SchemaUpdateSMTPConfigReq) SetSmtpUsername(v string) { + o.SmtpUsername = &v +} + +// GetTestEmailRecipient returns the TestEmailRecipient field value if set, zero value otherwise. +func (o *SchemaUpdateSMTPConfigReq) GetTestEmailRecipient() string { + if o == nil || IsNil(o.TestEmailRecipient) { + var ret string + return ret + } + return *o.TestEmailRecipient +} + +// GetTestEmailRecipientOk returns a tuple with the TestEmailRecipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateSMTPConfigReq) GetTestEmailRecipientOk() (*string, bool) { + if o == nil || IsNil(o.TestEmailRecipient) { + return nil, false + } + return o.TestEmailRecipient, true +} + +// HasTestEmailRecipient returns a boolean if a field has been set. +func (o *SchemaUpdateSMTPConfigReq) HasTestEmailRecipient() bool { + if o != nil && !IsNil(o.TestEmailRecipient) { + return true + } + + return false +} + +// SetTestEmailRecipient gets a reference to the given string and assigns it to the TestEmailRecipient field. +func (o *SchemaUpdateSMTPConfigReq) SetTestEmailRecipient(v string) { + o.TestEmailRecipient = &v +} + +func (o SchemaUpdateSMTPConfigReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateSMTPConfigReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Encryption) { + toSerialize["encryption"] = o.Encryption + } + if !IsNil(o.FromEmail) { + toSerialize["from_email"] = o.FromEmail + } + if !IsNil(o.FromName) { + toSerialize["from_name"] = o.FromName + } + if !IsNil(o.SmtpAuthentication) { + toSerialize["smtp_authentication"] = o.SmtpAuthentication + } + if !IsNil(o.SmtpHost) { + toSerialize["smtp_host"] = o.SmtpHost + } + if !IsNil(o.SmtpPassword) { + toSerialize["smtp_password"] = o.SmtpPassword + } + if !IsNil(o.SmtpPort) { + toSerialize["smtp_port"] = o.SmtpPort + } + if !IsNil(o.SmtpUsername) { + toSerialize["smtp_username"] = o.SmtpUsername + } + if !IsNil(o.TestEmailRecipient) { + toSerialize["test_email_recipient"] = o.TestEmailRecipient + } + return toSerialize, nil +} + +type NullableSchemaUpdateSMTPConfigReq struct { + value *SchemaUpdateSMTPConfigReq + isSet bool +} + +func (v NullableSchemaUpdateSMTPConfigReq) Get() *SchemaUpdateSMTPConfigReq { + return v.value +} + +func (v *NullableSchemaUpdateSMTPConfigReq) Set(val *SchemaUpdateSMTPConfigReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateSMTPConfigReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateSMTPConfigReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateSMTPConfigReq(val *SchemaUpdateSMTPConfigReq) *NullableSchemaUpdateSMTPConfigReq { + return &NullableSchemaUpdateSMTPConfigReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdateSMTPConfigReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateSMTPConfigReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_tag_req.go b/model_schema_update_tag_req.go new file mode 100644 index 0000000..75d8df6 --- /dev/null +++ b/model_schema_update_tag_req.go @@ -0,0 +1,266 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateTagReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateTagReq{} + +// SchemaUpdateTagReq struct for SchemaUpdateTagReq +type SchemaUpdateTagReq struct { + // display_name + DisplayName *string `json:"display_name,omitempty"` + // edit summary + EditSummary *string `json:"edit_summary,omitempty"` + // original text + OriginalText *string `json:"original_text,omitempty"` + // slug_name + SlugName *string `json:"slug_name,omitempty"` + // tag_id + TagId string `json:"tag_id"` +} + +// NewSchemaUpdateTagReq instantiates a new SchemaUpdateTagReq 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 NewSchemaUpdateTagReq(tagId string) *SchemaUpdateTagReq { + this := SchemaUpdateTagReq{} + this.TagId = tagId + return &this +} + +// NewSchemaUpdateTagReqWithDefaults instantiates a new SchemaUpdateTagReq 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 NewSchemaUpdateTagReqWithDefaults() *SchemaUpdateTagReq { + this := SchemaUpdateTagReq{} + return &this +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaUpdateTagReq) 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 *SchemaUpdateTagReq) 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 *SchemaUpdateTagReq) 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 *SchemaUpdateTagReq) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetEditSummary returns the EditSummary field value if set, zero value otherwise. +func (o *SchemaUpdateTagReq) GetEditSummary() string { + if o == nil || IsNil(o.EditSummary) { + var ret string + return ret + } + return *o.EditSummary +} + +// GetEditSummaryOk returns a tuple with the EditSummary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateTagReq) GetEditSummaryOk() (*string, bool) { + if o == nil || IsNil(o.EditSummary) { + return nil, false + } + return o.EditSummary, true +} + +// HasEditSummary returns a boolean if a field has been set. +func (o *SchemaUpdateTagReq) HasEditSummary() bool { + if o != nil && !IsNil(o.EditSummary) { + return true + } + + return false +} + +// SetEditSummary gets a reference to the given string and assigns it to the EditSummary field. +func (o *SchemaUpdateTagReq) SetEditSummary(v string) { + o.EditSummary = &v +} + +// GetOriginalText returns the OriginalText field value if set, zero value otherwise. +func (o *SchemaUpdateTagReq) GetOriginalText() string { + if o == nil || IsNil(o.OriginalText) { + var ret string + return ret + } + return *o.OriginalText +} + +// GetOriginalTextOk returns a tuple with the OriginalText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUpdateTagReq) GetOriginalTextOk() (*string, bool) { + if o == nil || IsNil(o.OriginalText) { + return nil, false + } + return o.OriginalText, true +} + +// HasOriginalText returns a boolean if a field has been set. +func (o *SchemaUpdateTagReq) HasOriginalText() bool { + if o != nil && !IsNil(o.OriginalText) { + return true + } + + return false +} + +// SetOriginalText gets a reference to the given string and assigns it to the OriginalText field. +func (o *SchemaUpdateTagReq) SetOriginalText(v string) { + o.OriginalText = &v +} + +// GetSlugName returns the SlugName field value if set, zero value otherwise. +func (o *SchemaUpdateTagReq) 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 *SchemaUpdateTagReq) 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 *SchemaUpdateTagReq) 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 *SchemaUpdateTagReq) SetSlugName(v string) { + o.SlugName = &v +} + +// GetTagId returns the TagId field value +func (o *SchemaUpdateTagReq) GetTagId() string { + if o == nil { + var ret string + return ret + } + + return o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdateTagReq) GetTagIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TagId, true +} + +// SetTagId sets field value +func (o *SchemaUpdateTagReq) SetTagId(v string) { + o.TagId = v +} + +func (o SchemaUpdateTagReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateTagReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if !IsNil(o.EditSummary) { + toSerialize["edit_summary"] = o.EditSummary + } + if !IsNil(o.OriginalText) { + toSerialize["original_text"] = o.OriginalText + } + if !IsNil(o.SlugName) { + toSerialize["slug_name"] = o.SlugName + } + toSerialize["tag_id"] = o.TagId + return toSerialize, nil +} + +type NullableSchemaUpdateTagReq struct { + value *SchemaUpdateTagReq + isSet bool +} + +func (v NullableSchemaUpdateTagReq) Get() *SchemaUpdateTagReq { + return v.value +} + +func (v *NullableSchemaUpdateTagReq) Set(val *SchemaUpdateTagReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateTagReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateTagReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateTagReq(val *SchemaUpdateTagReq) *NullableSchemaUpdateTagReq { + return &NullableSchemaUpdateTagReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdateTagReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateTagReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_tag_synonym_req.go b/model_schema_update_tag_synonym_req.go new file mode 100644 index 0000000..131ce50 --- /dev/null +++ b/model_schema_update_tag_synonym_req.go @@ -0,0 +1,146 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateTagSynonymReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateTagSynonymReq{} + +// SchemaUpdateTagSynonymReq struct for SchemaUpdateTagSynonymReq +type SchemaUpdateTagSynonymReq struct { + // synonym tag list + SynonymTagList []SchemaTagItem `json:"synonym_tag_list"` + // tag_id + TagId string `json:"tag_id"` +} + +// NewSchemaUpdateTagSynonymReq instantiates a new SchemaUpdateTagSynonymReq 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 NewSchemaUpdateTagSynonymReq(synonymTagList []SchemaTagItem, tagId string) *SchemaUpdateTagSynonymReq { + this := SchemaUpdateTagSynonymReq{} + this.SynonymTagList = synonymTagList + this.TagId = tagId + return &this +} + +// NewSchemaUpdateTagSynonymReqWithDefaults instantiates a new SchemaUpdateTagSynonymReq 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 NewSchemaUpdateTagSynonymReqWithDefaults() *SchemaUpdateTagSynonymReq { + this := SchemaUpdateTagSynonymReq{} + return &this +} + +// GetSynonymTagList returns the SynonymTagList field value +func (o *SchemaUpdateTagSynonymReq) GetSynonymTagList() []SchemaTagItem { + if o == nil { + var ret []SchemaTagItem + return ret + } + + return o.SynonymTagList +} + +// GetSynonymTagListOk returns a tuple with the SynonymTagList field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdateTagSynonymReq) GetSynonymTagListOk() ([]SchemaTagItem, bool) { + if o == nil { + return nil, false + } + return o.SynonymTagList, true +} + +// SetSynonymTagList sets field value +func (o *SchemaUpdateTagSynonymReq) SetSynonymTagList(v []SchemaTagItem) { + o.SynonymTagList = v +} + +// GetTagId returns the TagId field value +func (o *SchemaUpdateTagSynonymReq) GetTagId() string { + if o == nil { + var ret string + return ret + } + + return o.TagId +} + +// GetTagIdOk returns a tuple with the TagId field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdateTagSynonymReq) GetTagIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TagId, true +} + +// SetTagId sets field value +func (o *SchemaUpdateTagSynonymReq) SetTagId(v string) { + o.TagId = v +} + +func (o SchemaUpdateTagSynonymReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateTagSynonymReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["synonym_tag_list"] = o.SynonymTagList + toSerialize["tag_id"] = o.TagId + return toSerialize, nil +} + +type NullableSchemaUpdateTagSynonymReq struct { + value *SchemaUpdateTagSynonymReq + isSet bool +} + +func (v NullableSchemaUpdateTagSynonymReq) Get() *SchemaUpdateTagSynonymReq { + return v.value +} + +func (v *NullableSchemaUpdateTagSynonymReq) Set(val *SchemaUpdateTagSynonymReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateTagSynonymReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateTagSynonymReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateTagSynonymReq(val *SchemaUpdateTagSynonymReq) *NullableSchemaUpdateTagSynonymReq { + return &NullableSchemaUpdateTagSynonymReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdateTagSynonymReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateTagSynonymReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_user_interface_request.go b/model_schema_update_user_interface_request.go new file mode 100644 index 0000000..03b40a5 --- /dev/null +++ b/model_schema_update_user_interface_request.go @@ -0,0 +1,118 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateUserInterfaceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateUserInterfaceRequest{} + +// SchemaUpdateUserInterfaceRequest struct for SchemaUpdateUserInterfaceRequest +type SchemaUpdateUserInterfaceRequest struct { + // language + Language string `json:"language"` +} + +// NewSchemaUpdateUserInterfaceRequest instantiates a new SchemaUpdateUserInterfaceRequest 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 NewSchemaUpdateUserInterfaceRequest(language string) *SchemaUpdateUserInterfaceRequest { + this := SchemaUpdateUserInterfaceRequest{} + this.Language = language + return &this +} + +// NewSchemaUpdateUserInterfaceRequestWithDefaults instantiates a new SchemaUpdateUserInterfaceRequest 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 NewSchemaUpdateUserInterfaceRequestWithDefaults() *SchemaUpdateUserInterfaceRequest { + this := SchemaUpdateUserInterfaceRequest{} + return &this +} + +// GetLanguage returns the Language field value +func (o *SchemaUpdateUserInterfaceRequest) GetLanguage() string { + if o == nil { + var ret string + return ret + } + + return o.Language +} + +// GetLanguageOk returns a tuple with the Language field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdateUserInterfaceRequest) GetLanguageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Language, true +} + +// SetLanguage sets field value +func (o *SchemaUpdateUserInterfaceRequest) SetLanguage(v string) { + o.Language = v +} + +func (o SchemaUpdateUserInterfaceRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateUserInterfaceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["language"] = o.Language + return toSerialize, nil +} + +type NullableSchemaUpdateUserInterfaceRequest struct { + value *SchemaUpdateUserInterfaceRequest + isSet bool +} + +func (v NullableSchemaUpdateUserInterfaceRequest) Get() *SchemaUpdateUserInterfaceRequest { + return v.value +} + +func (v *NullableSchemaUpdateUserInterfaceRequest) Set(val *SchemaUpdateUserInterfaceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateUserInterfaceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateUserInterfaceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateUserInterfaceRequest(val *SchemaUpdateUserInterfaceRequest) *NullableSchemaUpdateUserInterfaceRequest { + return &NullableSchemaUpdateUserInterfaceRequest{value: val, isSet: true} +} + +func (v NullableSchemaUpdateUserInterfaceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateUserInterfaceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_user_password_req.go b/model_schema_update_user_password_req.go new file mode 100644 index 0000000..86c677e --- /dev/null +++ b/model_schema_update_user_password_req.go @@ -0,0 +1,144 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateUserPasswordReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateUserPasswordReq{} + +// SchemaUpdateUserPasswordReq struct for SchemaUpdateUserPasswordReq +type SchemaUpdateUserPasswordReq struct { + Password string `json:"password"` + UserId string `json:"user_id"` +} + +// NewSchemaUpdateUserPasswordReq instantiates a new SchemaUpdateUserPasswordReq 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 NewSchemaUpdateUserPasswordReq(password string, userId string) *SchemaUpdateUserPasswordReq { + this := SchemaUpdateUserPasswordReq{} + this.Password = password + this.UserId = userId + return &this +} + +// NewSchemaUpdateUserPasswordReqWithDefaults instantiates a new SchemaUpdateUserPasswordReq 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 NewSchemaUpdateUserPasswordReqWithDefaults() *SchemaUpdateUserPasswordReq { + this := SchemaUpdateUserPasswordReq{} + return &this +} + +// GetPassword returns the Password field value +func (o *SchemaUpdateUserPasswordReq) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdateUserPasswordReq) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *SchemaUpdateUserPasswordReq) SetPassword(v string) { + o.Password = v +} + +// GetUserId returns the UserId field value +func (o *SchemaUpdateUserPasswordReq) 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 *SchemaUpdateUserPasswordReq) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserId, true +} + +// SetUserId sets field value +func (o *SchemaUpdateUserPasswordReq) SetUserId(v string) { + o.UserId = v +} + +func (o SchemaUpdateUserPasswordReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateUserPasswordReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["password"] = o.Password + toSerialize["user_id"] = o.UserId + return toSerialize, nil +} + +type NullableSchemaUpdateUserPasswordReq struct { + value *SchemaUpdateUserPasswordReq + isSet bool +} + +func (v NullableSchemaUpdateUserPasswordReq) Get() *SchemaUpdateUserPasswordReq { + return v.value +} + +func (v *NullableSchemaUpdateUserPasswordReq) Set(val *SchemaUpdateUserPasswordReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateUserPasswordReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateUserPasswordReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateUserPasswordReq(val *SchemaUpdateUserPasswordReq) *NullableSchemaUpdateUserPasswordReq { + return &NullableSchemaUpdateUserPasswordReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdateUserPasswordReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateUserPasswordReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_user_role_req.go b/model_schema_update_user_role_req.go new file mode 100644 index 0000000..b4a475d --- /dev/null +++ b/model_schema_update_user_role_req.go @@ -0,0 +1,146 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateUserRoleReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateUserRoleReq{} + +// SchemaUpdateUserRoleReq struct for SchemaUpdateUserRoleReq +type SchemaUpdateUserRoleReq struct { + // role id + RoleId int32 `json:"role_id"` + // user id + UserId string `json:"user_id"` +} + +// NewSchemaUpdateUserRoleReq instantiates a new SchemaUpdateUserRoleReq 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 NewSchemaUpdateUserRoleReq(roleId int32, userId string) *SchemaUpdateUserRoleReq { + this := SchemaUpdateUserRoleReq{} + this.RoleId = roleId + this.UserId = userId + return &this +} + +// NewSchemaUpdateUserRoleReqWithDefaults instantiates a new SchemaUpdateUserRoleReq 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 NewSchemaUpdateUserRoleReqWithDefaults() *SchemaUpdateUserRoleReq { + this := SchemaUpdateUserRoleReq{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *SchemaUpdateUserRoleReq) GetRoleId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdateUserRoleReq) GetRoleIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *SchemaUpdateUserRoleReq) SetRoleId(v int32) { + o.RoleId = v +} + +// GetUserId returns the UserId field value +func (o *SchemaUpdateUserRoleReq) 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 *SchemaUpdateUserRoleReq) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserId, true +} + +// SetUserId sets field value +func (o *SchemaUpdateUserRoleReq) SetUserId(v string) { + o.UserId = v +} + +func (o SchemaUpdateUserRoleReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateUserRoleReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + toSerialize["user_id"] = o.UserId + return toSerialize, nil +} + +type NullableSchemaUpdateUserRoleReq struct { + value *SchemaUpdateUserRoleReq + isSet bool +} + +func (v NullableSchemaUpdateUserRoleReq) Get() *SchemaUpdateUserRoleReq { + return v.value +} + +func (v *NullableSchemaUpdateUserRoleReq) Set(val *SchemaUpdateUserRoleReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateUserRoleReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateUserRoleReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateUserRoleReq(val *SchemaUpdateUserRoleReq) *NullableSchemaUpdateUserRoleReq { + return &NullableSchemaUpdateUserRoleReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdateUserRoleReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateUserRoleReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_update_user_status_req.go b/model_schema_update_user_status_req.go new file mode 100644 index 0000000..d911408 --- /dev/null +++ b/model_schema_update_user_status_req.go @@ -0,0 +1,144 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUpdateUserStatusReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUpdateUserStatusReq{} + +// SchemaUpdateUserStatusReq struct for SchemaUpdateUserStatusReq +type SchemaUpdateUserStatusReq struct { + Status string `json:"status"` + UserId string `json:"user_id"` +} + +// NewSchemaUpdateUserStatusReq instantiates a new SchemaUpdateUserStatusReq 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 NewSchemaUpdateUserStatusReq(status string, userId string) *SchemaUpdateUserStatusReq { + this := SchemaUpdateUserStatusReq{} + this.Status = status + this.UserId = userId + return &this +} + +// NewSchemaUpdateUserStatusReqWithDefaults instantiates a new SchemaUpdateUserStatusReq 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 NewSchemaUpdateUserStatusReqWithDefaults() *SchemaUpdateUserStatusReq { + this := SchemaUpdateUserStatusReq{} + return &this +} + +// GetStatus returns the Status field value +func (o *SchemaUpdateUserStatusReq) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *SchemaUpdateUserStatusReq) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *SchemaUpdateUserStatusReq) SetStatus(v string) { + o.Status = v +} + +// GetUserId returns the UserId field value +func (o *SchemaUpdateUserStatusReq) 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 *SchemaUpdateUserStatusReq) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserId, true +} + +// SetUserId sets field value +func (o *SchemaUpdateUserStatusReq) SetUserId(v string) { + o.UserId = v +} + +func (o SchemaUpdateUserStatusReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUpdateUserStatusReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["user_id"] = o.UserId + return toSerialize, nil +} + +type NullableSchemaUpdateUserStatusReq struct { + value *SchemaUpdateUserStatusReq + isSet bool +} + +func (v NullableSchemaUpdateUserStatusReq) Get() *SchemaUpdateUserStatusReq { + return v.value +} + +func (v *NullableSchemaUpdateUserStatusReq) Set(val *SchemaUpdateUserStatusReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUpdateUserStatusReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUpdateUserStatusReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUpdateUserStatusReq(val *SchemaUpdateUserStatusReq) *NullableSchemaUpdateUserStatusReq { + return &NullableSchemaUpdateUserStatusReq{value: val, isSet: true} +} + +func (v NullableSchemaUpdateUserStatusReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUpdateUserStatusReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_basic_info.go b/model_schema_user_basic_info.go new file mode 100644 index 0000000..bf1fe18 --- /dev/null +++ b/model_schema_user_basic_info.go @@ -0,0 +1,423 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserBasicInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserBasicInfo{} + +// SchemaUserBasicInfo struct for SchemaUserBasicInfo +type SchemaUserBasicInfo struct { + // avatar + Avatar *string `json:"avatar,omitempty"` + // display_name + DisplayName *string `json:"display_name,omitempty"` + // user_id + Id *string `json:"id,omitempty"` + // ip info + IpInfo *string `json:"ip_info,omitempty"` + // location + Location *string `json:"location,omitempty"` + // rank + Rank *int32 `json:"rank,omitempty"` + // status + Status *string `json:"status,omitempty"` + // name + Username *string `json:"username,omitempty"` + // website + Website *string `json:"website,omitempty"` +} + +// NewSchemaUserBasicInfo instantiates a new SchemaUserBasicInfo 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 NewSchemaUserBasicInfo() *SchemaUserBasicInfo { + this := SchemaUserBasicInfo{} + return &this +} + +// NewSchemaUserBasicInfoWithDefaults instantiates a new SchemaUserBasicInfo 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 NewSchemaUserBasicInfoWithDefaults() *SchemaUserBasicInfo { + this := SchemaUserBasicInfo{} + return &this +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetAvatar(v string) { + o.Avatar = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetId(v string) { + o.Id = &v +} + +// GetIpInfo returns the IpInfo field value if set, zero value otherwise. +func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetIpInfo(v string) { + o.IpInfo = &v +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetLocation(v string) { + o.Location = &v +} + +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetRank(v int32) { + o.Rank = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetStatus(v string) { + o.Status = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetUsername(v string) { + o.Username = &v +} + +// GetWebsite returns the Website field value if set, zero value otherwise. +func (o *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) 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 *SchemaUserBasicInfo) SetWebsite(v string) { + o.Website = &v +} + +func (o SchemaUserBasicInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserBasicInfo) 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 NullableSchemaUserBasicInfo struct { + value *SchemaUserBasicInfo + isSet bool +} + +func (v NullableSchemaUserBasicInfo) Get() *SchemaUserBasicInfo { + return v.value +} + +func (v *NullableSchemaUserBasicInfo) Set(val *SchemaUserBasicInfo) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserBasicInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserBasicInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserBasicInfo(val *SchemaUserBasicInfo) *NullableSchemaUserBasicInfo { + return &NullableSchemaUserBasicInfo{value: val, isSet: true} +} + +func (v NullableSchemaUserBasicInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserBasicInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_change_email_send_code_req.go b/model_schema_user_change_email_send_code_req.go new file mode 100644 index 0000000..1b870bc --- /dev/null +++ b/model_schema_user_change_email_send_code_req.go @@ -0,0 +1,189 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserChangeEmailSendCodeReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserChangeEmailSendCodeReq{} + +// SchemaUserChangeEmailSendCodeReq struct for SchemaUserChangeEmailSendCodeReq +type SchemaUserChangeEmailSendCodeReq struct { + CaptchaCode *string `json:"captcha_code,omitempty"` + CaptchaId *string `json:"captcha_id,omitempty"` + EMail string `json:"e_mail"` +} + +// NewSchemaUserChangeEmailSendCodeReq instantiates a new SchemaUserChangeEmailSendCodeReq 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 NewSchemaUserChangeEmailSendCodeReq(eMail string) *SchemaUserChangeEmailSendCodeReq { + this := SchemaUserChangeEmailSendCodeReq{} + this.EMail = eMail + return &this +} + +// NewSchemaUserChangeEmailSendCodeReqWithDefaults instantiates a new SchemaUserChangeEmailSendCodeReq 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 NewSchemaUserChangeEmailSendCodeReqWithDefaults() *SchemaUserChangeEmailSendCodeReq { + this := SchemaUserChangeEmailSendCodeReq{} + return &this +} + +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + +// GetEMail returns the EMail field value +func (o *SchemaUserChangeEmailSendCodeReq) 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 *SchemaUserChangeEmailSendCodeReq) GetEMailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EMail, true +} + +// SetEMail sets field value +func (o *SchemaUserChangeEmailSendCodeReq) SetEMail(v string) { + o.EMail = v +} + +func (o SchemaUserChangeEmailSendCodeReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserChangeEmailSendCodeReq) 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["e_mail"] = o.EMail + return toSerialize, nil +} + +type NullableSchemaUserChangeEmailSendCodeReq struct { + value *SchemaUserChangeEmailSendCodeReq + isSet bool +} + +func (v NullableSchemaUserChangeEmailSendCodeReq) Get() *SchemaUserChangeEmailSendCodeReq { + return v.value +} + +func (v *NullableSchemaUserChangeEmailSendCodeReq) Set(val *SchemaUserChangeEmailSendCodeReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserChangeEmailSendCodeReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserChangeEmailSendCodeReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserChangeEmailSendCodeReq(val *SchemaUserChangeEmailSendCodeReq) *NullableSchemaUserChangeEmailSendCodeReq { + return &NullableSchemaUserChangeEmailSendCodeReq{value: val, isSet: true} +} + +func (v NullableSchemaUserChangeEmailSendCodeReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserChangeEmailSendCodeReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_change_email_verify_req.go b/model_schema_user_change_email_verify_req.go new file mode 100644 index 0000000..a900429 --- /dev/null +++ b/model_schema_user_change_email_verify_req.go @@ -0,0 +1,117 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserChangeEmailVerifyReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserChangeEmailVerifyReq{} + +// SchemaUserChangeEmailVerifyReq struct for SchemaUserChangeEmailVerifyReq +type SchemaUserChangeEmailVerifyReq struct { + Code string `json:"code"` +} + +// NewSchemaUserChangeEmailVerifyReq instantiates a new SchemaUserChangeEmailVerifyReq 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 NewSchemaUserChangeEmailVerifyReq(code string) *SchemaUserChangeEmailVerifyReq { + this := SchemaUserChangeEmailVerifyReq{} + this.Code = code + return &this +} + +// NewSchemaUserChangeEmailVerifyReqWithDefaults instantiates a new SchemaUserChangeEmailVerifyReq 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 NewSchemaUserChangeEmailVerifyReqWithDefaults() *SchemaUserChangeEmailVerifyReq { + this := SchemaUserChangeEmailVerifyReq{} + return &this +} + +// GetCode returns the Code field value +func (o *SchemaUserChangeEmailVerifyReq) GetCode() string { + if o == nil { + var ret string + return ret + } + + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +func (o *SchemaUserChangeEmailVerifyReq) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Code, true +} + +// SetCode sets field value +func (o *SchemaUserChangeEmailVerifyReq) SetCode(v string) { + o.Code = v +} + +func (o SchemaUserChangeEmailVerifyReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserChangeEmailVerifyReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["code"] = o.Code + return toSerialize, nil +} + +type NullableSchemaUserChangeEmailVerifyReq struct { + value *SchemaUserChangeEmailVerifyReq + isSet bool +} + +func (v NullableSchemaUserChangeEmailVerifyReq) Get() *SchemaUserChangeEmailVerifyReq { + return v.value +} + +func (v *NullableSchemaUserChangeEmailVerifyReq) Set(val *SchemaUserChangeEmailVerifyReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserChangeEmailVerifyReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserChangeEmailVerifyReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserChangeEmailVerifyReq(val *SchemaUserChangeEmailVerifyReq) *NullableSchemaUserChangeEmailVerifyReq { + return &NullableSchemaUserChangeEmailVerifyReq{value: val, isSet: true} +} + +func (v NullableSchemaUserChangeEmailVerifyReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserChangeEmailVerifyReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_email_login.go b/model_schema_user_email_login.go new file mode 100644 index 0000000..d0b3455 --- /dev/null +++ b/model_schema_user_email_login.go @@ -0,0 +1,220 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserEmailLogin type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserEmailLogin{} + +// SchemaUserEmailLogin struct for SchemaUserEmailLogin +type SchemaUserEmailLogin struct { + // captcha_code + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` + // e_mail + EMail string `json:"e_mail"` + // password + Pass string `json:"pass"` +} + +// NewSchemaUserEmailLogin instantiates a new SchemaUserEmailLogin object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaUserEmailLogin(eMail string, pass string) *SchemaUserEmailLogin { + this := SchemaUserEmailLogin{} + this.EMail = eMail + this.Pass = pass + return &this +} + +// NewSchemaUserEmailLoginWithDefaults instantiates a new SchemaUserEmailLogin object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaUserEmailLoginWithDefaults() *SchemaUserEmailLogin { + this := SchemaUserEmailLogin{} + return &this +} + +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaUserEmailLogin) 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 *SchemaUserEmailLogin) 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 *SchemaUserEmailLogin) 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 *SchemaUserEmailLogin) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaUserEmailLogin) 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 *SchemaUserEmailLogin) 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 *SchemaUserEmailLogin) 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 *SchemaUserEmailLogin) SetCaptchaId(v string) { + o.CaptchaId = &v +} + +// GetEMail returns the EMail field value +func (o *SchemaUserEmailLogin) 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 *SchemaUserEmailLogin) GetEMailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EMail, true +} + +// SetEMail sets field value +func (o *SchemaUserEmailLogin) SetEMail(v string) { + o.EMail = v +} + +// GetPass returns the Pass field value +func (o *SchemaUserEmailLogin) 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 *SchemaUserEmailLogin) GetPassOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Pass, true +} + +// SetPass sets field value +func (o *SchemaUserEmailLogin) SetPass(v string) { + o.Pass = v +} + +func (o SchemaUserEmailLogin) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserEmailLogin) 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["e_mail"] = o.EMail + toSerialize["pass"] = o.Pass + return toSerialize, nil +} + +type NullableSchemaUserEmailLogin struct { + value *SchemaUserEmailLogin + isSet bool +} + +func (v NullableSchemaUserEmailLogin) Get() *SchemaUserEmailLogin { + return v.value +} + +func (v *NullableSchemaUserEmailLogin) Set(val *SchemaUserEmailLogin) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserEmailLogin) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserEmailLogin) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserEmailLogin(val *SchemaUserEmailLogin) *NullableSchemaUserEmailLogin { + return &NullableSchemaUserEmailLogin{value: val, isSet: true} +} + +func (v NullableSchemaUserEmailLogin) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserEmailLogin) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_modify_pass_word_request.go b/model_schema_user_modify_pass_word_request.go new file mode 100644 index 0000000..9a9c0f2 --- /dev/null +++ b/model_schema_user_modify_pass_word_request.go @@ -0,0 +1,164 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserModifyPassWordRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserModifyPassWordRequest{} + +// SchemaUserModifyPassWordRequest struct for SchemaUserModifyPassWordRequest +type SchemaUserModifyPassWordRequest struct { + // old password + OldPass *string `json:"old_pass,omitempty"` + // password + Pass *string `json:"pass,omitempty"` +} + +// NewSchemaUserModifyPassWordRequest instantiates a new SchemaUserModifyPassWordRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaUserModifyPassWordRequest() *SchemaUserModifyPassWordRequest { + this := SchemaUserModifyPassWordRequest{} + return &this +} + +// NewSchemaUserModifyPassWordRequestWithDefaults instantiates a new SchemaUserModifyPassWordRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaUserModifyPassWordRequestWithDefaults() *SchemaUserModifyPassWordRequest { + this := SchemaUserModifyPassWordRequest{} + return &this +} + +// GetOldPass returns the OldPass field value if set, zero value otherwise. +func (o *SchemaUserModifyPassWordRequest) GetOldPass() string { + if o == nil || IsNil(o.OldPass) { + var ret string + return ret + } + return *o.OldPass +} + +// GetOldPassOk returns a tuple with the OldPass field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUserModifyPassWordRequest) GetOldPassOk() (*string, bool) { + if o == nil || IsNil(o.OldPass) { + return nil, false + } + return o.OldPass, true +} + +// HasOldPass returns a boolean if a field has been set. +func (o *SchemaUserModifyPassWordRequest) HasOldPass() bool { + if o != nil && !IsNil(o.OldPass) { + return true + } + + return false +} + +// SetOldPass gets a reference to the given string and assigns it to the OldPass field. +func (o *SchemaUserModifyPassWordRequest) SetOldPass(v string) { + o.OldPass = &v +} + +// GetPass returns the Pass field value if set, zero value otherwise. +func (o *SchemaUserModifyPassWordRequest) GetPass() string { + if o == nil || IsNil(o.Pass) { + var ret string + return ret + } + return *o.Pass +} + +// GetPassOk returns a tuple with the Pass field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUserModifyPassWordRequest) GetPassOk() (*string, bool) { + if o == nil || IsNil(o.Pass) { + return nil, false + } + return o.Pass, true +} + +// HasPass returns a boolean if a field has been set. +func (o *SchemaUserModifyPassWordRequest) HasPass() bool { + if o != nil && !IsNil(o.Pass) { + return true + } + + return false +} + +// SetPass gets a reference to the given string and assigns it to the Pass field. +func (o *SchemaUserModifyPassWordRequest) SetPass(v string) { + o.Pass = &v +} + +func (o SchemaUserModifyPassWordRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserModifyPassWordRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.OldPass) { + toSerialize["old_pass"] = o.OldPass + } + if !IsNil(o.Pass) { + toSerialize["pass"] = o.Pass + } + return toSerialize, nil +} + +type NullableSchemaUserModifyPassWordRequest struct { + value *SchemaUserModifyPassWordRequest + isSet bool +} + +func (v NullableSchemaUserModifyPassWordRequest) Get() *SchemaUserModifyPassWordRequest { + return v.value +} + +func (v *NullableSchemaUserModifyPassWordRequest) Set(val *SchemaUserModifyPassWordRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserModifyPassWordRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserModifyPassWordRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserModifyPassWordRequest(val *SchemaUserModifyPassWordRequest) *NullableSchemaUserModifyPassWordRequest { + return &NullableSchemaUserModifyPassWordRequest{value: val, isSet: true} +} + +func (v NullableSchemaUserModifyPassWordRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserModifyPassWordRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_notice_set_request.go b/model_schema_user_notice_set_request.go new file mode 100644 index 0000000..02eecb5 --- /dev/null +++ b/model_schema_user_notice_set_request.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserNoticeSetRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserNoticeSetRequest{} + +// SchemaUserNoticeSetRequest struct for SchemaUserNoticeSetRequest +type SchemaUserNoticeSetRequest struct { + NoticeSwitch *bool `json:"notice_switch,omitempty"` +} + +// NewSchemaUserNoticeSetRequest instantiates a new SchemaUserNoticeSetRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaUserNoticeSetRequest() *SchemaUserNoticeSetRequest { + this := SchemaUserNoticeSetRequest{} + return &this +} + +// NewSchemaUserNoticeSetRequestWithDefaults instantiates a new SchemaUserNoticeSetRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaUserNoticeSetRequestWithDefaults() *SchemaUserNoticeSetRequest { + this := SchemaUserNoticeSetRequest{} + return &this +} + +// GetNoticeSwitch returns the NoticeSwitch field value if set, zero value otherwise. +func (o *SchemaUserNoticeSetRequest) GetNoticeSwitch() bool { + if o == nil || IsNil(o.NoticeSwitch) { + var ret bool + return ret + } + return *o.NoticeSwitch +} + +// GetNoticeSwitchOk returns a tuple with the NoticeSwitch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUserNoticeSetRequest) GetNoticeSwitchOk() (*bool, bool) { + if o == nil || IsNil(o.NoticeSwitch) { + return nil, false + } + return o.NoticeSwitch, true +} + +// HasNoticeSwitch returns a boolean if a field has been set. +func (o *SchemaUserNoticeSetRequest) HasNoticeSwitch() bool { + if o != nil && !IsNil(o.NoticeSwitch) { + return true + } + + return false +} + +// SetNoticeSwitch gets a reference to the given bool and assigns it to the NoticeSwitch field. +func (o *SchemaUserNoticeSetRequest) SetNoticeSwitch(v bool) { + o.NoticeSwitch = &v +} + +func (o SchemaUserNoticeSetRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserNoticeSetRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.NoticeSwitch) { + toSerialize["notice_switch"] = o.NoticeSwitch + } + return toSerialize, nil +} + +type NullableSchemaUserNoticeSetRequest struct { + value *SchemaUserNoticeSetRequest + isSet bool +} + +func (v NullableSchemaUserNoticeSetRequest) Get() *SchemaUserNoticeSetRequest { + return v.value +} + +func (v *NullableSchemaUserNoticeSetRequest) Set(val *SchemaUserNoticeSetRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserNoticeSetRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserNoticeSetRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserNoticeSetRequest(val *SchemaUserNoticeSetRequest) *NullableSchemaUserNoticeSetRequest { + return &NullableSchemaUserNoticeSetRequest{value: val, isSet: true} +} + +func (v NullableSchemaUserNoticeSetRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserNoticeSetRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_notice_set_resp.go b/model_schema_user_notice_set_resp.go new file mode 100644 index 0000000..49fbb16 --- /dev/null +++ b/model_schema_user_notice_set_resp.go @@ -0,0 +1,126 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserNoticeSetResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserNoticeSetResp{} + +// SchemaUserNoticeSetResp struct for SchemaUserNoticeSetResp +type SchemaUserNoticeSetResp struct { + NoticeSwitch *bool `json:"notice_switch,omitempty"` +} + +// NewSchemaUserNoticeSetResp instantiates a new SchemaUserNoticeSetResp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSchemaUserNoticeSetResp() *SchemaUserNoticeSetResp { + this := SchemaUserNoticeSetResp{} + return &this +} + +// NewSchemaUserNoticeSetRespWithDefaults instantiates a new SchemaUserNoticeSetResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSchemaUserNoticeSetRespWithDefaults() *SchemaUserNoticeSetResp { + this := SchemaUserNoticeSetResp{} + return &this +} + +// GetNoticeSwitch returns the NoticeSwitch field value if set, zero value otherwise. +func (o *SchemaUserNoticeSetResp) GetNoticeSwitch() bool { + if o == nil || IsNil(o.NoticeSwitch) { + var ret bool + return ret + } + return *o.NoticeSwitch +} + +// GetNoticeSwitchOk returns a tuple with the NoticeSwitch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUserNoticeSetResp) GetNoticeSwitchOk() (*bool, bool) { + if o == nil || IsNil(o.NoticeSwitch) { + return nil, false + } + return o.NoticeSwitch, true +} + +// HasNoticeSwitch returns a boolean if a field has been set. +func (o *SchemaUserNoticeSetResp) HasNoticeSwitch() bool { + if o != nil && !IsNil(o.NoticeSwitch) { + return true + } + + return false +} + +// SetNoticeSwitch gets a reference to the given bool and assigns it to the NoticeSwitch field. +func (o *SchemaUserNoticeSetResp) SetNoticeSwitch(v bool) { + o.NoticeSwitch = &v +} + +func (o SchemaUserNoticeSetResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserNoticeSetResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.NoticeSwitch) { + toSerialize["notice_switch"] = o.NoticeSwitch + } + return toSerialize, nil +} + +type NullableSchemaUserNoticeSetResp struct { + value *SchemaUserNoticeSetResp + isSet bool +} + +func (v NullableSchemaUserNoticeSetResp) Get() *SchemaUserNoticeSetResp { + return v.value +} + +func (v *NullableSchemaUserNoticeSetResp) Set(val *SchemaUserNoticeSetResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserNoticeSetResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserNoticeSetResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserNoticeSetResp(val *SchemaUserNoticeSetResp) *NullableSchemaUserNoticeSetResp { + return &NullableSchemaUserNoticeSetResp{value: val, isSet: true} +} + +func (v NullableSchemaUserNoticeSetResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserNoticeSetResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_ranking_resp.go b/model_schema_user_ranking_resp.go new file mode 100644 index 0000000..0f54360 --- /dev/null +++ b/model_schema_user_ranking_resp.go @@ -0,0 +1,198 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserRankingResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserRankingResp{} + +// SchemaUserRankingResp struct for SchemaUserRankingResp +type SchemaUserRankingResp struct { + Staffs []SchemaUserRankingSimpleInfo `json:"staffs,omitempty"` + UsersWithTheMostReputation []SchemaUserRankingSimpleInfo `json:"users_with_the_most_reputation,omitempty"` + UsersWithTheMostVote []SchemaUserRankingSimpleInfo `json:"users_with_the_most_vote,omitempty"` +} + +// NewSchemaUserRankingResp instantiates a new SchemaUserRankingResp 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 NewSchemaUserRankingResp() *SchemaUserRankingResp { + this := SchemaUserRankingResp{} + return &this +} + +// NewSchemaUserRankingRespWithDefaults instantiates a new SchemaUserRankingResp 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 NewSchemaUserRankingRespWithDefaults() *SchemaUserRankingResp { + this := SchemaUserRankingResp{} + return &this +} + +// GetStaffs returns the Staffs field value if set, zero value otherwise. +func (o *SchemaUserRankingResp) GetStaffs() []SchemaUserRankingSimpleInfo { + if o == nil || IsNil(o.Staffs) { + var ret []SchemaUserRankingSimpleInfo + return ret + } + return o.Staffs +} + +// GetStaffsOk returns a tuple with the Staffs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUserRankingResp) GetStaffsOk() ([]SchemaUserRankingSimpleInfo, bool) { + if o == nil || IsNil(o.Staffs) { + return nil, false + } + return o.Staffs, true +} + +// HasStaffs returns a boolean if a field has been set. +func (o *SchemaUserRankingResp) HasStaffs() bool { + if o != nil && !IsNil(o.Staffs) { + return true + } + + return false +} + +// SetStaffs gets a reference to the given []SchemaUserRankingSimpleInfo and assigns it to the Staffs field. +func (o *SchemaUserRankingResp) SetStaffs(v []SchemaUserRankingSimpleInfo) { + o.Staffs = v +} + +// GetUsersWithTheMostReputation returns the UsersWithTheMostReputation field value if set, zero value otherwise. +func (o *SchemaUserRankingResp) GetUsersWithTheMostReputation() []SchemaUserRankingSimpleInfo { + if o == nil || IsNil(o.UsersWithTheMostReputation) { + var ret []SchemaUserRankingSimpleInfo + return ret + } + return o.UsersWithTheMostReputation +} + +// GetUsersWithTheMostReputationOk returns a tuple with the UsersWithTheMostReputation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUserRankingResp) GetUsersWithTheMostReputationOk() ([]SchemaUserRankingSimpleInfo, bool) { + if o == nil || IsNil(o.UsersWithTheMostReputation) { + return nil, false + } + return o.UsersWithTheMostReputation, true +} + +// HasUsersWithTheMostReputation returns a boolean if a field has been set. +func (o *SchemaUserRankingResp) HasUsersWithTheMostReputation() bool { + if o != nil && !IsNil(o.UsersWithTheMostReputation) { + return true + } + + return false +} + +// SetUsersWithTheMostReputation gets a reference to the given []SchemaUserRankingSimpleInfo and assigns it to the UsersWithTheMostReputation field. +func (o *SchemaUserRankingResp) SetUsersWithTheMostReputation(v []SchemaUserRankingSimpleInfo) { + o.UsersWithTheMostReputation = v +} + +// GetUsersWithTheMostVote returns the UsersWithTheMostVote field value if set, zero value otherwise. +func (o *SchemaUserRankingResp) GetUsersWithTheMostVote() []SchemaUserRankingSimpleInfo { + if o == nil || IsNil(o.UsersWithTheMostVote) { + var ret []SchemaUserRankingSimpleInfo + return ret + } + return o.UsersWithTheMostVote +} + +// GetUsersWithTheMostVoteOk returns a tuple with the UsersWithTheMostVote field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaUserRankingResp) GetUsersWithTheMostVoteOk() ([]SchemaUserRankingSimpleInfo, bool) { + if o == nil || IsNil(o.UsersWithTheMostVote) { + return nil, false + } + return o.UsersWithTheMostVote, true +} + +// HasUsersWithTheMostVote returns a boolean if a field has been set. +func (o *SchemaUserRankingResp) HasUsersWithTheMostVote() bool { + if o != nil && !IsNil(o.UsersWithTheMostVote) { + return true + } + + return false +} + +// SetUsersWithTheMostVote gets a reference to the given []SchemaUserRankingSimpleInfo and assigns it to the UsersWithTheMostVote field. +func (o *SchemaUserRankingResp) SetUsersWithTheMostVote(v []SchemaUserRankingSimpleInfo) { + o.UsersWithTheMostVote = v +} + +func (o SchemaUserRankingResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserRankingResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Staffs) { + toSerialize["staffs"] = o.Staffs + } + if !IsNil(o.UsersWithTheMostReputation) { + toSerialize["users_with_the_most_reputation"] = o.UsersWithTheMostReputation + } + if !IsNil(o.UsersWithTheMostVote) { + toSerialize["users_with_the_most_vote"] = o.UsersWithTheMostVote + } + return toSerialize, nil +} + +type NullableSchemaUserRankingResp struct { + value *SchemaUserRankingResp + isSet bool +} + +func (v NullableSchemaUserRankingResp) Get() *SchemaUserRankingResp { + return v.value +} + +func (v *NullableSchemaUserRankingResp) Set(val *SchemaUserRankingResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserRankingResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserRankingResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserRankingResp(val *SchemaUserRankingResp) *NullableSchemaUserRankingResp { + return &NullableSchemaUserRankingResp{value: val, isSet: true} +} + +func (v NullableSchemaUserRankingResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserRankingResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_ranking_simple_info.go b/model_schema_user_ranking_simple_info.go new file mode 100644 index 0000000..51fd173 --- /dev/null +++ b/model_schema_user_ranking_simple_info.go @@ -0,0 +1,275 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserRankingSimpleInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserRankingSimpleInfo{} + +// SchemaUserRankingSimpleInfo struct for SchemaUserRankingSimpleInfo +type SchemaUserRankingSimpleInfo struct { + // avatar + Avatar *string `json:"avatar,omitempty"` + // display name + DisplayName *string `json:"display_name,omitempty"` + // rank + Rank *int32 `json:"rank,omitempty"` + // username + Username *string `json:"username,omitempty"` + // vote + VoteCount *int32 `json:"vote_count,omitempty"` +} + +// NewSchemaUserRankingSimpleInfo instantiates a new SchemaUserRankingSimpleInfo 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 NewSchemaUserRankingSimpleInfo() *SchemaUserRankingSimpleInfo { + this := SchemaUserRankingSimpleInfo{} + return &this +} + +// NewSchemaUserRankingSimpleInfoWithDefaults instantiates a new SchemaUserRankingSimpleInfo 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 NewSchemaUserRankingSimpleInfoWithDefaults() *SchemaUserRankingSimpleInfo { + this := SchemaUserRankingSimpleInfo{} + return &this +} + +// GetAvatar returns the Avatar field value if set, zero value otherwise. +func (o *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) SetAvatar(v string) { + o.Avatar = &v +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetRank returns the Rank field value if set, zero value otherwise. +func (o *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) SetRank(v int32) { + o.Rank = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) SetUsername(v string) { + o.Username = &v +} + +// GetVoteCount returns the VoteCount field value if set, zero value otherwise. +func (o *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) 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 *SchemaUserRankingSimpleInfo) SetVoteCount(v int32) { + o.VoteCount = &v +} + +func (o SchemaUserRankingSimpleInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserRankingSimpleInfo) 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.Rank) { + toSerialize["rank"] = o.Rank + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + if !IsNil(o.VoteCount) { + toSerialize["vote_count"] = o.VoteCount + } + return toSerialize, nil +} + +type NullableSchemaUserRankingSimpleInfo struct { + value *SchemaUserRankingSimpleInfo + isSet bool +} + +func (v NullableSchemaUserRankingSimpleInfo) Get() *SchemaUserRankingSimpleInfo { + return v.value +} + +func (v *NullableSchemaUserRankingSimpleInfo) Set(val *SchemaUserRankingSimpleInfo) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserRankingSimpleInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserRankingSimpleInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserRankingSimpleInfo(val *SchemaUserRankingSimpleInfo) *NullableSchemaUserRankingSimpleInfo { + return &NullableSchemaUserRankingSimpleInfo{value: val, isSet: true} +} + +func (v NullableSchemaUserRankingSimpleInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserRankingSimpleInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_re_pass_word_request.go b/model_schema_user_re_pass_word_request.go new file mode 100644 index 0000000..67b4c19 --- /dev/null +++ b/model_schema_user_re_pass_word_request.go @@ -0,0 +1,146 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserRePassWordRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserRePassWordRequest{} + +// SchemaUserRePassWordRequest struct for SchemaUserRePassWordRequest +type SchemaUserRePassWordRequest struct { + // code + Code string `json:"code"` + // Password + Pass string `json:"pass"` +} + +// NewSchemaUserRePassWordRequest instantiates a new SchemaUserRePassWordRequest 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 NewSchemaUserRePassWordRequest(code string, pass string) *SchemaUserRePassWordRequest { + this := SchemaUserRePassWordRequest{} + this.Code = code + this.Pass = pass + return &this +} + +// NewSchemaUserRePassWordRequestWithDefaults instantiates a new SchemaUserRePassWordRequest 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 NewSchemaUserRePassWordRequestWithDefaults() *SchemaUserRePassWordRequest { + this := SchemaUserRePassWordRequest{} + return &this +} + +// GetCode returns the Code field value +func (o *SchemaUserRePassWordRequest) GetCode() string { + if o == nil { + var ret string + return ret + } + + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value +// and a boolean to check if the value has been set. +func (o *SchemaUserRePassWordRequest) GetCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Code, true +} + +// SetCode sets field value +func (o *SchemaUserRePassWordRequest) SetCode(v string) { + o.Code = v +} + +// GetPass returns the Pass field value +func (o *SchemaUserRePassWordRequest) 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 *SchemaUserRePassWordRequest) GetPassOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Pass, true +} + +// SetPass sets field value +func (o *SchemaUserRePassWordRequest) SetPass(v string) { + o.Pass = v +} + +func (o SchemaUserRePassWordRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserRePassWordRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["code"] = o.Code + toSerialize["pass"] = o.Pass + return toSerialize, nil +} + +type NullableSchemaUserRePassWordRequest struct { + value *SchemaUserRePassWordRequest + isSet bool +} + +func (v NullableSchemaUserRePassWordRequest) Get() *SchemaUserRePassWordRequest { + return v.value +} + +func (v *NullableSchemaUserRePassWordRequest) Set(val *SchemaUserRePassWordRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserRePassWordRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserRePassWordRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserRePassWordRequest(val *SchemaUserRePassWordRequest) *NullableSchemaUserRePassWordRequest { + return &NullableSchemaUserRePassWordRequest{value: val, isSet: true} +} + +func (v NullableSchemaUserRePassWordRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserRePassWordRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_register_req.go b/model_schema_user_register_req.go new file mode 100644 index 0000000..61df49e --- /dev/null +++ b/model_schema_user_register_req.go @@ -0,0 +1,248 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserRegisterReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserRegisterReq{} + +// SchemaUserRegisterReq struct for SchemaUserRegisterReq +type SchemaUserRegisterReq struct { + // captcha_code + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` + // email + EMail string `json:"e_mail"` + // name + Name string `json:"name"` + // password + Pass string `json:"pass"` +} + +// NewSchemaUserRegisterReq instantiates a new SchemaUserRegisterReq 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 NewSchemaUserRegisterReq(eMail string, name string, pass string) *SchemaUserRegisterReq { + this := SchemaUserRegisterReq{} + this.EMail = eMail + this.Name = name + this.Pass = pass + return &this +} + +// NewSchemaUserRegisterReqWithDefaults instantiates a new SchemaUserRegisterReq 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 NewSchemaUserRegisterReqWithDefaults() *SchemaUserRegisterReq { + this := SchemaUserRegisterReq{} + return &this +} + +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) SetCaptchaId(v string) { + o.CaptchaId = &v +} + +// GetEMail returns the EMail field value +func (o *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) GetEMailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EMail, true +} + +// SetEMail sets field value +func (o *SchemaUserRegisterReq) SetEMail(v string) { + o.EMail = v +} + +// GetName returns the Name field value +func (o *SchemaUserRegisterReq) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SchemaUserRegisterReq) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SchemaUserRegisterReq) SetName(v string) { + o.Name = v +} + +// GetPass returns the Pass field value +func (o *SchemaUserRegisterReq) 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 *SchemaUserRegisterReq) GetPassOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Pass, true +} + +// SetPass sets field value +func (o *SchemaUserRegisterReq) SetPass(v string) { + o.Pass = v +} + +func (o SchemaUserRegisterReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserRegisterReq) 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["e_mail"] = o.EMail + toSerialize["name"] = o.Name + toSerialize["pass"] = o.Pass + return toSerialize, nil +} + +type NullableSchemaUserRegisterReq struct { + value *SchemaUserRegisterReq + isSet bool +} + +func (v NullableSchemaUserRegisterReq) Get() *SchemaUserRegisterReq { + return v.value +} + +func (v *NullableSchemaUserRegisterReq) Set(val *SchemaUserRegisterReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserRegisterReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserRegisterReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserRegisterReq(val *SchemaUserRegisterReq) *NullableSchemaUserRegisterReq { + return &NullableSchemaUserRegisterReq{value: val, isSet: true} +} + +func (v NullableSchemaUserRegisterReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserRegisterReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_user_retrieve_pass_word_request.go b/model_schema_user_retrieve_pass_word_request.go new file mode 100644 index 0000000..ee412bb --- /dev/null +++ b/model_schema_user_retrieve_pass_word_request.go @@ -0,0 +1,192 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaUserRetrievePassWordRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaUserRetrievePassWordRequest{} + +// SchemaUserRetrievePassWordRequest struct for SchemaUserRetrievePassWordRequest +type SchemaUserRetrievePassWordRequest struct { + // captcha_code + CaptchaCode *string `json:"captcha_code,omitempty"` + // captcha_id + CaptchaId *string `json:"captcha_id,omitempty"` + // e_mail + EMail string `json:"e_mail"` +} + +// NewSchemaUserRetrievePassWordRequest instantiates a new SchemaUserRetrievePassWordRequest 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 NewSchemaUserRetrievePassWordRequest(eMail string) *SchemaUserRetrievePassWordRequest { + this := SchemaUserRetrievePassWordRequest{} + this.EMail = eMail + return &this +} + +// NewSchemaUserRetrievePassWordRequestWithDefaults instantiates a new SchemaUserRetrievePassWordRequest 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 NewSchemaUserRetrievePassWordRequestWithDefaults() *SchemaUserRetrievePassWordRequest { + this := SchemaUserRetrievePassWordRequest{} + return &this +} + +// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise. +func (o *SchemaUserRetrievePassWordRequest) 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 *SchemaUserRetrievePassWordRequest) 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 *SchemaUserRetrievePassWordRequest) 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 *SchemaUserRetrievePassWordRequest) SetCaptchaCode(v string) { + o.CaptchaCode = &v +} + +// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise. +func (o *SchemaUserRetrievePassWordRequest) 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 *SchemaUserRetrievePassWordRequest) 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 *SchemaUserRetrievePassWordRequest) 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 *SchemaUserRetrievePassWordRequest) SetCaptchaId(v string) { + o.CaptchaId = &v +} + +// GetEMail returns the EMail field value +func (o *SchemaUserRetrievePassWordRequest) 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 *SchemaUserRetrievePassWordRequest) GetEMailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EMail, true +} + +// SetEMail sets field value +func (o *SchemaUserRetrievePassWordRequest) SetEMail(v string) { + o.EMail = v +} + +func (o SchemaUserRetrievePassWordRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaUserRetrievePassWordRequest) 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["e_mail"] = o.EMail + return toSerialize, nil +} + +type NullableSchemaUserRetrievePassWordRequest struct { + value *SchemaUserRetrievePassWordRequest + isSet bool +} + +func (v NullableSchemaUserRetrievePassWordRequest) Get() *SchemaUserRetrievePassWordRequest { + return v.value +} + +func (v *NullableSchemaUserRetrievePassWordRequest) Set(val *SchemaUserRetrievePassWordRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaUserRetrievePassWordRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaUserRetrievePassWordRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaUserRetrievePassWordRequest(val *SchemaUserRetrievePassWordRequest) *NullableSchemaUserRetrievePassWordRequest { + return &NullableSchemaUserRetrievePassWordRequest{value: val, isSet: true} +} + +func (v NullableSchemaUserRetrievePassWordRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaUserRetrievePassWordRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_vote_req.go b/model_schema_vote_req.go new file mode 100644 index 0000000..474f12d --- /dev/null +++ b/model_schema_vote_req.go @@ -0,0 +1,155 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaVoteReq type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaVoteReq{} + +// SchemaVoteReq struct for SchemaVoteReq +type SchemaVoteReq struct { + // is cancel + IsCancel *bool `json:"is_cancel,omitempty"` + // id + ObjectId string `json:"object_id"` +} + +// NewSchemaVoteReq instantiates a new SchemaVoteReq 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 NewSchemaVoteReq(objectId string) *SchemaVoteReq { + this := SchemaVoteReq{} + this.ObjectId = objectId + return &this +} + +// 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 +func NewSchemaVoteReqWithDefaults() *SchemaVoteReq { + this := SchemaVoteReq{} + return &this +} + +// GetIsCancel returns the IsCancel field value if set, zero value otherwise. +func (o *SchemaVoteReq) GetIsCancel() bool { + if o == nil || IsNil(o.IsCancel) { + var ret bool + return ret + } + return *o.IsCancel +} + +// GetIsCancelOk returns a tuple with the IsCancel field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaVoteReq) GetIsCancelOk() (*bool, bool) { + if o == nil || IsNil(o.IsCancel) { + return nil, false + } + return o.IsCancel, true +} + +// HasIsCancel returns a boolean if a field has been set. +func (o *SchemaVoteReq) HasIsCancel() bool { + if o != nil && !IsNil(o.IsCancel) { + return true + } + + return false +} + +// SetIsCancel gets a reference to the given bool and assigns it to the IsCancel field. +func (o *SchemaVoteReq) SetIsCancel(v bool) { + o.IsCancel = &v +} + +// GetObjectId returns the ObjectId field value +func (o *SchemaVoteReq) GetObjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *SchemaVoteReq) GetObjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *SchemaVoteReq) SetObjectId(v string) { + o.ObjectId = v +} + +func (o SchemaVoteReq) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaVoteReq) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsCancel) { + toSerialize["is_cancel"] = o.IsCancel + } + toSerialize["object_id"] = o.ObjectId + return toSerialize, nil +} + +type NullableSchemaVoteReq struct { + value *SchemaVoteReq + isSet bool +} + +func (v NullableSchemaVoteReq) Get() *SchemaVoteReq { + return v.value +} + +func (v *NullableSchemaVoteReq) Set(val *SchemaVoteReq) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaVoteReq) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaVoteReq) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaVoteReq(val *SchemaVoteReq) *NullableSchemaVoteReq { + return &NullableSchemaVoteReq{value: val, isSet: true} +} + +func (v NullableSchemaVoteReq) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaVoteReq) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_schema_vote_resp.go b/model_schema_vote_resp.go new file mode 100644 index 0000000..36913e0 --- /dev/null +++ b/model_schema_vote_resp.go @@ -0,0 +1,234 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the SchemaVoteResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SchemaVoteResp{} + +// SchemaVoteResp struct for SchemaVoteResp +type SchemaVoteResp struct { + DownVotes *int32 `json:"down_votes,omitempty"` + UpVotes *int32 `json:"up_votes,omitempty"` + VoteStatus *string `json:"vote_status,omitempty"` + Votes *int32 `json:"votes,omitempty"` +} + +// NewSchemaVoteResp instantiates a new SchemaVoteResp 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 NewSchemaVoteResp() *SchemaVoteResp { + this := SchemaVoteResp{} + return &this +} + +// NewSchemaVoteRespWithDefaults instantiates a new SchemaVoteResp 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 NewSchemaVoteRespWithDefaults() *SchemaVoteResp { + this := SchemaVoteResp{} + return &this +} + +// GetDownVotes returns the DownVotes field value if set, zero value otherwise. +func (o *SchemaVoteResp) GetDownVotes() int32 { + if o == nil || IsNil(o.DownVotes) { + var ret int32 + return ret + } + return *o.DownVotes +} + +// GetDownVotesOk returns a tuple with the DownVotes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaVoteResp) GetDownVotesOk() (*int32, bool) { + if o == nil || IsNil(o.DownVotes) { + return nil, false + } + return o.DownVotes, true +} + +// HasDownVotes returns a boolean if a field has been set. +func (o *SchemaVoteResp) HasDownVotes() bool { + if o != nil && !IsNil(o.DownVotes) { + return true + } + + return false +} + +// SetDownVotes gets a reference to the given int32 and assigns it to the DownVotes field. +func (o *SchemaVoteResp) SetDownVotes(v int32) { + o.DownVotes = &v +} + +// GetUpVotes returns the UpVotes field value if set, zero value otherwise. +func (o *SchemaVoteResp) GetUpVotes() int32 { + if o == nil || IsNil(o.UpVotes) { + var ret int32 + return ret + } + return *o.UpVotes +} + +// GetUpVotesOk returns a tuple with the UpVotes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaVoteResp) GetUpVotesOk() (*int32, bool) { + if o == nil || IsNil(o.UpVotes) { + return nil, false + } + return o.UpVotes, true +} + +// HasUpVotes returns a boolean if a field has been set. +func (o *SchemaVoteResp) HasUpVotes() bool { + if o != nil && !IsNil(o.UpVotes) { + return true + } + + return false +} + +// SetUpVotes gets a reference to the given int32 and assigns it to the UpVotes field. +func (o *SchemaVoteResp) SetUpVotes(v int32) { + o.UpVotes = &v +} + +// GetVoteStatus returns the VoteStatus field value if set, zero value otherwise. +func (o *SchemaVoteResp) GetVoteStatus() string { + if o == nil || IsNil(o.VoteStatus) { + var ret string + return ret + } + return *o.VoteStatus +} + +// GetVoteStatusOk returns a tuple with the VoteStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaVoteResp) GetVoteStatusOk() (*string, bool) { + if o == nil || IsNil(o.VoteStatus) { + return nil, false + } + return o.VoteStatus, true +} + +// HasVoteStatus returns a boolean if a field has been set. +func (o *SchemaVoteResp) HasVoteStatus() bool { + if o != nil && !IsNil(o.VoteStatus) { + return true + } + + return false +} + +// SetVoteStatus gets a reference to the given string and assigns it to the VoteStatus field. +func (o *SchemaVoteResp) SetVoteStatus(v string) { + o.VoteStatus = &v +} + +// GetVotes returns the Votes field value if set, zero value otherwise. +func (o *SchemaVoteResp) GetVotes() int32 { + if o == nil || IsNil(o.Votes) { + var ret int32 + return ret + } + return *o.Votes +} + +// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SchemaVoteResp) GetVotesOk() (*int32, bool) { + if o == nil || IsNil(o.Votes) { + return nil, false + } + return o.Votes, true +} + +// HasVotes returns a boolean if a field has been set. +func (o *SchemaVoteResp) HasVotes() bool { + if o != nil && !IsNil(o.Votes) { + return true + } + + return false +} + +// SetVotes gets a reference to the given int32 and assigns it to the Votes field. +func (o *SchemaVoteResp) SetVotes(v int32) { + o.Votes = &v +} + +func (o SchemaVoteResp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SchemaVoteResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DownVotes) { + toSerialize["down_votes"] = o.DownVotes + } + if !IsNil(o.UpVotes) { + toSerialize["up_votes"] = o.UpVotes + } + if !IsNil(o.VoteStatus) { + toSerialize["vote_status"] = o.VoteStatus + } + if !IsNil(o.Votes) { + toSerialize["votes"] = o.Votes + } + return toSerialize, nil +} + +type NullableSchemaVoteResp struct { + value *SchemaVoteResp + isSet bool +} + +func (v NullableSchemaVoteResp) Get() *SchemaVoteResp { + return v.value +} + +func (v *NullableSchemaVoteResp) Set(val *SchemaVoteResp) { + v.value = val + v.isSet = true +} + +func (v NullableSchemaVoteResp) IsSet() bool { + return v.isSet +} + +func (v *NullableSchemaVoteResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchemaVoteResp(val *SchemaVoteResp) *NullableSchemaVoteResp { + return &NullableSchemaVoteResp{value: val, isSet: true} +} + +func (v NullableSchemaVoteResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchemaVoteResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_translator_lang_option.go b/model_translator_lang_option.go new file mode 100644 index 0000000..baf4cf5 --- /dev/null +++ b/model_translator_lang_option.go @@ -0,0 +1,199 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the TranslatorLangOption type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TranslatorLangOption{} + +// TranslatorLangOption struct for TranslatorLangOption +type TranslatorLangOption struct { + Label *string `json:"label,omitempty"` + // Translation completion percentage + Progress *int32 `json:"progress,omitempty"` + Value *string `json:"value,omitempty"` +} + +// NewTranslatorLangOption instantiates a new TranslatorLangOption 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 NewTranslatorLangOption() *TranslatorLangOption { + this := TranslatorLangOption{} + return &this +} + +// NewTranslatorLangOptionWithDefaults instantiates a new TranslatorLangOption 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 NewTranslatorLangOptionWithDefaults() *TranslatorLangOption { + this := TranslatorLangOption{} + return &this +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *TranslatorLangOption) 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 *TranslatorLangOption) 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 *TranslatorLangOption) 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 *TranslatorLangOption) SetLabel(v string) { + o.Label = &v +} + +// GetProgress returns the Progress field value if set, zero value otherwise. +func (o *TranslatorLangOption) GetProgress() int32 { + if o == nil || IsNil(o.Progress) { + var ret int32 + return ret + } + return *o.Progress +} + +// GetProgressOk returns a tuple with the Progress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TranslatorLangOption) GetProgressOk() (*int32, bool) { + if o == nil || IsNil(o.Progress) { + return nil, false + } + return o.Progress, true +} + +// HasProgress returns a boolean if a field has been set. +func (o *TranslatorLangOption) HasProgress() bool { + if o != nil && !IsNil(o.Progress) { + return true + } + + return false +} + +// SetProgress gets a reference to the given int32 and assigns it to the Progress field. +func (o *TranslatorLangOption) SetProgress(v int32) { + o.Progress = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *TranslatorLangOption) 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 *TranslatorLangOption) 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 *TranslatorLangOption) 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 *TranslatorLangOption) SetValue(v string) { + o.Value = &v +} + +func (o TranslatorLangOption) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TranslatorLangOption) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Progress) { + toSerialize["progress"] = o.Progress + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableTranslatorLangOption struct { + value *TranslatorLangOption + isSet bool +} + +func (v NullableTranslatorLangOption) Get() *TranslatorLangOption { + return v.value +} + +func (v *NullableTranslatorLangOption) Set(val *TranslatorLangOption) { + v.value = val + v.isSet = true +} + +func (v NullableTranslatorLangOption) IsSet() bool { + return v.isSet +} + +func (v *NullableTranslatorLangOption) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTranslatorLangOption(val *TranslatorLangOption) *NullableTranslatorLangOption { + return &NullableTranslatorLangOption{value: val, isSet: true} +} + +func (v NullableTranslatorLangOption) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTranslatorLangOption) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/response.go b/response.go new file mode 100644 index 0000000..af5770f --- /dev/null +++ b/response.go @@ -0,0 +1,47 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/test/api_activity_test.go b/test/api_activity_test.go new file mode 100644 index 0000000..01f007b --- /dev/null +++ b/test/api_activity_test.go @@ -0,0 +1,85 @@ +/* +answer + +Testing ActivityApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_ActivityApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ActivityApiService AnswerApiV1FollowPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1FollowPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ActivityApiService AnswerApiV1FollowTagsPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1FollowTagsPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ActivityApiService AnswerApiV1PersonalVotePageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1PersonalVotePageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ActivityApiService AnswerApiV1VoteDownPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1VoteDownPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ActivityApiService AnswerApiV1VoteUpPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ActivityApi.AnswerApiV1VoteUpPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_admin_test.go b/test/api_admin_test.go new file mode 100644 index 0000000..ba2877d --- /dev/null +++ b/test/api_admin_test.go @@ -0,0 +1,433 @@ +/* +answer + +Testing AdminApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_AdminApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AdminApiService AnswerAdminApiAnswerPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiAnswerPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiAnswerStatusPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiAnswerStatusPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiDashboardGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiDashboardGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiQuestionPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiQuestionPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiQuestionStatusPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiQuestionStatusPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiReportPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiReportPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiReportsPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiReportsPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiRolesGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiRolesGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSettingSmtpGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSettingSmtpGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSettingSmtpPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSettingSmtpPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoBrandingGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoBrandingGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoBrandingPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoBrandingPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoCustomCssHtmlGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoCustomCssHtmlPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoCustomCssHtmlPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoGeneralGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoGeneralGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoGeneralPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoGeneralPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoInterfaceGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoInterfaceGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoInterfacePut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoInterfacePut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoLegalGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLegalGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoLegalPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLegalPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoLoginGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLoginGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoLoginPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoLoginPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoSeoGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoSeoGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoSeoPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoSeoPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoThemeGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoThemeGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoThemePut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoThemePut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoWriteGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoWriteGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiSiteinfoWritePut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiSiteinfoWritePut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiThemeOptionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiThemeOptionsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiUserPasswordPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserPasswordPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiUserPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiUserRolePut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserRolePut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiUserStatusPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUserStatusPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AdminApiService AnswerAdminApiUsersPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AdminApi.AnswerAdminApiUsersPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_api_answer_test.go b/test/api_api_answer_test.go new file mode 100644 index 0000000..2eb5045 --- /dev/null +++ b/test/api_api_answer_test.go @@ -0,0 +1,109 @@ +/* +answer + +Testing ApiAnswerApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_ApiAnswerApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ApiAnswerApiService AnswerApiV1AnswerAcceptancePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerAcceptancePost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApiAnswerApiService AnswerApiV1AnswerDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerDelete(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApiAnswerApiService AnswerApiV1AnswerInfoGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerInfoGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApiAnswerApiService AnswerApiV1AnswerPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApiAnswerApiService AnswerApiV1PersonalAnswerPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ApiAnswerApi.AnswerApiV1PersonalAnswerPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_collection_test.go b/test/api_collection_test.go new file mode 100644 index 0000000..61297cb --- /dev/null +++ b/test/api_collection_test.go @@ -0,0 +1,49 @@ +/* +answer + +Testing CollectionApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_CollectionApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CollectionApiService AnswerApiV1CollectionSwitchPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CollectionApi.AnswerApiV1CollectionSwitchPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CollectionApiService AnswerApiV1PersonalCollectionPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CollectionApi.AnswerApiV1PersonalCollectionPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_comment_test.go b/test/api_comment_test.go new file mode 100644 index 0000000..60ab20b --- /dev/null +++ b/test/api_comment_test.go @@ -0,0 +1,121 @@ +/* +answer + +Testing CommentApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_CommentApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CommentApiService AnswerApiV1ActivityTimelineDetailGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineDetailGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CommentApiService AnswerApiV1ActivityTimelineGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CommentApi.AnswerApiV1ActivityTimelineGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CommentApiService AnswerApiV1CommentDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentDelete(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CommentApiService AnswerApiV1CommentGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CommentApiService AnswerApiV1CommentPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CommentApiService AnswerApiV1CommentPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CommentApiService AnswerApiV1CommentPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CommentApi.AnswerApiV1CommentPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CommentApiService AnswerApiV1PersonalCommentPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CommentApi.AnswerApiV1PersonalCommentPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_installation_test.go b/test/api_installation_test.go new file mode 100644 index 0000000..bbdfb5b --- /dev/null +++ b/test/api_installation_test.go @@ -0,0 +1,84 @@ +/* +answer + +Testing InstallationApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_InstallationApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test InstallationApiService InstallationBaseInfoPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InstallationApi.InstallationBaseInfoPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test InstallationApiService InstallationConfigFileCheckPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InstallationApi.InstallationConfigFileCheckPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test InstallationApiService InstallationDbCheckPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InstallationApi.InstallationDbCheckPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test InstallationApiService InstallationInitPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.InstallationApi.InstallationInitPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test InstallationApiService RootGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.InstallationApi.RootGet(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_lang_test.go b/test/api_lang_test.go new file mode 100644 index 0000000..6832173 --- /dev/null +++ b/test/api_lang_test.go @@ -0,0 +1,73 @@ +/* +answer + +Testing LangApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_LangApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test LangApiService AnswerAdminApiLanguageOptionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LangApi.AnswerAdminApiLanguageOptionsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LangApiService AnswerApiV1LanguageConfigGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LangApi.AnswerApiV1LanguageConfigGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LangApiService AnswerApiV1LanguageOptionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LangApi.AnswerApiV1LanguageOptionsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LangApiService InstallationLanguageOptionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LangApi.InstallationLanguageOptionsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_notification_test.go b/test/api_notification_test.go new file mode 100644 index 0000000..0d1cd98 --- /dev/null +++ b/test/api_notification_test.go @@ -0,0 +1,85 @@ +/* +answer + +Testing NotificationApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_NotificationApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test NotificationApiService AnswerApiV1NotificationPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NotificationApiService AnswerApiV1NotificationReadStateAllPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationReadStateAllPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NotificationApiService AnswerApiV1NotificationReadStatePut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationReadStatePut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NotificationApiService AnswerApiV1NotificationStatusGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationStatusGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NotificationApiService AnswerApiV1NotificationStatusPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.NotificationApi.AnswerApiV1NotificationStatusPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_question_test.go b/test/api_question_test.go new file mode 100644 index 0000000..f61d9db --- /dev/null +++ b/test/api_question_test.go @@ -0,0 +1,193 @@ +/* +answer + +Testing QuestionApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_QuestionApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test QuestionApiService AnswerApiV1PersonalQaTopGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1PersonalQaTopGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionAnswerPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionAnswerPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionClosemsglistGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionClosemsglistGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionDelete(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionInfoGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionInfoGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionOperationPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionOperationPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionReopenPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionReopenPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionSimilarGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionSimilarGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionSimilarTagGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionSimilarTagGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService AnswerApiV1QuestionStatusPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.AnswerApiV1QuestionStatusPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test QuestionApiService PersonalQuestionPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.QuestionApi.PersonalQuestionPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_rank_test.go b/test/api_rank_test.go new file mode 100644 index 0000000..9e3b4f7 --- /dev/null +++ b/test/api_rank_test.go @@ -0,0 +1,37 @@ +/* +answer + +Testing RankApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_RankApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test RankApiService AnswerApiV1PersonalRankPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.RankApi.AnswerApiV1PersonalRankPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_reason_test.go b/test/api_reason_test.go new file mode 100644 index 0000000..b25edae --- /dev/null +++ b/test/api_reason_test.go @@ -0,0 +1,49 @@ +/* +answer + +Testing ReasonApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_ReasonApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ReasonApiService AnswerAdminApiReasonsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReasonApi.AnswerAdminApiReasonsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReasonApiService AnswerApiV1ReasonsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReasonApi.AnswerApiV1ReasonsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_report_test.go b/test/api_report_test.go new file mode 100644 index 0000000..6bca8c6 --- /dev/null +++ b/test/api_report_test.go @@ -0,0 +1,49 @@ +/* +answer + +Testing ReportApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_ReportApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ReportApiService AnswerApiV1ReportPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReportApi.AnswerApiV1ReportPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReportApiService AnswerApiV1ReportTypeListGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReportApi.AnswerApiV1ReportTypeListGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_revision_test.go b/test/api_revision_test.go new file mode 100644 index 0000000..f0b5cf7 --- /dev/null +++ b/test/api_revision_test.go @@ -0,0 +1,73 @@ +/* +answer + +Testing RevisionApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_RevisionApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test RevisionApiService AnswerApiV1RevisionsAuditPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsAuditPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RevisionApiService AnswerApiV1RevisionsEditCheckGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsEditCheckGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RevisionApiService AnswerApiV1RevisionsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RevisionApiService AnswerApiV1RevisionsUnreviewedGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.RevisionApi.AnswerApiV1RevisionsUnreviewedGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_search_test.go b/test/api_search_test.go new file mode 100644 index 0000000..9dc0d40 --- /dev/null +++ b/test/api_search_test.go @@ -0,0 +1,37 @@ +/* +answer + +Testing SearchApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_SearchApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SearchApiService AnswerApiV1SearchGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SearchApi.AnswerApiV1SearchGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_site_test.go b/test/api_site_test.go new file mode 100644 index 0000000..ac0b1dd --- /dev/null +++ b/test/api_site_test.go @@ -0,0 +1,73 @@ +/* +answer + +Testing SiteApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_SiteApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SiteApiService AnswerApiV1SiteinfoGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SiteApi.AnswerApiV1SiteinfoGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SiteApiService AnswerApiV1SiteinfoLegalGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SiteApi.AnswerApiV1SiteinfoLegalGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SiteApiService CustomCssGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SiteApi.CustomCssGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SiteApiService RobotsTxtGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SiteApi.RobotsTxtGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_tag_test.go b/test/api_tag_test.go new file mode 100644 index 0000000..f54d2fd --- /dev/null +++ b/test/api_tag_test.go @@ -0,0 +1,145 @@ +/* +answer + +Testing TagApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_TagApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test TagApiService AnswerApiV1QuestionTagsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagApi.AnswerApiV1QuestionTagsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagApiService AnswerApiV1TagDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagDelete(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagApiService AnswerApiV1TagGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagApiService AnswerApiV1TagPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagApiService AnswerApiV1TagPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagApiService AnswerApiV1TagSynonymPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagSynonymPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagApiService AnswerApiV1TagSynonymsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagSynonymsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagApiService AnswerApiV1TagsFollowingGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagsFollowingGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagApiService AnswerApiV1TagsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagsGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagApiService AnswerApiV1TagsPageGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagApi.AnswerApiV1TagsPageGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_upload_test.go b/test/api_upload_test.go new file mode 100644 index 0000000..71336e9 --- /dev/null +++ b/test/api_upload_test.go @@ -0,0 +1,49 @@ +/* +answer + +Testing UploadApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_UploadApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test UploadApiService AnswerApiV1FilePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UploadApi.AnswerApiV1FilePost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UploadApiService AnswerApiV1PostRenderPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UploadApi.AnswerApiV1PostRenderPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_user_test.go b/test/api_user_test.go new file mode 100644 index 0000000..0c29281 --- /dev/null +++ b/test/api_user_test.go @@ -0,0 +1,253 @@ +/* +answer + +Testing UserApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + openapiclient "git.ncc.cx/package/openapi-go-answer" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_openapi_UserApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test UserApiService AnswerApiV1PersonalUserInfoGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1PersonalUserInfoGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserActionRecordGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserActionRecordGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserEmailChangeCodePost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailChangeCodePost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserEmailNotificationPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailNotificationPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserEmailPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserEmailVerificationPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserEmailVerificationSendPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationSendPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserInfoGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInfoGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserInfoPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInfoPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserInterfacePut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInterfacePut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserLoginEmailPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserLoginEmailPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserLogoutGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserLogoutGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserNoticeSetPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserNoticeSetPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserPasswordPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordPut(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserPasswordReplacementPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordReplacementPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserPasswordResetPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordResetPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserRankingGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRankingGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserRegisterCaptchaGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserApiService AnswerApiV1UserRegisterEmailPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRegisterEmailPost(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/utils.go b/utils.go new file mode 100644 index 0000000..1438060 --- /dev/null +++ b/utils.go @@ -0,0 +1,347 @@ +/* +answer + +answer api + +API version: v0.0.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return v.value.MarshalJSON() +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +}