refactor: centralize protobuf and remove go-zero

This commit is contained in:
2026-08-09 15:10:19 +08:00
parent 5cc5fd92ed
commit 4bbed3156c
357 changed files with 14208 additions and 19903 deletions

View File

@@ -1,8 +1,8 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: check.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/base/initial/proto/check.proto
package initial
@@ -30,7 +30,7 @@ type Crc struct {
func (x *Crc) Reset() {
*x = Crc{}
mi := &file_check_proto_msgTypes[0]
mi := &file_module_base_initial_proto_check_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -42,7 +42,7 @@ func (x *Crc) String() string {
func (*Crc) ProtoMessage() {}
func (x *Crc) ProtoReflect() protoreflect.Message {
mi := &file_check_proto_msgTypes[0]
mi := &file_module_base_initial_proto_check_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -55,7 +55,7 @@ func (x *Crc) ProtoReflect() protoreflect.Message {
// Deprecated: Use Crc.ProtoReflect.Descriptor instead.
func (*Crc) Descriptor() ([]byte, []int) {
return file_check_proto_rawDescGZIP(), []int{0}
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{0}
}
func (x *Crc) GetCode() string {
@@ -77,7 +77,7 @@ type StatusReply struct {
func (x *StatusReply) Reset() {
*x = StatusReply{}
mi := &file_check_proto_msgTypes[1]
mi := &file_module_base_initial_proto_check_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -89,7 +89,7 @@ func (x *StatusReply) String() string {
func (*StatusReply) ProtoMessage() {}
func (x *StatusReply) ProtoReflect() protoreflect.Message {
mi := &file_check_proto_msgTypes[1]
mi := &file_module_base_initial_proto_check_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -102,7 +102,7 @@ func (x *StatusReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use StatusReply.ProtoReflect.Descriptor instead.
func (*StatusReply) Descriptor() ([]byte, []int) {
return file_check_proto_rawDescGZIP(), []int{1}
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{1}
}
func (x *StatusReply) GetCode() int32 {
@@ -143,7 +143,7 @@ type ConfigRequest struct {
func (x *ConfigRequest) Reset() {
*x = ConfigRequest{}
mi := &file_check_proto_msgTypes[2]
mi := &file_module_base_initial_proto_check_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -155,7 +155,7 @@ func (x *ConfigRequest) String() string {
func (*ConfigRequest) ProtoMessage() {}
func (x *ConfigRequest) ProtoReflect() protoreflect.Message {
mi := &file_check_proto_msgTypes[2]
mi := &file_module_base_initial_proto_check_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -168,7 +168,7 @@ func (x *ConfigRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ConfigRequest.ProtoReflect.Descriptor instead.
func (*ConfigRequest) Descriptor() ([]byte, []int) {
return file_check_proto_rawDescGZIP(), []int{2}
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{2}
}
func (x *ConfigRequest) GetApp() string {
@@ -194,7 +194,7 @@ type ConfigReply struct {
func (x *ConfigReply) Reset() {
*x = ConfigReply{}
mi := &file_check_proto_msgTypes[3]
mi := &file_module_base_initial_proto_check_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -206,7 +206,7 @@ func (x *ConfigReply) String() string {
func (*ConfigReply) ProtoMessage() {}
func (x *ConfigReply) ProtoReflect() protoreflect.Message {
mi := &file_check_proto_msgTypes[3]
mi := &file_module_base_initial_proto_check_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -219,7 +219,7 @@ func (x *ConfigReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use ConfigReply.ProtoReflect.Descriptor instead.
func (*ConfigReply) Descriptor() ([]byte, []int) {
return file_check_proto_rawDescGZIP(), []int{3}
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{3}
}
func (x *ConfigReply) GetData() []*ConfigItem {
@@ -241,7 +241,7 @@ type ConfigItem struct {
func (x *ConfigItem) Reset() {
*x = ConfigItem{}
mi := &file_check_proto_msgTypes[4]
mi := &file_module_base_initial_proto_check_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -253,7 +253,7 @@ func (x *ConfigItem) String() string {
func (*ConfigItem) ProtoMessage() {}
func (x *ConfigItem) ProtoReflect() protoreflect.Message {
mi := &file_check_proto_msgTypes[4]
mi := &file_module_base_initial_proto_check_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -266,7 +266,7 @@ func (x *ConfigItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use ConfigItem.ProtoReflect.Descriptor instead.
func (*ConfigItem) Descriptor() ([]byte, []int) {
return file_check_proto_rawDescGZIP(), []int{4}
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{4}
}
func (x *ConfigItem) GetIdentity() string {
@@ -309,7 +309,7 @@ type CheckForUpdatesRequest struct {
func (x *CheckForUpdatesRequest) Reset() {
*x = CheckForUpdatesRequest{}
mi := &file_check_proto_msgTypes[5]
mi := &file_module_base_initial_proto_check_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -321,7 +321,7 @@ func (x *CheckForUpdatesRequest) String() string {
func (*CheckForUpdatesRequest) ProtoMessage() {}
func (x *CheckForUpdatesRequest) ProtoReflect() protoreflect.Message {
mi := &file_check_proto_msgTypes[5]
mi := &file_module_base_initial_proto_check_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -334,7 +334,7 @@ func (x *CheckForUpdatesRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CheckForUpdatesRequest.ProtoReflect.Descriptor instead.
func (*CheckForUpdatesRequest) Descriptor() ([]byte, []int) {
return file_check_proto_rawDescGZIP(), []int{5}
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{5}
}
func (x *CheckForUpdatesRequest) GetApp() string {
@@ -378,7 +378,7 @@ type CheckForUpdatesReply struct {
func (x *CheckForUpdatesReply) Reset() {
*x = CheckForUpdatesReply{}
mi := &file_check_proto_msgTypes[6]
mi := &file_module_base_initial_proto_check_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -390,7 +390,7 @@ func (x *CheckForUpdatesReply) String() string {
func (*CheckForUpdatesReply) ProtoMessage() {}
func (x *CheckForUpdatesReply) ProtoReflect() protoreflect.Message {
mi := &file_check_proto_msgTypes[6]
mi := &file_module_base_initial_proto_check_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -403,7 +403,7 @@ func (x *CheckForUpdatesReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use CheckForUpdatesReply.ProtoReflect.Descriptor instead.
func (*CheckForUpdatesReply) Descriptor() ([]byte, []int) {
return file_check_proto_rawDescGZIP(), []int{6}
return file_module_base_initial_proto_check_proto_rawDescGZIP(), []int{6}
}
func (x *CheckForUpdatesReply) GetIdentity() string {
@@ -441,11 +441,11 @@ func (x *CheckForUpdatesReply) GetPubdate() string {
return ""
}
var File_check_proto protoreflect.FileDescriptor
var File_module_base_initial_proto_check_proto protoreflect.FileDescriptor
const file_check_proto_rawDesc = "" +
const file_module_base_initial_proto_check_proto_rawDesc = "" +
"\n" +
"\x18base/initial/check.proto\x12\ainitial\"\x19\n" +
"%module/base/initial/proto/check.proto\x12\ainitial\"\x19\n" +
"\x03Crc\x12\x12\n" +
"\x04code\x18\x01 \x01(\tR\x04code\"o\n" +
"\vStatusReply\x12\x12\n" +
@@ -478,22 +478,22 @@ const file_check_proto_rawDesc = "" +
"\x05Check\x12-\n" +
"\x05Hello\x12\f.initial.Crc\x1a\x14.initial.StatusReply\"\x00\x128\n" +
"\x06Config\x12\x16.initial.ConfigRequest\x1a\x14.initial.ConfigReply\"\x00\x12K\n" +
"\aUpdates\x12\x1f.initial.CheckForUpdatesRequest\x1a\x1d.initial.CheckForUpdatesReply\"\x00B\vZ\t.;initialb\x06proto3"
"\aUpdates\x12\x1f.initial.CheckForUpdatesRequest\x1a\x1d.initial.CheckForUpdatesReply\"\x00B)Z'bsm/full/module/base/initial/pb;initialb\x06proto3"
var (
file_check_proto_rawDescOnce sync.Once
file_check_proto_rawDescData []byte
file_module_base_initial_proto_check_proto_rawDescOnce sync.Once
file_module_base_initial_proto_check_proto_rawDescData []byte
)
func file_check_proto_rawDescGZIP() []byte {
file_check_proto_rawDescOnce.Do(func() {
file_check_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_check_proto_rawDesc), len(file_check_proto_rawDesc)))
func file_module_base_initial_proto_check_proto_rawDescGZIP() []byte {
file_module_base_initial_proto_check_proto_rawDescOnce.Do(func() {
file_module_base_initial_proto_check_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_base_initial_proto_check_proto_rawDesc), len(file_module_base_initial_proto_check_proto_rawDesc)))
})
return file_check_proto_rawDescData
return file_module_base_initial_proto_check_proto_rawDescData
}
var file_check_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_check_proto_goTypes = []any{
var file_module_base_initial_proto_check_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_module_base_initial_proto_check_proto_goTypes = []any{
(*Crc)(nil), // 0: initial.Crc
(*StatusReply)(nil), // 1: initial.StatusReply
(*ConfigRequest)(nil), // 2: initial.ConfigRequest
@@ -502,7 +502,7 @@ var file_check_proto_goTypes = []any{
(*CheckForUpdatesRequest)(nil), // 5: initial.CheckForUpdatesRequest
(*CheckForUpdatesReply)(nil), // 6: initial.CheckForUpdatesReply
}
var file_check_proto_depIdxs = []int32{
var file_module_base_initial_proto_check_proto_depIdxs = []int32{
4, // 0: initial.ConfigReply.data:type_name -> initial.ConfigItem
0, // 1: initial.Check.Hello:input_type -> initial.Crc
2, // 2: initial.Check.Config:input_type -> initial.ConfigRequest
@@ -517,26 +517,26 @@ var file_check_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name
}
func init() { file_check_proto_init() }
func file_check_proto_init() {
if File_check_proto != nil {
func init() { file_module_base_initial_proto_check_proto_init() }
func file_module_base_initial_proto_check_proto_init() {
if File_module_base_initial_proto_check_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_check_proto_rawDesc), len(file_check_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_base_initial_proto_check_proto_rawDesc), len(file_module_base_initial_proto_check_proto_rawDesc)),
NumEnums: 0,
NumMessages: 7,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_check_proto_goTypes,
DependencyIndexes: file_check_proto_depIdxs,
MessageInfos: file_check_proto_msgTypes,
GoTypes: file_module_base_initial_proto_check_proto_goTypes,
DependencyIndexes: file_module_base_initial_proto_check_proto_depIdxs,
MessageInfos: file_module_base_initial_proto_check_proto_msgTypes,
}.Build()
File_check_proto = out.File
file_check_proto_goTypes = nil
file_check_proto_depIdxs = nil
File_module_base_initial_proto_check_proto = out.File
file_module_base_initial_proto_check_proto_goTypes = nil
file_module_base_initial_proto_check_proto_depIdxs = nil
}