更新文档内容
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 (
|
||||
)
|
||||
|
||||
|
||||
// CommentApiService CommentApi service
|
||||
type CommentApiService service
|
||||
// CommentAPIService CommentAPI service
|
||||
type CommentAPIService service
|
||||
|
||||
type ApiAnswerApiV1ActivityTimelineDetailGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *CommentApiService
|
||||
ApiService *CommentAPIService
|
||||
revisionId *string
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ get object timeline detail
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1ActivityTimelineDetailGetRequest
|
||||
*/
|
||||
func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGet(ctx context.Context) ApiAnswerApiV1ActivityTimelineDetailGetRequest {
|
||||
func (a *CommentAPIService) AnswerApiV1ActivityTimelineDetailGet(ctx context.Context) ApiAnswerApiV1ActivityTimelineDetailGetRequest {
|
||||
return ApiAnswerApiV1ActivityTimelineDetailGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -53,7 +53,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGet(ctx context.Con
|
||||
|
||||
// Execute executes the request
|
||||
// @return AnswerApiV1ActivityTimelineGet200Response
|
||||
func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGetExecute(r ApiAnswerApiV1ActivityTimelineDetailGetRequest) (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) {
|
||||
func (a *CommentAPIService) AnswerApiV1ActivityTimelineDetailGetExecute(r ApiAnswerApiV1ActivityTimelineDetailGetRequest) (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -61,7 +61,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGetExecute(r ApiAns
|
||||
localVarReturnValue *AnswerApiV1ActivityTimelineGet200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1ActivityTimelineDetailGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1ActivityTimelineDetailGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -132,7 +132,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineDetailGetExecute(r ApiAns
|
||||
|
||||
type ApiAnswerApiV1ActivityTimelineGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *CommentApiService
|
||||
ApiService *CommentAPIService
|
||||
objectId *string
|
||||
tagSlugName *string
|
||||
objectType *string
|
||||
@@ -175,7 +175,7 @@ get object timeline
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1ActivityTimelineGetRequest
|
||||
*/
|
||||
func (a *CommentApiService) AnswerApiV1ActivityTimelineGet(ctx context.Context) ApiAnswerApiV1ActivityTimelineGetRequest {
|
||||
func (a *CommentAPIService) AnswerApiV1ActivityTimelineGet(ctx context.Context) ApiAnswerApiV1ActivityTimelineGetRequest {
|
||||
return ApiAnswerApiV1ActivityTimelineGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -184,7 +184,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineGet(ctx context.Context)
|
||||
|
||||
// Execute executes the request
|
||||
// @return AnswerApiV1ActivityTimelineGet200Response
|
||||
func (a *CommentApiService) AnswerApiV1ActivityTimelineGetExecute(r ApiAnswerApiV1ActivityTimelineGetRequest) (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) {
|
||||
func (a *CommentAPIService) AnswerApiV1ActivityTimelineGetExecute(r ApiAnswerApiV1ActivityTimelineGetRequest) (*AnswerApiV1ActivityTimelineGet200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -192,7 +192,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineGetExecute(r ApiAnswerApi
|
||||
localVarReturnValue *AnswerApiV1ActivityTimelineGet200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1ActivityTimelineGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1ActivityTimelineGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -271,7 +271,7 @@ func (a *CommentApiService) AnswerApiV1ActivityTimelineGetExecute(r ApiAnswerApi
|
||||
|
||||
type ApiAnswerApiV1CommentDeleteRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *CommentApiService
|
||||
ApiService *CommentAPIService
|
||||
data *SchemaRemoveCommentReq
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ remove comment
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1CommentDeleteRequest
|
||||
*/
|
||||
func (a *CommentApiService) AnswerApiV1CommentDelete(ctx context.Context) ApiAnswerApiV1CommentDeleteRequest {
|
||||
func (a *CommentAPIService) AnswerApiV1CommentDelete(ctx context.Context) ApiAnswerApiV1CommentDeleteRequest {
|
||||
return ApiAnswerApiV1CommentDeleteRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -302,7 +302,7 @@ func (a *CommentApiService) AnswerApiV1CommentDelete(ctx context.Context) ApiAns
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *CommentApiService) AnswerApiV1CommentDeleteExecute(r ApiAnswerApiV1CommentDeleteRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *CommentAPIService) AnswerApiV1CommentDeleteExecute(r ApiAnswerApiV1CommentDeleteRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodDelete
|
||||
localVarPostBody interface{}
|
||||
@@ -310,7 +310,7 @@ func (a *CommentApiService) AnswerApiV1CommentDeleteExecute(r ApiAnswerApiV1Comm
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentDelete")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1CommentDelete")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -396,7 +396,7 @@ func (a *CommentApiService) AnswerApiV1CommentDeleteExecute(r ApiAnswerApiV1Comm
|
||||
|
||||
type ApiAnswerApiV1CommentGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *CommentApiService
|
||||
ApiService *CommentAPIService
|
||||
id *string
|
||||
}
|
||||
|
||||
@@ -418,7 +418,7 @@ get comment by id
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1CommentGetRequest
|
||||
*/
|
||||
func (a *CommentApiService) AnswerApiV1CommentGet(ctx context.Context) ApiAnswerApiV1CommentGetRequest {
|
||||
func (a *CommentAPIService) AnswerApiV1CommentGet(ctx context.Context) ApiAnswerApiV1CommentGetRequest {
|
||||
return ApiAnswerApiV1CommentGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -427,7 +427,7 @@ func (a *CommentApiService) AnswerApiV1CommentGet(ctx context.Context) ApiAnswer
|
||||
|
||||
// Execute executes the request
|
||||
// @return AnswerApiV1CommentGet200Response
|
||||
func (a *CommentApiService) AnswerApiV1CommentGetExecute(r ApiAnswerApiV1CommentGetRequest) (*AnswerApiV1CommentGet200Response, *http.Response, error) {
|
||||
func (a *CommentAPIService) AnswerApiV1CommentGetExecute(r ApiAnswerApiV1CommentGetRequest) (*AnswerApiV1CommentGet200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -435,7 +435,7 @@ func (a *CommentApiService) AnswerApiV1CommentGetExecute(r ApiAnswerApiV1Comment
|
||||
localVarReturnValue *AnswerApiV1CommentGet200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1CommentGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -506,7 +506,7 @@ func (a *CommentApiService) AnswerApiV1CommentGetExecute(r ApiAnswerApiV1Comment
|
||||
|
||||
type ApiAnswerApiV1CommentPageGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *CommentApiService
|
||||
ApiService *CommentAPIService
|
||||
objectId *string
|
||||
page *int32
|
||||
pageSize *int32
|
||||
@@ -549,7 +549,7 @@ get comment page
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1CommentPageGetRequest
|
||||
*/
|
||||
func (a *CommentApiService) AnswerApiV1CommentPageGet(ctx context.Context) ApiAnswerApiV1CommentPageGetRequest {
|
||||
func (a *CommentAPIService) AnswerApiV1CommentPageGet(ctx context.Context) ApiAnswerApiV1CommentPageGetRequest {
|
||||
return ApiAnswerApiV1CommentPageGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -558,7 +558,7 @@ func (a *CommentApiService) AnswerApiV1CommentPageGet(ctx context.Context) ApiAn
|
||||
|
||||
// Execute executes the request
|
||||
// @return AnswerApiV1CommentGet200Response
|
||||
func (a *CommentApiService) AnswerApiV1CommentPageGetExecute(r ApiAnswerApiV1CommentPageGetRequest) (*AnswerApiV1CommentGet200Response, *http.Response, error) {
|
||||
func (a *CommentAPIService) AnswerApiV1CommentPageGetExecute(r ApiAnswerApiV1CommentPageGetRequest) (*AnswerApiV1CommentGet200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -566,7 +566,7 @@ func (a *CommentApiService) AnswerApiV1CommentPageGetExecute(r ApiAnswerApiV1Com
|
||||
localVarReturnValue *AnswerApiV1CommentGet200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentPageGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1CommentPageGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -646,7 +646,7 @@ func (a *CommentApiService) AnswerApiV1CommentPageGetExecute(r ApiAnswerApiV1Com
|
||||
|
||||
type ApiAnswerApiV1CommentPostRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *CommentApiService
|
||||
ApiService *CommentAPIService
|
||||
data *SchemaAddCommentReq
|
||||
}
|
||||
|
||||
@@ -668,7 +668,7 @@ add comment
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1CommentPostRequest
|
||||
*/
|
||||
func (a *CommentApiService) AnswerApiV1CommentPost(ctx context.Context) ApiAnswerApiV1CommentPostRequest {
|
||||
func (a *CommentAPIService) AnswerApiV1CommentPost(ctx context.Context) ApiAnswerApiV1CommentPostRequest {
|
||||
return ApiAnswerApiV1CommentPostRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -677,7 +677,7 @@ func (a *CommentApiService) AnswerApiV1CommentPost(ctx context.Context) ApiAnswe
|
||||
|
||||
// Execute executes the request
|
||||
// @return AnswerApiV1CommentPost200Response
|
||||
func (a *CommentApiService) AnswerApiV1CommentPostExecute(r ApiAnswerApiV1CommentPostRequest) (*AnswerApiV1CommentPost200Response, *http.Response, error) {
|
||||
func (a *CommentAPIService) AnswerApiV1CommentPostExecute(r ApiAnswerApiV1CommentPostRequest) (*AnswerApiV1CommentPost200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
@@ -685,7 +685,7 @@ func (a *CommentApiService) AnswerApiV1CommentPostExecute(r ApiAnswerApiV1Commen
|
||||
localVarReturnValue *AnswerApiV1CommentPost200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentPost")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1CommentPost")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -771,7 +771,7 @@ func (a *CommentApiService) AnswerApiV1CommentPostExecute(r ApiAnswerApiV1Commen
|
||||
|
||||
type ApiAnswerApiV1CommentPutRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *CommentApiService
|
||||
ApiService *CommentAPIService
|
||||
data *SchemaUpdateCommentReq
|
||||
}
|
||||
|
||||
@@ -793,7 +793,7 @@ update comment
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1CommentPutRequest
|
||||
*/
|
||||
func (a *CommentApiService) AnswerApiV1CommentPut(ctx context.Context) ApiAnswerApiV1CommentPutRequest {
|
||||
func (a *CommentAPIService) AnswerApiV1CommentPut(ctx context.Context) ApiAnswerApiV1CommentPutRequest {
|
||||
return ApiAnswerApiV1CommentPutRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -802,7 +802,7 @@ func (a *CommentApiService) AnswerApiV1CommentPut(ctx context.Context) ApiAnswer
|
||||
|
||||
// Execute executes the request
|
||||
// @return HandlerRespBody
|
||||
func (a *CommentApiService) AnswerApiV1CommentPutExecute(r ApiAnswerApiV1CommentPutRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
func (a *CommentAPIService) AnswerApiV1CommentPutExecute(r ApiAnswerApiV1CommentPutRequest) (*HandlerRespBody, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPut
|
||||
localVarPostBody interface{}
|
||||
@@ -810,7 +810,7 @@ func (a *CommentApiService) AnswerApiV1CommentPutExecute(r ApiAnswerApiV1Comment
|
||||
localVarReturnValue *HandlerRespBody
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1CommentPut")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1CommentPut")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
@@ -896,7 +896,7 @@ func (a *CommentApiService) AnswerApiV1CommentPutExecute(r ApiAnswerApiV1Comment
|
||||
|
||||
type ApiAnswerApiV1PersonalCommentPageGetRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *CommentApiService
|
||||
ApiService *CommentAPIService
|
||||
page *int32
|
||||
pageSize *int32
|
||||
username *string
|
||||
@@ -932,7 +932,7 @@ user personal comment list
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiAnswerApiV1PersonalCommentPageGetRequest
|
||||
*/
|
||||
func (a *CommentApiService) AnswerApiV1PersonalCommentPageGet(ctx context.Context) ApiAnswerApiV1PersonalCommentPageGetRequest {
|
||||
func (a *CommentAPIService) AnswerApiV1PersonalCommentPageGet(ctx context.Context) ApiAnswerApiV1PersonalCommentPageGetRequest {
|
||||
return ApiAnswerApiV1PersonalCommentPageGetRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
@@ -941,7 +941,7 @@ func (a *CommentApiService) AnswerApiV1PersonalCommentPageGet(ctx context.Contex
|
||||
|
||||
// Execute executes the request
|
||||
// @return AnswerApiV1PersonalCommentPageGet200Response
|
||||
func (a *CommentApiService) AnswerApiV1PersonalCommentPageGetExecute(r ApiAnswerApiV1PersonalCommentPageGetRequest) (*AnswerApiV1PersonalCommentPageGet200Response, *http.Response, error) {
|
||||
func (a *CommentAPIService) AnswerApiV1PersonalCommentPageGetExecute(r ApiAnswerApiV1PersonalCommentPageGetRequest) (*AnswerApiV1PersonalCommentPageGet200Response, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodGet
|
||||
localVarPostBody interface{}
|
||||
@@ -949,7 +949,7 @@ func (a *CommentApiService) AnswerApiV1PersonalCommentPageGetExecute(r ApiAnswer
|
||||
localVarReturnValue *AnswerApiV1PersonalCommentPageGet200Response
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentApiService.AnswerApiV1PersonalCommentPageGet")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CommentAPIService.AnswerApiV1PersonalCommentPageGet")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user