更新文档内容
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 (
|
||||
)
|
||||
|
||||
|
||||
// ReportApiService ReportApi service
|
||||
type ReportApiService service
|
||||
// ReportAPIService ReportAPI service
|
||||
type ReportAPIService service
|
||||
|
||||
type ApiAnswerApiV1ReportPostRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *ReportApiService
|
||||
ApiService *ReportAPIService
|
||||
data *SchemaAddReportReq
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ add report <br> source (question, answer, comment, user)
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1ReportPostRequest
|
||||
*/
|
||||
func (a *ReportApiService) AnswerApiV1ReportPost(ctx context.Context) ApiAnswerApiV1ReportPostRequest {
|
||||
func (a *ReportAPIService) AnswerApiV1ReportPost(ctx context.Context) ApiAnswerApiV1ReportPostRequest {
|
||||
return ApiAnswerApiV1ReportPostRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -53,7 +53,7 @@ func (a *ReportApiService) AnswerApiV1ReportPost(ctx context.Context) ApiAnswerA
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *ReportApiService) AnswerApiV1ReportPostExecute(r ApiAnswerApiV1ReportPostRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *ReportAPIService) AnswerApiV1ReportPostExecute(r ApiAnswerApiV1ReportPostRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
@@ -61,7 +61,7 @@ func (a *ReportApiService) AnswerApiV1ReportPostExecute(r ApiAnswerApiV1ReportPo
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReportApiService.AnswerApiV1ReportPost")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReportAPIService.AnswerApiV1ReportPost")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user