更新文档内容

This commit is contained in:
2023-09-26 16:20:01 +08:00
parent 73222eee28
commit d72897f080
415 changed files with 15785 additions and 17558 deletions

View File

@@ -6,7 +6,7 @@ API version: 1.0.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
package answer_sdk
import (
"bytes"
@@ -17,12 +17,12 @@ import (
)
// TagApiService TagApi service
type TagApiService service
// TagAPIService TagAPI service
type TagAPIService service
type ApiAnswerApiV1QuestionTagsGetRequest struct {
ctx context.Context
ApiService *TagApiService
ApiService *TagAPIService
tag *string
}
@@ -44,7 +44,7 @@ get tag list
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1QuestionTagsGetRequest
*/
func (a *TagApiService) AnswerApiV1QuestionTagsGet(ctx context.Context) ApiAnswerApiV1QuestionTagsGetRequest {
func (a *TagAPIService) AnswerApiV1QuestionTagsGet(ctx context.Context) ApiAnswerApiV1QuestionTagsGetRequest {
return ApiAnswerApiV1QuestionTagsGetRequest{
ApiService: a,
ctx: ctx,
@@ -53,7 +53,7 @@ func (a *TagApiService) AnswerApiV1QuestionTagsGet(ctx context.Context) ApiAnswe
// Execute executes the request
// @return AnswerApiV1QuestionTagsGet200Response
func (a *TagApiService) AnswerApiV1QuestionTagsGetExecute(r ApiAnswerApiV1QuestionTagsGetRequest) (*AnswerApiV1QuestionTagsGet200Response, *http.Response, error) {
func (a *TagAPIService) AnswerApiV1QuestionTagsGetExecute(r ApiAnswerApiV1QuestionTagsGetRequest) (*AnswerApiV1QuestionTagsGet200Response, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -61,7 +61,7 @@ func (a *TagApiService) AnswerApiV1QuestionTagsGetExecute(r ApiAnswerApiV1Questi
localVarReturnValue *AnswerApiV1QuestionTagsGet200Response
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1QuestionTagsGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1QuestionTagsGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -145,7 +145,7 @@ func (a *TagApiService) AnswerApiV1QuestionTagsGetExecute(r ApiAnswerApiV1Questi
type ApiAnswerApiV1TagDeleteRequest struct {
ctx context.Context
ApiService *TagApiService
ApiService *TagAPIService
data *SchemaRemoveTagReq
}
@@ -167,7 +167,7 @@ delete tag
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1TagDeleteRequest
*/
func (a *TagApiService) AnswerApiV1TagDelete(ctx context.Context) ApiAnswerApiV1TagDeleteRequest {
func (a *TagAPIService) AnswerApiV1TagDelete(ctx context.Context) ApiAnswerApiV1TagDeleteRequest {
return ApiAnswerApiV1TagDeleteRequest{
ApiService: a,
ctx: ctx,
@@ -176,7 +176,7 @@ func (a *TagApiService) AnswerApiV1TagDelete(ctx context.Context) ApiAnswerApiV1
// Execute executes the request
// @return HandlerRespBody
func (a *TagApiService) AnswerApiV1TagDeleteExecute(r ApiAnswerApiV1TagDeleteRequest) (*HandlerRespBody, *http.Response, error) {
func (a *TagAPIService) AnswerApiV1TagDeleteExecute(r ApiAnswerApiV1TagDeleteRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
@@ -184,7 +184,7 @@ func (a *TagApiService) AnswerApiV1TagDeleteExecute(r ApiAnswerApiV1TagDeleteReq
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagDelete")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagDelete")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -256,7 +256,7 @@ func (a *TagApiService) AnswerApiV1TagDeleteExecute(r ApiAnswerApiV1TagDeleteReq
type ApiAnswerApiV1TagGetRequest struct {
ctx context.Context
ApiService *TagApiService
ApiService *TagAPIService
tagId *string
tagName *string
}
@@ -285,7 +285,7 @@ get tag one
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1TagGetRequest
*/
func (a *TagApiService) AnswerApiV1TagGet(ctx context.Context) ApiAnswerApiV1TagGetRequest {
func (a *TagAPIService) AnswerApiV1TagGet(ctx context.Context) ApiAnswerApiV1TagGetRequest {
return ApiAnswerApiV1TagGetRequest{
ApiService: a,
ctx: ctx,
@@ -294,7 +294,7 @@ func (a *TagApiService) AnswerApiV1TagGet(ctx context.Context) ApiAnswerApiV1Tag
// Execute executes the request
// @return AnswerApiV1TagGet200Response
func (a *TagApiService) AnswerApiV1TagGetExecute(r ApiAnswerApiV1TagGetRequest) (*AnswerApiV1TagGet200Response, *http.Response, error) {
func (a *TagAPIService) AnswerApiV1TagGetExecute(r ApiAnswerApiV1TagGetRequest) (*AnswerApiV1TagGet200Response, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -302,7 +302,7 @@ func (a *TagApiService) AnswerApiV1TagGetExecute(r ApiAnswerApiV1TagGetRequest)
localVarReturnValue *AnswerApiV1TagGet200Response
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -377,7 +377,7 @@ func (a *TagApiService) AnswerApiV1TagGetExecute(r ApiAnswerApiV1TagGetRequest)
type ApiAnswerApiV1TagPostRequest struct {
ctx context.Context
ApiService *TagApiService
ApiService *TagAPIService
data *SchemaAddTagReq
}
@@ -399,7 +399,7 @@ add tag
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1TagPostRequest
*/
func (a *TagApiService) AnswerApiV1TagPost(ctx context.Context) ApiAnswerApiV1TagPostRequest {
func (a *TagAPIService) AnswerApiV1TagPost(ctx context.Context) ApiAnswerApiV1TagPostRequest {
return ApiAnswerApiV1TagPostRequest{
ApiService: a,
ctx: ctx,
@@ -408,7 +408,7 @@ func (a *TagApiService) AnswerApiV1TagPost(ctx context.Context) ApiAnswerApiV1Ta
// Execute executes the request
// @return HandlerRespBody
func (a *TagApiService) AnswerApiV1TagPostExecute(r ApiAnswerApiV1TagPostRequest) (*HandlerRespBody, *http.Response, error) {
func (a *TagAPIService) AnswerApiV1TagPostExecute(r ApiAnswerApiV1TagPostRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -416,7 +416,7 @@ func (a *TagApiService) AnswerApiV1TagPostExecute(r ApiAnswerApiV1TagPostRequest
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagPost")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagPost")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -488,7 +488,7 @@ func (a *TagApiService) AnswerApiV1TagPostExecute(r ApiAnswerApiV1TagPostRequest
type ApiAnswerApiV1TagPutRequest struct {
ctx context.Context
ApiService *TagApiService
ApiService *TagAPIService
data *SchemaUpdateTagReq
}
@@ -510,7 +510,7 @@ update tag
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1TagPutRequest
*/
func (a *TagApiService) AnswerApiV1TagPut(ctx context.Context) ApiAnswerApiV1TagPutRequest {
func (a *TagAPIService) AnswerApiV1TagPut(ctx context.Context) ApiAnswerApiV1TagPutRequest {
return ApiAnswerApiV1TagPutRequest{
ApiService: a,
ctx: ctx,
@@ -519,7 +519,7 @@ func (a *TagApiService) AnswerApiV1TagPut(ctx context.Context) ApiAnswerApiV1Tag
// Execute executes the request
// @return HandlerRespBody
func (a *TagApiService) AnswerApiV1TagPutExecute(r ApiAnswerApiV1TagPutRequest) (*HandlerRespBody, *http.Response, error) {
func (a *TagAPIService) AnswerApiV1TagPutExecute(r ApiAnswerApiV1TagPutRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -527,7 +527,7 @@ func (a *TagApiService) AnswerApiV1TagPutExecute(r ApiAnswerApiV1TagPutRequest)
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagPut")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagPut")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -599,7 +599,7 @@ func (a *TagApiService) AnswerApiV1TagPutExecute(r ApiAnswerApiV1TagPutRequest)
type ApiAnswerApiV1TagSynonymPutRequest struct {
ctx context.Context
ApiService *TagApiService
ApiService *TagAPIService
data *SchemaUpdateTagSynonymReq
}
@@ -621,7 +621,7 @@ update tag
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1TagSynonymPutRequest
*/
func (a *TagApiService) AnswerApiV1TagSynonymPut(ctx context.Context) ApiAnswerApiV1TagSynonymPutRequest {
func (a *TagAPIService) AnswerApiV1TagSynonymPut(ctx context.Context) ApiAnswerApiV1TagSynonymPutRequest {
return ApiAnswerApiV1TagSynonymPutRequest{
ApiService: a,
ctx: ctx,
@@ -630,7 +630,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymPut(ctx context.Context) ApiAnswerA
// Execute executes the request
// @return HandlerRespBody
func (a *TagApiService) AnswerApiV1TagSynonymPutExecute(r ApiAnswerApiV1TagSynonymPutRequest) (*HandlerRespBody, *http.Response, error) {
func (a *TagAPIService) AnswerApiV1TagSynonymPutExecute(r ApiAnswerApiV1TagSynonymPutRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -638,7 +638,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymPutExecute(r ApiAnswerApiV1TagSynon
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagSynonymPut")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagSynonymPut")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -710,7 +710,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymPutExecute(r ApiAnswerApiV1TagSynon
type ApiAnswerApiV1TagSynonymsGetRequest struct {
ctx context.Context
ApiService *TagApiService
ApiService *TagAPIService
tagId *int32
}
@@ -732,7 +732,7 @@ get tag synonyms
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1TagSynonymsGetRequest
*/
func (a *TagApiService) AnswerApiV1TagSynonymsGet(ctx context.Context) ApiAnswerApiV1TagSynonymsGetRequest {
func (a *TagAPIService) AnswerApiV1TagSynonymsGet(ctx context.Context) ApiAnswerApiV1TagSynonymsGetRequest {
return ApiAnswerApiV1TagSynonymsGetRequest{
ApiService: a,
ctx: ctx,
@@ -741,7 +741,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymsGet(ctx context.Context) ApiAnswer
// Execute executes the request
// @return AnswerApiV1TagSynonymsGet200Response
func (a *TagApiService) AnswerApiV1TagSynonymsGetExecute(r ApiAnswerApiV1TagSynonymsGetRequest) (*AnswerApiV1TagSynonymsGet200Response, *http.Response, error) {
func (a *TagAPIService) AnswerApiV1TagSynonymsGetExecute(r ApiAnswerApiV1TagSynonymsGetRequest) (*AnswerApiV1TagSynonymsGet200Response, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -749,7 +749,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymsGetExecute(r ApiAnswerApiV1TagSyno
localVarReturnValue *AnswerApiV1TagSynonymsGet200Response
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagSynonymsGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagSynonymsGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -820,7 +820,7 @@ func (a *TagApiService) AnswerApiV1TagSynonymsGetExecute(r ApiAnswerApiV1TagSyno
type ApiAnswerApiV1TagsFollowingGetRequest struct {
ctx context.Context
ApiService *TagApiService
ApiService *TagAPIService
}
func (r ApiAnswerApiV1TagsFollowingGetRequest) Execute() (*AnswerApiV1TagsFollowingGet200Response, *http.Response, error) {
@@ -835,7 +835,7 @@ get following tag list
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1TagsFollowingGetRequest
*/
func (a *TagApiService) AnswerApiV1TagsFollowingGet(ctx context.Context) ApiAnswerApiV1TagsFollowingGetRequest {
func (a *TagAPIService) AnswerApiV1TagsFollowingGet(ctx context.Context) ApiAnswerApiV1TagsFollowingGetRequest {
return ApiAnswerApiV1TagsFollowingGetRequest{
ApiService: a,
ctx: ctx,
@@ -844,7 +844,7 @@ func (a *TagApiService) AnswerApiV1TagsFollowingGet(ctx context.Context) ApiAnsw
// Execute executes the request
// @return AnswerApiV1TagsFollowingGet200Response
func (a *TagApiService) AnswerApiV1TagsFollowingGetExecute(r ApiAnswerApiV1TagsFollowingGetRequest) (*AnswerApiV1TagsFollowingGet200Response, *http.Response, error) {
func (a *TagAPIService) AnswerApiV1TagsFollowingGetExecute(r ApiAnswerApiV1TagsFollowingGetRequest) (*AnswerApiV1TagsFollowingGet200Response, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -852,7 +852,7 @@ func (a *TagApiService) AnswerApiV1TagsFollowingGetExecute(r ApiAnswerApiV1TagsF
localVarReturnValue *AnswerApiV1TagsFollowingGet200Response
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagsFollowingGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagsFollowingGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -933,7 +933,7 @@ func (a *TagApiService) AnswerApiV1TagsFollowingGetExecute(r ApiAnswerApiV1TagsF
type ApiAnswerApiV1TagsGetRequest struct {
ctx context.Context
ApiService *TagApiService
ApiService *TagAPIService
tags *[]string
}
@@ -955,7 +955,7 @@ get tags list
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1TagsGetRequest
*/
func (a *TagApiService) AnswerApiV1TagsGet(ctx context.Context) ApiAnswerApiV1TagsGetRequest {
func (a *TagAPIService) AnswerApiV1TagsGet(ctx context.Context) ApiAnswerApiV1TagsGetRequest {
return ApiAnswerApiV1TagsGetRequest{
ApiService: a,
ctx: ctx,
@@ -964,7 +964,7 @@ func (a *TagApiService) AnswerApiV1TagsGet(ctx context.Context) ApiAnswerApiV1Ta
// Execute executes the request
// @return HandlerRespBody
func (a *TagApiService) AnswerApiV1TagsGetExecute(r ApiAnswerApiV1TagsGetRequest) (*HandlerRespBody, *http.Response, error) {
func (a *TagAPIService) AnswerApiV1TagsGetExecute(r ApiAnswerApiV1TagsGetRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -972,7 +972,7 @@ func (a *TagApiService) AnswerApiV1TagsGetExecute(r ApiAnswerApiV1TagsGetRequest
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagsGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagsGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -1042,7 +1042,7 @@ func (a *TagApiService) AnswerApiV1TagsGetExecute(r ApiAnswerApiV1TagsGetRequest
type ApiAnswerApiV1TagsPageGetRequest struct {
ctx context.Context
ApiService *TagApiService
ApiService *TagAPIService
page *int32
pageSize *int32
slugName *string
@@ -1085,7 +1085,7 @@ get tag page
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1TagsPageGetRequest
*/
func (a *TagApiService) AnswerApiV1TagsPageGet(ctx context.Context) ApiAnswerApiV1TagsPageGetRequest {
func (a *TagAPIService) AnswerApiV1TagsPageGet(ctx context.Context) ApiAnswerApiV1TagsPageGetRequest {
return ApiAnswerApiV1TagsPageGetRequest{
ApiService: a,
ctx: ctx,
@@ -1094,7 +1094,7 @@ func (a *TagApiService) AnswerApiV1TagsPageGet(ctx context.Context) ApiAnswerApi
// Execute executes the request
// @return AnswerApiV1TagsPageGet200Response
func (a *TagApiService) AnswerApiV1TagsPageGetExecute(r ApiAnswerApiV1TagsPageGetRequest) (*AnswerApiV1TagsPageGet200Response, *http.Response, error) {
func (a *TagAPIService) AnswerApiV1TagsPageGetExecute(r ApiAnswerApiV1TagsPageGetRequest) (*AnswerApiV1TagsPageGet200Response, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -1102,7 +1102,7 @@ func (a *TagApiService) AnswerApiV1TagsPageGetExecute(r ApiAnswerApiV1TagsPageGe
localVarReturnValue *AnswerApiV1TagsPageGet200Response
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagApiService.AnswerApiV1TagsPageGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagAPIService.AnswerApiV1TagsPageGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}