fonchain-fiee/api/bundle/bundle.validator.pb.go

119 lines
3.3 KiB
Go
Raw Normal View History

2025-02-20 08:38:16 +00:00
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: pb/bundle.proto
package bundle
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
2025-03-28 01:25:54 +00:00
_ "google.golang.org/protobuf/types/descriptorpb"
_ "github.com/mwitkow/go-proto-validators"
2025-02-20 08:38:16 +00:00
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 *BundleProfile) Validate() error {
return nil
}
func (this *DelBundleRequest) Validate() error {
return nil
}
func (this *BundleListRequest) Validate() error {
return nil
}
func (this *BundleListResponse) Validate() error {
for _, item := range this.Bundles {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("Bundles", err)
}
}
}
return nil
}
func (this *BundleDetailRequest) Validate() error {
return nil
}
func (this *BundleDetailResponse) Validate() error {
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 *OrderRecord) Validate() error {
return nil
}
func (this *OrderRecordsRequest) Validate() error {
return nil
}
func (this *OrderRecordsResponse) Validate() error {
for _, item := range this.OrderRecords {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("OrderRecords", err)
}
}
}
return nil
}
func (this *OrderRecordsDetailRequest) Validate() error {
return nil
}
func (this *OrderRecordsDetailResponse) Validate() error {
if this.OrderRecord != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.OrderRecord); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("OrderRecord", err)
}
}
return nil
}
2025-03-25 08:30:58 +00:00
func (this *ValueAddBundleProfile) Validate() error {
return nil
}
2025-03-28 01:25:54 +00:00
func (this *CreateValueAddBundleRequest) Validate() error {
2025-03-28 02:55:24 +00:00
if !(this.Num > 29) {
2025-03-28 01:25:54 +00:00
return github_com_mwitkow_go_proto_validators.FieldError("Num", fmt.Errorf(`至少数为30,最多数为100`))
}
2025-03-28 02:55:24 +00:00
if !(this.Num < 101) {
2025-03-28 01:25:54 +00:00
return github_com_mwitkow_go_proto_validators.FieldError("Num", fmt.Errorf(`至少数为30,最多数为100`))
}
return nil
}
func (this *CreateValueAddBundleResponse) Validate() error {
2025-03-25 08:30:58 +00:00
return nil
}
func (this *ValueAddBundleListRequest) Validate() error {
return nil
}
func (this *ValueAddBundleListResponse) Validate() error {
2025-03-28 01:25:54 +00:00
for _, item := range this.Data {
2025-03-25 08:30:58 +00:00
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
2025-03-28 01:25:54 +00:00
return github_com_mwitkow_go_proto_validators.FieldError("Data", err)
2025-03-25 08:30:58 +00:00
}
}
}
return nil
}
func (this *ValueAddBundleDetailRequest) Validate() error {
return nil
}
func (this *ValueAddBundleDetailResponse) Validate() error {
2025-03-28 01:25:54 +00:00
if this.Data != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Data); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("Data", err)
2025-03-25 08:30:58 +00:00
}
}
return nil
}