package com.ssm.manage.service;

import com.github.pagehelper.PageInfo;
import com.ssm.manage.dto.CouponShareDto;
import com.ssm.manage.entity.CouponShare;
import com.ssm.manage.entity.SmsException;
import com.ssm.manage.query.CouponShareRequest;

import java.io.Serializable;
import java.util.List;

/**
 * (CouponShare)表服务接口
 *
 * @author makejava
 * @since 2022-06-11 15:00:06
 */
public interface CouponShareService {

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

    /**
     * 分页查询
     *
     * @param dto
     * @return
     */
     PageInfo<CouponShare> queryByPage(CouponShareDto dto);

    /**
     * 新增
     *
     * @param couponShare
     * @return
     */
    int add(CouponShare couponShare) throws SmsException;

    /**
     * 编辑
     *
     * @param couponShare
     * @return
     */
    int edit(CouponShare couponShare);

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

    int share(CouponShareDto dto);

    List<CouponShareRequest> personalPage(CouponShareDto dto);
}