38 lines
639 B
Java
38 lines
639 B
Java
package com.bycrm.service;
|
|
|
|
import com.bycrm.dto.DealerDTO;
|
|
import com.bycrm.entity.Dealer;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 经销商服务接口
|
|
*/
|
|
public interface DealerService {
|
|
|
|
/**
|
|
* 查询所有经销商
|
|
*/
|
|
List<Dealer> getDealerList(String name, String code, Integer status);
|
|
|
|
/**
|
|
* 根据 ID 获取经销商
|
|
*/
|
|
Dealer getDealerById(Long id);
|
|
|
|
/**
|
|
* 创建经销商
|
|
*/
|
|
void createDealer(DealerDTO dealerDTO);
|
|
|
|
/**
|
|
* 更新经销商
|
|
*/
|
|
void updateDealer(Long id, DealerDTO dealerDTO);
|
|
|
|
/**
|
|
* 删除经销商
|
|
*/
|
|
void deleteDealer(Long id);
|
|
}
|