Files
go-admin/common/models/router.go
T
2021-05-12 18:48:01 +08:00

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
}