UNPKG
ves
Version:
beta (2.0.0-beta.3)
latest (2.0.2)
2.0.2
2.0.1
2.0.0
2.0.0-beta.3
2.0.0-beta.2
2.0.0-beta.1
1.0.1
1.0.0
0.3.0
0.1.1
0.1.0
0.0.1
A Powerful, Simple Vue Node Isomorphic Framework
ves
/
app
/
service
/
test.js
17 lines
(12 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict'
;
const
Service
=
require
(
'egg'
).
Service
;
class
TestService
extends
Service
{
constructor
(
ctx
) {
super
(ctx);
this
.
config
=
this
.
app
.
config
.
test
; }
async
get
(
id
) {
return
{ id,
name
:
this
.
config
.
key
}; } }
module
.
exports
=
TestService
;