Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OrderState = transition.New(&Order{}) ItemState = transition.New(&OrderItem{}) )
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Chapter ¶
type Chapter struct {
gorm.Model
Name string
MangaID uint
Manga Manga
Storage ChapterStorage `sql:"type:varchar(4096)"`
}
func (Chapter) DefaultName ¶
func (Chapter) DefaultPath ¶
func (Chapter) MainImageUrl ¶
type ChapterStorage ¶
type ChapterStorage struct {
media_library.FileSystem
}
func (ChapterStorage) GetURLTemplate ¶
func (ChapterStorage) GetURLTemplate(option *media_library.Option) (path string)
type Chart ¶
func GetChartData ¶
date format 2015-01-23
type FeeSetting ¶
type Manga ¶
type Manga struct {
gorm.Model
l10n.Locale
sorting.SortingDESC
Name string
NameWithSlug slug.Slug `l10n:"sync"`
CategoryID uint `l10n:"sync"`
Category Category `l10n:"sync"`
Authors []Author `l10n:"sync" gorm:"many2many:manga_authors"`
Characters []Character `l10n:"sync" gorm:"many2many:manga_characters"`
Tags []Tag `l10n:"sync" gorm:"many2many:manga_tags"`
PublishedCountry string `l10n:"sync"`
Description string `sql:"size:2000"`
Chapters []Chapter
Enabled bool
}
func (Manga) DefaultPath ¶
func (Manga) MainImageUrl ¶
type Order ¶
type Order struct {
gorm.Model
UserID uint
User User
PaymentAmount float32
AbandonedReason string
DiscountValue uint
TrackingNumber *string
ShippedAt *time.Time
CancelledAt *time.Time
ShippingAddressID uint
ShippingAddress Address
BillingAddressID uint
BillingAddress Address
OrderItems []OrderItem
transition.Transition
}
type OrderItem ¶
type OrderItem struct {
gorm.Model
OrderID uint
Quantity uint
Price float32
DiscountRate uint
transition.Transition
}
type SEOSetting ¶
Click to show internal directories.
Click to hide internal directories.