projectsvc

package
v0.0.0-...-2dc2d1c Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateProject

func GenerateProject(createProjectRequest CreateProjectRequest, teamID string) models.Project

GenerateProject generates a project model for the create request

func ProjectUpdateValidate

func ProjectUpdateValidate(updateProjectRequest UpdateProjectRequest) error

ProjectUpdateValidate validates the update project request

func ProjectValidate

func ProjectValidate(createProjectRequest CreateProjectRequest) error

ProjectValidate validates the create project request

func UpdateProjectFromRequest

func UpdateProjectFromRequest(existingProject models.Project, updateProjectRequest UpdateProjectRequest) models.Project

UpdateProjectFromRequest updates a project model with new values from update request

Types

type CreateProjectRequest

type CreateProjectRequest struct {
	Name        string  `json:"name" validate:"required,min=3,max=255"`
	Description *string `json:"description,omitempty" validate:"omitempty,max=500"`
}

type UpdateProjectRequest

type UpdateProjectRequest struct {
	Name        string  `json:"name" validate:"required,min=3,max=255"`
	Description *string `json:"description,omitempty" validate:"omitempty,max=500"`
}

Jump to

Keyboard shortcuts

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