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,12 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: staff.proto
// protoc-gen-go v1.36.11
// protoc v7.35.0
// source: module/ec/mall/proto/staff.proto
package mall
import (
protobuf "bsm/full/protobuf"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
@@ -34,7 +35,7 @@ type LoginRequest struct {
func (x *LoginRequest) Reset() {
*x = LoginRequest{}
mi := &file_staff_proto_msgTypes[0]
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -46,7 +47,7 @@ func (x *LoginRequest) String() string {
func (*LoginRequest) ProtoMessage() {}
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
mi := &file_staff_proto_msgTypes[0]
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -59,7 +60,7 @@ func (x *LoginRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) Descriptor() ([]byte, []int) {
return file_staff_proto_rawDescGZIP(), []int{0}
return file_module_ec_mall_proto_staff_proto_rawDescGZIP(), []int{0}
}
func (x *LoginRequest) GetAccount() string {
@@ -114,7 +115,7 @@ type LoginReply struct {
func (x *LoginReply) Reset() {
*x = LoginReply{}
mi := &file_staff_proto_msgTypes[1]
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -126,7 +127,7 @@ func (x *LoginReply) String() string {
func (*LoginReply) ProtoMessage() {}
func (x *LoginReply) ProtoReflect() protoreflect.Message {
mi := &file_staff_proto_msgTypes[1]
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -139,7 +140,7 @@ func (x *LoginReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) Descriptor() ([]byte, []int) {
return file_staff_proto_rawDescGZIP(), []int{1}
return file_module_ec_mall_proto_staff_proto_rawDescGZIP(), []int{1}
}
func (x *LoginReply) GetToken() string {
@@ -216,7 +217,7 @@ type SetAccountRequest struct {
func (x *SetAccountRequest) Reset() {
*x = SetAccountRequest{}
mi := &file_staff_proto_msgTypes[2]
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -228,7 +229,7 @@ func (x *SetAccountRequest) String() string {
func (*SetAccountRequest) ProtoMessage() {}
func (x *SetAccountRequest) ProtoReflect() protoreflect.Message {
mi := &file_staff_proto_msgTypes[2]
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -241,7 +242,7 @@ func (x *SetAccountRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SetAccountRequest.ProtoReflect.Descriptor instead.
func (*SetAccountRequest) Descriptor() ([]byte, []int) {
return file_staff_proto_rawDescGZIP(), []int{2}
return file_module_ec_mall_proto_staff_proto_rawDescGZIP(), []int{2}
}
func (x *SetAccountRequest) GetAccount() string {
@@ -285,7 +286,7 @@ type StaffItem struct {
func (x *StaffItem) Reset() {
*x = StaffItem{}
mi := &file_staff_proto_msgTypes[3]
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -297,7 +298,7 @@ func (x *StaffItem) String() string {
func (*StaffItem) ProtoMessage() {}
func (x *StaffItem) ProtoReflect() protoreflect.Message {
mi := &file_staff_proto_msgTypes[3]
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -310,7 +311,7 @@ func (x *StaffItem) ProtoReflect() protoreflect.Message {
// Deprecated: Use StaffItem.ProtoReflect.Descriptor instead.
func (*StaffItem) Descriptor() ([]byte, []int) {
return file_staff_proto_rawDescGZIP(), []int{3}
return file_module_ec_mall_proto_staff_proto_rawDescGZIP(), []int{3}
}
func (x *StaffItem) GetId() int64 {
@@ -407,7 +408,7 @@ type StaffListReply struct {
func (x *StaffListReply) Reset() {
*x = StaffListReply{}
mi := &file_staff_proto_msgTypes[4]
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -419,7 +420,7 @@ func (x *StaffListReply) String() string {
func (*StaffListReply) ProtoMessage() {}
func (x *StaffListReply) ProtoReflect() protoreflect.Message {
mi := &file_staff_proto_msgTypes[4]
mi := &file_module_ec_mall_proto_staff_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -432,7 +433,7 @@ func (x *StaffListReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use StaffListReply.ProtoReflect.Descriptor instead.
func (*StaffListReply) Descriptor() ([]byte, []int) {
return file_staff_proto_rawDescGZIP(), []int{4}
return file_module_ec_mall_proto_staff_proto_rawDescGZIP(), []int{4}
}
func (x *StaffListReply) GetData() []*StaffItem {
@@ -449,11 +450,11 @@ func (x *StaffListReply) GetCount() int64 {
return 0
}
var File_staff_proto protoreflect.FileDescriptor
var File_module_ec_mall_proto_staff_proto protoreflect.FileDescriptor
const file_staff_proto_rawDesc = "" +
const file_module_ec_mall_proto_staff_proto_rawDesc = "" +
"\n" +
"\x13ec/mall/staff.proto\x12\x04mall\x1a\x11mall/blocks.proto\"\x9e\x01\n" +
" module/ec/mall/proto/staff.proto\x12\x04mall\x1a\x15protobuf/blocks.proto\"\x9e\x01\n" +
"\fLoginRequest\x12\x18\n" +
"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x14\n" +
@@ -497,57 +498,57 @@ const file_staff_proto_rawDesc = "" +
"created_at\"K\n" +
"\x0eStaffListReply\x12#\n" +
"\x04data\x18\x01 \x03(\v2\x0f.mall.StaffItemR\x04data\x12\x14\n" +
"\x05count\x18\x02 \x01(\x03R\x05count2\xf6\x02\n" +
"\x05count\x18\x02 \x01(\x03R\x05count2\xa8\x03\n" +
"\x05Staff\x12/\n" +
"\x05Login\x12\x12.mall.LoginRequest\x1a\x10.mall.LoginReply\"\x00\x123\n" +
"\x05Fetch\x12\x12.mall.FetchRequest\x1a\x14.mall.StaffListReply\"\x00\x12.\n" +
"\x06Create\x12\x0f.mall.StaffItem\x1a\x11.mall.StatusReply\"\x00\x121\n" +
"\x06Delete\x12\x12.mall.IdentRequest\x1a\x11.mall.StatusReply\"\x00\x123\n" +
"\x05Login\x12\x12.mall.LoginRequest\x1a\x10.mall.LoginReply\"\x00\x129\n" +
"\x05Fetch\x12\x18.blocks.MallFetchRequest\x1a\x14.mall.StaffListReply\"\x00\x128\n" +
"\x06Create\x12\x0f.mall.StaffItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12=\n" +
"\x06Delete\x12\x14.blocks.IdentRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00\x125\n" +
"\n" +
"GetProfile\x12\x12.mall.IdentRequest\x1a\x0f.mall.StaffItem\"\x00\x122\n" +
"GetProfile\x12\x14.blocks.IdentRequest\x1a\x0f.mall.StaffItem\"\x00\x12<\n" +
"\n" +
"SetProfile\x12\x0f.mall.StaffItem\x1a\x11.mall.StatusReply\"\x00\x12;\n" +
"\vSetPassword\x12\x17.mall.SetAccountRequest\x1a\x11.mall.StatusReply\"\x00B\bZ\x06.;mallb\x06proto3"
"SetProfile\x12\x0f.mall.StaffItem\x1a\x1b.blocks.IdentityStatusReply\"\x00\x12E\n" +
"\vSetPassword\x12\x17.mall.SetAccountRequest\x1a\x1b.blocks.IdentityStatusReply\"\x00B!Z\x1fbsm/full/module/ec/mall/pb;mallb\x06proto3"
var (
file_staff_proto_rawDescOnce sync.Once
file_staff_proto_rawDescData []byte
file_module_ec_mall_proto_staff_proto_rawDescOnce sync.Once
file_module_ec_mall_proto_staff_proto_rawDescData []byte
)
func file_staff_proto_rawDescGZIP() []byte {
file_staff_proto_rawDescOnce.Do(func() {
file_staff_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_staff_proto_rawDesc), len(file_staff_proto_rawDesc)))
func file_module_ec_mall_proto_staff_proto_rawDescGZIP() []byte {
file_module_ec_mall_proto_staff_proto_rawDescOnce.Do(func() {
file_module_ec_mall_proto_staff_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_staff_proto_rawDesc), len(file_module_ec_mall_proto_staff_proto_rawDesc)))
})
return file_staff_proto_rawDescData
return file_module_ec_mall_proto_staff_proto_rawDescData
}
var file_staff_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_staff_proto_goTypes = []any{
(*LoginRequest)(nil), // 0: mall.LoginRequest
(*LoginReply)(nil), // 1: mall.LoginReply
(*SetAccountRequest)(nil), // 2: mall.SetAccountRequest
(*StaffItem)(nil), // 3: mall.StaffItem
(*StaffListReply)(nil), // 4: mall.StaffListReply
(*FetchRequest)(nil), // 5: mall.FetchRequest
(*IdentRequest)(nil), // 6: mall.IdentRequest
(*StatusReply)(nil), // 7: mall.StatusReply
var file_module_ec_mall_proto_staff_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_module_ec_mall_proto_staff_proto_goTypes = []any{
(*LoginRequest)(nil), // 0: mall.LoginRequest
(*LoginReply)(nil), // 1: mall.LoginReply
(*SetAccountRequest)(nil), // 2: mall.SetAccountRequest
(*StaffItem)(nil), // 3: mall.StaffItem
(*StaffListReply)(nil), // 4: mall.StaffListReply
(*protobuf.MallFetchRequest)(nil), // 5: blocks.MallFetchRequest
(*protobuf.IdentRequest)(nil), // 6: blocks.IdentRequest
(*protobuf.IdentityStatusReply)(nil), // 7: blocks.IdentityStatusReply
}
var file_staff_proto_depIdxs = []int32{
var file_module_ec_mall_proto_staff_proto_depIdxs = []int32{
3, // 0: mall.StaffListReply.data:type_name -> mall.StaffItem
0, // 1: mall.Staff.Login:input_type -> mall.LoginRequest
5, // 2: mall.Staff.Fetch:input_type -> mall.FetchRequest
5, // 2: mall.Staff.Fetch:input_type -> blocks.MallFetchRequest
3, // 3: mall.Staff.Create:input_type -> mall.StaffItem
6, // 4: mall.Staff.Delete:input_type -> mall.IdentRequest
6, // 5: mall.Staff.GetProfile:input_type -> mall.IdentRequest
6, // 4: mall.Staff.Delete:input_type -> blocks.IdentRequest
6, // 5: mall.Staff.GetProfile:input_type -> blocks.IdentRequest
3, // 6: mall.Staff.SetProfile:input_type -> mall.StaffItem
2, // 7: mall.Staff.SetPassword:input_type -> mall.SetAccountRequest
1, // 8: mall.Staff.Login:output_type -> mall.LoginReply
4, // 9: mall.Staff.Fetch:output_type -> mall.StaffListReply
7, // 10: mall.Staff.Create:output_type -> mall.StatusReply
7, // 11: mall.Staff.Delete:output_type -> mall.StatusReply
7, // 10: mall.Staff.Create:output_type -> blocks.IdentityStatusReply
7, // 11: mall.Staff.Delete:output_type -> blocks.IdentityStatusReply
3, // 12: mall.Staff.GetProfile:output_type -> mall.StaffItem
7, // 13: mall.Staff.SetProfile:output_type -> mall.StatusReply
7, // 14: mall.Staff.SetPassword:output_type -> mall.StatusReply
7, // 13: mall.Staff.SetProfile:output_type -> blocks.IdentityStatusReply
7, // 14: mall.Staff.SetPassword:output_type -> blocks.IdentityStatusReply
8, // [8:15] is the sub-list for method output_type
1, // [1:8] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
@@ -555,27 +556,26 @@ var file_staff_proto_depIdxs = []int32{
0, // [0:1] is the sub-list for field type_name
}
func init() { file_staff_proto_init() }
func file_staff_proto_init() {
if File_staff_proto != nil {
func init() { file_module_ec_mall_proto_staff_proto_init() }
func file_module_ec_mall_proto_staff_proto_init() {
if File_module_ec_mall_proto_staff_proto != nil {
return
}
file_blocks_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_staff_proto_rawDesc), len(file_staff_proto_rawDesc)),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_ec_mall_proto_staff_proto_rawDesc), len(file_module_ec_mall_proto_staff_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_staff_proto_goTypes,
DependencyIndexes: file_staff_proto_depIdxs,
MessageInfos: file_staff_proto_msgTypes,
GoTypes: file_module_ec_mall_proto_staff_proto_goTypes,
DependencyIndexes: file_module_ec_mall_proto_staff_proto_depIdxs,
MessageInfos: file_module_ec_mall_proto_staff_proto_msgTypes,
}.Build()
File_staff_proto = out.File
file_staff_proto_goTypes = nil
file_staff_proto_depIdxs = nil
File_module_ec_mall_proto_staff_proto = out.File
file_module_ec_mall_proto_staff_proto_goTypes = nil
file_module_ec_mall_proto_staff_proto_depIdxs = nil
}