ElmDemo/src/main/java/entities/Merchants.java

37 lines
930 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package entities;
import lombok.Data;
//商家类
@Data
public class Merchants {
private Long id;//主键,商家编号
private String name;//店铺名字
private String address;//店铺地址
private String description;//店铺描述
private String phoneNumber;//商家联系方式
// @Override
// public String toString() {
// return "\n商家编号" + this.id +
// "\n店铺名字" + this.name +
// "\n店铺地址" + this.address +
// "\n店铺描述" + this.description +
// "\n联系方式" + this.phoneNumber;
// }
public Merchants(String name, String address,
String description, String phoneNumber) {
this.name = name;
this.address = address;
this.description = description;
this.phoneNumber = phoneNumber;
}
public Merchants() {
}
}