You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
2.3 KiB

package utils
var (
IdVerify = Rules{"ID": {NotEmpty()}}
ApiVerify = Rules{"Path": {NotEmpty()}, "Description": {NotEmpty()}, "ApiGroup": {NotEmpty()}, "Method": {NotEmpty()}}
RegisterVerify = Rules{"Email": {NotEmpty()}, "Password": {NotEmpty()}, "Phone": {NotEmpty()}, "CheckCode": {NotEmpty()}}
PageInfoVerify = Rules{"Page": {NotEmpty()}, "PageSize": {NotEmpty()}}
SendMessageVerity = Rules{"Phone": {NotEmpty()}, "Type": {NotEmpty()}}
SendEmailVerify = Rules{"Email": {NotEmpty()}}
AttributeIdVerity = Rules{"AttributeId": {NotEmpty()}}
CreateTbGoodsVerity = Rules{"CategoryId": {NotEmpty()}, "Title": {NotEmpty()}, "TitleEng": {NotEmpty()}, "Images": {NotEmpty()}, "Content": {NotEmpty()}, "Tags": {NotEmpty()}, "Status": {NotEmpty()}}
CreateMissionVerity = Rules{"Title": {NotEmpty()}, "GoodsId": {NotEmpty()}, "HireType": {Ct("1", "2")}, "StartTimeUnix": {NotEmpty()}, "EndTimeUnix": {NotEmpty()}}
TypeVerify = Rules{"Type": {NotEmpty()}}
ChartVerify = Rules{"Unit": {NotEmpty()}, "Type": {NotEmpty()}}
MissionIdVerify = Rules{"MissionId": {NotEmpty()}}
OrderIDVerify = Rules{"OrderID": {NotEmpty()}}
MissionClaimOrderSendVerify = Rules{"OrderID": {NotEmpty()}, "Courier": {NotEmpty()}, "CourierNumber": {NotEmpty()}}
AuthorityVerify = Rules{"AuthorityId": {NotEmpty()}, "AuthorityName": {NotEmpty()}, "ParentId": {NotEmpty()}}
AuthorityIdVerify = Rules{"AuthorityId": {NotEmpty()}}
OldAuthorityVerify = Rules{"OldAuthorityId": {NotEmpty()}}
ChangePasswordVerify = Rules{"Username": {NotEmpty()}, "Password": {NotEmpty()}, "NewPassword": {NotEmpty()}}
MenuVerify = Rules{"Path": {NotEmpty()}, "ParentId": {NotEmpty()}, "Name": {NotEmpty()}, "Component": {NotEmpty()}, "Sort": {Ge("0")}}
MenuMetaVerify = Rules{"Title": {NotEmpty()}}
DictDataVerity = Rules{"TypeCode": {NotEmpty()}}
MissionClaimIdVerify = Rules{"MissionClaimId": {NotEmpty()}}
FileVerify = Rules{"FileName": {NotEmpty()}, "Type": {NotEmpty()}, "Url": {NotEmpty()}}
MoveFileVerify = Rules{"SourceID": {NotEmpty()}, "TargetID": {NotEmpty()}}
ChainVerify = Rules{"Hash": {NotEmpty()}}
)