Documentation ¶
Index ¶
- func CreateCategory(request *proto.CreateCategoryRequest, db_pool *sql.DB) int64
- func CreateSubCategory(request *proto.CreateSubCategoryRequest, db_pool *sql.DB) int64
- func DeleteCategory(request *proto.DeleteCategoryRequest, db_pool *sql.DB) int64
- func DeleteSubCategory(request *proto.DeleteSubCategoryRequest, db_pool *sql.DB) int64
- func GetAllCategories(ctx context.Context, db_pool *sql.DB) []*proto.Category
- func GetAllSubCategories(ctx context.Context, db_pool *sql.DB) []*proto.SubCategory
- func GetSubCategory(ctx context.Context, request *proto.GetSubCategoryRequest, db_pool *sql.DB) proto.SubCategory
- type Category
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCategory ¶
func CreateCategory(request *proto.CreateCategoryRequest, db_pool *sql.DB) int64
func CreateSubCategory ¶
func CreateSubCategory(request *proto.CreateSubCategoryRequest, db_pool *sql.DB) int64
func DeleteCategory ¶
func DeleteCategory(request *proto.DeleteCategoryRequest, db_pool *sql.DB) int64
func DeleteSubCategory ¶
func DeleteSubCategory(request *proto.DeleteSubCategoryRequest, db_pool *sql.DB) int64
func GetAllCategories ¶
func GetAllSubCategories ¶
func GetSubCategory ¶
func GetSubCategory(ctx context.Context, request *proto.GetSubCategoryRequest, db_pool *sql.DB) proto.SubCategory
Types ¶
Click to show internal directories.
Click to hide internal directories.