更新文档内容
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# \UserApi
|
||||
|
||||
All URIs are relative to *http://127.0.0.1:80*
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
@@ -13,6 +13,7 @@ Method | HTTP request | Description
|
||||
[**AnswerApiV1UserEmailVerificationSendPost**](UserApi.md#AnswerApiV1UserEmailVerificationSendPost) | **Post** /answer/api/v1/user/email/verification/send | UserVerifyEmailSend
|
||||
[**AnswerApiV1UserInfoGet**](UserApi.md#AnswerApiV1UserInfoGet) | **Get** /answer/api/v1/user/info | GetUserInfoByUserID
|
||||
[**AnswerApiV1UserInfoPut**](UserApi.md#AnswerApiV1UserInfoPut) | **Put** /answer/api/v1/user/info | UserUpdateInfo update user info
|
||||
[**AnswerApiV1UserInfoSearchGet**](UserApi.md#AnswerApiV1UserInfoSearchGet) | **Get** /answer/api/v1/user/info/search | SearchUserListByName
|
||||
[**AnswerApiV1UserInterfacePut**](UserApi.md#AnswerApiV1UserInterfacePut) | **Put** /answer/api/v1/user/interface | UserUpdateInterface update user interface config
|
||||
[**AnswerApiV1UserLoginEmailPost**](UserApi.md#AnswerApiV1UserLoginEmailPost) | **Post** /answer/api/v1/user/login/email | UserEmailLogin
|
||||
[**AnswerApiV1UserLogoutGet**](UserApi.md#AnswerApiV1UserLogoutGet) | **Get** /answer/api/v1/user/logout | user logout
|
||||
@@ -568,7 +569,7 @@ import (
|
||||
|
||||
func main() {
|
||||
authorization := "authorization_example" // string | access-token
|
||||
data := *openapiclient.NewSchemaUpdateInfoRequest("DisplayName_example") // SchemaUpdateInfoRequest | UpdateInfoRequest
|
||||
data := *openapiclient.NewSchemaUpdateInfoRequest() // SchemaUpdateInfoRequest | UpdateInfoRequest
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
@@ -614,6 +615,72 @@ Name | Type | Description | Notes
|
||||
[[Back to README]](../README.md)
|
||||
|
||||
|
||||
## AnswerApiV1UserInfoSearchGet
|
||||
|
||||
> AnswerApiV1PersonalUserInfoGet200Response AnswerApiV1UserInfoSearchGet(ctx).Username(username).Execute()
|
||||
|
||||
SearchUserListByName
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
)
|
||||
|
||||
func main() {
|
||||
username := "username_example" // string | username
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
resp, r, err := apiClient.UserApi.AnswerApiV1UserInfoSearchGet(context.Background()).Username(username).Execute()
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInfoSearchGet``: %v\n", err)
|
||||
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
|
||||
}
|
||||
// response from `AnswerApiV1UserInfoSearchGet`: AnswerApiV1PersonalUserInfoGet200Response
|
||||
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInfoSearchGet`: %v\n", resp)
|
||||
}
|
||||
```
|
||||
|
||||
### Path Parameters
|
||||
|
||||
|
||||
|
||||
### Other Parameters
|
||||
|
||||
Other parameters are passed through a pointer to a apiAnswerApiV1UserInfoSearchGetRequest struct via the builder pattern
|
||||
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**username** | **string** | username |
|
||||
|
||||
### Return type
|
||||
|
||||
[**AnswerApiV1PersonalUserInfoGet200Response**](AnswerApiV1PersonalUserInfoGet200Response.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)
|
||||
|
||||
|
||||
## AnswerApiV1UserInterfacePut
|
||||
|
||||
> HandlerRespBody AnswerApiV1UserInterfacePut(ctx).Authorization(authorization).Data(data).Execute()
|
||||
@@ -896,7 +963,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
data := *openapiclient.NewSchemaUserModifyPassWordRequest() // SchemaUserModifyPassWordRequest | UserModifyPassWordRequest
|
||||
data := *openapiclient.NewSchemaUserModifyPasswordReq("Pass_example") // SchemaUserModifyPasswordReq | UserModifyPasswordReq
|
||||
|
||||
configuration := openapiclient.NewConfiguration()
|
||||
apiClient := openapiclient.NewAPIClient(configuration)
|
||||
@@ -921,7 +988,7 @@ Other parameters are passed through a pointer to a apiAnswerApiV1UserPasswordPut
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**data** | [**SchemaUserModifyPassWordRequest**](SchemaUserModifyPassWordRequest.md) | UserModifyPassWordRequest |
|
||||
**data** | [**SchemaUserModifyPasswordReq**](SchemaUserModifyPasswordReq.md) | UserModifyPasswordReq |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
Reference in New Issue
Block a user