mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-22 02:27:57 +00:00
14 lines
274 B
Go
14 lines
274 B
Go
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
|
|
} |