submissions: description plumbing

This commit is contained in:
Quaternions 2025-04-11 12:40:47 -07:00
parent e6806585d3
commit c3fd7d0558
Signed by: Quaternions
GPG Key ID: D0DF5964F79AC131
4 changed files with 4 additions and 0 deletions
pkg
model
service
service_internal

@ -39,4 +39,5 @@ type Mapfix struct {
Completed bool // Has this version of the map been completed at least once on maptest Completed bool // Has this version of the map been completed at least once on maptest
TargetAssetID uint64 // where to upload map fix. if the TargetAssetID is 0, it's a new map. TargetAssetID uint64 // where to upload map fix. if the TargetAssetID is 0, it's a new map.
StatusID MapfixStatus StatusID MapfixStatus
Description string // mapfix description
} }

@ -15,6 +15,7 @@ type CreateMapfixRequest struct {
OperationID int32 OperationID int32
ModelID uint64 ModelID uint64
TargetAssetID uint64 TargetAssetID uint64
Description string
} }

@ -114,6 +114,7 @@ func (svc *Service) CreateMapfix(ctx context.Context, request *api.MapfixTrigger
OperationID: operation.ID, OperationID: operation.ID,
ModelID: ModelID, ModelID: ModelID,
TargetAssetID: TargetAssetID, TargetAssetID: TargetAssetID,
Description: request.Description,
} }
j, err := json.Marshal(create_request) j, err := json.Marshal(create_request)

@ -347,6 +347,7 @@ func (svc *Service) CreateMapfix(ctx context.Context, request *internal.MapfixCr
Completed: false, Completed: false,
TargetAssetID: TargetAssetID, TargetAssetID: TargetAssetID,
StatusID: model.MapfixStatusUnderConstruction, StatusID: model.MapfixStatusUnderConstruction,
Description: request.Description,
}) })
if err != nil { if err != nil {
return nil, err return nil, err