jwrookie commented on a change in pull request #2362:
URL: https://github.com/apache/apisix-dashboard/pull/2362#discussion_r820625698



##########
File path: api/internal/core/entity/entity.go
##########
@@ -304,3 +304,12 @@ type StreamRoute struct {
        UpstreamID interface{}            `json:"upstream_id,omitempty"`
        Plugins    map[string]interface{} `json:"plugins,omitempty"`
 }
+
+// swagger:model SystemConfig
+type SystemConfig struct {
+       ConfigName string                 `json:"config_name"`
+       Desc       string                 `json:"desc,omitempty"`
+       Payload    map[string]interface{} `json:"payload,omitempty"`

Review comment:
       map is more appropriate for the configuration, and it is easier to add 
more items later on




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to