package ink.wgink.service.user.dao;

import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import ink.wgink.interfaces.init.IInitBaseTable;
import ink.wgink.service.user.pojo.dtos.UserLogDTO;
import org.springframework.stereotype.Repository;

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

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: IUserAdjustmentDao
 * @Description: 用户调整
 * @Author: wanggeng
 * @Date: 2021/2/12 3:51 下午
 * @Version: 1.0
 */
@Repository
public interface IUserAdjustmentDao extends IInitBaseTable {

    /**
     * 新增用户调整
     *
     * @param params
     * @throws SaveException
     */
    void save(Map<String, Object> params) throws SaveException;

    /**
     * 用户调整列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<UserLogDTO> list(Map<String, Object> params) throws SearchException;

}
