Fix option list bug

pull/146/head
johnniang 2019-04-09 15:22:33 +08:00
parent 49e9d9e842
commit 52c3081577
3 changed files with 4 additions and 4 deletions

View File

@ -13,8 +13,8 @@ import run.halo.app.model.entity.Option;
@Data @Data
public class OptionOutputDTO implements OutputConverter<OptionOutputDTO, Option> { public class OptionOutputDTO implements OutputConverter<OptionOutputDTO, Option> {
private String optionKey; private String key;
private String optionValue; private String value;
} }

View File

@ -26,5 +26,5 @@ public interface OptionRepository extends BaseRepository<Option, Integer> {
* *
* @param key key * @param key key
*/ */
void removeByKey(String key); void deleteByKey(String key);
} }

View File

@ -46,7 +46,7 @@ public class OptionServiceImpl extends AbstractCrudService<Option, Integer> impl
if (StringUtils.isBlank(value)) { if (StringUtils.isBlank(value)) {
// If the value is blank, remove the key // If the value is blank, remove the key
optionRepository.removeByKey(key); optionRepository.deleteByKey(key);
log.debug("Removed option key: [{}]", key); log.debug("Removed option key: [{}]", key);
return; return;
} }