更新文档内容

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

@@ -1,32 +1,31 @@
/*
answer
Testing UserApiService
Testing UserAPIService
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech);
package openapi
package answer_sdk
import (
"context"
openapiclient "git.ncc.cx/package/openapi-go-answer"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "git.ncc.cx/package/openapi-go-answer"
)
func Test_openapi_UserApiService(t *testing.T) {
func Test_answer_sdk_UserAPIService(t *testing.T) {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
t.Run("Test UserApiService AnswerApiV1PersonalUserInfoGet", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1PersonalUserInfoGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1PersonalUserInfoGet(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1PersonalUserInfoGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -34,11 +33,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserActionRecordGet", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserActionRecordGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserActionRecordGet(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserActionRecordGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -46,11 +45,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserEmailChangeCodePost", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserEmailChangeCodePost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailChangeCodePost(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailChangeCodePost(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -58,11 +57,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserEmailNotificationPut", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserEmailPut", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailNotificationPut(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailPut(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -70,11 +69,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserEmailPut", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserEmailVerificationPost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailPut(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailVerificationPost(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -82,11 +81,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserEmailVerificationPost", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserEmailVerificationSendPost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationPost(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserEmailVerificationSendPost(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -94,11 +93,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserEmailVerificationSendPost", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserInfoGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationSendPost(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInfoGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -106,11 +105,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserInfoGet", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserInfoPut", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInfoGet(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInfoPut(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -118,11 +117,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserInfoPut", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserInfoSearchGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInfoPut(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInfoSearchGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -130,11 +129,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserInterfacePut", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserInterfacePut", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserInterfacePut(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserInterfacePut(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -142,11 +141,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserLoginEmailPost", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserLoginEmailPost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserLoginEmailPost(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserLoginEmailPost(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -154,11 +153,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserLogoutGet", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserLogoutGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserLogoutGet(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserLogoutGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -166,11 +165,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserNoticeSetPost", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserNotificationConfigPost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserNoticeSetPost(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserNotificationConfigPost(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -178,11 +177,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserPasswordPut", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserNotificationConfigPut", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordPut(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserNotificationConfigPut(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -190,11 +189,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserPasswordReplacementPost", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserNotificationUnsubscribePut", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordReplacementPost(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserNotificationUnsubscribePut(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -202,11 +201,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserPasswordResetPost", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserPasswordPut", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserPasswordResetPost(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserPasswordPut(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -214,11 +213,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserRankingGet", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserPasswordReplacementPost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRankingGet(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserPasswordReplacementPost(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -226,11 +225,11 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserRegisterCaptchaGet", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserPasswordResetPost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserPasswordResetPost(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
@@ -238,11 +237,35 @@ func Test_openapi_UserApiService(t *testing.T) {
})
t.Run("Test UserApiService AnswerApiV1UserRegisterEmailPost", func(t *testing.T) {
t.Run("Test UserAPIService AnswerApiV1UserRankingGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserApi.AnswerApiV1UserRegisterEmailPost(context.Background()).Execute()
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserRankingGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test UserAPIService AnswerApiV1UserRegisterCaptchaGet", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
t.Run("Test UserAPIService AnswerApiV1UserRegisterEmailPost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
resp, httpRes, err := apiClient.UserAPI.AnswerApiV1UserRegisterEmailPost(context.Background()).Execute()
require.Nil(t, err)
require.NotNil(t, resp)