34 lines
1.1 KiB
Go
34 lines
1.1 KiB
Go
|
|
package contract
|
||
|
|
|
||
|
|
import (
|
||
|
|
"time"
|
||
|
|
|
||
|
|
"github.com/google/uuid"
|
||
|
|
)
|
||
|
|
|
||
|
|
type DispositionRouteResponse struct {
|
||
|
|
ID uuid.UUID `json:"id"`
|
||
|
|
FromDepartmentID uuid.UUID `json:"from_department_id"`
|
||
|
|
ToDepartmentID uuid.UUID `json:"to_department_id"`
|
||
|
|
IsActive bool `json:"is_active"`
|
||
|
|
AllowedActions map[string]interface{} `json:"allowed_actions,omitempty"`
|
||
|
|
CreatedAt time.Time `json:"created_at"`
|
||
|
|
UpdatedAt time.Time `json:"updated_at"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type CreateDispositionRouteRequest struct {
|
||
|
|
FromDepartmentID uuid.UUID `json:"from_department_id"`
|
||
|
|
ToDepartmentID uuid.UUID `json:"to_department_id"`
|
||
|
|
IsActive *bool `json:"is_active,omitempty"`
|
||
|
|
AllowedActions *map[string]interface{} `json:"allowed_actions,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type UpdateDispositionRouteRequest struct {
|
||
|
|
IsActive *bool `json:"is_active,omitempty"`
|
||
|
|
AllowedActions *map[string]interface{} `json:"allowed_actions,omitempty"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type ListDispositionRoutesResponse struct {
|
||
|
|
Routes []DispositionRouteResponse `json:"routes"`
|
||
|
|
}
|