2023-10-06 15:32:15 +00:00
|
|
|
package com.example.springdemo.service;
|
|
|
|
|
2023-10-25 10:12:29 +00:00
|
|
|
import com.example.springdemo.entities.Merchants;
|
2023-10-06 15:32:15 +00:00
|
|
|
|
2023-10-25 10:12:29 +00:00
|
|
|
import java.util.List;
|
|
|
|
import java.util.Optional;
|
2023-10-06 15:32:15 +00:00
|
|
|
|
2023-10-25 10:12:29 +00:00
|
|
|
public interface MerchantsService {
|
|
|
|
Merchants insetMerchants(Merchants merchant);
|
|
|
|
|
|
|
|
void deleteMerchantsById(Long id);
|
|
|
|
|
|
|
|
Merchants updateMerchants(Merchants merchant);
|
|
|
|
|
|
|
|
List<Merchants> findAllMerchants();
|
|
|
|
|
|
|
|
Optional<Merchants> findById(Long id);
|
|
|
|
|
|
|
|
Merchants findByName(String name);
|
2023-10-06 15:32:15 +00:00
|
|
|
}
|