/**
 * Copyright (c) 2022 雷掣 All rights reserved.
 * <p>
 * https://www.lc_crm.com
 * <p>
 * 版权所有，侵权必究！
 */

package io.renren.common.service;

import io.renren.common.page.PageData;

import java.util.List;
import java.util.Map;

/**
 *  CRUD基础服务接口
 *
 * @author Mark sunlightcs@gmail.com
 */
public interface CrudService<T, D> extends BaseService<T> {

    PageData<D> page(Map<String, Object> params);

    List<D> list(Map<String, Object> params);

    D get(Long id);

    void save(D dto);

    void update(D dto);

    void delete(Long[] ids);

}