37 lines
785 B
Java
37 lines
785 B
Java
package com.macro.mall.service;
|
|
|
|
import com.macro.mall.dto.SmsCouponParam;
|
|
import com.macro.mall.model.SmsCoupon;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 优惠券管理Service
|
|
* Created by macro on 2018/8/28.
|
|
*/
|
|
public interface SmsCouponService {
|
|
/**
|
|
* 添加优惠券
|
|
*/
|
|
@Transactional
|
|
int add(SmsCouponParam couponParam);
|
|
|
|
/**
|
|
* 根据优惠券id删除优惠券
|
|
*/
|
|
@Transactional
|
|
int delete(Long id);
|
|
|
|
/**
|
|
* 根据优惠券id更新优惠券信息
|
|
*/
|
|
@Transactional
|
|
int update(Long id, SmsCouponParam couponParam);
|
|
|
|
/**
|
|
* 分页获取优惠券列表
|
|
*/
|
|
List<SmsCoupon> list(String name, Integer type, Integer pageSize, Integer pageNum);
|
|
}
|