integralLog.js 658 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. const Controller = require('egg').Controller;
  3. class IntegralLogController extends Controller {
  4. async create() {
  5. const res = await this.ctx.service.integralLog.create(this.ctx.request.body);
  6. this.ctx.body = res;
  7. }
  8. async update() {
  9. const res = await this.ctx.service.integralLog.update(this.ctx.request.body);
  10. this.ctx.body = res;
  11. }
  12. async delete() {
  13. const res = await this.ctx.service.integralLog.delete(this.ctx.params);
  14. this.ctx.body = res;
  15. }
  16. async query() {
  17. const res = await this.ctx.service.integralLog.query(this.ctx.query);
  18. this.ctx.body = res;
  19. }
  20. }
  21. module.exports = IntegralLogController;