后端搭建起来

This commit is contained in:
aixianling
2022-12-30 16:03:32 +08:00
parent cf5f60a049
commit b8ac23dcfd
8 changed files with 85 additions and 38 deletions

View File

@@ -0,0 +1,12 @@
const Controller = require("egg").Controller
class Custom extends Controller {
async list() {
const {ctx: {query}} = this
const result = await this.service.db.list("node_custom_config", query)
this.ctx.status = 200
this.ctx.body = result
}
}
module.exports = Custom