2025-02-20 12:40:39 +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:23:17 +00:00
|
|
|
_ "google.golang.org/protobuf/types/descriptorpb"
|
|
|
|
_ "github.com/mwitkow/go-proto-validators"
|
2025-02-20 12:40:39 +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 {
|
2025-05-28 01:34:43 +00:00
|
|
|
for _, item := range this.SelectValueAddService {
|
|
|
|
if item != nil {
|
|
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
|
|
|
return github_com_mwitkow_go_proto_validators.FieldError("SelectValueAddService", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for _, item := range this.BundleProfileLang {
|
|
|
|
if item != nil {
|
|
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
|
|
|
return github_com_mwitkow_go_proto_validators.FieldError("BundleProfileLang", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *BundleProfileLang) Validate() error {
|
|
|
|
for _, item := range this.ValueAddServiceLang {
|
|
|
|
if item != nil {
|
|
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
|
|
|
return github_com_mwitkow_go_proto_validators.FieldError("ValueAddServiceLang", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *SaveResponse) Validate() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *SelectValueAddService) Validate() error {
|
2025-02-20 12:40:39 +00:00
|
|
|
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
|
|
|
|
}
|
2025-05-28 01:34:43 +00:00
|
|
|
func (this *HandShelfRequest) Validate() error {
|
|
|
|
return nil
|
|
|
|
}
|
2025-02-20 12:40:39 +00:00
|
|
|
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
|
|
|
|
}
|
2025-05-28 01:34:43 +00:00
|
|
|
func (this *BundleDetailResponseV2) 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)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for _, item := range this.SelectValueAddService {
|
|
|
|
if item != nil {
|
|
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
|
|
|
return github_com_mwitkow_go_proto_validators.FieldError("SelectValueAddService", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2025-02-20 12:40:39 +00:00
|
|
|
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:09 +00:00
|
|
|
func (this *ValueAddBundleProfile) Validate() error {
|
|
|
|
return nil
|
|
|
|
}
|
2025-03-28 01:23:17 +00:00
|
|
|
func (this *CreateValueAddBundleRequest) Validate() error {
|
|
|
|
if !(this.Num > 29) {
|
|
|
|
return github_com_mwitkow_go_proto_validators.FieldError("Num", fmt.Errorf(`至少数为30,最多数为100`))
|
|
|
|
}
|
|
|
|
if !(this.Num < 101) {
|
|
|
|
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:09 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *ValueAddBundleListRequest) Validate() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *ValueAddBundleListResponse) Validate() error {
|
2025-03-28 01:23:17 +00:00
|
|
|
for _, item := range this.Data {
|
2025-03-25 08:30:09 +00:00
|
|
|
if item != nil {
|
|
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
2025-03-28 01:23:17 +00:00
|
|
|
return github_com_mwitkow_go_proto_validators.FieldError("Data", err)
|
2025-03-25 08:30:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *ValueAddBundleDetailRequest) Validate() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *ValueAddBundleDetailResponse) Validate() error {
|
2025-03-28 01:23:17 +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:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2025-05-09 02:07:34 +00:00
|
|
|
func (this *FinancialConfirmationRequest) Validate() error {
|
|
|
|
return nil
|
|
|
|
}
|
2025-05-28 01:34:43 +00:00
|
|
|
func (this *ValueAddService) Validate() error {
|
|
|
|
for _, item := range this.ServiceLang {
|
|
|
|
if item != nil {
|
|
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
|
|
|
return github_com_mwitkow_go_proto_validators.FieldError("ServiceLang", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *ValueAddServiceLang) Validate() error {
|
|
|
|
for _, item := range this.Options {
|
|
|
|
if item != nil {
|
|
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
|
|
|
return github_com_mwitkow_go_proto_validators.FieldError("Options", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *ValueAddPriceOptions) Validate() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *ValueAddServiceListRequest) Validate() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *ValueAddServiceListResponse) Validate() error {
|
|
|
|
for _, item := range this.ValueAddServiceList {
|
|
|
|
if item != nil {
|
|
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
|
|
|
|
return github_com_mwitkow_go_proto_validators.FieldError("ValueAddServiceList", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *ValueAddServiceDetailRequest) Validate() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (this *ValueAddServiceDetailResponse) Validate() error {
|
|
|
|
if this.ValueAddServiceLang != nil {
|
|
|
|
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ValueAddServiceLang); err != nil {
|
|
|
|
return github_com_mwitkow_go_proto_validators.FieldError("ValueAddServiceLang", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|