package com.haha.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.haha.entity.User;
import java.math.BigDecimal;
import java.util.Map;

public interface UserService extends IService<User> {
    User getUserByOpenId(String openId);
    User getUserByPhone(String phone);
    boolean updateCreditScore(Long userId, Integer score);
    boolean updateBalance(Long userId, BigDecimal amount);
    
    /**
     * 分页查询客户列表
     */
    IPage<User> getPage(int page, int pageSize, Map<String, Object> params);
    
    /**
     * 获取客户统计信息
     */
    Map<String, Object> getStatistics();
}
