chore: refresh gramsrv public release
This commit is contained in:
parent
75cebe8dbf
commit
70b6820474
1274 changed files with 378751 additions and 59919 deletions
36
internal/domain/admin.go
Normal file
36
internal/domain/admin.go
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
package domain
|
||||
|
||||
import "time"
|
||||
|
||||
type AdminCommandStatus string
|
||||
|
||||
const (
|
||||
AdminCommandRunning AdminCommandStatus = "running"
|
||||
AdminCommandCompleted AdminCommandStatus = "completed"
|
||||
AdminCommandFailed AdminCommandStatus = "failed"
|
||||
)
|
||||
|
||||
type AdminCommand struct {
|
||||
CommandID string
|
||||
Actor string
|
||||
Action string
|
||||
TargetUserID int64
|
||||
TargetPeer Peer
|
||||
DryRun bool
|
||||
Reason string
|
||||
RequestJSON []byte
|
||||
ResultJSON []byte
|
||||
Status AdminCommandStatus
|
||||
Error string
|
||||
CreatedAt time.Time
|
||||
CompletedAt *time.Time
|
||||
}
|
||||
|
||||
type AccountSendRestriction struct {
|
||||
UserID int64
|
||||
Frozen bool
|
||||
Reason string
|
||||
Actor string
|
||||
CommandID string
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue