Skip to content

Commit

Permalink
[BE/#50] Feat : 레이블 업데이트 관련 서비스 로직 추가
Browse files Browse the repository at this point in the history
- LabelService
  • Loading branch information
MuseopKim committed Jun 18, 2020
1 parent 32edf34 commit 9bcb636
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public LabelInformation findAllLabels() {
return LabelInformation.create(labelSummaries.size(), labelSummaries);
}

public String updateLabel(Integer labelId, String labelName, String description, String hexCode) {
labelDaoRagdoll.updateLabel(labelId, labelName, description, hexCode);
return ResponseMessages.SUCCESSFULLY_MODIFIED;
}

public String createNewLabel(LabelRequestDto labelRequestDto) {
labelDaoRagdoll.createNewLabel(labelRequestDto.getLabelName(), labelRequestDto.getDescription(), labelRequestDto.getHexCode());
return ResponseMessages.SUCCESSFULLY_CREATED;
Expand Down

0 comments on commit 9bcb636

Please sign in to comment.