Files
sundynix-micro-be/app/plant/api/internal/handler/complete/getbadgeconfigtreehandler.go
T
2026-05-23 13:55:05 +08:00

21 lines
524 B
Go

package complete
import (
"net/http"
"sundynix-micro-go/app/plant/api/internal/logic/complete"
"sundynix-micro-go/app/plant/api/internal/svc"
"sundynix-micro-go/common/response"
)
func GetBadgeConfigTreeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := complete.NewGetBadgeConfigTreeLogic(r.Context(), svcCtx)
resp, err := l.GetBadgeConfigTree()
if err != nil {
response.Fail(w, err.Error())
} else {
response.OkWithData(w, resp)
}
}
}