ormapper

package
v0.0.0-...-3da5846 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BracupLines = map[string][]string{
	"C": []string{"AAA", "AA", "A", "B", "C"},
	"D": []string{"D"},
	"E": []string{"E"},
	"F": []string{"F"},
	"G": []string{"G"},
	"H": []string{"H"},
	"I": []string{"I", "J", "K", "L", "M", "N", "O", "P"},
}
View Source
var PrefixLines = map[string][]string{
	"あ": []string{"a", "i", "u", "e", "o"},
	"か": []string{"ka", "ki", "ku", "ke", "ko", "ga", "gi", "gu", "ge", "go"},
	"さ": []string{"sa", "si", "su", "se", "so", "za", "zi", "zu", "ze", "zo"},
	"た": []string{"ta", "ti", "tu", "te", "to", "da", "di", "du", "de", "do"},
	"な": []string{"na", "ni", "nu", "ne", "no"},
	"は": []string{"ha", "hi", "hu", "he", "ho", "ba", "bi", "bu", "be", "bo", "pa", "pi", "pu", "pe", "po"},
	"ま": []string{"ma", "mi", "mu", "me", "mo"},
	"や": []string{"ya", "yu", "yo"},
	"ら": []string{"ra", "ri", "ru", "re", "ro"},
	"わ": []string{"wa"},
}

Functions

func EntryRankings

func EntryRankings() *gorm.DB

func PictureAnimations

func PictureAnimations() *gorm.DB

Choiced mediatyped animation list

func PictureAnimationsCount

func PictureAnimationsCount() *gorm.DB

func PictureEntries

func PictureEntries() *gorm.DB

func PictureRankings

func PictureRankings() *gorm.DB

func PictureShowSummaries

func PictureShowSummaries() *gorm.DB

func PictureSummaries

func PictureSummaries() *gorm.DB

func VideoEntries

func VideoEntries() *gorm.DB

func VideoGoddess

func VideoGoddess() *gorm.DB

Has video record list

func VideoRankings

func VideoRankings() *gorm.DB

func VideoShowSummaries

func VideoShowSummaries() *gorm.DB

func VideoSummaries

func VideoSummaries() *gorm.DB

Types

type Anime

type Anime struct {
	Id int64

	Name  string
	Alias string

	Kana   string
	Romaji string
	Gyou   string

	Url         string
	Author      string
	Works       string
	ReleaseDate time.Time

	Outline string

	Created time.Time
	Updated time.Time

	Icon   *Image
	IconId sql.NullInt64

	Characters []*Character

	Pictures      []*Picture
	PicturesCount int
}

type Blog

type Blog struct {
	Id int64

	Rss         string
	Url         string
	Name        string
	Mediatype   string
	Adsensetype string

	VerifyParts     int
	VerifyRss       int
	VerifyLink      int
	VerifyBookRss   int
	VerifyBookLink  int
	VerifyVideoRss  int
	VerifyVideoLink int

	IsBan     string
	IsPenalty bool

	LastModified time.Time

	Created time.Time
	Updated time.Time

	User   *User
	UserId sql.NullInt64

	Icon   *Image
	IconId sql.NullInt64

	Scores  []*Score
	Entries []*Entry
}

func (*Blog) PictureShowLoader

func (m *Blog) PictureShowLoader()

func (*Blog) VideoShowLoader

func (m *Blog) VideoShowLoader()

type Character

type Character struct {
	Id int64

	Name string

	Kana   string
	Romaji string
	Gyou   string

	Birthday time.Time

	Blood string

	Height int
	Weight int

	Bust   int
	Waste  int
	Hip    int
	Bracup string

	Outline string

	Created time.Time
	Updated time.Time

	Icon   *Image
	IconId sql.NullInt64

	Product string
	Anime   *Anime
	AnimeId sql.NullInt64

	PicturesCount int
	Pictures      []*Picture
}

func (Character) TableName

func (m Character) TableName() string

type Diva

type Diva struct {
	Id int64

	Name   string
	Kana   string
	Romaji string
	Gyou   string

	Birthday time.Time

	Blood string

	Height int
	Weight int

	Bust   int
	Waste  int
	Hip    int
	Bracup string

	Outline string

	Created time.Time
	Updated time.Time

	Icon   *Image
	IconId sql.NullInt64

	VideosCount int
	Videos      []*Video
}

func (Diva) TableName

func (m Diva) TableName() string

type Entry

type Entry struct {
	Id          int64
	Url         string
	Title       string
	Content     string
	SeoTitle    string
	SeoContent  string
	Encoded     string
	Creator     string
	Publisher   string
	PublishedAt time.Time

	IsBan     string
	IsPenalty bool
	PageView  int64

	Q string

	Created time.Time
	Updated time.Time

	Blog   *Blog
	BlogId sql.NullInt64

	Video   *Video
	Picture *Picture
	Summary *Summary

	Tags   []*Tag   `gorm:"many2many:entry_tag;"`
	Images []*Image `gorm:"many2many:entry_image;"`

	Scores []*Score
}

func (*Entry) CommaTags

func (m *Entry) CommaTags() string

func (*Entry) GetByBlog

func (m *Entry) GetByBlog() (*gorm.DB, error)

func (*Entry) HasBan

func (m *Entry) HasBan() bool

func (*Entry) IsLiving

func (m *Entry) IsLiving() bool

Is liveing entry?

func (*Entry) NewsLoader

func (m *Entry) NewsLoader()

func (*Entry) NextByBlog

func (m *Entry) NextByBlog() (*Entry, error)

func (*Entry) PictureShowLoader

func (m *Entry) PictureShowLoader()

func (*Entry) PreviousByBlog

func (m *Entry) PreviousByBlog() (*Entry, error)

func (*Entry) RelLoader

func (m *Entry) RelLoader()

func (*Entry) VideoShowLoader

func (m *Entry) VideoShowLoader()

type EntryRanking

type EntryRanking struct {
	RankingBase

	Entry   *Entry
	EntryId sql.NullInt64
}

func (*EntryRanking) PreviousRanking

func (m *EntryRanking) PreviousRanking() *EntryRanking

func (*EntryRanking) RankingsLoader

func (m *EntryRanking) RankingsLoader()

type Image

type Image struct {
	Id int64

	Name string
	Src  string

	Ext    string
	Mime   string
	Width  int
	Height int

	Created time.Time
	Updated time.Time

	Picture   *Picture
	PictureId sql.NullInt64 // `gorm:"column:picture_id"`
}

type Picture

type Picture struct {
	Id         int64
	PageView   int64
	ImageCount int

	Created time.Time
	Updated time.Time

	Entry   *Entry
	EntryId sql.NullInt64

	Anime   *Anime
	AnimeId sql.NullInt64

	Images     []*Image
	Characters []*Character `gorm:"many2many:picture_character;"`
}

func (*Picture) NewsLoader

func (m *Picture) NewsLoader()

func (*Picture) RankingsLoader

func (m *Picture) RankingsLoader()

func (*Picture) RelLoader

func (m *Picture) RelLoader()

func (*Picture) ShowLoader

func (m *Picture) ShowLoader()

func (*Picture) TodayRanking

func (m *Picture) TodayRanking(name string) *PictureRanking

type PictureRanking

type PictureRanking struct {
	RankingBase

	Picture   *Picture
	PictureId sql.NullInt64
}

func (*PictureRanking) PreviousRanking

func (m *PictureRanking) PreviousRanking() *PictureRanking

func (*PictureRanking) RankingsLoader

func (m *PictureRanking) RankingsLoader()

type RankingBase

type RankingBase struct {
	Id int64

	BeginName string // dayly, weekly, monthly, yearly
	BeginTime time.Time

	Rank     int64 // rank order number
	PageView int64 // 1,2,3,4

	Created time.Time
	Updated time.Time
}

type Score

type Score struct {
	Id    int64
	Name  string
	Count int64

	Created time.Time
	Updated time.Time

	Blog   *Blog
	BlogId sql.NullInt64

	Entry   *Entry
	EntryId sql.NullInt64

	Summary   *Summary
	SummaryId sql.NullInt64
}

type Site

type Site struct {
	Id int64

	Name   string
	Domain string

	Outline string

	Created time.Time
	Updated time.Time

	Icon   *Image
	IconId sql.NullInt64

	Videos []*Video
}

type Summary

type Summary struct {
	Id int64

	Sort int64

	Created time.Time
	Updated time.Time

	Entry   *Entry
	EntryId sql.NullInt64

	Scores []*Score
}

func (*Summary) NewsLoader

func (m *Summary) NewsLoader()

func (*Summary) RelLoader

func (m *Summary) RelLoader()

func (*Summary) ShowLoader

func (m *Summary) ShowLoader()

type Tag

type Tag struct {
	Id int64

	Name   string
	Kana   string
	Romaji string

	Created time.Time
	Updated time.Time

	Image   *Image
	ImageId sql.NullInt64

	Entries []*Entry
}

func (Tag) TableName

func (m Tag) TableName() string

type User

type User struct {
	Id int64

	Email    string
	Password string

	Lastlogintime time.Time

	Created time.Time
	Updated time.Time

	Blogs []*Blog
}

type Video

type Video struct {
	Id int64

	PageView int64

	Url      string
	Code     string
	Duration int

	Urls  []*VideoUrl
	Codes []*VideoCode

	Created time.Time
	Updated time.Time

	Entry   *Entry
	EntryId sql.NullInt64

	Site   *Site
	SiteId sql.NullInt64

	Divas []*Diva `gorm:"many2many:video_diva;"`
}

func (*Video) NewsLoader

func (m *Video) NewsLoader()

func (*Video) RankingsLoader

func (m *Video) RankingsLoader()

func (*Video) ShowLoader

func (m *Video) ShowLoader()

func (*Video) TodayRanking

func (m *Video) TodayRanking(name string) *VideoRanking

type VideoCode

type VideoCode struct {
	Id int64

	Name string

	Created time.Time
	Updated time.Time

	Video   *Video
	VideoId sql.NullInt64
}

type VideoRanking

type VideoRanking struct {
	RankingBase

	Video   *Video
	VideoId sql.NullInt64
}

func (*VideoRanking) PreviousRanking

func (m *VideoRanking) PreviousRanking() *VideoRanking

func (*VideoRanking) RankingsLoader

func (m *VideoRanking) RankingsLoader()

type VideoUrl

type VideoUrl struct {
	Id int64

	Name string

	Created time.Time
	Updated time.Time

	Video   *Video
	VideoId sql.NullInt64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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