Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2022 Changes in this version + var ErrInvalidID = errors.New("ID is not in its proper form") + var ErrNotFound = errors.New("user not found") + type Core struct + func NewCore(log *zap.SugaredLogger, sqlxDB *sqlx.DB) Core + func (c Core) Create(ctx context.Context, npu NewProjectUser, now time.Time) ([]ProjectUser, error) + func (c Core) Delete(ctx context.Context, projectUserID string) error + func (c Core) QueryByID(ctx context.Context, projectUserID string) (ProjectUser, error) + func (c Core) QueryWorkspaceProjectUsers(ctx context.Context, WorkspaceID string, pageNumber, rowsPerPage int) ([]ProjectUser, error) + func (c Core) Update(ctx context.Context, projectUserID string, upu UpdateProjectUser, ...) error + type NewProjectUser struct + Manager bool + Pid string + Puis string + Rate float64 + Uid string + Wid string + type ProjectUser struct + DateCreated time.Time + DateUpdated time.Time + ID string + Manager bool + Pid string + Rate float64 + Uid string + Wid string + type UpdateProjectUser struct + Manager *bool + Rate *float64