project

package
v0.0.0-...-588ec63 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 3 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 {
	// contains filtered or unexported fields
}

Service provides project-related functions

func NewMockService

func NewMockService() *Service

NewMockService creates a new Service instance for testing

func NewService

func NewService(q db.DBTX) *Service

NewService creates a new Service instance

type ServiceIface

type ServiceIface interface {
	CreateProject(db.CreateProjectParams) (*db.Project, error)
	GetAllProjects() ([]*db.Project, error)
	GetProjectByID(int32) (*db.Project, error)
	UpdateProjectByID(int32, db.UpdateProjectByIDParams) (*db.Project, error)
	DeleteProjectByID(int32) error

	CreateProjectMember(int32, db.CreateProjectMemberParams) error
	GetAllProjectMembers(int32) ([]*db.ProjectMember, error)
	GetProjectMemberByID(int32, int32) (*db.ProjectMember, error)
	UpdateProjectMemberByID(int32, int32, db.UpdateProjectMemberByIDParams) (*db.ProjectMember, error)
	DeleteProjectMemberByID(int32, int32) error
}

ServiceIface is an interface for the Service

Jump to

Keyboard shortcuts

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