syntax = "proto3";

option csharp_namespace = "XYY.gRpc.Tracking";  
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";

package greet;
 
service SeventeenConvert {
	rpc Convert(SeventeenConvertReq) returns(SeventeenConvertRes);
} 

message SeventeenConvertRes{
	int32 code = 1;
	bool success = 2;
	string error = 3;
	string message = 4;
	SeventeenConvertItem data = 5;
}

message SeventeenConvertReq {
	string sign = 1;
	string event = 2;
	string data = 3;
}

message SeventeenConvertItemLogs{
	google.protobuf.Timestamp TragetTime=1;
	string Location=2;
	string Event=3;
}

message SeventeenConvertItem{
	string TrackingNumber=1;
	string Status=2;
	google.protobuf.Timestamp LastAlterTime=3;
	string FailCNMessage=4;
	string FailMessage=5;
	google.protobuf.Timestamp FailTime=6;
	google.protobuf.Timestamp LastGetTime=7;
	string LastMessage=8;
	google.protobuf.Int32Value OnlineDay=9;
	google.protobuf.Timestamp OnlineTime =10;
	google.protobuf.Int32Value PreInternetAccessDay=11;
	google.protobuf.Timestamp PreInternetAccessTime =12;
	google.protobuf.Int32Value SendFialEmail =13;
	google.protobuf.Int32Value SignDay =14;
	google.protobuf.Timestamp SignTime =15;
	string StrStatus = 16;
	google.protobuf.Timestamp TargetTime=17;
	google.protobuf.Timestamp DeliveryTime=18;
	google.protobuf.Timestamp Delivered=19;
	repeated SeventeenConvertItemLogs List = 20;
}