Skip to content

Commit d12ede8

Browse files
committed
Refactor constructors
1 parent 842edf6 commit d12ede8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

appr_handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
)
1010

1111
type ApprHandler struct {
12-
Error func(context.Context, string)
1312
ApprService ApprService
14-
ModelType reflect.Type
1513
Keys []string
14+
ModelType reflect.Type
15+
Error func(context.Context, string)
1616
Indexes map[string]int
1717
Offset int
1818
Log func(ctx context.Context, resource string, action string, success bool, desc string) error

appr_list_handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
)
88

99
type ApprListHandler struct {
10-
Error func(context.Context, string)
1110
ApprListService ApprListService
12-
ModelType reflect.Type
1311
Keys []string
12+
ModelType reflect.Type
13+
Error func(context.Context, string)
1414
Log func(ctx context.Context, resource string, action string, success bool, desc string) error
1515
Resource string
1616
Action1 string

0 commit comments

Comments
 (0)