manager

package
v0.0.0-...-457ba4f Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

* User: cr-mao Date: 2023/8/30 11:43 Email: crmao@qq.com Desc: 全局变量都在这个包里面

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LianmengManager

type LianmengManager struct {
	LimengInfos map[int64]map[int64]*User
	// contains filtered or unexported fields
}
var Manager *LianmengManager

func GetManager

func GetManager() *LianmengManager

func (*LianmengManager) AddUser

func (m *LianmengManager) AddUser(user *User)

func (*LianmengManager) DelUser

func (m *LianmengManager) DelUser(user *User)

func (*LianmengManager) GetUserByUserIdAndLianMengId

func (m *LianmengManager) GetUserByUserIdAndLianMengId(userId int64, lianmengId int64) (*User, error)

func (*LianmengManager) GetUserIdListByLianmengId

func (m *LianmengManager) GetUserIdListByLianmengId(lianmengId int64, userId int64) []int64

type User

type User struct {
	UserId     int64
	UserName   string
	LianmengId int64
}

Jump to

Keyboard shortcuts

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