| 12345678910111213141516171819202122232425 |
- // Code scaffolded by goctl. Safe to edit.
- // goctl 1.10.2
- package custompage
- import (
- "net/http"
- "github.com/zeromicro/go-zero/rest/httpx"
- "udeServer/internal/logic/custompage"
- "udeServer/internal/svc"
- )
- // 复位自定义页面信息
- func ClearCacheHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
- return func(w http.ResponseWriter, r *http.Request) {
- l := custompage.NewClearCacheLogic(r.Context(), svcCtx)
- resp, err := l.ClearCache()
- if err != nil {
- httpx.ErrorCtx(r.Context(), w, err)
- } else {
- httpx.OkJsonCtx(r.Context(), w, resp)
- }
- }
- }
|