PickInfoRPC.java 1.31 KB
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);
}