refactor(error): 重构错误处理机制,使用ErrorCode枚举替代OutInfo接口

This commit is contained in:
1
2025-07-31 07:31:25 +00:00
parent 3bbc786520
commit a53ecc4fa9
9 changed files with 31 additions and 60 deletions

View File

@@ -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