project

package
v0.0.0-...-dd30ea9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectDb

type ProjectDb struct {
	Base *pg.Db
	// contains filtered or unexported fields
}

func New

func New(db database.Db) *ProjectDb

func (*ProjectDb) Create

func (t *ProjectDb) Create(tx interface{}, item *domain.Project) error

func (*ProjectDb) CreateMeta

func (t *ProjectDb) CreateMeta(tx interface{}, id string) (*database.ProjectMeta, error)

func (*ProjectDb) Grid

func (t *ProjectDb) Grid(tx interface{}, grid *tecgrid.NgGrid, filter *database.ProjectFilter) error

func (*ProjectDb) Load

func (t *ProjectDb) Load(tx interface{}, id string) (*domain.Project, error)

func (*ProjectDb) LoadSimple

func (t *ProjectDb) LoadSimple(tx interface{}, id string) (*domain.Project, error)

func (*ProjectDb) NextNumber

func (t *ProjectDb) NextNumber(tx interface{}, id string) (*domain.Project, error)

func (*ProjectDb) PermissionDb

func (t *ProjectDb) PermissionDb() database.Permission

func (*ProjectDb) Remove

func (t *ProjectDb) Remove(tx interface{}, id string) (*domain.Project, error)

func (*ProjectDb) RoleAdd

func (t *ProjectDb) RoleAdd(tx interface{}, item *domain.ProjectRole) error

func (*ProjectDb) RoleCreateAll

func (t *ProjectDb) RoleCreateAll(tx interface{}, item *domain.Project) error

func (*ProjectDb) RoleLoad

func (t *ProjectDb) RoleLoad(tx interface{}, project *domain.Project, role *domain.Role) (*domain.ProjectRole, error)

func (*ProjectDb) RoleMemberAdd

func (t *ProjectDb) RoleMemberAdd(tx interface{}, projectRole *domain.ProjectRole, user *domain.User, group *domain.Group) error

func (*ProjectDb) RoleMemberLoad

func (t *ProjectDb) RoleMemberLoad(tx interface{}, project *domain.Project, role *domain.Role, user *domain.User, group *domain.Group) (*domain.ProjectRoleMember, error)

func (*ProjectDb) RoleMemberRemove

func (t *ProjectDb) RoleMemberRemove(tx interface{}, item *domain.ProjectRoleMember) error

func (*ProjectDb) RoleMembers

func (t *ProjectDb) RoleMembers(tx interface{}, item *domain.ProjectRole) ([]domain.ProjectRoleMember, error)

func (*ProjectDb) RoleProjectMembers

func (t *ProjectDb) RoleProjectMembers(tx interface{}, item *domain.Project) ([]domain.ProjectRoleMember, error)

func (*ProjectDb) RoleRemove

func (t *ProjectDb) RoleRemove(tx interface{}, item *domain.ProjectRole) error

func (*ProjectDb) Roles

func (t *ProjectDb) Roles(tx interface{}, item *domain.Project) ([]domain.ProjectRole, error)

func (*ProjectDb) SetPermissionDb

func (t *ProjectDb) SetPermissionDb(item *database.Permission)

func (*ProjectDb) SetUserDb

func (t *ProjectDb) SetUserDb(item *database.User)

func (*ProjectDb) Update

func (t *ProjectDb) Update(tx interface{}, item *domain.Project) error

func (*ProjectDb) UserDb

func (t *ProjectDb) UserDb() database.User

func (*ProjectDb) ValidateDups

func (t *ProjectDb) ValidateDups(tx interface{}, item *domain.Project) error

Jump to

Keyboard shortcuts

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