summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/domainpermission.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-11-21 14:09:58 +0100
committerLibravatar GitHub <noreply@github.com>2024-11-21 13:09:58 +0000
commit301543616b5376585a7caff097499421acdf1806 (patch)
tree4cac6aea2c33687b1339fc3bc18e6eb64def6f9a /internal/gtsmodel/domainpermission.go
parent[feature] Allow emoji shortcode to be 1-character length (#3556) (diff)
downloadgotosocial-301543616b5376585a7caff097499421acdf1806.tar.xz
[feature] Add domain permission drafts and excludes (#3547)
* [feature] Add domain permission drafts and excludes * fix typescript complaining * lint * make filenames more consistent * test own domain excluded
Diffstat (limited to 'internal/gtsmodel/domainpermission.go')
-rw-r--r--internal/gtsmodel/domainpermission.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/internal/gtsmodel/domainpermission.go b/internal/gtsmodel/domainpermission.go
index 01e8fdaaa..3d1ee873f 100644
--- a/internal/gtsmodel/domainpermission.go
+++ b/internal/gtsmodel/domainpermission.go
@@ -19,19 +19,26 @@ package gtsmodel
import "time"
-// DomainPermission models a domain
-// permission entry (block/allow).
+// DomainPermission models a domain permission
+// entry -- block / allow / draft / exclude.
type DomainPermission interface {
GetID() string
GetCreatedAt() time.Time
GetUpdatedAt() time.Time
+ SetUpdatedAt(i time.Time)
GetDomain() string
GetCreatedByAccountID() string
+ SetCreatedByAccountID(i string)
GetCreatedByAccount() *Account
+ SetCreatedByAccount(i *Account)
GetPrivateComment() string
+ SetPrivateComment(i string)
GetPublicComment() string
+ SetPublicComment(i string)
GetObfuscate() *bool
+ SetObfuscate(i *bool)
GetSubscriptionID() string
+ SetSubscriptionID(i string)
GetType() DomainPermissionType
}