2024-11-26 21:36:40 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2024-11-28 01:27:22 +00:00
|
|
|
type Status int32
|
|
|
|
|
|
|
|
const(
|
|
|
|
Published Status=8
|
|
|
|
Rejected Status=7
|
|
|
|
|
|
|
|
Publishing Status=6
|
|
|
|
Validated Status=5
|
|
|
|
Validating Status=4
|
|
|
|
Accepted Status=3
|
|
|
|
|
|
|
|
ChangesRequested Status=2
|
|
|
|
Submitted Status=1
|
|
|
|
UnderConstruction Status=0
|
|
|
|
)
|
|
|
|
|
2024-11-26 23:30:58 +00:00
|
|
|
type Submission struct {
|
2024-11-26 23:55:50 +00:00
|
|
|
ID int64
|
|
|
|
DisplayName string
|
|
|
|
Creator string
|
|
|
|
GameID int32
|
|
|
|
Date time.Time
|
|
|
|
Submitter int64 // UserID
|
|
|
|
AssetID int64
|
|
|
|
AssetVersion int64
|
|
|
|
Completed bool
|
|
|
|
TargetAssetID int64 // where to upload map fix. if the TargetAssetID is 0, it's a new map.
|
2024-11-28 01:27:22 +00:00
|
|
|
StatusID Status
|
2024-11-26 21:36:40 +00:00
|
|
|
}
|