Commit d2c699ee authored by harrylee's avatar harrylee Committed by vipwzw

fix duplicate proto

parent 1403b9bf
...@@ -15,9 +15,9 @@ message ExchangeAction { ...@@ -15,9 +15,9 @@ message ExchangeAction {
//限价订单 //限价订单
message LimitOrder { message LimitOrder {
//交易对 //交易对
Asset leftAsset = 1; asset leftAsset = 1;
//交易对 //交易对
Asset rightAsset = 2; asset rightAsset = 2;
//价格 //价格
float price = 3; float price = 3;
//总量 //总量
...@@ -29,9 +29,9 @@ message LimitOrder { ...@@ -29,9 +29,9 @@ message LimitOrder {
//市价委托 //市价委托
message MarketOrder { message MarketOrder {
//资产1 //资产1
Asset leftAsset = 1; asset leftAsset = 1;
//资产2 //资产2
Asset rightAsset = 2; asset rightAsset = 2;
//总量 //总量
int64 amount = 3; int64 amount = 3;
//操作, 1为买,2为卖 //操作, 1为买,2为卖
...@@ -44,7 +44,7 @@ message RevokeOrder { ...@@ -44,7 +44,7 @@ message RevokeOrder {
string orderID = 1; string orderID = 1;
} }
//资产类型 //资产类型
message Asset { message asset {
string execer = 1; string execer = 1;
string symbol = 2; string symbol = 2;
} }
...@@ -85,9 +85,9 @@ message OrderID { ...@@ -85,9 +85,9 @@ message OrderID {
//查询接口 //查询接口
message QueryMarketDepth { message QueryMarketDepth {
//资产1 //资产1
Asset leftAsset = 1; asset leftAsset = 1;
//资产2 //资产2
Asset rightAsset = 2; asset rightAsset = 2;
//操作, 1为买,2为卖 //操作, 1为买,2为卖
int32 op = 3; int32 op = 3;
// 这里用价格作为索引值 // 这里用价格作为索引值
...@@ -98,9 +98,9 @@ message QueryMarketDepth { ...@@ -98,9 +98,9 @@ message QueryMarketDepth {
//市场深度 //市场深度
message MarketDepth { message MarketDepth {
//资产1 //资产1
Asset leftAsset = 1; asset leftAsset = 1;
//资产2 //资产2
Asset rightAsset = 2; asset rightAsset = 2;
//价格 //价格
float price = 3; float price = 3;
//总量 //总量
...@@ -116,9 +116,9 @@ message MarketDepthList { ...@@ -116,9 +116,9 @@ message MarketDepthList {
//查询最新得成交信息,外部接口 //查询最新得成交信息,外部接口
message QueryCompletedOrderList { message QueryCompletedOrderList {
//资产1 //资产1
Asset leftAsset = 1; asset leftAsset = 1;
//资产2 //资产2
Asset rightAsset = 2; asset rightAsset = 2;
// 索引值 // 索引值
int64 index = 3; int64 index = 3;
//单页返回多少条记录,默认返回10条,为了系统安全最多单次只能返回20条 //单页返回多少条记录,默认返回10条,为了系统安全最多单次只能返回20条
......
...@@ -28,15 +28,12 @@ It has these top-level messages: ...@@ -28,15 +28,12 @@ It has these top-level messages:
*/ */
package types package types
import ( import proto "github.com/golang/protobuf/proto"
fmt "fmt" import fmt "fmt"
import math "math"
proto "github.com/golang/protobuf/proto"
math "math"
import (
context "golang.org/x/net/context" context "golang.org/x/net/context"
grpc "google.golang.org/grpc" grpc "google.golang.org/grpc"
) )
...@@ -910,7 +907,7 @@ func init() { ...@@ -910,7 +907,7 @@ func init() {
proto.RegisterType((*LimitOrder)(nil), "types.LimitOrder") proto.RegisterType((*LimitOrder)(nil), "types.LimitOrder")
proto.RegisterType((*MarketOrder)(nil), "types.MarketOrder") proto.RegisterType((*MarketOrder)(nil), "types.MarketOrder")
proto.RegisterType((*RevokeOrder)(nil), "types.RevokeOrder") proto.RegisterType((*RevokeOrder)(nil), "types.RevokeOrder")
proto.RegisterType((*Asset)(nil), "types.Asset") proto.RegisterType((*Asset)(nil), "types.asset")
proto.RegisterType((*Order)(nil), "types.Order") proto.RegisterType((*Order)(nil), "types.Order")
proto.RegisterType((*OrderPrice)(nil), "types.OrderPrice") proto.RegisterType((*OrderPrice)(nil), "types.OrderPrice")
proto.RegisterType((*OrderID)(nil), "types.OrderID") proto.RegisterType((*OrderID)(nil), "types.OrderID")
...@@ -965,7 +962,7 @@ var _Exchange_serviceDesc = grpc.ServiceDesc{ ...@@ -965,7 +962,7 @@ var _Exchange_serviceDesc = grpc.ServiceDesc{
func init() { proto.RegisterFile("exchange.proto", fileDescriptor0) } func init() { proto.RegisterFile("exchange.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{
// 658 bytes of a gzipped FileDescriptorProto // 659 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xed, 0x6a, 0xd4, 0x4c, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xed, 0x6a, 0xd4, 0x4c,
0x14, 0x6e, 0xbe, 0xba, 0xcd, 0xd9, 0x97, 0xed, 0xeb, 0x20, 0x1a, 0x44, 0x64, 0xc9, 0x8f, 0x5a, 0x14, 0x6e, 0xbe, 0xba, 0xcd, 0xd9, 0x97, 0xed, 0xeb, 0x20, 0x1a, 0x44, 0x64, 0xc9, 0x8f, 0x5a,
0x44, 0x57, 0x68, 0xc1, 0x8f, 0x9f, 0xd5, 0x0a, 0x2d, 0x54, 0xaa, 0x83, 0x37, 0x90, 0x26, 0xc7, 0x44, 0x57, 0x68, 0xc1, 0x8f, 0x9f, 0xd5, 0x0a, 0x2d, 0x54, 0xaa, 0x83, 0x37, 0x90, 0x26, 0xc7,
...@@ -979,33 +976,33 @@ var fileDescriptor0 = []byte{ ...@@ -979,33 +976,33 @@ var fileDescriptor0 = []byte{
0x96, 0x83, 0x35, 0x6e, 0x3b, 0xca, 0xb8, 0x1a, 0xcf, 0xcb, 0x33, 0x54, 0x71, 0xde, 0x42, 0x1c, 0x96, 0x83, 0x35, 0x6e, 0x3b, 0xca, 0xb8, 0x1a, 0xcf, 0xcb, 0x33, 0x54, 0x71, 0xde, 0x42, 0x1c,
0x37, 0x16, 0x19, 0x67, 0x39, 0xb2, 0x01, 0xb8, 0x62, 0x1e, 0xad, 0x0f, 0x9d, 0xed, 0x80, 0xbb, 0x37, 0x16, 0x19, 0x67, 0x39, 0xb2, 0x01, 0xb8, 0x62, 0x1e, 0xad, 0x0f, 0x9d, 0xed, 0x80, 0xb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0x15, 0x01,
0x00, 0x00, 0x08, 0x00, 0x00,
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment