(ctx: TcPureContext<{ name: string }>)
| 21 | |
| 22 | // Action |
| 23 | echo(ctx: TcPureContext<{ name: string }>): string { |
| 24 | console.log(ctx.meta); |
| 25 | return `Hello ${ |
| 26 | ctx.params.name ?? ctx.meta.t('匿名用户') |
| 27 | }, \nHere is your meta info: ${JSON.stringify(ctx.meta, null, 2)}`; |
| 28 | } |
| 29 | |
| 30 | // Action |
| 31 | async sleep(ctx: TcPureContext<{ second: number }>) { |