prepend status with namespacing
bruh golang moment
This commit is contained in:
parent
b31a8a90ff
commit
cdd9488ace
@ -5,17 +5,17 @@ import "time"
|
|||||||
type Status int32
|
type Status int32
|
||||||
|
|
||||||
const(
|
const(
|
||||||
Published Status=8
|
StatusPublished Status=8
|
||||||
Rejected Status=7
|
StatusRejected Status=7
|
||||||
|
|
||||||
Publishing Status=6
|
StatusPublishing Status=6
|
||||||
Validated Status=5
|
StatusValidated Status=5
|
||||||
Validating Status=4
|
StatusValidating Status=4
|
||||||
Accepted Status=3
|
StatusAccepted Status=3
|
||||||
|
|
||||||
ChangesRequested Status=2
|
StatusChangesRequested Status=2
|
||||||
Submitted Status=1
|
StatusSubmitted Status=1
|
||||||
UnderConstruction Status=0
|
StatusUnderConstruction Status=0
|
||||||
)
|
)
|
||||||
|
|
||||||
type Submission struct {
|
type Submission struct {
|
||||||
|
@ -22,7 +22,7 @@ func (svc *Service) CreateSubmission(ctx context.Context, request api.OptSubmiss
|
|||||||
AssetVersion: request.Value.AssetVersion.Value,
|
AssetVersion: request.Value.AssetVersion.Value,
|
||||||
Completed: false,
|
Completed: false,
|
||||||
TargetAssetID: request.Value.TargetAssetID.Value,
|
TargetAssetID: request.Value.TargetAssetID.Value,
|
||||||
StatusID: model.UnderConstruction,
|
StatusID: model.StatusUnderConstruction,
|
||||||
})
|
})
|
||||||
if err != nil{
|
if err != nil{
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user