dw-sdk/client.go

24 lines
529 B
Go
Raw Normal View History

package dw_sdk
type Client struct {
articleServiceClient ArticleServiceClient
consignBidClient BidClient
2024-09-02 14:34:11 +08:00
preSaleBidClient BidClient
}
func NewClient(cfg Config) *Client {
return &Client{
articleServiceClient: NewArticleServiceClient(cfg),
consignBidClient: NewConsignBidClient(cfg),
2024-09-02 14:34:11 +08:00
preSaleBidClient: NewPreSaleBidClient(cfg),
}
}
func (c *Client) ArticleService() ArticleServiceClient {
return c.articleServiceClient
}
func (c *Client) ConsignBidClient() BidClient {
return c.consignBidClient
}