anticheat

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package anticheat BFBan相关

Package anticheat BFEAC相关

Index

Constants

This section is empty.

Variables

View Source
var BFBanHackerStatus = map[int]string{
	0: "正在处理",
	1: "实锤",
	2: "等待自证",
	3: "MOSS自证",
	4: "无效举报",
	5: "讨论中",
	6: "需要更多管理员投票",
	8: "刷枪",
}

BFBanHackerStatus BFBan 举报状态

View Source
var EACHackerStatus = map[int]string{
	0: "正在处理",
	1: "实锤",
	2: "证据不足",
	3: "自证通过",
	4: "自证中",
	5: "刷枪",
}

EACHackerStatus BFEAC 举报状态

View Source
var ReportHTML string

ReportHTML 举报html模板

Functions

This section is empty.

Types

type HackBFBanResp

type HackBFBanResp struct {
	IsCheater bool
	URL       string
	Status    string
}

HackBFBanResp 返回案件信息

type HackEACResp

type HackEACResp struct {
	URL    string
	Status string
}

HackEACResp 返回案件信息

type Report added in v1.2.0

type Report struct {
	Target   string   `json:"target_EAID"`
	Body     string   `json:"case_body"`
	GameType int      `json:"game_type"`
	UploadBy Reporter `json:"report_by"`
}

Report 举报信息

func NewBF1Report added in v1.2.0

func NewBF1Report(susName string, body ReportBody) (*Report, error)

NewBF1Report 生成一个bf1举报信息

func (Report) UploadReport added in v1.2.0

func (r Report) UploadReport() error

UploadReport 用户进行举报

func (*Report) WithReporter added in v1.2.0

func (r *Report) WithReporter(reporter *Reporter) Report

WithReporter 附加上举报人信息

type ReportBody added in v1.2.0

type ReportBody struct {
	Link     string
	ImageURL string
	Words    []string
	SelfID   int64
}

ReportBody 用于举报上传的html模板

type Reporter added in v1.2.0

type Reporter struct {
	Platform  string `json:"report_platform"`
	UserID    int64  `json:"user_id"`
	Timestamp int64
	Details   map[string]any
}

Reporter 举报人信息

func NewReporter added in v1.2.0

func NewReporter(userID int64) *Reporter

NewReporter 生成举报人信息

func (*Reporter) WithDetails added in v1.2.0

func (r *Reporter) WithDetails(detail map[string]any) *Reporter

WithDetails 给举报人添加更多信息

Jump to

Keyboard shortcuts

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