调整列表工具类
This commit is contained in:
@@ -5,8 +5,8 @@ module.exports = {
|
||||
execute: (request, response) => {
|
||||
let {size, current, name, type} = request.query
|
||||
dbUtils.list({
|
||||
table: 'node_custom_config', con: name,
|
||||
search: {size, current, type}, sort: 'download'
|
||||
table: 'node_custom_config',
|
||||
search: {size, current, type, name}, sort: 'download'
|
||||
}).then(data => {
|
||||
response.send({code: 0, data})
|
||||
}).catch(err => {
|
||||
|
||||
16
src/rest/monitorApi/list.js
Normal file
16
src/rest/monitorApi/list.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const dbUtils = require("../../utils/dbUitls");
|
||||
module.exports = {
|
||||
action: "/node/monitorApi/list",
|
||||
method: "post",
|
||||
execute: (request, response) => {
|
||||
let {size, current, name: path, status} = request.query
|
||||
dbUtils.list({
|
||||
table: 'node_api_logs', con: 'path',
|
||||
search: {size, current, status, path}, sort: 'createTime'
|
||||
}).then(data => {
|
||||
response.send({code: 0, data})
|
||||
}).catch(err => {
|
||||
response.send({code: 1, err: err?.sqlMessage || err || ""})
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,8 @@ module.exports = {
|
||||
execute: (request, response) => {
|
||||
const {size, current, name, type} = request.query
|
||||
dbUtils.list({
|
||||
table: 'node_wxmp_deploy', con: name,
|
||||
search: {size, current, type}
|
||||
table: 'node_wxmp_deploy',
|
||||
search: {size, current, type, name}
|
||||
}).then(data => {
|
||||
response.send({code: 0, data})
|
||||
}).catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user