Documentation ¶
Index ¶
- type UserTableImpl
- func (u *UserTableImpl) AddFriend(ctx context.Context, UserID uint32, friend string) (*user.UserInfo, error)
- func (u *UserTableImpl) AddUser(ctx context.Context, data *user.UserInfo) error
- func (u *UserTableImpl) AddUserCash(ctx context.Context, UserID uint32, num uint64) (uint64, error)
- func (u *UserTableImpl) AddUserPoints(ctx context.Context, UserID uint32, num uint64) (uint64, error)
- func (u *UserTableImpl) DeleteUserByID(ctx context.Context, id uint32) error
- func (u *UserTableImpl) DeleteUserByName(ctx context.Context, username string) error
- func (u *UserTableImpl) GetNewUserID(ctx context.Context) uint32
- func (u *UserTableImpl) GetUserByID(ctx context.Context, id uint32) *user.UserInfo
- func (u *UserTableImpl) GetUserByUserName(ctx context.Context, username string) *user.UserInfo
- func (u *UserTableImpl) GetUserFriends(ctx context.Context, UserID uint32) ([]user.UserInfo, error)
- func (u *UserTableImpl) PayCash(ctx context.Context, UserID uint32, num uint64) (uint64, error)
- func (u *UserTableImpl) PayPoints(ctx context.Context, UserID uint32, num uint64) (uint64, error)
- func (u *UserTableImpl) UpdateBag(ctx context.Context, UserID uint32, BagID uint16, Slot uint8, ItemID uint16) (*user.UserInfo, error)
- func (u *UserTableImpl) UpdateBuymenu(ctx context.Context, UserID uint32, BuymenuID uint16, Slot uint8, ...) (*user.UserInfo, error)
- func (u *UserTableImpl) UpdateCampaign(ctx context.Context, UserID uint32, CampaignID uint8) (*user.UserInfo, error)
- func (u *UserTableImpl) UpdateCosmetics(ctx context.Context, UserID uint32, CosmeticsID uint8, ...) (*user.UserInfo, error)
- func (u *UserTableImpl) UpdateNickname(ctx context.Context, UserID uint32, nickname string) (*user.UserInfo, error)
- func (u *UserTableImpl) UpdateOption(ctx context.Context, UserID uint32, Options []byte) (*user.UserInfo, error)
- func (u *UserTableImpl) UpdateUser(ctx context.Context, data *user.UserInfo) error
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) AddUserCash ¶
func (*UserTableImpl) AddUserPoints ¶
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 (*UserTableImpl) GetUserByUserName ¶
func (*UserTableImpl) GetUserFriends ¶
func (*UserTableImpl) UpdateBuymenu ¶
func (*UserTableImpl) UpdateCampaign ¶
func (*UserTableImpl) UpdateCosmetics ¶
func (u *UserTableImpl) UpdateCosmetics(ctx context.Context, UserID uint32, CosmeticsID uint8, cosmetics *user.UserCosmetics) (*user.UserInfo, error)
func (*UserTableImpl) UpdateNickname ¶
func (*UserTableImpl) UpdateOption ¶
func (*UserTableImpl) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.