更新文档内容
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 (
|
||||
)
|
||||
|
||||
|
||||
// InstallationApiService InstallationApi service
|
||||
type InstallationApiService service
|
||||
// InstallationAPIService InstallationAPI service
|
||||
type InstallationAPIService service
|
||||
|
||||
type ApiInstallationBaseInfoPostRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *InstallationApiService
|
||||
ApiService *InstallationAPIService
|
||||
data *InstallInitBaseInfoReq
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ init base info
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiInstallationBaseInfoPostRequest
|
||||
*/
|
||||
func (a *InstallationApiService) InstallationBaseInfoPost(ctx context.Context) ApiInstallationBaseInfoPostRequest {
|
||||
func (a *InstallationAPIService) InstallationBaseInfoPost(ctx context.Context) ApiInstallationBaseInfoPostRequest {
|
||||
return ApiInstallationBaseInfoPostRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -53,7 +53,7 @@ func (a *InstallationApiService) InstallationBaseInfoPost(ctx context.Context) A
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *InstallationApiService) InstallationBaseInfoPostExecute(r ApiInstallationBaseInfoPostRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *InstallationAPIService) InstallationBaseInfoPostExecute(r ApiInstallationBaseInfoPostRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
@@ -61,7 +61,7 @@ func (a *InstallationApiService) InstallationBaseInfoPostExecute(r ApiInstallati
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationBaseInfoPost")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationAPIService.InstallationBaseInfoPost")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -133,7 +133,7 @@ func (a *InstallationApiService) InstallationBaseInfoPostExecute(r ApiInstallati
|
||||
|
||||
type ApiInstallationConfigFileCheckPostRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *InstallationApiService
|
||||
ApiService *InstallationAPIService
|
||||
}
|
||||
|
||||
func (r ApiInstallationConfigFileCheckPostRequest) Execute() (*InstallationConfigFileCheckPost200Response, *http.Response, error) {
|
||||
@@ -148,7 +148,7 @@ check config file if exist when installation
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiInstallationConfigFileCheckPostRequest
|
||||
*/
|
||||
func (a *InstallationApiService) InstallationConfigFileCheckPost(ctx context.Context) ApiInstallationConfigFileCheckPostRequest {
|
||||
func (a *InstallationAPIService) InstallationConfigFileCheckPost(ctx context.Context) ApiInstallationConfigFileCheckPostRequest {
|
||||
return ApiInstallationConfigFileCheckPostRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -157,7 +157,7 @@ func (a *InstallationApiService) InstallationConfigFileCheckPost(ctx context.Con
|
||||
|
||||
// Execute executes the request
|
||||
// @return InstallationConfigFileCheckPost200Response
|
||||
func (a *InstallationApiService) InstallationConfigFileCheckPostExecute(r ApiInstallationConfigFileCheckPostRequest) (*InstallationConfigFileCheckPost200Response, *http.Response, error) {
|
||||
func (a *InstallationAPIService) InstallationConfigFileCheckPostExecute(r ApiInstallationConfigFileCheckPostRequest) (*InstallationConfigFileCheckPost200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
@@ -165,7 +165,7 @@ func (a *InstallationApiService) InstallationConfigFileCheckPostExecute(r ApiIns
|
||||
localVarReturnValue *InstallationConfigFileCheckPost200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationConfigFileCheckPost")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationAPIService.InstallationConfigFileCheckPost")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -232,7 +232,7 @@ func (a *InstallationApiService) InstallationConfigFileCheckPostExecute(r ApiIns
|
||||
|
||||
type ApiInstallationDbCheckPostRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *InstallationApiService
|
||||
ApiService *InstallationAPIService
|
||||
data *InstallCheckDatabaseReq
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ check database if exist when installation
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiInstallationDbCheckPostRequest
|
||||
*/
|
||||
func (a *InstallationApiService) InstallationDbCheckPost(ctx context.Context) ApiInstallationDbCheckPostRequest {
|
||||
func (a *InstallationAPIService) InstallationDbCheckPost(ctx context.Context) ApiInstallationDbCheckPostRequest {
|
||||
return ApiInstallationDbCheckPostRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -263,7 +263,7 @@ func (a *InstallationApiService) InstallationDbCheckPost(ctx context.Context) Ap
|
||||
|
||||
// Execute executes the request
|
||||
// @return InstallationConfigFileCheckPost200Response
|
||||
func (a *InstallationApiService) InstallationDbCheckPostExecute(r ApiInstallationDbCheckPostRequest) (*InstallationConfigFileCheckPost200Response, *http.Response, error) {
|
||||
func (a *InstallationAPIService) InstallationDbCheckPostExecute(r ApiInstallationDbCheckPostRequest) (*InstallationConfigFileCheckPost200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
@@ -271,7 +271,7 @@ func (a *InstallationApiService) InstallationDbCheckPostExecute(r ApiInstallatio
|
||||
localVarReturnValue *InstallationConfigFileCheckPost200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationDbCheckPost")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationAPIService.InstallationDbCheckPost")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -343,7 +343,7 @@ func (a *InstallationApiService) InstallationDbCheckPostExecute(r ApiInstallatio
|
||||
|
||||
type ApiInstallationInitPostRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *InstallationApiService
|
||||
ApiService *InstallationAPIService
|
||||
data *InstallCheckDatabaseReq
|
||||
}
|
||||
|
||||
@@ -365,7 +365,7 @@ init environment
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiInstallationInitPostRequest
|
||||
*/
|
||||
func (a *InstallationApiService) InstallationInitPost(ctx context.Context) ApiInstallationInitPostRequest {
|
||||
func (a *InstallationAPIService) InstallationInitPost(ctx context.Context) ApiInstallationInitPostRequest {
|
||||
return ApiInstallationInitPostRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -374,7 +374,7 @@ func (a *InstallationApiService) InstallationInitPost(ctx context.Context) ApiIn
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *InstallationApiService) InstallationInitPostExecute(r ApiInstallationInitPostRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *InstallationAPIService) InstallationInitPostExecute(r ApiInstallationInitPostRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
@@ -382,7 +382,7 @@ func (a *InstallationApiService) InstallationInitPostExecute(r ApiInstallationIn
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.InstallationInitPost")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationAPIService.InstallationInitPost")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -454,7 +454,7 @@ func (a *InstallationApiService) InstallationInitPostExecute(r ApiInstallationIn
|
||||
|
||||
type ApiRootGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *InstallationApiService
|
||||
ApiService *InstallationAPIService
|
||||
}
|
||||
|
||||
func (r ApiRootGetRequest) Execute() (*http.Response, error) {
|
||||
@@ -469,7 +469,7 @@ if config file not exist try to redirect to install page
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiRootGetRequest
|
||||
*/
|
||||
func (a *InstallationApiService) RootGet(ctx context.Context) ApiRootGetRequest {
|
||||
func (a *InstallationAPIService) RootGet(ctx context.Context) ApiRootGetRequest {
|
||||
return ApiRootGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -477,14 +477,14 @@ func (a *InstallationApiService) RootGet(ctx context.Context) ApiRootGetRequest
|
||||
}
|
||||
|
||||
// Execute executes the request
|
||||
func (a *InstallationApiService) RootGetExecute(r ApiRootGetRequest) (*http.Response, error) {
|
||||
func (a *InstallationAPIService) RootGetExecute(r ApiRootGetRequest) (*http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
formFiles []formFile
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationApiService.RootGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstallationAPIService.RootGet")
|
||||
if err != nil {
|
||||
return nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user