/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.user.comment.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.user.comment.model.UserLevelLog;
import com.yami.shop.user.comment.dao.UserLevelLogMapper;
import com.yami.shop.user.comment.service.UserLevelLogService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 *
 *
 * @author LGH
 * @date 2020-02-26 16:03:14
 */
@Service
@AllArgsConstructor
public class UserLevelLogServiceImpl extends ServiceImpl<UserLevelLogMapper, UserLevelLog> implements UserLevelLogService {

    private final UserLevelLogMapper userLevelLogMapper;

    @Override
    public Page<UserLevelLog> getPage(Page<UserLevelLog> page, UserLevelLog userLevelLog) {
        return userLevelLogMapper.getPage(page,userLevelLog);
    }

    @Override
    public Integer getMaxLevelByUserId(String userId) {
        return userLevelLogMapper.getMaxLevelByUserId(userId);
    }
}
