Skip to content

Commit

Permalink
feat: add withList func (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
CorrectRoadH authored Aug 9, 2024
1 parent 9d05bc2 commit 32f2535
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/ysk/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ func (yskCard YSKCard) WithProgress(label string, progress int) YSKCard {
return yskCard
}

func (yskCard YSKCard) WithList(params []YSKCardListItem) YSKCard {
yskCard.Content.BodyList = params
return yskCard
}

type YSKCardContent struct {
TitleIcon YSKCardIcon `json:"titleIcon" gorm:"column:title_icon"`
TitleText string `json:"titleText" gorm:"column:title_text"`
Expand Down

0 comments on commit 32f2535

Please sign in to comment.