main.go 519 B

1234567891011121314151617181920212223
  1. package main
  2. import (
  3. "github.com/spf13/viper"
  4. _ "trading-go/common"
  5. "trading-go/routine"
  6. )
  7. // @title 二手交易
  8. // @version 1.0
  9. // @description 一个基于微信小程序的校园二手交易平台的api文档
  10. // @termsOfService http://swagger.io/terms/
  11. // @license.name Apache 2.0
  12. // @license.url http://www.apache.org/licenses/LICENSE-2.0.html
  13. // @host 124.222.126.172:8084
  14. // @BasePath /WeChatTrading/trading-go
  15. func main() {
  16. r := routine.GetRoutine()
  17. port := viper.GetString("web.port")
  18. r.Run(port)
  19. }