Refactoring to a cleaner architecture
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package domain
|
||||
|
||||
type Property struct {
|
||||
Id string
|
||||
Value string
|
||||
}
|
||||
|
||||
type PropertyRepository interface {
|
||||
Put(id string, value string) error
|
||||
Get(id string) (string, error)
|
||||
DefaultGet(id string, defaultValue string) (string, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user