refactor(integration): 重构渲染工作器相关 DTO 类的字段命名

- 将蛇形命名法(snake_case)改为驼峰命名法(camelCase)
- 更新了以下几个 DTO 类的字段名: - RenderWorkerConfigV2DTO  - CreateRenderWorkerRequest - RenderWorkerV2DTO - RenderWorkerV2WithConfigDTO
  - UpdateRenderWorkerRequest- 主要更改集中在配置键、值、类型以及时间相关字段上
This commit is contained in:
2025-09-07 14:57:47 +08:00
parent e574f49177
commit 502eca10f6
5 changed files with 15 additions and 15 deletions

View File

@@ -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;
}

View File

@@ -26,6 +26,6 @@ public class CreateRenderWorkerRequest {
/**
* 是否启用 (0-禁用,1-启用)
*/
@JsonProperty("is_active")
@JsonProperty("isActive")
private Integer isActive = 1;
}

View File

@@ -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;
}

View File

@@ -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;

View File

@@ -22,6 +22,6 @@ public class UpdateRenderWorkerRequest {
/**
* 是否启用 (0-禁用,1-启用)
*/
@JsonProperty("is_active")
@JsonProperty("isActive")
private Integer isActive;
}