1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-26 22:34:42 +03:00
guide/front/client/service/user.ts

22 lines
299 B
TypeScript
Raw Normal View History

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
}