上传前端服务

This commit is contained in:
liwei1dao 2022-11-10 11:05:18 +08:00
parent 796bc6e2cf
commit 215a29f9e2
6 changed files with 264 additions and 0 deletions

View File

@ -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: {

View 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; //
}

View 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
View 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; //
}

View 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;
}

View File

@ -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) {