Ejemplo n.º 1
0
func (this *LoginRoleEntity) EncodeEntity(buf *iobuffer.OutBuffer) *iobuffer.OutBuffer {
	buf.PutRawValue(this.UserID)
	buf.PutRawValue(this.RoleID)
	buf.PutRawValue(this.OldServerId)
	buf.PutRawValue(this.RoleName)
	buf.PutRawValue(this.Level)
	buf.PutRawValue(this.RoleJob)
	buf.PutRawValue(this.RoleIcon)
	buf.PutRawValue(this.IsPayRole)
	buf.PutRawValue(this.LastLoginTime)
	return buf
}
Ejemplo n.º 2
0
func (this *Entity) EncodeEntity(writeBuf *iobuffer.OutBuffer) *iobuffer.OutBuffer {
	writeBuf.PutRawValue(this.a)
	writeBuf.PutRawValue(this.b)
	return writeBuf
}