2026-03-25 23:26:10 +08:00

22 lines
595 B
JavaScript

'use strict';
const MainService = require('../../main');
class StockIndexService extends MainService {
constructor(ctx) {
super(ctx);
const _noNeedLogin = '';
const _noNeedRight = 'stockWarehouse';
const _noNeedLog = 'stockWarehouse';
const _noNeedAuth = 'stockWarehouse';
this.systemInit(_noNeedLogin, _noNeedRight, _noNeedLog, _noNeedAuth);
}
// Legacy alias: stock.stockWarehouse -> stock.warehouse.list
async stockWarehouse(data = {}) {
return await this.ctx.service.systemMethods.stock.warehouse.list(data);
}
}
module.exports = StockIndexService;