bf1reqbody

package
v1.2.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package bf1reqbody 战地服务器操作请求body

Index

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 NewPostBan

func NewPostBan(pid, sid string) *Post

NewPostBan 服务器封禁

func NewPostChangeMap

func NewPostChangeMap(pgid string, index int) *Post

NewPostChangeMap 换图

func NewPostGetServerDetails

func NewPostGetServerDetails(gid string) *Post

NewPostGetServerDetails 获取完整服务器信息

func NewPostGetServerInfo

func NewPostGetServerInfo(gid string) *Post

NewPostGetServerInfo 获取服务器部分信息

func NewPostKick

func NewPostKick(pid, gid, reason string) *Post

NewPostKick 踢出游戏

func NewPostPlaying

func NewPostPlaying(pid string) *Post

NewPostPlaying 正在游玩

func NewPostRSPInfo

func NewPostRSPInfo(sid string) *Post

NewPostRSPInfo 获取服务器rsp信息

func NewPostRecent

func NewPostRecent(pid string) *Post

NewPostRecent 最近游玩的服务器

func NewPostRemoveBan

func NewPostRemoveBan(pid, sid string) *Post

NewPostRemoveBan 服务器解封

func NewPostStats

func NewPostStats(pid string) *Post

NewPostStats 战绩

func NewPostVehicle

func NewPostVehicle(pid string) *Post

NewPostVehicle 载具结构体

func NewPostWeapon

func NewPostWeapon(pid string) *Post

NewPostWeapon 武器结构体

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL