-
Notifications
You must be signed in to change notification settings - Fork 13
/
init.go
33 lines (29 loc) · 1.15 KB
/
init.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package entity
import (
"github.com/latolukasz/beeorm"
"github.com/coretrix/hitrix/pkg/entity"
)
func Init(registry *beeorm.Registry) {
registry.RegisterEntity(
&APILogEntity{},
&AdminUserEntity{},
&DevPanelUserEntity{},
&entity.FileEntity{},
&entity.SmsTrackerEntity{},
&entity.OTPTrackerEntity{},
&entity.FeatureFlagEntity{},
&entity.RequestLoggerEntity{},
&entity.RoleEntity{},
&entity.ResourceEntity{},
&entity.PrivilegeEntity{},
&entity.PermissionEntity{},
)
registry.RegisterEnumStruct("entity.FileStatusAll", entity.FileStatusAll)
registry.RegisterEnumStruct("entity.APILogTypeAll", APILogTypeAll)
registry.RegisterEnumStruct("entity.APILogStatusAll", APILogStatusAll)
registry.RegisterEnumStruct("entity.APILogStatusAll", APILogStatusAll)
registry.RegisterEnumStruct("entity.SMSTrackerTypeAll", entity.SMSTrackerTypeAll)
registry.RegisterEnumStruct("entity.OTPTrackerTypeAll", entity.OTPTrackerTypeAll)
registry.RegisterEnumStruct("entity.OTPTrackerGatewaySendStatusAll", entity.OTPTrackerGatewaySendStatusAll)
registry.RegisterEnumStruct("entity.OTPTrackerGatewayVerifyStatusAll", entity.OTPTrackerGatewayVerifyStatusAll)
}