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

182 lines
5.4 KiB
Go

// 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 *StatusRequest) Validate() error {
if _, ok := StatusType_name[int32(this.Status)]; !ok {
return github_com_mwitkow_go_proto_validators.FieldError("Status", fmt.Errorf(`状态非法`))
}
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(`环境变量必须要有`))
}
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 {
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 *CreateRequest) Validate() error {
if this.Domain == "" {
return github_com_mwitkow_go_proto_validators.FieldError("Domain", fmt.Errorf(`环境变量必须要有`))
}
if _, ok := StatusType_name[int32(this.Status)]; !ok {
return github_com_mwitkow_go_proto_validators.FieldError("Status", fmt.Errorf(`状态非法`))
}
if this.Type == "" {
return github_com_mwitkow_go_proto_validators.FieldError("Type", fmt.Errorf(`类型必须要有`))
}
if this.ApproverName == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ApproverName", fmt.Errorf(`提交人名称`))
}
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)
}
}
return nil
}
func (this *DetailRequest) 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 *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)
}
}
}
return nil
}
func (this *DetailSettingRequest) Validate() error {
return nil
}
func (this *SettingResponse) Validate() error {
return nil
}