-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
114 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...va/com/heachi/housework/api/service/group/info/request/GroupInfoUpdateServiceRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.heachi.housework.api.service.group.info.request; | ||
|
||
import com.heachi.housework.api.controller.group.info.request.GroupInfoCreateRequest; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class GroupInfoUpdateServiceRequest { | ||
private Long groupId; | ||
private String bgColor; | ||
private String colorCode; | ||
private String gradient; | ||
private String name; | ||
private String info; | ||
|
||
@Builder | ||
public GroupInfoUpdateServiceRequest(Long groupId, String bgColor, String colorCode, String gradient, String name, String info) { | ||
this.groupId = groupId; | ||
this.bgColor = bgColor; | ||
this.colorCode = colorCode; | ||
this.gradient = gradient; | ||
this.name = name; | ||
this.info = info; | ||
} | ||
|
||
public static GroupInfoUpdateServiceRequest of(GroupInfoCreateRequest request, Long groupId) { | ||
return GroupInfoUpdateServiceRequest.builder() | ||
.groupId(groupId) | ||
.bgColor(request.getBgColor()) | ||
.colorCode(request.getColorCode()) | ||
.gradient(request.getGradient()) | ||
.name(request.getName()) | ||
.info(request.getInfo()) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters