Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { // TIME CreatedAt time.Time `validate:"time.time"` UpdatedAt string `validate:"time.time,2006/01/02 15:04:05"` // INT Count int `validate:"int,0:200"` MaxCount int `validate:"int,:200"` MinCount int `validate:"int,10:"` Count2 int `validate:"int64,0:200"` // FLOAT RewardRate float64 `validate:"float,0:0.4"` MaxRewardRate float64 `validate:"float,:0.4"` MinRewradRate float64 `validate:"float,0:"` RewardRate2 float64 `validate:"float64,0:0.4"` RewardRate3 decimal.Decimal `validate:"decimal,0:0.4"` // REGEX OrderUsername string `validate:"regex,^[\u4E00-\u9FA5a-zA-Z0-9_.]{0,40}$"` OrderUsername2 string `validate:"regex,username"` // RANGE,IN OrderStatus int `validate:"range,[1,2,3,4]"` OrderStatusName string `validate:"in,[unpaid,paid,closed]"` // FUNC, FUNCTION MailTypeCheckBox string `validate:"func,inAndLength,lengthMoreThan3"` MailTypeCheckBox2 string `validate:"function,lengthLessThan3|inAndLength"` }
Click to show internal directories.
Click to hide internal directories.