이창훈/spring/demo/src/main/java/kr/eddi/demo/controller/jpa/member/form/MemberRegisterForm.java
<gh_stars>0package kr.eddi.demo.controller.jpa.member.form;

import kr.eddi.demo.service.jpa.member.request.MemberRegisterRequest;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@NoArgsConstructor
public class MemberRegisterForm {
    private String email;
    private String password;
    private String city;
    private String street;
    private String addressDetail;
    private String zipcode;

    public MemberRegisterRequest toMemberRegisterRequest () {
        return new MemberRegisterRequest(email, password, city, street, addressDetail, zipcode);
    }
}
