refactor(logic): 重构逻辑层代码
- 更新导入路径和结构体命名 - 调整函数签名和返回类型 - 移除未使用的代码文件 - 统一错误处理方式
This commit is contained in:
@@ -3,13 +3,13 @@ package controller
|
||||
import (
|
||||
"blazing/common/data/entity"
|
||||
"blazing/logic/service"
|
||||
"blazing/logic/service/maps"
|
||||
maps "blazing/logic/service/MapHot"
|
||||
)
|
||||
|
||||
func (h Controller) MapHot(data *maps.MapHotInboundInfo, c *entity.Player) (result *maps.MapHotOutboundInfo, err service.OutInfo) {
|
||||
func (h Controller) MapHot(data *maps.MapHotInboundInfo, c *entity.Player) (result *maps.OutInfo, err service.OutInfo) {
|
||||
|
||||
data.Def()
|
||||
result = &maps.MapHotOutboundInfo{
|
||||
result = &maps.OutInfo{
|
||||
|
||||
HotInfos: make([]maps.MapHotInfo, 0),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user