ci

package
v0.0.0-...-993f52c Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadCiAuthors

func ReadCiAuthors() []poetry.Author

ReadCiAuthors 用于获取宋词词人的信息

Types

type Ci

type Ci struct {
	gorm.Model
	Author     string `gorm:"type:varchar(255)"`
	Paragraphs string `gorm:"type:text"`
	Rhythmic   string `gorm:"type:varchar(255)"`
}

Ci 是宋词的数据库结构

func ReadCi

func ReadCi() []Ci

ReadCi 是用来读取宋词数据并转换成数据库模型

type JSONCi

type JSONCi struct {
	Author     string   `json:"author"`
	Paragraphs []string `json:"paragraphs"`
	Rhythmic   string   `json:"rhythmic"`
}

JSONCi 是宋词的 JSON 的结构

Jump to

Keyboard shortcuts

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