mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-26 04:33:32 -06:00
[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
This commit is contained in:
parent
c2029df9bc
commit
301543616b
69 changed files with 5664 additions and 264 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue