createCategory

package
v0.0.0-...-7c9f392 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepositoryCreate

func NewRepositoryCreate(db *gorm.DB) *repository

func NewServiceCreate

func NewServiceCreate(repository Repository) *service

Types

type InputCreateCategory

type InputCreateCategory struct {
	ParentID string `json:"parent_id" validate:""`
	Name     string `json:"name" validate:"required"`
	Slug     string `json:"slug" validate:""`
}

type Repository

type Repository interface {
	CreateCategoryRepository(input *model.Category) (*model.Category, string)
}

type Service

type Service interface {
	CreateCategoryService(input *InputCreateCategory) (*model.Category, string)
}

Jump to

Keyboard shortcuts

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