UserLimitService.java 1.14 KB
Newer Older
licc's avatar
licc committed
1 2 3 4
package cn.wisenergy.service.app;

import cn.wisenergy.common.utils.R;
import cn.wisenergy.model.app.UserLimit;
5
import cn.wisenergy.model.vo.AddLimitVo;
licc's avatar
licc committed
6 7 8


/**
licc's avatar
licc committed
9
 * @author 86187
10 11 12
 * @ Description: 用户查询次数接口定义
 * @ Author     : 86187
 * @ Date       : 2021/1/14 9:33
licc's avatar
licc committed
13
 */
licc's avatar
licc committed
14 15 16
public interface UserLimitService {
    /**
     * 获取用户查询次数信息
17
     *
licc's avatar
licc committed
18 19 20 21
     * @param userId 用户id
     * @return 用户查询次数信息
     */
    R<UserLimit> getByUserId(Integer userId);
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

    /**
     * 添加用户查询次数
     *
     * @param addLimitVo 参数
     * @return true  or false
     */
    R<Boolean> addLimit(AddLimitVo addLimitVo);

    /**
     * 减少用户查询次数
     *
     * @param userId 用户id
     * @return true  or false
     */
    R<Boolean> minusLimit(Integer userId);
38 39 40 41 42 43 44

    /**
     * 减少用户查询次数(方案查询模块)
     * @param userLimit
     * @return  true  or false
     */
    R<Boolean> minusLimitUser(UserLimit userLimit);
cy's avatar
cy committed
45 46 47 48


    /**
     * 给用户添加查询点数
cy's avatar
cy committed
49
     * @param userId
cy's avatar
cy committed
50 51 52
     * @param number
     * @return
     */
cy's avatar
cy committed
53
    R<Boolean> addPoint(Integer userId,Integer number);
licc's avatar
licc committed
54
}