25 lines
854 B
Go
25 lines
854 B
Go
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
|
|
}
|