fix(consignment): 寄售价支持低于1元并按分类校验寄售数量上限

This commit is contained in:
2026-11-08 11:11:54 +08:00
parent 229eef31a8
commit ffe7c31a87
12 changed files with 281 additions and 33 deletions
@@ -19,9 +19,10 @@ const router = Router()
* GET /api/v1/worker/consignment/profiles
* 打手端寄卖页按已发布的分类配置动态生成 tab。
*/
router.get('/consignment/profiles', async (_req, res) => {
router.get('/consignment/profiles', async (req, res) => {
try {
const result = await listWorkerConsignmentProfiles()
const session = getRequiredWorkerSession(req)
const result = await listWorkerConsignmentProfiles(session.workerId)
res.json({ ok: true, data: { profiles: result } })
} catch (error) {
sendRouteError(res, error, '获取寄卖配置失败', '[worker/consignment/profiles]')