wangrong
11 小时以前 0d90e20ec20f0aeee642756a7ebf9e8514174124
src/modules/app/controller/app/complain.ts
@@ -11,13 +11,13 @@
  entity: AppComplainEntity,
  insertParam: ctx => {
    return {
      userId: ctx.user.id,
      userId: ctx.user.userId,
    };
  },
  pageQueryOp: {
    fieldEq: ['a.type'],
    where: ctx => {
      const userId = ctx.user.id;
      const userId = ctx.user.userId;
      return [['a.userId = :userId', { userId }]];
    },
  },
@@ -31,7 +31,7 @@
  @Post('/submit', { summary: '提交投诉举报' })
  async submit(@Body() info) {
    info.userId = this.ctx.user.id;
    info.userId = this.ctx.user.userId;
    await this.appComplainService.submit(info);
    return this.ok();
  }