main.go 991 B

1234567891011121314151617181920212223242526272829303132
  1. package main
  2. import (
  3. "rtzh_elec_temperature/bootstrap"
  4. _ "rtzh_elec_temperature/enum"
  5. _ "rtzh_elec_temperature/routers"
  6. )
  7. // ***************** 请严格按swagger格式编写接口注释,并注册路由***************
  8. // ***************** 重新生成api接口文档,终端运行生成命令:bee run -gendoc=true -downdoc=true ***************
  9. // ***************** 如果生成swagger文档时失败,可运行bee generate docs生成,可查看详情生成过程 ***************
  10. // @title 电力测温项目API
  11. // @version 1.0
  12. // @description 电力测温项目接口文档。本文档仅用于本项目的前端接口说明
  13. // @termsOfService http://swagger.io/terms/
  14. // @contact.name liling
  15. // @contact.url http://www.swagger.io/support
  16. // @contact.email 3116246@qq.com
  17. // @license.name none
  18. // @license.url -
  19. // @host localhost:6019
  20. // @BasePath /api/
  21. // @securityDefinitions.token token AUTH
  22. func main() {
  23. bootstrap.Run()
  24. }