fix: 使用专用常量 ShelfStatusOn 替代 StatusEnabled 赋值 ShelfStatus
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -340,7 +340,7 @@ func (s *Service) Create(ctx context.Context, req *dto.CreateShopSeriesGrantRequ
|
|||||||
RetailPrice: pkg.SuggestedRetailPrice,
|
RetailPrice: pkg.SuggestedRetailPrice,
|
||||||
SeriesAllocationID: &allocation.ID,
|
SeriesAllocationID: &allocation.ID,
|
||||||
Status: constants.StatusEnabled,
|
Status: constants.StatusEnabled,
|
||||||
ShelfStatus: constants.StatusEnabled,
|
ShelfStatus: constants.ShelfStatusOn,
|
||||||
}
|
}
|
||||||
pkgAlloc.Creator = operatorID
|
pkgAlloc.Creator = operatorID
|
||||||
pkgAlloc.Updater = operatorID
|
pkgAlloc.Updater = operatorID
|
||||||
@@ -674,7 +674,7 @@ func (s *Service) ManagePackages(ctx context.Context, id uint, req *dto.ManageGr
|
|||||||
RetailPrice: pkg.SuggestedRetailPrice,
|
RetailPrice: pkg.SuggestedRetailPrice,
|
||||||
SeriesAllocationID: &allocation.ID,
|
SeriesAllocationID: &allocation.ID,
|
||||||
Status: constants.StatusEnabled,
|
Status: constants.StatusEnabled,
|
||||||
ShelfStatus: constants.StatusEnabled,
|
ShelfStatus: constants.ShelfStatusOn,
|
||||||
}
|
}
|
||||||
pkgAlloc.Creator = operatorID
|
pkgAlloc.Creator = operatorID
|
||||||
pkgAlloc.Updater = operatorID
|
pkgAlloc.Updater = operatorID
|
||||||
|
|||||||
Reference in New Issue
Block a user