更新文档内容
This commit is contained in:
@@ -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 (
|
||||
)
|
||||
|
||||
|
||||
// AdminPluginApiService AdminPluginApi service
|
||||
type AdminPluginApiService service
|
||||
// AdminPluginAPIService AdminPluginAPI service
|
||||
type AdminPluginAPIService service
|
||||
|
||||
type ApiAnswerAdminApiPluginConfigGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *AdminPluginApiService
|
||||
ApiService *AdminPluginAPIService
|
||||
pluginSlugName *string
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ get plugin config
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerAdminApiPluginConfigGetRequest
|
||||
*/
|
||||
func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGet(ctx context.Context) ApiAnswerAdminApiPluginConfigGetRequest {
|
||||
func (a *AdminPluginAPIService) AnswerAdminApiPluginConfigGet(ctx context.Context) ApiAnswerAdminApiPluginConfigGetRequest {
|
||||
return ApiAnswerAdminApiPluginConfigGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -53,7 +53,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGet(ctx context.Contex
|
||||
|
||||
// Execute executes the request
|
||||
// @return AnswerAdminApiPluginConfigGet200Response
|
||||
func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGetExecute(r ApiAnswerAdminApiPluginConfigGetRequest) (*AnswerAdminApiPluginConfigGet200Response, *http.Response, error) {
|
||||
func (a *AdminPluginAPIService) AnswerAdminApiPluginConfigGetExecute(r ApiAnswerAdminApiPluginConfigGetRequest) (*AnswerAdminApiPluginConfigGet200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -61,7 +61,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGetExecute(r ApiAnswer
|
||||
localVarReturnValue *AnswerAdminApiPluginConfigGet200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginConfigGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginAPIService.AnswerAdminApiPluginConfigGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -146,7 +146,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigGetExecute(r ApiAnswer
|
||||
|
||||
type ApiAnswerAdminApiPluginConfigPutRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *AdminPluginApiService
|
||||
ApiService *AdminPluginAPIService
|
||||
data *SchemaUpdatePluginConfigReq
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ update plugin config
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerAdminApiPluginConfigPutRequest
|
||||
*/
|
||||
func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPut(ctx context.Context) ApiAnswerAdminApiPluginConfigPutRequest {
|
||||
func (a *AdminPluginAPIService) AnswerAdminApiPluginConfigPut(ctx context.Context) ApiAnswerAdminApiPluginConfigPutRequest {
|
||||
return ApiAnswerAdminApiPluginConfigPutRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -177,7 +177,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPut(ctx context.Contex
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPutExecute(r ApiAnswerAdminApiPluginConfigPutRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *AdminPluginAPIService) AnswerAdminApiPluginConfigPutExecute(r ApiAnswerAdminApiPluginConfigPutRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPut
|
||||
localVarPostBody interface{}
|
||||
@@ -185,7 +185,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPutExecute(r ApiAnswer
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginConfigPut")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginAPIService.AnswerAdminApiPluginConfigPut")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -271,7 +271,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginConfigPutExecute(r ApiAnswer
|
||||
|
||||
type ApiAnswerAdminApiPluginStatusPutRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *AdminPluginApiService
|
||||
ApiService *AdminPluginAPIService
|
||||
data *SchemaUpdatePluginStatusReq
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ update plugin status
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerAdminApiPluginStatusPutRequest
|
||||
*/
|
||||
func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPut(ctx context.Context) ApiAnswerAdminApiPluginStatusPutRequest {
|
||||
func (a *AdminPluginAPIService) AnswerAdminApiPluginStatusPut(ctx context.Context) ApiAnswerAdminApiPluginStatusPutRequest {
|
||||
return ApiAnswerAdminApiPluginStatusPutRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -302,7 +302,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPut(ctx context.Contex
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPutExecute(r ApiAnswerAdminApiPluginStatusPutRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *AdminPluginAPIService) AnswerAdminApiPluginStatusPutExecute(r ApiAnswerAdminApiPluginStatusPutRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPut
|
||||
localVarPostBody interface{}
|
||||
@@ -310,7 +310,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPutExecute(r ApiAnswer
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginStatusPut")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginAPIService.AnswerAdminApiPluginStatusPut")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -396,7 +396,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginStatusPutExecute(r ApiAnswer
|
||||
|
||||
type ApiAnswerAdminApiPluginsGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *AdminPluginApiService
|
||||
ApiService *AdminPluginAPIService
|
||||
status *string
|
||||
haveConfig *bool
|
||||
}
|
||||
@@ -425,7 +425,7 @@ get plugin list
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerAdminApiPluginsGetRequest
|
||||
*/
|
||||
func (a *AdminPluginApiService) AnswerAdminApiPluginsGet(ctx context.Context) ApiAnswerAdminApiPluginsGetRequest {
|
||||
func (a *AdminPluginAPIService) AnswerAdminApiPluginsGet(ctx context.Context) ApiAnswerAdminApiPluginsGetRequest {
|
||||
return ApiAnswerAdminApiPluginsGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -434,7 +434,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginsGet(ctx context.Context) Ap
|
||||
|
||||
// Execute executes the request
|
||||
// @return AnswerAdminApiPluginsGet200Response
|
||||
func (a *AdminPluginApiService) AnswerAdminApiPluginsGetExecute(r ApiAnswerAdminApiPluginsGetRequest) (*AnswerAdminApiPluginsGet200Response, *http.Response, error) {
|
||||
func (a *AdminPluginAPIService) AnswerAdminApiPluginsGetExecute(r ApiAnswerAdminApiPluginsGetRequest) (*AnswerAdminApiPluginsGet200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -442,7 +442,7 @@ func (a *AdminPluginApiService) AnswerAdminApiPluginsGetExecute(r ApiAnswerAdmin
|
||||
localVarReturnValue *AnswerAdminApiPluginsGet200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginApiService.AnswerAdminApiPluginsGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AdminPluginAPIService.AnswerAdminApiPluginsGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user