projects_handler

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHandlers

func RegisterHandlers(server *server.Server, grp *huma.Group)

Types

type CreateProjectInput

type CreateProjectInput struct {
	server.BaseAuthInput
	Body *project_service.CreateProjectInput
}

type CreateProjectResponse

type CreateProjectResponse struct {
	Body struct {
		Data *models.ProjectResponse `json:"data"`
	}
}

type DeleteProjectInput

type DeleteProjectInput struct {
	server.BaseAuthInput
	Body struct {
		TeamID    uuid.UUID `json:"team_id" required:"true"`
		ProjectID uuid.UUID `json:"project_id" required:"true"`
	}
}

type DeleteProjectResponse

type DeleteProjectResponse struct {
	Body struct {
		Data server.DeletedResponse `json:"data"`
	}
}

type GetProjectInput

type GetProjectInput struct {
	server.BaseAuthInput
	ProjectID uuid.UUID `query:"project_id" required:"true"`
	TeamID    uuid.UUID `query:"team_id" required:"true"`
}

Get a single project by ID

type GetProjectResponse

type GetProjectResponse struct {
	Body struct {
		Data *models.ProjectResponse `json:"data"`
	}
}

type HandlerGroup

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

func (*HandlerGroup) CreateProject

func (self *HandlerGroup) CreateProject(ctx context.Context, input *CreateProjectInput) (*CreateProjectResponse, error)

func (*HandlerGroup) DeleteProject

func (self *HandlerGroup) DeleteProject(ctx context.Context, input *DeleteProjectInput) (*DeleteProjectResponse, error)

func (*HandlerGroup) GetProject

func (self *HandlerGroup) GetProject(ctx context.Context, input *GetProjectInput) (*GetProjectResponse, error)

func (*HandlerGroup) ListProjects

func (self *HandlerGroup) ListProjects(ctx context.Context, input *ListProjectInput) (*ListProjectResponse, error)

func (*HandlerGroup) UpdateProject

func (self *HandlerGroup) UpdateProject(ctx context.Context, input *UpdateProjectInput) (*UpdateProjectResponse, error)

type ListProjectInput

type ListProjectInput struct {
	server.BaseAuthInput
	models.SortInput
	TeamID uuid.UUID `query:"team_id" required:"true"`
}

type ListProjectResponse

type ListProjectResponse struct {
	Body struct {
		Data []*models.ProjectResponse `json:"data" nullable:"false"`
	}
}

type UpdateProjectInput

type UpdateProjectInput struct {
	server.BaseAuthInput
	Body models.UpdateProjectInput
}

type UpdateProjectResponse

type UpdateProjectResponse struct {
	Body struct {
		Data *models.ProjectResponse `json:"data"`
	}
}

Jump to

Keyboard shortcuts

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