'不发送', 2 => '发送', ); return array ( # 表名 'name' => 'type', # 显示给用户看的名称 'lang' => '消息类型', 'order' => 20, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'search' => 'fulltext', 'order' => 'desc', 'list' => true, ), 'name' => array ( 'type' => 'varchar-30', 'name' => '类型名称-类型id值为10以下则为系统消息', 'default' => '', 'desc' => '请填写类型名称', 'match' => 'is_string', 'update' => 'text', 'list' => true, ), 'type' => array ( 'type' => 'tinyint-1', 'name' => '同时推送-暂未实现,实现后将可以同步发送微信、短信、客户端消息等', 'default' => '1', 'desc' => '同时推送', 'match' => 'is_numeric', 'option' => $type, 'update' => 'radio', //'search' => 'select', 'list' => 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, //'list' => 'date("Y-m-d H:i:s", {cdate})', ), ), 'manage' => array ( ), 'default' => array ( 'col' => 'id,name,type,state,cdate', 'value' => array ( '1, "系统消息",1, 1,' . DEVER_TIME, '2, "系统通知",1, 1,' . DEVER_TIME, '11,"用户通知",1, 1,' . DEVER_TIME, ), ), # request 请求接口定义 'request' => array ( ), );