account

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Company

type Company struct {
	CompanyID   uuid.UUID `json:"companyID" gorm:"primary_key" swaggerignore:"true"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	AuthzMember string    `json:"authzMember"`
	AuthzAdmin  string    `json:"authzAdmin"`
	CreatedAt   time.Time `json:"createdAt" swaggerignore:"true"`
	UpdatedAt   time.Time `json:"updatedAt" swaggerignore:"true"`
}

func (*Company) GetAuthzAdmin added in v1.2.0

func (c *Company) GetAuthzAdmin() string

func (*Company) GetAuthzMember added in v1.2.0

func (c *Company) GetAuthzMember() string

func (*Company) GetAuthzSupervisor added in v1.2.0

func (c *Company) GetAuthzSupervisor() string

func (*Company) GetTable

func (c *Company) GetTable() string

func (*Company) MapToUpdate added in v1.5.0

func (c *Company) MapToUpdate() map[string]interface{}

func (*Company) SetCreateData

func (c *Company) SetCreateData() *Company

func (*Company) SetUpdateData

func (c *Company) SetUpdateData() *Company

func (*Company) ToBytes

func (c *Company) ToBytes() []byte

func (*Company) ToCompanyResponse

func (c *Company) ToCompanyResponse(role rolesEnum.Role) *CompanyResponse

func (*Company) Validate

func (c *Company) Validate() error

type CompanyApplicationAdmin added in v1.2.0

type CompanyApplicationAdmin struct {
	CompanyID   uuid.UUID `json:"companyID" gorm:"primary_key" swaggerignore:"true"`
	Name        string    `json:"name"`
	AdminEmail  string    `json:"adminEmail"`
	Description string    `json:"description"`
	AuthzMember string    `json:"authzMember"`
	AuthzAdmin  string    `json:"authzAdmin"`
	CreatedAt   time.Time `json:"createdAt" swaggerignore:"true"`
	UpdatedAt   time.Time `json:"updatedAt" swaggerignore:"true"`
}

func (*CompanyApplicationAdmin) ToCompany added in v1.2.0

func (c *CompanyApplicationAdmin) ToCompany() *Company

func (*CompanyApplicationAdmin) Validate added in v1.2.0

func (c *CompanyApplicationAdmin) Validate() error

type CompanyResponse

type CompanyResponse struct {
	CompanyID   uuid.UUID      `json:"companyID"`
	Name        string         `json:"name"`
	Role        rolesEnum.Role `json:"role"`
	Description string         `json:"description"`
	AuthzMember string         `json:"authzMember"`
	AuthzAdmin  string         `json:"authzAdmin"`
	CreatedAt   time.Time      `json:"createdAt"`
	UpdatedAt   time.Time      `json:"updatedAt"`
}

type Repository

type Repository struct {
	RepositoryID    uuid.UUID `json:"repositoryID" gorm:"primary_key" swaggerignore:"true"`
	CompanyID       uuid.UUID `json:"companyID" swaggerignore:"true"`
	Name            string    `json:"name"`
	Description     string    `json:"description"`
	AuthzMember     string    `json:"authzMember"`
	AuthzAdmin      string    `json:"authzAdmin"`
	AuthzSupervisor string    `json:"authzSupervisor"`
	CreatedAt       time.Time `json:"createdAt" swaggerignore:"true"`
	UpdatedAt       time.Time `json:"updatedAt" swaggerignore:"true"`
}

func (*Repository) GetAuthzAdmin added in v1.2.0

func (r *Repository) GetAuthzAdmin() string

func (*Repository) GetAuthzMember added in v1.2.0

func (r *Repository) GetAuthzMember() string

func (*Repository) GetAuthzSupervisor added in v1.2.0

func (r *Repository) GetAuthzSupervisor() string

func (*Repository) GetTable

func (r *Repository) GetTable() string

func (*Repository) SetCreateData

func (r *Repository) SetCreateData(companyID uuid.UUID) *Repository

func (*Repository) SetUpdateData

func (r *Repository) SetUpdateData(
	name, description, authzAdmin, authzMember, authzSupervisor string) *Repository

func (*Repository) ToAccountRepository

func (r *Repository) ToAccountRepository(role accountEnum.Role, accountID uuid.UUID) *roles.AccountRepository

func (*Repository) ToRepositoryResponse

func (r *Repository) ToRepositoryResponse(role accountEnum.Role) *RepositoryResponse

func (*Repository) Validate

func (r *Repository) Validate() error

type RepositoryResponse

type RepositoryResponse struct {
	CompanyID       uuid.UUID        `json:"companyID"`
	RepositoryID    uuid.UUID        `json:"repositoryID"`
	Name            string           `json:"name"`
	Role            accountEnum.Role `json:"role"`
	Description     string           `json:"description"`
	AuthzMember     string           `json:"authzMember"`
	AuthzAdmin      string           `json:"authzAdmin"`
	AuthzSupervisor string           `json:"authzSupervisor"`
	CreatedAt       time.Time        `json:"createdAt"`
	UpdatedAt       time.Time        `json:"updatedAt"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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