... | ... | @@ -20,6 +20,7 @@ export default class Adapter { |
|
|
```
|
|
|
##Entity.js
|
|
|
--
|
|
|
```javascript
|
|
|
import Joi from 'joi'
|
|
|
|
|
|
export default class Entity {
|
... | ... | @@ -50,9 +51,10 @@ export default class Entity { |
|
|
return adapter.save(data)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
'''
|
|
|
##Interactor.js
|
|
|
--
|
|
|
```javascript
|
|
|
export default class Interactor {
|
|
|
constructor() {
|
|
|
self.Entity = require('./Entity').default
|
... | ... | @@ -70,9 +72,10 @@ export default class Interactor { |
|
|
})
|
|
|
}
|
|
|
}
|
|
|
|
|
|
'''
|
|
|
##translator.js
|
|
|
--
|
|
|
```javascript
|
|
|
export default class Translator {
|
|
|
constructor() {
|
|
|
self.Interactor = require('./Interactor').default
|
... | ... | @@ -87,3 +90,4 @@ export default class Translator { |
|
|
|
|
|
get()
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |