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
| package com.talentcard.server.business.admin;
|
| import jakarta.validation.constraints.NotBlank;
| import jakarta.validation.constraints.NotNull;
| import jakarta.validation.constraints.Size;
| import jakarta.validation.Valid;
|
| import java.util.List;
| import java.util.Map;
|
| public record MerchantCreateRequest(
| @NotBlank
| @Size(max = 128)
| String merchantName,
| @Size(max = 64)
| String merchantType,
| @Size(max = 64)
| String contactName,
| @NotBlank(message = "请输入联系电话")
| @Size(max = 20)
| String contactMobile,
| @NotBlank(message = "请输入商家地址")
| @Size(max = 255)
| String address,
| String logoUrl,
| @NotBlank(message = "请上传商家封面图")
| String coverUrl,
| @Size(max = 32)
| String businessStatus,
| Byte recommend,
| @NotNull(message = "请输入排序")
| Integer sortNo,
| Double longitude,
| Double latitude,
| Byte groupBuyingEnabled,
| String usageInstructions,
| String rightsText,
| List<Map<String, Object>> merchantRightsConfig,
| @Size(max = 64)
| String serviceLabel,
| List<@Valid MerchantBusinessHourRequest> businessHours,
| Byte canLoginMerchantApp,
| @Size(max = 32) String loginAccount,
| @Size(max = 64) String loginPassword
| ) {
| }
|
|