UNPKG
@easy-team/res
Version:
latest (2.0.1)
next (2.0.0)
2.0.1
2.0.0
1.0.0
A Powerful, Simple Node React Web Framework
@easy-team/res
/
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
;