| | |
| | | private Integer vipId; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "指定门店") |
| | | private List<GoodsShop> goodsShopList; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "指定用户") |
| | | private List<GoodsAppUser> goodsAppUserList; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "会员价格") |
| | | private List<GoodsVip> goodsVipList; |
| | | |
| | | @TableField(exist = false) |
| | | @ApiModelProperty(value = "地区价格") |
| | | private List<GoodsArea> goodsAreaList; |
| | | |
| | | |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_goods_app_user") |
| | | @ApiModel(value="GoodsAppUser对象", description="") |
| | | @ApiModel(value="指定用户对象", description="") |
| | | public class GoodsAppUser implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_goods_area") |
| | | @ApiModel(value="GoodsArea对象", description="") |
| | | @ApiModel(value="商品地区价格对象", description="") |
| | | public class GoodsArea implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_goods_shop") |
| | | @ApiModel(value="GoodsShop对象", description="") |
| | | @ApiModel(value="指定门店对象", description="") |
| | | public class GoodsShop implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_goods_vip") |
| | | @ApiModel(value="GoodsVip对象", description="") |
| | | @ApiModel(value="会员价格对象", description="") |
| | | public class GoodsVip implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | * 添加商品 |
| | | */ |
| | | @PostMapping("/addGoods") |
| | | @ApiOperation(value = "添加商品", tags = {"管理后台-商品管理-发布商品"}) |
| | | @ApiOperation(value = "后台商品添加", tags = {"管理后台-商品管理-发布商品"}) |
| | | public R<Void> addGoods(@RequestBody Goods goods) { |
| | | goodsService.addGoods(goods); |
| | | return R.ok(); |