feat(gl): scaffold general ledger grpc service
This commit is contained in:
@@ -0,0 +1,368 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc (unknown)
|
||||
// source: base/v1/msg.proto
|
||||
|
||||
package basev1
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type Empty struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Empty) Reset() {
|
||||
*x = Empty{}
|
||||
mi := &file_base_v1_msg_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Empty) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Empty) ProtoMessage() {}
|
||||
|
||||
func (x *Empty) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_base_v1_msg_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
||||
func (*Empty) Descriptor() ([]byte, []int) {
|
||||
return file_base_v1_msg_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type StatusRes struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *StatusRes) Reset() {
|
||||
*x = StatusRes{}
|
||||
mi := &file_base_v1_msg_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *StatusRes) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StatusRes) ProtoMessage() {}
|
||||
|
||||
func (x *StatusRes) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_base_v1_msg_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use StatusRes.ProtoReflect.Descriptor instead.
|
||||
func (*StatusRes) Descriptor() ([]byte, []int) {
|
||||
return file_base_v1_msg_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *StatusRes) GetSuccess() bool {
|
||||
if x != nil {
|
||||
return x.Success
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type IdRes struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *IdRes) Reset() {
|
||||
*x = IdRes{}
|
||||
mi := &file_base_v1_msg_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *IdRes) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IdRes) ProtoMessage() {}
|
||||
|
||||
func (x *IdRes) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_base_v1_msg_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use IdRes.ProtoReflect.Descriptor instead.
|
||||
func (*IdRes) Descriptor() ([]byte, []int) {
|
||||
return file_base_v1_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *IdRes) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type IdReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *IdReq) Reset() {
|
||||
*x = IdReq{}
|
||||
mi := &file_base_v1_msg_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *IdReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IdReq) ProtoMessage() {}
|
||||
|
||||
func (x *IdReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_base_v1_msg_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use IdReq.ProtoReflect.Descriptor instead.
|
||||
func (*IdReq) Descriptor() ([]byte, []int) {
|
||||
return file_base_v1_msg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *IdReq) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type YesNoRes struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Yes bool `protobuf:"varint,1,opt,name=yes,proto3" json:"yes,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *YesNoRes) Reset() {
|
||||
*x = YesNoRes{}
|
||||
mi := &file_base_v1_msg_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *YesNoRes) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*YesNoRes) ProtoMessage() {}
|
||||
|
||||
func (x *YesNoRes) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_base_v1_msg_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use YesNoRes.ProtoReflect.Descriptor instead.
|
||||
func (*YesNoRes) Descriptor() ([]byte, []int) {
|
||||
return file_base_v1_msg_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *YesNoRes) GetYes() bool {
|
||||
if x != nil {
|
||||
return x.Yes
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type PaginationRespSample struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
PageNo uint32 `protobuf:"varint,2,opt,name=page_no,json=pageNo,proto3" json:"page_no,omitempty"`
|
||||
PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
TotalCount uint32 `protobuf:"varint,4,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *PaginationRespSample) Reset() {
|
||||
*x = PaginationRespSample{}
|
||||
mi := &file_base_v1_msg_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *PaginationRespSample) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PaginationRespSample) ProtoMessage() {}
|
||||
|
||||
func (x *PaginationRespSample) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_base_v1_msg_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PaginationRespSample.ProtoReflect.Descriptor instead.
|
||||
func (*PaginationRespSample) Descriptor() ([]byte, []int) {
|
||||
return file_base_v1_msg_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *PaginationRespSample) GetPageNo() uint32 {
|
||||
if x != nil {
|
||||
return x.PageNo
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *PaginationRespSample) GetPageSize() uint32 {
|
||||
if x != nil {
|
||||
return x.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *PaginationRespSample) GetTotalCount() uint32 {
|
||||
if x != nil {
|
||||
return x.TotalCount
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
var File_base_v1_msg_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_base_v1_msg_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x11base/v1/msg.proto\x12\abase.v1\"\a\n" +
|
||||
"\x05Empty\"%\n" +
|
||||
"\tStatusRes\x12\x18\n" +
|
||||
"\asuccess\x18\x01 \x01(\bR\asuccess\"\x17\n" +
|
||||
"\x05IdRes\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\"\x17\n" +
|
||||
"\x05IdReq\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\"\x1c\n" +
|
||||
"\bYesNoRes\x12\x10\n" +
|
||||
"\x03yes\x18\x01 \x01(\bR\x03yes\"m\n" +
|
||||
"\x14PaginationRespSample\x12\x17\n" +
|
||||
"\apage_no\x18\x02 \x01(\rR\x06pageNo\x12\x1b\n" +
|
||||
"\tpage_size\x18\x03 \x01(\rR\bpageSize\x12\x1f\n" +
|
||||
"\vtotal_count\x18\x04 \x01(\rR\n" +
|
||||
"totalCountBk\n" +
|
||||
"\vcom.base.v1B\bMsgProtoP\x01Z\x15gl/gen/base/v1;basev1\xa2\x02\x03BXX\xaa\x02\aBase.V1\xca\x02\aBase\\V1\xe2\x02\x13Base\\V1\\GPBMetadata\xea\x02\bBase::V1b\x06proto3"
|
||||
|
||||
var (
|
||||
file_base_v1_msg_proto_rawDescOnce sync.Once
|
||||
file_base_v1_msg_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_base_v1_msg_proto_rawDescGZIP() []byte {
|
||||
file_base_v1_msg_proto_rawDescOnce.Do(func() {
|
||||
file_base_v1_msg_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_base_v1_msg_proto_rawDesc), len(file_base_v1_msg_proto_rawDesc)))
|
||||
})
|
||||
return file_base_v1_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_base_v1_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_base_v1_msg_proto_goTypes = []any{
|
||||
(*Empty)(nil), // 0: base.v1.Empty
|
||||
(*StatusRes)(nil), // 1: base.v1.StatusRes
|
||||
(*IdRes)(nil), // 2: base.v1.IdRes
|
||||
(*IdReq)(nil), // 3: base.v1.IdReq
|
||||
(*YesNoRes)(nil), // 4: base.v1.YesNoRes
|
||||
(*PaginationRespSample)(nil), // 5: base.v1.PaginationRespSample
|
||||
}
|
||||
var file_base_v1_msg_proto_depIdxs = []int32{
|
||||
0, // [0:0] is the sub-list for method output_type
|
||||
0, // [0:0] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_base_v1_msg_proto_init() }
|
||||
func file_base_v1_msg_proto_init() {
|
||||
if File_base_v1_msg_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_base_v1_msg_proto_rawDesc), len(file_base_v1_msg_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_base_v1_msg_proto_goTypes,
|
||||
DependencyIndexes: file_base_v1_msg_proto_depIdxs,
|
||||
MessageInfos: file_base_v1_msg_proto_msgTypes,
|
||||
}.Build()
|
||||
File_base_v1_msg_proto = out.File
|
||||
file_base_v1_msg_proto_goTypes = nil
|
||||
file_base_v1_msg_proto_depIdxs = nil
|
||||
}
|
||||
Reference in New Issue
Block a user