syntax = "proto3";

package ccim.protocol;

import "common.proto";

message AuthRequestMessage {
    RequestMessageHeader header = 1;

    LoginRequest login_req = 2;
    LogoutRequest logout_req = 3;
};

message AuthResponseMessage {
    ResponseMessageHeader header = 1;

    LoginResponse login_res = 2;
    LogoutResponse logout_res = 3;
}

message LoginRequest {
    string username = 1;
    string password = 2;
    int64 app_id = 3;
}

message LoginResponse {
    string token = 1;
    string server = 2;
}

message LogoutRequest {
}

message LogoutResponse {
}