27 lines
380 B
Go
27 lines
380 B
Go
package service
|
|
|
|
import (
|
|
"blazing/cool"
|
|
"blazing/modules/blazing/model"
|
|
)
|
|
|
|
type UserService struct {
|
|
userid uint32
|
|
|
|
task *cool.Service //任务
|
|
reg *cool.Service //注册
|
|
}
|
|
|
|
func NewUserService(id uint32) *UserService {
|
|
return &UserService{
|
|
userid: id,
|
|
task: &cool.Service{
|
|
Model: model.NewTask(),
|
|
},
|
|
reg: &cool.Service{
|
|
Model: model.NewPlayer(),
|
|
},
|
|
}
|
|
|
|
}
|