refactor(user): 重构用户服务相关代码,将login模块功能迁移至user模块并优化相关结构体定义

This commit is contained in:
1
2025-09-22 09:15:26 +00:00
parent 47614c4d57
commit 1b62f6fec1
9 changed files with 31 additions and 36 deletions

View File

@@ -6,8 +6,6 @@ import (
"blazing/logic/service/player"
"blazing/logic/service/task"
"blazing/modules/blazing/model"
"math/rand"
"time"
)
/**
@@ -53,15 +51,6 @@ func (h Controller) AddTaskBuf(data *task.AddTaskBufInboundInfo, c *player.Playe
return &task.AddTaskBufOutboundInfo{}, 0
}
// 生成0-24的随机整数
func randInt0To24() int {
// 初始化随机种子(仅需初始化一次)
rand.Seed(time.Now().UnixNano())
// 生成0-24的随机数Intn(n)返回[0, n)的整数)
return rand.Intn(25)
}
/**
* 完成任务
*/