diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/.DS_Store differ diff --git a/app/api/hello.go b/app/api/hello.go deleted file mode 100644 index 7dd2c94..0000000 --- a/app/api/hello.go +++ /dev/null @@ -1,17 +0,0 @@ -package api - -import ( - "github.com/gogf/gf/net/ghttp" - "github.com/gogf/gf/os/gfile" -) - -var Hello = helloApi{} - -type helloApi struct{} - -func (*helloApi) Index(r *ghttp.Request) { - - res := gfile.GetBytes("./index.html") - - r.Response.Write(res) -} diff --git a/boot/boot.go b/boot/boot.go deleted file mode 100644 index 21f17a5..0000000 --- a/boot/boot.go +++ /dev/null @@ -1,5 +0,0 @@ -package boot - -func init() { - -} diff --git a/config/config.toml b/config/config.toml deleted file mode 100644 index 3b200ae..0000000 --- a/config/config.toml +++ /dev/null @@ -1,22 +0,0 @@ -# HTTP Server -[server] - Address = ":8009" - ServerRoot = "./" - ServerAgent = "swagger" - LogPath = "runtime/server" - dumpRouterMap = false - -# Logger. -[logger] - Path = "runtime" - Level = "all" - Stdout = true - -[gfcli] - [gfcli.build] - name = "swg" - arch = "amd64" - system = "linux" - pack = "config" - mod = "" - cgo = 0 \ No newline at end of file diff --git a/go.mod b/go.mod deleted file mode 100644 index 75408ce..0000000 --- a/go.mod +++ /dev/null @@ -1,8 +0,0 @@ -module swagger - -require ( - github.com/gogf/gf v1.15.7 - github.com/gogf/swagger v1.2.0 -) - -go 1.14 diff --git a/main.go b/main.go deleted file mode 100644 index 6e6f80f..0000000 --- a/main.go +++ /dev/null @@ -1,12 +0,0 @@ -package main - -import ( - _ "swagger/boot" - _ "swagger/router" - - "github.com/gogf/gf/frame/g" -) - -func main() { - g.Server().Run() -} diff --git a/resource/index.html b/resource/index.html deleted file mode 100644 index 0a92376..0000000 --- a/resource/index.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - Swagger接口文档 - - - -
-

矩阵-接口文档

- - ⚠️: 复制json地址到服务地址页面中即可 -
- - - \ No newline at end of file diff --git a/router/router.go b/router/router.go deleted file mode 100644 index db4b42b..0000000 --- a/router/router.go +++ /dev/null @@ -1,16 +0,0 @@ -package router - -import ( - "github.com/gogf/gf/frame/g" - "github.com/gogf/gf/net/ghttp" - "github.com/gogf/swagger" - "swagger/app/api" -) - -func init() { - s := g.Server() - s.Group("/", func(group *ghttp.RouterGroup) { - group.ALL("/", api.Hello) - }) - s.Plugin(&swagger.Swagger{}) -}