更新文档内容

This commit is contained in:
2023-09-26 16:20:01 +08:00
parent 73222eee28
commit d72897f080
415 changed files with 15785 additions and 17558 deletions

View File

@@ -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 (
)
// ActivityApiService ActivityApi service
type ActivityApiService service
// ActivityAPIService ActivityAPI service
type ActivityAPIService service
type ApiAnswerApiV1FollowPostRequest struct {
ctx context.Context
ApiService *ActivityApiService
ApiService *ActivityAPIService
data *SchemaFollowReq
}
@@ -44,7 +44,7 @@ follow object or cancel follow operation
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1FollowPostRequest
*/
func (a *ActivityApiService) AnswerApiV1FollowPost(ctx context.Context) ApiAnswerApiV1FollowPostRequest {
func (a *ActivityAPIService) AnswerApiV1FollowPost(ctx context.Context) ApiAnswerApiV1FollowPostRequest {
return ApiAnswerApiV1FollowPostRequest{
ApiService: a,
ctx: ctx,
@@ -53,7 +53,7 @@ func (a *ActivityApiService) AnswerApiV1FollowPost(ctx context.Context) ApiAnswe
// Execute executes the request
// @return AnswerApiV1FollowPost200Response
func (a *ActivityApiService) AnswerApiV1FollowPostExecute(r ApiAnswerApiV1FollowPostRequest) (*AnswerApiV1FollowPost200Response, *http.Response, error) {
func (a *ActivityAPIService) AnswerApiV1FollowPostExecute(r ApiAnswerApiV1FollowPostRequest) (*AnswerApiV1FollowPost200Response, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -61,7 +61,7 @@ func (a *ActivityApiService) AnswerApiV1FollowPostExecute(r ApiAnswerApiV1Follow
localVarReturnValue *AnswerApiV1FollowPost200Response
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1FollowPost")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.AnswerApiV1FollowPost")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -147,7 +147,7 @@ func (a *ActivityApiService) AnswerApiV1FollowPostExecute(r ApiAnswerApiV1Follow
type ApiAnswerApiV1FollowTagsPutRequest struct {
ctx context.Context
ApiService *ActivityApiService
ApiService *ActivityAPIService
data *SchemaUpdateFollowTagsReq
}
@@ -169,7 +169,7 @@ update user follow tags
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1FollowTagsPutRequest
*/
func (a *ActivityApiService) AnswerApiV1FollowTagsPut(ctx context.Context) ApiAnswerApiV1FollowTagsPutRequest {
func (a *ActivityAPIService) AnswerApiV1FollowTagsPut(ctx context.Context) ApiAnswerApiV1FollowTagsPutRequest {
return ApiAnswerApiV1FollowTagsPutRequest{
ApiService: a,
ctx: ctx,
@@ -178,7 +178,7 @@ func (a *ActivityApiService) AnswerApiV1FollowTagsPut(ctx context.Context) ApiAn
// Execute executes the request
// @return HandlerRespBody
func (a *ActivityApiService) AnswerApiV1FollowTagsPutExecute(r ApiAnswerApiV1FollowTagsPutRequest) (*HandlerRespBody, *http.Response, error) {
func (a *ActivityAPIService) AnswerApiV1FollowTagsPutExecute(r ApiAnswerApiV1FollowTagsPutRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -186,7 +186,7 @@ func (a *ActivityApiService) AnswerApiV1FollowTagsPutExecute(r ApiAnswerApiV1Fol
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1FollowTagsPut")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.AnswerApiV1FollowTagsPut")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -272,7 +272,7 @@ func (a *ActivityApiService) AnswerApiV1FollowTagsPutExecute(r ApiAnswerApiV1Fol
type ApiAnswerApiV1PersonalVotePageGetRequest struct {
ctx context.Context
ApiService *ActivityApiService
ApiService *ActivityAPIService
page *int32
pageSize *int32
}
@@ -301,7 +301,7 @@ get user personal votes
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1PersonalVotePageGetRequest
*/
func (a *ActivityApiService) AnswerApiV1PersonalVotePageGet(ctx context.Context) ApiAnswerApiV1PersonalVotePageGetRequest {
func (a *ActivityAPIService) AnswerApiV1PersonalVotePageGet(ctx context.Context) ApiAnswerApiV1PersonalVotePageGetRequest {
return ApiAnswerApiV1PersonalVotePageGetRequest{
ApiService: a,
ctx: ctx,
@@ -310,7 +310,7 @@ func (a *ActivityApiService) AnswerApiV1PersonalVotePageGet(ctx context.Context)
// Execute executes the request
// @return AnswerApiV1PersonalVotePageGet200Response
func (a *ActivityApiService) AnswerApiV1PersonalVotePageGetExecute(r ApiAnswerApiV1PersonalVotePageGetRequest) (*AnswerApiV1PersonalVotePageGet200Response, *http.Response, error) {
func (a *ActivityAPIService) AnswerApiV1PersonalVotePageGetExecute(r ApiAnswerApiV1PersonalVotePageGetRequest) (*AnswerApiV1PersonalVotePageGet200Response, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -318,7 +318,7 @@ func (a *ActivityApiService) AnswerApiV1PersonalVotePageGetExecute(r ApiAnswerAp
localVarReturnValue *AnswerApiV1PersonalVotePageGet200Response
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1PersonalVotePageGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.AnswerApiV1PersonalVotePageGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -405,7 +405,7 @@ func (a *ActivityApiService) AnswerApiV1PersonalVotePageGetExecute(r ApiAnswerAp
type ApiAnswerApiV1VoteDownPostRequest struct {
ctx context.Context
ApiService *ActivityApiService
ApiService *ActivityAPIService
data *SchemaVoteReq
}
@@ -427,7 +427,7 @@ add vote
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1VoteDownPostRequest
*/
func (a *ActivityApiService) AnswerApiV1VoteDownPost(ctx context.Context) ApiAnswerApiV1VoteDownPostRequest {
func (a *ActivityAPIService) AnswerApiV1VoteDownPost(ctx context.Context) ApiAnswerApiV1VoteDownPostRequest {
return ApiAnswerApiV1VoteDownPostRequest{
ApiService: a,
ctx: ctx,
@@ -436,7 +436,7 @@ func (a *ActivityApiService) AnswerApiV1VoteDownPost(ctx context.Context) ApiAns
// Execute executes the request
// @return AnswerApiV1VoteDownPost200Response
func (a *ActivityApiService) AnswerApiV1VoteDownPostExecute(r ApiAnswerApiV1VoteDownPostRequest) (*AnswerApiV1VoteDownPost200Response, *http.Response, error) {
func (a *ActivityAPIService) AnswerApiV1VoteDownPostExecute(r ApiAnswerApiV1VoteDownPostRequest) (*AnswerApiV1VoteDownPost200Response, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -444,7 +444,7 @@ func (a *ActivityApiService) AnswerApiV1VoteDownPostExecute(r ApiAnswerApiV1Vote
localVarReturnValue *AnswerApiV1VoteDownPost200Response
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1VoteDownPost")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.AnswerApiV1VoteDownPost")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -530,7 +530,7 @@ func (a *ActivityApiService) AnswerApiV1VoteDownPostExecute(r ApiAnswerApiV1Vote
type ApiAnswerApiV1VoteUpPostRequest struct {
ctx context.Context
ApiService *ActivityApiService
ApiService *ActivityAPIService
data *SchemaVoteReq
}
@@ -552,7 +552,7 @@ add vote
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1VoteUpPostRequest
*/
func (a *ActivityApiService) AnswerApiV1VoteUpPost(ctx context.Context) ApiAnswerApiV1VoteUpPostRequest {
func (a *ActivityAPIService) AnswerApiV1VoteUpPost(ctx context.Context) ApiAnswerApiV1VoteUpPostRequest {
return ApiAnswerApiV1VoteUpPostRequest{
ApiService: a,
ctx: ctx,
@@ -561,7 +561,7 @@ func (a *ActivityApiService) AnswerApiV1VoteUpPost(ctx context.Context) ApiAnswe
// Execute executes the request
// @return AnswerApiV1VoteDownPost200Response
func (a *ActivityApiService) AnswerApiV1VoteUpPostExecute(r ApiAnswerApiV1VoteUpPostRequest) (*AnswerApiV1VoteDownPost200Response, *http.Response, error) {
func (a *ActivityAPIService) AnswerApiV1VoteUpPostExecute(r ApiAnswerApiV1VoteUpPostRequest) (*AnswerApiV1VoteDownPost200Response, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -569,7 +569,7 @@ func (a *ActivityApiService) AnswerApiV1VoteUpPostExecute(r ApiAnswerApiV1VoteUp
localVarReturnValue *AnswerApiV1VoteDownPost200Response
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.AnswerApiV1VoteUpPost")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.AnswerApiV1VoteUpPost")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}