|
@@ -29,11 +29,7 @@ class BehaviorController extends Controller
|
|
|
public function index(Request $request)
|
|
|
{
|
|
|
$behavior_list = $this->behaviorRepository->index($request->all());
|
|
|
- if ($behavior_list){
|
|
|
- return $behavior_list;
|
|
|
- }else{
|
|
|
- return '没有找到对应行为列表';
|
|
|
- }
|
|
|
+
|
|
|
$fractal = new Manager();
|
|
|
$resource = new Collection($behavior_list, new BehaviorTransformer());
|
|
|
$resource->setPaginator(new IlluminatePaginatorAdapter($behavior_list));
|
|
@@ -46,6 +42,28 @@ class BehaviorController extends Controller
|
|
|
'columns' => [
|
|
|
'_id',
|
|
|
'behavior_name',
|
|
|
+ 'id',
|
|
|
+ 'virus_behavior_id',
|
|
|
+ 'name',
|
|
|
+ 'behavior_level',
|
|
|
+ 'behavior_cycle_type',
|
|
|
+ 'behavior_action_id',
|
|
|
+ 'behavior_cycle',
|
|
|
+ 'behavior_binding_users',
|
|
|
+ 'physical_strength',
|
|
|
+ 'rainbow_beans',
|
|
|
+ 'remarks',
|
|
|
+ 'is_open',
|
|
|
+ 'behavioral_cycle_start_time',
|
|
|
+ 'behavioral_cycle_end_time',
|
|
|
+ 'allotted_quantity_rule',
|
|
|
+ 'behavior_identification',
|
|
|
+ 'trigger_times',
|
|
|
+ 'effective_trigger',
|
|
|
+ 'relative_series',
|
|
|
+ 'absolute_progression',
|
|
|
+ 'created_at',
|
|
|
+ 'updated_at'
|
|
|
]
|
|
|
];
|
|
|
return $data;
|