first version
This commit is contained in:
26
.gitignore
vendored
Normal file
26
.gitignore
vendored
Normal file
@@ -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
|
||||
23
.openapi-generator-ignore
Normal file
23
.openapi-generator-ignore
Normal file
@@ -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
|
||||
408
.openapi-generator/FILES
Normal file
408
.openapi-generator/FILES
Normal file
@@ -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
|
||||
1
.openapi-generator/VERSION
Normal file
1
.openapi-generator/VERSION
Normal file
@@ -0,0 +1 @@
|
||||
6.6.0
|
||||
8
.travis.yml
Normal file
8
.travis.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
language: go
|
||||
|
||||
install:
|
||||
- go get -d -v .
|
||||
|
||||
script:
|
||||
- go build -v ./
|
||||
|
||||
418
README.md
Normal file
418
README.md
Normal file
@@ -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
|
||||
|
||||
|
||||
|
||||
6712
api/openapi.yaml
Normal file
6712
api/openapi.yaml
Normal file
File diff suppressed because it is too large
Load Diff
656
api_activity.go
Normal file
656
api_activity.go
Normal file
@@ -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
|
||||
}
|
||||
4237
api_admin.go
Normal file
4237
api_admin.go
Normal file
File diff suppressed because it is too large
Load Diff
947
api_api_answer.go
Normal file
947
api_api_answer.go
Normal file
@@ -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 <br> <b>order</b> (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
|
||||
}
|
||||
283
api_collection.go
Normal file
283
api_collection.go
Normal file
@@ -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
|
||||
}
|
||||
1026
api_comment.go
Normal file
1026
api_comment.go
Normal file
File diff suppressed because it is too large
Load Diff
543
api_installation.go
Normal file
543
api_installation.go
Normal file
@@ -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
|
||||
}
|
||||
430
api_lang.go
Normal file
430
api_lang.go
Normal file
@@ -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
|
||||
}
|
||||
655
api_notification.go
Normal file
655
api_notification.go
Normal file
@@ -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
|
||||
}
|
||||
1761
api_question.go
Normal file
1761
api_question.go
Normal file
File diff suppressed because it is too large
Load Diff
152
api_rank.go
Normal file
152
api_rank.go
Normal file
@@ -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
|
||||
}
|
||||
293
api_reason.go
Normal file
293
api_reason.go
Normal file
@@ -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
|
||||
}
|
||||
258
api_report.go
Normal file
258
api_report.go
Normal file
@@ -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 <br> 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
|
||||
}
|
||||
506
api_revision.go
Normal file
506
api_revision.go
Normal file
@@ -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
|
||||
}
|
||||
158
api_search.go
Normal file
158
api_search.go
Normal file
@@ -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
|
||||
}
|
||||
430
api_site.go
Normal file
430
api_site.go
Normal file
@@ -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
|
||||
}
|
||||
1182
api_tag.go
Normal file
1182
api_tag.go
Normal file
File diff suppressed because it is too large
Load Diff
300
api_upload.go
Normal file
300
api_upload.go
Normal file
@@ -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
|
||||
}
|
||||
2239
api_user.go
Normal file
2239
api_user.go
Normal file
File diff suppressed because it is too large
Load Diff
707
client.go
Normal file
707
client.go
Normal file
@@ -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<lenIndValue;i++ {
|
||||
var arrayValue = indValue.Index(i)
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType)
|
||||
}
|
||||
return
|
||||
|
||||
case reflect.Map:
|
||||
var indValue = reflect.ValueOf(obj)
|
||||
if indValue == reflect.ValueOf(nil) {
|
||||
return
|
||||
}
|
||||
iter := indValue.MapRange()
|
||||
for iter.Next() {
|
||||
k,v := iter.Key(), iter.Value()
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType)
|
||||
}
|
||||
return
|
||||
|
||||
case reflect.Interface:
|
||||
fallthrough
|
||||
case reflect.Ptr:
|
||||
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType)
|
||||
return
|
||||
|
||||
case reflect.Int, reflect.Int8, reflect.Int16,
|
||||
reflect.Int32, reflect.Int64:
|
||||
value = strconv.FormatInt(v.Int(), 10)
|
||||
case reflect.Uint, reflect.Uint8, reflect.Uint16,
|
||||
reflect.Uint32, reflect.Uint64, reflect.Uintptr:
|
||||
value = strconv.FormatUint(v.Uint(), 10)
|
||||
case reflect.Float32, reflect.Float64:
|
||||
value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
|
||||
case reflect.Bool:
|
||||
value = strconv.FormatBool(v.Bool())
|
||||
case reflect.String:
|
||||
value = v.String()
|
||||
default:
|
||||
value = v.Type().String() + " value"
|
||||
}
|
||||
}
|
||||
|
||||
switch valuesMap := headerOrQueryParams.(type) {
|
||||
case url.Values:
|
||||
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
|
||||
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix) + "," + value)
|
||||
} else {
|
||||
valuesMap.Add(keyPrefix, value)
|
||||
}
|
||||
break
|
||||
case map[string]string:
|
||||
valuesMap[keyPrefix] = value
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// helper for converting interface{} parameters to json strings
|
||||
func parameterToJson(obj interface{}) (string, error) {
|
||||
jsonBuf, err := json.Marshal(obj)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
return string(jsonBuf), err
|
||||
}
|
||||
|
||||
// callAPI do the request.
|
||||
func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
|
||||
if c.cfg.Debug {
|
||||
dump, err := httputil.DumpRequestOut(request, true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.Printf("\n%s\n", string(dump))
|
||||
}
|
||||
|
||||
resp, err := c.cfg.HTTPClient.Do(request)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
|
||||
if c.cfg.Debug {
|
||||
dump, err := httputil.DumpResponse(resp, true)
|
||||
if err != nil {
|
||||
return resp, err
|
||||
}
|
||||
log.Printf("\n%s\n", string(dump))
|
||||
}
|
||||
return resp, err
|
||||
}
|
||||
|
||||
// Allow modification of underlying config for alternate implementations and testing
|
||||
// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
|
||||
func (c *APIClient) GetConfig() *Configuration {
|
||||
return c.cfg
|
||||
}
|
||||
|
||||
type formFile struct {
|
||||
fileBytes []byte
|
||||
fileName string
|
||||
formFileName string
|
||||
}
|
||||
|
||||
// prepareRequest build the request
|
||||
func (c *APIClient) prepareRequest(
|
||||
ctx context.Context,
|
||||
path string, method string,
|
||||
postBody interface{},
|
||||
headerParams map[string]string,
|
||||
queryParams url.Values,
|
||||
formParams url.Values,
|
||||
formFiles []formFile) (localVarRequest *http.Request, err error) {
|
||||
|
||||
var body *bytes.Buffer
|
||||
|
||||
// Detect postBody type and post.
|
||||
if postBody != nil {
|
||||
contentType := headerParams["Content-Type"]
|
||||
if contentType == "" {
|
||||
contentType = detectContentType(postBody)
|
||||
headerParams["Content-Type"] = contentType
|
||||
}
|
||||
|
||||
body, err = setBody(postBody, contentType)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// add form parameters and file if available.
|
||||
if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 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))
|
||||
}
|
||||
218
configuration.go
Normal file
218
configuration.go
Normal file
@@ -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)
|
||||
}
|
||||
345
docs/ActivityApi.md
Normal file
345
docs/ActivityApi.md
Normal file
@@ -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)
|
||||
|
||||
2249
docs/AdminApi.md
Normal file
2249
docs/AdminApi.md
Normal file
File diff suppressed because it is too large
Load Diff
82
docs/AnswerAdminApiRolesGet200Response.md
Normal file
82
docs/AnswerAdminApiRolesGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiSettingSmtpGet200Response.md
Normal file
82
docs/AnswerAdminApiSettingSmtpGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiSiteinfoBrandingGet200Response.md
Normal file
82
docs/AnswerAdminApiSiteinfoBrandingGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md
Normal file
82
docs/AnswerAdminApiSiteinfoCustomCssHtmlGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiSiteinfoGeneralGet200Response.md
Normal file
82
docs/AnswerAdminApiSiteinfoGeneralGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiSiteinfoInterfaceGet200Response.md
Normal file
82
docs/AnswerAdminApiSiteinfoInterfaceGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiSiteinfoLegalGet200Response.md
Normal file
82
docs/AnswerAdminApiSiteinfoLegalGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiSiteinfoLoginGet200Response.md
Normal file
82
docs/AnswerAdminApiSiteinfoLoginGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiSiteinfoSeoGet200Response.md
Normal file
82
docs/AnswerAdminApiSiteinfoSeoGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiSiteinfoThemeGet200Response.md
Normal file
82
docs/AnswerAdminApiSiteinfoThemeGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiSiteinfoWriteGet200Response.md
Normal file
82
docs/AnswerAdminApiSiteinfoWriteGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerAdminApiUsersPageGet200Response.md
Normal file
82
docs/AnswerAdminApiUsersPageGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
108
docs/AnswerAdminApiUsersPageGet200ResponseData.md
Normal file
108
docs/AnswerAdminApiUsersPageGet200ResponseData.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
56
docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md
Normal file
56
docs/AnswerAdminApiUsersPageGet200ResponseDataAllOf.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1ActivityTimelineGet200Response.md
Normal file
82
docs/AnswerApiV1ActivityTimelineGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1CollectionSwitchPost200Response.md
Normal file
82
docs/AnswerApiV1CollectionSwitchPost200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1CommentGet200Response.md
Normal file
82
docs/AnswerApiV1CommentGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1CommentGet200ResponseData.md
Normal file
82
docs/AnswerApiV1CommentGet200ResponseData.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
56
docs/AnswerApiV1CommentGet200ResponseDataAllOf.md
Normal file
56
docs/AnswerApiV1CommentGet200ResponseDataAllOf.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1CommentPost200Response.md
Normal file
82
docs/AnswerApiV1CommentPost200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1FilePost200Response.md
Normal file
82
docs/AnswerApiV1FilePost200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1FollowPost200Response.md
Normal file
82
docs/AnswerApiV1FollowPost200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1PersonalCommentPageGet200Response.md
Normal file
82
docs/AnswerApiV1PersonalCommentPageGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md
Normal file
82
docs/AnswerApiV1PersonalCommentPageGet200ResponseData.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1PersonalRankPageGet200Response.md
Normal file
82
docs/AnswerApiV1PersonalRankPageGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1PersonalRankPageGet200ResponseData.md
Normal file
82
docs/AnswerApiV1PersonalRankPageGet200ResponseData.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
56
docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md
Normal file
56
docs/AnswerApiV1PersonalRankPageGet200ResponseDataAllOf.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1PersonalUserInfoGet200Response.md
Normal file
82
docs/AnswerApiV1PersonalUserInfoGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1PersonalVotePageGet200Response.md
Normal file
82
docs/AnswerApiV1PersonalVotePageGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1PersonalVotePageGet200ResponseData.md
Normal file
82
docs/AnswerApiV1PersonalVotePageGet200ResponseData.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
56
docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md
Normal file
56
docs/AnswerApiV1PersonalVotePageGet200ResponseDataAllOf.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1QuestionPageGet200Response.md
Normal file
82
docs/AnswerApiV1QuestionPageGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1QuestionPageGet200ResponseData.md
Normal file
82
docs/AnswerApiV1QuestionPageGet200ResponseData.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
56
docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md
Normal file
56
docs/AnswerApiV1QuestionPageGet200ResponseDataAllOf.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1QuestionTagsGet200Response.md
Normal file
82
docs/AnswerApiV1QuestionTagsGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1ReportTypeListGet200Response.md
Normal file
82
docs/AnswerApiV1ReportTypeListGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1RevisionsGet200Response.md
Normal file
82
docs/AnswerApiV1RevisionsGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1RevisionsUnreviewedGet200Response.md
Normal file
82
docs/AnswerApiV1RevisionsUnreviewedGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md
Normal file
82
docs/AnswerApiV1RevisionsUnreviewedGet200ResponseData.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1SearchGet200Response.md
Normal file
82
docs/AnswerApiV1SearchGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1SiteinfoGet200Response.md
Normal file
82
docs/AnswerApiV1SiteinfoGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1SiteinfoLegalGet200Response.md
Normal file
82
docs/AnswerApiV1SiteinfoLegalGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1TagGet200Response.md
Normal file
82
docs/AnswerApiV1TagGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1TagSynonymsGet200Response.md
Normal file
82
docs/AnswerApiV1TagSynonymsGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1TagsFollowingGet200Response.md
Normal file
82
docs/AnswerApiV1TagsFollowingGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1TagsPageGet200Response.md
Normal file
82
docs/AnswerApiV1TagsPageGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1TagsPageGet200ResponseData.md
Normal file
82
docs/AnswerApiV1TagsPageGet200ResponseData.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
56
docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md
Normal file
56
docs/AnswerApiV1TagsPageGet200ResponseDataAllOf.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1UserActionRecordGet200Response.md
Normal file
82
docs/AnswerApiV1UserActionRecordGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1UserEmailVerificationPost200Response.md
Normal file
82
docs/AnswerApiV1UserEmailVerificationPost200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1UserInfoGet200Response.md
Normal file
82
docs/AnswerApiV1UserInfoGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1UserNoticeSetPost200Response.md
Normal file
82
docs/AnswerApiV1UserNoticeSetPost200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1UserRankingGet200Response.md
Normal file
82
docs/AnswerApiV1UserRankingGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/AnswerApiV1VoteDownPost200Response.md
Normal file
82
docs/AnswerApiV1VoteDownPost200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
489
docs/ApiAnswerApi.md
Normal file
489
docs/ApiAnswerApi.md
Normal file
@@ -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)
|
||||
|
||||
144
docs/CollectionApi.md
Normal file
144
docs/CollectionApi.md
Normal file
@@ -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)
|
||||
|
||||
560
docs/CommentApi.md
Normal file
560
docs/CommentApi.md
Normal file
@@ -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)
|
||||
|
||||
134
docs/HandlerRespBody.md
Normal file
134
docs/HandlerRespBody.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
108
docs/InstallCheckConfigFileResp.md
Normal file
108
docs/InstallCheckConfigFileResp.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
181
docs/InstallCheckDatabaseReq.md
Normal file
181
docs/InstallCheckDatabaseReq.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
177
docs/InstallInitBaseInfoReq.md
Normal file
177
docs/InstallInitBaseInfoReq.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
331
docs/InstallationApi.md
Normal file
331
docs/InstallationApi.md
Normal file
@@ -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)
|
||||
|
||||
82
docs/InstallationConfigFileCheckPost200Response.md
Normal file
82
docs/InstallationConfigFileCheckPost200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
82
docs/InstallationLanguageOptionsGet200Response.md
Normal file
82
docs/InstallationLanguageOptionsGet200Response.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
261
docs/LangApi.md
Normal file
261
docs/LangApi.md
Normal file
@@ -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)
|
||||
|
||||
342
docs/NotificationApi.md
Normal file
342
docs/NotificationApi.md
Normal file
@@ -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)
|
||||
|
||||
82
docs/PagerPageModel.md
Normal file
82
docs/PagerPageModel.md
Normal file
@@ -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)
|
||||
|
||||
|
||||
947
docs/QuestionApi.md
Normal file
947
docs/QuestionApi.md
Normal file
@@ -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)
|
||||
|
||||
79
docs/RankApi.md
Normal file
79
docs/RankApi.md
Normal file
@@ -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)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user