dev798
parent
2dbcec771e
commit
cdb075caba
|
@ -3,6 +3,7 @@ package com.muyu.product.domain;
|
|||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import com.muyu.product.domain.model.TemplateAttributeModel;
|
||||
|
@ -59,8 +60,8 @@ public class AttributeInfo extends BaseEntity {
|
|||
}
|
||||
|
||||
/**
|
||||
* 查询构造器
|
||||
*/
|
||||
* 查询构造器
|
||||
*/
|
||||
public static AttributeInfo queryBuild( AttributeInfoQueryReq attributeInfoQueryReq){
|
||||
return AttributeInfo.builder()
|
||||
.name(attributeInfoQueryReq.getName())
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.product.service.AttributeGroupService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "属性组")
|
||||
@RestController
|
||||
@RequestMapping("/attributeGroup")
|
||||
public class AttributeGroupController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private AttributeGroupService attributeGroupService;
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import io.swagger.annotations.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
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.RestController;
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import com.muyu.common.core.utils.poi.ExcelUtil;
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.common.log.annotation.Log;
|
||||
import com.muyu.common.log.enums.BusinessType;
|
||||
import com.muyu.common.security.annotation.RequiresPermissions;
|
||||
import com.muyu.product.domain.AttributeInfo;
|
||||
import com.muyu.product.domain.req.AttributeInfoQueryReq;
|
||||
import com.muyu.product.domain.req.AttributeInfoSaveReq;
|
||||
import com.muyu.product.domain.req.AttributeInfoEditReq;
|
||||
import com.muyu.product.service.AttributeInfoService;
|
||||
import com.muyu.common.core.web.page.TableDataInfo;
|
||||
|
||||
@Api(tags = "商品属性")
|
||||
@RestController
|
||||
@RequestMapping("/attribute")
|
||||
public class AttributeInfoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private AttributeInfoService attributeInfoService;
|
||||
|
||||
|
||||
/*
|
||||
* 查询商品属性列表
|
||||
* */
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.product.service.CategoryInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "品类信息")
|
||||
@RestController
|
||||
@RequestMapping("/category")
|
||||
public class CategoryInfoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private CategoryInfoService categoryInfoService;
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.product.service.CommentInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api("/商品评论")
|
||||
@RestController
|
||||
@RequestMapping("/comment")
|
||||
public class CommentInfoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private CommentInfoService commentInfoService;
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.product.service.CommentLikeInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "评论点赞")
|
||||
@RestController
|
||||
@RequestMapping("/commentLike")
|
||||
public class CommentLikeInfoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private CommentLikeInfoService commentLikeInfoService;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.product.service.ProjectInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "商品信息")
|
||||
@RestController
|
||||
@RequestMapping("/info")
|
||||
public class ProjectInfoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private ProjectInfoService projectInfoService;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.product.service.ProjectSkuInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "商品SKU")
|
||||
@RestController
|
||||
@RequestMapping("/sku")
|
||||
public class ProjectSkuInfoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private ProjectSkuInfoService projectSkuInfoService;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.product.service.RuleAttrInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "规格详情")
|
||||
@RestController
|
||||
@RequestMapping("/ruleAttr")
|
||||
public class RuleAttrInfoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private RuleAttrInfoService ruleAttrInfoService;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.muyu.product.controller;
|
||||
|
||||
import com.muyu.common.core.web.controller.BaseController;
|
||||
import com.muyu.product.service.RuleInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "商品规格")
|
||||
@RestController
|
||||
@RequestMapping("/rule")
|
||||
public class RuleInfoController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private RuleInfoService ruleInfoService;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
|
||||
public interface AttributeGroupMapper extends BaseMapper<AttributeGroup> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.AttributeInfo;
|
||||
|
||||
public interface AttributeInfoMapper extends BaseMapper<AttributeInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.CategoryInfo;
|
||||
|
||||
public interface CategoryInfoMapper extends BaseMapper<CategoryInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.CommentInfo;
|
||||
|
||||
public interface CommentInfoMapper extends BaseMapper<CommentInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.CommentLikeInfo;
|
||||
|
||||
public interface CommentLikeInfoMapper extends BaseMapper<CommentLikeInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.ProjectInfo;
|
||||
|
||||
public interface ProjectInfoMapper extends BaseMapper<ProjectInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.ProjectSkuInfo;
|
||||
|
||||
public interface ProjectSkuInfoMapper extends BaseMapper<ProjectSkuInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.RuleAttrInfo;
|
||||
|
||||
public interface RuleAttrInfoMapper extends BaseMapper<RuleAttrInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.product.domain.RuleInfo;
|
||||
|
||||
public interface RuleInfoMapper extends BaseMapper<RuleInfo>{
|
||||
}
|
|
@ -3,5 +3,5 @@ package com.muyu.product.service;
|
|||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AsCategoryAttribute;
|
||||
|
||||
public interface AssCategoryAttributeService extends IService<AsCategoryAttribute> {
|
||||
public interface AsCategoryAttributeService extends IService<AsCategoryAttribute> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
|
||||
public interface AttributeGroupService extends IService<AttributeGroup> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.AttributeInfo;
|
||||
|
||||
public interface AttributeInfoService extends IService<AttributeInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.CategoryInfo;
|
||||
|
||||
public interface CategoryInfoService extends IService<CategoryInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.CommentInfo;
|
||||
|
||||
public interface CommentInfoService extends IService<CommentInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.CommentLikeInfo;
|
||||
|
||||
public interface CommentLikeInfoService extends IService<CommentLikeInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.ProjectInfo;
|
||||
|
||||
public interface ProjectInfoService extends IService<ProjectInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.ProjectSkuInfo;
|
||||
|
||||
public interface ProjectSkuInfoService extends IService<ProjectSkuInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.RuleAttrInfo;
|
||||
|
||||
public interface RuleAttrInfoService extends IService<RuleAttrInfo> {
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.muyu.product.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.product.domain.RuleInfo;
|
||||
|
||||
public interface RuleInfoService extends IService<RuleInfo> {
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
package com.muyu.product.service.impl;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AsBrandProjectServiceimpl {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.product.domain.AttributeGroup;
|
||||
import com.muyu.product.mapper.AttributeGroupMapper;
|
||||
import com.muyu.product.service.AttributeGroupService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AttributeGroupServiceimpl extends ServiceImpl<AttributeGroupMapper, AttributeGroup>implements AttributeGroupService {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.product.domain.AttributeInfo;
|
||||
import com.muyu.product.mapper.AttributeInfoMapper;
|
||||
import com.muyu.product.service.AttributeInfoService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class AttributeInfoServiceimpl extends ServiceImpl<AttributeInfoMapper, AttributeInfo>implements AttributeInfoService {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.product.domain.CategoryInfo;
|
||||
import com.muyu.product.mapper.CategoryInfoMapper;
|
||||
import com.muyu.product.service.CategoryInfoService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class CategoryInfoServiceimpl extends ServiceImpl<CategoryInfoMapper, CategoryInfo> implements CategoryInfoService {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.product.domain.CommentInfo;
|
||||
import com.muyu.product.mapper.CommentInfoMapper;
|
||||
import com.muyu.product.service.CommentInfoService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class CommentInfoServiceimpl extends ServiceImpl<CommentInfoMapper, CommentInfo> implements CommentInfoService {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.product.domain.CommentLikeInfo;
|
||||
import com.muyu.product.mapper.CommentLikeInfoMapper;
|
||||
import com.muyu.product.service.CommentLikeInfoService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class CommentLikeInfoServiceimpl extends ServiceImpl<CommentLikeInfoMapper, CommentLikeInfo> implements CommentLikeInfoService {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.product.domain.ProjectInfo;
|
||||
import com.muyu.product.mapper.ProjectInfoMapper;
|
||||
import com.muyu.product.service.ProjectInfoService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class ProjectInfoServiceimpl extends ServiceImpl<ProjectInfoMapper, ProjectInfo>implements ProjectInfoService {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.product.domain.ProjectSkuInfo;
|
||||
import com.muyu.product.mapper.ProjectSkuInfoMapper;
|
||||
import com.muyu.product.service.ProjectSkuInfoService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class ProjectSkuInfoServiceimpl extends ServiceImpl<ProjectSkuInfoMapper, ProjectSkuInfo>implements ProjectSkuInfoService {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.product.domain.RuleAttrInfo;
|
||||
import com.muyu.product.mapper.RuleAttrInfoMapper;
|
||||
import com.muyu.product.service.RuleAttrInfoService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class RuleAttrInfoServiceimpl extends ServiceImpl<RuleAttrInfoMapper, RuleAttrInfo> implements RuleAttrInfoService {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
package com.muyu.product.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.product.domain.RuleInfo;
|
||||
import com.muyu.product.mapper.RuleInfoMapper;
|
||||
import com.muyu.product.service.RuleInfoService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class RuleInfoServiceimpl extends ServiceImpl<RuleInfoMapper, RuleInfo> implements RuleInfoService {
|
||||
}
|
Loading…
Reference in New Issue