forked from rongchao/epmet-cloud-rizhao
27 changed files with 566 additions and 28 deletions
@ -0,0 +1,32 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import com.epmet.dto.PaCustomerAgencyDTO; |
||||
|
import com.epmet.dto.PaCustomerDTO; |
||||
|
import com.epmet.dto.PaUserDTO; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 运营端初始化客户信息-查询客户各项注册信息-接口返参 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class InitCustomerResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 3253989119352850315L; |
||||
|
|
||||
|
/** |
||||
|
* 注册客户信息 |
||||
|
*/ |
||||
|
private PaCustomerDTO paCustomer; |
||||
|
/** |
||||
|
* 注册客户组织信息 |
||||
|
*/ |
||||
|
private PaCustomerAgencyDTO paAgency; |
||||
|
/** |
||||
|
* 注册客户管理员信息 |
||||
|
*/ |
||||
|
private PaUserDTO paUser; |
||||
|
|
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.dto.CustomerAgencyDTO; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 单客户-添加根组织及管理员-接口入参 |
||||
|
* |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AddAgencyAndStaffFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 根级组织对象 |
||||
|
*/ |
||||
|
private CustomerAgencyDTO agencyDTO; |
||||
|
/** |
||||
|
* 客户管理员信息 |
||||
|
*/ |
||||
|
private AdminStaffFromDTO staffDTO; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import javax.validation.constraints.Pattern; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author sun |
||||
|
* @dscription 客户管理员信息 |
||||
|
*/ |
||||
|
@NoArgsConstructor |
||||
|
@Data |
||||
|
public class AdminStaffFromDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
/** |
||||
|
* 机关ID |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 人员ID |
||||
|
*/ |
||||
|
private String staffId; |
||||
|
/** |
||||
|
* 姓名 |
||||
|
*/ |
||||
|
@Length(max = 15, message = "姓名仅允许输入15个字符") |
||||
|
private String name; |
||||
|
/** |
||||
|
* 手机 |
||||
|
*/ |
||||
|
@Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "请输入正确的手机号") |
||||
|
private String mobile; |
||||
|
/** |
||||
|
* 性别 |
||||
|
*/ |
||||
|
private Integer gender; |
||||
|
/** |
||||
|
* 专兼职 |
||||
|
*/ |
||||
|
private String workType; |
||||
|
/** |
||||
|
* 角色id列表 |
||||
|
*/ |
||||
|
private List<String> roles; |
||||
|
/** |
||||
|
* 来源app(政府端:gov、居民端:resi、运营端:oper) |
||||
|
*/ |
||||
|
private String app; |
||||
|
/** |
||||
|
* 来源client(PC端:web、微信小程序:wxmp) |
||||
|
*/ |
||||
|
private String client; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description 运营端-初始化在公众号注册的客户-接口入参 |
||||
|
* @Author sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CustomerInitFormDTO implements Serializable { |
||||
|
|
||||
|
public interface GetCustomerDetailGroup { |
||||
|
} |
||||
|
|
||||
|
@NotBlank(message = "客户Id不能为空", groups = {GetCustomerDetailGroup.class}) |
||||
|
private String customerId; |
||||
|
|
||||
|
} |
||||
|
|
Loading…
Reference in new issue