feat: function manager refactor is ready

This commit is contained in:
RockYang
2023-12-28 18:14:38 +08:00
parent d972e97c88
commit e9467341fa
13 changed files with 341 additions and 160 deletions

View File

@@ -6,7 +6,6 @@ type Function struct {
Label string
Description string
Parameters string
Required string
Action string
Token string
Enabled bool

View File

@@ -2,7 +2,7 @@ package vo
type Parameters struct {
Type string `json:"type"`
Required []string `json:"required"`
Required []string `json:"required,omitempty"`
Properties map[string]Property `json:"properties"`
}
@@ -17,7 +17,6 @@ type Function struct {
Label string `json:"label"`
Description string `json:"description"`
Parameters Parameters `json:"parameters"`
Required []string `json:"required"`
Action string `json:"action"`
Token string `json:"token"`
Enabled bool `json:"enabled"`