You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

noticetenanthandler.go 547 B

123456789101112131415161718192021
  1. package cloud
  2. import (
  3. "net/http"
  4. "github.com/zeromicro/go-zero/rest/httpx"
  5. "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud"
  6. "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc"
  7. )
  8. func NoticeTenantHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
  9. return func(w http.ResponseWriter, r *http.Request) {
  10. l := cloud.NewNoticeTenantLogic(r.Context(), svcCtx)
  11. resp, err := l.NoticeTenant()
  12. if err != nil {
  13. httpx.ErrorCtx(r.Context(), w, err)
  14. } else {
  15. httpx.OkJsonCtx(r.Context(), w, resp)
  16. }
  17. }
  18. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.