content.go 680 B

1234567891011121314151617181920212223242526272829303132333435
  1. package fetdata
  2. import (
  3. "html/template"
  4. "golang-fave/utils"
  5. )
  6. func (this *FERData) Name() string {
  7. if this.Wrap.CurrModule == "index" {
  8. return this.DataRow.(*utils.MySql_page).A_name
  9. }
  10. return ""
  11. }
  12. func (this *FERData) Alias() string {
  13. if this.Wrap.CurrModule == "index" {
  14. return this.DataRow.(*utils.MySql_page).A_alias
  15. }
  16. return ""
  17. }
  18. func (this *FERData) Content() template.HTML {
  19. if this.Wrap.CurrModule == "index" {
  20. return template.HTML(this.DataRow.(*utils.MySql_page).A_content)
  21. }
  22. return template.HTML("")
  23. }
  24. func (this *FERData) DateTime() int {
  25. if this.Wrap.CurrModule == "index" {
  26. return this.DataRow.(*utils.MySql_page).A_datetime
  27. }
  28. return 0
  29. }