优化数据

This commit is contained in:
Yavolte 2025-07-22 17:00:43 +08:00
parent 74446b2e3f
commit aea76b919d
7 changed files with 21 additions and 9 deletions

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-aeus. DO NOT EDIT.
// source: organize.proto
// date: 2025-07-22 16:57:29
// date: 2025-07-22 16:59:46
package pb

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-aeus. DO NOT EDIT.
// source: organize.proto
// date: 2025-07-22 16:57:29
// date: 2025-07-22 16:59:46
package pb

View File

@ -214,7 +214,8 @@ func (x *Activity) GetData() string {
type SettingItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@ -256,6 +257,13 @@ func (x *SettingItem) GetName() string {
return ""
}
func (x *SettingItem) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *SettingItem) GetValue() string {
if x != nil {
return x.Value
@ -383,10 +391,11 @@ const file_system_proto_rawDesc = "" +
"\x04data\x18\a \x01(\tBL\xb2\xb9\x19H\n" +
"\x1esize:10240;not null;default:''\x12\x06内容\x1a\x1elist;create;update;view;exportR\x04data:\x10\xba\xb9\x19\f\n" +
"\n" +
"activities\"7\n" +
"activities\"K\n" +
"\vSettingItem\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value\"\x13\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" +
"\x04type\x18\x02 \x01(\tR\x04type\x12\x14\n" +
"\x05value\x18\x03 \x01(\tR\x05value\"\x13\n" +
"\x11GetSettingRequest\"=\n" +
"\x12GetSettingResponse\x12'\n" +
"\x04data\x18\x01 \x03(\v2\x13.system.SettingItemR\x04data2n\n" +

View File

@ -329,6 +329,8 @@ func (m *SettingItem) validate(all bool) error {
// no validation rules for Name
// no validation rules for Type
// no validation rules for Value
if len(errors) > 0 {

View File

@ -42,7 +42,8 @@ message Activity {
message SettingItem {
string name = 1;
string value = 2;
string type = 2;
string value = 3;
}
message GetSettingRequest{}

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-aeus. DO NOT EDIT.
// source: system.proto
// date: 2025-07-22 16:57:29
// date: 2025-07-22 16:59:46
package pb

View File

@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-aeus. DO NOT EDIT.
// source: system.proto
// date: 2025-07-22 16:57:29
// date: 2025-07-22 16:59:46
package pb