Skip to content

Commit

Permalink
Merge pull request #582 from Abirdcfly/appmoreconfig
Browse files Browse the repository at this point in the history
feat: add some display config for app
  • Loading branch information
bjwswang authored Jan 19, 2024
2 parents f5c3828 + 736803e commit 411eb9f
Show file tree
Hide file tree
Showing 13 changed files with 260 additions and 47 deletions.
10 changes: 9 additions & 1 deletion api/base/v1alpha1/application_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,22 @@ type ApplicationSpec struct {
// Icon base64 image icon
Icon string `json:"icon,omitempty"`
// IsPublic Set whether the current application provides services to the public
IsPublic bool `json:"isPublic,omitempty"`
IsPublic bool `json:"isPublic,omitempty"`
WebConfig `json:",inline"`
// prologue, show in the chat top
Prologue string `json:"prologue,omitempty"`
// Nodes
// +kubebuilder:validation:Required
Nodes []Node `json:"nodes"`
}

// WebConfig is the configuration for web interface
type WebConfig struct {
ShowRespInfo bool `json:"showRespInfo,omitempty"`
ShowRetrievalInfo bool `json:"showRetrievalInfo,omitempty"`
ShowNextGuide bool `json:"showNextGuide,omitempty"`
}

type Node struct {
NodeConfig `json:",inline"`
NextNodeName []string `json:"nextNodeName,omitempty"`
Expand Down
16 changes: 16 additions & 0 deletions api/base/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

189 changes: 166 additions & 23 deletions apiserver/graph/generated/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 12 additions & 4 deletions apiserver/graph/generated/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 411eb9f

Please sign in to comment.