enhance(cache):修改附加费关联缓存的设计。
This commit is contained in:
parent
712d704004
commit
7e861ba4e6
|
@ -97,6 +97,7 @@ func (_MaintenanceFeeService) ModifyMaintenanceFee(fee model.MaintenanceFee) err
|
|||
return err
|
||||
}
|
||||
}
|
||||
cache.AbolishRelation("maintenance_fee")
|
||||
cache.AbolishRelation(fmt.Sprintf("maintenance_fee:%s", fee.Id))
|
||||
return nil
|
||||
}
|
||||
|
@ -116,6 +117,7 @@ func (_MaintenanceFeeService) ChangeMaintenanceFeeState(fid string, state bool)
|
|||
return err
|
||||
}
|
||||
}
|
||||
cache.AbolishRelation("maintenance_fee")
|
||||
cache.AbolishRelation(fmt.Sprintf("maintenance_fee:%s", fid))
|
||||
return nil
|
||||
}
|
||||
|
@ -134,6 +136,7 @@ func (_MaintenanceFeeService) DeleteMaintenanceFee(fid string) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
cache.AbolishRelation("maintenance_fee")
|
||||
cache.AbolishRelation(fmt.Sprintf("maintenance_fee:%s", fid))
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user