Files
hyapi-server/internal/application/user/dto/commands/blacklist_commands.go

16 lines
484 B
Go
Raw Normal View History

2026-07-15 21:44:13 +08:00
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:"-"`
}