services

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoDB

type DemoDB struct {
	Name string
}

DemoDB is a lightweight stand-in for a singleton database client. In real projects this can be replaced with *gorm.DB. @Service

func NewDemoDB

func NewDemoDB(name string) *DemoDB

type UserService

type UserService struct{}

@Service

func NewUserService

func NewUserService() *UserService

func (*UserService) BuildModifyUserResponse

func (s *UserService) BuildModifyUserResponse(query models.UserQuery, userID int, role string, db *DemoDB) map[string]any

func (*UserService) BuildWSReply

func (s *UserService) BuildWSReply(msg []byte) []byte

Jump to

Keyboard shortcuts

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