123456789101112131415161718 |
- 'use strict';
- const Service = require('../service/baseService');
- class SysDictService extends Service {
- tag() {
- return this.ctx.model.SysDictModel;
- }
- async deleteWithSub(id) {
- const dbDictArr = await this.ctx.model.SysDictModel.find({ fid: id });
- if (dbDictArr.length > 0) {
- return null;
- }
- return await this.delete(id);
- }
- }
- module.exports = SysDictService;
|