20 lines
587 B
Plaintext
20 lines
587 B
Plaintext
package com.healthcare.ohctech.service;
|
|
|
|
import com.healthcare.ohctech.dto.ItemDto;
|
|
import com.healthcare.ohctech.entity.Item;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public interface ItemService {
|
|
Item getItemById(Long itemId);
|
|
Page<Item> getAllItems(Pageable pageable);
|
|
void addItem(ItemDto itemDto, Long userId);
|
|
void updateItem(ItemDto itemDto, Long userId);
|
|
void deleteItem(Long itemId);
|
|
|
|
|
|
List<Map<String, String>> getItemNamesAndCodesWithMedicineForm();
|
|
} |