Skip to content

Commit b56e8b5

Browse files
committed
fix
1 parent 93bfc79 commit b56e8b5

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

example/entity/api_logger_entity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ func (e *APILogEntity) SetStatus(value string) {
5555
}
5656

5757
func (e *APILogEntity) SetRequest(value interface{}) {
58-
e.Request = value
58+
e.Request = value.(string)
5959
}
6060

6161
func (e *APILogEntity) SetResponse(value interface{}) {
62-
e.Response = value
62+
e.Response = value.(string)
6363
}
6464

6565
func (e *APILogEntity) SetMessage(value string) {

example/entity/init.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ func Init(registry fluxaorm.Registry) {
1111
&APILogEntity{},
1212
&AdminUserEntity{},
1313
&DevPanelUserEntity{},
14-
&entity.FileEntity{},
14+
//&entity.FileEntity{},
1515
&entity.SmsTrackerEntity{},
1616
&entity.OTPTrackerEntity{},
1717
&entity.FeatureFlagEntity{},
1818
&entity.RequestLoggerEntity{},
19-
&entity.RoleEntity{},
20-
&entity.ResourceEntity{},
21-
&entity.PrivilegeEntity{},
22-
&entity.PermissionEntity{},
19+
//&entity.RoleEntity{},
20+
//&entity.ResourceEntity{},
21+
//&entity.PrivilegeEntity{},
22+
//&entity.PermissionEntity{},
2323
)
2424

2525
//registry.RegisterEnumStruct("entity.FileStatusAll", entity.FileStatusAll)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require (
2929
github.com/gorilla/websocket v1.5.0
3030
github.com/icza/gox v0.0.0-20201215141822-6edfac6c05b5
3131
github.com/joho/godotenv v1.3.0
32-
github.com/latolukasz/fluxaorm v1.11.0
32+
github.com/latolukasz/fluxaorm v1.10.2
3333
github.com/mailjet/mailjet-apiv3-go v0.0.0-20201009050126-c24bc15a9394
3434
github.com/mailjet/mailjet-apiv3-go/v3 v3.1.1
3535
github.com/mattbaird/gochimp v0.0.0-20200820164431-f1082bcdf63f

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
295295
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
296296
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
297297
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
298-
github.com/latolukasz/fluxaorm v1.11.0 h1:H8VmMYX5rcoJruBnS1gJ4prIt+ceJwf/E1tfH7uSbxs=
299-
github.com/latolukasz/fluxaorm v1.11.0/go.mod h1:D1FBTbY4GKm9909q4vWaqPl+isgyKC5m6YEyPOxzgCo=
298+
github.com/latolukasz/fluxaorm v1.10.2 h1:t2ePs2h91jPnNUDJePxhlGxbywtsa7i1xQGk55c4KsM=
299+
github.com/latolukasz/fluxaorm v1.10.2/go.mod h1:D1FBTbY4GKm9909q4vWaqPl+isgyKC5m6YEyPOxzgCo=
300300
github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
301301
github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
302302
github.com/lib/pq v1.10.4 h1:SO9z7FRPzA03QhHKJrH5BXA6HU1rS4V2nIVrrNC1iYk=

service/registry/orm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func ServiceProviderOrm() *service.DefinitionGlobal {
1515
Name: service.ORMGlobalService,
1616
Build: func(ctn di.Container) (interface{}, error) {
1717
orm := ctn.Get(service.ORMEngineService).(fluxaorm.Engine).NewContext(
18-
ctn.Get(service.AppService).(app.App).GlobalContext,
18+
ctn.Get(service.AppService).(*app.App).GlobalContext,
1919
)
2020

2121
ormDebug, ok := ctn.Get(service.ConfigService).(config.IConfig).Bool("orm_debug")

0 commit comments

Comments
 (0)