Documentation
¶
Index ¶
- func Migrate(db *gorm.DB) error
- type UnitService
- func (s *UnitService) CreateUnit(data *models.UnitModel) error
- func (s *UnitService) DeleteUnit(id string) error
- func (s *UnitService) GetUnitByID(id string) (*models.UnitModel, error)
- func (s *UnitService) GetUnitByName(name string) (*models.UnitModel, error)
- func (s *UnitService) GetUnits(request http.Request, search string) (paginate.Page, error)
- func (s *UnitService) UpdateUnit(id string, data *models.UnitModel) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) UpdateUnit ¶
func (s *UnitService) UpdateUnit(id string, data *models.UnitModel) error
Click to show internal directories.
Click to hide internal directories.