16 lines
429 B
Go
16 lines
429 B
Go
package controller
|
|
|
|
import (
|
|
"blazing/common/data/socket"
|
|
"blazing/common/socket/errorcode"
|
|
"blazing/logic/service/login"
|
|
"blazing/modules/blazing/service"
|
|
)
|
|
|
|
// 处理命令: 1001
|
|
func (h *Controller) CreatePlayer(data *login.CreatePlayerInboundInfo, c *socket.Conn) (result *login.CreatePlayerOutInfo, err errorcode.ErrorCode) {
|
|
|
|
service.NewUserService(data.Head.UserID).Reg(data.Nickname, data.Color)
|
|
return result, 0
|
|
}
|