liuxiaolong
2019-11-22 8388f4c57b9557c81477f4a8cc3d2196127558a7
controllers/license.go
@@ -74,6 +74,11 @@
   }
}
type ShowResult struct {
   Expired bool
   License interface{}
}
// @Summary 显示license注册信息
// @Description 显示license注册信息
// @Produce json
@@ -85,10 +90,16 @@
   var api dbapi.LicenseApi
   status,b, d := api.Show()
   if b {
      util.ResponseFormat(c,code.Success,d)
      util.ResponseFormat(c,code.Success,ShowResult{
         Expired: false,
         License: d,
      })
   } else {
      if status == 403 {
         util.ResponseFormat(c,code.Success, d)
         util.ResponseFormat(c,code.Success, ShowResult{
            Expired: true,
            License: d,
         })
      } else {
         util.ResponseFormat(c,code.ComError,"")
      }