syntax = "proto3";
package data;

service Reporting {
    rpc dataReport (stream BuryingRequest) returns (stream BuryingResponse) {
    }
}

message BuryingRequest {
    map<string, string> params = 1;
    DeviceInfo device = 2;
    AppInfo app = 3;
    string type = 4;
    string user_id = 5;
    string create_at = 6;
    float gm_nginx_timestamp = 7;
    string app_session_id = 8;
    string version = 9;
    int32 gm_nginx_key = 10;
}

message DeviceInfo {
    string device_id = 1;
    string device_type = 2;
    string manufacturer = 3;
    string lat = 4;
    string lng = 5;
    string is_WiFi = 6;
    string ip = 7;
    string net_type = 8;
    string model = 9;
    string sys_version = 10;
    string android_device_id = 11;
    string idfv=12;
    string idfa=13;
}

message AppInfo {
    string name = 1;
    string version = 2;
    string channel = 3;
    string current_city_id = 4;
    string grey_type = 5;
    int32  serial_id = 6;
    map<string, string> user_type = 7;
}

message BuryingResponse {
    string message = 1;
}
