[fix] 尝试修复公告的对外开放接口

This commit is contained in:
hsdllcw
2025-04-14 10:31:00 +08:00
parent 4d79135b72
commit 1eb48a1557
3 changed files with 7 additions and 8 deletions

View File

@@ -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))
}
}