更新文档内容

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"
@@ -18,12 +18,12 @@ import (
)
// UploadApiService UploadApi service
type UploadApiService service
// UploadAPIService UploadAPI service
type UploadAPIService service
type ApiAnswerApiV1FilePostRequest struct {
ctx context.Context
ApiService *UploadApiService
ApiService *UploadAPIService
source *string
file *os.File
}
@@ -52,7 +52,7 @@ upload file
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1FilePostRequest
*/
func (a *UploadApiService) AnswerApiV1FilePost(ctx context.Context) ApiAnswerApiV1FilePostRequest {
func (a *UploadAPIService) AnswerApiV1FilePost(ctx context.Context) ApiAnswerApiV1FilePostRequest {
return ApiAnswerApiV1FilePostRequest{
ApiService: a,
ctx: ctx,
@@ -61,7 +61,7 @@ func (a *UploadApiService) AnswerApiV1FilePost(ctx context.Context) ApiAnswerApi
// Execute executes the request
// @return AnswerApiV1FilePost200Response
func (a *UploadApiService) AnswerApiV1FilePostExecute(r ApiAnswerApiV1FilePostRequest) (*AnswerApiV1FilePost200Response, *http.Response, error) {
func (a *UploadAPIService) AnswerApiV1FilePostExecute(r ApiAnswerApiV1FilePostRequest) (*AnswerApiV1FilePost200Response, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -69,7 +69,7 @@ func (a *UploadApiService) AnswerApiV1FilePostExecute(r ApiAnswerApiV1FilePostRe
localVarReturnValue *AnswerApiV1FilePost200Response
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadApiService.AnswerApiV1FilePost")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadAPIService.AnswerApiV1FilePost")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -174,7 +174,7 @@ func (a *UploadApiService) AnswerApiV1FilePostExecute(r ApiAnswerApiV1FilePostRe
type ApiAnswerApiV1PostRenderPostRequest struct {
ctx context.Context
ApiService *UploadApiService
ApiService *UploadAPIService
data *SchemaPostRenderReq
}
@@ -196,7 +196,7 @@ render post content
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1PostRenderPostRequest
*/
func (a *UploadApiService) AnswerApiV1PostRenderPost(ctx context.Context) ApiAnswerApiV1PostRenderPostRequest {
func (a *UploadAPIService) AnswerApiV1PostRenderPost(ctx context.Context) ApiAnswerApiV1PostRenderPostRequest {
return ApiAnswerApiV1PostRenderPostRequest{
ApiService: a,
ctx: ctx,
@@ -205,7 +205,7 @@ func (a *UploadApiService) AnswerApiV1PostRenderPost(ctx context.Context) ApiAns
// Execute executes the request
// @return HandlerRespBody
func (a *UploadApiService) AnswerApiV1PostRenderPostExecute(r ApiAnswerApiV1PostRenderPostRequest) (*HandlerRespBody, *http.Response, error) {
func (a *UploadAPIService) AnswerApiV1PostRenderPostExecute(r ApiAnswerApiV1PostRenderPostRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -213,7 +213,7 @@ func (a *UploadApiService) AnswerApiV1PostRenderPostExecute(r ApiAnswerApiV1Post
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadApiService.AnswerApiV1PostRenderPost")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadAPIService.AnswerApiV1PostRenderPost")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}