21 lines
448 B
Java
21 lines
448 B
Java
package com.example.springdemo.service;
|
|
|
|
import com.example.springdemo.entities.Merchants;
|
|
|
|
import java.util.List;
|
|
import java.util.Optional;
|
|
|
|
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);
|
|
}
|