2024-11-29 15:52:44 -08:00
|
|
|
package model
|
|
|
|
|
|
|
|
// These represent the information needed in the nats message
|
|
|
|
// to perform the operation, they are encoded to json
|
|
|
|
|
|
|
|
// Requests are sent from maps-service to validator
|
|
|
|
|
2024-12-12 17:29:20 -05:00
|
|
|
type ValidateRequest struct {
|
2024-11-29 15:52:44 -08:00
|
|
|
// submission_id is passed back in the response message
|
|
|
|
SubmissionID int64
|
2024-12-19 16:49:22 -08:00
|
|
|
ModelID int64
|
|
|
|
ModelVersion int64
|
|
|
|
ValidatedModelID int64 // optional value
|
2024-11-29 15:52:44 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
// Create a new map
|
2024-12-12 17:29:20 -05:00
|
|
|
type PublishNewRequest struct {
|
2024-11-29 15:52:44 -08:00
|
|
|
SubmissionID int64
|
2024-12-19 16:49:22 -08:00
|
|
|
ModelID int64
|
|
|
|
ModelVersion int64
|
2024-12-15 00:21:01 -08:00
|
|
|
ModelName string
|
2024-11-29 15:52:44 -08:00
|
|
|
}
|
|
|
|
|
2024-12-12 17:29:20 -05:00
|
|
|
type PublishFixRequest struct {
|
2024-11-29 15:52:44 -08:00
|
|
|
SubmissionID int64
|
2024-12-19 16:49:22 -08:00
|
|
|
ModelID int64
|
|
|
|
ModelVersion int64
|
|
|
|
TargetAssetID int64
|
2024-11-29 15:52:44 -08:00
|
|
|
}
|