提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.db.vo; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotNull; |
|
7 |
|
|
8 |
@Schema(description = "管理后台 - 数据源配置创建/修改 Request VO") |
|
9 |
@Data |
|
10 |
public class DataSourceConfigSaveReqVO { |
|
11 |
|
|
12 |
@Schema(description = "主键编号", example = "1024") |
|
13 |
private Long id; |
|
14 |
|
|
15 |
@Schema(description = "数据源名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "test") |
|
16 |
@NotNull(message = "数据源名称不能为空") |
|
17 |
private String name; |
|
18 |
|
|
19 |
@Schema(description = "数据源连接", requiredMode = Schema.RequiredMode.REQUIRED, example = "jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro") |
|
20 |
@NotNull(message = "数据源连接不能为空") |
|
21 |
private String url; |
|
22 |
|
|
23 |
@Schema(description = "用户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "root") |
|
24 |
@NotNull(message = "用户名不能为空") |
|
25 |
private String username; |
|
26 |
|
|
27 |
@Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
|
28 |
@NotNull(message = "密码不能为空") |
|
29 |
private String password; |
|
30 |
|
|
31 |
} |