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.

73 lines
6.9 KiB

package utils
var (
IdVerify = Rules{"ID": {NotEmpty()}}
IdVerify2 = 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()}}
AuthorityVerify = Rules{"AuthorityId": {NotEmpty()}, "AuthorityName": {NotEmpty()}, "ParentId": {NotEmpty()}}
AuthorityIdVerify = Rules{"AuthorityId": {NotEmpty()}}
OldAuthorityVerify = Rules{"OldAuthorityId": {NotEmpty()}}
ChangePasswordVerify = Rules{"Username": {NotEmpty()}, "Password": {NotEmpty()}, "NewPassword": {NotEmpty()}}
SetUserAuthorityVerify = Rules{"UUID": {NotEmpty()}, "AuthorityId": {NotEmpty()}}
BsChannelVerify = Rules{"Name": {NotEmpty()}, "JumpType": {NotEmpty()}, "Status": {NotEmpty()}}
BsBannerVerify = Rules{"ChannelId": {NotEmpty()}, "Title": {NotEmpty()}, "CoverUrl": {NotEmpty()}, "RelationType": {NotEmpty()}, "SourceType": {Ct("1", "2", "3")}}
BsNewsVerity = Rules{"Title": {NotEmpty()}, "TitleDesc": {NotEmpty()}, "DisplayMode": {NotEmpty()}, "LinkType": {NotEmpty()}, "AuthorId": {NotEmpty()}, "ShareTitle": {NotEmpty()}}
BsNews03Verity = Rules{"Title": {NotEmpty()}, "TitleDesc": {NotEmpty()}, "AuthorId": {NotEmpty()}, "ShareTitle": {NotEmpty()}, "Type": {NotEmpty()}}
AuthorVerity = Rules{"Name": {NotEmpty()}, "Avatar": {NotEmpty()}}
SearchNewsRecommendVerity = Rules{"NewsId": {NotEmpty()}}
UUIDVerity = Rules{"UUID": {NotEmpty()}}
NewsRecommendVerity = Rules{"NewsId": {NotEmpty()}, "RelationId": {NotEmpty()}}
BsTogetherVerity = Rules{"Type": {NotEmpty()}, "Title": {NotEmpty()}}
DisplayModeVerity = Rules{"DisplayMode": {NotEmpty()}}
SearchTogetherRelationVerity = Rules{"TogetherId": {NotEmpty()}}
ChannelIDVerity = Rules{"ChannelId": {NotEmpty()}}
SubjectIDVerity = Rules{"SubjectId": {NotEmpty()}}
GatherIDVerity = Rules{"GatherId": {NotEmpty()}}
LiveIDVerity = Rules{"LiveId": {NotEmpty()}}
TogetherRelationVerity = Rules{"TogetherId": {NotEmpty()}, "RelationId": {NotEmpty()}, "RelationType": {Ct("2", "3", "6")}}
BsSubjectVerity = Rules{"Type": {NotEmpty()}, "Title": {NotEmpty()}, "ListTitle": {NotEmpty()}, "ShareTitle": {NotEmpty()}, "Info": {NotEmpty()}, "CoverUrl": {NotEmpty()}, "ShareImage": {NotEmpty()}}
BsLeaderVerity = Rules{"Name": {NotEmpty()}, "Avatar": {NotEmpty()}, "Position": {NotEmpty()}, "Info": {NotEmpty()}, "ShareTitle": {NotEmpty()}}
BsSubjectGatherVerity = Rules{"SubjectId": {NotEmpty()}, "GatherTitle": {NotEmpty()}}
BsNewsGatherVerity = Rules{"GatherId": {NotEmpty()}, "RelationId": {NotEmpty()}}
LeaderIDVerity = Rules{"LeaderId": {NotEmpty()}}
BsLeaderRelationVerity = Rules{"LeaderId": {NotEmpty()}, "RelationId": {NotEmpty()}, "RelationType": {NotEmpty()}}
BsChannelPageVerity = Rules{"ChannelId": {NotEmpty()}, "RelationId": {NotEmpty()}, "RelationType": {NotEmpty()}}
UploadFileVerity = Rules{"File": {NotEmpty()}, "Type": {NotEmpty()}}
UploadFileVerity2 = Rules{"File": {NotEmpty()}}
SendPushVerity = Rules{"relationId": {NotEmpty()}, "relationType": {Ct("1", "3", "4", "6")}, "Body": {NotEmpty()}, "PushType": {NotEmpty()}}
VersionControlVerity = Rules{"Version": {NotEmpty()}, "Type": {NotEmpty()}, "Info": {NotEmpty()}, "Status": {NotEmpty()}}
BsLiveBannerVerity = Rules{"CoverUrl": {NotEmpty()}, "Status": {NotEmpty()}}
BsLiveNoticeVerity = Rules{"CoverUrl": {NotEmpty()}, "Title": {NotEmpty()}}
BsLiveBaseVerity = Rules{"Title": {NotEmpty()}, "CoverUrl": {NotEmpty()}, "VideoUrl": {NotEmpty()}, "Status": {NotEmpty()}, "Remark": {NotEmpty()}}
BsLiveVerity = Rules{"HlsUrl": {NotEmpty()}}
BsLivePlaybackVerity = Rules{"Title": {NotEmpty()}, "CoverUrl": {NotEmpty()}, "VideoUrl": {NotEmpty()}}
BsLiveImageTextVerity = Rules{"LiveId": {NotEmpty()}, "Content": {NotEmpty()}, "AuthorId": {NotEmpty()}}
SensitiveWordVerity = Rules{"Content": {NotEmpty()}}
HotWordVerity = Rules{"Title": {NotEmpty()}}
DictDataVerity = Rules{"TypeCode": {NotEmpty()}}
AppUserStatusVerity = Rules{"UUID": {NotEmpty()}, "Status": {Ct("1", "2")}}
AppUserVerity = Rules{"Nickname": {NotEmpty()}}
BsRedBoxVerity = Rules{"RelationId": {NotEmpty()}, "RelationType": {NotEmpty()}}
CategoryIDVerity = Rules{"CategoryID": {NotEmpty()}}
BsRankVerity = Rules{"CategoryID": {NotEmpty()}, "Ranks": {NotEmpty()}}
IdStatusVerity = Rules{"ID": {NotEmpty()}, "Status": {NotEmpty()}}
LevelVerity = Rules{"Level": {NotEmpty()}}
BsGovRelationVerity = Rules{"RelationId": {NotEmpty()}, "RelationType": {NotEmpty()}, "Level": {Ct("1", "2")}}
BsAdvertisementPoolVerity = Rules{"Cover": {NotEmpty()}, "Url": {NotEmpty()}, "Type": {NotEmpty()}, "Title": {NotEmpty()}, "LinkType": {NotEmpty()}}
GeneratePlaybackVerity = Rules{"ID": {NotEmpty()}, "Zone": {NotEmpty()}, "StreamName": {NotEmpty()}, "Start": {NotEmpty()}, "End": {NotEmpty()}}
TempVerity = Rules{"": {NotEmpty()}}
BsNewsDraftCheckVerity = Rules{"ID": {NotEmpty()}, "CheckStatus": {NotEmpty()}}
NaireVerity = Rules{"Data": {NotEmpty()}}
MBoardVerity = Rules{"Content": {NotEmpty()}}
VigourProgramVerity = Rules{"Name": {NotEmpty()}, "Mechanism": {NotEmpty()}, "Phone": {NotEmpty()}, "ProgramNum": {NotEmpty()}, "ProgramName": {NotEmpty()}, "ProgramType": {NotEmpty()}, "Belong": {NotEmpty()}}
VigourHostVerity = Rules{"Set": {NotEmpty()}, "Name": {NotEmpty()}, "Phone": {NotEmpty()}, "Email": {NotEmpty()}, "Belong": {NotEmpty()}, "Mechanism": {NotEmpty()}}
H5StructVerity = Rules{"Table": {NotEmpty()}}
BsCommentVerity = Rules{"RelationId": {NotEmpty()}, "RelationType": {Ct("1")}, "Content": {NotEmpty()}, "CreateBy": {NotEmpty()}}
)