unit

package
v1.0.44 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *gorm.DB) error

Types

type UnitService

type UnitService struct {
	// contains filtered or unexported fields
}

func NewUnitService

func NewUnitService(db *gorm.DB, ctx *context.ERPContext) *UnitService

func (*UnitService) CreateUnit

func (s *UnitService) CreateUnit(data *models.UnitModel) error

func (*UnitService) DeleteUnit

func (s *UnitService) DeleteUnit(id string) error

func (*UnitService) GetUnitByID

func (s *UnitService) GetUnitByID(id string) (*models.UnitModel, error)

func (*UnitService) GetUnitByName

func (s *UnitService) GetUnitByName(name string) (*models.UnitModel, error)

func (*UnitService) GetUnits

func (s *UnitService) GetUnits(request http.Request, search string) (paginate.Page, error)

func (*UnitService) UpdateUnit

func (s *UnitService) UpdateUnit(id string, data *models.UnitModel) error

Jump to

Keyboard shortcuts

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