diff --git a/.DS_Store b/.DS_Store index 94e9fd4..7f84ad1 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.github/.DS_Store b/.github/.DS_Store index 66ec114..d5337fd 100644 Binary files a/.github/.DS_Store and b/.github/.DS_Store differ diff --git a/accounts/.DS_Store b/accounts/.DS_Store index 6e428f8..b43b150 100644 Binary files a/accounts/.DS_Store and b/accounts/.DS_Store differ diff --git a/accounts/views.py b/accounts/views.py index fd38dea..a7ae491 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -210,7 +210,7 @@ def withdraw(self, request): ] }, status=status.HTTP_200_OK) - # 모든 유저의 no_show_num 값을 0으로 초기화하는 액션 + # 모든 유저의 no_show_num 값을 0으로 초기화하는 액션 @action(detail=False, methods=['post'], url_path='reset-no-show') def reset_no_show_num(self, request): try: @@ -386,5 +386,26 @@ def send_sms(self, request): "code": 200, }, status=status.HTTP_200_OK) - + # 모든 유저의 bad_sms_count 값을 0으로 초기화하는 액션 + @action(detail=False, methods=['post'], url_path='reset-bad-sms-count') + def reset_bad_sms_count(self, request): + try: + SMSAuthenticate.objects.all().update(bad_sms_count=0) + return Response({ + "status": "success", + "message": "모든 유저의 bad_sms_count 값이 0으로 초기화되었습니다.", + "code": 200, + "data": [ + {"detail": "초기화 완료"} + ] + }, status=status.HTTP_200_OK) + except Exception as e: + return Response({ + "status": "error", + "message": "초기화 실패", + "code": 500, + "data": [ + {"detail": str(e)} + ] + }, status=status.HTTP_500_INTERNAL_SERVER_ERROR) diff --git a/booth/.DS_Store b/booth/.DS_Store index 852b5cf..f7b4d4b 100644 Binary files a/booth/.DS_Store and b/booth/.DS_Store differ diff --git a/linenow/.DS_Store b/linenow/.DS_Store index 46b2264..18974ff 100644 Binary files a/linenow/.DS_Store and b/linenow/.DS_Store differ diff --git a/manager/.DS_Store b/manager/.DS_Store index 42a2841..3594953 100644 Binary files a/manager/.DS_Store and b/manager/.DS_Store differ diff --git a/waiting/.DS_Store b/waiting/.DS_Store index eb542d6..d4c88ae 100644 Binary files a/waiting/.DS_Store and b/waiting/.DS_Store differ