This commit is contained in:
richboo111
2022-10-08 17:01:59 +08:00
parent ed1742a43a
commit 903936c03c
3 changed files with 109 additions and 90 deletions

View File

@@ -13,7 +13,6 @@ import (
"strings"
)
// todo
// /warehouse/createBatch 批量创建区域仓
func (P *PurchaseHandler) BatchCreateWarehouse(param warehouse_createBatch_request.WarehouseCreateBatchParam) error {
infos := []warehouse_createBatch_request.OutWarehouseListItem{}
@@ -62,7 +61,7 @@ type LocalStore struct {
}
// /warehouse/createFence 以门店方式创建电子围栏
func (P *PurchaseHandler) CreateFenceByStore(storeID int) (fenceID string, err error) {
func CreateFenceByStore(storeID int) (fenceID string, err error) {
var (
db *dao.DaoDB
localStore *LocalStore
@@ -132,7 +131,7 @@ func (P *PurchaseHandler) CreateFenceDirectly(param warehouse_createFence_reques
}
//门店直接绑定围栏
func (P *PurchaseHandler) BindFenceByStore(storeID int64, addOutFenceIDs []string) error {
func BindFenceByStore(storeID int64, addOutFenceIDs []string) error {
param := &warehouse_bindFencesByStore_request.WarehouseBindFencesByStoreParam{
StoreId: storeID,
AddOutFenceIds: addOutFenceIDs,