You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
289 B
Go

package user
import (
"app/network"
"fmt"
)
func NewUser() *User {
return &User{}
}
type User struct {
network.BaseNetHandler
}
func (s *User) OnSessionCreated() {
}
func (s *User) OnSessionClosed() {
}
func (s *User) OnRecv(msgId int32, data interface{}) {
fmt.Println(data)
}