Files
isp-config-service/domain/response.go
T
txix e571aa709a
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s
2026-02-20 19:41:52: merge [main:416f9307c3185ce221c98d501d55584da7301600];
2026-02-20 19:41:52 +03:00

80 lines
1.4 KiB
Go

package domain
import (
"time"
"github.com/txix-open/isp-kit/json"
)
type DeleteResponse struct {
Deleted int
}
type CreateUpdateConfigResponse struct {
Config
IsChanged bool
}
type ModuleInfo struct {
Id string
Name string
Active bool
LastConnectedAt *time.Time
LastDisconnectedAt *time.Time
ConfigSchema json.RawMessage `swaggertype:"object"`
Status []Connection
CreatedAt time.Time
}
type Connection struct {
Id string
ModuleName string
LibVersion string
Version string
Address Address
Transport string
Endpoints []EndpointDescriptor
EstablishedAt time.Time
}
type Address struct {
Ip string
Port string
}
type EndpointDescriptor struct {
HttpMethod string
Path string
Inner bool
}
type Config struct {
Id string
Name string
ModuleId string
Valid bool
Data json.RawMessage `swaggertype:"object"`
Version int
Active bool
CreatedAt time.Time
UpdatedAt time.Time
}
type ConfigVersion struct {
Id string
ConfigId string
ConfigVersion int
Data json.RawMessage `swaggertype:"object"`
CreatedAt time.Time
}
type ConfigSchema struct {
Id string
Version string
ModuleId string
Schema json.RawMessage `swaggertype:"object"`
CreatedAt time.Time
UpdatedAt time.Time
}