- 更新 go.work 文件,添加 modules 引用 - 修改 logic/main.go,增加 Redis 模式监听 - 更新 login/main.go,引入 modules 模块 - 修改 manifest/config/config.yaml,添加 Redis 配置信息
22 lines
338 B
Go
22 lines
338 B
Go
package service
|
|
|
|
import (
|
|
"blazing/cool"
|
|
)
|
|
|
|
type LoginService struct {
|
|
*cool.Service
|
|
}
|
|
|
|
func NewLoginServiceService() *LoginService {
|
|
return &LoginService{
|
|
&cool.Service{},
|
|
}
|
|
}
|
|
|
|
func (s *LoginService) SaveSessionId(session, userid string) error {
|
|
// gsvc.SetRegistry(etcd.New(`127.0.0.1:2379`))
|
|
|
|
return nil
|
|
}
|