PickInfoRPC.java
1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.diligrp.mobsite.getway.rpc;
import com.b2c.myapp.common.api.pickingInfo.input.PickingInfoSaveInput;
import com.b2c.myapp.common.api.pickingInfo.input.PickingInfoUpdateInput;
import com.b2c.myapp.common.api.pickingInfo.output.PickingInfoOutput;
import java.util.List;
/**
* Created by jiangchengyong on 2017/1/12.
*/
public interface PickInfoRPC {
/**
* 新增收货人
* @param pickingInfoSaveInput
* @return
*/
PickingInfoOutput addPickingInfo(PickingInfoSaveInput pickingInfoSaveInput);
/**
* 修改收货人信息
* @param pickingInfoUpdateInput
* @return
*/
Boolean modify(PickingInfoUpdateInput pickingInfoUpdateInput);
/**
* 按买家ID查询收货人
* @param buyerId
* @return
*/
List<PickingInfoOutput> queryPickingInfosByBuyerId(Long buyerId);
/**
* @comment 根据买家id获取默认收货地址
* @param buyerId
* @return PickInfoOutput
* @author kelan
* @time 2016/12/15 10:38
*/
PickingInfoOutput getDefaultPickingInfoByBuyerId(Long buyerId);
/**
* @comment 删除收货地址(需要判断是否是默认地址)
* @param id 收货地址id
* @return Boolean
* @author kelan
* @time 2016/12/16 17:58
*/
public Boolean delPickingInfoById(Long id);
}