Record Class ModifyDictReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.dict.entity.ModifyDictReq
- Record Components:
id- 字典 IDcode- 字典键label- 字典值ordinal- 排序号parentId- 上级字典 IDenabled- 启用状态
- All Implemented Interfaces:
io.github.xezzon.zeroweb.common.domain.UpdateRequest<Dict>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Alphanumeric @NotBlank @Size(max=255) Stringcode()Returns the value of thecoderecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringid()Returns the value of theidrecord component.@Size(max=255) Stringlabel()Returns the value of thelabelrecord component.@NotNull Integerordinal()Returns the value of theordinalrecord component.parentId()Returns the value of theparentIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModifyDictReq
public ModifyDictReq(@NotNull @NotNull String id, @Alphanumeric @NotBlank @Size(max=255) @Alphanumeric @NotBlank @Size(max=255) String code, @Size(max=255) @Size(max=255) String label, @NotNull @NotNull Integer ordinal, String parentId, Boolean enabled) Creates an instance of aModifyDictReqrecord class.- Parameters:
id- the value for theidrecord componentcode- the value for thecoderecord componentlabel- the value for thelabelrecord componentordinal- the value for theordinalrecord componentparentId- the value for theparentIdrecord componentenabled- the value for theenabledrecord component
-
-
Method Details
-
merge
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
code
-
label
-
ordinal
-
parentId
-
enabled
-