feat(): 更改详情和添加的规范性
parent
e5597f3b49
commit
8c5fba2ea9
|
@ -0,0 +1,35 @@
|
||||||
|
$.{
|
||||||
|
"活动ID":"Long",
|
||||||
|
"商品ID":"Long", //activity_team_info.product_id
|
||||||
|
"商品图片":"String",
|
||||||
|
"活动名称":"String",
|
||||||
|
"活动简介":"String",
|
||||||
|
"商品单位":"String",
|
||||||
|
"商品的轮播图":[
|
||||||
|
"String",
|
||||||
|
"String"
|
||||||
|
],
|
||||||
|
"活动时间":"date",
|
||||||
|
"策略类型":"String",
|
||||||
|
"策略ID":"Long",
|
||||||
|
"商品规格":{
|
||||||
|
"商品规格List":[ // activity_team_product_sku_info
|
||||||
|
{
|
||||||
|
"规格Id":"Long",
|
||||||
|
"商品价格":"BigDecimal", // activity_team_product_sku_info.product_sku
|
||||||
|
"拼团价格":"BigDecimal",
|
||||||
|
"拼团库存":"Long" // 若是只修改库存可以直接写一个单独的修改库存接口
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"删除商品规格IdList":["Long","Long"],
|
||||||
|
"删除商品规格IdList":[
|
||||||
|
"商品SKU": "String",
|
||||||
|
"商品价格":"BigDecimal",
|
||||||
|
"拼团价格":"BigDecimal",
|
||||||
|
"拼团库存":"Long" // 若是只修改库存可以直接写一个单独的修改库存接口
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"状态":"String" //需要判断该商品是否已开启秒杀状态 若开启禁止修改 未开启则可以修改
|
||||||
|
"排序":"Integer",
|
||||||
|
"详情":"String"
|
||||||
|
}
|
|
@ -74,10 +74,7 @@ public class ActivityTeamInfo extends BaseEntity {
|
||||||
* 策略ID
|
* 策略ID
|
||||||
*/
|
*/
|
||||||
private Long strategyId;
|
private Long strategyId;
|
||||||
/**
|
|
||||||
* 商品SkU集合
|
|
||||||
*/
|
|
||||||
// private List<ActivityTeamProductSkuModel> teamProductSkuModelList;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 公共添加模型,转换成添加对象
|
* 公共添加模型,转换成添加对象
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class ActivityTeamController {
|
||||||
* @param
|
* @param
|
||||||
* @return 结果集
|
* @return 结果集
|
||||||
*/
|
*/
|
||||||
@PostMapping("/byId/{id}")
|
@GetMapping("/{id}")
|
||||||
public Result<ActivityTeamInfoDatailResp> findById(@PathVariable Long id) {
|
public Result<ActivityTeamInfoDatailResp> findById(@PathVariable Long id) {
|
||||||
ActivityTeamInfoDatailResp activityById = activityTeamInfoService.findActivityById(id);
|
ActivityTeamInfoDatailResp activityById = activityTeamInfoService.findActivityById(id);
|
||||||
return Result.success(activityById);
|
return Result.success(activityById);
|
||||||
|
|
|
@ -87,6 +87,11 @@ public class ActivityTeamInfoServiceImpl extends ServiceImpl<ActivityTeamInfoMap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询活动信息
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public ActivityTeamInfoDatailResp findActivityById(Long id) {
|
public ActivityTeamInfoDatailResp findActivityById(Long id) {
|
||||||
//查找根据活动Id规格信息
|
//查找根据活动Id规格信息
|
||||||
|
|
|
@ -97,4 +97,6 @@ public class ActivityTeamProductSkuInfoServiceImpl extends ServiceImpl<ActivityT
|
||||||
|
|
||||||
return teamInfoSkuListModelList;
|
return teamInfoSkuListModelList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue