Documentation
¶
Index ¶
- func DeleteCard(ctx context.Context, cardID string, ...) error
- func NewYSKCard(ctx context.Context, YSKCard YSKCard, ...) error
- func ToCodegenYSKCard(card YSKCard) (codegen.YSKCard, error)
- type ActionPosition
- type CartType
- type RenderType
- type YSKCard
- type YSKCardContent
- type YSKCardFooterAction
- type YSKCardIcon
- type YSKCardIconWithText
- type YSKCardListItem
- type YSKCardMessageBusAction
- type YSKCardProgress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCard ¶
func NewYSKCard ¶
Types ¶
type ActionPosition ¶
type ActionPosition string
const ( ActionPositionLeft ActionPosition = "left" ActionPositionRight ActionPosition = "right" )
type RenderType ¶
type RenderType string
const ( RenderTypeCardTask RenderType = "task" RenderTypeCardListNotice RenderType = "list-notice" RenderTypeCardIconTextNotice RenderType = "icon-text-notice" RenderTypeCardMarkdownNotice RenderType = "markdown-notice" )
type YSKCard ¶
type YSKCard struct { Id string `json:"id"` CardType CartType `json:"cardType"` RenderType RenderType `json:"renderType"` Content YSKCardContent `json:"content"` }
type YSKCardContent ¶
type YSKCardContent struct { TitleIcon string `json:"titleIcon" gorm:"column:title_icon"` TitleText string `json:"titleText" gorm:"column:title_text"` BodyProgress *YSKCardProgress `json:"bodyProgress,omitempty" gorm:"serializer:json"` BodyIconWithText *YSKCardIconWithText `json:"bodyIconWithText,omitempty" gorm:"serializer:json"` BodyList []YSKCardListItem `json:"bodyList,omitempty" gorm:"serializer:json"` }
func (*YSKCardContent) Scan ¶
func (p *YSKCardContent) Scan(value interface{}) error
type YSKCardFooterAction ¶
type YSKCardFooterAction struct {}
type YSKCardIcon ¶
type YSKCardIcon = string
type YSKCardIconWithText ¶
type YSKCardListItem ¶
type YSKCardMessageBusAction ¶
type YSKCardProgress ¶
Click to show internal directories.
Click to hide internal directories.