diff --git a/business/dao/print_bind_store.go b/business/dao/print_bind_store.go index 37cc6cbb2..dd5acd0d8 100644 --- a/business/dao/print_bind_store.go +++ b/business/dao/print_bind_store.go @@ -20,7 +20,7 @@ func BindStoreList(req *model.AddPrinterParam) error { CreatedAt: time.Now(), UpdatedAt: time.Now(), StoreID: req.StoreId, - StoreName: req.StoreName, + StoreName: req.Name, StoreVendor: 9, // 绑定平台,全平台 PrintNo: req.PrintNo, UserId: "system", // 所属用户 diff --git a/business/model/print.go b/business/model/print.go index 50ea01cc1..0e443863e 100644 --- a/business/model/print.go +++ b/business/model/print.go @@ -15,11 +15,10 @@ const ( ) type AddPrinterParam struct { - PrintNo string `json:"print_no"` //打印机编号 - Name string `json:"name"` //打印机备注名 - SIM string `json:"sim"` //sim卡号-电话号码,接受验证的电话 - StoreId int64 `json:"store_id"` // 门店id - StoreName string `json:"store_name"` // 门店名称 + PrintNo string `json:"print_no"` //打印机编号 + Name string `json:"name"` //打印机备注名 + SIM string `json:"sim"` //sim卡号-电话号码,接受验证的电话 + StoreId int64 `json:"store_id"` // 门店id } type Printer struct {