Record Class AddAttachmentReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.attachment.entity.AddAttachmentReq
- Record Components:
name- 文件名checksum- 文件摘要size- 文件大小。单位:字节。type- MIME 类型bizType- 业务类型bizId- 业务 ID
- All Implemented Interfaces:
io.github.xezzon.zeroweb.core.trait.Into<Attachment>
public record AddAttachmentReq(@NotBlank @Size(max=255) String name, @NotBlank @Size(max=128) String checksum, @NotNull @Positive Long size, @NotBlank @Size(max=255) String type, @NotBlank @Size(max=255) String bizType, String bizId)
extends Record
implements io.github.xezzon.zeroweb.core.trait.Into<Attachment>
新增附件请求体
- Author:
- xezzon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbizId()Returns the value of thebizIdrecord component.@NotBlank @Size(max=255) StringbizType()Returns the value of thebizTyperecord component.@NotBlank @Size(max=128) Stringchecksum()Returns the value of thechecksumrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.into()@NotBlank @Size(max=255) Stringname()Returns the value of thenamerecord component.@NotNull @Positive Longsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.@NotBlank @Size(max=255) Stringtype()Returns the value of thetyperecord component.
-
Constructor Details
-
AddAttachmentReq
public AddAttachmentReq(@NotBlank @Size(max=255) @NotBlank @Size(max=255) String name, @NotBlank @Size(max=128) @NotBlank @Size(max=128) String checksum, @NotNull @Positive @NotNull @Positive Long size, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String type, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String bizType, String bizId) Creates an instance of aAddAttachmentReqrecord class.- Parameters:
name- the value for thenamerecord componentchecksum- the value for thechecksumrecord componentsize- the value for thesizerecord componenttype- the value for thetyperecord componentbizType- the value for thebizTyperecord componentbizId- the value for thebizIdrecord component
-
-
Method Details
-
into
- Specified by:
intoin interfaceio.github.xezzon.zeroweb.core.trait.Into<Attachment>
-
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). -
name
-
checksum
-
size
-
type
-
bizType
-
bizId
-