feat✨ 添加api管理
This commit is contained in:
1 parent
70998c424d
commit
d0b2e8d03f
6 files changed
+395
-53
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user