<?php
/**
 * IExpress.php
 *
 * Niushop鍟嗗煄绯荤粺 - 鍥㈤槦鍗佸勾鐢靛晢缁忛獙姹囬泦宸ㄧ尞!
 * =========================================================
 * Copy right 2015-2025 灞辫タ鐗涢叿淇℃伅绉戞妧鏈夐檺鍏徃, 淇濈暀鎵�鏈夋潈鍒┿��
 * ----------------------------------------------
 * 瀹樻柟缃戝潃: http://www.niushop.com.cn
 * 杩欎笉鏄竴涓嚜鐢辫蒋浠讹紒鎮ㄥ彧鑳藉湪涓嶇敤浜庡晢涓氱洰鐨勭殑鍓嶆彁涓嬪绋嬪簭浠ｇ爜杩涜淇敼鍜屼娇鐢ㄣ��
 * 浠讳綍浼佷笟鍜屼釜浜轰笉鍏佽瀵圭▼搴忎唬鐮佷互浠讳綍褰㈠紡浠讳綍鐩殑鍐嶅彂甯冦��
 * =========================================================
 * @author : niuteam
 * @date : 2015.1.17
 * @version : v1.0.0.0
 */
namespace data\api;
/**
 * 鐗╂祦鎺ュ彛
 */
interface IExpress
{
    /**
     * 鑾峰彇鍞崠鍖哄煙鍒楄〃
     * @param number $page_index
     * @param number $page_size
     * @param string $condition
     * @param string $order
     */
    function getShippingFeeList($page_index=1, $page_size=0, $condition='', $order = '');
  /**
   * 娣诲姞鍞崠鍖哄煙
   * @param unknown $shipping_fee_name
   * @param unknown $shipping_fee_ext 鎵╁睍鏁版嵁 鏍煎紡: 鐪両D缁�;甯俰d缁�;snum; sprice; xnum; xprice|鐪両D缁�;甯俰d缁�;snum; sprice; xnum; xprice
   */
    function addShippingFee($shipping_fee_name, $shipping_fee_ext);
    /**
     * 淇敼鍞崠鍖哄煙
     * @param unknown $shipping_fee_id
     * @param unknown $shipping_fee_name
     * @param unknown $shipping_fee_ext 鎵╁睍鏁版嵁 鏍煎紡: 鐪両D缁�;甯俰d缁�;snum; sprice; xnum; xprice|鐪両D缁�;甯俰d缁�;snum; sprice; xnum; xprice
     */
    function updateShippingFee($shipping_fee_id,$shipping_fee_name, $shipping_fee_ext);
    /**
     * 鑾峰彇鍞崠鍖哄煙璇︽儏
     * @param unknown $shipping_fee_id
     */
    function shippingFeeDetail($shipping_fee_id); 
    /**
     * 鍒犻櫎鍞崠鍖哄煙
     * @param unknown $shipping_fee_id
     */ 
    function shippingFeeDelete($shipping_fee_id);
    
    /**
     *  鏌ヨ杩愯垂妯＄増
     * @param unknown $where 鏉′欢
     * @param string $fields 瀛楁
     */
    function shippingFeeQuery($where,$fields = "*");
    /**
     * 蹇�掑叕鍙稿垪琛�
     * @param number $page_index
     * @param number $page_size
     * @param string $condition
     * @param string $order
     */
    function getExpressCompanyList($page_index=1, $page_size=0, $condition='', $order = '');
    /**
     * 娣诲姞蹇�掑叕鍙�
     * @param unknown $shopId
     * @param unknown $company_name
     * @param unknown $express_no
     * @param unknown $is_enabled
     * @param unknown $image
     * @param unknown $phone
     * @param unknown $orders
     */
    function addExpressCompany($shopId, $company_name, $express_logo, $express_no, $is_enabled, $image, $phone, $orders);
    /**
     * 淇敼蹇�掑叕鍙�
     * @param unknown $co_id
     * @param unknown $shopId
     * @param unknown $company_name
     * @param unknown $express_no
     * @param unknown $is_enabled
     * @param unknown $image
     * @param unknown $phone
     * @param unknown $orders
     */
    function updateExpressCompany($co_id, $shopId, $company_name, $express_logo,$express_no, $is_enabled, $image, $phone, $orders);
    /**
     * 鑾峰彇蹇�掑叕鍙歌鎯�
     * @param unknown $co_id
     */
    function expressCompanyDetail($co_id);
    /**
     * 鍒犻櫎蹇�掑叕鍙�
     * @param unknown $co_id
     */
    function expressCompanyDelete($co_id);
    /**
     * 鏌ヨ蹇�掑叕鍙�
     * @param unknown $where
     * @param string $fields
     */
    function expressCompanyQuery($where, $fields= "*");
    /**
     * 娣诲姞鍏徃鐗╂祦鍦板潃
     * @param unknown $contact
     * @param unknown $mobile
     * @param unknown $phone
     * @param unknown $company_name
     * @param unknown $province
     * @param unknown $city
     * @param unknown $district
     * @param unknown $zipcode
     * @param unknown $address
     */
    function addShopExpressAddress($contact, $mobile, $phone, $company_name, $province, $city, $district, $zipcode, $address);
    /**
     * 淇敼鍏徃鐗╂祦鍦板潃
     * @param unknown $express_address_id
     * @param unknown $contact
     * @param unknown $mobile
     * @param unknown $phone
     * @param unknown $company_name
     * @param unknown $province
     * @param unknown $city
     * @param unknown $district
     * @param unknown $zipcode
     * @param unknown $address
     */
    function updateShopExpressAddress($express_address_id, $contact, $mobile, $phone, $company_name, $province, $city, $district, $zipcode, $address);
    /**
     * 淇敼鍏徃鍙戣揣鏍囪
     * @param unknown $express_address_id
     * @param unknown $is_consigner
     */
    function modifyShopExpressAddressConsigner($express_address_id, $is_consigner);
    /**
     * 淇敼鍏徃鏀惰揣鏍囪
     * @param unknown $express_address_id
     * @param unknown $receiver
     */
    function modifyShopExpressAddressReceiver($express_address_id, $is_receiver);
    /**
     * 鑾峰彇鍏徃鐗╂祦鍦板潃
     * @param number $page_index
     * @param number $page_size
     * @param string $condition
     * @param string $order
     */
    function getShopExpressAddressList($page_index=1, $page_size=0, $condition='', $order = '');
    /**
     * 鑾峰彇鍏徃榛樿鏀惰揣鍦板潃
     */
    function getDefaultShopExpressAddress($shop_id);
    /**
     * 鍒犻櫎鐗╂祦鍦板潃
     * @param unknown $express_address_id_array  ','闅斿紑
     */
    function deleteShopExpressAddress($express_address_id_array);
	/**
	 * 鏌ヨ鍗曟寫鐗╂祦鍦板潃璇︽儏
	 * @param unknown $express_address_id
	 */
	function selectShopExpressAddressInfo($express_address_id);
	/**
	 * 鏌ヨ搴楅摵鐨勬ā鏉挎墦鍗板簱
	 * @param unknown $shop_id
	 */
    function getExpressShippingItemsLibrary($shop_id);    
    /**
     * 得到物流模板
     * @param unknown $co_id
     */
    function getExpressShipping($co_id);
    /**
     * 得到物流模板的打印项
     * @param unknown $sid
     */
    function getExpressShippingItems($sid);
    /**
     * 得到物流模板的打印项信息
     * @param unknown $sid
     * @param unknown $itemsArray
     */
    function updateExpressShippingItem($sid, $itemsArray);
    /**
     * 更新物流模板的具体信息
     * @param unknown $template_id
     * @param unknown $width
     * @param unknown $height
     * @param unknown $imgUrl
     * @param unknown $itemsArray
     */
    function updateExpressShipping($template_id, $width, $height, $imgUrl, $itemsArray);
}