RequestModelCustomUpload.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package com.fdkk.sxz.vo.request;
  2. import com.alibaba.fastjson.JSONArray;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import io.swagger.annotations.ApiModelProperty;
  6. import lombok.Data;
  7. import java.util.Date;
  8. import java.util.List;
  9. @Data
  10. public class RequestModelCustomUpload {
  11. private Long id;
  12. @ApiModelProperty(value = "modelId 修改时候才会有", name = "modelId")
  13. private Long modelId;
  14. @ApiModelProperty(value = "保存时候填的name", name = "name")
  15. private String name;
  16. @ApiModelProperty(value = "用户id", name = "userId")
  17. private Long userId;
  18. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  19. private Date createTime;
  20. @ApiModelProperty(value = "成品分类id", name = "customTypeId")
  21. private Long customTypeId;
  22. @ApiModelProperty(value = "配件集合", name = "componentSlots")
  23. private List<Component> componentSlots;
  24. /**
  25. * 宽:毫米
  26. */
  27. @ApiModelProperty(value = "宽:毫米", name = "width")
  28. private Integer width;
  29. /**
  30. * 长:毫米
  31. */
  32. @ApiModelProperty(value = "长:毫米", name = "height")
  33. private Integer height;
  34. /**
  35. * 深度:毫米
  36. */
  37. @ApiModelProperty(value = "深度:毫米", name = "depth")
  38. private Integer depth;
  39. @Data
  40. public static class Component {
  41. private Long id;
  42. @ApiModelProperty(value = "modelId 修改时候才会有", name = "modelId")
  43. private Long modelId;
  44. @ApiModelProperty(value = "保存时候填的name", name = "name")
  45. private String name;
  46. @ApiModelProperty(value = "配件分类id", name = "customTypeId")
  47. private Long customComponentTypeId;
  48. /**
  49. * 宽:毫米
  50. */
  51. @ApiModelProperty(value = "宽:毫米", name = "width")
  52. private Integer width;
  53. /**
  54. * 长:毫米
  55. */
  56. @ApiModelProperty(value = "长:毫米", name = "height")
  57. private Integer height;
  58. /**
  59. * 深度:毫米
  60. */
  61. @ApiModelProperty(value = "深度:毫米", name = "depth")
  62. private Integer depth;
  63. @ApiModelProperty(value = "配件集合", name = "componentSlots")
  64. private Origin origin;
  65. @ApiModelProperty(value = "配件集合", name = "componentSlots")
  66. private String title;
  67. }
  68. @Data
  69. public static class Origin {
  70. private Integer x;
  71. private Integer y;
  72. private Integer z;
  73. }
  74. }