PlatTenantService.java 1.04 KB
package com.diligrp.mqtt.web.service;

import com.diligrp.mqtt.web.model.PlatTenant;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;


public interface PlatTenantService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    PlatTenant queryById(Integer id);

    /**
     * 分页查询
     *
     * @param platTenant 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    Page<PlatTenant> queryByPage(PlatTenant platTenant, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param platTenant 实例对象
     * @return 实例对象
     */
    PlatTenant insert(PlatTenant platTenant);

    /**
     * 修改数据
     *
     * @param platTenant 实例对象
     * @return 实例对象
     */
    PlatTenant update(PlatTenant platTenant);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

}