提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.sms.vo.channel; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
import org.hibernate.validator.constraints.URL; |
|
6 |
|
|
7 |
import javax.validation.constraints.NotNull; |
|
8 |
|
|
9 |
@Schema(description = "管理后台 - 短信渠道创建/修改 Request VO") |
|
10 |
@Data |
|
11 |
public class SmsChannelSaveReqVO { |
|
12 |
|
|
13 |
@Schema(description = "编号", example = "1024") |
|
14 |
private Long id; |
|
15 |
|
|
16 |
@Schema(description = "短信签名", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
17 |
@NotNull(message = "短信签名不能为空") |
|
18 |
private String signature; |
|
19 |
|
|
20 |
@Schema(description = "渠道编码,参见 SmsChannelEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "YUN_PIAN") |
|
21 |
@NotNull(message = "渠道编码不能为空") |
|
22 |
private String code; |
|
23 |
|
|
24 |
@Schema(description = "启用状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
25 |
@NotNull(message = "启用状态不能为空") |
|
26 |
private Integer status; |
|
27 |
|
|
28 |
@Schema(description = "备注", example = "好吃!") |
|
29 |
private String remark; |
|
30 |
|
|
31 |
@Schema(description = "短信 API 的账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
32 |
@NotNull(message = "短信 API 的账号不能为空") |
|
33 |
private String apiKey; |
|
34 |
|
|
35 |
@Schema(description = "短信 API 的密钥", example = "yuanma") |
|
36 |
private String apiSecret; |
|
37 |
|
|
38 |
@Schema(description = "短信发送回调 URL", example = "") |
|
39 |
@URL(message = "回调 URL 格式不正确") |
|
40 |
private String callbackUrl; |
|
41 |
|
|
42 |
} |