공통코드 중복체크,등록,수정,순서저장 API 커밋
This commit is contained in:
@@ -2,7 +2,6 @@ package com.kamco.cd.kamcoback.code.dto;
|
||||
|
||||
import com.kamco.cd.kamcoback.common.utils.interfaces.JsonFormatDttm;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import java.time.ZonedDateTime;
|
||||
@@ -39,10 +38,8 @@ public class CommonCodeDto {
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class ModifyReq {
|
||||
@NotEmpty private String code;
|
||||
@NotEmpty private String name;
|
||||
private String description;
|
||||
private int order;
|
||||
private boolean used;
|
||||
|
||||
private String props1;
|
||||
@@ -56,7 +53,8 @@ public class CommonCodeDto {
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class OrderReq {
|
||||
@Valid List<OrderReqDetail> orders;
|
||||
@NotNull private Long id;
|
||||
@NotNull private Integer order;
|
||||
}
|
||||
|
||||
@Getter
|
||||
@@ -65,7 +63,6 @@ public class CommonCodeDto {
|
||||
@AllArgsConstructor
|
||||
public static class OrderReqDetail {
|
||||
@NotNull private Long id;
|
||||
|
||||
@NotNull private Integer order;
|
||||
}
|
||||
|
||||
@@ -90,8 +87,7 @@ public class CommonCodeDto {
|
||||
private String props2;
|
||||
private String props3;
|
||||
|
||||
@JsonFormatDttm
|
||||
private ZonedDateTime deletedDttm;
|
||||
@JsonFormatDttm private ZonedDateTime deletedDttm;
|
||||
|
||||
public Basic(
|
||||
Long id,
|
||||
@@ -107,8 +103,7 @@ public class CommonCodeDto {
|
||||
String props1,
|
||||
String props2,
|
||||
String props3,
|
||||
ZonedDateTime deletedDttm
|
||||
) {
|
||||
ZonedDateTime deletedDttm) {
|
||||
this.id = id;
|
||||
this.code = code;
|
||||
this.description = description;
|
||||
|
||||
Reference in New Issue
Block a user