package com.ghy.worker.service;

import com.ghy.worker.domain.WorkerGoodsCategory;

import java.util.List;

/**
 * 师傅服务类目Service
 *
 * @author HH 2022/6/7
 */
public interface WorkerGoodsCategoryService {

    int insert(WorkerGoodsCategory workerGoodsCategory);

    int delete(Long[] ids);

    int deleteByWorker(Long workerId);

    List<WorkerGoodsCategory> getByWorker(Long workerId);

    void updateWorkerGoodsCategory(Long workerId, List<WorkerGoodsCategory> categories);

    /**
     * 根据服务类型更新师傅服务类目
     * @param workerId 师傅ID
     * @param categories 类目列表
     * @param serviceType 服务类型：1=服务, 2=商品
     */
    void updateWorkerGoodsCategoryByType(Long workerId, List<WorkerGoodsCategory> categories, Integer serviceType);

    /**
     * 根据师傅ID和服务类型查询服务类目
     * @param workerId 师傅ID
     * @param serviceType 服务类型：1=服务, 2=商品
     * @return 服务类目列表
     */
    List<WorkerGoodsCategory> getByWorkerIdAndType(Long workerId, Integer serviceType);

    List<WorkerGoodsCategory> getWorkerGoodsCategory(WorkerGoodsCategory workerGoodsCategory);
}
