syntax = "proto3";

package com.ywt.gapi;
option java_generic_services = true;
option java_multiple_files = true;
option java_package = "com.ywt.gapi";
option go_package = "/gapi";

enum ResultCode {
    SUCCEED = 0;
    PARAMETER_ERROR = 1;
    OTHER_ERROR = 2;
    APP_ERROR = 3;
    APP_EXCEPTION = 4;
}
message Result {
    ResultCode code = 1;
    string info = 2;
    string value = 3;
}
message ResultInt {
    ResultCode code = 1;
    string info = 2;
    int32 value = 3;
}
message ResultInt64 {
    ResultCode code = 1;
    string info = 2;
    int64 value = 3;
}
message ResultDouble {
    ResultCode code = 1;
    string info = 2;
    double value = 3;
}


