Versions in this module Expand all Collapse all v0 v0.2.1 Dec 18, 2024 Changes in this version + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + func CacheExpires(r *http.Response) time.Time + type APIClient struct + GreetApi *GreetApiService + UserApiApi *UserApiApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) ChangeBasePath(path string) + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type BasicAuth struct + Password string + UserName string + type Configuration struct + BasePath string + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + Scheme string + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + type GenericSwaggerError struct + func (e GenericSwaggerError) Body() []byte + func (e GenericSwaggerError) Error() string + func (e GenericSwaggerError) Model() interface{} + type GreetApiService service + func (a *GreetApiService) Ping(ctx context.Context) (interface{}, *http.Response, error) + type LoginReq struct + Password string + Username string + type RegisterReq struct + Mobile string + Password string + Username string + type UserApiApiService service + func (a *UserApiApiService) GetUserInfo(ctx context.Context, id string, body UserInfoReq) (UserInfoReply, *http.Response, error) + func (a *UserApiApiService) Login(ctx context.Context, body LoginReq) (interface{}, *http.Response, error) + func (a *UserApiApiService) Register(ctx context.Context, body RegisterReq) (interface{}, *http.Response, error) + func (a *UserApiApiService) SearchUser(ctx context.Context, body UserSearchReq) (UserSearchReply, *http.Response, error) + type UserInfoReply struct + Age int32 + Birthday string + Description string + Name string + Tag []string + type UserInfoReq struct + Id string + type UserSearchReply struct + KeyWord []UserInfoReply + type UserSearchReq struct + KeyWord string