user

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Store *database.Database
}

func NewService

func NewService(store *database.Database) *Service

func (*Service) AdminDeleteUser

func (s *Service) AdminDeleteUser(c echo.Context, uID uuid.UUID) error

func (*Service) AdminGetUser

func (s *Service) AdminGetUser(c echo.Context, uID uuid.UUID) (*ent.User, error)

func (*Service) AdminGetUsers

func (s *Service) AdminGetUsers(c echo.Context) ([]*ent.User, error)

func (*Service) AdminUpdateUser

func (s *Service) AdminUpdateUser(c echo.Context, uDto User) (*ent.User, error)

type User

type User struct {
	ID        uuid.UUID  `json:"id"`
	Username  string     `json:"username"`
	Password  string     `json:"password"`
	Role      utils.Role `json:"role"`
	Webhook   string     `json:"webhook"`
	UpdatedAt string     `json:"updated_at"`
	CreatedAt string     `json:"created_at"`
}

Jump to

Keyboard shortcuts

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