Documentation ¶
Index ¶
- type Organization
- type OrganizationRepository
- type OrganizationRepositoryImpl
- func (o OrganizationRepositoryImpl) All() ([]Organization, error)
- func (o OrganizationRepositoryImpl) Delete(organizationId string)
- func (o OrganizationRepositoryImpl) FindById(organizationId string) (*Organization, error)
- func (o OrganizationRepositoryImpl) Save(org *Organization) error
- func (o OrganizationRepositoryImpl) Update(org Organization)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Organization ¶
type Organization struct { ID uuid.UUID `gorm:"type:uuid;default:gen_random_uuid()" json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeletedAt *time.Time `sql:"index" json:"deleted_at"` Name string `json:"name" gorm:"index:idx_name,unique;not_null"` // Features for the organization AllowAutoCreateWorkspace bool `json:"allow_auto_create_workspace"` }
type OrganizationRepository ¶
type OrganizationRepository interface { Save(org *Organization) error Update(org Organization) Delete(organizationId string) FindById(organizationId string) (*Organization, error) All() ([]Organization, error) }
func NewOrganizationRepository ¶
func NewOrganizationRepository(db *gorm.DB) OrganizationRepository
type OrganizationRepositoryImpl ¶
func (OrganizationRepositoryImpl) All ¶
func (o OrganizationRepositoryImpl) All() ([]Organization, error)
func (OrganizationRepositoryImpl) Delete ¶
func (o OrganizationRepositoryImpl) Delete(organizationId string)
func (OrganizationRepositoryImpl) FindById ¶
func (o OrganizationRepositoryImpl) FindById(organizationId string) (*Organization, error)
func (OrganizationRepositoryImpl) Save ¶
func (o OrganizationRepositoryImpl) Save(org *Organization) error
func (OrganizationRepositoryImpl) Update ¶
func (o OrganizationRepositoryImpl) Update(org Organization)
Click to show internal directories.
Click to hide internal directories.