修改唯品尚配置命名
This commit is contained in:
parent
20a3b65f01
commit
b535467e6f
@ -19,7 +19,7 @@ func setupMockServer(path string, method string, response string, t *testing.T)
|
||||
}
|
||||
|
||||
func newClientWithServer(ts *httptest.Server) *wps.WeiPinShangClient {
|
||||
return wps.NewWeiPinShangClient(wps.Config{
|
||||
return wps.NewWeiPinShangClient(wps.WpsConfig{
|
||||
BaseURL: wps.DevHost,
|
||||
ChannelType: "AILEHUI",
|
||||
Key: "f654ea5bde7635c3f46191191e5c4c8e",
|
||||
|
@ -112,7 +112,7 @@ type GetGoodsdeptRes struct {
|
||||
}
|
||||
|
||||
type Goodsdept struct {
|
||||
PageIndex string `json:"pageIndex"`
|
||||
PageIndex interface{} `json:"pageIndex"`
|
||||
PageCount int `json:"pageCount"`
|
||||
DataCount int `json:"dataCount"`
|
||||
List []Goods `json:"list"`
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user