2024-11-29 23:52:44 +00: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 22:29:20 +00:00
|
|
|
type ValidateRequest struct {
|
2024-11-29 23:52:44 +00:00
|
|
|
// submission_id is passed back in the response message
|
|
|
|
SubmissionID int64
|
|
|
|
ModelID uint64
|
|
|
|
ModelVersion uint64
|
|
|
|
ValidatedModelID uint64 // optional value
|
|
|
|
}
|
|
|
|
|
|
|
|
// Create a new map
|
2024-12-12 22:29:20 +00:00
|
|
|
type PublishNewRequest struct {
|
2024-11-29 23:52:44 +00:00
|
|
|
SubmissionID int64
|
|
|
|
ModelID uint64
|
|
|
|
ModelVersion uint64
|
|
|
|
Creator string
|
|
|
|
DisplayName string
|
2024-12-12 00:31:01 +00:00
|
|
|
GameID uint32
|
2024-11-29 23:52:44 +00:00
|
|
|
//games HashSet<GameID>
|
|
|
|
}
|
|
|
|
|
2024-12-12 22:29:20 +00:00
|
|
|
type PublishFixRequest struct {
|
2024-11-29 23:52:44 +00:00
|
|
|
SubmissionID int64
|
|
|
|
ModelID uint64
|
|
|
|
ModelVersion uint64
|
|
|
|
TargetAssetID uint64
|
|
|
|
}
|