18 lines
333 B
Go
18 lines
333 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
// overview 返回总览页聚合数据(本地快照,不发云端请求)。
|
|
func (h *ociConfigHandler) overview(c *gin.Context) {
|
|
out, err := h.svc.Overview(c.Request.Context())
|
|
if err != nil {
|
|
respondError(c, err)
|
|
return
|
|
}
|
|
c.JSON(http.StatusOK, out)
|
|
}
|