roles

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCompany

type AccountCompany struct {
	CompanyID uuid.UUID         `json:"companyID" swaggerignore:"true"`
	AccountID uuid.UUID         `json:"accountID" swaggerignore:"true"`
	Role      accountEnums.Role `json:"role"`
	CreatedAt time.Time         `json:"createdAt" swaggerignore:"true"`
	UpdatedAt time.Time         `json:"updatedAt" swaggerignore:"true"`
}

func (*AccountCompany) GetTable

func (a *AccountCompany) GetTable() string

func (*AccountCompany) IsNotAdmin

func (a *AccountCompany) IsNotAdmin() bool

func (*AccountCompany) SetCompanyAndAccountID

func (a *AccountCompany) SetCompanyAndAccountID(companyID, accountID uuid.UUID) *AccountCompany

func (*AccountCompany) SetCreateData

func (a *AccountCompany) SetCreateData() *AccountCompany

func (*AccountCompany) SetUpdateData

func (a *AccountCompany) SetUpdateData(role accountEnums.Role) *AccountCompany

func (*AccountCompany) ToBytes

func (a *AccountCompany) ToBytes() []byte

func (*AccountCompany) Validate

func (a *AccountCompany) Validate() error

type AccountRepository

type AccountRepository struct {
	RepositoryID uuid.UUID         `json:"repositoryID" swaggerignore:"true"`
	AccountID    uuid.UUID         `json:"accountID" swaggerignore:"true"`
	CompanyID    uuid.UUID         `json:"companyID" swaggerignore:"true"`
	Role         accountEnums.Role `json:"role"`
	CreatedAt    time.Time         `json:"createdAt" swaggerignore:"true"`
	UpdatedAt    time.Time         `json:"updatedAt" swaggerignore:"true"`
}

func (*AccountRepository) GetTable

func (a *AccountRepository) GetTable() string

func (*AccountRepository) IsNotAdmin

func (a *AccountRepository) IsNotAdmin() bool

func (*AccountRepository) IsNotSupervisorOrAdmin

func (a *AccountRepository) IsNotSupervisorOrAdmin() bool

func (*AccountRepository) SetCreateData

func (a *AccountRepository) SetCreateData() *AccountRepository

func (*AccountRepository) SetRepositoryAndAccountID

func (a *AccountRepository) SetRepositoryAndAccountID(repositoryID, accountID uuid.UUID) *AccountRepository

func (*AccountRepository) SetUpdateData

func (a *AccountRepository) SetUpdateData(role accountEnums.Role) *AccountRepository

func (*AccountRepository) Validate

func (a *AccountRepository) Validate() error

type AccountRole

type AccountRole struct {
	AccountID uuid.UUID `json:"accountID"`
	Email     string    `json:"email"`
	Username  string    `json:"username"`
	Role      string    `json:"role"`
}

Jump to

Keyboard shortcuts

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