Ai config

This commit is contained in:
董海洋
2026-05-26 13:37:55 +08:00
parent 55452a2d21
commit 0c7ed3498d
42 changed files with 1264 additions and 767 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
const { query } = require('../config/database')
const { paginate } = require('../utils/pagination')
// 获取库存列表
async function getStockList(ctx) {
@@ -32,11 +33,11 @@ async function getStockList(ctx) {
sql += ' ORDER BY s.quantity ASC'
const stockList = await query(sql, params)
const result = await paginate(query, sql, params, ctx.query.page, ctx.query.pageSize)
ctx.body = {
code: 200,
data: stockList
...result
}
}