更新文档内容

This commit is contained in:
2023-08-22 10:37:28 +08:00
parent c3f06b456f
commit 73222eee28
329 changed files with 25366 additions and 2475 deletions

View File

@@ -1,14 +1,15 @@
# \QuestionApi
All URIs are relative to *http://127.0.0.1:80*
All URIs are relative to *http://localhost*
Method | HTTP request | Description
------------- | ------------- | -------------
[**AnswerApiV1PersonalQaTopGet**](QuestionApi.md#AnswerApiV1PersonalQaTopGet) | **Get** /answer/api/v1/personal/qa/top | UserTop
[**AnswerApiV1QuestionAnswerPost**](QuestionApi.md#AnswerApiV1QuestionAnswerPost) | **Post** /answer/api/v1/question/answer | add question and answer
[**AnswerApiV1QuestionClosemsglistGet**](QuestionApi.md#AnswerApiV1QuestionClosemsglistGet) | **Get** /answer/api/v1/question/closemsglist | close question msg list
[**AnswerApiV1QuestionDelete**](QuestionApi.md#AnswerApiV1QuestionDelete) | **Delete** /answer/api/v1/question | delete question
[**AnswerApiV1QuestionInfoGet**](QuestionApi.md#AnswerApiV1QuestionInfoGet) | **Get** /answer/api/v1/question/info | get question details
[**AnswerApiV1QuestionInviteGet**](QuestionApi.md#AnswerApiV1QuestionInviteGet) | **Get** /answer/api/v1/question/invite | get question invite user info
[**AnswerApiV1QuestionInvitePut**](QuestionApi.md#AnswerApiV1QuestionInvitePut) | **Put** /answer/api/v1/question/invite | update question invite user
[**AnswerApiV1QuestionOperationPut**](QuestionApi.md#AnswerApiV1QuestionOperationPut) | **Put** /answer/api/v1/question/operation | Operation question
[**AnswerApiV1QuestionPageGet**](QuestionApi.md#AnswerApiV1QuestionPageGet) | **Get** /answer/api/v1/question/page | get questions by page
[**AnswerApiV1QuestionPost**](QuestionApi.md#AnswerApiV1QuestionPost) | **Post** /answer/api/v1/question | add question
@@ -17,7 +18,6 @@ Method | HTTP request | Description
[**AnswerApiV1QuestionSimilarGet**](QuestionApi.md#AnswerApiV1QuestionSimilarGet) | **Get** /answer/api/v1/question/similar | add question title like
[**AnswerApiV1QuestionSimilarTagGet**](QuestionApi.md#AnswerApiV1QuestionSimilarTagGet) | **Get** /answer/api/v1/question/similar/tag | Search Similar Question
[**AnswerApiV1QuestionStatusPut**](QuestionApi.md#AnswerApiV1QuestionStatusPut) | **Put** /answer/api/v1/question/status | Close question
[**PersonalQuestionPageGet**](QuestionApi.md#PersonalQuestionPageGet) | **Get** /personal/question/page | UserList
@@ -153,67 +153,6 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
## AnswerApiV1QuestionClosemsglistGet
> HandlerRespBody AnswerApiV1QuestionClosemsglistGet(ctx).Execute()
close question msg list
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionClosemsglistGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionClosemsglistGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1QuestionClosemsglistGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionClosemsglistGet`: %v\n", resp)
}
```
### Path Parameters
This endpoint does not need any parameter.
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1QuestionClosemsglistGetRequest struct via the builder pattern
### 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)
## AnswerApiV1QuestionDelete
> HandlerRespBody AnswerApiV1QuestionDelete(ctx).Data(data).Execute()
@@ -346,6 +285,138 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
## AnswerApiV1QuestionInviteGet
> string AnswerApiV1QuestionInviteGet(ctx).Id(id).Execute()
get question invite user info
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
id := "id_example" // string | Question ID (default to "1")
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionInviteGet(context.Background()).Id(id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionInviteGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1QuestionInviteGet`: string
fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionInviteGet`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1QuestionInviteGetRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **string** | Question ID | [default to "1"]
### 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)
## AnswerApiV1QuestionInvitePut
> HandlerRespBody AnswerApiV1QuestionInvitePut(ctx).Data(data).Execute()
update question invite user
### Example
```go
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaQuestionUpdateInviteUser("Id_example") // SchemaQuestionUpdateInviteUser | question
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionInvitePut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionInvitePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1QuestionInvitePut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `QuestionApi.AnswerApiV1QuestionInvitePut`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1QuestionInvitePutRequest struct via the builder pattern
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**data** | [**SchemaQuestionUpdateInviteUser**](SchemaQuestionUpdateInviteUser.md) | question |
### 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)
## AnswerApiV1QuestionOperationPut
> HandlerRespBody AnswerApiV1QuestionOperationPut(ctx).Data(data).Execute()
@@ -414,7 +485,7 @@ Name | Type | Description | Notes
## AnswerApiV1QuestionPageGet
> AnswerApiV1QuestionPageGet200Response AnswerApiV1QuestionPageGet(ctx).Data(data).Execute()
> AnswerApiV1QuestionPageGet200Response AnswerApiV1QuestionPageGet(ctx).Page(page).PageSize(pageSize).Order(order).Tag(tag).Username(username).InDays(inDays).Execute()
get questions by page
@@ -433,11 +504,16 @@ import (
)
func main() {
data := *openapiclient.NewSchemaQuestionPageReq() // SchemaQuestionPageReq | QuestionPageReq
page := int32(56) // int32 | page (optional)
pageSize := int32(56) // int32 | page_size (optional)
order := "order_example" // string | order cond (optional)
tag := "tag_example" // string | tag (optional)
username := "username_example" // string | username (optional)
inDays := int32(56) // int32 | in_days (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionPageGet(context.Background()).Data(data).Execute()
resp, r, err := apiClient.QuestionApi.AnswerApiV1QuestionPageGet(context.Background()).Page(page).PageSize(pageSize).Order(order).Tag(tag).Username(username).InDays(inDays).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.AnswerApiV1QuestionPageGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -458,7 +534,12 @@ Other parameters are passed through a pointer to a apiAnswerApiV1QuestionPageGet
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**data** | [**SchemaQuestionPageReq**](SchemaQuestionPageReq.md) | QuestionPageReq |
**page** | **int32** | page |
**pageSize** | **int32** | page_size |
**order** | **string** | order cond |
**tag** | **string** | tag |
**username** | **string** | username |
**inDays** | **int32** | in_days |
### Return type
@@ -470,7 +551,7 @@ No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
@@ -873,75 +954,3 @@ Name | Type | Description | Notes
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
## PersonalQuestionPageGet
> HandlerRespBody PersonalQuestionPageGet(ctx).Username(username).Order(order).Page(page).Pagesize(pagesize).Execute()
UserList
### 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.QuestionApi.PersonalQuestionPageGet(context.Background()).Username(username).Order(order).Page(page).Pagesize(pagesize).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `QuestionApi.PersonalQuestionPageGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PersonalQuestionPageGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `QuestionApi.PersonalQuestionPageGet`: %v\n", resp)
}
```
### Path Parameters
### Other Parameters
Other parameters are passed through a pointer to a apiPersonalQuestionPageGetRequest 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)