This repository has been archived on 2026-01-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ElmDemo/src/main/java/entities/Merchants.java
T

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() {
}
}