userTable

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserTableImpl

type UserTableImpl struct {
	CurID uint32
	// contains filtered or unexported fields
}

func NewUserTableImpl

func NewUserTableImpl() *UserTableImpl

func (*UserTableImpl) AddFriend

func (u *UserTableImpl) AddFriend(ctx context.Context, UserID uint32, friend string) (*user.UserInfo, error)

func (*UserTableImpl) AddUser

func (u *UserTableImpl) AddUser(ctx context.Context, data *user.UserInfo) error

func (*UserTableImpl) AddUserCash

func (u *UserTableImpl) AddUserCash(ctx context.Context, UserID uint32, num uint64) (uint64, error)

func (*UserTableImpl) AddUserPoints

func (u *UserTableImpl) AddUserPoints(ctx context.Context, UserID uint32, num uint64) (uint64, error)

func (*UserTableImpl) DeleteUserByID

func (u *UserTableImpl) DeleteUserByID(ctx context.Context, id uint32) error

func (*UserTableImpl) DeleteUserByName

func (u *UserTableImpl) DeleteUserByName(ctx context.Context, username string) error

func (*UserTableImpl) GetNewUserID

func (u *UserTableImpl) GetNewUserID(ctx context.Context) uint32

func (*UserTableImpl) GetUserByID

func (u *UserTableImpl) GetUserByID(ctx context.Context, id uint32) *user.UserInfo

func (*UserTableImpl) GetUserByUserName

func (u *UserTableImpl) GetUserByUserName(ctx context.Context, username string) *user.UserInfo

func (*UserTableImpl) GetUserFriends

func (u *UserTableImpl) GetUserFriends(ctx context.Context, UserID uint32) ([]user.UserInfo, error)

func (*UserTableImpl) PayCash

func (u *UserTableImpl) PayCash(ctx context.Context, UserID uint32, num uint64) (uint64, error)

func (*UserTableImpl) PayPoints

func (u *UserTableImpl) PayPoints(ctx context.Context, UserID uint32, num uint64) (uint64, error)

func (*UserTableImpl) UpdateBag

func (u *UserTableImpl) UpdateBag(ctx context.Context, UserID uint32, BagID uint16, Slot uint8, ItemID uint16) (*user.UserInfo, error)

func (*UserTableImpl) UpdateBuymenu

func (u *UserTableImpl) UpdateBuymenu(ctx context.Context, UserID uint32, BuymenuID uint16, Slot uint8, ItemID uint16) (*user.UserInfo, error)

func (*UserTableImpl) UpdateCampaign

func (u *UserTableImpl) UpdateCampaign(ctx context.Context, UserID uint32, CampaignID uint8) (*user.UserInfo, error)

func (*UserTableImpl) UpdateCosmetics

func (u *UserTableImpl) UpdateCosmetics(ctx context.Context, UserID uint32, CosmeticsID uint8, cosmetics *user.UserCosmetics) (*user.UserInfo, error)

func (*UserTableImpl) UpdateNickname

func (u *UserTableImpl) UpdateNickname(ctx context.Context, UserID uint32, nickname string) (*user.UserInfo, error)

func (*UserTableImpl) UpdateOption

func (u *UserTableImpl) UpdateOption(ctx context.Context, UserID uint32, Options []byte) (*user.UserInfo, error)

func (*UserTableImpl) UpdateUser

func (u *UserTableImpl) UpdateUser(ctx context.Context, data *user.UserInfo) error

Jump to

Keyboard shortcuts

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