쿠폰 자동 입력 사이트 작성
배포 완료됐습니다. 이제 FID 입력란 아래에 **최근 유저** 칩이 표시됩니다. 한 번 조회한 사람은 아바타 + 닉네임 칩으로 저장되어, 다음번엔 클릭 한 번으로 바로 쿠폰을 받을 수 있습니다.
This commit is contained in:
@@ -17,6 +17,11 @@ export class WosController {
|
||||
return this.wosService.redeemAll(body.fid);
|
||||
}
|
||||
|
||||
@Get('users')
|
||||
async listUsers() {
|
||||
return this.wosService.listUsers();
|
||||
}
|
||||
|
||||
@Get('history/:fid')
|
||||
async getHistory(@Param('fid') fid: string) {
|
||||
return this.wosService.getHistory(fid);
|
||||
|
||||
@@ -154,6 +154,10 @@ export class WosService {
|
||||
});
|
||||
}
|
||||
|
||||
async listUsers() {
|
||||
return this.wosUserRepo.find({ order: { created_at: 'DESC' } });
|
||||
}
|
||||
|
||||
async listCoupons() {
|
||||
return this.wosCouponRepo.find({ order: { created_at: 'DESC' } });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user