testController.go 422 B

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