Documentation ¶
Overview ¶
Package service 业务逻辑代码
Index ¶
- type Service
- func (s *Service) AddServer() error
- func (s *Service) AddServerAdmin() error
- func (s *Service) BanPlayer(ctx context.Context) error
- func (s *Service) BanPlayerAtAllServer(ctx context.Context) error
- func (s *Service) BindAccount(ctx context.Context) error
- func (s *Service) ChangeMap() error
- func (s *Service) ChangeOwner() error
- func (s *Service) CreateGroup() error
- func (s *Service) DeleteAdmin() error
- func (s *Service) DeleteGroup() error
- func (s *Service) DeleteServer() error
- func (s *Service) GetBF1Exchange(ctx context.Context) error
- func (s *Service) GetBF1OpreationPack(ctx context.Context) error
- func (s *Service) GetMap() error
- func (s *Service) GetPlayerBanInfo(ctx context.Context) error
- func (s *Service) GetPlayerRecent(ctx context.Context) error
- func (s *Service) GetPlayerStats(ctx context.Context) error
- func (s *Service) GetPlayerVehicle(ctx context.Context) error
- func (s *Service) GetPlayerWeapon(ctx context.Context) error
- func (s *Service) KickPlayer(ctx context.Context) error
- func (s *Service) Log() *logger.Logger
- func (s *Service) SetServerAlias() error
- func (s *Service) UnbanPlayer(ctx context.Context) error
- func (s *Service) UnbanPlayerAtAllServer(ctx context.Context) error
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 (*Service) BanPlayer ¶ added in v1.1.0
BanPlayer 指定一个已绑定的服务器中封禁玩家
@permission: ServerAdmin TODO: #13 添加 vban
func (*Service) BanPlayerAtAllServer ¶ added in v1.1.0
BanPlayerAtAllServer 在所有已绑定的服务器里封禁玩家
@permission: ServerAdmin
func (*Service) BindAccount ¶
BindAccount 绑定账号
func (*Service) GetBF1Exchange ¶
GetBF1Exchange 获取BF1本期交换信息
func (*Service) GetBF1OpreationPack ¶
GetBF1OpreationPack 获取本期行动包信息
func (*Service) GetPlayerBanInfo ¶ added in v1.0.2
GetPlayerBanInfo 获取玩家联ban信息
func (*Service) GetPlayerRecent ¶
GetPlayerRecent 获取玩家最近游玩
func (*Service) GetPlayerStats ¶
GetPlayerStats 获取玩家战绩
func (*Service) GetPlayerVehicle ¶
GetPlayerVehicle 获取玩家载具信息
func (*Service) GetPlayerWeapon ¶
GetPlayerWeapon 获取玩家武器
Click to show internal directories.
Click to hide internal directories.