aa
This commit is contained in:
@@ -5451,3 +5451,13 @@ func InsertBrandCategories(ctx *jxcontext.Context, brandID int) (err error) {
|
|||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UpdateStoreTemplate(ctx *jxcontext.Context, storeID int, content, sound string) (err error) {
|
||||||
|
var (
|
||||||
|
db = dao.GetDB()
|
||||||
|
store = &model.Store{}
|
||||||
|
)
|
||||||
|
store.ID = storeID
|
||||||
|
dao.GetEntity(db, store)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|||||||
@@ -1408,3 +1408,19 @@ func (c *StoreController) DelSecretBind() {
|
|||||||
return retVal, "", err
|
return retVal, "", err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @Title 更新打印模板
|
||||||
|
// @Description 更新打印模板
|
||||||
|
// @Param token header string true "认证token"
|
||||||
|
// @Param storeID formData int true "门店ID"
|
||||||
|
// @Param content formData string false "模板内容"
|
||||||
|
// @Param sound formData string false "语音内容"
|
||||||
|
// @Success 200 {object} controllers.CallResult
|
||||||
|
// @Failure 200 {object} controllers.CallResult
|
||||||
|
// @router /UpdateStoreTemplate [post]
|
||||||
|
func (c *StoreController) UpdateStoreTemplate() {
|
||||||
|
c.callUpdateStoreTemplate(func(params *tStoreUpdateStoreTemplateParams) (retVal interface{}, errCode string, err error) {
|
||||||
|
err = cms.UpdateStoreTemplate(params.Ctx, params.StoreID, params.Content, params.Sound)
|
||||||
|
return retVal, "", err
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -2592,6 +2592,15 @@ func init() {
|
|||||||
Filters: nil,
|
Filters: nil,
|
||||||
Params: nil})
|
Params: nil})
|
||||||
|
|
||||||
|
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"],
|
||||||
|
web.ControllerComments{
|
||||||
|
Method: "UpdateStoreTemplate",
|
||||||
|
Router: `/UpdateStoreTemplate`,
|
||||||
|
AllowHTTPMethods: []string{"post"},
|
||||||
|
MethodParams: param.Make(),
|
||||||
|
Filters: nil,
|
||||||
|
Params: nil})
|
||||||
|
|
||||||
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"],
|
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"],
|
||||||
web.ControllerComments{
|
web.ControllerComments{
|
||||||
Method: "GetStoreCourierMaps",
|
Method: "GetStoreCourierMaps",
|
||||||
|
|||||||
Reference in New Issue
Block a user