From 1c4d3acad6da0c7c054bba218770b8352d1503c5 Mon Sep 17 00:00:00 2001 From: CorrectRoadH Date: Fri, 9 Aug 2024 10:42:55 +0800 Subject: [PATCH] wip --- pkg/ysk/adapter.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/ysk/adapter.go b/pkg/ysk/adapter.go index 5cf00f2..614428b 100644 --- a/pkg/ysk/adapter.go +++ b/pkg/ysk/adapter.go @@ -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"`