From 7190d106ab6374613dee382db539b0e1500e0cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 24 Aug 2022 10:44:32 +0800 Subject: [PATCH] 1 --- business/dao/print_bind_store.go | 2 +- business/model/print.go | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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 {