sys

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimBIZ

type ClaimBIZ struct {
	// contains filtered or unexported fields
}

ClaimBIZ represents the claim BIZ.

func NewClaimBIZ

func NewClaimBIZ(claimDAO wa.ClaimDAO, userDAO wa.UserDAO) *ClaimBIZ

NewClaimBIZ creates a new claim BIZ.

func (*ClaimBIZ) Get

func (a *ClaimBIZ) Get(session *wa.Session, uid wa.ID, key string) (string, error)

Get gets the claim.

func (*ClaimBIZ) GetKeys

func (a *ClaimBIZ) GetKeys(session *wa.Session) ([]string, error)

GetKeys gets the claim keys.

func (*ClaimBIZ) Query

func (a *ClaimBIZ) Query(session *wa.Session, uid wa.ID) ([]wa.Item[string, string], error)

Query queries the claims.

func (*ClaimBIZ) Set

func (a *ClaimBIZ) Set(session *wa.Session, uid wa.ID, key string, value string) error

Set sets the claim.

type GroupBIZ

type GroupBIZ struct {
	// contains filtered or unexported fields
}

GroupBIZ represents the group BIZ.

func NewGroupBIZ

func NewGroupBIZ(groupDAO wa.GroupDAO) *GroupBIZ

NewGroupBIZ creates a new group BIZ.

func (*GroupBIZ) Create

func (a *GroupBIZ) Create(session *wa.Session, group *wa.Group) (*wa.Group, error)

Create creates a group.

func (*GroupBIZ) Delete

func (a *GroupBIZ) Delete(session *wa.Session, gid wa.ID) error

Delete deletes the group.

func (*GroupBIZ) Get

func (a *GroupBIZ) Get(session *wa.Session, gid wa.ID) (*wa.Group, error)

Get gets the group by id.

func (*GroupBIZ) Query

func (a *GroupBIZ) Query(session *wa.Session, gid wa.ID, keyword string) ([]*wa.Group, error)

Query queries the groups by keyword.

func (*GroupBIZ) Update

func (a *GroupBIZ) Update(session *wa.Session, group *wa.Group) (*wa.Group, error)

Update updates the group.

type UserBIZ

type UserBIZ struct {
	// contains filtered or unexported fields
}

UserBIZ represents the user BIZ.

func NewUserBIZ

func NewUserBIZ(sessionMGR *wa.SessionMGR, userDAO wa.UserDAO) *UserBIZ

NewUserBIZ creates a new user BIZ.

func (*UserBIZ) Create

func (a *UserBIZ) Create(session *wa.Session, user *wa.User) (*wa.User, error)

Create creates a user.

func (*UserBIZ) Delete

func (a *UserBIZ) Delete(session *wa.Session, uid wa.ID) error

Delete deletes the user.

func (*UserBIZ) Get

func (a *UserBIZ) Get(session *wa.Session, uid wa.ID) (*wa.User, error)

Get gets the user by id.

func (*UserBIZ) Query

func (a *UserBIZ) Query(session *wa.Session, gid wa.ID, key string, value string, keyword string) ([]*wa.User, error)

Query queries the users by keyword.

func (*UserBIZ) ResetPassword

func (a *UserBIZ) ResetPassword(session *wa.Session, uid wa.ID) (string, error)

ResetPassword resets the user password.

func (*UserBIZ) Update

func (a *UserBIZ) Update(session *wa.Session, user *wa.User) (*wa.User, error)

Update updates the user.

Jump to

Keyboard shortcuts

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