*/ class ApiModule extends BaseValidate { protected $rule = [ 'id|接口模块' => 'require|number', 'item_name|模块名' => 'require', 'describe|描述' => 'require', ]; protected $scene = [ 'add' => ['item_name', 'describe'], 'edit' => ['id', 'item_name', 'describe'], ]; }