[feat] 添加 GetRoutes 方法

This commit is contained in:
what-00 2023-04-12 21:20:59 +08:00
parent 44fe134a72
commit efb2586c5e

View File

@ -21,3 +21,6 @@ type Route struct {
UpdatedAt string `db:"updated_at"` UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"` CreatedAt string `db:"created_at"`
} }
// 前端路由
type GetRoutes func(platform string, roles ...string) []Route