service

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: 23 Imported by: 0

Documentation

Overview

Package service 业务逻辑代码

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service 业务

func New

func New(zctx *zero.Ctx) *Service

New 新建业务

func (*Service) AddServer added in v1.0.2

func (s *Service) AddServer() error

AddServer 添加服务器

@permission: SuperAdmin

func (*Service) AddServerAdmin added in v1.0.2

func (s *Service) AddServerAdmin() error

AddServerAdmin 添加服务器管理员

@permission: ServerOwner

func (*Service) BanPlayer added in v1.1.0

func (s *Service) BanPlayer(ctx context.Context) error

BanPlayer 指定一个已绑定的服务器中封禁玩家

@permission: ServerAdmin TODO: #13 添加 vban

func (*Service) BanPlayerAtAllServer added in v1.1.0

func (s *Service) BanPlayerAtAllServer(ctx context.Context) error

BanPlayerAtAllServer 在所有已绑定的服务器里封禁玩家

@permission: ServerAdmin

func (*Service) BindAccount

func (s *Service) BindAccount(ctx context.Context) error

BindAccount 绑定账号

func (*Service) ChangeMap added in v1.1.0

func (s *Service) ChangeMap() error

ChangeMap 切换指定服务器的地图

@permission: ServerAdmin

func (*Service) ChangeOwner added in v1.0.2

func (s *Service) ChangeOwner() error

ChangeOwner 更换服务器群组所有人

@permission: ServerOwner

func (*Service) CreateGroup added in v1.0.2

func (s *Service) CreateGroup() error

CreateGroup 所在群创建一个服务器群组

@permission: GroupOwner

func (*Service) DeleteAdmin added in v1.0.2

func (s *Service) DeleteAdmin() error

DeleteAdmin 删除群组服务器管理员

@permission: ServerOwner

func (*Service) DeleteGroup added in v1.0.2

func (s *Service) DeleteGroup() error

DeleteGroup 所在群删除服务器群组

@permission: ServerOwner

func (*Service) DeleteServer added in v1.0.2

func (s *Service) DeleteServer() error

DeleteServer 删除服务器

@permission: ServerOwner

func (*Service) GetBF1Exchange

func (s *Service) GetBF1Exchange(ctx context.Context) error

GetBF1Exchange 获取BF1本期交换信息

func (*Service) GetBF1OpreationPack

func (s *Service) GetBF1OpreationPack(ctx context.Context) error

GetBF1OpreationPack 获取本期行动包信息

func (*Service) GetMap added in v1.1.0

func (s *Service) GetMap() error

GetMap 查看地图池

@permission: Everyone

func (*Service) GetPlayerBanInfo added in v1.0.2

func (s *Service) GetPlayerBanInfo(ctx context.Context) error

GetPlayerBanInfo 获取玩家联ban信息

func (*Service) GetPlayerRecent

func (s *Service) GetPlayerRecent(ctx context.Context) error

GetPlayerRecent 获取玩家最近游玩

func (*Service) GetPlayerStats

func (s *Service) GetPlayerStats(ctx context.Context) error

GetPlayerStats 获取玩家战绩

func (*Service) GetPlayerVehicle

func (s *Service) GetPlayerVehicle(ctx context.Context) error

GetPlayerVehicle 获取玩家载具信息

func (*Service) GetPlayerWeapon

func (s *Service) GetPlayerWeapon(ctx context.Context) error

GetPlayerWeapon 获取玩家武器

func (*Service) KickPlayer added in v1.1.0

func (s *Service) KickPlayer(ctx context.Context) error

KickPlayer 在绑定的服务器里踢出玩家

@permission: ServerAdmin

func (*Service) Log added in v1.2.0

func (s *Service) Log() *logger.Logger

Log 日志记录

多业务使用同一个log

func (*Service) SetServerAlias added in v1.0.2

func (s *Service) SetServerAlias() error

SetServerAlias 设置服务器别名

@permission: ServerAdmin

func (*Service) UnbanPlayer added in v1.1.0

func (s *Service) UnbanPlayer(ctx context.Context) error

UnbanPlayer 指定一个已绑定的服务器中解封玩家

@permission: ServerAdmin

func (*Service) UnbanPlayerAtAllServer added in v1.1.0

func (s *Service) UnbanPlayerAtAllServer(ctx context.Context) error

UnbanPlayerAtAllServer 在所有已绑定的服务器里封禁玩家

@permission: ServerAdmin

Jump to

Keyboard shortcuts

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