| 123456789101112131415161718192021222324252627282930313233 |
- package utils
- var (
- IdVerify = Rules{"ID": {NotEmpty()}}
- ApiVerify = Rules{"Path": {NotEmpty()}, "Description": {NotEmpty()}, "ApiGroup": {NotEmpty()}, "Method": {NotEmpty()}}
- MenuVerify = Rules{"Path": {NotEmpty()}, "ParentId": {NotEmpty()}, "Name": {NotEmpty()}, "Component": {NotEmpty()}, "Sort": {Ge("0")}}
- MenuMetaVerify = Rules{"Title": {NotEmpty()}}
- LoginVerify = Rules{"CaptchaId": {NotEmpty()}, "Captcha": {NotEmpty()}, "Username": {NotEmpty()}, "Password": {NotEmpty()}}
- RegisterVerify = Rules{"Username": {NotEmpty()}, "NickName": {NotEmpty()}, "Password": {NotEmpty()}, "AuthorityId": {NotEmpty()}}
- PageInfoVerify = Rules{"Page": {NotEmpty()}, "PageSize": {NotEmpty()}}
- CustomerVerify = Rules{"CustomerName": {NotEmpty()}, "CustomerPhoneData": {NotEmpty()}}
- AutoCodeVerify = Rules{"Abbreviation": {NotEmpty()}, "StructName": {NotEmpty()}, "PackageName": {NotEmpty()}, "Fields": {NotEmpty()}}
- AutoPackageVerify = Rules{"PackageName": {NotEmpty()}}
- AuthorityVerify = Rules{"AuthorityId": {NotEmpty()}, "AuthorityName": {NotEmpty()}}
- AuthorityIdVerify = Rules{"AuthorityId": {NotEmpty()}}
- OldAuthorityVerify = Rules{"OldAuthorityId": {NotEmpty()}}
- ChangePasswordVerify = Rules{"Username": {NotEmpty()}, "Password": {NotEmpty()}, "NewPassword": {NotEmpty()}}
- SetUserAuthorityVerify = Rules{"AuthorityId": {NotEmpty()}}
- LogCodingVerify = Rules{"Coding": {NotEmpty()}, "Describe": {NotEmpty()}}
- LogAddVerify = Rules{"LogUuid": {NotEmpty()}, "Coding": {NotEmpty()}}
- PcVerify = Rules{"PcCode": {NotEmpty()}, "User": {NotEmpty()}, "Supplier": {NotEmpty()}}
- //自己添加的校验
- GameChannelVerify = Rules{"ChannelName": {NotEmpty()}, "ChannelDesc": {NotEmpty()}, "DisplaySequence": {NotEmpty()}}
- GameListVerify = Rules{"GameName": {NotEmpty()}, "GamePort": {NotEmpty()}, "LoginType": {NotEmpty()}}
- LoginTypeVerify = Rules{"LoginName": {NotEmpty()}, "LoginDesc": {NotEmpty()}}
- ResponsiblePersonVerify = Rules{"Name": {NotEmpty()} }
- AccountTypeVerify = Rules{"TypeName": {NotEmpty()}}
- GameTaskVerify = Rules{"TaskId": {NotEmpty()}, "TaskName": {NotEmpty()}, "User": {NotEmpty()}, "NewRetained": {NotEmpty()}, "GamePortId": {NotEmpty()}}
- TaskIdVerify = Rules{"TaskId": {NotEmpty()}}
- UpdateTargetVerify = Rules{"TaskId": {NotEmpty()}, "CreateDate": {NotEmpty()}}
- )
|