detail.go 670 B

123456789101112131415161718192021222324
  1. package controller
  2. import (
  3. "github.com/gogf/gf/v2/frame/g"
  4. "github.com/gogf/gf/v2/net/ghttp"
  5. "jybxseo/internal/service"
  6. "jybxseo/utility"
  7. )
  8. func BiddingDetail(r *ghttp.Request) {
  9. //classNode := service.JyBxSeoClassRoot.GetNodeByCode(code)
  10. isLogin := utility.JySessionLoginEd(r)
  11. seoId := r.Get("seoId").String()
  12. if seoId == "" {
  13. utility.HtmlRender.NotFound(r)
  14. return
  15. }
  16. detail := service.JyBxSeoDetailRoot.GetDetail(r.Context(), seoId, isLogin)
  17. utility.HtmlRender.Render(r, utility.GetCommonRenderPatch(r.Request.UserAgent(), "detail.html"),
  18. g.Map{
  19. "detail": detail,
  20. //"tdk": service.JySeoTdk.GetAreaIndexTdk(r.Context(), node.Name),
  21. })
  22. }