- GetServerInfo added.
This commit is contained in:
23
controllers/cms.go
Normal file
23
controllers/cms.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
|
||||
"github.com/astaxie/beego"
|
||||
)
|
||||
|
||||
type CmsController struct {
|
||||
beego.Controller
|
||||
}
|
||||
|
||||
// @Title 得到服务相关的一些基础信息
|
||||
// @Description 得到服务相关的一些基础信息,包括版本,及一些元数据信息
|
||||
// @Param token header string true "认证token"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetServerInfo [get]
|
||||
func (c *CmsController) GetServerInfo() {
|
||||
c.callGetServerInfo(func(params *tCmsGetServerInfoParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal = cms.GetServerInfo()
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user