Files
bl/modules/blazing/service/user.go

31 lines
536 B
Go
Raw Normal View History

2025-08-27 20:52:15 +00:00
package service
import (
"blazing/cool"
"blazing/modules/blazing/model"
)
type UserService struct {
userid uint32
2025-08-28 15:20:05 +00:00
task *cool.Service //任务
reg *cool.Service //注册
pet *cool.Service //精灵
item *cool.Service //物品
2025-08-27 20:52:15 +00:00
}
2025-08-28 14:38:13 +00:00
func NewUserService(id uint32) *UserService {
return &UserService{
userid: id,
task: &cool.Service{
Model: model.NewTask(),
},
reg: &cool.Service{
Model: model.NewPlayer(),
},
pet: &cool.Service{Model: model.NewPet()},
item: &cool.Service{Model: model.NewPlayerBag()},
2025-08-28 14:38:13 +00:00
}
2025-08-27 20:52:15 +00:00
}