Files
bl/logic/service/task/CompleteTask.go
昔念 5e01837f78 refactor(logic): 重构逻辑层代码
- 移除未使用的 SocketHandler_Tomee.go、ai.go、effect_1.go 文件
- 更新 player 包名引用,替换原 service 包
- 调整 TomeeHeader 和相关处理逻辑至 player 包
- 更新各控制器中的 Player 引用为 player 包中的类型
- 移除冗余的 GetPlayer 方法,使用新逻辑
2025-09-14 01:35:16 +08:00

24 lines
1.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package task
import "blazing/logic/service/player"
type CompleteTaskInboundInfo struct {
Head player.TomeeHeader `cmd:"2202|2233" struc:"[0]pad"`
TaskId uint32 `json:"taskId" description:"任务ID"` // 任务ID对应Java的@UInt long
OutState uint32 `json:"outState" 分支"` // 当前状态1表示完成任务对应Java的@UInt long
}
type CompleteTaskOutboundInfo struct {
TaskId uint32 `json:"taskId" description:"任务ID"` // 任务ID对应Java的@UInt long
PetTypeId uint32 `json:"petTypeId" description:"发放的精灵ID"` // 发放的精灵ID对应Java的@UInt long
CaptureTime uint32 `json:"captureTime" description:"发放的精灵捕获时间"` // 发放的精灵捕获时间对应Java的@UInt long
ItemLen uint32 `struc:"sizeof=ItemList"`
ItemList []ItemInfo `json:"itemList" description:"发放物品的数组"` // 发放物品的数组对应Java的List<ItemInfo>
}
// ItemInfo 对应Java的ItemInfo类
// 用于表示发放物品的信息
type ItemInfo struct {
ItemId uint32 `json:"itemId" description:"发放物品ID"` // 发放物品ID对应Java的@UInt long
ItemCount uint32 `json:"itemCount" description:"发放物品的数量"` // 发放物品的数量对应Java的@UInt long
}