功能更新

This commit is contained in:
李琦
2026-08-15 17:04:47 +08:00
parent d9475ac9da
commit b71b99a60d
49 changed files with 4976 additions and 438 deletions

View File

@@ -0,0 +1,25 @@
package controller
import (
"net/http"
"github.com/gin-gonic/gin"
"nl-pms-api/internal/commonservice"
"nl-pms-api/internal/service"
)
// NoticeController 团队通知。
type NoticeController struct {
Svc *service.NoticeService
}
func (h *NoticeController) List(c *gin.Context) {
after := commonservice.ParseID(c.Query("after"))
rows, err := h.Svc.ListNotices(commonservice.UserID(c), after)
if err != nil {
writeErr(c, err)
return
}
c.JSON(http.StatusOK, gin.H{"items": rows})
}