payOrder.js 452 B

12345678910111213141516
  1. 'use strict';
  2. const { CrudService } = require('naf-framework-mongoose-free/lib/service');
  3. const { BusinessError, ErrorCode } = require('naf-core').Error;
  4. const _ = require('lodash');
  5. const assert = require('assert');
  6. //
  7. class PayOrderService extends CrudService {
  8. constructor(ctx) {
  9. super(ctx, 'payorder');
  10. this.model = this.ctx.model.Business.PayOrder;
  11. this.payService = this.ctx.service.wxpay;
  12. }
  13. }
  14. module.exports = PayOrderService;