feat✨ 添加api管理

This commit is contained in:
wenjianzhang committed 2021-05-12 18:48:01 +08:00
1 parent 70998c424d
commit d0b2e8d03f
6 files changed
+395 -53

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
package models
type Routers struct {
List []Router
}
type Router struct {
HttpMethod, RelativePath string
}
func (e *Routers) Add(HttpMethod, RelativePath string) *Routers {
e.List = append(e.List, Router{HttpMethod: HttpMethod,RelativePath: RelativePath})
return e
}