org

package
v0.0.0-...-6606c74 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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