package com.iotechn.unimall.app.api.footprint;
|
|
import com.dobbinsoft.fw.core.annotation.HttpMethod;
|
import com.dobbinsoft.fw.core.annotation.HttpOpenApi;
|
import com.dobbinsoft.fw.core.annotation.HttpParam;
|
import com.dobbinsoft.fw.core.annotation.HttpParamType;
|
import com.dobbinsoft.fw.core.annotation.param.NotNull;
|
import com.dobbinsoft.fw.core.exception.ServiceException;
|
import com.iotechn.unimall.data.domain.SpuDO;
|
|
import java.util.List;
|
|
/**
|
* Created with IntelliJ IDEA.
|
* Description:
|
* User: kbq
|
* Date: 2019-07-08
|
* Time: 上午8:33
|
*/
|
|
@HttpOpenApi(group = "footprint", description = "足迹")
|
public interface FootprintService {
|
|
@HttpMethod(description = "删除足迹")
|
public boolean delete(
|
@NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "用户ID") Long userId,
|
@NotNull @HttpParam(name = "spuId", type = HttpParamType.COMMON, description = "足迹Id") Long spuId) throws ServiceException;
|
|
@HttpMethod(description = "清空足迹")
|
public boolean deleteAll(
|
@NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "用户ID") Long userId) throws ServiceException;
|
|
@HttpMethod(description = "分页查询所有足迹,通过时间顺序")
|
public List<SpuDO> list(
|
@NotNull @HttpParam(name = "userId", type = HttpParamType.USER_ID, description = "用户ID") Long userId) throws ServiceException;
|
|
}
|