testController.go 413 B

123456789101112131415161718192021222324
  1. package controllers
  2. import (
  3. "github.com/astaxie/beego"
  4. )
  5. type TestController struct {
  6. beego.Controller
  7. }
  8. func init() {
  9. }
  10. // 这是测试接口
  11. // @Summary 这是一个测试接口
  12. // @Description 这是一个测试接口
  13. // @Tags 测试
  14. // @Accept x-www-form-urlencoded
  15. // @Produce json
  16. // @router /test [get]
  17. func (c *TestController) NewAlarmInfoList() {
  18. c.ServeJSON()
  19. return
  20. }