Post.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
  3. * <p>
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. * <p>
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. * <p>
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.springblade.modules.system.entity;
  17. import com.baomidou.mybatisplus.annotation.IdType;
  18. import com.baomidou.mybatisplus.annotation.TableId;
  19. import com.baomidou.mybatisplus.annotation.TableName;
  20. import io.swagger.annotations.ApiModel;
  21. import io.swagger.annotations.ApiModelProperty;
  22. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  23. import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
  24. import lombok.Data;
  25. import lombok.EqualsAndHashCode;
  26. import org.springblade.core.mp.base.TenantEntity;
  27. /**
  28. * 岗位表实体类
  29. *
  30. * @author Chill
  31. */
  32. @Data
  33. @TableName("blade_post")
  34. @EqualsAndHashCode(callSuper = true)
  35. @ApiModel(value = "Post对象", description = "岗位表")
  36. public class Post extends TenantEntity {
  37. private static final long serialVersionUID = 1L;
  38. /**
  39. * 主键id
  40. */
  41. @ApiModelProperty(value = "主键")
  42. @TableId(value = "id", type = IdType.ASSIGN_ID)
  43. @JsonSerialize(using = ToStringSerializer.class)
  44. private Long id;
  45. /**
  46. * 类型
  47. */
  48. @ApiModelProperty(value = "类型")
  49. private Integer category;
  50. /**
  51. * 岗位编号
  52. */
  53. @ApiModelProperty(value = "岗位编号")
  54. private String postCode;
  55. /**
  56. * 岗位名称
  57. */
  58. @ApiModelProperty(value = "岗位名称")
  59. private String postName;
  60. /**
  61. * 岗位排序
  62. */
  63. @ApiModelProperty(value = "岗位排序")
  64. private Integer sort;
  65. /**
  66. * 岗位描述
  67. */
  68. @ApiModelProperty(value = "岗位描述")
  69. private String remark;
  70. }