light modification

This commit is contained in:
mr
2025-01-20 13:26:30 +01:00
parent b85ca8674b
commit 8e4ebbf622
7 changed files with 30 additions and 5 deletions

View File

@@ -32,6 +32,10 @@ func (d *DataResource) GetAccessor(request *tools.APIRequest) utils.Accessor {
return NewAccessor[*DataResource](tools.DATA_RESOURCE, request, func() utils.DBObject { return &DataResource{} }) // Create a new instance of the accessor
}
func (r *DataResource) GetType() string {
return tools.DATA_RESOURCE.String()
}
func (abs *DataResource) ConvertToPricedResource(
t tools.DataType, request *tools.APIRequest) pricing.PricedItemITF {
if t != tools.DATA_RESOURCE {