Documentation
¶
Index ¶
- func AddEvent(nx *nex.Conn, userId uint, action string, meta map[string]any, ip, ua string) error
- func AddEventExt(nx *nex.Conn, action string, meta map[string]any, c *fiber.Ctx) error
- func CheckRealmMemberPerm(nx *nex.Conn, realmID uint, userID, power int) bool
- func EnsureUserPermGranted(nx *nex.Conn, userId, otherId uint, key string, val any) error
- func GetAccountFromUserInfo(info *sec.UserInfo) models.Account
- func GetRealm(nx *nex.Conn, id uint) (models.Realm, error)
- func GetRealmByAlias(nx *nex.Conn, alias string) (models.Realm, error)
- func GetRealmMember(nx *nex.Conn, realmID, userID uint) (models.RealmMember, error)
- func GetThirdClient(nx *nex.Conn, id uint, secret *string) (*models.ThirdClient, error)
- func GetThirdClientByAlias(nx *nex.Conn, alias string, secret *string) (*models.ThirdClient, error)
- func GetUser(nx *nex.Conn, userId uint) (models.Account, error)
- func GetUserByName(nx *nex.Conn, name string) (models.Account, error)
- func ListRealm(nx *nex.Conn, id []uint) ([]models.Realm, error)
- func ListRealmMember(nx *nex.Conn, realmID uint) ([]models.RealmMember, error)
- func ListRelative(nx *nex.Conn, userId uint, status int32, isRelated bool) ([]*proto.UserInfo, error)
- func ListUser(nx *nex.Conn, userIds []uint) ([]models.Account, error)
- func NotifyUser(nx *nex.Conn, userId uint64, notify pushkit.Notification, unsaved ...bool) error
- func NotifyUserBatch(nx *nex.Conn, userId []uint64, notify pushkit.Notification, unsaved ...bool) error
- func ParseAccountMiddleware(c *fiber.Ctx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEventExt ¶
func CheckRealmMemberPerm ¶
func EnsureUserPermGranted ¶
func GetAccountFromUserInfo ¶
GetAccountFromUserInfo returns the account from the user info This method will not to query the database, it will parse the token and get the subject of the userinfo token
func GetRealmMember ¶
func GetThirdClient ¶
func GetThirdClientByAlias ¶
func ListRealmMember ¶
func ListRelative ¶
func NotifyUser ¶
func NotifyUserBatch ¶
func ParseAccountMiddleware ¶
func ParseAccountMiddleware(c *fiber.Ctx) error
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.