MerchantCustomInfoSaveRequest.java 2.67 KB
package cn.com.glsx.busassistant.request;

import cn.com.glsx.busassistant.request.serviceCenter.MerchantBrandRequest;
import cn.com.glsx.dj.smartcarlife.model.ServiceMerchantStaffAllocation;
import com.rop.AbstractRopRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;

@Data
public class MerchantCustomInfoSaveRequest extends AbstractRopRequest{

	@ApiModelProperty(notes = "服务商名称",dataType="string", required = true)
	private String serviceMerchantName;

	@ApiModelProperty(notes="所属服务中心商户号", dataType="int", required = true)
	@NotNull(message = "所属服务中心不能为空")
	private Integer serviceCenterMerchantId;

	@ApiModelProperty(notes="客户名称", dataType="string", required = true)
	@NotBlank(message = "客户名称不能为空")
	private String merchantName;

	@ApiModelProperty(notes="联系人", dataType="string", required = true)
	@NotBlank(message = "联系人不能为空")
	private String contactName;

	@Pattern(regexp = "^1(3\\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$", message = "联系电话非法")
	@NotNull(message = "联系电话不能为空")
	@ApiModelProperty(notes="联系电话", dataType="string", required = true)
	private String phone;

	@ApiModelProperty(notes="业务开通场景列表, SC001-会员权益/升级 SC002-精品升级(太阳膜) SC003-次新车转化(车衣、改色膜) SC004-售后众筹活动 ", dataType="list", required = true)
	@NotEmpty(message = "业务开通列表不能为空")
	private List<String> sceneList;

	@ApiModelProperty(notes="业务开通产品列表", required = true)
	@NotEmpty(message = "业务开通产品列表不能为空")
	private List<String> productCodeList;

	/*@ApiModelProperty(notes = "品牌")
	private List<MerchantBrandRequest> merchantBrandList;*/

	@ApiModelProperty(notes = "品牌")
	private String merchantBrandJson;

	@ApiModelProperty(notes = "经度", dataType = "float")
	private Float longitude;

	@ApiModelProperty(notes = "纬度", dataType = "float")
	private Float latitude;

	@ApiModelProperty(notes = "省编码")
	private String provinceCode;

	@ApiModelProperty(notes = "省名称")
	private String provinceName;

	@ApiModelProperty(notes = "市编码")
	private String cityCode;

	@ApiModelProperty(notes = "市名称")
	private String cityName;

	@ApiModelProperty(notes ="商户详情地址")
	private String merchantAddress;

	@ApiModelProperty(notes = "驻店负责人")
	private ServiceMerchantStaffAllocation residentManager;

}