settings section
This commit is contained in:
12
internal/admin/location/storage.go
Normal file
12
internal/admin/location/storage.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package location
|
||||
|
||||
import "context"
|
||||
|
||||
type Repository interface {
|
||||
List(ctx context.Context, filter ListFilter) (ListLocationDTO, error)
|
||||
GetByID(ctx context.Context, id int64) (LocationDTO, error)
|
||||
Create(ctx context.Context, dto CreateLocationDTO) (LocationDTO, error)
|
||||
Update(ctx context.Context, id int64, dto UpdateLocationDTO) (LocationDTO, error)
|
||||
UpdateStatus(ctx context.Context, id int64, status bool) (LocationDTO, error)
|
||||
Delete(ctx context.Context, id int64) error
|
||||
}
|
||||
Reference in New Issue
Block a user