24 lines
712 B
Go
24 lines
712 B
Go
package dto
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"kra/internal/biz"
|
|
)
|
|
|
|
type IntegrationConfigRequest struct {
|
|
Enabled bool `json:"enabled"`
|
|
Config json.RawMessage `json:"config"`
|
|
}
|
|
|
|
type IntegrationConfigResponse struct {
|
|
Kind string `json:"kind"`
|
|
Provider string `json:"provider"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description,omitempty"`
|
|
Enabled bool `json:"enabled"`
|
|
Configured bool `json:"configured"`
|
|
Config json.RawMessage `json:"config"`
|
|
Fields []biz.IntegrationConfigField `json:"fields"`
|
|
}
|