Skip to content

Commit 51eeb85

Browse files
Fixed cyclic dependency issue by creating types module which contains shared struct definations
1 parent 0498851 commit 51eeb85

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

internal/types/transaction.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package types
2+
3+
/* transaction represents a permission management transaction */
4+
type Transaction struct {
5+
ID string
6+
UserID string
7+
Action string
8+
Resource string
9+
Permissions string
10+
Status string
11+
Timestamp string
12+
}
13+
14+
/* represents the result of a processed transaction */
15+
type TransactionResult struct {
16+
Transaction Transaction
17+
Success bool
18+
Error string
19+
Timestamp string
20+
}

0 commit comments

Comments
 (0)