multi tenant threads (#78)

* multitenant threads

* auth for v1
This commit is contained in:
Dominic Wong
2021-03-25 17:33:20 +00:00
committed by GitHub
parent c42aeaa0a9
commit 8e38c8b834
20 changed files with 149 additions and 76 deletions

View File

@@ -4,9 +4,9 @@ import (
"time"
"github.com/micro/micro/v3/service/errors"
gorm2 "github.com/micro/services/pkg/gorm"
pb "github.com/micro/services/threads/proto"
"google.golang.org/protobuf/types/known/timestamppb"
"gorm.io/gorm"
)
var (
@@ -21,7 +21,7 @@ var (
)
type Threads struct {
DB *gorm.DB
gorm2.Helper
Time func() time.Time
}