projects

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectController

type ProjectController struct {
	markup.RestController `class:"rest-controller"`

	ProjectService service.ProjectService `inject:"#ProjectService"`
	Responder      glass.MainResponder    `inject:"#glass-main-responder"`
}

ProjectController 仓库控制器

func (*ProjectController) Init

Init 初始化

type ProjectDaoImpl

type ProjectDaoImpl struct {
	markup.Component `id:"ProjectDAO"`

	Agent          dbagent.GormDBAgent    `inject:"#GormDBAgent"`
	TrashService   service.TrashService   `inject:"#TrashService"`
	UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"`
}

ProjectDaoImpl ...

func (*ProjectDaoImpl) Find

func (inst *ProjectDaoImpl) Find(id dxo.ProjectID) (*entity.Project, error)

Find ...

func (*ProjectDaoImpl) FindByOwnerRepository

func (inst *ProjectDaoImpl) FindByOwnerRepository(id dxo.LocalRepositoryID) ([]*entity.Project, error)

FindByOwnerRepository ...

func (*ProjectDaoImpl) FindByPath added in v0.1.1

func (inst *ProjectDaoImpl) FindByPath(path string) (*entity.Project, error)

FindByPath ...

func (*ProjectDaoImpl) Insert

func (inst *ProjectDaoImpl) Insert(o *entity.Project) (*entity.Project, error)

Insert ...

func (*ProjectDaoImpl) ListAll

func (inst *ProjectDaoImpl) ListAll() ([]*entity.Project, error)

ListAll ...

func (*ProjectDaoImpl) ListByIds

func (inst *ProjectDaoImpl) ListByIds(ids []dxo.ProjectID) ([]*entity.Project, error)

ListByIds ...

func (*ProjectDaoImpl) Remove

func (inst *ProjectDaoImpl) Remove(id dxo.ProjectID) error

Remove ...

func (*ProjectDaoImpl) Update

func (inst *ProjectDaoImpl) Update(id dxo.ProjectID, o1 *entity.Project) (*entity.Project, error)

Update ...

type ProjectImportController

type ProjectImportController struct {
	markup.RestController `class:"rest-controller"`

	ProjectImportService service.ProjectImportService `inject:"#ProjectImportService"`
	Responder            glass.MainResponder          `inject:"#glass-main-responder"`
}

ProjectImportController 仓库控制器

func (*ProjectImportController) Init

Init 初始化

type ProjectImportServiceImpl

type ProjectImportServiceImpl struct {
	markup.Component `id:"ProjectImportService"`
}

ProjectImportServiceImpl ...

func (*ProjectImportServiceImpl) Find

func (*ProjectImportServiceImpl) FindOrLocate

func (*ProjectImportServiceImpl) Locate

func (*ProjectImportServiceImpl) Save

type ProjectServiceImpl

type ProjectServiceImpl struct {
	markup.Component `id:"ProjectService"`

	UUIDGenService     service.UUIDGenService         `inject:"#UUIDGenService"`
	LocalRepoService   service.LocalRepositoryService `inject:"#LocalRepositoryService"`
	ProjectTypeService service.ContentTypeService     `inject:"#ContentTypeService"`
	FileSystemService  service.FileSystemService      `inject:"#FileSystemService"`
	LocationService    service.LocationService        `inject:"#LocationService"`

	ProjectDAO   dao.ProjectDAO         `inject:"#ProjectDAO"`
	LocalRepoDAO dao.LocalRepositoryDAO `inject:"#LocalRepositoryDAO"`

	GitLibAgent store.LibAgent `inject:"#git-lib-agent"`
}

ProjectServiceImpl ...

func (*ProjectServiceImpl) Find

Find ...

func (*ProjectServiceImpl) FindByOwnerRepository

func (inst *ProjectServiceImpl) FindByOwnerRepository(ctx context.Context, id dxo.LocalRepositoryID, options *service.ProjectOptions) ([]*dto.Project, error)

FindByOwnerRepository ...

func (*ProjectServiceImpl) FindByPath added in v0.1.1

func (inst *ProjectServiceImpl) FindByPath(ctx context.Context, path string, options *service.ProjectOptions) (*dto.Project, error)

FindByPath ...

func (*ProjectServiceImpl) Insert

func (inst *ProjectServiceImpl) Insert(ctx context.Context, o1 *dto.Project) (*dto.Project, error)

Insert ...

func (*ProjectServiceImpl) InsertOrFetch added in v0.1.1

func (inst *ProjectServiceImpl) InsertOrFetch(ctx context.Context, o1 *dto.Project, opt *service.ProjectOptions) (*dto.Project, error)

InsertOrFetch ...

func (*ProjectServiceImpl) ListAll

func (inst *ProjectServiceImpl) ListAll(ctx context.Context, options *service.ProjectOptions) ([]*dto.Project, error)

ListAll ...

func (*ProjectServiceImpl) ListByIds

func (inst *ProjectServiceImpl) ListByIds(ctx context.Context, ids []dxo.ProjectID, options *service.ProjectOptions) ([]*dto.Project, error)

ListByIds ...

func (*ProjectServiceImpl) Locate added in v0.1.1

func (inst *ProjectServiceImpl) Locate(ctx context.Context, o1 *dto.Project, options *service.ProjectOptions) (*dto.Project, error)

Locate ...

func (*ProjectServiceImpl) Remove

func (inst *ProjectServiceImpl) Remove(ctx context.Context, id dxo.ProjectID) error

Remove ...

func (*ProjectServiceImpl) Update

func (inst *ProjectServiceImpl) Update(ctx context.Context, id dxo.ProjectID, o1 *dto.Project) (*dto.Project, error)

Update ...

Jump to

Keyboard shortcuts

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