package com.doumee.service.business;
|
|
import com.doumee.core.model.PageData;
|
import com.doumee.core.model.PageWrap;
|
import com.doumee.dao.business.model.Activity;
|
import com.doumee.dao.web.dto.activity.*;
|
import com.doumee.dao.web.request.ActivityPageListRequest;
|
|
import java.util.List;
|
|
/**
|
* 活动、资讯、探店信息表Service定义
|
* @author 江蹄蹄
|
* @date 2023/03/21 15:48
|
*/
|
public interface ActivityService extends VisitService{
|
|
/**
|
* 创建
|
*
|
* @param activity 实体对象
|
* @return Integer
|
*/
|
Integer create(Activity activity);
|
|
/**
|
* 主键删除
|
*
|
* @param id 主键
|
*/
|
void deleteById(Integer id);
|
|
/**
|
* 删除
|
*
|
* @param activity 实体对象
|
*/
|
void delete(Activity activity);
|
|
/**
|
* 批量主键删除
|
*
|
* @param ids 主键集
|
*/
|
void deleteByIdInBatch(List<Integer> ids);
|
|
/**
|
* 主键更新
|
*
|
* @param activity 实体对象
|
*/
|
void updateById(Activity activity);
|
|
/**
|
* 批量主键更新
|
*
|
* @param activitys 实体集
|
*/
|
void updateByIdInBatch(List<Activity> activitys);
|
|
/**
|
* 主键查询
|
*
|
* @param id 主键
|
* @return Activity
|
*/
|
Activity findById(Integer id);
|
Activity findByIdFull(Integer id,Integer memberId);
|
|
/**
|
* 条件查询单条记录
|
*
|
* @param activity 实体对象
|
* @return Activity
|
*/
|
Activity findOne(Activity activity);
|
|
/**
|
* 条件查询
|
*
|
* @param activity 实体对象
|
* @return List<Activity>
|
*/
|
List<Activity> findList(Activity activity);
|
|
/**
|
* 分页查询
|
*
|
* @param pageWrap 分页对象
|
* @return PageData<Activity>
|
*/
|
PageData<Activity> findPage(PageWrap<Activity> pageWrap);
|
|
/**
|
* 条件统计
|
*
|
* @param activity 实体对象
|
* @return long
|
*/
|
long count(Activity activity);
|
|
/**
|
* 获取活动id
|
* @param activityId 活动ID
|
* @return
|
*/
|
BaseActivity getActivity(Integer activityId, Integer memberId);
|
|
|
/**
|
* 商家 机构 获取活动id
|
* @param activityId 活动ID
|
* @return
|
*/
|
BaseActivity getActivity(Integer activityId);
|
|
/**
|
*
|
*新增/编辑活动
|
* @param baseActivity
|
*/
|
void creatOrUpdateShopOrgActivity(BaseActivity baseActivity,Integer memberId);
|
|
|
/**
|
* 分页获取 资讯/探店/活动
|
* @param pageWrap
|
* @return
|
*/
|
PageData<ActivityCardDTO> getActivityCard(PageWrap<ActivityPageListRequest> pageWrap);
|
|
|
|
/**
|
* 探店和资讯详情
|
* @param activityId
|
* @return
|
*/
|
ActivityProbeShopDTO getActivityProbeShopDTO(Integer activityId, Integer memberId);
|
|
/**
|
* 获取该城市下的最热探店视频
|
* @param pageWrap
|
* @return
|
*/
|
PageData<ActivityVideoDTO> getActivityVideoDTO(PageWrap<Integer> pageWrap);
|
|
/**
|
* 获取收藏的 资讯/探店/活动
|
* @param pageWrap
|
* @return
|
*/
|
PageData<ActivityCardDTO> getUserCollectActivityCard(PageWrap pageWrap,Integer memberId);
|
|
/**
|
* 获取我参与活动列表 not_start having over
|
* @param pageWrap
|
* @return
|
*/
|
PageData<MemberActivitySignDTO> getUserActivitySignCard(PageWrap<String> pageWrap, Integer memberId);
|
|
|
/**
|
* 获取我参与活动列表 not_start having over
|
* @param pageWrap
|
* @return
|
*/
|
PageData<ShopActivitySignDTO> getShopActivitySignCard(PageWrap<ShopActivitySignDTO> pageWrap);
|
|
/**
|
* 获取活动参加用户
|
* @param pageWrap
|
* @return
|
*/
|
PageData<ActivitySignUserDTO> getActivitySignUserDTO(PageWrap<Integer> pageWrap);
|
|
|
/**
|
* 分页获取关注的 资讯/探店/活动
|
* @param pageWrap
|
* @return
|
*/
|
PageData<ActivityCardDTO> getUserFollowActivityCard(PageWrap pageWrap,Integer memberId);
|
|
void updateLooknum(Activity model);
|
}
|