调整列表工具类

This commit is contained in:
aixianling
2023-02-09 09:30:20 +08:00
parent 7acebbc35b
commit 88e2a1f47a
4 changed files with 25 additions and 7 deletions

View File

@@ -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 => {

View 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 || ""})
})
}
}

View File

@@ -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 => {