쿠폰 자동 입력 사이트 작성

배포 완료됐습니다.

이제 FID 입력란 아래에 **최근 유저** 칩이 표시됩니다. 한 번 조회한 사람은 아바타 + 닉네임 칩으로 저장되어, 다음번엔 클릭 한 번으로 바로 쿠폰을 받을 수 있습니다.
This commit is contained in:
hyoseung930
2026-04-16 18:06:00 +09:00
parent 1b43b874a1
commit 608a904768
4 changed files with 74 additions and 1 deletions
+5
View File
@@ -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);
+4
View File
@@ -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' } });
}