From 215a29f9e2e0912f2857ab12a239117fb2333425 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Thu, 10 Nov 2022 11:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=89=8D=E7=AB=AF=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pb/proto.js | 176 +++++++++++++++++++++++++++++++ src/pb/proto/horoscope_db.proto | 9 ++ src/pb/proto/horoscope_msg.proto | 24 +++++ src/pb/proto/pay_db.proto | 29 +++++ src/pb/proto/pay_msg.proto | 24 +++++ src/views/protocol/Index.vue | 2 + 6 files changed, 264 insertions(+) create mode 100644 src/pb/proto/horoscope_db.proto create mode 100644 src/pb/proto/horoscope_msg.proto create mode 100644 src/pb/proto/pay_db.proto create mode 100644 src/pb/proto/pay_msg.proto diff --git a/src/pb/proto.js b/src/pb/proto.js index f6151d5..2b77559 100644 --- a/src/pb/proto.js +++ b/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: { diff --git a/src/pb/proto/horoscope_db.proto b/src/pb/proto/horoscope_db.proto new file mode 100644 index 0000000..f45d864 --- /dev/null +++ b/src/pb/proto/horoscope_db.proto @@ -0,0 +1,9 @@ +syntax = "proto3"; +option go_package = ".;pb"; + +//星座图数据 +message DBHoroscope { + string uid = 1; //@go_tags(`bson:"_id"`) + map nodes = 2; //节点信息 key:是节点id value:等级 + int64 lastrest = 3; //上次重置时间 +} \ No newline at end of file diff --git a/src/pb/proto/horoscope_msg.proto b/src/pb/proto/horoscope_msg.proto new file mode 100644 index 0000000..65d1a48 --- /dev/null +++ b/src/pb/proto/horoscope_msg.proto @@ -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; } \ No newline at end of file diff --git a/src/pb/proto/pay_db.proto b/src/pb/proto/pay_db.proto new file mode 100644 index 0000000..4588970 --- /dev/null +++ b/src/pb/proto/pay_db.proto @@ -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 record = 2; //商品购买次数 +} + +//每日商城商品数据 +message PayDailyItem { + int32 id = 1; + int32 buyunm = 2; + int64 lastrefresh = 3; +} + +//用户每日礼包 +message DBPayDaily { + string uid = 1; //用户id + map items = 2; //商品购买次数 +} \ No newline at end of file diff --git a/src/pb/proto/pay_msg.proto b/src/pb/proto/pay_msg.proto new file mode 100644 index 0000000..9664505 --- /dev/null +++ b/src/pb/proto/pay_msg.proto @@ -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; +} diff --git a/src/views/protocol/Index.vue b/src/views/protocol/Index.vue index dc27168..93c75d2 100644 --- a/src/views/protocol/Index.vue +++ b/src/views/protocol/Index.vue @@ -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) {