first version

This commit is contained in:
2023-08-18 10:03:31 +08:00
commit c3f06b456f
410 changed files with 94634 additions and 0 deletions

489
docs/ApiAnswerApi.md Normal file
View File

@@ -0,0 +1,489 @@
# \ApiAnswerApi
All URIs are relative to *http://127.0.0.1:80*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AnswerApiV1AnswerAcceptancePost**](ApiAnswerApi.md#AnswerApiV1AnswerAcceptancePost) | **Post** /answer/api/v1/answer/acceptance | Accepted
[**AnswerApiV1AnswerDelete**](ApiAnswerApi.md#AnswerApiV1AnswerDelete) | **Delete** /answer/api/v1/answer | delete answer
[**AnswerApiV1AnswerInfoGet**](ApiAnswerApi.md#AnswerApiV1AnswerInfoGet) | **Get** /answer/api/v1/answer/info | Get Answer
[**AnswerApiV1AnswerPageGet**](ApiAnswerApi.md#AnswerApiV1AnswerPageGet) | **Get** /answer/api/v1/answer/page | AnswerList
[**AnswerApiV1AnswerPost**](ApiAnswerApi.md#AnswerApiV1AnswerPost) | **Post** /answer/api/v1/answer | Insert Answer
[**AnswerApiV1AnswerPut**](ApiAnswerApi.md#AnswerApiV1AnswerPut) | **Put** /answer/api/v1/answer | Update Answer
[**AnswerApiV1PersonalAnswerPageGet**](ApiAnswerApi.md#AnswerApiV1PersonalAnswerPageGet) | **Get** /answer/api/v1/personal/answer/page | UserAnswerList
## AnswerApiV1AnswerAcceptancePost
> string AnswerApiV1AnswerAcceptancePost(ctx).Data(data).Execute()
Accepted
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaAnswerAcceptedReq() // SchemaAnswerAcceptedReq | AnswerAcceptedReq
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerAcceptancePost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerAcceptancePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1AnswerAcceptancePost`: string
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerAcceptancePost`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerAcceptancePostRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**data** | [**SchemaAnswerAcceptedReq**](SchemaAnswerAcceptedReq.md) | AnswerAcceptedReq |
### Return type
**string**
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## AnswerApiV1AnswerDelete
> HandlerRespBody AnswerApiV1AnswerDelete(ctx).Data(data).Execute()
delete answer
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaRemoveAnswerReq("Id_example") // SchemaRemoveAnswerReq | answer
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerDelete(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1AnswerDelete`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerDelete`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerDeleteRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**data** | [**SchemaRemoveAnswerReq**](SchemaRemoveAnswerReq.md) | answer |
### Return type
[**HandlerRespBody**](HandlerRespBody.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## AnswerApiV1AnswerInfoGet
> string AnswerApiV1AnswerInfoGet(ctx).Id(id).Execute()
Get Answer
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
id := "id_example" // string | Answer TagID (default to "1")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerInfoGet(context.Background()).Id(id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerInfoGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1AnswerInfoGet`: string
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerInfoGet`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerInfoGetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **string** | Answer TagID | [default to "1"]
### Return type
**string**
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## AnswerApiV1AnswerPageGet
> string AnswerApiV1AnswerPageGet(ctx).QuestionId(questionId).Order(order).Page(page).PageSize(pageSize).Execute()
AnswerList
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
questionId := "questionId_example" // string | question_id
order := "order_example" // string | order
page := "page_example" // string | page
pageSize := "pageSize_example" // string | page_size
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPageGet(context.Background()).QuestionId(questionId).Order(order).Page(page).PageSize(pageSize).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPageGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1AnswerPageGet`: string
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPageGet`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerPageGetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**questionId** | **string** | question_id |
**order** | **string** | order |
**page** | **string** | page |
**pageSize** | **string** | page_size |
### Return type
**string**
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## AnswerApiV1AnswerPost
> string AnswerApiV1AnswerPost(ctx).Data(data).Execute()
Insert Answer
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaAnswerAddReq("Content_example") // SchemaAnswerAddReq | AnswerAddReq
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1AnswerPost`: string
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPost`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerPostRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**data** | [**SchemaAnswerAddReq**](SchemaAnswerAddReq.md) | AnswerAddReq |
### Return type
**string**
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## AnswerApiV1AnswerPut
> string AnswerApiV1AnswerPut(ctx).Data(data).Execute()
Update Answer
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaAnswerUpdateReq("Content_example") // SchemaAnswerUpdateReq | AnswerUpdateReq
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1AnswerPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1AnswerPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1AnswerPut`: string
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1AnswerPut`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1AnswerPutRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**data** | [**SchemaAnswerUpdateReq**](SchemaAnswerUpdateReq.md) | AnswerUpdateReq |
### Return type
**string**
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## AnswerApiV1PersonalAnswerPageGet
> HandlerRespBody AnswerApiV1PersonalAnswerPageGet(ctx).Username(username).Order(order).Page(page).Pagesize(pagesize).Execute()
UserAnswerList
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
username := "username_example" // string | username (default to "string")
order := "order_example" // string | order
page := "page_example" // string | page (default to "0")
pagesize := "pagesize_example" // string | pagesize (default to "20")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ApiAnswerApi.AnswerApiV1PersonalAnswerPageGet(context.Background()).Username(username).Order(order).Page(page).Pagesize(pagesize).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ApiAnswerApi.AnswerApiV1PersonalAnswerPageGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1PersonalAnswerPageGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `ApiAnswerApi.AnswerApiV1PersonalAnswerPageGet`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1PersonalAnswerPageGetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **string** | username | [default to "string"]
**order** | **string** | order |
**page** | **string** | page | [default to "0"]
**pagesize** | **string** | pagesize | [default to "20"]
### Return type
[**HandlerRespBody**](HandlerRespBody.md)
### Authorization
[ApiKeyAuth](../README.md#ApiKeyAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)