fonchain-artistinfo/pb/artwork/artwork.validator.pb.go

337 lines
10 KiB
Go

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: pb/artwork.proto
package artwork
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/protobuf/types/descriptorpb"
_ "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 *TestReq) Validate() error {
return nil
}
func (this *TestResp) Validate() error {
return nil
}
func (this *CreArtProRequest) Validate() error {
if this.ArtworkName == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkName", fmt.Errorf(`画作名字不能为空`))
}
if this.ArtistName == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtistName", fmt.Errorf(`画家名字不能为空`))
}
if this.ArtistUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtistUuid", fmt.Errorf(`请选择画家`))
}
if !(this.ArtworkType > 0) {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkType", fmt.Errorf(`请选择创作类型`))
}
if !(this.CreateSource > 0) {
return github_com_mwitkow_go_proto_validators.FieldError("CreateSource", fmt.Errorf(`创建来源不合法`))
}
return nil
}
func (this *ArtworkAddRes) Validate() error {
return nil
}
func (this *CreArtProResponse) Validate() error {
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)
}
}
return nil
}
func (this *UpdateMInfoRequest) Validate() error {
return nil
}
func (this *UpdateMInfoResponse) Validate() error {
return nil
}
func (this *UpdateExtDataRequest) Validate() error {
return nil
}
func (this *UpdateExtDataResponse) Validate() error {
return nil
}
func (this *UpdateDigiInfoRequest) Validate() error {
return nil
}
func (this *UpdateDigiInfoResponse) Validate() error {
return nil
}
func (this *UpdateTagsRequest) Validate() error {
return nil
}
func (this *UpdateTagsResponse) Validate() error {
return nil
}
func (this *UpdateAuthDataRequest) 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 *UpdateAuthDataRequest_BitMap) Validate() error {
return nil
}
func (this *UpdateAuthDataResponse) Validate() error {
return nil
}
func (this *UpdateAuthImgRequest) Validate() error {
return nil
}
func (this *UpdateAuthImgResponse) Validate() error {
return nil
}
func (this *UpdateStorageRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`画家ID不能为空`))
}
if !(this.Type > 0) {
return github_com_mwitkow_go_proto_validators.FieldError("Type", fmt.Errorf(`类型不合法`))
}
if this.Detail == "" {
return github_com_mwitkow_go_proto_validators.FieldError("Detail", fmt.Errorf(`详情不能为空`))
}
if this.ArtistData != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ArtistData); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("ArtistData", err)
}
}
return nil
}
func (this *UpdateStorageRequest_ArtistInfo) Validate() error {
return nil
}
func (this *UpdateStorageResponse) Validate() error {
return nil
}
func (this *UploadBatchImgRequest) 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 *UploadBatchImgRequest_ImgInfo) Validate() error {
return nil
}
func (this *UploadBatchImgResponse) Validate() error {
return nil
}
func (this *ArtworkDetailRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`画作ID不能为空`))
}
return nil
}
func (this *ArtworkDetailResponse) Validate() error {
if this.ProfileInfo != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ProfileInfo); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("ProfileInfo", err)
}
}
for _, item := range this.MarketInfo {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("MarketInfo", err)
}
}
}
if this.ExtDataInfo != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.ExtDataInfo); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("ExtDataInfo", err)
}
}
if this.DigiInfo != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.DigiInfo); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("DigiInfo", err)
}
}
if this.AuthData != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.AuthData); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("AuthData", err)
}
}
for _, item := range this.TagsData {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("TagsData", err)
}
}
}
if this.CopyRightInfo != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.CopyRightInfo); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("CopyRightInfo", err)
}
}
for _, item := range this.VerifyData {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("VerifyData", err)
}
}
}
return nil
}
func (this *ArtworkDetailResponse_TagsInfo) Validate() error {
return nil
}
func (this *StorageInfoRequest) Validate() error {
return nil
}
func (this *StorageInfoResponse) Validate() error {
for _, item := range this.StorageData {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("StorageData", err)
}
}
}
return nil
}
func (this *MarketInfoRequest) Validate() error {
return nil
}
func (this *MarketInfoResponse) Validate() error {
for _, item := range this.MarketInfo {
if item != nil {
if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil {
return github_com_mwitkow_go_proto_validators.FieldError("MarketInfo", err)
}
}
}
return nil
}
func (this *UpArtistInfoRequest) 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 *UpArtistInfoRequest_ArtistInfo) Validate() error {
return nil
}
func (this *UpArtistInfoResponse) Validate() error {
return nil
}
func (this *RandomHashRequest) Validate() error {
return nil
}
func (this *RandomHashResponse) Validate() error {
return nil
}
func (this *UpdateCopyrightInfoRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
return nil
}
func (this *UpdateCopyrightInfoResponse) Validate() error {
return nil
}
func (this *UpdateTransferInfoRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
return nil
}
func (this *UpdateTransferInfoResponse) Validate() error {
return nil
}
func (this *TransferInfoListRequest) Validate() error {
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
return nil
}
func (this *TransferInfoListResponse) 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 *UpdateRulerInfoRequest) Validate() error {
return nil
}
func (this *UpdateRulerInfoResponse) Validate() error {
return nil
}
func (this *UpdateAwPriceRunRequest) 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 *UpdateAwPriceRunRequest_Info) Validate() error {
return nil
}
func (this *UpdateAwPriceRunResponse) Validate() error {
return nil
}
func (this *UpdateCrHashByTfnumRequest) 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 *UpdateCrHashByTfnumRequest_Info) Validate() error {
return nil
}
func (this *UpdateCrHashByTfnumResponse) Validate() error {
return nil
}
func (this *BitMap) Validate() error {
return nil
}
func (this *UpdateVerifyDataReq) 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)
}
}
}
if this.ArtworkUuid == "" {
return github_com_mwitkow_go_proto_validators.FieldError("ArtworkUuid", fmt.Errorf(`请选择画作`))
}
return nil
}
func (this *UpdateVerifyDataResp) Validate() error {
return nil
}