ReqGoodsSkuInsert.java 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. package com.cyksj.model.manage.request;
  2. import com.baomidou.mybatisplus.annotation.FieldStrategy;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.cyksj.model.entity.GoodsDiscountPlusPurchaseRelation;
  5. import lombok.Getter;
  6. import lombok.Setter;
  7. import javax.validation.constraints.NotNull;
  8. import java.math.BigDecimal;
  9. import java.util.List;
  10. /**
  11. * @author chan
  12. * @date 2022/9/27 5:28 PM
  13. */
  14. @Getter
  15. @Setter
  16. public class ReqGoodsSkuInsert {
  17. private Long id;
  18. @NotNull(message = "请指定商品spu.")
  19. private Long goodsId;
  20. private List<ReqGoodsSkuSpec> specs;
  21. private List<Sku> skus;
  22. @Getter
  23. @Setter
  24. public static class Sku {
  25. /**
  26. * 商品规格 ids
  27. */
  28. private String specIds;
  29. /**
  30. * 副标题
  31. */
  32. private String subTitle;
  33. /**
  34. * 商品预览图
  35. */
  36. private String picture;
  37. /**
  38. * 商品详细图
  39. */
  40. private String detail;
  41. /**
  42. * 规格说明信息
  43. */
  44. private String notifyText;
  45. /**
  46. * H5标签
  47. */
  48. private String mobileTags;
  49. /**
  50. * 规格背景图
  51. */
  52. private String img;
  53. private String tags;
  54. private BigDecimal price;
  55. private BigDecimal renewPrice;
  56. /**
  57. * 专属用户规格
  58. */
  59. private String userOwns;
  60. /**
  61. * 数量
  62. */
  63. private Integer num;
  64. /**
  65. * 有效天数
  66. */
  67. private Integer days;
  68. /**
  69. * 月份
  70. */
  71. private Integer months;
  72. /**
  73. * 状态
  74. */
  75. private Boolean status;
  76. /**
  77. * 是否开启实物车票时长权益
  78. */
  79. private Boolean isBenefits;
  80. /**
  81. * 权益列表
  82. */
  83. private String benefitsList;
  84. /**
  85. * 优惠加购虚拟商品
  86. */
  87. private List<GoodsDiscountPlusPurchaseRelation> dpSku;
  88. /**
  89. * 特定价格
  90. */
  91. private BigDecimal specificPrice;
  92. /**
  93. * 特定平台购买用户人群
  94. */
  95. private String specificGoodsIds;
  96. /**
  97. * 规格框提示
  98. */
  99. private String smallMsg;
  100. /**
  101. * 双重验证码查看次数
  102. */
  103. private Integer codeNum;
  104. /**
  105. * 是否是镜像服务
  106. */
  107. private Boolean isMirror;
  108. /**
  109. * 排序
  110. */
  111. private Integer sorted;
  112. /**
  113. * 是否是车队形式
  114. */
  115. private Boolean isCar;
  116. /**
  117. * 限制次数
  118. */
  119. private int gptLimitNum;
  120. /**
  121. * 限制时间
  122. */
  123. private int gptLimitTime;
  124. /**
  125. * mj fast次数
  126. */
  127. private Integer mjFastNum;
  128. /**
  129. * mj relax次数
  130. */
  131. private Integer mjRelaxNum;
  132. private Integer lumaNum;
  133. /**
  134. * deepseek限制次数
  135. */
  136. private Integer dsLimitNum;
  137. /**
  138. * deepseek限制时间
  139. */
  140. private Long dsLimitTime;
  141. /**
  142. * 其他模型限制次数
  143. */
  144. private Integer otherLimitNum;
  145. /**
  146. * 其他模型限制时间
  147. */
  148. private Long otherLimitTime;
  149. /**
  150. * 备注
  151. */
  152. private String remark;
  153. /**
  154. * claude code每日限额
  155. */
  156. private Integer claudeDailyLimit;
  157. /**
  158. * Claude code 服务总额度
  159. */
  160. private Integer claudeQuota;
  161. /**
  162. * nano总配额次数
  163. */
  164. @TableField(updateStrategy = FieldStrategy.IGNORED)
  165. private Integer nanoQuota;
  166. /**
  167. * cc最高约可使用次数
  168. */
  169. @TableField(updateStrategy = FieldStrategy.IGNORED)
  170. private Integer highestUsage;
  171. /**
  172. * 是否赠送codex
  173. */
  174. private Boolean isCodex;
  175. /**
  176. * codex套餐名
  177. */
  178. private String codexPlanName;
  179. /**
  180. * 每日预算上限
  181. */
  182. @TableField(updateStrategy = FieldStrategy.IGNORED)
  183. private Integer openaiDailyLimit;
  184. /**
  185. * 每月预算上限
  186. */
  187. @TableField(updateStrategy = FieldStrategy.IGNORED)
  188. private Integer openaiQuota;
  189. private Boolean isDown;
  190. }
  191. }