feat: add delete for domain cropland and farm

This commit is contained in:
Natthapol SERMSARAN 2025-02-13 23:30:43 +07:00
parent 41f194c22a
commit de1813b83c
2 changed files with 2 additions and 2 deletions

View File

@ -32,5 +32,5 @@ func (c *Cropland) Validate() error {
type CroplandRepository interface { type CroplandRepository interface {
GetByID(context.Context, string) (Cropland, error) GetByID(context.Context, string) (Cropland, error)
CreateOrUpdate(context.Context, *Cropland) error CreateOrUpdate(context.Context, *Cropland) error
// Delete(context.Context, string) error Delete(context.Context, string) error
} }

View File

@ -29,5 +29,5 @@ func (f *Farm) Validate() error {
type FarmRepository interface { type FarmRepository interface {
GetByID(context.Context, string) (Farm, error) GetByID(context.Context, string) (Farm, error)
CreateOrUpdate(context.Context, *Farm) error CreateOrUpdate(context.Context, *Farm) error
// Delete(context.Context, string) error Delete(context.Context, string) error
} }