Documentation ¶
Index ¶
- Constants
- type AccountNotify
- type BlockAction
- type BlockArea
- type BlockHistory
- type BlockInfo
- type BlockMessage
- type BlockSource
- type BlockStatus
- type DBHistory
- type DBUser
- type DBUserDetail
- type MCBlockInfo
- type MSG
- type MSGType
- type ParamBatchBlock
- type ParamBatchRemove
- type ParamHistory
- type ParamSearch
- type ParamValidator
Constants ¶
View Source
const ( // BlockLogBizID 用户审核日志 BlockLogBizID int = 122 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountNotify ¶
type AccountNotify struct { UID int64 `json:"mid"` Type string `json:"type"` Action string `json:"action"` }
AccountNotify .
type BlockAction ¶
type BlockAction uint8
BlockAction .
const ( // BlockActionLimit 限时封禁 BlockActionLimit BlockAction = iota + 1 // BlockActionForever 永久封禁 BlockActionForever // BlockActionAdminRemove �后台解封 BlockActionAdminRemove // BlockActionSelfRemove 自动解封 BlockActionSelfRemove )
type BlockArea ¶
type BlockArea uint8
BlockArea 封禁业务
type BlockHistory ¶
type BlockHistory struct { Source BlockSource `json:"type"` Operator string `json:"operator"` // 操作人 Reason string `json:"reason"` // 封禁原因 Action BlockAction `json:"action"` // 操作类型 ActionTime int64 `json:"action_time"` // 操作时间 RemoveTime int64 `json:"remove_time"` // 解封时间 Comment string `json:"comment"` }
BlockHistory 封禁历史
type BlockInfo ¶
type BlockInfo struct { MID int64 `json:"mid"` Nickname string `json:"nickname"` Username string `json:"username"` // 注册生成时不可更改的username Tel string `json:"tel"` TelStatus int32 `json:"tel_status"` Mail string `json:"mail"` // 绑定的邮箱 Level int32 `json:"level"` SpyScore int8 `json:"spy_score"` FigureRank int8 `json:"figure_rank"` RegTime int64 `json:"reg_time"` BlockStatus BlockStatus `json:"block_status"` // blockStatus 封禁状态 0. 未封禁 1. 永久封禁 2. 限时封禁 BlockCount int `json:"block_count"` }
BlockInfo 封禁信息
type BlockMessage ¶
type BlockMessage struct { MID int64 `json:"mid"` // 用户mid Area BlockArea `json:"area"` // BlockArea 封禁类型 1. 小黑屋(小黑屋和manager后台封禁) 2. 系统封禁(反作弊及监控系统上报) 3.解封 (所有后台,用户前台自助的解封) Status BlockStatus `json:"status"` // blockStatus 封禁状态 0. 未封禁 1. 永久封禁 2. 限时封禁 }
BlockMessage 通知消息体
type BlockSource ¶
type BlockSource uint8
BlockSource 封禁来源 1. 小黑屋(小黑屋和manager后台封禁) 2. 系统封禁(反作弊及监控系统上报) 3.解封 (所有后台,用户前台自助的解封)
const ( // BlockSourceBlackHouse 小黑屋封禁 BlockSourceBlackHouse BlockSource = iota + 1 // BlockSourceSys 系统封禁 BlockSourceSys // BlockSourceRemove 解封 BlockSourceRemove )
type BlockStatus ¶
type BlockStatus uint8
BlockStatus 封禁状态 0. 未封禁 1. 永久封禁 2. 限时封禁
const ( // BlockStatusFalse 未封禁 BlockStatusFalse BlockStatus = iota // BlockStatusForever 永久封禁 BlockStatusForever // BlockStatusLimit 限时封禁 BlockStatusLimit // BlockStatusCredit 小黑屋封禁 BlockStatusCredit )
type 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 }
DBHistory .
type DBUserDetail ¶
DBUserDetail .
type ParamBatchBlock ¶
type ParamBatchBlock struct { MIDs []int64 `form:"mids,split"` AdminID int64 `form:"admin_id"` AdminName string `form:"admin_name"` Source int `form:"source"` //1 系统封禁 2 小黑屋封禁 Area BlockArea `form:"area"` Reason string `form:"reason"` Comment string `form:"comment"` Action BlockAction `form:"action"` Duration int64 `form:"duration"` // 单位:天 Notify bool `form:"notify"` }
ParamBatchBlock .
type ParamBatchRemove ¶
type ParamBatchRemove struct { MIDs []int64 `form:"mids,split"` AdminID int64 `form:"admin_id"` AdminName string `form:"admin_name"` Comment string `form:"comment"` Notify bool `form:"notify"` }
ParamBatchRemove .
type ParamHistory ¶
ParamHistory .
Click to show internal directories.
Click to hide internal directories.