package main

import (
	"fmt"
	"github.com/spf13/viper"
	_ "trading-go/common"
	"trading-go/routine"
)

// @title 二手交易
// @version 1.0
// @description 一个基于微信小程序的校园二手交易平台的api文档
// @termsOfService http://swagger.io/terms/

// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html

// @host 124.222.126.172:8084
// @BasePath /WeChatTrading/trading-go
func main() {
	r := routine.GetRoutine()
	port := viper.GetString("web.port")
	fmt.Println("[api文档] =====>>> http://124.222.126.172:8084/swagger/index.html#/")
	r.Run(port)
}