MerchantsServiceCenterUpdateRequest.java
2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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;
}