Documentation ¶
Index ¶
- type Category
- type CreateChildCategoryIfNotExistsRow
- type DBTX
- type GetCategoryRow
- type GetCategoryWithAncestorsRow
- type NullProductStatus
- type NullUserStatus
- type Product
- type ProductAttribute
- type ProductPricing
- type ProductRating
- type ProductStatus
- type Querier
- type Queries
- func (q *Queries) CreateChildCategoryIfNotExists(ctx context.Context, category string, slug string, parentID *int32) (*CreateChildCategoryIfNotExistsRow, error)
- func (q *Queries) CreateTopCategory(ctx context.Context, category string, slug string) (*Category, error)
- func (q *Queries) GetCategory(ctx context.Context, id int32) (*GetCategoryRow, error)
- func (q *Queries) GetCategoryByName(ctx context.Context, category string) (*Category, error)
- func (q *Queries) GetCategoryWithAncestors(ctx context.Context, id int32) ([]*GetCategoryWithAncestorsRow, error)
- func (q *Queries) GetCategoryWithSiblings(ctx context.Context, id int32) ([]*Category, error)
- func (q *Queries) GetChildCategories(ctx context.Context, parentID *int32) ([]*Category, error)
- func (q *Queries) GetLeafCategoryIDs(ctx context.Context, id int32) ([][]int32, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Role
- type SellerStore
- type Session
- type Sku
- type SkuPricing
- type SkuProductAttributeValue
- type Store
- type User
- type UserRole
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetCategoryRow ¶
type NullProductStatus ¶
type NullProductStatus struct { ProductStatus ProductStatus Valid bool // Valid is true if ProductStatus is not NULL }
func (*NullProductStatus) Scan ¶
func (ns *NullProductStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullUserStatus ¶
type NullUserStatus struct { UserStatus UserStatus Valid bool // Valid is true if UserStatus is not NULL }
func (*NullUserStatus) Scan ¶
func (ns *NullUserStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Product ¶
type Product struct { ID int64 StoreID int32 CategoryID int32 Name string Brand *string Slug string ShortInfo []string ImageUrls []byte Specs []byte Status ProductStatus CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type ProductAttribute ¶
type ProductPricing ¶
type ProductRating ¶
type ProductStatus ¶
type ProductStatus string
const ( ProductStatusDraft ProductStatus = "Draft" ProductStatusPendingApproval ProductStatus = "PendingApproval" ProductStatusActive ProductStatus = "Active" )
func (*ProductStatus) Scan ¶
func (e *ProductStatus) Scan(src interface{}) error
type Querier ¶
type Querier interface { CreateChildCategoryIfNotExists(ctx context.Context, category string, slug string, parentID *int32) (*CreateChildCategoryIfNotExistsRow, error) CreateTopCategory(ctx context.Context, category string, slug string) (*Category, error) GetCategory(ctx context.Context, id int32) (*GetCategoryRow, error) GetCategoryByName(ctx context.Context, category string) (*Category, error) GetCategoryWithAncestors(ctx context.Context, id int32) ([]*GetCategoryWithAncestorsRow, error) GetCategoryWithSiblings(ctx context.Context, id int32) ([]*Category, error) GetChildCategories(ctx context.Context, parentID *int32) ([]*Category, error) GetLeafCategoryIDs(ctx context.Context, id int32) ([][]int32, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateChildCategoryIfNotExists ¶
func (*Queries) CreateTopCategory ¶
func (*Queries) GetCategory ¶
func (*Queries) GetCategoryByName ¶
func (*Queries) GetCategoryWithAncestors ¶
func (*Queries) GetCategoryWithSiblings ¶
func (*Queries) GetChildCategories ¶
func (*Queries) GetLeafCategoryIDs ¶
type SellerStore ¶
type SellerStore struct { ID int32 PublicID string SellerID int64 Name string Description string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type Sku ¶
type Sku struct { ID int64 ProductID int64 Sku string QuantityInStock int32 HasSepPricing bool ImageRefs []int16 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type SkuPricing ¶
type User ¶
type User struct { ID int64 Email string Password string PhoneNumber *string FullName string Status UserStatus Otp *string OtpExpiry *int64 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type UserStatus ¶
type UserStatus string
const ( UserStatusBlocked UserStatus = "Blocked" UserStatusRegistrationPending UserStatus = "RegistrationPending" UserStatusActive UserStatus = "Active" UserStatusInactice UserStatus = "Inactice" )
func (*UserStatus) Scan ¶
func (e *UserStatus) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.