This commit is contained in:
suyl
2021-06-17 18:34:13 +08:00
parent 177156dcba
commit 921a3bfffd
3 changed files with 56 additions and 7 deletions

View File

@@ -0,0 +1,39 @@
package controllers
import (
"github.com/astaxie/beego/server/web"
)
type KnowController struct {
web.Controller
}
// @Title 查询知识条目
// @Description 查询知识条目
// @Param token header string true "认证token"
// @Param keyword query string false "关键字"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"
// @Param pageSize query int false "门店列表页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetKnowledgeDepot [get]
func (c *KnowController) GetKnowledgeDepot() {
c.callGetKnowledgeDepot(func(params *tKnowGetKnowledgeDepotParams) (retVal interface{}, errCode string, err error) {
return retVal, "", err
})
}
// @Title 更新知识条目
// @Description 更新知识条目
// @Param token header string true "认证token"
// @Param id formData int true "id"
// @Param content formData string false "内容"
// @Param isDel formData bool true "是否是删除"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /UpdateKnowledgeDepot [post]
func (c *KnowController) UpdateKnowledgeDepot() {
c.callUpdateKnowledgeDepot(func(params *tKnowUpdateKnowledgeDepotParams) (retVal interface{}, errCode string, err error) {
return retVal, "", err
})
}