rdluck %!s(int64=4) %!d(string=hai) anos
pai
achega
bfc1cd6ad0
Modificáronse 3 ficheiros con 35 adicións e 0 borrados
  1. 5 0
      .gitignore
  2. 17 0
      main.go
  3. 13 0
      routers/router.go

+ 5 - 0
.gitignore

@@ -0,0 +1,5 @@
+/.idea
+/hongze_task.exe
+/conf/app.conf
+/binlog
+/rdlucklog

+ 17 - 0
main.go

@@ -0,0 +1,17 @@
+package main
+
+import (
+	_ "hongze/hongze_task/routers"
+	"hongze/hongze_task/services"
+
+	"github.com/astaxie/beego"
+)
+
+func main() {
+	if beego.BConfig.RunMode == "dev" {
+		beego.BConfig.WebConfig.DirectoryIndex = true
+		beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
+	}
+	go services.Task()
+	beego.Run()
+}

+ 13 - 0
routers/router.go

@@ -0,0 +1,13 @@
+// @APIVersion 1.0.0
+// @Title beego Test API
+// @Description beego has a very cool tools to autogenerate documents for your API
+// @Contact astaxie@gmail.com
+// @TermsOfServiceUrl http://beego.me/
+// @License Apache 2.0
+// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
+package routers
+
+
+func init() {
+
+}