prepend status with namespacing

bruh golang moment
This commit is contained in:
Quaternions 2024-11-27 17:59:29 -08:00
parent b31a8a90ff
commit cdd9488ace
2 changed files with 10 additions and 10 deletions

View File

@ -5,17 +5,17 @@ import "time"
type Status int32
const(
Published Status=8
Rejected Status=7
StatusPublished Status=8
StatusRejected Status=7
Publishing Status=6
Validated Status=5
Validating Status=4
Accepted Status=3
StatusPublishing Status=6
StatusValidated Status=5
StatusValidating Status=4
StatusAccepted Status=3
ChangesRequested Status=2
Submitted Status=1
UnderConstruction Status=0
StatusChangesRequested Status=2
StatusSubmitted Status=1
StatusUnderConstruction Status=0
)
type Submission struct {

View File

@ -22,7 +22,7 @@ func (svc *Service) CreateSubmission(ctx context.Context, request api.OptSubmiss
AssetVersion: request.Value.AssetVersion.Value,
Completed: false,
TargetAssetID: request.Value.TargetAssetID.Value,
StatusID: model.UnderConstruction,
StatusID: model.StatusUnderConstruction,
})
if err != nil{
return nil, err