Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
feat: Add maximum budget of 1.000.000.000.000
Browse files Browse the repository at this point in the history
  • Loading branch information
devkcud committed Oct 30, 2024
1 parent 324dc25 commit 613e2bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/model/dto/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type ProjectCreation struct {
BannerImage *multipart.FileHeader `validate:"omitempty" form:"banner"`

Content any `validate:"omitempty" form:"content"`
Budget int `validate:"omitempty" form:"budget"`
Budget int `validate:"omitempty,max=1000000000000" form:"budget"`

Width int `validate:"omitempty,min=1,max=1000" form:"width"`
Height int `validate:"omitempty,min=1,max=1000" form:"height"`
Expand All @@ -34,7 +34,7 @@ type ProjectUpdate struct {
BannerImage *multipart.FileHeader `validate:"omitempty" form:"banner"`

Content any `validate:"omitempty" form:"-"` // Set in code
Budget *int `validate:"omitempty" form:"budget"`
Budget *int `validate:"omitempty,max=1000000000000" form:"budget"`

Width *int `validate:"omitempty,min=1,max=1000" form:"width"`
Height *int `validate:"omitempty,min=1,max=1000" form:"height"`
Expand Down

0 comments on commit 613e2bd

Please sign in to comment.