Documentation
¶
Index ¶
- type Begin
- type Pg
- func (pg *Pg) Close() error
- func (pg *Pg) Commit() error
- func (pg *Pg) CreateCategory(ctx context.Context, category *entities.Category) error
- func (pg *Pg) CreateDialog(ctx context.Context, dialog *entities.Dialog) error
- func (pg *Pg) CreateProduct(ctx context.Context, product *entities.Product) error
- func (pg *Pg) CreateRepair(ctx context.Context, repair *entities.Repair) error
- func (pg *Pg) CreateReservation(ctx context.Context, reservation *entities.Reservation) error
- func (pg *Pg) CreateState(ctx context.Context, state *entities.State) error
- func (pg *Pg) CreateUser(ctx context.Context, user *entities.User) error
- func (pg *Pg) DeleteCategory(ctx context.Context, categoryID uuid.UUID) error
- func (pg *Pg) DeleteProductByID(ctx context.Context, id uuid.UUID) error
- func (pg *Pg) DeleteProductsByCategoryID(ctx context.Context, categoryID uuid.UUID) error
- func (pg *Pg) DeleteRepairByID(ctx context.Context, id uuid.UUID) error
- func (pg *Pg) DeleteReservationsByCategoryID(ctx context.Context, categoryID uuid.UUID) error
- func (pg *Pg) DeleteReservationsByProductID(ctx context.Context, productID uuid.UUID) error
- func (pg *Pg) DeleteState(ctx context.Context, id string, sType int) error
- func (pg *Pg) EditCategory(ctx context.Context, category *entities.Category) error
- func (pg *Pg) EditDialog(ctx context.Context, dialog *entities.Dialog) error
- func (pg *Pg) EditProduct(ctx context.Context, product *entities.Product) error
- func (pg *Pg) EditRepair(ctx context.Context, repair *entities.Repair) error
- func (pg *Pg) EditReservation(ctx context.Context, reservation *entities.Reservation) error
- func (pg *Pg) EditState(ctx context.Context, state *entities.State) error
- func (pg *Pg) EditUser(ctx context.Context, user *entities.User) error
- func (pg *Pg) ExistsReservationByProductID(ctx context.Context, productID uuid.UUID) (bool, error)
- func (pg *Pg) FindCategory(ctx context.Context, name string, cType int) (*entities.Category, error)
- func (pg *Pg) FindUser(ctx context.Context, q interface{}) (*entities.User, error)
- func (pg *Pg) GetAllRepairs(ctx context.Context) ([]entities.Repair, error)
- func (pg *Pg) GetCategories(ctx context.Context) ([]entities.Category, error)
- func (pg *Pg) GetCategoriesByType(ctx context.Context, cType int) ([]entities.Category, error)
- func (pg *Pg) GetCategoryByID(ctx context.Context, id uuid.UUID) (*entities.Category, error)
- func (pg *Pg) GetDialogByTalkerID(ctx context.Context, talkerID int64) (*entities.Dialog, error)
- func (pg *Pg) GetModelsByCategoryIDAndProducer(ctx context.Context, categoryID uuid.UUID, producer string) ([]string, error)
- func (pg *Pg) GetModelsRepair(ctx context.Context, producerName string) ([]string, error)
- func (pg *Pg) GetProducersByCategory(ctx context.Context, category string, cType int) ([]string, error)
- func (pg *Pg) GetProducersByCategoryID(ctx context.Context, categoryID uuid.UUID) ([]string, error)
- func (pg *Pg) GetProducersRepair(ctx context.Context) ([]string, error)
- func (pg *Pg) GetProduct(ctx context.Context, model, additional string, cType int) (*entities.Product, error)
- func (pg *Pg) GetProductByID(ctx context.Context, productID uuid.UUID) (*entities.Product, error)
- func (pg *Pg) GetProductWithoutCategoryType(ctx context.Context, model, additional string) (*entities.Product, error)
- func (pg *Pg) GetProducts(ctx context.Context) ([]entities.Product, error)
- func (pg *Pg) GetProductsByProducer(ctx context.Context, producer string, cType int) ([]entities.Product, error)
- func (pg *Pg) GetRepairByID(ctx context.Context, id uuid.UUID) (*entities.Repair, error)
- func (pg *Pg) GetRepairByModelAndID(ctx context.Context, modelName string, id uuid.UUID) (*entities.Repair, error)
- func (pg *Pg) GetRepairByModelAndName(ctx context.Context, modelName string, repairName string) (*entities.Repair, error)
- func (pg *Pg) GetRepairs(ctx context.Context, modelName string) ([]entities.Repair, error)
- func (pg *Pg) GetReservationByID(ctx context.Context, id uuid.UUID) (*entities.ReservationWithAdditionalData, error)
- func (pg *Pg) GetReservations(ctx context.Context) ([]entities.ReservationWithAdditionalData, error)
- func (pg *Pg) GetReservationsByUserID(ctx context.Context, userID int64) ([]entities.ReservationWithAdditionalData, error)
- func (pg *Pg) GetSaleProducts(ctx context.Context) ([]entities.Product, error)
- func (pg *Pg) GetState(ctx context.Context, id string, sType int) (*entities.State, error)
- func (pg *Pg) GetUserByTgID(ctx context.Context, tgID int64) (*entities.User, error)
- func (pg *Pg) GetUserIdsWhoManager(ctx context.Context) ([]int64, error)
- func (pg *Pg) Rollback() error
- func (pg *Pg) WithTx() (*Pg, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pg ¶
type Pg struct {
// contains filtered or unexported fields
}
func (*Pg) CreateCategory ¶
func (*Pg) CreateDialog ¶
func (*Pg) CreateProduct ¶
func (*Pg) CreateRepair ¶
func (*Pg) CreateReservation ¶
func (*Pg) CreateState ¶
func (*Pg) DeleteCategory ¶
func (*Pg) DeleteProductByID ¶
func (*Pg) DeleteProductsByCategoryID ¶
func (*Pg) DeleteRepairByID ¶
func (*Pg) DeleteReservationsByCategoryID ¶
func (*Pg) DeleteReservationsByProductID ¶
func (*Pg) EditCategory ¶
func (*Pg) EditDialog ¶
func (*Pg) EditProduct ¶
func (*Pg) EditRepair ¶
func (*Pg) EditReservation ¶
func (*Pg) ExistsReservationByProductID ¶
func (*Pg) FindCategory ¶
func (*Pg) GetAllRepairs ¶
func (*Pg) GetCategories ¶
func (*Pg) GetCategoriesByType ¶
func (*Pg) GetCategoryByID ¶
func (*Pg) GetDialogByTalkerID ¶
func (*Pg) GetModelsByCategoryIDAndProducer ¶
func (*Pg) GetModelsRepair ¶
func (*Pg) GetProducersByCategory ¶
func (*Pg) GetProducersByCategoryID ¶
func (*Pg) GetProducersRepair ¶
func (*Pg) GetProduct ¶
func (*Pg) GetProductByID ¶
func (*Pg) GetProductWithoutCategoryType ¶
func (*Pg) GetProductsByProducer ¶
func (*Pg) GetRepairByID ¶
func (*Pg) GetRepairByModelAndID ¶
func (*Pg) GetRepairByModelAndName ¶
func (*Pg) GetRepairs ¶
func (*Pg) GetReservationByID ¶
func (*Pg) GetReservations ¶
func (*Pg) GetReservationsByUserID ¶
func (*Pg) GetSaleProducts ¶
func (*Pg) GetUserByTgID ¶
func (*Pg) GetUserIdsWhoManager ¶
Click to show internal directories.
Click to hide internal directories.