master
parent
e7f7dcfe92
commit
1855d254ec
@ -0,0 +1,18 @@
|
||||
package com.macro.mall.service;
|
||||
|
||||
import com.macro.mall.model.SmsCouponHistory;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 优惠券领取记录管理Service
|
||||
*/
|
||||
public interface SmsCouponHistoryService {
|
||||
/**
|
||||
* 分页查询优惠券领取记录
|
||||
* @param couponId 优惠券id
|
||||
* @param useStatus 使用状态
|
||||
* @param orderSn 使用订单号码
|
||||
*/
|
||||
List<SmsCouponHistory> list(Long couponId, Integer useStatus, String orderSn, Integer pageSize, Integer pageNum);
|
||||
}
|
@ -0,0 +1,41 @@
|
||||
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
|
||||
*/
|
||||
public interface SmsCouponService {
|
||||
/**
|
||||
* 添加优惠券
|
||||
*/
|
||||
@Transactional
|
||||
int create(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);
|
||||
|
||||
/**
|
||||
* 获取优惠券详情
|
||||
* @param id 优惠券表id
|
||||
*/
|
||||
SmsCouponParam getItem(Long id);
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package com.macro.mall.service;
|
||||
|
||||
import com.macro.mall.dto.SmsFlashPromotionProduct;
|
||||
import com.macro.mall.model.SmsFlashPromotionProductRelation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 限时购商品关联管理Service
|
||||
*/
|
||||
public interface SmsFlashPromotionProductRelationService {
|
||||
/**
|
||||
* 批量添加关联
|
||||
*/
|
||||
@Transactional
|
||||
int create(List<SmsFlashPromotionProductRelation> relationList);
|
||||
|
||||
/**
|
||||
* 修改关联相关信息
|
||||
*/
|
||||
int update(Long id, SmsFlashPromotionProductRelation relation);
|
||||
|
||||
/**
|
||||
* 删除关联
|
||||
*/
|
||||
int delete(Long id);
|
||||
|
||||
/**
|
||||
* 获取关联详情
|
||||
*/
|
||||
SmsFlashPromotionProductRelation getItem(Long id);
|
||||
|
||||
/**
|
||||
* 分页查询相关商品及促销信息
|
||||
*
|
||||
* @param flashPromotionId 限时购id
|
||||
* @param flashPromotionSessionId 限时购场次id
|
||||
*/
|
||||
List<SmsFlashPromotionProduct> list(Long flashPromotionId, Long flashPromotionSessionId, Integer pageSize, Integer pageNum);
|
||||
|
||||
/**
|
||||
* 根据活动和场次id获取商品关系数量
|
||||
* @param flashPromotionId
|
||||
* @param flashPromotionSessionId
|
||||
* @return
|
||||
*/
|
||||
int getCount(Long flashPromotionId,Long flashPromotionSessionId);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.macro.mall.service;
|
||||
|
||||
import com.macro.mall.model.SmsFlashPromotion;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 限时购活动管理Service
|
||||
*/
|
||||
public interface SmsFlashPromotionService {
|
||||
/**
|
||||
* 添加活动
|
||||
*/
|
||||
int create(SmsFlashPromotion flashPromotion);
|
||||
|
||||
/**
|
||||
* 修改指定活动
|
||||
*/
|
||||
int update(Long id, SmsFlashPromotion flashPromotion);
|
||||
|
||||
/**
|
||||
* 删除单个活动
|
||||
*/
|
||||
int delete(Long id);
|
||||
|
||||
/**
|
||||
* 修改上下线状态
|
||||
*/
|
||||
int updateStatus(Long id, Integer status);
|
||||
|
||||
/**
|
||||
* 获取详细信息
|
||||
*/
|
||||
SmsFlashPromotion getItem(Long id);
|
||||
|
||||
/**
|
||||
* 分页查询活动
|
||||
*/
|
||||
List<SmsFlashPromotion> list(String keyword, Integer pageSize, Integer pageNum);
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.macro.mall.service;
|
||||
|
||||
import com.macro.mall.dto.SmsFlashPromotionSessionDetail;
|
||||
import com.macro.mall.model.SmsFlashPromotionSession;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 限时购场次管理Service
|
||||
*/
|
||||
public interface SmsFlashPromotionSessionService {
|
||||
/**
|
||||
* 添加场次
|
||||
*/
|
||||
int create(SmsFlashPromotionSession promotionSession);
|
||||
|
||||
/**
|
||||
* 修改场次
|
||||
*/
|
||||
int update(Long id, SmsFlashPromotionSession promotionSession);
|
||||
|
||||
/**
|
||||
* 修改场次启用状态
|
||||
*/
|
||||
int updateStatus(Long id, Integer status);
|
||||
|
||||
/**
|
||||
* 删除场次
|
||||
*/
|
||||
int delete(Long id);
|
||||
|
||||
/**
|
||||
* 获取详情
|
||||
*/
|
||||
SmsFlashPromotionSession getItem(Long id);
|
||||
|
||||
/**
|
||||
* 根据启用状态获取场次列表
|
||||
*/
|
||||
List<SmsFlashPromotionSession> list();
|
||||
|
||||
/**
|
||||
* 获取全部可选场次及其数量
|
||||
*/
|
||||
List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId);
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.macro.mall.service;
|
||||
|
||||
import com.macro.mall.model.SmsHomeAdvertise;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 首页广告管理Service
|
||||
*/
|
||||
public interface SmsHomeAdvertiseService {
|
||||
/**
|
||||
* 添加广告
|
||||
*/
|
||||
int create(SmsHomeAdvertise advertise);
|
||||
|
||||
/**
|
||||
* 批量删除广告
|
||||
*/
|
||||
int delete(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 修改上、下线状态
|
||||
*/
|
||||
int updateStatus(Long id, Integer status);
|
||||
|
||||
/**
|
||||
* 获取广告详情
|
||||
*/
|
||||
SmsHomeAdvertise getItem(Long id);
|
||||
|
||||
/**
|
||||
* 更新广告
|
||||
*/
|
||||
int update(Long id, SmsHomeAdvertise advertise);
|
||||
|
||||
/**
|
||||
* 分页查询广告
|
||||
*/
|
||||
List<SmsHomeAdvertise> list(String name, Integer type, String endTime, Integer pageSize, Integer pageNum);
|
||||
}
|
Loading…
Reference in new issue