🐛 Fix attitude 0 detected as non-provided

This commit is contained in:
LittleSheep 2024-04-15 23:22:54 +08:00
parent 97e2bb586c
commit 017b67d738

View File

@ -100,7 +100,7 @@ func reactPost(c *fiber.Ctx) error {
var data struct {
Symbol string `json:"symbol" form:"symbol" validate:"required"`
Attitude models.ReactionAttitude `json:"attitude" form:"attitude" validate:"required"`
Attitude models.ReactionAttitude `json:"attitude" form:"attitude"`
}
if err := BindAndValidate(c, &data); err != nil {