File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ declare namespace Api {
2+ /**
3+ * namespace Auth
4+ *
5+ * backend api module: "auth"
6+ */
7+ namespace Auth {
8+ interface LoginToken {
9+ token : string ;
10+ refreshToken : string ;
11+ }
12+
13+ interface UserInfo {
14+ userId : string ;
15+ userName : string ;
16+ roles : string [ ] ;
17+ buttons : string [ ] ;
18+ }
19+ }
20+ }
Original file line number Diff line number Diff line change 1+ declare namespace Api {
2+ /**
3+ * namespace Route
4+ *
5+ * backend api module: "route"
6+ */
7+ namespace Route {
8+ type ElegantConstRoute = import ( '@elegant-router/types' ) . ElegantConstRoute ;
9+
10+ interface MenuRoute extends ElegantConstRoute {
11+ id : string ;
12+ }
13+
14+ interface UserRoute {
15+ routes : MenuRoute [ ] ;
16+ home : import ( '@elegant-router/types' ) . LastLevelRouteKey ;
17+ }
18+ }
19+ }
You can’t perform that action at this time.
0 commit comments