Heeheehye / miniproject

0 stars 0 forks source link

마이페이지 DTO 만들기 #7

Open daheeh opened 1 year ago

daheeh commented 1 year ago

package com.hhh.model.dto;

public class MyPageDTO {

public MyPageDTO() {}

private String name;
private char gender;
private String id;
private int paymoney;
private int coupon;
private String orderlist;

public MyPageDTO(String name, String id, char gender, int paymoney, int coupon /*String orderlist*/) {

    this.name = name;
    this.gender = gender;
    this.id = id;
    this.paymoney = paymoney;
    this.coupon = coupon;

// this.orderlist = orderlist; }

public String getName() {
    return name;
}

public void setName(String name) {
    this.name = name;
}

public char getGender() {
    return gender;
}

public void setGender(char gender) {
    this.gender = gender;
}

public String getId() {
    return id;
}

public void setId(String id) {
    this.id = id;
}

public int getPaymoney() {
    return paymoney;
}

public void setPaymoney(int paymoney) {
    this.paymoney = paymoney;
}

public int getCoupon() {
    return coupon;
}

public void setCoupon(int coupon) {
    this.coupon = coupon;
}

public String getOrderlist() {
    return orderlist;
}

public void setOrderlist(String orderlist) {
    this.orderlist = orderlist;
}

@Override
public String toString() {
    return "========== 마이페이지 ==========" + "\n" + name + "(" + id + ")님" +  "\n성별 : " + gender + "\n페이잔액 : " + paymoney + "원" + "\n잔여쿠폰 : " + coupon + "개" + "\n주문내역 : " + "\n"/*+메소드 호출로*/;
};

}

daheeh commented 1 year ago

마이페이지 DTO 만들기를 완료했어요.

heeyoonsz commented 1 year ago

축하드립니다.

heeyoonsz commented 1 year ago

마이페이지 DTO 만들기를 완료했어요.

인상깊네요