fnapi
This commit is contained in:
24
platformapi/fnpsapi/store.go
Normal file
24
platformapi/fnpsapi/store.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package fnpsapi
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
type CreateStoreParam struct {
|
||||
ChainStoreCode string `json:"chain_store_code,omitempty"`
|
||||
ChainStoreName string `json:"chain_store_name,omitempty"`
|
||||
ChainStoreType int `json:"chain_store_type,omitempty"`
|
||||
MerchantCode string `json:"merchant_code,omitempty"`
|
||||
ContactPhone string `json:"contact_phone,omitempty"`
|
||||
Address string `json:"address,omitempty"`
|
||||
PositionSource int `json:"position_source,omitempty"`
|
||||
Longitude string `json:"longitude,omitempty"`
|
||||
Latitude string `json:"latitude,omitempty"`
|
||||
ServiceCode string `json:"service_code,omitempty"`
|
||||
}
|
||||
|
||||
func (a *API) CreateStore(createStoreParam *CreateStoreParam) (err error) {
|
||||
params := utils.Struct2FlatMap(createStoreParam)
|
||||
_, err = a.AccessAPI("v2/chain_store", TestURL, params, true)
|
||||
return err
|
||||
}
|
||||
Reference in New Issue
Block a user