Skip to content

Commit

Permalink
fix: fix-validate message.
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu committed Aug 9, 2024
1 parent 33aa207 commit cde3c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apistruct/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ type OANotificationElem struct {
NotificationType int32 `mapstructure:"notificationType" json:"notificationType" validate:"required"`
Text string `mapstructure:"text" json:"text" validate:"required"`
Url string `mapstructure:"url" json:"url"`
MixType int32 `mapstructure:"mixType" json:"mixType"`
MixType int32 `mapstructure:"mixType" json:"mixType" validate:"gte=0,lte=5"`
PictureElem *PictureElem `mapstructure:"pictureElem" json:"pictureElem"`
SoundElem *SoundElem `mapstructure:"soundElem" json:"soundElem"`
VideoElem *VideoElem `mapstructure:"videoElem" json:"videoElem"`
Expand Down

0 comments on commit cde3c06

Please sign in to comment.