mirror of
https://github.com/aelve/guide.git
synced 2024-12-26 06:11:33 +03:00
22 lines
299 B
TypeScript
22 lines
299 B
TypeScript
import { Injectable } from '@vert/core'
|
|
|
|
@Injectable()
|
|
class UserService {
|
|
async getUserList (): Promise<IUser[]> {
|
|
return [
|
|
{ name: 'LancerComet', age: 10 },
|
|
{ name: 'Wch', age: 20 }
|
|
]
|
|
}
|
|
}
|
|
|
|
interface IUser {
|
|
name: string
|
|
age: number
|
|
}
|
|
|
|
export {
|
|
UserService,
|
|
IUser
|
|
}
|