购买月卡

This commit is contained in:
meixiongfeng 2022-11-23 18:03:41 +08:00
parent 7465615e86
commit 83114052fa

View File

@ -107,6 +107,101 @@ func (x *PrivilegeGetListResp) GetData() []*DBPrivilege {
return nil
}
// 购买月卡
type PrivilegeBuyYuekaReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
PType int32 `protobuf:"varint,1,opt,name=pType,proto3" json:"pType"`
}
func (x *PrivilegeBuyYuekaReq) Reset() {
*x = PrivilegeBuyYuekaReq{}
if protoimpl.UnsafeEnabled {
mi := &file_privilege_privilege_msg_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PrivilegeBuyYuekaReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PrivilegeBuyYuekaReq) ProtoMessage() {}
func (x *PrivilegeBuyYuekaReq) ProtoReflect() protoreflect.Message {
mi := &file_privilege_privilege_msg_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PrivilegeBuyYuekaReq.ProtoReflect.Descriptor instead.
func (*PrivilegeBuyYuekaReq) Descriptor() ([]byte, []int) {
return file_privilege_privilege_msg_proto_rawDescGZIP(), []int{2}
}
func (x *PrivilegeBuyYuekaReq) GetPType() int32 {
if x != nil {
return x.PType
}
return 0
}
type PrivilegeBuyYuekaResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data []*DBPrivilege `protobuf:"bytes,1,rep,name=data,proto3" json:"data"`
}
func (x *PrivilegeBuyYuekaResp) Reset() {
*x = PrivilegeBuyYuekaResp{}
if protoimpl.UnsafeEnabled {
mi := &file_privilege_privilege_msg_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PrivilegeBuyYuekaResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PrivilegeBuyYuekaResp) ProtoMessage() {}
func (x *PrivilegeBuyYuekaResp) ProtoReflect() protoreflect.Message {
mi := &file_privilege_privilege_msg_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PrivilegeBuyYuekaResp.ProtoReflect.Descriptor instead.
func (*PrivilegeBuyYuekaResp) Descriptor() ([]byte, []int) {
return file_privilege_privilege_msg_proto_rawDescGZIP(), []int{3}
}
func (x *PrivilegeBuyYuekaResp) GetData() []*DBPrivilege {
if x != nil {
return x.Data
}
return nil
}
var File_privilege_privilege_msg_proto protoreflect.FileDescriptor
var file_privilege_privilege_msg_proto_rawDesc = []byte{
@ -118,8 +213,15 @@ var file_privilege_privilege_msg_proto_rawDesc = []byte{
0x74, 0x52, 0x65, 0x71, 0x22, 0x38, 0x0a, 0x14, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67,
0x65, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04,
0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x50,
0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06,
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2c,
0x0a, 0x14, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x42, 0x75, 0x79, 0x59, 0x75,
0x65, 0x6b, 0x61, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x54, 0x79, 0x70, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x70, 0x54, 0x79, 0x70, 0x65, 0x22, 0x39, 0x0a, 0x15,
0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x42, 0x75, 0x79, 0x59, 0x75, 0x65, 0x6b,
0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67,
0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@ -134,19 +236,22 @@ func file_privilege_privilege_msg_proto_rawDescGZIP() []byte {
return file_privilege_privilege_msg_proto_rawDescData
}
var file_privilege_privilege_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_privilege_privilege_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_privilege_privilege_msg_proto_goTypes = []interface{}{
(*PrivilegeGetListReq)(nil), // 0: PrivilegeGetListReq
(*PrivilegeGetListResp)(nil), // 1: PrivilegeGetListResp
(*DBPrivilege)(nil), // 2: DBPrivilege
(*PrivilegeGetListReq)(nil), // 0: PrivilegeGetListReq
(*PrivilegeGetListResp)(nil), // 1: PrivilegeGetListResp
(*PrivilegeBuyYuekaReq)(nil), // 2: PrivilegeBuyYuekaReq
(*PrivilegeBuyYuekaResp)(nil), // 3: PrivilegeBuyYuekaResp
(*DBPrivilege)(nil), // 4: DBPrivilege
}
var file_privilege_privilege_msg_proto_depIdxs = []int32{
2, // 0: PrivilegeGetListResp.data:type_name -> DBPrivilege
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
4, // 0: PrivilegeGetListResp.data:type_name -> DBPrivilege
4, // 1: PrivilegeBuyYuekaResp.data:type_name -> DBPrivilege
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_privilege_privilege_msg_proto_init() }
@ -180,6 +285,30 @@ func file_privilege_privilege_msg_proto_init() {
return nil
}
}
file_privilege_privilege_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PrivilegeBuyYuekaReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_privilege_privilege_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PrivilegeBuyYuekaResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
@ -187,7 +316,7 @@ func file_privilege_privilege_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_privilege_privilege_msg_proto_rawDesc,
NumEnums: 0,
NumMessages: 2,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},