Documentation ¶
Index ¶
- func NewGormOrganizationRepository() *gormOrganizationRepository
- type Organization
- type OrganizationRepository
- type OrganizationService
- func (s *OrganizationService) Create(name string) (*Organization, error)
- func (s *OrganizationService) DeleteOne(id string) error
- func (s *OrganizationService) FindAll()
- func (s *OrganizationService) GetById(id string) (*Organization, error)
- func (s *OrganizationService) GetByName(name string) (*Organization, error)
- func (s *OrganizationService) GetByNameAll(pageable httpx.Pageable, name string) []Organization
- func (s *OrganizationService) UpdateOne() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGormOrganizationRepository ¶
func NewGormOrganizationRepository() *gormOrganizationRepository
Types ¶
type Organization ¶
type Organization struct { gormx.BaseFields Name string `json:"name" gorm:"column:name;type:varchar(256);uniqueIndex;not null"` }
func (Organization) TableName ¶
func (Organization) TableName() string
type OrganizationRepository ¶
type OrganizationRepository interface { gormx.BaseRepository[Organization] GetOneByName(context.Context, string) (*Organization, error) GetAllByName(context.Context, httpx.Pageable, string) []Organization }
type OrganizationService ¶
type OrganizationService struct {
// contains filtered or unexported fields
}
func NewOrganizationService ¶
func NewOrganizationService() *OrganizationService
func (*OrganizationService) Create ¶
func (s *OrganizationService) Create(name string) (*Organization, error)
func (*OrganizationService) DeleteOne ¶
func (s *OrganizationService) DeleteOne(id string) error
func (*OrganizationService) FindAll ¶
func (s *OrganizationService) FindAll()
func (*OrganizationService) GetById ¶
func (s *OrganizationService) GetById(id string) (*Organization, error)
func (*OrganizationService) GetByName ¶
func (s *OrganizationService) GetByName(name string) (*Organization, error)
func (*OrganizationService) GetByNameAll ¶
func (s *OrganizationService) GetByNameAll(pageable httpx.Pageable, name string) []Organization
func (*OrganizationService) UpdateOne ¶
func (s *OrganizationService) UpdateOne() error
Click to show internal directories.
Click to hide internal directories.