You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
320 B
Go
19 lines
320 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/astaxie/beego"
|
|
)
|
|
|
|
type AdminController struct {
|
|
beego.Controller
|
|
}
|
|
|
|
func (this *AdminController) ShowAPIVersion() {
|
|
jsoninfo := this.GetString("id")
|
|
if jsoninfo == "" {
|
|
this.Ctx.WriteString("jsoninfo is empty")
|
|
return
|
|
}
|
|
this.Ctx.Output.Body([]byte("weather world"))
|
|
}
|