Documentation ¶
Index ¶
- func CodeHandler(c echo.Context) error
- func DownloadHandler(c echo.Context) error
- func ErrorHandler(c echo.Context) error
- func IndexHandler(c echo.Context) error
- func UploadHandler(c echo.Context) error
- func WisdomHandler(c echo.Context) (err error)
- type IndexData
- type PageData
- type User
- type Wisdom
- type WisdomList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadHandler ¶
func DownloadHandler(c echo.Context) error
func ErrorHandler ¶
func ErrorHandler(c echo.Context) error
func UploadHandler ¶
func UploadHandler(c echo.Context) error
Types ¶
type Wisdom ¶
type Wisdom struct { Sentence string `json:"sentence,omitempty"` // 句子 WType int `json:"w_type,omitempty"` // 类型 Desc string `json:"desc,omitempty"` // 描述 Img string `json:"img,omitempty"` // 图片 }
Wisdom 名言警句
type WisdomList ¶
type WisdomList struct { Preview []string `json:"preview,omitempty"` Show []string `json:"show,omitempty"` }
WisdomList 配置列表
func ParseJsonWisdom ¶
func ParseJsonWisdom(filename string) (*WisdomList, error)
ParseJsonWisdom 从json解析wisdom
Click to show internal directories.
Click to hide internal directories.