This commit is contained in:
邹宗楠
2022-09-20 16:25:46 +08:00
parent c7cfd615cb
commit cc6a1c5c1e
14 changed files with 393 additions and 62 deletions

View File

@@ -12,6 +12,10 @@ type ShopBatchCreateStoreRequest struct {
}
type ShopBatchCreateStoreParam struct {
StoreList []*StoreList `json:"store_list"`
}
type StoreList struct {
RowID int64 `json:"row_id"`
Name string `json:"name"`
StoreCode string `json:"store_code"` //门店编码
@@ -25,6 +29,7 @@ type ShopBatchCreateStoreParam struct {
OpenTime OpenTime `json:"open_time"` //营业时间
StoreID int64 `json:"store_id"` //创建成功的门店ID
}
type OpenTime struct {
DayMap map[string]string `json:"day_map"`
Custom string `json:"custom"` //暂时不使用

View File

@@ -9,11 +9,11 @@ type CreateTokenRequest struct {
param *CreateTokenParam
}
func (r *CreateTokenRequest) GetParamObject() interface{}{
func (r *CreateTokenRequest) GetParamObject() interface{} {
return r.param
}
func(r *CreateTokenRequest) GetParams() *CreateTokenParam {
func (r *CreateTokenRequest) GetParams() *CreateTokenParam {
return r.param
}
@@ -33,7 +33,7 @@ func (r *CreateTokenRequest) GetUrlPath() string {
func NewCreateTokenRequest() *CreateTokenRequest {
request := &CreateTokenRequest{
param: &CreateTokenParam{},
param: &CreateTokenParam{},
}
request.SetConfig(GlobalConfig)
request.SetClient(DefaultDoudianOpApiClient)
@@ -45,9 +45,7 @@ type CreateTokenResponse struct {
Data CreateTokenData `json:"data"`
}
type CreateTokenParam struct {
Code string `json:"code"`
GrantType string `json:"grant_type"`