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