Documentation ¶
Overview ¶
Package bf1reqbody 战地服务器操作请求body
Index ¶
- type Param
- type Post
- func NewPostBan(pid, sid string) *Post
- func NewPostChangeMap(pgid string, index int) *Post
- func NewPostGetServerDetails(gid string) *Post
- func NewPostGetServerInfo(gid string) *Post
- func NewPostKick(pid, gid, reason string) *Post
- func NewPostPlaying(pid string) *Post
- func NewPostRSPInfo(sid string) *Post
- func NewPostRecent(pid string) *Post
- func NewPostRemoveBan(pid, sid string) *Post
- func NewPostStats(pid string) *Post
- func NewPostVehicle(pid string) *Post
- func NewPostWeapon(pid string) *Post
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Param ¶
type Param struct { Game string `json:"game"` PersonaID string `json:"personaId"` PersonaIds []string `json:"personaIds"` GameID string `json:"gameId"` ServerID string `json:"serverId"` PGid string `json:"persistedGameId"` LevelIndex int `json:"levelIndex"` Reason string `json:"reason"` }
Param parameters
type Post ¶
type Post struct { Jsonrpc string `json:"jsonrpc"` Method string `json:"method"` Params Param `json:"params"` ID string `json:"id"` }
Post 结构体
func NewPostGetServerDetails ¶
NewPostGetServerDetails 获取完整服务器信息
func NewPostGetServerInfo ¶
NewPostGetServerInfo 获取服务器部分信息
Click to show internal directories.
Click to hide internal directories.