Class Attachment

java.lang.Object
io.github.xezzon.zeroweb.attachment.Attachment
All Implemented Interfaces:
io.github.xezzon.zeroweb.common.jpa.IEntity<String>

@Entity public class Attachment extends Object implements io.github.xezzon.zeroweb.common.jpa.IEntity<String>
附件实体类,表示系统中存储的文件附件。
Author:
xezzon
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    生成附件在存储系统中的对象键(Object Key)。

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.github.xezzon.zeroweb.common.jpa.IEntity

    getId
  • Constructor Details

    • Attachment

      public Attachment()
  • Method Details

    • objectKey

      public String objectKey()
      生成附件在存储系统中的对象键(Object Key)。 对象键的格式为 yyyy/MM/dd/id,其中日期部分基于附件的创建时间(UTC)。
      Returns:
      附件在存储系统中的唯一对象键。