24 lines
703 B
Go
24 lines
703 B
Go
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
|
|
})
|
|
}
|