更新文档内容
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 (
|
||||
)
|
||||
|
||||
|
||||
// ReasonApiService ReasonApi service
|
||||
type ReasonApiService service
|
||||
// ReasonAPIService ReasonAPI service
|
||||
type ReasonAPIService service
|
||||
|
||||
type ApiAnswerAdminApiReasonsGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *ReasonApiService
|
||||
ApiService *ReasonAPIService
|
||||
objectType *string
|
||||
action *string
|
||||
}
|
||||
@@ -51,7 +51,7 @@ 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 {
|
||||
func (a *ReasonAPIService) AnswerAdminApiReasonsGet(ctx context.Context) ApiAnswerAdminApiReasonsGetRequest {
|
||||
return ApiAnswerAdminApiReasonsGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -60,7 +60,7 @@ func (a *ReasonApiService) AnswerAdminApiReasonsGet(ctx context.Context) ApiAnsw
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *ReasonApiService) AnswerAdminApiReasonsGetExecute(r ApiAnswerAdminApiReasonsGetRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *ReasonAPIService) AnswerAdminApiReasonsGetExecute(r ApiAnswerAdminApiReasonsGetRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -68,7 +68,7 @@ func (a *ReasonApiService) AnswerAdminApiReasonsGetExecute(r ApiAnswerAdminApiRe
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReasonApiService.AnswerAdminApiReasonsGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReasonAPIService.AnswerAdminApiReasonsGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -157,7 +157,7 @@ func (a *ReasonApiService) AnswerAdminApiReasonsGetExecute(r ApiAnswerAdminApiRe
|
||||
|
||||
type ApiAnswerApiV1ReasonsGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *ReasonApiService
|
||||
ApiService *ReasonAPIService
|
||||
objectType *string
|
||||
action *string
|
||||
}
|
||||
@@ -186,7 +186,7 @@ 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 {
|
||||
func (a *ReasonAPIService) AnswerApiV1ReasonsGet(ctx context.Context) ApiAnswerApiV1ReasonsGetRequest {
|
||||
return ApiAnswerApiV1ReasonsGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -195,7 +195,7 @@ func (a *ReasonApiService) AnswerApiV1ReasonsGet(ctx context.Context) ApiAnswerA
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *ReasonApiService) AnswerApiV1ReasonsGetExecute(r ApiAnswerApiV1ReasonsGetRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *ReasonAPIService) AnswerApiV1ReasonsGetExecute(r ApiAnswerApiV1ReasonsGetRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -203,7 +203,7 @@ func (a *ReasonApiService) AnswerApiV1ReasonsGetExecute(r ApiAnswerApiV1ReasonsG
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReasonApiService.AnswerApiV1ReasonsGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReasonAPIService.AnswerApiV1ReasonsGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user