f
This commit is contained in:
15
internal/application/user/dto/commands/blacklist_commands.go
Normal file
15
internal/application/user/dto/commands/blacklist_commands.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package commands
|
||||
|
||||
// BlacklistUserCommand 管理员将用户列入黑名单
|
||||
type BlacklistUserCommand struct {
|
||||
UserID string `json:"-"`
|
||||
OperatorUserID string `json:"-"`
|
||||
Reason string `json:"reason" binding:"required"`
|
||||
Source string `json:"source"` // self / police / test,默认 self
|
||||
}
|
||||
|
||||
// UnblacklistUserCommand 管理员将用户移出黑名单
|
||||
type UnblacklistUserCommand struct {
|
||||
UserID string `json:"-"`
|
||||
OperatorUserID string `json:"-"`
|
||||
}
|
||||
Reference in New Issue
Block a user