Documentation ¶
Index ¶
- type AccountCompany
- func (a *AccountCompany) GetTable() string
- func (a *AccountCompany) IsNotAdmin() bool
- func (a *AccountCompany) SetCompanyAndAccountID(companyID, accountID uuid.UUID) *AccountCompany
- func (a *AccountCompany) SetCreateData() *AccountCompany
- func (a *AccountCompany) SetUpdateData(role accountEnums.Role) *AccountCompany
- func (a *AccountCompany) ToBytes() []byte
- func (a *AccountCompany) Validate() error
- type AccountRepository
- func (a *AccountRepository) GetTable() string
- func (a *AccountRepository) IsNotAdmin() bool
- func (a *AccountRepository) IsNotSupervisorOrAdmin() bool
- func (a *AccountRepository) SetCreateData() *AccountRepository
- func (a *AccountRepository) SetRepositoryAndAccountID(repositoryID, accountID uuid.UUID) *AccountRepository
- func (a *AccountRepository) SetUpdateData(role accountEnums.Role) *AccountRepository
- func (a *AccountRepository) Validate() error
- type AccountRole
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
Click to show internal directories.
Click to hide internal directories.