project_management

package
v1.0.68 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectManagementService

type ProjectManagementService struct {
	ProjectService       *project.ProjectService
	TeamService          *team.TeamService
	MemberService        *member.MemberService
	TaskService          *task.TaskService
	TaskAttributeService *task_attribute.TaskAttributeService
	// contains filtered or unexported fields
}

func NewProjectManagementService

func NewProjectManagementService(ctx *context.ERPContext) *ProjectManagementService

NewProjectManagementService creates a new instance of ProjectManagementService.

It takes an ERPContext as parameter and returns a pointer to a ProjectManagementService.

It uses the ERPContext to initialize the ProjectService, TeamService, MemberService, TaskService, and TaskAttributeService. Additionally, it calls the Migrate method of the ProjectManagementService to create the necessary database schema, unless SkipMigration is set to true in the ERPContext.

func (*ProjectManagementService) Migrate

func (cs *ProjectManagementService) Migrate() error

Migrate migrates the database schema for the ProjectManagementService.

If the SkipMigration flag is set to true in the context, this method will not perform any migration and will return nil. Otherwise, it will attempt to auto-migrate the database to include the ProjectModel, ProjectActivityModel, ColumnModel, ColumnAction, TeamModel, MemberModel, MemberInvitationModel, TaskModel, TaskCommentModel, and TaskAttributeModel schemas. If the migration process encounters an error, it will return that error. Otherwise, it will return nil upon successful migration.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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