修改唯品尚配置命名
This commit is contained in:
@@ -32,7 +32,7 @@ const (
|
||||
)
|
||||
|
||||
// Config 客户端配置
|
||||
type Config struct {
|
||||
type WpsConfig struct {
|
||||
ChannelType string
|
||||
Key string
|
||||
BaseURL string
|
||||
@@ -48,7 +48,7 @@ type WeiPinShangClient struct {
|
||||
}
|
||||
|
||||
// NewWeiPinShangClient 创建客户端
|
||||
func NewWeiPinShangClient(cfg Config) *WeiPinShangClient {
|
||||
func NewWeiPinShangClient(cfg WpsConfig) *WeiPinShangClient {
|
||||
if cfg.ChannelType == "" {
|
||||
cfg.ChannelType = "AILEHUI"
|
||||
}
|
||||
|
Reference in New Issue
Block a user