30 lines
702 B
Go
30 lines
702 B
Go
package web
|
|
|
|
import (
|
|
"context"
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/modules"
|
|
"go_dreamfactory/pb"
|
|
|
|
"github.com/liwei1dao/lego/core"
|
|
"github.com/liwei1dao/lego/sys/log"
|
|
)
|
|
|
|
type User_Comp struct {
|
|
modules.MComp_GateComp
|
|
}
|
|
|
|
func (this *User_Comp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
|
this.MComp_GateComp.Init(service, module, comp, options)
|
|
return
|
|
}
|
|
|
|
func (this *User_Comp) Login(ctx context.Context, session comm.IUserSession, rsp *pb.UserLoginReq) error {
|
|
log.Debugf("User_Comp Login: session:%v rsp:%v", session.ToString(), rsp)
|
|
session.SendMsg("LogigResp", &pb.UserLoginResp{
|
|
Code: 200,
|
|
})
|
|
|
|
return nil
|
|
}
|