package org.dromara.payment.worker.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.payment.worker.domain.UserWorkerAuthorized;
import org.dromara.payment.worker.domain.bo.UserWorkerAuthorizedBo;
import org.dromara.payment.worker.domain.vo.UserWorkerAuthorizedVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 授权协议Mapper接口
 *
 * @author LionLi
 * @date 2024-04-29
 */
public interface UserWorkerAuthorizedMapper extends BaseMapperPlus<UserWorkerAuthorized, UserWorkerAuthorizedVo> {


    /***
     * 查询授权协议列表
     * @param page
     * @param wrapper
     * @return
     */
    Page<UserWorkerAuthorizedVo> selUserWorkerAuthorList(@Param("page") IPage page, @Param(Constants.WRAPPER) Wrapper wrapper);


    /***
     * 查询授权协议详情
     * @param auBo
     * @return
     */
    UserWorkerAuthorizedVo selUserWorkerAuthorInfo(UserWorkerAuthorizedBo auBo);
}
