Versions in this module Expand all Collapse all v0 v0.4.3 Jul 8, 2021 v0.4.1 Jul 8, 2021 v0.4.0 Jul 8, 2021 v0.3.9 Jul 8, 2021 Changes in this version + type UnipayClient struct + func NewUnipay(opts ...ddhttp.DdClientOption) *UnipayClient + func (receiver *UnipayClient) GetUnipayStartUnionPay(ctx context.Context, queryParams struct{ ... }) (ret string, err error) + func (receiver *UnipayClient) SetClient(client *resty.Client) + func (receiver *UnipayClient) SetProvider(provider ddhttp.IServiceProvider) v0.3.8 Jul 7, 2021 Changes in this version + type Address struct + City string + State string + Street string + Zip string + type ApiResponse struct + Code int + Message string + Type string + type Category struct + Id int64 + Name string + type Customer struct + Address []Address + Id int64 + Username string + type Order struct + Complete bool + Customer struct{ ... } + Id int64 + PetId int64 + Quantity int + ShipDate *time.Time + Status string + type Pet struct + Category Category + Id int64 + Name string + PhotoUrls []string + Status string + Tags []Tag + type PetClient struct + func NewPet(opts ...ddhttp.DdClientOption) *PetClient + func (receiver *PetClient) GetPetFindByStatus(ctx context.Context) (ret []Pet, err error) + func (receiver *PetClient) GetPetFindByTags(ctx context.Context) (ret []Pet, err error) + func (receiver *PetClient) GetPetPetId(ctx context.Context, petId int64) (ret Pet, err error) + func (receiver *PetClient) PostPet(ctx context.Context, bodyJson Pet) (ret Pet, err error) + func (receiver *PetClient) PostPetPetIdUploadImage(ctx context.Context, queryParams struct{ ... }, petId int64, ...) (ret ApiResponse, err error) + func (receiver *PetClient) PutPet(ctx context.Context, bodyJson Pet) (ret Pet, err error) + func (receiver *PetClient) SetClient(client *resty.Client) + func (receiver *PetClient) SetProvider(provider ddhttp.IServiceProvider) + type StoreClient struct + func NewStore(opts ...ddhttp.DdClientOption) *StoreClient + func (receiver *StoreClient) GetStoreInventory(ctx context.Context) (ret map[string]int, err error) + func (receiver *StoreClient) GetStoreOrderOrderId(ctx context.Context, orderId int64) (ret Order, err error) + func (receiver *StoreClient) PostStoreOrder(ctx context.Context, bodyJson Order) (ret Order, err error) + func (receiver *StoreClient) SetClient(client *resty.Client) + func (receiver *StoreClient) SetProvider(provider ddhttp.IServiceProvider) + type Tag struct + Id int64 + Name string + type User struct + Additional1 map[string]string + Additional2 map[string]Tag + Avatar *os.File + Email string + FirstName string + Id int64 + LastName string + Password string + Phone string + UserStatus int + Username string + type UserClient struct + func NewUser(opts ...ddhttp.DdClientOption) *UserClient + func (receiver *UserClient) GetUserLogin(ctx context.Context) (ret string, err error) + func (receiver *UserClient) GetUserUsername(ctx context.Context, username string) (ret User, err error) + func (receiver *UserClient) PostUserCreateWithList(ctx context.Context, bodyJson []User) (ret User, err error) + func (receiver *UserClient) SetClient(client *resty.Client) + func (receiver *UserClient) SetProvider(provider ddhttp.IServiceProvider)