|
@@ -0,0 +1,178 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+$status = Dever::config('base')->status;
|
|
|
+
|
|
|
+return array
|
|
|
+(
|
|
|
+ # 表名
|
|
|
+ 'name' => 'audio',
|
|
|
+ # 显示给用户看的名称
|
|
|
+ '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')
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'content_id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '合集内容id',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '合集内容id',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ 'update' => 'hidden',
|
|
|
+ 'value' => Dever::input('search_option_content_id')
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'name' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-80',
|
|
|
+ 'name' => '标题-不填不显示',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '标题',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'list' => true,
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ //增加预览
|
|
|
+ 'preview' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'desc' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-500',
|
|
|
+ 'name' => '摘要-不填不显示',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '摘要',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'textarea',
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+ 'pic' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-150',
|
|
|
+ 'name' => '封面图-封面图图片尺寸750*422px或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '封面图',
|
|
|
+ 'match' => 'option',
|
|
|
+ 'update' => 'image',
|
|
|
+ 'key' => '1',
|
|
|
+ 'place' => '380',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'audio' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-800',
|
|
|
+ 'name' => '上传音频-格式mp3,上传大小不能超过100M',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '上传音频',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'upload',
|
|
|
+ 'key' => '3',
|
|
|
+ 'place' => '150',
|
|
|
+ 'upload' => 'qiniu',
|
|
|
+ 'large' => true,
|
|
|
+ //不覆盖原文件,生成新文件
|
|
|
+ 'cover' => 2,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'audio_info' => array
|
|
|
+ (
|
|
|
+ 'type' => 'text-255',
|
|
|
+ 'name' => '音频信息',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '音频信息',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'udate' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '更新时间',
|
|
|
+ 'match' => array('is_numeric', time()),
|
|
|
+ 'desc' => '',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'status' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '发布状态',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '发布状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ //'update' => 'select',
|
|
|
+ 'option' => $status,
|
|
|
+ 'search' => 'select',
|
|
|
+ 'list' => true,
|
|
|
+ 'edit' => 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
|
|
|
+ (
|
|
|
+
|
|
|
+ ),
|
|
|
+);
|