package com.ssm.manage.service;


import com.github.pagehelper.PageInfo;
import com.ssm.core.service.BaseService;
import com.ssm.manage.dto.StoreWechatDto;
import com.ssm.manage.entity.StoreWechat;

import java.io.Serializable;

/**
 * (StoreWechat)表服务接口
 *
 * @author makejava
 * @since 2022-07-07 15:49:56
 */
public interface StoreWechatService extends BaseService<StoreWechat> {

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return
     */
    public StoreWechat queryById(Serializable id);

    /**
     * 分页查询
     *
     * @param dto
     * @return
     */
    public PageInfo<StoreWechat> queryByPage(StoreWechatDto dto);

    /**
     * 新增
     *
     * @param storeWechat
     * @return
     */
    public int add(StoreWechat storeWechat, String session);

    /**
     * 编辑
     *
     * @param storeWechat
     * @return
     */
    public int edit(StoreWechat storeWechat, String session);

    /**
     * 根据主键删除
     *
     * @param id 主键
     * @return
     */
    public int delete(Serializable id);
}