mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
[fix] 尝试修复公告的对外开放接口
This commit is contained in:
@@ -24,8 +24,8 @@ open class InnerSysNoticeController : BaseController() {
|
||||
* 根据ID获取公告信息
|
||||
*/
|
||||
@InnerAuth
|
||||
@GetMapping("/detail/{noticeId}")
|
||||
fun infoById(@PathVariable("noticeId") noticeId: Long): R<SysNotice> {
|
||||
@GetMapping("/detail/{noticeId:\\d+}")
|
||||
fun infoById(@PathVariable("noticeId") noticeId: Long): R<Any> {
|
||||
return R.ok(noticeService.selectNoticeById(noticeId))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user