naise_pos/db/sqlc/querier.go

53 lines
3.0 KiB
Go
Raw Normal View History

2023-03-12 11:01:43 +07:00
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.17.2
package db
import (
"context"
"github.com/google/uuid"
)
type Querier interface {
CreateCustomers(ctx context.Context, arg CreateCustomersParams) (Customer, error)
2023-03-13 09:24:59 +07:00
CreateMerchant(ctx context.Context, arg CreateMerchantParams) (Merchant, error)
2023-03-12 11:01:43 +07:00
CreateProduct(ctx context.Context, arg CreateProductParams) (Product, error)
2023-03-16 16:55:45 +07:00
CreateProductCategory(ctx context.Context, arg CreateProductCategoryParams) (ProductCategory, error)
2023-03-12 11:01:43 +07:00
CreatePurchaseOrder(ctx context.Context, arg CreatePurchaseOrderParams) (PurchaseOrder, error)
CreatePurchaseOrderDetail(ctx context.Context, arg CreatePurchaseOrderDetailParams) (PurchaseOrderDetail, error)
2023-03-22 12:06:09 +07:00
CreateSaleOrder(ctx context.Context, arg CreateSaleOrderParams) (SaleOrder, error)
CreateSaleOrderDetail(ctx context.Context, arg CreateSaleOrderDetailParams) (SaleOrderDetail, error)
2023-03-16 12:21:41 +07:00
CreateSession(ctx context.Context, arg CreateSessionParams) (UserSession, error)
2023-03-19 18:17:17 +07:00
CreateStockLogs(ctx context.Context, arg CreateStockLogsParams) (StockLog, error)
2023-03-12 11:01:43 +07:00
CreateSuppliers(ctx context.Context, arg CreateSuppliersParams) (Supplier, error)
2023-03-13 09:24:59 +07:00
CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
2023-03-12 11:01:43 +07:00
CustomersList(ctx context.Context, arg CustomersListParams) ([]Customer, error)
DeleteCustomer(ctx context.Context, id uuid.UUID) error
DeleteProduct(ctx context.Context, id uuid.UUID) error
2023-03-16 16:55:45 +07:00
DeleteProductCategory(ctx context.Context, id uuid.UUID) error
2023-03-12 11:01:43 +07:00
DeleteSupplier(ctx context.Context, id uuid.UUID) error
GetMerchantById(ctx context.Context, id uuid.UUID) (Merchant, error)
GetMerchantByUserId(ctx context.Context, ownerID uuid.UUID) (Merchant, error)
2023-03-13 09:24:59 +07:00
GetPasswordByEmail(ctx context.Context, email string) (string, error)
2023-03-12 11:01:43 +07:00
GetProduct(ctx context.Context, id uuid.UUID) (Product, error)
2023-03-16 16:55:45 +07:00
GetPurchaseOrderById(ctx context.Context, id uuid.UUID) (PurchaseOrder, error)
GetPurchaseOrderDetailsByPuchaseOrderId(ctx context.Context, purchaseOrderID uuid.UUID) (PurchaseOrderDetail, error)
2023-03-16 12:21:41 +07:00
GetSession(ctx context.Context, id uuid.UUID) (UserSession, error)
2023-03-12 11:01:43 +07:00
GetStockForUpdateStock(ctx context.Context, id uuid.UUID) (Product, error)
2023-03-19 18:17:17 +07:00
GetUserByEmail(ctx context.Context, email string) (GetUserByEmailRow, error)
GetUserById(ctx context.Context, id uuid.UUID) (GetUserByIdRow, error)
2023-03-16 16:55:45 +07:00
ListProductCategoriesByMerchantID(ctx context.Context, arg ListProductCategoriesByMerchantIDParams) ([]ProductCategory, error)
2023-03-12 11:01:43 +07:00
ListProducts(ctx context.Context, arg ListProductsParams) ([]Product, error)
2023-03-16 16:55:45 +07:00
ListPurchaseOrderByMerchantId(ctx context.Context, merchantID uuid.UUID) ([]PurchaseOrder, error)
2023-03-12 11:01:43 +07:00
SuppliersList(ctx context.Context, arg SuppliersListParams) ([]Supplier, error)
UpdateCustomer(ctx context.Context, id uuid.UUID) (Customer, error)
UpdateProduct(ctx context.Context, arg UpdateProductParams) (Product, error)
2023-03-16 16:55:45 +07:00
UpdateProductCategory(ctx context.Context, arg UpdateProductCategoryParams) (ProductCategory, error)
2023-03-12 11:01:43 +07:00
UpdateProductStock(ctx context.Context, arg UpdateProductStockParams) error
UpdateSupplier(ctx context.Context, id uuid.UUID) (Supplier, error)
}
var _ Querier = (*Queries)(nil)