refactor(error): 重构错误处理机制,使用ErrorCode枚举替代OutInfo接口
This commit is contained in:
@@ -2,11 +2,11 @@ package controller
|
||||
|
||||
import (
|
||||
"blazing/common/data/entity"
|
||||
"blazing/logic/service"
|
||||
"blazing/common/socket/errorcode"
|
||||
"blazing/logic/service/systemtime"
|
||||
)
|
||||
|
||||
func (h Controller) SystemTimeInfo(data *systemtime.InInfo, c *entity.Player) (result *systemtime.OutInfo, err service.OutInfo) {
|
||||
func (h Controller) SystemTimeInfo(data *systemtime.InInfo, c *entity.Player) (result *systemtime.OutInfo, err errorcode.ErrorCode) {
|
||||
result = systemtime.NewOutInfo()
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user