dev798
wxy 2024-03-12 20:05:10 +08:00
parent 2dbcec771e
commit cdb075caba
39 changed files with 436 additions and 3 deletions

View File

@ -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())

View File

@ -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;
}

View File

@ -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;
/*
*
* */
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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>{
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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> {
}

View File

@ -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 {
}

View File

@ -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 {
}

View File

@ -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 {
}

View File

@ -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 {
}

View File

@ -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 {
}

View File

@ -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 {
}

View File

@ -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 {
}

View File

@ -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 {
}

View File

@ -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 {
}

View File

@ -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 {
}