更新文档内容

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 (
)
// NotificationApiService NotificationApi service
type NotificationApiService service
// NotificationAPIService NotificationAPI service
type NotificationAPIService service
type ApiAnswerApiV1NotificationPageGetRequest struct {
ctx context.Context
ApiService *NotificationApiService
ApiService *NotificationAPIService
type_ *string
inboxType *string
page *int32
@@ -65,7 +65,7 @@ get notification list
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1NotificationPageGetRequest
*/
func (a *NotificationApiService) AnswerApiV1NotificationPageGet(ctx context.Context) ApiAnswerApiV1NotificationPageGetRequest {
func (a *NotificationAPIService) AnswerApiV1NotificationPageGet(ctx context.Context) ApiAnswerApiV1NotificationPageGetRequest {
return ApiAnswerApiV1NotificationPageGetRequest{
ApiService: a,
ctx: ctx,
@@ -74,7 +74,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationPageGet(ctx context.Cont
// Execute executes the request
// @return HandlerRespBody
func (a *NotificationApiService) AnswerApiV1NotificationPageGetExecute(r ApiAnswerApiV1NotificationPageGetRequest) (*HandlerRespBody, *http.Response, error) {
func (a *NotificationAPIService) AnswerApiV1NotificationPageGetExecute(r ApiAnswerApiV1NotificationPageGetRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -82,7 +82,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationPageGetExecute(r ApiAnsw
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationPageGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationAPIService.AnswerApiV1NotificationPageGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -177,7 +177,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationPageGetExecute(r ApiAnsw
type ApiAnswerApiV1NotificationReadStateAllPutRequest struct {
ctx context.Context
ApiService *NotificationApiService
ApiService *NotificationAPIService
data *SchemaNotificationClearRequest
}
@@ -199,7 +199,7 @@ ClearUnRead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1NotificationReadStateAllPutRequest
*/
func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPut(ctx context.Context) ApiAnswerApiV1NotificationReadStateAllPutRequest {
func (a *NotificationAPIService) AnswerApiV1NotificationReadStateAllPut(ctx context.Context) ApiAnswerApiV1NotificationReadStateAllPutRequest {
return ApiAnswerApiV1NotificationReadStateAllPutRequest{
ApiService: a,
ctx: ctx,
@@ -208,7 +208,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPut(ctx cont
// Execute executes the request
// @return HandlerRespBody
func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPutExecute(r ApiAnswerApiV1NotificationReadStateAllPutRequest) (*HandlerRespBody, *http.Response, error) {
func (a *NotificationAPIService) AnswerApiV1NotificationReadStateAllPutExecute(r ApiAnswerApiV1NotificationReadStateAllPutRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -216,7 +216,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPutExecute(r
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationReadStateAllPut")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationAPIService.AnswerApiV1NotificationReadStateAllPut")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -302,7 +302,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStateAllPutExecute(r
type ApiAnswerApiV1NotificationReadStatePutRequest struct {
ctx context.Context
ApiService *NotificationApiService
ApiService *NotificationAPIService
data *SchemaNotificationClearIDRequest
}
@@ -324,7 +324,7 @@ ClearUnRead
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1NotificationReadStatePutRequest
*/
func (a *NotificationApiService) AnswerApiV1NotificationReadStatePut(ctx context.Context) ApiAnswerApiV1NotificationReadStatePutRequest {
func (a *NotificationAPIService) AnswerApiV1NotificationReadStatePut(ctx context.Context) ApiAnswerApiV1NotificationReadStatePutRequest {
return ApiAnswerApiV1NotificationReadStatePutRequest{
ApiService: a,
ctx: ctx,
@@ -333,7 +333,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStatePut(ctx context
// Execute executes the request
// @return HandlerRespBody
func (a *NotificationApiService) AnswerApiV1NotificationReadStatePutExecute(r ApiAnswerApiV1NotificationReadStatePutRequest) (*HandlerRespBody, *http.Response, error) {
func (a *NotificationAPIService) AnswerApiV1NotificationReadStatePutExecute(r ApiAnswerApiV1NotificationReadStatePutRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -341,7 +341,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStatePutExecute(r Ap
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationReadStatePut")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationAPIService.AnswerApiV1NotificationReadStatePut")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -427,7 +427,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationReadStatePutExecute(r Ap
type ApiAnswerApiV1NotificationStatusGetRequest struct {
ctx context.Context
ApiService *NotificationApiService
ApiService *NotificationAPIService
}
func (r ApiAnswerApiV1NotificationStatusGetRequest) Execute() (*HandlerRespBody, *http.Response, error) {
@@ -442,7 +442,7 @@ GetRedDot
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1NotificationStatusGetRequest
*/
func (a *NotificationApiService) AnswerApiV1NotificationStatusGet(ctx context.Context) ApiAnswerApiV1NotificationStatusGetRequest {
func (a *NotificationAPIService) AnswerApiV1NotificationStatusGet(ctx context.Context) ApiAnswerApiV1NotificationStatusGetRequest {
return ApiAnswerApiV1NotificationStatusGetRequest{
ApiService: a,
ctx: ctx,
@@ -451,7 +451,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationStatusGet(ctx context.Co
// Execute executes the request
// @return HandlerRespBody
func (a *NotificationApiService) AnswerApiV1NotificationStatusGetExecute(r ApiAnswerApiV1NotificationStatusGetRequest) (*HandlerRespBody, *http.Response, error) {
func (a *NotificationAPIService) AnswerApiV1NotificationStatusGetExecute(r ApiAnswerApiV1NotificationStatusGetRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -459,7 +459,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationStatusGetExecute(r ApiAn
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationStatusGet")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationAPIService.AnswerApiV1NotificationStatusGet")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -540,7 +540,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationStatusGetExecute(r ApiAn
type ApiAnswerApiV1NotificationStatusPutRequest struct {
ctx context.Context
ApiService *NotificationApiService
ApiService *NotificationAPIService
data *SchemaNotificationClearRequest
}
@@ -562,7 +562,7 @@ DelRedDot
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAnswerApiV1NotificationStatusPutRequest
*/
func (a *NotificationApiService) AnswerApiV1NotificationStatusPut(ctx context.Context) ApiAnswerApiV1NotificationStatusPutRequest {
func (a *NotificationAPIService) AnswerApiV1NotificationStatusPut(ctx context.Context) ApiAnswerApiV1NotificationStatusPutRequest {
return ApiAnswerApiV1NotificationStatusPutRequest{
ApiService: a,
ctx: ctx,
@@ -571,7 +571,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationStatusPut(ctx context.Co
// Execute executes the request
// @return HandlerRespBody
func (a *NotificationApiService) AnswerApiV1NotificationStatusPutExecute(r ApiAnswerApiV1NotificationStatusPutRequest) (*HandlerRespBody, *http.Response, error) {
func (a *NotificationAPIService) AnswerApiV1NotificationStatusPutExecute(r ApiAnswerApiV1NotificationStatusPutRequest) (*HandlerRespBody, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -579,7 +579,7 @@ func (a *NotificationApiService) AnswerApiV1NotificationStatusPutExecute(r ApiAn
localVarReturnValue *HandlerRespBody
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationApiService.AnswerApiV1NotificationStatusPut")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationAPIService.AnswerApiV1NotificationStatusPut")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}