| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2022-01-21 14:28:19 |
| 4 | * @LastEditors: nevin |
| 5 | * @LastEditTime: 2024-11-22 09:50:08 |
| 6 | * @Description: 认证相关接口 |
| 7 | */ |
| 8 | import { Request } from 'express'; |
| 9 | |
| 10 | export interface TokenInfo { |
| 11 | readonly phone?: string; |
| 12 | readonly id: string; |
| 13 | readonly name?: string; |
| 14 | readonly exp?: number; |
| 15 | readonly isManager?: boolean; |
| 16 | readonly mail?: string; |
| 17 | } |
| 18 | |
| 19 | export interface TokenReq extends Request { |
| 20 | tokenInfo: TokenInfo; |
| 21 | } |
| 22 |