You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
2.6 KiB
104 lines
2.6 KiB
package game |
|
|
|
import ( |
|
"github.com/gogf/gf/v2/frame/g" |
|
"tyj_admin/api/v1/common" |
|
"tyj_admin/internal/model/entity" |
|
) |
|
|
|
type GetListWhiteListReq struct { |
|
g.Meta `path:"/whiteList/get" tags:"ip白名单" method:"post" summary:"获取ip白名单列表"` |
|
PageNum int `p:"pageNum"` |
|
PageSize int `p:"pageSize"` |
|
} |
|
|
|
type GetListWhiteListRes struct { |
|
g.Meta `mime:"application/json"` |
|
WhiteList []entity.GameWhiteList `json:"whiteList"` |
|
Total int `json:"total"` |
|
} |
|
|
|
type GetWhiteStateReq struct { |
|
g.Meta `path:"/whiteState/get" tags:"ip白名单" method:"get" summary:"判断ip白名单"` |
|
} |
|
|
|
type GetWhiteStateRes struct { |
|
g.Meta `mime:"application/json"` |
|
Count int `json:"count"` |
|
} |
|
|
|
type GetWhiteListReq struct { |
|
g.Meta `path:"/whiteList/get" tags:"ip白名单" method:"get" summary:"判断ip白名单"` |
|
} |
|
|
|
type GetWhiteListRes struct { |
|
g.Meta `mime:"application/json"` |
|
Count int `json:"count"` |
|
} |
|
|
|
type WhiteListReq struct { |
|
g.Meta `path:"/whiteList/list" tags:"ip白名单" method:"get" summary:"获取ip白名单列表"` |
|
} |
|
|
|
type WhiteListRes struct { |
|
g.Meta `mime:"application/json"` |
|
WhiteList []string `json:"whiteList"` |
|
} |
|
|
|
type UpdateWhiteListReq struct { |
|
g.Meta `path:"/whiteList/update" tags:"ip白名单" method:"post" summary:"更新ip白名单"` |
|
//Id int `p:"id"` |
|
Ip string `p:"ip"` |
|
} |
|
|
|
type UpdateWhiteListRes struct { |
|
g.Meta `mime:"application/json"` |
|
} |
|
|
|
type DelWhiteListReq struct { |
|
g.Meta `path:"/whiteList/del" tags:"ip白名单" method:"post" summary:"删除ip白名单"` |
|
Ip string `p:"ip"` |
|
} |
|
|
|
type DelWhiteListRes struct { |
|
g.Meta `mime:"application/json"` |
|
} |
|
|
|
type GetListBlackListReq struct { |
|
g.Meta `path:"/blackList/get" tags:"ip白名单" method:"post" summary:"获取ip白名单列表"` |
|
common.PageReq |
|
} |
|
|
|
type GetListBlackListRes struct { |
|
g.Meta `mime:"application/json"` |
|
WhiteList []entity.GameBlackList `json:"whiteList"` |
|
common.ListRes |
|
} |
|
|
|
type GetBlackListReq struct { |
|
g.Meta `path:"/blackList/get" tags:"ip白名单" method:"get" summary:"判断ip白名单"` |
|
} |
|
|
|
type GetBlackListRes struct { |
|
g.Meta `mime:"application/json"` |
|
Count int `json:"count"` |
|
} |
|
|
|
type UpdateBlackListReq struct { |
|
g.Meta `path:"/blackList/update" tags:"ip白名单" method:"post" summary:"更新ip白名单"` |
|
Id int `p:"id"` |
|
Ip string `p:"ip"` |
|
} |
|
|
|
type UpdateBlackListRes struct { |
|
g.Meta `mime:"application/json"` |
|
} |
|
|
|
type DelBlackListReq struct { |
|
g.Meta `path:"/blackList/del" tags:"ip白名单" method:"post" summary:"删除ip白名单"` |
|
Ip string `p:"ip"` |
|
} |
|
|
|
type DelBlackListRes struct { |
|
g.Meta `mime:"application/json"` |
|
}
|
|
|