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:
@@ -16,7 +16,7 @@ open class RemoteSysNoticeFallbackFactory : FallbackFactory<RemoteSysNoticeServi
|
||||
override fun create(throwable: Throwable): RemoteSysNoticeService {
|
||||
log.error("公告服务调用失败:{}", throwable.message)
|
||||
return object : RemoteSysNoticeService {
|
||||
override fun getById_Inner(noticeId: Long?, source: String?): R<Any> {
|
||||
override fun getById_Inner(noticeId: Long, source: String): R<Any> {
|
||||
return R.fail("获取公告失败")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,10 +12,9 @@ interface InnerRemoteSysNoticeService {
|
||||
* @param noticeId 公告ID
|
||||
* @return 公告信息
|
||||
*/
|
||||
@GetMapping("/inner/notice/detail/{noticeId}")
|
||||
@GetMapping("/inner/notice/detail/{noticeId:\\d+}")
|
||||
fun getById_Inner(
|
||||
@PathVariable("noticeId") noticeId: Long?, @RequestHeader(
|
||||
SecurityConstants.FROM_SOURCE
|
||||
) source: String?
|
||||
): R<Any>?
|
||||
@PathVariable("noticeId") noticeId: Long,
|
||||
@RequestHeader(SecurityConstants.FROM_SOURCE) source: String
|
||||
): R<Any>
|
||||
}
|
||||
Reference in New Issue
Block a user