Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #40 from ProtocolONE/QILIN-96
Browse files Browse the repository at this point in the history
Add verification for package/bundle discount (min/max)
  • Loading branch information
sundagy committed Jun 27, 2019
2 parents 8d45f53 + fc105bd commit 2e63327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/api/bundle_router.go
Expand Up @@ -28,7 +28,7 @@ type (
}

bundleDiscountPolicyDTO struct {
Discount uint `json:"discount"`
Discount uint `json:"discount" validate:"min=0,max=100"`
BuyOption string `json:"buyOption"`
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/package_router.go
Expand Up @@ -37,7 +37,7 @@ type (
}

packageDiscountPolicyDTO struct {
Discount uint `json:"discount"`
Discount uint `json:"discount" validate:"min=0,max=100"`
BuyOption string `json:"buyOption"`
}

Expand Down

0 comments on commit 2e63327

Please sign in to comment.