上传战斗配置文件
This commit is contained in:
parent
5cb78141a1
commit
c880b97038
File diff suppressed because it is too large
Load Diff
29
modules/pay/api.go
Normal file
29
modules/pay/api.go
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
package pay
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/modules"
|
||||||
|
|
||||||
|
"go_dreamfactory/lego/core"
|
||||||
|
)
|
||||||
|
|
||||||
|
/*
|
||||||
|
API
|
||||||
|
*/
|
||||||
|
type apiComp struct {
|
||||||
|
modules.MCompGate
|
||||||
|
service core.IService
|
||||||
|
module *Pay
|
||||||
|
}
|
||||||
|
|
||||||
|
//组件初始化接口
|
||||||
|
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||||
|
this.MCompGate.Init(service, module, comp, options)
|
||||||
|
this.module = module.(*Pay)
|
||||||
|
this.service = service
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *apiComp) Start() (err error) {
|
||||||
|
err = this.MCompGate.Start()
|
||||||
|
return
|
||||||
|
}
|
31
modules/pay/api_info.go
Normal file
31
modules/pay/api_info.go
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
package pay
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
|
||||||
|
"google.golang.org/protobuf/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
//参数校验
|
||||||
|
func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.PayInfoReq) (code pb.ErrorCode) {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
///获取系统公告
|
||||||
|
func (this *apiComp) Info(session comm.IUserSession, req *pb.PayInfoReq) (code pb.ErrorCode, data proto.Message) {
|
||||||
|
var (
|
||||||
|
info *pb.DBPayUser
|
||||||
|
err error
|
||||||
|
)
|
||||||
|
if code = this.InfoCheck(session, req); code != pb.ErrorCode_Success {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if info, err = this.module.modelUser.queryUserData(session.GetUserId()); err != nil {
|
||||||
|
code = pb.ErrorCode_DBError
|
||||||
|
return
|
||||||
|
}
|
||||||
|
session.SendMsg(string(this.module.GetType()), "info", &pb.PayInfoResp{Info: info})
|
||||||
|
return
|
||||||
|
}
|
@ -24,6 +24,8 @@ func NewModule() core.IModule {
|
|||||||
type Pay struct {
|
type Pay struct {
|
||||||
modules.ModuleBase
|
modules.ModuleBase
|
||||||
service base.IRPCXService
|
service base.IRPCXService
|
||||||
|
api *apiComp
|
||||||
|
modelPay *modelPayComp
|
||||||
modelUser *modelUserComp
|
modelUser *modelUserComp
|
||||||
configure *configureComp
|
configure *configureComp
|
||||||
}
|
}
|
||||||
@ -48,6 +50,9 @@ func (this *Pay) Start() (err error) {
|
|||||||
//装备组件
|
//装备组件
|
||||||
func (this *Pay) OnInstallComp() {
|
func (this *Pay) OnInstallComp() {
|
||||||
this.ModuleBase.OnInstallComp()
|
this.ModuleBase.OnInstallComp()
|
||||||
|
|
||||||
|
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
|
||||||
|
this.modelPay = this.RegisterComp(new(modelPayComp)).(*modelPayComp)
|
||||||
this.modelUser = this.RegisterComp(new(modelUserComp)).(*modelUserComp)
|
this.modelUser = this.RegisterComp(new(modelUserComp)).(*modelUserComp)
|
||||||
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||||
}
|
}
|
||||||
|
@ -628,92 +628,6 @@ func (x *PagodaQueryRecordResp) GetData() *DBPagodaRecord {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// 激活赛季塔
|
|
||||||
type PagodaActivateReq struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PagodaActivateReq) Reset() {
|
|
||||||
*x = PagodaActivateReq{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pagoda_pagoda_msg_proto_msgTypes[12]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PagodaActivateReq) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PagodaActivateReq) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PagodaActivateReq) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pagoda_pagoda_msg_proto_msgTypes[12]
|
|
||||||
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 PagodaActivateReq.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PagodaActivateReq) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pagoda_pagoda_msg_proto_rawDescGZIP(), []int{12}
|
|
||||||
}
|
|
||||||
|
|
||||||
type PagodaActivateResp struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Data *DBSeasonPagoda `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PagodaActivateResp) Reset() {
|
|
||||||
*x = PagodaActivateResp{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pagoda_pagoda_msg_proto_msgTypes[13]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PagodaActivateResp) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PagodaActivateResp) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PagodaActivateResp) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pagoda_pagoda_msg_proto_msgTypes[13]
|
|
||||||
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 PagodaActivateResp.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PagodaActivateResp) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pagoda_pagoda_msg_proto_rawDescGZIP(), []int{13}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PagodaActivateResp) GetData() *DBSeasonPagoda {
|
|
||||||
if x != nil {
|
|
||||||
return x.Data
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
var File_pagoda_pagoda_msg_proto protoreflect.FileDescriptor
|
var File_pagoda_pagoda_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_pagoda_pagoda_msg_proto_rawDesc = []byte{
|
var file_pagoda_pagoda_msg_proto_rawDesc = []byte{
|
||||||
@ -771,12 +685,7 @@ var file_pagoda_pagoda_msg_proto_rawDesc = []byte{
|
|||||||
0x61, 0x67, 0x6f, 0x64, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
|
0x61, 0x67, 0x6f, 0x64, 0x61, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
|
||||||
0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
|
0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x52, 0x65, 0x63,
|
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x52, 0x65, 0x63,
|
||||||
0x6f, 0x72, 0x64, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x13, 0x0a, 0x11, 0x50, 0x61, 0x67,
|
0x6f, 0x72, 0x64, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
|
||||||
0x6f, 0x64, 0x61, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x22, 0x39,
|
|
||||||
0x0a, 0x12, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x41, 0x63, 0x74, 0x69, 0x76, 0x61, 0x74, 0x65,
|
|
||||||
0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
|
|
||||||
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x53, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x67,
|
|
||||||
0x6f, 0x64, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
|
|
||||||
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -792,7 +701,7 @@ func file_pagoda_pagoda_msg_proto_rawDescGZIP() []byte {
|
|||||||
return file_pagoda_pagoda_msg_proto_rawDescData
|
return file_pagoda_pagoda_msg_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_pagoda_pagoda_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
var file_pagoda_pagoda_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
||||||
var file_pagoda_pagoda_msg_proto_goTypes = []interface{}{
|
var file_pagoda_pagoda_msg_proto_goTypes = []interface{}{
|
||||||
(*PagodaGetListReq)(nil), // 0: PagodaGetListReq
|
(*PagodaGetListReq)(nil), // 0: PagodaGetListReq
|
||||||
(*PagodaGetListResp)(nil), // 1: PagodaGetListResp
|
(*PagodaGetListResp)(nil), // 1: PagodaGetListResp
|
||||||
@ -806,30 +715,26 @@ var file_pagoda_pagoda_msg_proto_goTypes = []interface{}{
|
|||||||
(*PagodaRankListResp)(nil), // 9: PagodaRankListResp
|
(*PagodaRankListResp)(nil), // 9: PagodaRankListResp
|
||||||
(*PagodaQueryRecordReq)(nil), // 10: PagodaQueryRecordReq
|
(*PagodaQueryRecordReq)(nil), // 10: PagodaQueryRecordReq
|
||||||
(*PagodaQueryRecordResp)(nil), // 11: PagodaQueryRecordResp
|
(*PagodaQueryRecordResp)(nil), // 11: PagodaQueryRecordResp
|
||||||
(*PagodaActivateReq)(nil), // 12: PagodaActivateReq
|
(*DBPagoda)(nil), // 12: DBPagoda
|
||||||
(*PagodaActivateResp)(nil), // 13: PagodaActivateResp
|
(*BattleFormation)(nil), // 13: BattleFormation
|
||||||
(*DBPagoda)(nil), // 14: DBPagoda
|
(*BattleInfo)(nil), // 14: BattleInfo
|
||||||
(*BattleFormation)(nil), // 15: BattleFormation
|
(*BattleReport)(nil), // 15: BattleReport
|
||||||
(*BattleInfo)(nil), // 16: BattleInfo
|
(*DBPagodaRecord)(nil), // 16: DBPagodaRecord
|
||||||
(*BattleReport)(nil), // 17: BattleReport
|
|
||||||
(*DBPagodaRecord)(nil), // 18: DBPagodaRecord
|
|
||||||
(*DBSeasonPagoda)(nil), // 19: DBSeasonPagoda
|
|
||||||
}
|
}
|
||||||
var file_pagoda_pagoda_msg_proto_depIdxs = []int32{
|
var file_pagoda_pagoda_msg_proto_depIdxs = []int32{
|
||||||
14, // 0: PagodaGetListResp.data:type_name -> DBPagoda
|
12, // 0: PagodaGetListResp.data:type_name -> DBPagoda
|
||||||
14, // 1: PagodaGetRewardResp.data:type_name -> DBPagoda
|
12, // 1: PagodaGetRewardResp.data:type_name -> DBPagoda
|
||||||
15, // 2: PagodaChallengeReq.battle:type_name -> BattleFormation
|
13, // 2: PagodaChallengeReq.battle:type_name -> BattleFormation
|
||||||
16, // 3: PagodaChallengeResp.info:type_name -> BattleInfo
|
14, // 3: PagodaChallengeResp.info:type_name -> BattleInfo
|
||||||
17, // 4: PagodaChallengeOverReq.report:type_name -> BattleReport
|
15, // 4: PagodaChallengeOverReq.report:type_name -> BattleReport
|
||||||
14, // 5: PagodaChallengeOverResp.data:type_name -> DBPagoda
|
12, // 5: PagodaChallengeOverResp.data:type_name -> DBPagoda
|
||||||
18, // 6: PagodaRankListResp.ranks:type_name -> DBPagodaRecord
|
16, // 6: PagodaRankListResp.ranks:type_name -> DBPagodaRecord
|
||||||
18, // 7: PagodaQueryRecordResp.data:type_name -> DBPagodaRecord
|
16, // 7: PagodaQueryRecordResp.data:type_name -> DBPagodaRecord
|
||||||
19, // 8: PagodaActivateResp.data:type_name -> DBSeasonPagoda
|
8, // [8:8] is the sub-list for method output_type
|
||||||
9, // [9:9] is the sub-list for method output_type
|
8, // [8:8] is the sub-list for method input_type
|
||||||
9, // [9:9] is the sub-list for method input_type
|
8, // [8:8] is the sub-list for extension type_name
|
||||||
9, // [9:9] is the sub-list for extension type_name
|
8, // [8:8] is the sub-list for extension extendee
|
||||||
9, // [9:9] is the sub-list for extension extendee
|
0, // [0:8] is the sub-list for field type_name
|
||||||
0, // [0:9] is the sub-list for field type_name
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_pagoda_pagoda_msg_proto_init() }
|
func init() { file_pagoda_pagoda_msg_proto_init() }
|
||||||
@ -984,30 +889,6 @@ func file_pagoda_pagoda_msg_proto_init() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_pagoda_pagoda_msg_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PagodaActivateReq); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pagoda_pagoda_msg_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PagodaActivateResp); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@ -1015,7 +896,7 @@ func file_pagoda_pagoda_msg_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_pagoda_pagoda_msg_proto_rawDesc,
|
RawDescriptor: file_pagoda_pagoda_msg_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 14,
|
NumMessages: 12,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
182
pb/pay_msg.pb.go
182
pb/pay_msg.pb.go
@ -20,6 +20,92 @@ const (
|
|||||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
//用户重置信息获取
|
||||||
|
type PayInfoReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PayInfoReq) Reset() {
|
||||||
|
*x = PayInfoReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_pay_pay_msg_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PayInfoReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PayInfoReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PayInfoReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_pay_pay_msg_proto_msgTypes[0]
|
||||||
|
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 PayInfoReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PayInfoReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_pay_pay_msg_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
type PayInfoResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Info *DBPayUser `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PayInfoResp) Reset() {
|
||||||
|
*x = PayInfoResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_pay_pay_msg_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PayInfoResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PayInfoResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *PayInfoResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_pay_pay_msg_proto_msgTypes[1]
|
||||||
|
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 PayInfoResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*PayInfoResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_pay_pay_msg_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PayInfoResp) GetInfo() *DBPayUser {
|
||||||
|
if x != nil {
|
||||||
|
return x.Info
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
///支付系统发货请求
|
///支付系统发货请求
|
||||||
type PayDeliveryReq struct {
|
type PayDeliveryReq struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
@ -34,7 +120,7 @@ type PayDeliveryReq struct {
|
|||||||
func (x *PayDeliveryReq) Reset() {
|
func (x *PayDeliveryReq) Reset() {
|
||||||
*x = PayDeliveryReq{}
|
*x = PayDeliveryReq{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_pay_pay_msg_proto_msgTypes[0]
|
mi := &file_pay_pay_msg_proto_msgTypes[2]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -47,7 +133,7 @@ func (x *PayDeliveryReq) String() string {
|
|||||||
func (*PayDeliveryReq) ProtoMessage() {}
|
func (*PayDeliveryReq) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *PayDeliveryReq) ProtoReflect() protoreflect.Message {
|
func (x *PayDeliveryReq) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_pay_pay_msg_proto_msgTypes[0]
|
mi := &file_pay_pay_msg_proto_msgTypes[2]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -60,7 +146,7 @@ func (x *PayDeliveryReq) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use PayDeliveryReq.ProtoReflect.Descriptor instead.
|
// Deprecated: Use PayDeliveryReq.ProtoReflect.Descriptor instead.
|
||||||
func (*PayDeliveryReq) Descriptor() ([]byte, []int) {
|
func (*PayDeliveryReq) Descriptor() ([]byte, []int) {
|
||||||
return file_pay_pay_msg_proto_rawDescGZIP(), []int{0}
|
return file_pay_pay_msg_proto_rawDescGZIP(), []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PayDeliveryReq) GetUid() string {
|
func (x *PayDeliveryReq) GetUid() string {
|
||||||
@ -97,7 +183,7 @@ type PayDeliveryResp struct {
|
|||||||
func (x *PayDeliveryResp) Reset() {
|
func (x *PayDeliveryResp) Reset() {
|
||||||
*x = PayDeliveryResp{}
|
*x = PayDeliveryResp{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_pay_pay_msg_proto_msgTypes[1]
|
mi := &file_pay_pay_msg_proto_msgTypes[3]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -110,7 +196,7 @@ func (x *PayDeliveryResp) String() string {
|
|||||||
func (*PayDeliveryResp) ProtoMessage() {}
|
func (*PayDeliveryResp) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *PayDeliveryResp) ProtoReflect() protoreflect.Message {
|
func (x *PayDeliveryResp) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_pay_pay_msg_proto_msgTypes[1]
|
mi := &file_pay_pay_msg_proto_msgTypes[3]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -123,7 +209,7 @@ func (x *PayDeliveryResp) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use PayDeliveryResp.ProtoReflect.Descriptor instead.
|
// Deprecated: Use PayDeliveryResp.ProtoReflect.Descriptor instead.
|
||||||
func (*PayDeliveryResp) Descriptor() ([]byte, []int) {
|
func (*PayDeliveryResp) Descriptor() ([]byte, []int) {
|
||||||
return file_pay_pay_msg_proto_rawDescGZIP(), []int{1}
|
return file_pay_pay_msg_proto_rawDescGZIP(), []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *PayDeliveryResp) GetCode() ErrorCode {
|
func (x *PayDeliveryResp) GetCode() ErrorCode {
|
||||||
@ -144,19 +230,24 @@ var File_pay_pay_msg_proto protoreflect.FileDescriptor
|
|||||||
|
|
||||||
var file_pay_pay_msg_proto_rawDesc = []byte{
|
var file_pay_pay_msg_proto_rawDesc = []byte{
|
||||||
0x0a, 0x11, 0x70, 0x61, 0x79, 0x2f, 0x70, 0x61, 0x79, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72,
|
0x0a, 0x11, 0x70, 0x61, 0x79, 0x2f, 0x70, 0x61, 0x79, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72,
|
||||||
0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70,
|
0x6f, 0x74, 0x6f, 0x1a, 0x10, 0x70, 0x61, 0x79, 0x2f, 0x70, 0x61, 0x79, 0x5f, 0x64, 0x62, 0x2e,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5a, 0x0a, 0x0e, 0x50, 0x61, 0x79, 0x44, 0x65, 0x6c, 0x69, 0x76,
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65,
|
||||||
0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20,
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0c, 0x0a, 0x0a, 0x50, 0x61, 0x79, 0x49, 0x6e, 0x66,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x64, 0x65,
|
0x6f, 0x52, 0x65, 0x71, 0x22, 0x2d, 0x0a, 0x0b, 0x50, 0x61, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
||||||
0x72, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72,
|
0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x64, 0x18,
|
0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x50, 0x61, 0x79, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x69,
|
||||||
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x64,
|
0x6e, 0x66, 0x6f, 0x22, 0x5a, 0x0a, 0x0e, 0x50, 0x61, 0x79, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65,
|
||||||
0x22, 0x43, 0x0a, 0x0f, 0x50, 0x61, 0x79, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x52,
|
0x72, 0x79, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72,
|
||||||
0x0e, 0x32, 0x0a, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63,
|
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x69,
|
||||||
0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
0x64, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x64, 0x18, 0x03,
|
||||||
0x52, 0x03, 0x6d, 0x73, 0x67, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x64, 0x22,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x43, 0x0a, 0x0f, 0x50, 0x61, 0x79, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x52, 0x65,
|
||||||
|
0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
|
||||||
|
0x32, 0x0a, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x63, 0x6f,
|
||||||
|
0x64, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
|
0x03, 0x6d, 0x73, 0x67, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
|
||||||
|
0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -171,19 +262,23 @@ func file_pay_pay_msg_proto_rawDescGZIP() []byte {
|
|||||||
return file_pay_pay_msg_proto_rawDescData
|
return file_pay_pay_msg_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_pay_pay_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
var file_pay_pay_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||||
var file_pay_pay_msg_proto_goTypes = []interface{}{
|
var file_pay_pay_msg_proto_goTypes = []interface{}{
|
||||||
(*PayDeliveryReq)(nil), // 0: PayDeliveryReq
|
(*PayInfoReq)(nil), // 0: PayInfoReq
|
||||||
(*PayDeliveryResp)(nil), // 1: PayDeliveryResp
|
(*PayInfoResp)(nil), // 1: PayInfoResp
|
||||||
(ErrorCode)(0), // 2: ErrorCode
|
(*PayDeliveryReq)(nil), // 2: PayDeliveryReq
|
||||||
|
(*PayDeliveryResp)(nil), // 3: PayDeliveryResp
|
||||||
|
(*DBPayUser)(nil), // 4: DBPayUser
|
||||||
|
(ErrorCode)(0), // 5: ErrorCode
|
||||||
}
|
}
|
||||||
var file_pay_pay_msg_proto_depIdxs = []int32{
|
var file_pay_pay_msg_proto_depIdxs = []int32{
|
||||||
2, // 0: PayDeliveryResp.code:type_name -> ErrorCode
|
4, // 0: PayInfoResp.info:type_name -> DBPayUser
|
||||||
1, // [1:1] is the sub-list for method output_type
|
5, // 1: PayDeliveryResp.code:type_name -> ErrorCode
|
||||||
1, // [1:1] is the sub-list for method input_type
|
2, // [2:2] is the sub-list for method output_type
|
||||||
1, // [1:1] is the sub-list for extension type_name
|
2, // [2:2] is the sub-list for method input_type
|
||||||
1, // [1:1] is the sub-list for extension extendee
|
2, // [2:2] is the sub-list for extension type_name
|
||||||
0, // [0:1] is the sub-list for field 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_pay_pay_msg_proto_init() }
|
func init() { file_pay_pay_msg_proto_init() }
|
||||||
@ -191,10 +286,11 @@ func file_pay_pay_msg_proto_init() {
|
|||||||
if File_pay_pay_msg_proto != nil {
|
if File_pay_pay_msg_proto != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
file_pay_pay_db_proto_init()
|
||||||
file_errorcode_proto_init()
|
file_errorcode_proto_init()
|
||||||
if !protoimpl.UnsafeEnabled {
|
if !protoimpl.UnsafeEnabled {
|
||||||
file_pay_pay_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
file_pay_pay_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*PayDeliveryReq); i {
|
switch v := v.(*PayInfoReq); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@ -206,6 +302,30 @@ func file_pay_pay_msg_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_pay_pay_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
file_pay_pay_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PayInfoResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_pay_pay_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*PayDeliveryReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_pay_pay_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*PayDeliveryResp); i {
|
switch v := v.(*PayDeliveryResp); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@ -224,7 +344,7 @@ func file_pay_pay_msg_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_pay_pay_msg_proto_rawDesc,
|
RawDescriptor: file_pay_pay_msg_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 2,
|
NumMessages: 4,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user