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.core.trait.Into<Dict>
public record ModifyDictReq(@NotNull String id, @Alphanumeric @NotBlank @Size(max=255) String code, @Size(max=255) String label, @NotNull Integer ordinal, String parentId, Boolean enabled)
extends Record
implements io.github.xezzon.zeroweb.core.trait.Into<Dict>
修改字典请求对象
用于封装修改字典项的请求参数。
该对象实现了 Into 接口,可以转换为 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.into()转换为字典实体对象@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
-
into
-
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
-