wangrong
10 小时以前 0d90e20ec20f0aeee642756a7ebf9e8514174124
src/modules/user/controller/app/address.ts
@@ -13,12 +13,12 @@
  service: UserAddressService,
  insertParam: ctx => {
    return {
      userId: ctx.user.id,
      userId: ctx.user.userId,
    };
  },
  pageQueryOp: {
    where: async ctx => {
      return [['userId =:userId', { userId: ctx.user.id }]];
      return [['userId =:userId', { userId: ctx.user.userId }]];
    },
    addOrderBy: {
      isDefault: 'DESC',
@@ -34,6 +34,8 @@
  @Get('/default', { summary: '默认地址' })
  async default() {
    return this.ok(await this.userAddressService.default(this.ctx.user.id));
    return this.ok(
      await this.userAddressService.default(this.ctx.user.userId)
    );
  }
}