dw-sdk/client.go
timerzz 62b04c9599 feat init 初始化
TODO fiber v3 client proxy有bug,proxy不生效
2024-07-24 10:43:43 +08:00

22 lines
447 B
Go

package dw_sdk
type Client struct {
articleServiceClient ArticleServiceClient
consignBidClient BidClient
}
func NewClient(cfg Config) *Client {
return &Client{
articleServiceClient: NewArticleServiceClient(cfg),
consignBidClient: NewConsignBidClient(cfg),
}
}
func (c *Client) ArticleService() ArticleServiceClient {
return c.articleServiceClient
}
func (c *Client) ConsignBidClient() BidClient {
return c.consignBidClient
}