File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,22 @@ func (model *BaseModel) GetVersion() uint {
6666 return model .Version
6767}
6868
69+ var _ BaseModelI = (* BaseModel )(nil )
70+
71+ func (model * BaseModel ) GetTenantID () string {
72+ return model .TenantID
73+ }
74+
75+ func (model * BaseModel ) GetPartitionID () string {
76+ return model .PartitionID
77+ }
78+
79+ func (model * BaseModel ) GetAccessID () string {
80+ return model .AccessID
81+ }
82+
83+ var _ util.TenancyInfo = (* BaseModel )(nil )
84+
6985// BeforeSave Ensures we update a migrations time stamps.
7086func (model * BaseModel ) BeforeSave (db * gorm.DB ) error {
7187 return model .BeforeCreate (db )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ require (
1818 github.com/nicksnyder/go-i18n/v2 v2.6.0
1919 github.com/panjf2000/ants/v2 v2.11.3
2020 github.com/pitabwire/natspubsub v0.7.11
21- github.com/pitabwire/util v0.3.7
21+ github.com/pitabwire/util v0.3.8
2222 github.com/redis/go-redis/v9 v9.17.2
2323 github.com/rs/xid v1.6.0
2424 github.com/stretchr/testify v1.11.1
Original file line number Diff line number Diff line change @@ -184,8 +184,8 @@ github.com/panjf2000/ants/v2 v2.11.3 h1:AfI0ngBoXJmYOpDh9m516vjqoUu2sLrIVgppI9TZ
184184github.com/panjf2000/ants/v2 v2.11.3 /go.mod h1:8u92CYMUc6gyvTIw8Ru7Mt7+/ESnJahz5EVtqfrilek =
185185github.com/pitabwire/natspubsub v0.7.11 h1:JF5YA4ja0MMvTgKKK7WprXPKztomZGr3OgtU3XelHxA =
186186github.com/pitabwire/natspubsub v0.7.11 /go.mod h1:zWlwRkjaiHxGjygTolthEjuRpaartLDChQ3hM28r3MA =
187- github.com/pitabwire/util v0.3.7 h1:T1h34wx42uSOwudh2aXlsJDZSKvQeSMamMin2R2AI2c =
188- github.com/pitabwire/util v0.3.7 /go.mod h1:dT1AZyJRyjERodwQKCeht2R5wi8yCYtElW+k0GzAPZU =
187+ github.com/pitabwire/util v0.3.8 h1:Afo9DE92SzlT+6dwKNM2bJhwEPKYij5YCtilqIacPGw =
188+ github.com/pitabwire/util v0.3.8 /go.mod h1:dT1AZyJRyjERodwQKCeht2R5wi8yCYtElW+k0GzAPZU =
189189github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4 =
190190github.com/pkg/errors v0.9.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
191191github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
You can’t perform that action at this time.
0 commit comments