Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
26 lines
462 B
Go
26 lines
462 B
Go
package srv_ipblack
|
|
|
|
import (
|
|
"videoweb/pub/models/ipblackmod"
|
|
"videoweb/pub/pubdef"
|
|
)
|
|
|
|
type GetIPBlackListReq struct {
|
|
pubdef.Page
|
|
IP *string `json:"ip"`
|
|
}
|
|
|
|
type GetIPBlackListResp struct {
|
|
Total int64 `json:"total"`
|
|
List []*ipblackmod.IPBlackModel `json:"list"`
|
|
}
|
|
|
|
type AddIPBlackListReq struct {
|
|
Ip string `json:"ip"`
|
|
Desc string `json:"desc" bson:"desc"` // 备注
|
|
}
|
|
|
|
type DelIpBlackListReq struct {
|
|
Ip string `json:"ip"`
|
|
}
|