mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-07-28 13:47:43 +02:00
remove dups
This commit is contained in:
parent
fc52d14ab1
commit
4f19da5395
@ -1,20 +0,0 @@
|
||||
package stirling.software.proprietary.security.model.api.admin;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Schema(description = "Response object containing a setting key and its value")
|
||||
public class SettingValueResponse {
|
||||
|
||||
@Schema(description = "The setting key in dot notation", example = "system.enableAnalytics")
|
||||
private String key;
|
||||
|
||||
@Schema(description = "The current value of the setting", example = "true")
|
||||
private Object value;
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
package stirling.software.proprietary.security.model.api.admin;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Schema(description = "Request object for updating a single setting value")
|
||||
public class UpdateSettingValueRequest {
|
||||
|
||||
@NotNull(message = "Setting value cannot be null")
|
||||
@Schema(description = "The new value for the setting", example = "true", required = true)
|
||||
private Object value;
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
package stirling.software.proprietary.security.model.api.admin;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Schema(
|
||||
description =
|
||||
"Request object for delta updates to application settings. Only include the settings you want to change. Uses dot notation for nested properties (e.g., 'system.enableAnalytics', 'ui.appName')")
|
||||
public class UpdateSettingsRequest {
|
||||
|
||||
@NotNull(message = "Settings map cannot be null")
|
||||
@NotEmpty(message = "Settings map cannot be empty")
|
||||
@Schema(
|
||||
description =
|
||||
"Map of setting keys to their new values. Only include changed settings (delta updates). Keys use dot notation for nested properties.",
|
||||
example =
|
||||
"{\n"
|
||||
+ " \"system.enableAnalytics\": true,\n"
|
||||
+ " \"ui.appName\": \"My Custom PDF Tool\",\n"
|
||||
+ " \"security.enableLogin\": false\n"
|
||||
+ "}",
|
||||
required = true)
|
||||
private Map<String, Object> settings;
|
||||
}
|
Loading…
Reference in New Issue
Block a user