29 lines
478 B
Go
29 lines
478 B
Go
package domain
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Service struct {
|
|
Id int
|
|
Name string
|
|
Description string
|
|
DomainId int
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type ServiceCreateUpdateRequest struct {
|
|
Id int
|
|
Name string `valid:"required~Required"`
|
|
Description string
|
|
DomainId int `valid:"required~Required"`
|
|
}
|
|
|
|
type ServiceWithApps struct {
|
|
Id int
|
|
Name string
|
|
Description string
|
|
Apps []*ApplicationSimple
|
|
}
|