🎨 分类新增url字段
This commit is contained in:
@@ -10,7 +10,6 @@ type NoticeRouter struct{}
|
||||
// InitNoticeRouter 初始化 通知 路由信息
|
||||
func (s *NoticeRouter) InitNoticeRouter(Router *gin.RouterGroup, PublicRouter *gin.RouterGroup) {
|
||||
notRouter := Router.Group("not").Use(middleware.OperationRecord())
|
||||
notRouterWithoutRecord := Router.Group("not")
|
||||
notRouterWithoutAuth := PublicRouter.Group("not")
|
||||
{
|
||||
notRouter.POST("createNotice", notApi.CreateNotice) // 新建通知
|
||||
@@ -19,10 +18,8 @@ func (s *NoticeRouter) InitNoticeRouter(Router *gin.RouterGroup, PublicRouter *g
|
||||
notRouter.PUT("updateNotice", notApi.UpdateNotice) // 更新通知
|
||||
}
|
||||
{
|
||||
notRouterWithoutRecord.GET("findNotice", notApi.FindNotice) // 根据ID获取通知
|
||||
notRouterWithoutRecord.GET("getNoticeList", notApi.GetNoticeList) // 获取通知列表
|
||||
}
|
||||
{
|
||||
notRouterWithoutAuth.GET("findNotice", notApi.FindNotice) // 根据ID获取通知
|
||||
notRouterWithoutAuth.GET("getNoticeList", notApi.GetNoticeList) // 获取通知列表
|
||||
notRouterWithoutAuth.GET("getNoticePublic", notApi.GetNoticePublic) // 通知开放接口
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user