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

11 lines
211 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(item T) (T, error)
Count() (int64, error)
}