// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: api/approval/approval.proto package approval import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "github.com/mwitkow/go-proto-validators" github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf func (this *CommonResponse) Validate() error { return nil } func (this *ChangeBundlePayRequest) Validate() error { return nil } func (this *IsExistPayRightRequest) Validate() error { return nil } func (this *IsExistPayRightResponse) Validate() error { return nil } func (this *KeyInfo) Validate() error { return nil } func (this *UpdateEhApplyIDRequest) Validate() error { return nil } func (this *UpdateEhApplyIDResponse) Validate() error { return nil } func (this *UsedNumByUserRequest) Validate() error { return nil } func (this *UsedNumByUserResponse) Validate() error { return nil } func (this *NowLevelByInfoRequest) Validate() error { return nil } func (this *WorkFlowResponse) Validate() error { return nil } func (this *CommonRequest) Validate() error { return nil } func (this *CreateTypeRequest) Validate() error { for _, item := range this.KeyInfos { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("KeyInfos", err) } } } return nil } func (this *TypeResponse) Validate() error { return nil } func (this *AllTypeResponse) Validate() error { for _, item := range this.Data { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Data", err) } } } return nil } func (this *CreateTypeGroupRequest) Validate() error { for _, item := range this.List { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("List", err) } } } return nil } func (this *AllGroupResponse) Validate() error { for _, item := range this.Data { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Data", err) } } } return nil } func (this *StatusRequest) Validate() error { if !(this.Status > 0) { return github_com_mwitkow_go_proto_validators.FieldError("Status", fmt.Errorf(`70008`)) } if !(this.Status < 4) { return github_com_mwitkow_go_proto_validators.FieldError("Status", fmt.Errorf(`70008`)) } return nil } func (this *StatusResponse) Validate() error { return nil } func (this *ListRequest) Validate() error { if this.Domain == "" { return github_com_mwitkow_go_proto_validators.FieldError("Domain", fmt.Errorf(`70001`)) } return nil } func (this *ListResponse) Validate() error { for _, item := range this.Data { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Data", err) } } } return nil } func (this *ViewedRequest) Validate() error { return nil } func (this *InformationRequest) Validate() error { return nil } func (this *Information) Validate() error { return nil } func (this *InformationResponse) Validate() error { if this.MySubmitInfo != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MySubmitInfo); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("MySubmitInfo", err) } } if this.SubmitMeInfo != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.SubmitMeInfo); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("SubmitMeInfo", err) } } if this.DomainInfo != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.DomainInfo); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("DomainInfo", err) } } return nil } func (this *Bundle) Validate() error { return nil } func (this *Show) Validate() error { return nil } func (this *ApprovalWork) Validate() error { return nil } func (this *Work) Validate() error { for _, item := range this.ApprovalWorks { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalWorks", err) } } } return nil } func (this *ApprovalExhibition) Validate() error { for _, item := range this.Artworks { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Artworks", err) } } } if this.ArtExhibitionDetail != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ArtExhibitionDetail); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ArtExhibitionDetail", err) } } return nil } func (this *Exhibition) Validate() error { for _, item := range this.ApprovalExhibitions { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalExhibitions", err) } } } return nil } func (this *Artwork) Validate() error { return nil } func (this *ArtExhibitionDetail) Validate() error { return nil } func (this *BundlePayPrice) Validate() error { return nil } func (this *CreateRequest) Validate() error { if this.Domain == "" { return github_com_mwitkow_go_proto_validators.FieldError("Domain", fmt.Errorf(`70001`)) } if this.Type == "" { return github_com_mwitkow_go_proto_validators.FieldError("Type", fmt.Errorf(`70009`)) } for _, item := range this.CopyUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CopyUsers", err) } } } if this.Work != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Work); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Work", err) } } if this.Show != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Show); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Show", err) } } if this.Exhibition != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Exhibition); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Exhibition", err) } } if this.Bundle != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Bundle); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Bundle", err) } } for _, item := range this.ApprovalUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalUsers", err) } } } for _, item := range this.WorkFlows { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("WorkFlows", err) } } } for _, item := range this.CustomizeInfo { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CustomizeInfo", err) } } } if this.BundlePayPrice != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.BundlePayPrice); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("BundlePayPrice", err) } } if this.ApprovalOA != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ApprovalOA); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalOA", err) } } if this.FinancialForm != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.FinancialForm); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("FinancialForm", err) } } return nil } func (this *WorkFlow) Validate() error { return nil } func (this *DetailRequest) Validate() error { return nil } func (this *RemoveRequest) Validate() error { return nil } func (this *ApprovalResponse) Validate() error { return nil } func (this *RemoveResponse) Validate() error { return nil } func (this *ApprovalExhibitionRemove) Validate() error { return nil } func (this *ApprovalExhibitionRequest) Validate() error { return nil } func (this *ApprovalExhibitionDetail) Validate() error { return nil } func (this *CopyUser) Validate() error { return nil } func (this *ApprovalUser) Validate() error { return nil } func (this *SettingRequest) Validate() error { for _, item := range this.CopyUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CopyUsers", err) } } } for _, item := range this.ApprovalUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalUsers", err) } } } for _, item := range this.CustomizeInfo { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CustomizeInfo", err) } } } return nil } func (this *DetailSettingRequest) Validate() error { return nil } func (this *SettingResponse) Validate() error { return nil } func (this *ApplyTime) Validate() error { return nil } func (this *ApprovalOA) Validate() error { if this.LeaveApply != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.LeaveApply); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("LeaveApply", err) } } if this.OutWork != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.OutWork); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("OutWork", err) } } if this.MakeUp != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.MakeUp); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("MakeUp", err) } } if this.Turnover != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Turnover); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Turnover", err) } } if this.OverTime != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.OverTime); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("OverTime", err) } } if this.Leave != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Leave); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("Leave", err) } } return nil } func (this *LeaveApply) Validate() error { for _, item := range this.CopyUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CopyUsers", err) } } } for _, item := range this.ApprovalUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalUsers", err) } } } return nil } func (this *OutWorkApply) Validate() error { for _, item := range this.ApplyTimes { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApplyTimes", err) } } } for _, item := range this.CopyUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CopyUsers", err) } } } for _, item := range this.ApprovalUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalUsers", err) } } } return nil } func (this *MakeUpApply) Validate() error { for _, item := range this.ApplyTimes { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApplyTimes", err) } } } for _, item := range this.CopyUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CopyUsers", err) } } } for _, item := range this.ApprovalUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalUsers", err) } } } return nil } func (this *TurnoverApply) Validate() error { for _, item := range this.ApplyTimes { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApplyTimes", err) } } } for _, item := range this.CopyUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CopyUsers", err) } } } for _, item := range this.ApprovalUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalUsers", err) } } } return nil } func (this *OverTimeApply) Validate() error { for _, item := range this.ApplyTimes { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApplyTimes", err) } } } for _, item := range this.CopyUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CopyUsers", err) } } } for _, item := range this.ApprovalUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalUsers", err) } } } return nil } func (this *Leave) Validate() error { for _, item := range this.ApplyTimes { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApplyTimes", err) } } } for _, item := range this.CopyUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CopyUsers", err) } } } for _, item := range this.ApprovalUsers { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("ApprovalUsers", err) } } } return nil } func (this *UpdateApprovalOAUUIDReq) Validate() error { return nil } func (this *UpdateApprovalOAUUIDResponse) Validate() error { return nil } func (this *GetNameRequest) Validate() error { return nil } func (this *GetNameResponse) Validate() error { return nil } func (this *FinancialForm) Validate() error { for _, item := range this.CostInfo { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("CostInfo", err) } } } for _, item := range this.InvoiceInfo { if item != nil { if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { return github_com_mwitkow_go_proto_validators.FieldError("InvoiceInfo", err) } } } return nil } func (this *CostInfo) Validate() error { return nil } func (this *InvoiceInfo) Validate() error { return nil }