Skip to content

Commit

Permalink
fix: 알림 횟수와 분석 시간을 0도 가능하게 변경
Browse files Browse the repository at this point in the history
- 기존 validate:"required"에서 validate:"min=0"로 변경합니다.
- 0도 요청할 수 있게 수정됩니다.
  • Loading branch information
YehyeokBang committed Jan 23, 2024
1 parent 45f97ae commit 5131557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/report/types/request_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ func init() {

type RequestAnalysis struct {
VideoURL string `json:"video_url" validate:"required"`
AlertCount int `json:"alert_count" validate:"required"`
AnalysisTime int `json:"analysis_time" validate:"required"`
AlertCount int `json:"alert_count" validate:"min=0"`
AnalysisTime int `json:"analysis_time" validate:"min=0"`
Type string `json:"type" validate:"required"`
}

Expand Down

0 comments on commit 5131557

Please sign in to comment.