This repository has been archived on 2025-03-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
boilerplate/internal/services/service.go
2025-02-20 18:30:47 +07:00

11 lines
207 B
Go

package services
type Service[T any] interface {
GetAll() ([]*T, error)
GetById(id uint) (*T, error)
Create(item T) (T, error)
Update(item T) (T, error)
Delete(id uint) error
Count() (int64, error)
}