20 lines
518 B
Plaintext
20 lines
518 B
Plaintext
package com.healthcare.ohctech.service;
|
|
|
|
import com.healthcare.ohctech.dto.CategoryDto;
|
|
import com.healthcare.ohctech.entity.Category;
|
|
import org.springframework.data.domain.Page;
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
public interface CategoryService {
|
|
|
|
Category getCategoryById(Long categoryId);
|
|
|
|
Page<Category> getAllCategories(Pageable pageable);
|
|
|
|
void addCategory(CategoryDto categoryDto);
|
|
|
|
Category updateCategory(CategoryDto categoryDto);
|
|
|
|
void deleteCategory(Long categoryId);
|
|
}
|