更新文档内容
This commit is contained in:
38
api_lang.go
38
api_lang.go
@@ -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 (
|
||||
)
|
||||
|
||||
|
||||
// LangApiService LangApi service
|
||||
type LangApiService service
|
||||
// LangAPIService LangAPI service
|
||||
type LangAPIService service
|
||||
|
||||
type ApiAnswerAdminApiLanguageOptionsGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *LangApiService
|
||||
ApiService *LangAPIService
|
||||
}
|
||||
|
||||
func (r ApiAnswerAdminApiLanguageOptionsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) {
|
||||
@@ -37,7 +37,7 @@ Get language options
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerAdminApiLanguageOptionsGetRequest
|
||||
*/
|
||||
func (a *LangApiService) AnswerAdminApiLanguageOptionsGet(ctx context.Context) ApiAnswerAdminApiLanguageOptionsGetRequest {
|
||||
func (a *LangAPIService) AnswerAdminApiLanguageOptionsGet(ctx context.Context) ApiAnswerAdminApiLanguageOptionsGetRequest {
|
||||
return ApiAnswerAdminApiLanguageOptionsGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -46,7 +46,7 @@ func (a *LangApiService) AnswerAdminApiLanguageOptionsGet(ctx context.Context) A
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *LangApiService) AnswerAdminApiLanguageOptionsGetExecute(r ApiAnswerAdminApiLanguageOptionsGetRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *LangAPIService) AnswerAdminApiLanguageOptionsGetExecute(r ApiAnswerAdminApiLanguageOptionsGetRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -54,7 +54,7 @@ func (a *LangApiService) AnswerAdminApiLanguageOptionsGetExecute(r ApiAnswerAdmi
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.AnswerAdminApiLanguageOptionsGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangAPIService.AnswerAdminApiLanguageOptionsGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -121,7 +121,7 @@ func (a *LangApiService) AnswerAdminApiLanguageOptionsGetExecute(r ApiAnswerAdmi
|
||||
|
||||
type ApiAnswerApiV1LanguageConfigGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *LangApiService
|
||||
ApiService *LangAPIService
|
||||
acceptLanguage *string
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ get language config mapping
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1LanguageConfigGetRequest
|
||||
*/
|
||||
func (a *LangApiService) AnswerApiV1LanguageConfigGet(ctx context.Context) ApiAnswerApiV1LanguageConfigGetRequest {
|
||||
func (a *LangAPIService) AnswerApiV1LanguageConfigGet(ctx context.Context) ApiAnswerApiV1LanguageConfigGetRequest {
|
||||
return ApiAnswerApiV1LanguageConfigGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -152,7 +152,7 @@ func (a *LangApiService) AnswerApiV1LanguageConfigGet(ctx context.Context) ApiAn
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *LangApiService) AnswerApiV1LanguageConfigGetExecute(r ApiAnswerApiV1LanguageConfigGetRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *LangAPIService) AnswerApiV1LanguageConfigGetExecute(r ApiAnswerApiV1LanguageConfigGetRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -160,7 +160,7 @@ func (a *LangApiService) AnswerApiV1LanguageConfigGetExecute(r ApiAnswerApiV1Lan
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.AnswerApiV1LanguageConfigGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangAPIService.AnswerApiV1LanguageConfigGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -231,7 +231,7 @@ func (a *LangApiService) AnswerApiV1LanguageConfigGetExecute(r ApiAnswerApiV1Lan
|
||||
|
||||
type ApiAnswerApiV1LanguageOptionsGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *LangApiService
|
||||
ApiService *LangAPIService
|
||||
}
|
||||
|
||||
func (r ApiAnswerApiV1LanguageOptionsGetRequest) Execute() (*HandlerRespBody, *http.Response, error) {
|
||||
@@ -246,7 +246,7 @@ Get language options
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1LanguageOptionsGetRequest
|
||||
*/
|
||||
func (a *LangApiService) AnswerApiV1LanguageOptionsGet(ctx context.Context) ApiAnswerApiV1LanguageOptionsGetRequest {
|
||||
func (a *LangAPIService) AnswerApiV1LanguageOptionsGet(ctx context.Context) ApiAnswerApiV1LanguageOptionsGetRequest {
|
||||
return ApiAnswerApiV1LanguageOptionsGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -255,7 +255,7 @@ func (a *LangApiService) AnswerApiV1LanguageOptionsGet(ctx context.Context) ApiA
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *LangApiService) AnswerApiV1LanguageOptionsGetExecute(r ApiAnswerApiV1LanguageOptionsGetRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *LangAPIService) AnswerApiV1LanguageOptionsGetExecute(r ApiAnswerApiV1LanguageOptionsGetRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -263,7 +263,7 @@ func (a *LangApiService) AnswerApiV1LanguageOptionsGetExecute(r ApiAnswerApiV1La
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.AnswerApiV1LanguageOptionsGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangAPIService.AnswerApiV1LanguageOptionsGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -330,7 +330,7 @@ func (a *LangApiService) AnswerApiV1LanguageOptionsGetExecute(r ApiAnswerApiV1La
|
||||
|
||||
type ApiInstallationLanguageOptionsGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *LangApiService
|
||||
ApiService *LangAPIService
|
||||
}
|
||||
|
||||
func (r ApiInstallationLanguageOptionsGetRequest) Execute() (*InstallationLanguageOptionsGet200Response, *http.Response, error) {
|
||||
@@ -345,7 +345,7 @@ get installation language options
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiInstallationLanguageOptionsGetRequest
|
||||
*/
|
||||
func (a *LangApiService) InstallationLanguageOptionsGet(ctx context.Context) ApiInstallationLanguageOptionsGetRequest {
|
||||
func (a *LangAPIService) InstallationLanguageOptionsGet(ctx context.Context) ApiInstallationLanguageOptionsGetRequest {
|
||||
return ApiInstallationLanguageOptionsGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -354,7 +354,7 @@ func (a *LangApiService) InstallationLanguageOptionsGet(ctx context.Context) Api
|
||||
|
||||
// Execute executes the request
|
||||
// @return InstallationLanguageOptionsGet200Response
|
||||
func (a *LangApiService) InstallationLanguageOptionsGetExecute(r ApiInstallationLanguageOptionsGetRequest) (*InstallationLanguageOptionsGet200Response, *http.Response, error) {
|
||||
func (a *LangAPIService) InstallationLanguageOptionsGetExecute(r ApiInstallationLanguageOptionsGetRequest) (*InstallationLanguageOptionsGet200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -362,7 +362,7 @@ func (a *LangApiService) InstallationLanguageOptionsGetExecute(r ApiInstallation
|
||||
localVarReturnValue *InstallationLanguageOptionsGet200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangApiService.InstallationLanguageOptionsGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LangAPIService.InstallationLanguageOptionsGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user