更新文档内容

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,17 +17,17 @@ import (
)
// ApiAnswerApiService ApiAnswerApi service
type ApiAnswerApiService service
// ApiAnswerAPIService ApiAnswerAPI service
type ApiAnswerAPIService service
type ApiAnswerApiV1AnswerAcceptancePostRequest struct {
ctx context.Context
ApiService *ApiAnswerApiService
data *SchemaAnswerAcceptedReq
ApiService *ApiAnswerAPIService
data *SchemaAcceptAnswerReq
}
// AnswerAcceptedReq
func (r ApiAnswerApiV1AnswerAcceptancePostRequest) Data(data SchemaAnswerAcceptedReq) ApiAnswerApiV1AnswerAcceptancePostRequest {
// AcceptAnswerReq
func (r ApiAnswerApiV1AnswerAcceptancePostRequest) Data(data SchemaAcceptAnswerReq) ApiAnswerApiV1AnswerAcceptancePostRequest {
r.data = &data
return r
}
@@ -44,7 +44,7 @@ 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 {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerAcceptancePost(ctx context.Context) ApiAnswerApiV1AnswerAcceptancePostRequest {
return ApiAnswerApiV1AnswerAcceptancePostRequest{
ApiService: a,
ctx: ctx,
@@ -53,7 +53,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePost(ctx context.Contex
// Execute executes the request
// @return string
func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePostExecute(r ApiAnswerApiV1AnswerAcceptancePostRequest) (string, *http.Response, error) {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerAcceptancePostExecute(r ApiAnswerApiV1AnswerAcceptancePostRequest) (string, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -61,7 +61,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePostExecute(r ApiAnswer
localVarReturnValue string
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerAcceptancePost")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerAcceptancePost")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -147,7 +147,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerAcceptancePostExecute(r ApiAnswer
type ApiAnswerApiV1AnswerDeleteRequest struct {
ctx context.Context
ApiService *ApiAnswerApiService
ApiService *ApiAnswerAPIService
data *SchemaRemoveAnswerReq
}
@@ -169,7 +169,7 @@ 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 {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerDelete(ctx context.Context) ApiAnswerApiV1AnswerDeleteRequest {
return ApiAnswerApiV1AnswerDeleteRequest{
ApiService: a,
ctx: ctx,
@@ -178,7 +178,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerDelete(ctx context.Context) ApiAn
// Execute executes the request
// @return HandlerRespBody
func (a *ApiAnswerApiService) AnswerApiV1AnswerDeleteExecute(r ApiAnswerApiV1AnswerDeleteRequest) (*HandlerRespBody, *http.Response, error) {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerDeleteExecute(r ApiAnswerApiV1AnswerDeleteRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
@@ -186,7 +186,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerDeleteExecute(r ApiAnswerApiV1Ans
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerDelete")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerDelete")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -272,7 +272,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerDeleteExecute(r ApiAnswerApiV1Ans
type ApiAnswerApiV1AnswerInfoGetRequest struct {
ctx context.Context
ApiService *ApiAnswerApiService
ApiService *ApiAnswerAPIService
id *string
}
@@ -294,7 +294,7 @@ 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 {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerInfoGet(ctx context.Context) ApiAnswerApiV1AnswerInfoGetRequest {
return ApiAnswerApiV1AnswerInfoGetRequest{
ApiService: a,
ctx: ctx,
@@ -303,7 +303,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGet(ctx context.Context) ApiA
// Execute executes the request
// @return string
func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGetExecute(r ApiAnswerApiV1AnswerInfoGetRequest) (string, *http.Response, error) {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerInfoGetExecute(r ApiAnswerApiV1AnswerInfoGetRequest) (string, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -311,7 +311,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGetExecute(r ApiAnswerApiV1An
localVarReturnValue string
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerInfoGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerInfoGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -382,7 +382,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerInfoGetExecute(r ApiAnswerApiV1An
type ApiAnswerApiV1AnswerPageGetRequest struct {
ctx context.Context
ApiService *ApiAnswerApiService
ApiService *ApiAnswerAPIService
questionId *string
order *string
page *string
@@ -425,7 +425,7 @@ 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 {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerPageGet(ctx context.Context) ApiAnswerApiV1AnswerPageGetRequest {
return ApiAnswerApiV1AnswerPageGetRequest{
ApiService: a,
ctx: ctx,
@@ -434,7 +434,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGet(ctx context.Context) ApiA
// Execute executes the request
// @return string
func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGetExecute(r ApiAnswerApiV1AnswerPageGetRequest) (string, *http.Response, error) {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerPageGetExecute(r ApiAnswerApiV1AnswerPageGetRequest) (string, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -442,7 +442,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGetExecute(r ApiAnswerApiV1An
localVarReturnValue string
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerPageGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerPageGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -539,7 +539,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPageGetExecute(r ApiAnswerApiV1An
type ApiAnswerApiV1AnswerPostRequest struct {
ctx context.Context
ApiService *ApiAnswerApiService
ApiService *ApiAnswerAPIService
data *SchemaAnswerAddReq
}
@@ -561,7 +561,7 @@ 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 {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerPost(ctx context.Context) ApiAnswerApiV1AnswerPostRequest {
return ApiAnswerApiV1AnswerPostRequest{
ApiService: a,
ctx: ctx,
@@ -570,7 +570,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPost(ctx context.Context) ApiAnsw
// Execute executes the request
// @return string
func (a *ApiAnswerApiService) AnswerApiV1AnswerPostExecute(r ApiAnswerApiV1AnswerPostRequest) (string, *http.Response, error) {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerPostExecute(r ApiAnswerApiV1AnswerPostRequest) (string, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -578,7 +578,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPostExecute(r ApiAnswerApiV1Answe
localVarReturnValue string
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerPost")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerPost")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -664,7 +664,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPostExecute(r ApiAnswerApiV1Answe
type ApiAnswerApiV1AnswerPutRequest struct {
ctx context.Context
ApiService *ApiAnswerApiService
ApiService *ApiAnswerAPIService
data *SchemaAnswerUpdateReq
}
@@ -686,7 +686,7 @@ 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 {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerPut(ctx context.Context) ApiAnswerApiV1AnswerPutRequest {
return ApiAnswerApiV1AnswerPutRequest{
ApiService: a,
ctx: ctx,
@@ -695,7 +695,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPut(ctx context.Context) ApiAnswe
// Execute executes the request
// @return string
func (a *ApiAnswerApiService) AnswerApiV1AnswerPutExecute(r ApiAnswerApiV1AnswerPutRequest) (string, *http.Response, error) {
func (a *ApiAnswerAPIService) AnswerApiV1AnswerPutExecute(r ApiAnswerApiV1AnswerPutRequest) (string, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -703,7 +703,7 @@ func (a *ApiAnswerApiService) AnswerApiV1AnswerPutExecute(r ApiAnswerApiV1Answer
localVarReturnValue string
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerApiService.AnswerApiV1AnswerPut")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApiAnswerAPIService.AnswerApiV1AnswerPut")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}