dto

package
v0.0.0-...-efb46b8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnkiNoteInfo

type AnkiNoteInfo struct {
	gorm.Model
	TrelloCardId string
	Title        string
	HtmlContext  string
	ModelName    string
}

anki笔记实体

type FlashCard

type FlashCard struct {
	ID           string `gorm:"primary_key"`
	Name         string `gorm:"not null";index`
	Desc         string
	AnkiStatus   int // 0 表示待处理 -1 标识放弃不生成anki笔记 1标识生成anki
	CardType     int
	TrelloCardB  postgres.Jsonb `gorm:"type:jsonb;"`
	TrelloCard   trello.Card    `gorm:"-"`
	AnkiNoteInfo AnkiNoteInfo   `gorm:FOREIGNKEY:ID;ASSOCIATION_FOREIGNKEY:ID`
	CreatedAt    time.Time
	UpdatedAt    time.Time
	Closed       int
}

func (FlashCard) NewFlashCard

func (FlashCard) NewFlashCard(trelloCard trello.Card) *FlashCard

func (FlashCard) SetFlashCard

func (FlashCard) SetFlashCard(trelloCard trello.Card) *FlashCard

type TrelloEntity

type TrelloEntity struct {
	gorm.Model
	ID   string `gorm:"primary_key"`
	Name string
	Type int
}

func (*TrelloEntity) Scan

func (c *TrelloEntity) Scan(input interface{}) error

func (TrelloEntity) Value

func (c TrelloEntity) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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