You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
test/branch_zyx/ProdCatalog.java

26 lines
738 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.lingnan.supermarket.dto; // 声明当前类所在的包
// 定义产品目录类ProdCatalog
public class ProdCatalog {
private String id; // 产品目录ID
private String name; // 产品目录名称
// getId方法用于获取产品目录ID
public String getId() {
return id; // 返回产品目录ID
}
// setId方法用于设置产品目录ID
public void setId(String id) {
this.id = id; // 将参数id赋值给成员变量id
}
// getName方法用于获取产品目录名称
public String getName() {
return name; // 返回产品目录名称
}
// setName方法用于设置产品目录名称
public void setName(String name) {
this.name = name; // 将参数name赋值给成员变量name
}
}