21 lines
326 B
TypeScript
21 lines
326 B
TypeScript
|
|
declare namespace Api {
|
||
|
|
/**
|
||
|
|
* namespace Auth
|
||
|
|
*
|
||
|
|
* backend api module: "auth"
|
||
|
|
*/
|
||
|
|
namespace Auth {
|
||
|
|
interface LoginToken {
|
||
|
|
token: string;
|
||
|
|
refreshToken: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
interface UserInfo {
|
||
|
|
userId: string;
|
||
|
|
userName: string;
|
||
|
|
roles: string[];
|
||
|
|
buttons: string[];
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|