package mini_page_component import ( "ecos/application/domain/oss" "git.sxidc.com/go-framework/baize/framework/core/api/request" ) type ( CreateMiniPageComponentJsonBody struct { PageID string `json:"pageId" assign:"toField:PageID"` ComponentTypeID string `json:"componentTypeId" binding:"required" assign:"toField:ComponentTypeID"` TypeName string `json:"typeName" binding:"required" assign:"toField:TypeName"` ComponentConfig string `json:"componentConfig" binding:"required" assign:"toField:ComponentConfig"` SortOrder int `json:"sortOrder" binding:"required" assign:"toField:SortOrder"` IsEnabled string `json:"isEnabled" binding:"required" assign:"toField:IsEnabled"` request.CreateUserIDJsonBody request.OperatorUserNameJsonBody } DeleteMiniPageComponentQueryParams struct { request.IDQueryParam request.DeleteUserIDQueryParams request.OperatorUserNameQueryParams } UpdateMiniPageComponentJsonBody struct { request.IDJsonBody PageID string `json:"pageId" assign:"toField:PageID"` ComponentTypeID string `json:"componentTypeId" assign:"toField:ComponentTypeID"` TypeName string `json:"typeName" assign:"toField:TypeName"` ComponentConfig string `json:"componentConfig" assign:"toField:ComponentConfig"` SortOrder int `json:"sortOrder" assign:"toField:SortOrder"` IsEnabled string `json:"isEnabled" assign:"toField:IsEnabled"` request.UpdateUserIDJsonBody request.OperatorUserNameJsonBody } GetMiniPageComponentsQueryParams struct { PageID string `form:"pageId" assign:"toField:PageID"` ComponentTypeID string `form:"componentTypeId" assign:"toField:ComponentTypeID"` TypeName string `form:"typeName" assign:"toField:TypeName"` IsEnabled string `form:"isEnabled" assign:"toField:IsEnabled"` request.BaseQueryParams } GetMiniPageComponentQueryParams struct { request.IDQueryParam } EnabledOrDisableJsonBody struct { request.IDJsonBody ComponentTypeID string `json:"componentTypeId" assign:"toField:ComponentTypeID"` IsEnabled string `json:"isEnabled" assign:"toField:IsEnabled"` } SortOrderJsonBody struct { SortOrders []SortOrder `json:"sortOrders"` } SortOrder struct { request.IDJsonBody SortOrder int `json:"sortOrder" assign:"toField:SortOrder"` } // CarouselConfig 轮播组件的整体配置 CarouselConfig struct { Autoplay string `json:"autoplay"` // 自动播放,"1"表示开启,"0"表示关闭 Interval int `json:"interval"` // 轮播间隔时间,单位毫秒 Height int `json:"height"` // 轮播高度 Items []CarouselItem `json:"items"` // 轮播项列表 } // CarouselItem 轮播项的具体信息 CarouselItem struct { ImageUrl string `json:"imageUrl"` ImageUrls []oss.FileObject `json:"attachments"` ImageAlt string `json:"imageAlt"` LinkType int `json:"linkType"` LinkUrl string `json:"linkUrl"` LinkParams string `json:"linkParams"` SortOrder int `json:"sortOrder"` IsEnabled string `json:"isEnabled"` } VideoComponentConfig struct { VideoTitle string `json:"videoTitle"` VideoUrlStr string `json:"videoUrl"` VideoUrlFile []oss.FileObject `json:"videoUrlFile"` VideoCoverStr string `json:"videoCover"` VideoCoverFile []oss.FileObject `json:"videoCoverFile"` AutoPlay string `json:"autoPlay"` ShowControls string `json:"showControls"` } // LiveWindowConfig 直播窗口组件的详细配置 LiveWindowConfig struct { LiveTitle string `json:"liveTitle"` LiveCoverUrl string `json:"liveCoverUrl"` LiveCoverUrlFile []oss.FileObject `json:"liveCoverUrlFile"` LiveRoomId string `json:"liveRoomId"` LiveStatus int `json:"liveStatus"` PlaceholderImage string `json:"placeholderImage"` PlaceholderText string `json:"placeholderText"` } /* HAC: HTTP RELATION REQUEST PARAMS */ /* HAC: END HTTP RELATION REQUEST PARAMS */ )