From 24ad759c50634ce5bcf19cd247b12cabe26c09f6 Mon Sep 17 00:00:00 2001 From: Yavolte Date: Thu, 24 Jul 2025 16:26:36 +0800 Subject: [PATCH] add rest condition field --- pkg/proto/rest/rest.pb.go | 13 +++++++++++-- pkg/proto/rest/rest.proto | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/pkg/proto/rest/rest.pb.go b/pkg/proto/rest/rest.pb.go index eb610dc..1a53e76 100644 --- a/pkg/proto/rest/rest.pb.go +++ b/pkg/proto/rest/rest.pb.go @@ -41,6 +41,7 @@ type RestFieldOptions struct { Description string `protobuf:"bytes,15,opt,name=description,proto3" json:"description,omitempty"` Readonly string `protobuf:"bytes,16,opt,name=readonly,proto3" json:"readonly,omitempty"` Endofnow string `protobuf:"bytes,17,opt,name=endofnow,proto3" json:"endofnow,omitempty"` + Condition string `protobuf:"bytes,18,opt,name=condition,proto3" json:"condition,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -194,6 +195,13 @@ func (x *RestFieldOptions) GetEndofnow() string { return "" } +func (x *RestFieldOptions) GetCondition() string { + if x != nil { + return x.Condition + } + return "" +} + type RestMessageOptions struct { state protoimpl.MessageState `protogen:"open.v1"` Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"` @@ -278,7 +286,7 @@ var File_rest_proto protoreflect.FileDescriptor const file_rest_proto_rawDesc = "" + "\n" + "\n" + - "rest.proto\x12\x04aeus\x1a google/protobuf/descriptor.proto\"\xc6\x03\n" + + "rest.proto\x12\x04aeus\x1a google/protobuf/descriptor.proto\"\xe4\x03\n" + "\x10RestFieldOptions\x12\x12\n" + "\x04gorm\x18\x01 \x01(\tR\x04gorm\x12\x18\n" + "\acomment\x18\x02 \x01(\tR\acomment\x12\x1c\n" + @@ -297,7 +305,8 @@ const file_rest_proto_rawDesc = "" + "\tuploaduri\x18\x0e \x01(\tR\tuploaduri\x12 \n" + "\vdescription\x18\x0f \x01(\tR\vdescription\x12\x1a\n" + "\breadonly\x18\x10 \x01(\tR\breadonly\x12\x1a\n" + - "\bendofnow\x18\x11 \x01(\tR\bendofnow\"*\n" + + "\bendofnow\x18\x11 \x01(\tR\bendofnow\x12\x1c\n" + + "\tcondition\x18\x12 \x01(\tR\tcondition\"*\n" + "\x12RestMessageOptions\x12\x14\n" + "\x05table\x18\x01 \x01(\tR\x05table:M\n" + "\x05field\x12\x1d.google.protobuf.FieldOptions\x18\x96\x97\x03 \x01(\v2\x16.aeus.RestFieldOptionsR\x05field:O\n" + diff --git a/pkg/proto/rest/rest.proto b/pkg/proto/rest/rest.proto index 91a2987..6ac8010 100644 --- a/pkg/proto/rest/rest.proto +++ b/pkg/proto/rest/rest.proto @@ -31,6 +31,7 @@ message RestFieldOptions { string description = 15; string readonly = 16; string endofnow = 17; + string condition = 18; } extend google.protobuf.MessageOptions {