detail.go 596 B

1234567891011121314151617181920212223
  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. isLogin := utility.JySessionLoginEd(r)
  10. seoId := r.Get("seoId").String()
  11. if seoId == "" {
  12. utility.HtmlRender.NotFound(r)
  13. return
  14. }
  15. detail := service.JyBxSeoDetailRoot.GetDetail(seoId, isLogin)
  16. utility.HtmlRender.Render(r, utility.GetCommonRenderPatch(r.Request.UserAgent(), "detail.html"),
  17. g.Map{
  18. "detail": detail,
  19. //"tdk": service.JySeoTdk.GetAreaIndexTdk(r.Context(), node.Name),
  20. })
  21. }