您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
738B

  1. package com.example.webapi.entity;
  2. import io.swagger.annotations.ApiModel;
  3. import io.swagger.annotations.ApiModelProperty;
  4. import lombok.Data;
  5. import javax.persistence.*;
  6. @Data
  7. @Entity
  8. @Table(name = "运输公司")
  9. @ApiModel(description = "运输公司实体")
  10. public class TransportCompany {
  11. @Id
  12. @Column(name = "编号")
  13. @ApiModelProperty(value = "公司ID", example = "1", notes = "主键,自动生成")
  14. private Integer id;
  15. @Column(name = "公司名称", length = 100)
  16. @ApiModelProperty(value = "公司名称", example = "福泉物流")
  17. private String name;
  18. @Column(name = "备注", length = 300)
  19. @ApiModelProperty(value = "备注", example = "长期合作伙伴")
  20. private String remark;
  21. }