37 lines
930 B
Java
37 lines
930 B
Java
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() {
|
|
|
|
}
|
|
|
|
}
|