|
@@ -94,4 +94,14 @@ class JobController extends ApiBaseController
|
|
|
return response()->json($list);
|
|
|
}
|
|
|
|
|
|
+ public function getCategory(Request $request)
|
|
|
+ {
|
|
|
+ $type = $request->input('type', '');
|
|
|
+ $list = [];
|
|
|
+ if (!empty($type)) {
|
|
|
+ Category::where('alias', $type)->select(['id','name'])->get()->toArray();
|
|
|
+ }
|
|
|
+
|
|
|
+ return response()->json($list);
|
|
|
+ }
|
|
|
}
|