type UserService struct {
AssUserReq *assembler.UserReq
AssUserRsp *assembler.UserRSP
UserRepo repos.IUserRepo `inject:"-"`
UserLogRepo repos.IUserLogRepo `inject:"-"`
}
func(this *UserService) GetSimpleUserInfo(req *dto.SimpleUserReq) *dto.SimpleUserInfo {
userModel:=this.AssUserReq.D2M_UserModel(req) //DTO对象转为实体
member:=aggregates.NewMember(userModel,this.UserRepo,this.UserLogRepo)
return this.AssUserRsp.M2D_SimpleUserInfo(member.QueryUser().User)
}