service

package
v0.0.0-...-5387047 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoginServiceImpl

func NewLoginServiceImpl(username, password string) *loginServiceImpl

func NewNickNameServiceImpl

func NewNickNameServiceImpl(userID uint32, nickname string) *nicknameServiceImpl

func NewUpdateServiceImpl

func NewUpdateServiceImpl() *updateServiceImpl

Types

type DownService

type DownService interface {
	Handle(ctx context.Context) error
}

func NewDownService

func NewDownService(userID uint32) DownService

type FriendsService

type FriendsService interface {
	Handle(ctx context.Context) ([]user.UserInfo, error)
}

func NewFriendsService

func NewFriendsService(userID uint32) FriendsService

type LoginService

type LoginService interface {
	Login(ctx context.Context) (*user.UserInfo, int8)
}

type NickNameService

type NickNameService interface {
	SetNickName(ctx context.Context) (*user.UserInfo, error)
}

type RegisterService

type RegisterService interface {
	Register(ctx context.Context) error
	// contains filtered or unexported methods
}

func NewRegisterServiceImpl

func NewRegisterServiceImpl(username, nickname, password string) RegisterService

type UpdateBagService

type UpdateBagService interface {
	Handle(ctx context.Context) (*user.UserInfo, error)
}

func NewUpdateBagServiceImpl

func NewUpdateBagServiceImpl(UserID uint32, BagID uint16, Slot uint8, ItemID uint16) UpdateBagService

type UpdateBuymenuService

type UpdateBuymenuService interface {
	Handle(ctx context.Context) (*user.UserInfo, error)
}

func NewUpdateBuymenuServiceImpl

func NewUpdateBuymenuServiceImpl(UserID uint32, BuymenuID uint16, Slot uint8, ItemID uint16) UpdateBuymenuService

type UpdateCampaignService

type UpdateCampaignService interface {
	Handle(ctx context.Context) (*user.UserInfo, error)
}

func NewUpdateCampaignServiceImpl

func NewUpdateCampaignServiceImpl(UserID uint32, CampaignID uint8) UpdateCampaignService

type UpdateCosmeticsService

type UpdateCosmeticsService interface {
	Handle(ctx context.Context) (*user.UserInfo, error)
}

func NewUpdateCosmeticsServiceImpl

func NewUpdateCosmeticsServiceImpl(UserID uint32, CosmeticsID uint8, cosmetics *user.UserCosmetics) UpdateCosmeticsService

type UpdateOptionService

type UpdateOptionService interface {
	Handle(ctx context.Context) (*user.UserInfo, error)
}

func NewUpdateOptionServiceImpl

func NewUpdateOptionServiceImpl(UserID uint32, data []byte) UpdateOptionService

type UpdateService

type UpdateService interface {
	Update(ctx context.Context) error
}

type UserInfoService

type UserInfoService interface {
	Handle(ctx context.Context) (*user.UserInfo, error)
}

func NewUserInfoService

func NewUserInfoService(id uint32) UserInfoService

Jump to

Keyboard shortcuts

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