功能(菜单)接口

This commit is contained in:
苏尹岚
2020-09-27 11:24:38 +08:00
parent 542968ee85
commit 140400d4dd
4 changed files with 68 additions and 6 deletions

View File

@@ -1,7 +1,9 @@
package controllers
import (
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
"git.rosy.net.cn/jx-callback/business/model"
"github.com/astaxie/beego"
)
@@ -18,7 +20,10 @@ type PowerController struct {
// @router /AddFunction [post]
func (c *PowerController) AddFunction() {
c.callAddFunction(func(params *tPowerAddFunctionParams) (retVal interface{}, errCode string, err error) {
function := &model.Function{}
if err = utils.UnmarshalUseNumber([]byte(params.Payload), function); err == nil {
retVal, err = cms
}
return retVal, "", err
})
}