16 lines
484 B
Go
16 lines
484 B
Go
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:"-"`
|
||
}
|