<?php
/**
 * @copyright Copyright(c) 2016 aircheng.com
 * @file menuSeller.php
 * @brief 商家系统菜单管理
 * @author nswe
 * @date 2016/3/8 9:30:34
 * @version 4.4
 */
class menuSeller
{
    //菜单的配制数据
	public static $menu = array
	(
		"统计结算模块" => array(
			"/seller/index" => "管理首页",
			"/seller/account" => "销售额统计",
			"/seller/order_goods_list" => "货款明细列表",
			"/seller/bill_list" => "已结算货款",
		),

		"商品模块" => array(
			"/seller/goods_list" => "商品列表",
			"/seller/category_list" => "店内分类",
			"/seller/goods_edit" => "添加普通商品",
            "/seller/goods_edit/type/code" => "添加服务类商品",
            "/seller/goods_edit/type/download" => "添加下载类商品",
            '/seller/goods_edit/type/preorder' => '添加时间类商品',
			"/seller/share_list" => "平台共享商品",
			"/seller/refer_list" => "商品咨询",
			"/seller/comment_list" => "商品评价",
			"/seller/spec_list" => "规格列表",
		),

		"订单模块" => array(
			"/seller/order_list" => "订单列表",
			"/seller/refundment_list" => "退款申请",
			"/seller/exchange_list" => "换货申请",
			"/seller/fix_list" => "维修申请",
		),

		"营销模块" => array(
			"/seller/regiment_list" => "团购",
			"/seller/assemble_list" => "拼团",
			"/seller/pro_rule_list" => "促销活动列表",
			"/seller/ticket_list"   => "优惠券列表",
		),

		"配置模块" => array(
		    "/seller/delivery" => "物流配送",
		    "/seller/takeself_list" => "自提点列表",
			"/seller/message_list" => "消息通知",
			"/seller/ship_info_list" => "发货地址",
			"/seller/seller_edit" => "资料修改",
		),
	);

    /**
     * @brief 根据权限初始化菜单
     * @param int $roleId 角色ID
     * @return array 菜单数组
     */
    public static function init($roleId = "")
    {
		//菜单创建事件触发
		plugin::trigger("onSellerMenuCreate");
		return self::$menu;
    }
}