功能(菜单)接口
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user