add application number

This commit is contained in:
2026-03-16 01:56:50 +07:00
parent 3a30123096
commit 825d330056
11 changed files with 99 additions and 12 deletions
+11 -2
View File
@@ -535,6 +535,7 @@ type Application struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
Number string `protobuf:"bytes,4,opt,name=number,proto3" json:"number,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -590,6 +591,13 @@ func (x *Application) GetState() string {
return ""
}
func (x *Application) GetNumber() string {
if x != nil {
return x.Number
}
return ""
}
type Door struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
@@ -1736,11 +1744,12 @@ const file_main_proto_rawDesc = "" +
"\bpassword\x18\x03 \x01(\tR\bpassword\x12\x10\n" +
"\x03url\x18\x04 \x01(\tR\x03url\x12\x1c\n" +
"\tspendTime\x18\x05 \x01(\x03R\tspendTime\x12H\n" +
"\fapplications\x18\x06 \x03(\v2$.crabs.evening_detective.ApplicationR\fapplications\"G\n" +
"\fapplications\x18\x06 \x03(\v2$.crabs.evening_detective.ApplicationR\fapplications\"_\n" +
"\vApplication\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" +
"\x05state\x18\x03 \x01(\tR\x05state\"B\n" +
"\x05state\x18\x03 \x01(\tR\x05state\x12\x16\n" +
"\x06number\x18\x04 \x01(\tR\x06number\"B\n" +
"\x04Door\x12\x12\n" +
"\x04code\x18\x01 \x01(\tR\x04code\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +