Files
jx-callback/controllers/knowledge_controller.go
suyl 921a3bfffd aa
2021-06-17 18:34:13 +08:00

40 lines
1.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
})
}