refs #5509 feat(EntryDms): add download & upload file
This commit is contained in:
parent
db75ad4727
commit
b54827a2ad
|
@ -2,6 +2,9 @@
|
|||
"Entry": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"EntryDms": {
|
||||
"dataSource": "vn"
|
||||
},
|
||||
"EntryContainer": {
|
||||
"dataSource": "entryStorage"
|
||||
},
|
||||
|
|
|
@ -2,6 +2,8 @@ const UserError = require('vn-loopback/util/user-error');
|
|||
|
||||
module.exports = Self => {
|
||||
require('../methods/entry-dms/removeFile')(Self);
|
||||
require('../methods/entry-dms/downloadFile')(Self);
|
||||
require('../methods/entry-dms/uploadFile')(Self);
|
||||
|
||||
Self.rewriteDbError(function(err) {
|
||||
if (err.code === 'ER_DUP_ENTRY')
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"name": "EntryDms",
|
||||
"base": "Loggable",
|
||||
"base": "VnModel",
|
||||
"mixins": {
|
||||
"Loggable": true
|
||||
},
|
||||
"options": {
|
||||
"mysql": {
|
||||
"table": "entryDms"
|
||||
|
|
Loading…
Reference in New Issue