| 12345678910111213141516171819202122232425262728 |
- syntax = "proto3";
- package market.v2.trade.recommend.pair; // 替换为你的包名
- // 定义最外层的消息类型
- message Response {
- int32 code = 1;
- string msg = 2;
- string status = 3;
- int64 ts = 4;
- string ch = 5;
- RecommendPair recommendpair = 6;
- }
- // 定义recommendpair中的消息类型
- message RecommendPair {
- repeated PairInfo listList = 1; // 使用repeated关键字表示数组
- }
- // 定义PairInfo消息类型
- message PairInfo {
- int32 tradeId = 1;
- string cny = 2; // 假设cny是浮点数
- string totalamount = 3; // 假设totalamount是浮点数
- string last = 4; // 假设last是浮点数
- string volume = 5; // 假设volume是浮点数
- string change = 6; // 假设change是浮点数
- }
|