Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPageNo = 1 DefaultPageSize = 5 )
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type MyProjectList ¶
type MyProjectList struct { Type string `json:"type"` Props Props `json:"props"` State State `json:"state"` Data Data `json:"data"` Operations map[string]interface{} `json:"operations"` // contains filtered or unexported fields }
func (*MyProjectList) GenComponentState ¶
func (this *MyProjectList) GenComponentState(c *apistructs.Component) error
GenComponentState 获取state
func (*MyProjectList) Render ¶
func (this *MyProjectList) Render(ctx context.Context, c *apistructs.Component, _ apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) (err error)
func (*MyProjectList) SetCtxBundle ¶
func (this *MyProjectList) SetCtxBundle(ctx context.Context) error
type OperationData ¶
type ProItem ¶
type ProItem struct { ID string `json:"id"` ProjectId string `json:"projectId"` Title string `json:"title"` Description string `json:"description"` PrefixImg string `json:"prefixImg"` Operations map[string]Operation `json:"operations"` }
func RenItem ¶
func RenItem(pro apistructs.ProjectDTO, orgName string) ProItem
Click to show internal directories.
Click to hide internal directories.