Message.java 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the dreamlu.net developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: Chill 庄骞 (smallchill@163.com)
  16. */
  17. package org.springblade.bank.message.entity;
  18. import com.baomidou.mybatisplus.annotation.TableName;
  19. import com.fasterxml.jackson.annotation.JsonFormat;
  20. import org.springblade.core.mp.base.BaseEntity;
  21. import java.time.LocalDateTime;
  22. import java.util.Date;
  23. import lombok.Data;
  24. import lombok.EqualsAndHashCode;
  25. import io.swagger.annotations.ApiModel;
  26. import io.swagger.annotations.ApiModelProperty;
  27. import org.springframework.format.annotation.DateTimeFormat;
  28. /**
  29. * 信息發佈实体类
  30. *
  31. * @author BladeX
  32. * @since 2021-08-13
  33. */
  34. @Data
  35. @TableName("zh_message")
  36. @EqualsAndHashCode(callSuper = true)
  37. @ApiModel(value = "Message对象", description = "信息發佈")
  38. public class Message extends BaseEntity {
  39. private static final long serialVersionUID = 1L;
  40. /**
  41. * 標題
  42. */
  43. @ApiModelProperty(value = "標題")
  44. private String title;
  45. /**
  46. * 內文
  47. */
  48. @ApiModelProperty(value = "內文")
  49. private String name;
  50. /**
  51. * 附件
  52. */
  53. @ApiModelProperty(value = "附件")
  54. private String file;
  55. private Long personId;
  56. /**
  57. * 審批人
  58. */
  59. @ApiModelProperty(value = "審批人")
  60. private String personName;
  61. /**
  62. * 審批時間
  63. */
  64. @ApiModelProperty(value = "審批時間")
  65. @DateTimeFormat(
  66. pattern = "yyyy-MM-dd HH:mm:ss"
  67. )
  68. @JsonFormat(
  69. pattern = "yyyy-MM-dd HH:mm:ss"
  70. )
  71. private Date approveTime;
  72. /**
  73. * 節點
  74. */
  75. @ApiModelProperty(value = "節點")
  76. private Integer process;
  77. /**
  78. * 是否已完成
  79. */
  80. @ApiModelProperty(value = "是否已完成")
  81. private Integer isCompleted;
  82. }