'product', # 显示给用户看的名称 'lang' => '电商产品', 'order' => 100, 'menu' => false, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'list' => true, ), 'info_id' => array ( 'type' => 'int-11', 'name' => '合集', 'default' => '', 'desc' => '合集', 'match' => 'is_numeric', 'update' => 'hidden', 'value' => Dever::input('search_option_info_id') ), 'goods_id' => array ( 'type' => 'int-11', 'name' => '选择商品', 'default' => '', 'desc' => '选择商品', 'match' => 'option', 'update' => 'select', 'update_search' => 'goods/lib/manage.search', ), 'name' => array ( 'type' => 'varchar-180', 'name' => '商品标题', 'default' => '', 'desc' => '商品标题', 'match' => 'is_string', 'update' => 'text', 'search' => 'fulltext', 'list' => true, ), 'pic_cover' => array ( 'type' => 'varchar-150', 'name' => '商品图片-图片尺寸随意或等比尺寸,建议尺寸660*660px,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式', 'default' => '', 'desc' => '商品图片', 'match' => 'is_string', 'update' => 'image', 'key' => '1', 'place' => '660*660', ), 'price' => array ( 'type' => 'varchar-50', 'name' => '售价-只是用来展示,可以带上单位', 'default' => '', 'desc' => '售价', 'match' => 'is_string', 'update' => 'text', 'list' => true, ), 'reorder' => array ( 'type' => 'int-11', 'name' => '排序(数值越大越靠前)', 'default' => '1', 'desc' => '请输入排序', 'match' => 'option', 'update' => 'text', 'search' => 'order', 'list' => true, 'order' => 'desc', 'edit' => true, ), 'state' => array ( 'type' => 'tinyint-1', 'name' => '状态', 'default' => '1', 'desc' => '请选择状态', 'match' => 'is_numeric', ), 'cdate' => array ( 'type' => 'int-11', 'name' => '录入时间', 'match' => array('is_numeric', time()), 'desc' => '', # 只有insert时才生效 'insert' => true, ), ), # 管理功能 'manage' => array ( ), # request 请求接口定义 'request' => array ( 'getAll' => array ( # 匹配的正则或函数 选填项 'option' => array ( 'info_id' => 'yes', 'state' => 1, ), 'type' => 'all', 'order' => array('reorder' => 'desc', 'id' => 'desc'), 'page' => array(10, 'list'), 'col' => '*', ), ), );