This commit is contained in:
suyl
2021-10-20 09:25:47 +08:00
parent 2fbcae6263
commit d47257e2fd
3 changed files with 35 additions and 0 deletions

View File

@@ -1408,3 +1408,19 @@ func (c *StoreController) DelSecretBind() {
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
})
}