parent
0d9157daac
commit
427dfc49c0
@ -1,13 +0,0 @@
|
||||
package com.bookstore.bookmall.bookproduct;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class BookProductApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BookProductApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.AttrAttrgroupRelationEntity;
|
||||
import com.bookstore.bookmall.product.service.AttrAttrgroupRelationService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 属性&属性分组关联
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/attrattrgrouprelation")
|
||||
public class AttrAttrgroupRelationController {
|
||||
@Autowired
|
||||
private AttrAttrgroupRelationService attrAttrgroupRelationService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:attrattrgrouprelation:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = attrAttrgroupRelationService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
@RequiresPermissions("product:attrattrgrouprelation:info") //shiro的权限注解
|
||||
public R info(@PathVariable("id") Long id){
|
||||
AttrAttrgroupRelationEntity attrAttrgroupRelation = attrAttrgroupRelationService.getById(id);
|
||||
|
||||
return R.ok().put("attrAttrgroupRelation", attrAttrgroupRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:attrattrgrouprelation:save")
|
||||
public R save(@RequestBody AttrAttrgroupRelationEntity attrAttrgroupRelation){
|
||||
attrAttrgroupRelationService.save(attrAttrgroupRelation);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:attrattrgrouprelation:update")
|
||||
public R update(@RequestBody AttrAttrgroupRelationEntity attrAttrgroupRelation){
|
||||
attrAttrgroupRelationService.updateById(attrAttrgroupRelation);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:attrattrgrouprelation:delete")
|
||||
public R delete(@RequestBody Long[] ids){
|
||||
attrAttrgroupRelationService.removeByIds(Arrays.asList(ids));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.AttrEntity;
|
||||
import com.bookstore.bookmall.product.service.AttrService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 商品属性
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/attr")
|
||||
public class AttrController {
|
||||
@Autowired
|
||||
private AttrService attrService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:attr:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = attrService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{attrId}")
|
||||
@RequiresPermissions("product:attr:info")
|
||||
public R info(@PathVariable("attrId") Long attrId){
|
||||
AttrEntity attr = attrService.getById(attrId);
|
||||
|
||||
return R.ok().put("attr", attr);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:attr:save")
|
||||
public R save(@RequestBody AttrEntity attr){
|
||||
attrService.save(attr);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:attr:update")
|
||||
public R update(@RequestBody AttrEntity attr){
|
||||
attrService.updateById(attr);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:attr:delete")
|
||||
public R delete(@RequestBody Long[] attrIds){
|
||||
attrService.removeByIds(Arrays.asList(attrIds));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.AttrGroupEntity;
|
||||
import com.bookstore.bookmall.product.service.AttrGroupService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 属性分组
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/attrgroup")
|
||||
public class AttrGroupController {
|
||||
@Autowired
|
||||
private AttrGroupService attrGroupService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:attrgroup:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = attrGroupService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{attrGroupId}")
|
||||
@RequiresPermissions("product:attrgroup:info")
|
||||
public R info(@PathVariable("attrGroupId") Long attrGroupId){
|
||||
AttrGroupEntity attrGroup = attrGroupService.getById(attrGroupId);
|
||||
|
||||
return R.ok().put("attrGroup", attrGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:attrgroup:save")
|
||||
public R save(@RequestBody AttrGroupEntity attrGroup){
|
||||
attrGroupService.save(attrGroup);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:attrgroup:update")
|
||||
public R update(@RequestBody AttrGroupEntity attrGroup){
|
||||
attrGroupService.updateById(attrGroup);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:attrgroup:delete")
|
||||
public R delete(@RequestBody Long[] attrGroupIds){
|
||||
attrGroupService.removeByIds(Arrays.asList(attrGroupIds));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.BrandEntity;
|
||||
import com.bookstore.bookmall.product.service.BrandService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 品牌
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/brand")
|
||||
public class BrandController {
|
||||
@Autowired
|
||||
private BrandService brandService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:brand:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = brandService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{brandId}")
|
||||
@RequiresPermissions("product:brand:info")
|
||||
public R info(@PathVariable("brandId") Long brandId){
|
||||
BrandEntity brand = brandService.getById(brandId);
|
||||
|
||||
return R.ok().put("brand", brand);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:brand:save")
|
||||
public R save(@RequestBody BrandEntity brand){
|
||||
brandService.save(brand);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:brand:update")
|
||||
public R update(@RequestBody BrandEntity brand){
|
||||
brandService.updateById(brand);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:brand:delete")
|
||||
public R delete(@RequestBody Long[] brandIds){
|
||||
brandService.removeByIds(Arrays.asList(brandIds));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.CategoryBrandRelationEntity;
|
||||
import com.bookstore.bookmall.product.service.CategoryBrandRelationService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 品牌分类关联
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/categorybrandrelation")
|
||||
public class CategoryBrandRelationController {
|
||||
@Autowired
|
||||
private CategoryBrandRelationService categoryBrandRelationService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:categorybrandrelation:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = categoryBrandRelationService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
@RequiresPermissions("product:categorybrandrelation:info")
|
||||
public R info(@PathVariable("id") Long id){
|
||||
CategoryBrandRelationEntity categoryBrandRelation = categoryBrandRelationService.getById(id);
|
||||
|
||||
return R.ok().put("categoryBrandRelation", categoryBrandRelation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:categorybrandrelation:save")
|
||||
public R save(@RequestBody CategoryBrandRelationEntity categoryBrandRelation){
|
||||
categoryBrandRelationService.save(categoryBrandRelation);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:categorybrandrelation:update")
|
||||
public R update(@RequestBody CategoryBrandRelationEntity categoryBrandRelation){
|
||||
categoryBrandRelationService.updateById(categoryBrandRelation);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:categorybrandrelation:delete")
|
||||
public R delete(@RequestBody Long[] ids){
|
||||
categoryBrandRelationService.removeByIds(Arrays.asList(ids));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.CategoryEntity;
|
||||
import com.bookstore.bookmall.product.service.CategoryService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 商品三级分类
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/category")
|
||||
public class CategoryController {
|
||||
@Autowired
|
||||
private CategoryService categoryService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:category:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = categoryService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{catId}")
|
||||
@RequiresPermissions("product:category:info")
|
||||
public R info(@PathVariable("catId") Long catId){
|
||||
CategoryEntity category = categoryService.getById(catId);
|
||||
|
||||
return R.ok().put("category", category);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:category:save")
|
||||
public R save(@RequestBody CategoryEntity category){
|
||||
categoryService.save(category);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:category:update")
|
||||
public R update(@RequestBody CategoryEntity category){
|
||||
categoryService.updateById(category);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:category:delete")
|
||||
public R delete(@RequestBody Long[] catIds){
|
||||
categoryService.removeByIds(Arrays.asList(catIds));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.CommentReplayEntity;
|
||||
import com.bookstore.bookmall.product.service.CommentReplayService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 商品评价回复关系
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/commentreplay")
|
||||
public class CommentReplayController {
|
||||
@Autowired
|
||||
private CommentReplayService commentReplayService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:commentreplay:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = commentReplayService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
@RequiresPermissions("product:commentreplay:info")
|
||||
public R info(@PathVariable("id") Long id){
|
||||
CommentReplayEntity commentReplay = commentReplayService.getById(id);
|
||||
|
||||
return R.ok().put("commentReplay", commentReplay);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:commentreplay:save")
|
||||
public R save(@RequestBody CommentReplayEntity commentReplay){
|
||||
commentReplayService.save(commentReplay);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:commentreplay:update")
|
||||
public R update(@RequestBody CommentReplayEntity commentReplay){
|
||||
commentReplayService.updateById(commentReplay);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:commentreplay:delete")
|
||||
public R delete(@RequestBody Long[] ids){
|
||||
commentReplayService.removeByIds(Arrays.asList(ids));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.ProductAttrValueEntity;
|
||||
import com.bookstore.bookmall.product.service.ProductAttrValueService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* spu属性值
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/productattrvalue")
|
||||
public class ProductAttrValueController {
|
||||
@Autowired
|
||||
private ProductAttrValueService productAttrValueService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:productattrvalue:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = productAttrValueService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
@RequiresPermissions("product:productattrvalue:info")
|
||||
public R info(@PathVariable("id") Long id){
|
||||
ProductAttrValueEntity productAttrValue = productAttrValueService.getById(id);
|
||||
|
||||
return R.ok().put("productAttrValue", productAttrValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:productattrvalue:save")
|
||||
public R save(@RequestBody ProductAttrValueEntity productAttrValue){
|
||||
productAttrValueService.save(productAttrValue);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:productattrvalue:update")
|
||||
public R update(@RequestBody ProductAttrValueEntity productAttrValue){
|
||||
productAttrValueService.updateById(productAttrValue);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:productattrvalue:delete")
|
||||
public R delete(@RequestBody Long[] ids){
|
||||
productAttrValueService.removeByIds(Arrays.asList(ids));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SkuImagesEntity;
|
||||
import com.bookstore.bookmall.product.service.SkuImagesService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* sku图片
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/skuimages")
|
||||
public class SkuImagesController {
|
||||
@Autowired
|
||||
private SkuImagesService skuImagesService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:skuimages:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = skuImagesService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
@RequiresPermissions("product:skuimages:info")
|
||||
public R info(@PathVariable("id") Long id){
|
||||
SkuImagesEntity skuImages = skuImagesService.getById(id);
|
||||
|
||||
return R.ok().put("skuImages", skuImages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:skuimages:save")
|
||||
public R save(@RequestBody SkuImagesEntity skuImages){
|
||||
skuImagesService.save(skuImages);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:skuimages:update")
|
||||
public R update(@RequestBody SkuImagesEntity skuImages){
|
||||
skuImagesService.updateById(skuImages);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:skuimages:delete")
|
||||
public R delete(@RequestBody Long[] ids){
|
||||
skuImagesService.removeByIds(Arrays.asList(ids));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SkuInfoEntity;
|
||||
import com.bookstore.bookmall.product.service.SkuInfoService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* sku信息
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/skuinfo")
|
||||
public class SkuInfoController {
|
||||
@Autowired
|
||||
private SkuInfoService skuInfoService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:skuinfo:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = skuInfoService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{skuId}")
|
||||
@RequiresPermissions("product:skuinfo:info")
|
||||
public R info(@PathVariable("skuId") Long skuId){
|
||||
SkuInfoEntity skuInfo = skuInfoService.getById(skuId);
|
||||
|
||||
return R.ok().put("skuInfo", skuInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:skuinfo:save")
|
||||
public R save(@RequestBody SkuInfoEntity skuInfo){
|
||||
skuInfoService.save(skuInfo);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:skuinfo:update")
|
||||
public R update(@RequestBody SkuInfoEntity skuInfo){
|
||||
skuInfoService.updateById(skuInfo);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:skuinfo:delete")
|
||||
public R delete(@RequestBody Long[] skuIds){
|
||||
skuInfoService.removeByIds(Arrays.asList(skuIds));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SkuSaleAttrValueEntity;
|
||||
import com.bookstore.bookmall.product.service.SkuSaleAttrValueService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* sku销售属性&值
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/skusaleattrvalue")
|
||||
public class SkuSaleAttrValueController {
|
||||
@Autowired
|
||||
private SkuSaleAttrValueService skuSaleAttrValueService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:skusaleattrvalue:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = skuSaleAttrValueService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
@RequiresPermissions("product:skusaleattrvalue:info")
|
||||
public R info(@PathVariable("id") Long id){
|
||||
SkuSaleAttrValueEntity skuSaleAttrValue = skuSaleAttrValueService.getById(id);
|
||||
|
||||
return R.ok().put("skuSaleAttrValue", skuSaleAttrValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:skusaleattrvalue:save")
|
||||
public R save(@RequestBody SkuSaleAttrValueEntity skuSaleAttrValue){
|
||||
skuSaleAttrValueService.save(skuSaleAttrValue);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:skusaleattrvalue:update")
|
||||
public R update(@RequestBody SkuSaleAttrValueEntity skuSaleAttrValue){
|
||||
skuSaleAttrValueService.updateById(skuSaleAttrValue);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:skusaleattrvalue:delete")
|
||||
public R delete(@RequestBody Long[] ids){
|
||||
skuSaleAttrValueService.removeByIds(Arrays.asList(ids));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SpuCommentEntity;
|
||||
import com.bookstore.bookmall.product.service.SpuCommentService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 商品评价
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/spucomment")
|
||||
public class SpuCommentController {
|
||||
@Autowired
|
||||
private SpuCommentService spuCommentService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:spucomment:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = spuCommentService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
@RequiresPermissions("product:spucomment:info")
|
||||
public R info(@PathVariable("id") Long id){
|
||||
SpuCommentEntity spuComment = spuCommentService.getById(id);
|
||||
|
||||
return R.ok().put("spuComment", spuComment);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:spucomment:save")
|
||||
public R save(@RequestBody SpuCommentEntity spuComment){
|
||||
spuCommentService.save(spuComment);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:spucomment:update")
|
||||
public R update(@RequestBody SpuCommentEntity spuComment){
|
||||
spuCommentService.updateById(spuComment);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:spucomment:delete")
|
||||
public R delete(@RequestBody Long[] ids){
|
||||
spuCommentService.removeByIds(Arrays.asList(ids));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SpuImagesEntity;
|
||||
import com.bookstore.bookmall.product.service.SpuImagesService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* spu图片
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/spuimages")
|
||||
public class SpuImagesController {
|
||||
@Autowired
|
||||
private SpuImagesService spuImagesService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:spuimages:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = spuImagesService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
@RequiresPermissions("product:spuimages:info")
|
||||
public R info(@PathVariable("id") Long id){
|
||||
SpuImagesEntity spuImages = spuImagesService.getById(id);
|
||||
|
||||
return R.ok().put("spuImages", spuImages);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:spuimages:save")
|
||||
public R save(@RequestBody SpuImagesEntity spuImages){
|
||||
spuImagesService.save(spuImages);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:spuimages:update")
|
||||
public R update(@RequestBody SpuImagesEntity spuImages){
|
||||
spuImagesService.updateById(spuImages);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:spuimages:delete")
|
||||
public R delete(@RequestBody Long[] ids){
|
||||
spuImagesService.removeByIds(Arrays.asList(ids));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SpuInfoEntity;
|
||||
import com.bookstore.bookmall.product.service.SpuInfoService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* spu信息
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/spuinfo")
|
||||
public class SpuInfoController {
|
||||
@Autowired
|
||||
private SpuInfoService spuInfoService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:spuinfo:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = spuInfoService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
@RequiresPermissions("product:spuinfo:info")
|
||||
public R info(@PathVariable("id") Long id){
|
||||
SpuInfoEntity spuInfo = spuInfoService.getById(id);
|
||||
|
||||
return R.ok().put("spuInfo", spuInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:spuinfo:save")
|
||||
public R save(@RequestBody SpuInfoEntity spuInfo){
|
||||
spuInfoService.save(spuInfo);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:spuinfo:update")
|
||||
public R update(@RequestBody SpuInfoEntity spuInfo){
|
||||
spuInfoService.updateById(spuInfo);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:spuinfo:delete")
|
||||
public R delete(@RequestBody Long[] ids){
|
||||
spuInfoService.removeByIds(Arrays.asList(ids));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.bookstore.bookmall.product.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SpuInfoDescEntity;
|
||||
import com.bookstore.bookmall.product.service.SpuInfoDescService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* spu信息介绍
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("product/spuinfodesc")
|
||||
public class SpuInfoDescController {
|
||||
@Autowired
|
||||
private SpuInfoDescService spuInfoDescService;
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
@RequiresPermissions("product:spuinfodesc:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = spuInfoDescService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{spuId}")
|
||||
@RequiresPermissions("product:spuinfodesc:info")
|
||||
public R info(@PathVariable("spuId") Long spuId){
|
||||
SpuInfoDescEntity spuInfoDesc = spuInfoDescService.getById(spuId);
|
||||
|
||||
return R.ok().put("spuInfoDesc", spuInfoDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
@RequiresPermissions("product:spuinfodesc:save")
|
||||
public R save(@RequestBody SpuInfoDescEntity spuInfoDesc){
|
||||
spuInfoDescService.save(spuInfoDesc);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
@RequiresPermissions("product:spuinfodesc:update")
|
||||
public R update(@RequestBody SpuInfoDescEntity spuInfoDesc){
|
||||
spuInfoDescService.updateById(spuInfoDesc);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
@RequiresPermissions("product:spuinfodesc:delete")
|
||||
public R delete(@RequestBody Long[] spuIds){
|
||||
spuInfoDescService.removeByIds(Arrays.asList(spuIds));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.AttrAttrgroupRelationEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 属性&属性分组关联
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.AttrEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 商品属性
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface AttrDao extends BaseMapper<AttrEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.AttrGroupEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 属性分组
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.BrandEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 品牌
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface BrandDao extends BaseMapper<BrandEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.CategoryBrandRelationEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 品牌分类关联
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.CategoryEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 商品三级分类
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface CategoryDao extends BaseMapper<CategoryEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.CommentReplayEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 商品评价回复关系
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface CommentReplayDao extends BaseMapper<CommentReplayEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.ProductAttrValueEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* spu属性值
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface ProductAttrValueDao extends BaseMapper<ProductAttrValueEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SkuImagesEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* sku图片
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface SkuImagesDao extends BaseMapper<SkuImagesEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SkuInfoEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* sku信息
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface SkuInfoDao extends BaseMapper<SkuInfoEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SkuSaleAttrValueEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* sku销售属性&值
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface SkuSaleAttrValueDao extends BaseMapper<SkuSaleAttrValueEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SpuCommentEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 商品评价
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface SpuCommentDao extends BaseMapper<SpuCommentEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SpuImagesEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* spu图片
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface SpuImagesDao extends BaseMapper<SpuImagesEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SpuInfoEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* spu信息
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bookstore.bookmall.product.dao;
|
||||
|
||||
import com.bookstore.bookmall.product.entity.SpuInfoDescEntity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* spu信息介绍
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Mapper
|
||||
public interface SpuInfoDescDao extends BaseMapper<SpuInfoDescEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.bookstore.bookmall.product.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 属性&属性分组关联
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_attr_attrgroup_relation")
|
||||
public class AttrAttrgroupRelationEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 属性id
|
||||
*/
|
||||
private Long attrId;
|
||||
/**
|
||||
* 属性分组id
|
||||
*/
|
||||
private Long attrGroupId;
|
||||
/**
|
||||
* 属性组内排序
|
||||
*/
|
||||
private Integer attrSort;
|
||||
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package com.bookstore.bookmall.product.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 属性分组
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_attr_group")
|
||||
public class AttrGroupEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 分组id
|
||||
*/
|
||||
@TableId
|
||||
private Long attrGroupId;
|
||||
/**
|
||||
* 组名
|
||||
*/
|
||||
private String attrGroupName;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sort;
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
private String descript;
|
||||
/**
|
||||
* 组图标
|
||||
*/
|
||||
private String icon;
|
||||
/**
|
||||
* 所属分类id
|
||||
*/
|
||||
private Long catelogId;
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package com.bookstore.bookmall.product.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 品牌分类关联
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_category_brand_relation")
|
||||
public class CategoryBrandRelationEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 品牌id
|
||||
*/
|
||||
private Long brandId;
|
||||
/**
|
||||
* 分类id
|
||||
*/
|
||||
private Long catelogId;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String brandName;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String catelogName;
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package com.bookstore.bookmall.product.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 商品评价回复关系
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_comment_replay")
|
||||
public class CommentReplayEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 评论id
|
||||
*/
|
||||
private Long commentId;
|
||||
/**
|
||||
* 回复id
|
||||
*/
|
||||
private Long replyId;
|
||||
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package com.bookstore.bookmall.product.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* sku信息
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_sku_info")
|
||||
public class SkuInfoEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* skuId
|
||||
*/
|
||||
@TableId
|
||||
private Long skuId;
|
||||
/**
|
||||
* spuId
|
||||
*/
|
||||
private Long spuId;
|
||||
/**
|
||||
* sku名称
|
||||
*/
|
||||
private String skuName;
|
||||
/**
|
||||
* sku介绍描述
|
||||
*/
|
||||
private String skuDesc;
|
||||
/**
|
||||
* 所属分类id
|
||||
*/
|
||||
private Long catalogId;
|
||||
/**
|
||||
* 品牌id
|
||||
*/
|
||||
private Long brandId;
|
||||
/**
|
||||
* 默认图片
|
||||
*/
|
||||
private String skuDefaultImg;
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
private String skuTitle;
|
||||
/**
|
||||
* 副标题
|
||||
*/
|
||||
private String skuSubtitle;
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
private BigDecimal price;
|
||||
/**
|
||||
* 销量
|
||||
*/
|
||||
private Long saleCount;
|
||||
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package com.bookstore.bookmall.product.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* sku销售属性&值
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_sku_sale_attr_value")
|
||||
public class SkuSaleAttrValueEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* sku_id
|
||||
*/
|
||||
private Long skuId;
|
||||
/**
|
||||
* attr_id
|
||||
*/
|
||||
private Long attrId;
|
||||
/**
|
||||
* 销售属性名
|
||||
*/
|
||||
private String attrName;
|
||||
/**
|
||||
* 销售属性值
|
||||
*/
|
||||
private String attrValue;
|
||||
/**
|
||||
* 顺序
|
||||
*/
|
||||
private Integer attrSort;
|
||||
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package com.bookstore.bookmall.product.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* spu图片
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_spu_images")
|
||||
public class SpuImagesEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* spu_id
|
||||
*/
|
||||
private Long spuId;
|
||||
/**
|
||||
* 图片名
|
||||
*/
|
||||
private String imgName;
|
||||
/**
|
||||
* 图片地址
|
||||
*/
|
||||
private String imgUrl;
|
||||
/**
|
||||
* 顺序
|
||||
*/
|
||||
private Integer imgSort;
|
||||
/**
|
||||
* 是否默认图
|
||||
*/
|
||||
private Integer defaultImg;
|
||||
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.bookstore.bookmall.product.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* spu信息介绍
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
@Data
|
||||
@TableName("pms_spu_info_desc")
|
||||
public class SpuInfoDescEntity implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 商品id
|
||||
*/
|
||||
@TableId
|
||||
private Long spuId;
|
||||
/**
|
||||
* 商品介绍
|
||||
*/
|
||||
private String decript;
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.AttrAttrgroupRelationEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 属性&属性分组关联
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.AttrGroupEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 属性分组
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface AttrGroupService extends IService<AttrGroupEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.AttrEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 商品属性
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface AttrService extends IService<AttrEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.BrandEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 品牌
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface BrandService extends IService<BrandEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.CategoryBrandRelationEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 品牌分类关联
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.CategoryEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 商品三级分类
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface CategoryService extends IService<CategoryEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.CommentReplayEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 商品评价回复关系
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface CommentReplayService extends IService<CommentReplayEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.ProductAttrValueEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* spu属性值
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.SkuImagesEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* sku图片
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface SkuImagesService extends IService<SkuImagesEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.SkuInfoEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* sku信息
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface SkuInfoService extends IService<SkuInfoEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.SkuSaleAttrValueEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* sku销售属性&值
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface SkuSaleAttrValueService extends IService<SkuSaleAttrValueEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.SpuCommentEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 商品评价
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface SpuCommentService extends IService<SpuCommentEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.SpuImagesEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* spu图片
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface SpuImagesService extends IService<SpuImagesEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.SpuInfoDescEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* spu信息介绍
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface SpuInfoDescService extends IService<SpuInfoDescEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,20 @@
|
||||
package com.bookstore.bookmall.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.bookmall.product.entity.SpuInfoEntity;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* spu信息
|
||||
*
|
||||
* @author dy
|
||||
* @email 2073699128@qq.com
|
||||
* @date 2025-07-06 21:28:01
|
||||
*/
|
||||
public interface SpuInfoService extends IService<SpuInfoEntity> {
|
||||
|
||||
PageUtils queryPage(Map<String, Object> params);
|
||||
}
|
||||
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.AttrAttrgroupRelationDao;
|
||||
import com.bookstore.bookmall.product.entity.AttrAttrgroupRelationEntity;
|
||||
import com.bookstore.bookmall.product.service.AttrAttrgroupRelationService;
|
||||
|
||||
|
||||
@Service("attrAttrgroupRelationService")
|
||||
public class AttrAttrgroupRelationServiceImpl extends ServiceImpl<AttrAttrgroupRelationDao, AttrAttrgroupRelationEntity> implements AttrAttrgroupRelationService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<AttrAttrgroupRelationEntity> page = this.page(
|
||||
new Query<AttrAttrgroupRelationEntity>().getPage(params),
|
||||
new QueryWrapper<AttrAttrgroupRelationEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.AttrGroupDao;
|
||||
import com.bookstore.bookmall.product.entity.AttrGroupEntity;
|
||||
import com.bookstore.bookmall.product.service.AttrGroupService;
|
||||
|
||||
|
||||
@Service("attrGroupService")
|
||||
public class AttrGroupServiceImpl extends ServiceImpl<AttrGroupDao, AttrGroupEntity> implements AttrGroupService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<AttrGroupEntity> page = this.page(
|
||||
new Query<AttrGroupEntity>().getPage(params),
|
||||
new QueryWrapper<AttrGroupEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.AttrDao;
|
||||
import com.bookstore.bookmall.product.entity.AttrEntity;
|
||||
import com.bookstore.bookmall.product.service.AttrService;
|
||||
|
||||
|
||||
@Service("attrService")
|
||||
public class AttrServiceImpl extends ServiceImpl<AttrDao, AttrEntity> implements AttrService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<AttrEntity> page = this.page(
|
||||
new Query<AttrEntity>().getPage(params),
|
||||
new QueryWrapper<AttrEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.BrandDao;
|
||||
import com.bookstore.bookmall.product.entity.BrandEntity;
|
||||
import com.bookstore.bookmall.product.service.BrandService;
|
||||
|
||||
|
||||
@Service("brandService")
|
||||
public class BrandServiceImpl extends ServiceImpl<BrandDao, BrandEntity> implements BrandService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<BrandEntity> page = this.page(
|
||||
new Query<BrandEntity>().getPage(params),
|
||||
new QueryWrapper<BrandEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.CategoryBrandRelationDao;
|
||||
import com.bookstore.bookmall.product.entity.CategoryBrandRelationEntity;
|
||||
import com.bookstore.bookmall.product.service.CategoryBrandRelationService;
|
||||
|
||||
|
||||
@Service("categoryBrandRelationService")
|
||||
public class CategoryBrandRelationServiceImpl extends ServiceImpl<CategoryBrandRelationDao, CategoryBrandRelationEntity> implements CategoryBrandRelationService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<CategoryBrandRelationEntity> page = this.page(
|
||||
new Query<CategoryBrandRelationEntity>().getPage(params),
|
||||
new QueryWrapper<CategoryBrandRelationEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.CategoryDao;
|
||||
import com.bookstore.bookmall.product.entity.CategoryEntity;
|
||||
import com.bookstore.bookmall.product.service.CategoryService;
|
||||
|
||||
|
||||
@Service("categoryService")
|
||||
public class CategoryServiceImpl extends ServiceImpl<CategoryDao, CategoryEntity> implements CategoryService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<CategoryEntity> page = this.page(
|
||||
new Query<CategoryEntity>().getPage(params),
|
||||
new QueryWrapper<CategoryEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.CommentReplayDao;
|
||||
import com.bookstore.bookmall.product.entity.CommentReplayEntity;
|
||||
import com.bookstore.bookmall.product.service.CommentReplayService;
|
||||
|
||||
|
||||
@Service("commentReplayService")
|
||||
public class CommentReplayServiceImpl extends ServiceImpl<CommentReplayDao, CommentReplayEntity> implements CommentReplayService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<CommentReplayEntity> page = this.page(
|
||||
new Query<CommentReplayEntity>().getPage(params),
|
||||
new QueryWrapper<CommentReplayEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.ProductAttrValueDao;
|
||||
import com.bookstore.bookmall.product.entity.ProductAttrValueEntity;
|
||||
import com.bookstore.bookmall.product.service.ProductAttrValueService;
|
||||
|
||||
|
||||
@Service("productAttrValueService")
|
||||
public class ProductAttrValueServiceImpl extends ServiceImpl<ProductAttrValueDao, ProductAttrValueEntity> implements ProductAttrValueService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<ProductAttrValueEntity> page = this.page(
|
||||
new Query<ProductAttrValueEntity>().getPage(params),
|
||||
new QueryWrapper<ProductAttrValueEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.SkuImagesDao;
|
||||
import com.bookstore.bookmall.product.entity.SkuImagesEntity;
|
||||
import com.bookstore.bookmall.product.service.SkuImagesService;
|
||||
|
||||
|
||||
@Service("skuImagesService")
|
||||
public class SkuImagesServiceImpl extends ServiceImpl<SkuImagesDao, SkuImagesEntity> implements SkuImagesService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<SkuImagesEntity> page = this.page(
|
||||
new Query<SkuImagesEntity>().getPage(params),
|
||||
new QueryWrapper<SkuImagesEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.SkuInfoDao;
|
||||
import com.bookstore.bookmall.product.entity.SkuInfoEntity;
|
||||
import com.bookstore.bookmall.product.service.SkuInfoService;
|
||||
|
||||
|
||||
@Service("skuInfoService")
|
||||
public class SkuInfoServiceImpl extends ServiceImpl<SkuInfoDao, SkuInfoEntity> implements SkuInfoService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<SkuInfoEntity> page = this.page(
|
||||
new Query<SkuInfoEntity>().getPage(params),
|
||||
new QueryWrapper<SkuInfoEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.SkuSaleAttrValueDao;
|
||||
import com.bookstore.bookmall.product.entity.SkuSaleAttrValueEntity;
|
||||
import com.bookstore.bookmall.product.service.SkuSaleAttrValueService;
|
||||
|
||||
|
||||
@Service("skuSaleAttrValueService")
|
||||
public class SkuSaleAttrValueServiceImpl extends ServiceImpl<SkuSaleAttrValueDao, SkuSaleAttrValueEntity> implements SkuSaleAttrValueService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<SkuSaleAttrValueEntity> page = this.page(
|
||||
new Query<SkuSaleAttrValueEntity>().getPage(params),
|
||||
new QueryWrapper<SkuSaleAttrValueEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.SpuCommentDao;
|
||||
import com.bookstore.bookmall.product.entity.SpuCommentEntity;
|
||||
import com.bookstore.bookmall.product.service.SpuCommentService;
|
||||
|
||||
|
||||
@Service("spuCommentService")
|
||||
public class SpuCommentServiceImpl extends ServiceImpl<SpuCommentDao, SpuCommentEntity> implements SpuCommentService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<SpuCommentEntity> page = this.page(
|
||||
new Query<SpuCommentEntity>().getPage(params),
|
||||
new QueryWrapper<SpuCommentEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.SpuImagesDao;
|
||||
import com.bookstore.bookmall.product.entity.SpuImagesEntity;
|
||||
import com.bookstore.bookmall.product.service.SpuImagesService;
|
||||
|
||||
|
||||
@Service("spuImagesService")
|
||||
public class SpuImagesServiceImpl extends ServiceImpl<SpuImagesDao, SpuImagesEntity> implements SpuImagesService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<SpuImagesEntity> page = this.page(
|
||||
new Query<SpuImagesEntity>().getPage(params),
|
||||
new QueryWrapper<SpuImagesEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.SpuInfoDescDao;
|
||||
import com.bookstore.bookmall.product.entity.SpuInfoDescEntity;
|
||||
import com.bookstore.bookmall.product.service.SpuInfoDescService;
|
||||
|
||||
|
||||
@Service("spuInfoDescService")
|
||||
public class SpuInfoDescServiceImpl extends ServiceImpl<SpuInfoDescDao, SpuInfoDescEntity> implements SpuInfoDescService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<SpuInfoDescEntity> page = this.page(
|
||||
new Query<SpuInfoDescEntity>().getPage(params),
|
||||
new QueryWrapper<SpuInfoDescEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.bookstore.bookmall.product.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import java.util.Map;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.bookstore.common.utils.PageUtils;
|
||||
import com.bookstore.common.utils.Query;
|
||||
|
||||
import com.bookstore.bookmall.product.dao.SpuInfoDao;
|
||||
import com.bookstore.bookmall.product.entity.SpuInfoEntity;
|
||||
import com.bookstore.bookmall.product.service.SpuInfoService;
|
||||
|
||||
|
||||
@Service("spuInfoService")
|
||||
public class SpuInfoServiceImpl extends ServiceImpl<SpuInfoDao, SpuInfoEntity> implements SpuInfoService {
|
||||
|
||||
@Override
|
||||
public PageUtils queryPage(Map<String, Object> params) {
|
||||
IPage<SpuInfoEntity> page = this.page(
|
||||
new Query<SpuInfoEntity>().getPage(params),
|
||||
new QueryWrapper<SpuInfoEntity>()
|
||||
);
|
||||
|
||||
return new PageUtils(page);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.AttrAttrgroupRelationDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.AttrAttrgroupRelationEntity" id="attrAttrgroupRelationMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="attrId" column="attr_id"/>
|
||||
<result property="attrGroupId" column="attr_group_id"/>
|
||||
<result property="attrSort" column="attr_sort"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.AttrDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.AttrEntity" id="attrMap">
|
||||
<result property="attrId" column="attr_id"/>
|
||||
<result property="attrName" column="attr_name"/>
|
||||
<result property="searchType" column="search_type"/>
|
||||
<result property="valueType" column="value_type"/>
|
||||
<result property="icon" column="icon"/>
|
||||
<result property="valueSelect" column="value_select"/>
|
||||
<result property="attrType" column="attr_type"/>
|
||||
<result property="enable" column="enable"/>
|
||||
<result property="catelogId" column="catelog_id"/>
|
||||
<result property="showDesc" column="show_desc"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.AttrGroupDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.AttrGroupEntity" id="attrGroupMap">
|
||||
<result property="attrGroupId" column="attr_group_id"/>
|
||||
<result property="attrGroupName" column="attr_group_name"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="descript" column="descript"/>
|
||||
<result property="icon" column="icon"/>
|
||||
<result property="catelogId" column="catelog_id"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.BrandDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.BrandEntity" id="brandMap">
|
||||
<result property="brandId" column="brand_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="logo" column="logo"/>
|
||||
<result property="descript" column="descript"/>
|
||||
<result property="showStatus" column="show_status"/>
|
||||
<result property="firstLetter" column="first_letter"/>
|
||||
<result property="sort" column="sort"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.CategoryBrandRelationDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.CategoryBrandRelationEntity" id="categoryBrandRelationMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="brandId" column="brand_id"/>
|
||||
<result property="catelogId" column="catelog_id"/>
|
||||
<result property="brandName" column="brand_name"/>
|
||||
<result property="catelogName" column="catelog_name"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.CategoryDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.CategoryEntity" id="categoryMap">
|
||||
<result property="catId" column="cat_id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="parentCid" column="parent_cid"/>
|
||||
<result property="catLevel" column="cat_level"/>
|
||||
<result property="showStatus" column="show_status"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="icon" column="icon"/>
|
||||
<result property="productUnit" column="product_unit"/>
|
||||
<result property="productCount" column="product_count"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.CommentReplayDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.CommentReplayEntity" id="commentReplayMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="commentId" column="comment_id"/>
|
||||
<result property="replyId" column="reply_id"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.ProductAttrValueDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.ProductAttrValueEntity" id="productAttrValueMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="spuId" column="spu_id"/>
|
||||
<result property="attrId" column="attr_id"/>
|
||||
<result property="attrName" column="attr_name"/>
|
||||
<result property="attrValue" column="attr_value"/>
|
||||
<result property="attrSort" column="attr_sort"/>
|
||||
<result property="quickShow" column="quick_show"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.SkuImagesDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.SkuImagesEntity" id="skuImagesMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="skuId" column="sku_id"/>
|
||||
<result property="imgUrl" column="img_url"/>
|
||||
<result property="imgSort" column="img_sort"/>
|
||||
<result property="defaultImg" column="default_img"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.SkuInfoDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.SkuInfoEntity" id="skuInfoMap">
|
||||
<result property="skuId" column="sku_id"/>
|
||||
<result property="spuId" column="spu_id"/>
|
||||
<result property="skuName" column="sku_name"/>
|
||||
<result property="skuDesc" column="sku_desc"/>
|
||||
<result property="catalogId" column="catalog_id"/>
|
||||
<result property="brandId" column="brand_id"/>
|
||||
<result property="skuDefaultImg" column="sku_default_img"/>
|
||||
<result property="skuTitle" column="sku_title"/>
|
||||
<result property="skuSubtitle" column="sku_subtitle"/>
|
||||
<result property="price" column="price"/>
|
||||
<result property="saleCount" column="sale_count"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.SkuSaleAttrValueDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.SkuSaleAttrValueEntity" id="skuSaleAttrValueMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="skuId" column="sku_id"/>
|
||||
<result property="attrId" column="attr_id"/>
|
||||
<result property="attrName" column="attr_name"/>
|
||||
<result property="attrValue" column="attr_value"/>
|
||||
<result property="attrSort" column="attr_sort"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.SpuCommentDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.SpuCommentEntity" id="spuCommentMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="skuId" column="sku_id"/>
|
||||
<result property="spuId" column="spu_id"/>
|
||||
<result property="spuName" column="spu_name"/>
|
||||
<result property="memberNickName" column="member_nick_name"/>
|
||||
<result property="star" column="star"/>
|
||||
<result property="memberIp" column="member_ip"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="showStatus" column="show_status"/>
|
||||
<result property="spuAttributes" column="spu_attributes"/>
|
||||
<result property="likesCount" column="likes_count"/>
|
||||
<result property="replyCount" column="reply_count"/>
|
||||
<result property="resources" column="resources"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="memberIcon" column="member_icon"/>
|
||||
<result property="commentType" column="comment_type"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.SpuImagesDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.SpuImagesEntity" id="spuImagesMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="spuId" column="spu_id"/>
|
||||
<result property="imgName" column="img_name"/>
|
||||
<result property="imgUrl" column="img_url"/>
|
||||
<result property="imgSort" column="img_sort"/>
|
||||
<result property="defaultImg" column="default_img"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.SpuInfoDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.SpuInfoEntity" id="spuInfoMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="spuName" column="spu_name"/>
|
||||
<result property="spuDescription" column="spu_description"/>
|
||||
<result property="catalogId" column="catalog_id"/>
|
||||
<result property="brandId" column="brand_id"/>
|
||||
<result property="weight" column="weight"/>
|
||||
<result property="publishStatus" column="publish_status"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.bookstore.bookmall.product.dao.SpuInfoDescDao">
|
||||
|
||||
<!-- 可根据自己的需求,是否要使用 -->
|
||||
<resultMap type="com.bookstore.bookmall.product.entity.SpuInfoDescEntity" id="spuInfoDescMap">
|
||||
<result property="spuId" column="spu_id"/>
|
||||
<result property="decript" column="decript"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>bookmall</artifactId>
|
||||
<groupId>com.bookstore.bookmall</groupId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>mall-common</artifactId>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>8</maven.compiler.source>
|
||||
<maven.compiler.target>8</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
</project>
|
@ -0,0 +1,7 @@
|
||||
FROM java:8
|
||||
EXPOSE 8080
|
||||
|
||||
VOLUME /tmp
|
||||
ADD renren-fast.jar /app.jar
|
||||
RUN bash -c 'touch /app.jar'
|
||||
ENTRYPOINT ["java","-jar","/app.jar"]
|
@ -0,0 +1,191 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction, and
|
||||
distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright
|
||||
owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all other entities
|
||||
that control, are controlled by, or are under common control with that entity.
|
||||
For the purposes of this definition, "control" means (i) the power, direct or
|
||||
indirect, to cause the direction or management of such entity, whether by
|
||||
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
||||
permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications, including
|
||||
but not limited to software source code, documentation source, and configuration
|
||||
files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical transformation or
|
||||
translation of a Source form, including but not limited to compiled object code,
|
||||
generated documentation, and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or Object form, made
|
||||
available under the License, as indicated by a copyright notice that is included
|
||||
in or attached to the work (an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object form, that
|
||||
is based on (or derived from) the Work and for which the editorial revisions,
|
||||
annotations, elaborations, or other modifications represent, as a whole, an
|
||||
original work of authorship. For the purposes of this License, Derivative Works
|
||||
shall not include works that remain separable from, or merely link (or bind by
|
||||
name) to the interfaces of, the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including the original version
|
||||
of the Work and any modifications or additions to that Work or Derivative Works
|
||||
thereof, that is intentionally submitted to Licensor for inclusion in the Work
|
||||
by the copyright owner or by an individual or Legal Entity authorized to submit
|
||||
on behalf of the copyright owner. For the purposes of this definition,
|
||||
"submitted" means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems, and
|
||||
issue tracking systems that are managed by, or on behalf of, the Licensor for
|
||||
the purpose of discussing and improving the Work, but excluding communication
|
||||
that is conspicuously marked or otherwise designated in writing by the copyright
|
||||
owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
|
||||
of whom a Contribution has been received by Licensor and subsequently
|
||||
incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License.
|
||||
|
||||
Subject to the terms and conditions of this License, each Contributor hereby
|
||||
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
||||
irrevocable copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the Work and such
|
||||
Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License.
|
||||
|
||||
Subject to the terms and conditions of this License, each Contributor hereby
|
||||
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
|
||||
irrevocable (except as stated in this section) patent license to make, have
|
||||
made, use, offer to sell, sell, import, and otherwise transfer the Work, where
|
||||
such license applies only to those patent claims licensable by such Contributor
|
||||
that are necessarily infringed by their Contribution(s) alone or by combination
|
||||
of their Contribution(s) with the Work to which such Contribution(s) was
|
||||
submitted. If You institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work or a
|
||||
Contribution incorporated within the Work constitutes direct or contributory
|
||||
patent infringement, then any patent licenses granted to You under this License
|
||||
for that Work shall terminate as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution.
|
||||
|
||||
You may reproduce and distribute copies of the Work or Derivative Works thereof
|
||||
in any medium, with or without modifications, and in Source or Object form,
|
||||
provided that You meet the following conditions:
|
||||
|
||||
You must give any other recipients of the Work or Derivative Works a copy of
|
||||
this License; and
|
||||
You must cause any modified files to carry prominent notices stating that You
|
||||
changed the files; and
|
||||
You must retain, in the Source form of any Derivative Works that You distribute,
|
||||
all copyright, patent, trademark, and attribution notices from the Source form
|
||||
of the Work, excluding those notices that do not pertain to any part of the
|
||||
Derivative Works; and
|
||||
If the Work includes a "NOTICE" text file as part of its distribution, then any
|
||||
Derivative Works that You distribute must include a readable copy of the
|
||||
attribution notices contained within such NOTICE file, excluding those notices
|
||||
that do not pertain to any part of the Derivative Works, in at least one of the
|
||||
following places: within a NOTICE text file distributed as part of the
|
||||
Derivative Works; within the Source form or documentation, if provided along
|
||||
with the Derivative Works; or, within a display generated by the Derivative
|
||||
Works, if and wherever such third-party notices normally appear. The contents of
|
||||
the NOTICE file are for informational purposes only and do not modify the
|
||||
License. You may add Your own attribution notices within Derivative Works that
|
||||
You distribute, alongside or as an addendum to the NOTICE text from the Work,
|
||||
provided that such additional attribution notices cannot be construed as
|
||||
modifying the License.
|
||||
You may add Your own copyright statement to Your modifications and may provide
|
||||
additional or different license terms and conditions for use, reproduction, or
|
||||
distribution of Your modifications, or for any such Derivative Works as a whole,
|
||||
provided Your use, reproduction, and distribution of the Work otherwise complies
|
||||
with the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions.
|
||||
|
||||
Unless You explicitly state otherwise, any Contribution intentionally submitted
|
||||
for inclusion in the Work by You to the Licensor shall be under the terms and
|
||||
conditions of this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify the terms of
|
||||
any separate license agreement you may have executed with Licensor regarding
|
||||
such Contributions.
|
||||
|
||||
6. Trademarks.
|
||||
|
||||
This License does not grant permission to use the trade names, trademarks,
|
||||
service marks, or product names of the Licensor, except as required for
|
||||
reasonable and customary use in describing the origin of the Work and
|
||||
reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty.
|
||||
|
||||
Unless required by applicable law or agreed to in writing, Licensor provides the
|
||||
Work (and each Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
|
||||
including, without limitation, any warranties or conditions of TITLE,
|
||||
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
|
||||
solely responsible for determining the appropriateness of using or
|
||||
redistributing the Work and assume any risks associated with Your exercise of
|
||||
permissions under this License.
|
||||
|
||||
8. Limitation of Liability.
|
||||
|
||||
In no event and under no legal theory, whether in tort (including negligence),
|
||||
contract, or otherwise, unless required by applicable law (such as deliberate
|
||||
and grossly negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special, incidental,
|
||||
or consequential damages of any character arising as a result of this License or
|
||||
out of the use or inability to use the Work (including but not limited to
|
||||
damages for loss of goodwill, work stoppage, computer failure or malfunction, or
|
||||
any and all other commercial damages or losses), even if such Contributor has
|
||||
been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability.
|
||||
|
||||
While redistributing the Work or Derivative Works thereof, You may choose to
|
||||
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
|
||||
other liability obligations and/or rights consistent with this License. However,
|
||||
in accepting such obligations, You may act only on Your own behalf and on Your
|
||||
sole responsibility, not on behalf of any other Contributor, and only if You
|
||||
agree to indemnify, defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason of your
|
||||
accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work
|
||||
|
||||
To apply the Apache License to your work, attach the following boilerplate
|
||||
notice, with the fields enclosed by brackets "{}" replaced with your own
|
||||
identifying information. (Don't include the brackets!) The text should be
|
||||
enclosed in the appropriate comment syntax for the file format. We also
|
||||
recommend that a file or class name and description of purpose be included on
|
||||
the same "printed page" as the copyright notice for easier identification within
|
||||
third-party archives.
|
||||
|
||||
Copyright 2019 人人开源
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue