上传前端服务
This commit is contained in:
parent
796bc6e2cf
commit
215a29f9e2
176
src/pb/proto.js
176
src/pb/proto.js
@ -2375,6 +2375,65 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
||||
}
|
||||
}
|
||||
},
|
||||
DBHoroscope: {
|
||||
fields: {
|
||||
uid: {
|
||||
type: "string",
|
||||
id: 1
|
||||
},
|
||||
nodes: {
|
||||
keyType: "int32",
|
||||
type: "int32",
|
||||
id: 2
|
||||
},
|
||||
lastrest: {
|
||||
type: "int64",
|
||||
id: 3
|
||||
}
|
||||
}
|
||||
},
|
||||
HoroscopeInfoReq: {
|
||||
fields: {}
|
||||
},
|
||||
HoroscopeInfoResp: {
|
||||
fields: {
|
||||
info: {
|
||||
type: "DBHoroscope",
|
||||
id: 1
|
||||
}
|
||||
}
|
||||
},
|
||||
HoroscopeUpgradeReq: {
|
||||
fields: {
|
||||
nid: {
|
||||
type: "int32",
|
||||
id: 1
|
||||
}
|
||||
}
|
||||
},
|
||||
HoroscopeUpgradeResp: {
|
||||
fields: {
|
||||
nid: {
|
||||
type: "int32",
|
||||
id: 1
|
||||
},
|
||||
lv: {
|
||||
type: "int32",
|
||||
id: 2
|
||||
}
|
||||
}
|
||||
},
|
||||
HoroscopeResetReq: {
|
||||
fields: {}
|
||||
},
|
||||
HoroscopeResetResp: {
|
||||
fields: {
|
||||
issucc: {
|
||||
type: "bool",
|
||||
id: 1
|
||||
}
|
||||
}
|
||||
},
|
||||
DBHunting: {
|
||||
fields: {
|
||||
id: {
|
||||
@ -3857,6 +3916,123 @@ var $root = ($protobuf.roots["default"] || ($protobuf.roots["default"] = new $pr
|
||||
}
|
||||
}
|
||||
},
|
||||
DBPayOrder: {
|
||||
fields: {
|
||||
orderid: {
|
||||
type: "string",
|
||||
id: 1
|
||||
},
|
||||
uid: {
|
||||
type: "string",
|
||||
id: 2
|
||||
},
|
||||
productid: {
|
||||
type: "string",
|
||||
id: 3
|
||||
},
|
||||
ctime: {
|
||||
type: "int64",
|
||||
id: 4
|
||||
}
|
||||
}
|
||||
},
|
||||
DBUserPay: {
|
||||
fields: {
|
||||
uid: {
|
||||
type: "string",
|
||||
id: 1
|
||||
},
|
||||
record: {
|
||||
keyType: "string",
|
||||
type: "int32",
|
||||
id: 2
|
||||
}
|
||||
}
|
||||
},
|
||||
PayDailyItem: {
|
||||
fields: {
|
||||
id: {
|
||||
type: "int32",
|
||||
id: 1
|
||||
},
|
||||
buyunm: {
|
||||
type: "int32",
|
||||
id: 2
|
||||
},
|
||||
lastrefresh: {
|
||||
type: "int64",
|
||||
id: 3
|
||||
}
|
||||
}
|
||||
},
|
||||
DBPayDaily: {
|
||||
fields: {
|
||||
uid: {
|
||||
type: "string",
|
||||
id: 1
|
||||
},
|
||||
items: {
|
||||
keyType: "int32",
|
||||
type: "PayDailyItem",
|
||||
id: 2
|
||||
}
|
||||
}
|
||||
},
|
||||
PayInfoReq: {
|
||||
fields: {}
|
||||
},
|
||||
PayInfoResp: {
|
||||
fields: {
|
||||
info: {
|
||||
type: "DBPayDaily",
|
||||
id: 1
|
||||
}
|
||||
}
|
||||
},
|
||||
PayDailyBuyReq: {
|
||||
fields: {
|
||||
id: {
|
||||
type: "int32",
|
||||
id: 1
|
||||
}
|
||||
}
|
||||
},
|
||||
PayDailyBuyResp: {
|
||||
fields: {
|
||||
isucc: {
|
||||
type: "bool",
|
||||
id: 1
|
||||
}
|
||||
}
|
||||
},
|
||||
PayDeliveryReq: {
|
||||
fields: {
|
||||
uid: {
|
||||
type: "string",
|
||||
id: 1
|
||||
},
|
||||
orderid: {
|
||||
type: "string",
|
||||
id: 2
|
||||
},
|
||||
productid: {
|
||||
type: "string",
|
||||
id: 3
|
||||
}
|
||||
}
|
||||
},
|
||||
PayDeliveryResp: {
|
||||
fields: {
|
||||
code: {
|
||||
type: "ErrorCode",
|
||||
id: 1
|
||||
},
|
||||
msg: {
|
||||
type: "string",
|
||||
id: 2
|
||||
}
|
||||
}
|
||||
},
|
||||
frtaskIds: {
|
||||
fields: {
|
||||
rtaskIds: {
|
||||
|
9
src/pb/proto/horoscope_db.proto
Normal file
9
src/pb/proto/horoscope_db.proto
Normal file
@ -0,0 +1,9 @@
|
||||
syntax = "proto3";
|
||||
option go_package = ".;pb";
|
||||
|
||||
//星座图数据
|
||||
message DBHoroscope {
|
||||
string uid = 1; //@go_tags(`bson:"_id"`)
|
||||
map<int32, int32> nodes = 2; //节点信息 key:是节点id value:等级
|
||||
int64 lastrest = 3; //上次重置时间
|
||||
}
|
24
src/pb/proto/horoscope_msg.proto
Normal file
24
src/pb/proto/horoscope_msg.proto
Normal file
@ -0,0 +1,24 @@
|
||||
syntax = "proto3";
|
||||
option go_package = ".;pb";
|
||||
import "horoscope_db.proto";
|
||||
|
||||
//获取用户星座图信息
|
||||
message HoroscopeInfoReq {}
|
||||
|
||||
//获取用户星座图信息 回应
|
||||
message HoroscopeInfoResp { DBHoroscope info = 1; }
|
||||
|
||||
//升级节点
|
||||
message HoroscopeUpgradeReq {
|
||||
int32 nid = 1; //配置文件里的Id 升级的目标数据
|
||||
}
|
||||
//升级节点
|
||||
message HoroscopeUpgradeResp {
|
||||
int32 nid = 1; //成长线id 配置文件里面的 节点 字段
|
||||
int32 lv = 2;
|
||||
}
|
||||
|
||||
//重置请求
|
||||
message HoroscopeResetReq {}
|
||||
//重置请求 回应
|
||||
message HoroscopeResetResp { bool issucc = 1; }
|
29
src/pb/proto/pay_db.proto
Normal file
29
src/pb/proto/pay_db.proto
Normal file
@ -0,0 +1,29 @@
|
||||
syntax = "proto3";
|
||||
option go_package = ".;pb";
|
||||
|
||||
//支付订单数据表
|
||||
message DBPayOrder {
|
||||
string orderid = 1;
|
||||
string uid = 2;
|
||||
string productid = 3;
|
||||
int64 ctime = 4;
|
||||
}
|
||||
|
||||
//用户每日礼包
|
||||
message DBUserPay {
|
||||
string uid = 1; //用户id
|
||||
map<string, int32> record = 2; //商品购买次数
|
||||
}
|
||||
|
||||
//每日商城商品数据
|
||||
message PayDailyItem {
|
||||
int32 id = 1;
|
||||
int32 buyunm = 2;
|
||||
int64 lastrefresh = 3;
|
||||
}
|
||||
|
||||
//用户每日礼包
|
||||
message DBPayDaily {
|
||||
string uid = 1; //用户id
|
||||
map<int32, PayDailyItem> items = 2; //商品购买次数
|
||||
}
|
24
src/pb/proto/pay_msg.proto
Normal file
24
src/pb/proto/pay_msg.proto
Normal file
@ -0,0 +1,24 @@
|
||||
syntax = "proto3";
|
||||
option go_package = ".;pb";
|
||||
import "pay_db.proto";
|
||||
import "errorcode.proto";
|
||||
|
||||
//用户重置信息获取
|
||||
message PayInfoReq {}
|
||||
message PayInfoResp { DBPayDaily info = 1; }
|
||||
|
||||
//购买每日礼包
|
||||
message PayDailyBuyReq { int32 id = 1; }
|
||||
message PayDailyBuyResp { bool isucc = 1; }
|
||||
|
||||
///支付系统发货请求
|
||||
message PayDeliveryReq {
|
||||
string uid = 1;
|
||||
string orderid = 2;
|
||||
string productid = 3;
|
||||
}
|
||||
///支付系统发货请求 回应
|
||||
message PayDeliveryResp {
|
||||
ErrorCode code = 1;
|
||||
string msg = 2;
|
||||
}
|
@ -223,6 +223,8 @@ export default defineComponent({
|
||||
{ mainType: 'moonfantasy', subs: [] },
|
||||
{ mainType: 'viking', subs: [] },
|
||||
{ mainType: 'hunting', subs: [] },
|
||||
{ mainType: 'horoscope', subs: [] },
|
||||
{ mainType: 'pay', subs: [] },
|
||||
])
|
||||
for (const v of Object.keys(proto)) {
|
||||
for (const v1 of proto_models) {
|
||||
|
Loading…
Reference in New Issue
Block a user