28 lines
577 B
Go
28 lines
577 B
Go
package user
|
|
|
|
import (
|
|
"context"
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/modules"
|
|
"go_dreamfactory/pb"
|
|
|
|
"github.com/liwei1dao/lego/core"
|
|
)
|
|
|
|
type UserComp struct {
|
|
modules.MComp_GateComp
|
|
module *User
|
|
}
|
|
|
|
func (this *UserComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
|
this.MComp_GateComp.Init(service, module, comp, options)
|
|
this.module = module.(*User)
|
|
return
|
|
}
|
|
|
|
//创角
|
|
func (this *UserComp) Create(ctx context.Context, session comm.IUserSession, req *pb.UserCreateReq) error {
|
|
|
|
return nil
|
|
}
|