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.
47 lines
1.5 KiB
47 lines
1.5 KiB
package com.example.web.dto;
|
|
|
|
import com.example.web.entity.Contacts;
|
|
import com.example.web.entity.Enterprise;
|
|
import com.example.web.entity.Managers;
|
|
// 企业信息数据传输对象(DTO),用于封装企业完整信息(企业基本信息+联系人+负责人等)
|
|
// getter和setter:提供属性的获取和设置方法,用于在各层之间传递数据
|
|
public class EnterpriseInfoDTO {
|
|
|
|
private Enterprise enterprise;
|
|
private Contacts contacts;
|
|
private Managers managers;
|
|
|
|
// 构造方法
|
|
public EnterpriseInfoDTO() {}
|
|
|
|
public EnterpriseInfoDTO(Enterprise enterprise, Contacts contacts, Managers managers) {
|
|
this.enterprise = enterprise;
|
|
this.contacts = contacts;
|
|
this.managers = managers;
|
|
}
|
|
|
|
// getter和setter
|
|
public Enterprise getEnterprise() {
|
|
return enterprise;
|
|
}// 获取企业基本信息对象(包含公司名称、地区、类型等核心字段)
|
|
|
|
public void setEnterprise(Enterprise enterprise) {
|
|
this.enterprise = enterprise;
|
|
}
|
|
|
|
public Contacts getContacts() {
|
|
return contacts;
|
|
}
|
|
|
|
public void setContacts(Contacts contacts) {
|
|
this.contacts = contacts;
|
|
}
|
|
|
|
public Managers getManagers() {
|
|
return managers;
|
|
}
|
|
|
|
public void setManagers(Managers managers) {
|
|
this.managers = managers;
|
|
}
|
|
}
|
|
|