MerchantsServiceCenterUpdateRequest.java 2.17 KB
package cn.com.glsx.busassistant.request;

import cn.com.glsx.busassistant.request.serviceCenter.MerchantBrandRequest;
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 MerchantsServiceCenterUpdateRequest extends AbstractRopRequest{

	@ApiModelProperty(notes="服务中心商户号,更新操作时必传", dataType="int", required = true)
	@NotNull(message = "服务中心商户号不能为空")
	private Integer merchantId;

	@ApiModelProperty(notes="服务中心名称", dataType="string", required = true)
	@NotBlank
	private String merchantName;

	@ApiModelProperty(notes="原服务中心名称", dataType="string", required = true)
	@NotBlank(message = "原服务中心名称不能为空")
	private String oldMerchantName;

	@ApiModelProperty(notes="联系人", dataType="string", required = true)
	@NotBlank
	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 = "联系电话非法")
	@NotBlank
	@ApiModelProperty(notes="联系电话", dataType="string", required = true)
	private String phone;

	@ApiModelProperty(notes="登录密码", dataType="string", required = true)
	@NotBlank
	private String password;

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

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

	@ApiModelProperty(notes = "经度")
	@NotNull
	private Float longitude;

	@ApiModelProperty(notes = "纬度")
	@NotNull
	private Float latitude;

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

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

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

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

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