api

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "zoo"

Variables

This section is empty.

Functions

func Application

func Application(app *iris.Application)

Types

type Banner struct {
	Title    string
	SubTitle string
	Image    string
	Links    []Link
}

type CompanyAddress

type CompanyAddress struct {
	Addr  string
	Email string
	Call  string
}

type CopyrightTag

type CopyrightTag struct {
	Description string
	Link
}

CopyrightTag 版权

type Footer struct {
	CompanyAddress CompanyAddress
	Links          []FooterLinks
}

Footer 底部区域

type FooterLinks struct {
	Links Links
	Name  string
}
func GetFooterLinks(webSite int) (footer []FooterLinks, err error)
type Header struct {
	Menu Menu
}

type IndexPage

type IndexPage struct {
	Layout
}

type Layout

type Layout struct {
	Footer Footer
	Header Header
	Metas  Metas
	Banner Banner
}

Layout 页面结构

type Link struct {
	Url   string
	Name  string
	Media string
	Index int
	Outer bool // 外链
}
func GetBannerLinks(webSite int) (links []Link, err error)
type Links []Link

func (Links) Len

func (s Links) Len() int

func (Links) Less

func (s Links) Less(i, j int) bool

func (Links) Swap

func (s Links) Swap(i, j int)
type Logo struct {
	Link
}
type Menu struct {
	Items []Link
	Login Link
}

Menu 菜单

type MenuItem struct {
	Link
}

MenuItem 菜单条目

type Metas

type Metas struct {
	Keywords    string
	Description string
	Title       string
	Author      string
	Favicon     string
}

type PolicyTag

type PolicyTag struct {
	TermOfUse     Link
	PrivatePolicy Link
}

PolicyTag 免责

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL