Closed GoogleCodeExporter closed 9 years ago
At the same time,the user_id type is wrong. In the *.proto, the user_id type
is uint64, but in the interface file, the type is long.
Original comment by bingqing...@gmail.com
on 14 Aug 2012 at 6:02
Regarding uint64: Staff does not support it. In this case it should be
{{{unsigned long long}}}.
Original comment by loentar
on 14 Aug 2012 at 6:47
Original comment by loentar
on 14 Aug 2012 at 6:48
This issue was closed by revision r699.
Original comment by loentar
on 14 Aug 2012 at 7:13
Regarding issue 177:
If define the enum type "LoginType" in the struct "OnlineUserState" external.
The protobuf code as follow:
enum LoginType {
OPT_CLIENT = 1;
CFG_CLIENT = 2;
EXT_CLIENT = 3;
MGR_CLIENT = 4;
}
message OnlineUserState {
required uint64 user_id = 1;
required LoginType login_type = 2 [default = OPT_CLIENT];
}
The staff interface file as follow:
OnlineUserState():
login_type(::cspws::csp::user::OnlineUserState::OPT_CLIENT)
{
}
But the expected output as follow:
OnlineUserState():
login_type(::cspws::csp::user::OPT_CLIENT)
{
}
Original comment by bingqing...@gmail.com
on 14 Aug 2012 at 9:16
Agree, will fix it soon.
Original comment by loentar
on 14 Aug 2012 at 10:06
This issue was closed by revision r704.
Original comment by loentar
on 14 Aug 2012 at 10:30
Today. Thank you very much for your help.
Original comment by bingqing...@gmail.com
on 14 Aug 2012 at 10:42
Original issue reported on code.google.com by
bingqing...@gmail.com
on 14 Aug 2012 at 5:46