package com.guo.learningprogresstracker.service; import com.guo.learningprogresstracker.entity.UserPriorityWeightsEntity; import com.guo.learningprogresstracker.exception.ErrorParameterException; /** * 优先级权重配置服务 */ public interface PriorityWeightsService { /** * 获取当前用户的权重配置,不存在时返回系统默认值 */ UserPriorityWeightsEntity getWeights(); /** * 保存权重配置并重算当前用户全部任务的优先级。 * 五项权重之和必须为 1(容差 0.001)。 */ UserPriorityWeightsEntity saveWeights(UserPriorityWeightsEntity weights) throws ErrorParameterException; }