enhance(fee):为园区固定费用服务增加调试用的日志记录器。

This commit is contained in:
徐涛 2022-09-16 10:38:08 +08:00
parent ab7ce6d0c6
commit 398e67a7bd

View File

@ -4,17 +4,23 @@ import (
"electricity_bill_calc/cache"
"electricity_bill_calc/exceptions"
"electricity_bill_calc/global"
"electricity_bill_calc/logger"
"electricity_bill_calc/model"
"fmt"
"github.com/google/uuid"
"github.com/samber/lo"
"github.com/uptrace/bun"
"go.uber.org/zap"
)
type _MaintenanceFeeService struct{}
type _MaintenanceFeeService struct {
l *zap.Logger
}
var MaintenanceFeeService _MaintenanceFeeService
var MaintenanceFeeService = _MaintenanceFeeService{
l: logger.Named("Service", "maintenance"),
}
func (_MaintenanceFeeService) ListMaintenanceFees(pid []string) ([]model.MaintenanceFee, error) {
if fees, _ := cache.RetreiveSearch[[]model.MaintenanceFee]("maintenance_fee", pid...); fees != nil {