master
cody 3 weeks ago
parent 42ce1f30f6
commit e8d25e6eaf

@ -30,6 +30,27 @@ class CompanyController extends BaseController
parent::__construct(new Company());
}
/**
* @OA\Get(
* path="/api/admin/company/config",
* tags={"公司管理"},
* summary="参数",
* description="",
* @OA\Parameter(name="token", in="query", @OA\Schema(type="string"), required=true, description="token"),
* @OA\Response(
* response="200",
* description="暂无"
* )
* )
*/
public function config()
{
// 企业标签
$companiesTags = Company::where('company_tag','!=','')->pluck('company_tag')->collapse();
return $this->success(compact('companiesTags'));
}
/**
* @OA\Get(

@ -231,6 +231,7 @@ Route::group(["namespace" => "Admin", "prefix" => "admin"], function () {
Route::post('email-record/excel-show', [\App\Http\Controllers\Admin\EmailRecordController::class, "excelShow"]);
// 企业管理
Route::get('company/config', [\App\Http\Controllers\Admin\CompanyController::class, "config"]);
Route::get('company/index', [\App\Http\Controllers\Admin\CompanyController::class, "index"]);
Route::get('company/show', [\App\Http\Controllers\Admin\CompanyController::class, "show"]);
Route::post('company/save', [\App\Http\Controllers\Admin\CompanyController::class, "save"]);

Loading…
Cancel
Save