go-common/app/service/live/third_api/bvc/client.go

30 lines
488 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package bvc
import (
"go-common/library/net/http/blademaster"
)
type Client struct {
conf *blademaster.ClientConfig
bvcHost string
mock string
}
func (c *Client) getConf() *blademaster.ClientConfig {
return c.conf
}
func (c *Client) getBvcHost(def string) string {
if c.bvcHost == "" {
return def
}
return c.bvcHost
}
func New(c *blademaster.ClientConfig, bvcHost string, mock string) *Client {
return &Client{
conf: c,
bvcHost: bvcHost,
mock: mock,
}
}