1.优化拉取公告列表接口/api/notice/noticeList
2.移除强弹窗确认已读接口/api/notice/noticeConfirm
This commit is contained in:
@@ -7,7 +7,7 @@ use support\Response;
|
||||
use Webman\Http\Request as WebmanRequest;
|
||||
|
||||
/**
|
||||
* 用户公告阅读记录
|
||||
* 用户公告阅读记录(只读,由客户端确认已读写入)
|
||||
*/
|
||||
class UserNoticeRead extends Backend
|
||||
{
|
||||
@@ -33,6 +33,42 @@ class UserNoticeRead extends Backend
|
||||
return null;
|
||||
}
|
||||
|
||||
public function add(WebmanRequest $request): Response
|
||||
{
|
||||
$response = $this->initializeBackend($request);
|
||||
if ($response !== null) {
|
||||
return $response;
|
||||
}
|
||||
return $this->error(__('User notice read records are client-generated; manual creation is not allowed'));
|
||||
}
|
||||
|
||||
public function edit(WebmanRequest $request): Response
|
||||
{
|
||||
$response = $this->initializeBackend($request);
|
||||
if ($response !== null) {
|
||||
return $response;
|
||||
}
|
||||
return $this->error(__('User notice read record cannot be edited'));
|
||||
}
|
||||
|
||||
public function del(WebmanRequest $request): Response
|
||||
{
|
||||
$response = $this->initializeBackend($request);
|
||||
if ($response !== null) {
|
||||
return $response;
|
||||
}
|
||||
return $this->error(__('User notice read record cannot be deleted'));
|
||||
}
|
||||
|
||||
public function sortable(WebmanRequest $request): Response
|
||||
{
|
||||
$response = $this->initializeBackend($request);
|
||||
if ($response !== null) {
|
||||
return $response;
|
||||
}
|
||||
return $this->error(__('Sorting is not supported'));
|
||||
}
|
||||
|
||||
protected function _index(): Response
|
||||
{
|
||||
if ($this->request && $this->request->get('select')) {
|
||||
|
||||
Reference in New Issue
Block a user