|
|
|
@ -3,6 +3,7 @@ |
|
|
|
namespace App\Http\Controllers\Admin; |
|
|
|
|
|
|
|
use App\Exports\AdminNoticeExport; |
|
|
|
use App\Models\AdminConfigs; |
|
|
|
use App\Models\AdminNotice; |
|
|
|
use App\Services\AdminNoticeService; |
|
|
|
use App\Services\ApiResponseService; |
|
|
|
@ -114,6 +115,25 @@ class NoticeController extends BaseController |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public function create(): JsonResponse |
|
|
|
{ |
|
|
|
try { |
|
|
|
$config = AdminConfigs::query()->where( |
|
|
|
'name', |
|
|
|
'information_setting' |
|
|
|
)->first(); |
|
|
|
$data = [ |
|
|
|
'setting_list' => $config['content'] |
|
|
|
]; |
|
|
|
return $this->responseService->success($data); |
|
|
|
} catch (Exception $e) { |
|
|
|
$m_prefix = __('exception.exception_handler.resource'); |
|
|
|
return $this->responseService->systemError( |
|
|
|
$m_prefix . ':' . $e->getMessage() |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public function setting(Request $request): JsonResponse |
|
|
|
{ |
|
|
|
try { |
|
|
|
|