|
@@ -0,0 +1,34 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+use app\model\AdminMenuModel;
|
|
|
+use app\model\CommonModel;
|
|
|
+use app\model\GroupModel;
|
|
|
+use app\model\RoleModel;
|
|
|
+use app\model\ThemeModel;
|
|
|
+
|
|
|
+return [
|
|
|
+ //【通用】
|
|
|
+ 'common' => [
|
|
|
+ 'keyword|关键字' => 'chsDash|max:100',
|
|
|
+ 'page|页码' => 'require|number|gt:0',
|
|
|
+ 'size|每页数量' => 'require|number|elt:100',
|
|
|
+ 'status|状态' => 'number|in:' . CommonModel::$status_normal . ',' . CommonModel::$status_disable,
|
|
|
+ 'company_id|企业' => 'number|gt:0',
|
|
|
+ 'card_id|卡类型' => 'number|gt:0',
|
|
|
+ ],
|
|
|
+
|
|
|
+ //【启禁用】
|
|
|
+ 'status' => [
|
|
|
+ 'id' => 'require|number|gt:0',
|
|
|
+ 'status|状态' => 'require|number|in:' . CommonModel::$status_normal . ',' . CommonModel::$status_disable,
|
|
|
+ ],
|
|
|
+
|
|
|
+ //【登录】
|
|
|
+ 'login' => [
|
|
|
+ 'username|卡号' => 'require|max:255',
|
|
|
+ 'password|密码' => 'require|max:255',
|
|
|
+ ],
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+];
|