Skip to content

Commit

Permalink
fix: Request Body 필드 타입 변경
Browse files Browse the repository at this point in the history
- uint에서 int로 다수 변경합니다.
  • Loading branch information
YehyeokBang committed Jan 23, 2024
1 parent 6b03926 commit 45f97ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/report/models/Report.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import "time"
type Report struct {
ID uint `gorm:"primaryKey"`
UserID uint
AlertCount uint
AnalysisTime uint
AlertCount int
AnalysisTime int
Type string
Predict string
CreatedAt time.Time `gorm:"autoCreateTime"`
Expand Down
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 uint `json:"alert_count" validate:"required"`
AnalysisTime uint `json:"analysis_time" validate:"required"`
AlertCount int `json:"alert_count" validate:"required"`
AnalysisTime int `json:"analysis_time" validate:"required"`
Type string `json:"type" validate:"required"`
}

Expand Down
4 changes: 2 additions & 2 deletions app/report/types/response_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ type ResponseReportSummary struct {
type ResponseReport struct {
ID uint `json:"id"`
UserID uint `json:"user_id"`
AlertCount uint `json:"alert_count"`
AnalysisTime uint `json:"analysis_time"`
AlertCount int `json:"alert_count"`
AnalysisTime int `json:"analysis_time"`
Predict string `json:"predict"`
Type string `json:"type"`
CreatedAt time.Time `json:"created_at"`
Expand Down

0 comments on commit 45f97ae

Please sign in to comment.