- 'use strict';
- const { CrudService } = require('naf-framework-mongoose-free/lib/service');
- // 店铺表
- class ShopService extends CrudService {
- constructor(ctx) {
- super(ctx, 'shop');
- this.model = this.ctx.model.Shop;
- this.AdminModel = this.ctx.model.Admin;
- }
- }
- module.exports = ShopService;
|