58 lines
904 B
Go
58 lines
904 B
Go
package block
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
// DBUser .
|
|
type DBUser struct {
|
|
ID int64
|
|
MID int64
|
|
Status BlockStatus
|
|
CTime time.Time
|
|
MTime time.Time
|
|
}
|
|
|
|
// DBUserDetail .
|
|
type DBUserDetail struct {
|
|
ID int64
|
|
MID int64
|
|
BlockCount int
|
|
CTime time.Time
|
|
MTime time.Time
|
|
}
|
|
|
|
// DBHistory .
|
|
type DBHistory struct {
|
|
ID int64
|
|
MID int64
|
|
AdminID int64
|
|
AdminName string
|
|
Source BlockSource
|
|
Area BlockArea
|
|
Reason string
|
|
Comment string
|
|
Action BlockAction
|
|
StartTime time.Time
|
|
Duration int64
|
|
Notify bool
|
|
CTime time.Time
|
|
MTime time.Time
|
|
}
|
|
|
|
// DBExtra .
|
|
type DBExtra struct {
|
|
ID int64
|
|
MID int64
|
|
CreditAnswerFlag bool
|
|
ActionTime time.Time
|
|
CTime time.Time
|
|
MTime time.Time
|
|
}
|
|
|
|
// MCBlockInfo .
|
|
type MCBlockInfo struct {
|
|
// BlockStatus is.
|
|
BlockStatus BlockStatus `json:"bs"`
|
|
}
|