You've already forked FrameTour-BE
refactor(integration): 重构渲染工作器相关 DTO 类的字段命名
- 将蛇形命名法(snake_case)改为驼峰命名法(camelCase) - 更新了以下几个 DTO 类的字段名: - RenderWorkerConfigV2DTO - CreateRenderWorkerRequest - RenderWorkerV2DTO - RenderWorkerV2WithConfigDTO - UpdateRenderWorkerRequest- 主要更改集中在配置键、值、类型以及时间相关字段上
This commit is contained in:
@@ -17,25 +17,25 @@ public class RenderWorkerConfigV2DTO {
|
||||
/**
|
||||
* 工作器ID
|
||||
*/
|
||||
@JsonProperty("worker_id")
|
||||
@JsonProperty("workerId")
|
||||
private Long workerId;
|
||||
|
||||
/**
|
||||
* 配置键
|
||||
*/
|
||||
@JsonProperty("config_key")
|
||||
@JsonProperty("configKey")
|
||||
private String configKey;
|
||||
|
||||
/**
|
||||
* 配置值
|
||||
*/
|
||||
@JsonProperty("config_value")
|
||||
@JsonProperty("configValue")
|
||||
private String configValue;
|
||||
|
||||
/**
|
||||
* 配置类型 (string/int/float/bool/json)
|
||||
*/
|
||||
@JsonProperty("config_type")
|
||||
@JsonProperty("configType")
|
||||
private String configType;
|
||||
|
||||
/**
|
||||
@@ -46,18 +46,18 @@ public class RenderWorkerConfigV2DTO {
|
||||
/**
|
||||
* 是否启用 (0-禁用,1-启用)
|
||||
*/
|
||||
@JsonProperty("is_active")
|
||||
@JsonProperty("isActive")
|
||||
private Integer isActive;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonProperty("create_time")
|
||||
@JsonProperty("createTime")
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonProperty("update_time")
|
||||
@JsonProperty("updateTime")
|
||||
private String updateTime;
|
||||
}
|
@@ -26,6 +26,6 @@ public class CreateRenderWorkerRequest {
|
||||
/**
|
||||
* 是否启用 (0-禁用,1-启用)
|
||||
*/
|
||||
@JsonProperty("is_active")
|
||||
@JsonProperty("isActive")
|
||||
private Integer isActive = 1;
|
||||
}
|
@@ -30,20 +30,20 @@ public class RenderWorkerV2DTO {
|
||||
/**
|
||||
* 是否启用 (0-禁用,1-启用)
|
||||
*/
|
||||
@JsonProperty("is_active")
|
||||
@JsonProperty("isActive")
|
||||
private Integer isActive;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonProperty("create_time")
|
||||
@JsonProperty("createTime")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonProperty("update_time")
|
||||
@JsonProperty("updateTime")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date updateTime;
|
||||
}
|
@@ -31,20 +31,20 @@ public class RenderWorkerV2WithConfigDTO {
|
||||
/**
|
||||
* 是否启用 (0-禁用,1-启用)
|
||||
*/
|
||||
@JsonProperty("is_active")
|
||||
@JsonProperty("isActive")
|
||||
private Integer isActive;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonProperty("create_time")
|
||||
@JsonProperty("createTime")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@JsonProperty("update_time")
|
||||
@JsonProperty("updateTime")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date updateTime;
|
||||
|
||||
|
@@ -22,6 +22,6 @@ public class UpdateRenderWorkerRequest {
|
||||
/**
|
||||
* 是否启用 (0-禁用,1-启用)
|
||||
*/
|
||||
@JsonProperty("is_active")
|
||||
@JsonProperty("isActive")
|
||||
private Integer isActive;
|
||||
}
|
Reference in New Issue
Block a user