go_dreamfactory/modules/web/user_comp.go
2022-05-31 16:35:44 +08:00

26 lines
643 B
Go

package web
import (
"context"
"go_dreamfactory/comm"
"go_dreamfactory/modules/m_comps"
"go_dreamfactory/pb"
"github.com/liwei1dao/lego/core"
"github.com/liwei1dao/lego/sys/log"
)
type User_Comp struct {
m_comps.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)
return nil
}