All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.smallbun.scaffold.framework.mybatis.service.BaseService Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2018-2019.‭‭‭‭‭‭‭‭‭‭‭‭[zuoqinggang] www.pingfangushi.com
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see .
 */


package cn.smallbun.scaffold.framework.mybatis.service;

import cn.smallbun.scaffold.framework.mybatis.page.PageModel;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author SanLi
 * Created by [email protected] / [email protected] on 2019/5/9 12:00
 */
public interface BaseService extends IService {
	/**
	 * 唯一验证
	 * @param t T
	 * @return boolean
	 */
	boolean unique(T t);

	/**
	 * 分页查询
	 * @param page {@link PageModel}
	 * @return {@link IPage}
	 */
	IPage page(PageModel page);

	/**
	 * 分页查询
	 * @param page  {@link PageModel}
	 * @param wrapper {@link QueryWrapper}
	 * @return  {@link IPage}
	 */
	IPage page(PageModel page, Wrapper wrapper);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy